123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- /*------------------------------------------------------------------------------
- -- --
- -- This software is confidential and proprietary and may be used --
- -- only as expressly authorized by a licensing agreement from --
- -- --
- -- Hantro Products Oy. --
- -- --
- -- (C) COPYRIGHT 2007 HANTRO PRODUCTS OY --
- -- ALL RIGHTS RESERVED --
- -- --
- -- The entire notice above must be reproduced --
- -- on all copies and should not be removed. --
- -- --
- --------------------------------------------------------------------------------
- --
- -- Description : Common Decoder API definitions
- --
- --------------------------------------------------------------------------------
- --
- -- Version control information, please leave untouched.
- --
- -- $RCSfile: decapicommon.h,v $
- -- $Date: 2011/05/26 13:14:23 $
- -- $Revision: 1.25 $
- --
- ------------------------------------------------------------------------------*/
- #ifndef __DECAPICOMMON_H__
- #define __DECAPICOMMON_H__
- #include "basetype.h"
- #define MAX_ASIC_CORES 1
- #define MPEG4_NOT_SUPPORTED (u32)(0x00)
- #define MPEG4_SIMPLE_PROFILE (u32)(0x01)
- #define MPEG4_ADVANCED_SIMPLE_PROFILE (u32)(0x02)
- #define MPEG4_CUSTOM_NOT_SUPPORTED (u32)(0x00)
- #define MPEG4_CUSTOM_FEATURE_1 (u32)(0x01)
- #define H264_NOT_SUPPORTED (u32)(0x00)
- #define H264_BASELINE_PROFILE (u32)(0x01)
- #define H264_MAIN_PROFILE (u32)(0x02)
- #define H264_HIGH_PROFILE (u32)(0x03)
- #define VC1_NOT_SUPPORTED (u32)(0x00)
- #define VC1_SIMPLE_PROFILE (u32)(0x01)
- #define VC1_MAIN_PROFILE (u32)(0x02)
- #define VC1_ADVANCED_PROFILE (u32)(0x03)
- #define MPEG2_NOT_SUPPORTED (u32)(0x00)
- #define MPEG2_MAIN_PROFILE (u32)(0x01)
- #define JPEG_NOT_SUPPORTED (u32)(0x00)
- #define JPEG_BASELINE (u32)(0x01)
- #define JPEG_PROGRESSIVE (u32)(0x02)
- #define PP_NOT_SUPPORTED (u32)(0x00)
- #define PP_SUPPORTED (u32)(0x01)
- #define PP_TILED_4X4 (u32)(0x20000000)
- #define PP_DITHERING (u32)(0x10000000)
- #define PP_SCALING (u32)(0x0C000000)
- #define PP_DEINTERLACING (u32)(0x02000000)
- #define PP_ALPHA_BLENDING (u32)(0x01000000)
- #define PP_OUTP_ENDIAN (u32)(0x00040000)
- #define PP_TILED_INPUT (u32)(0x0000C000)
- #define PP_PIX_ACC_OUTPUT (u32)(0x40000000)
- #define PP_ABLEND_CROP (u32)(0x80000000)
- #define SORENSON_SPARK_NOT_SUPPORTED (u32)(0x00)
- #define SORENSON_SPARK_SUPPORTED (u32)(0x01)
- #define VP6_NOT_SUPPORTED (u32)(0x00)
- #define VP6_SUPPORTED (u32)(0x01)
- #define VP7_NOT_SUPPORTED (u32)(0x00)
- #define VP7_SUPPORTED (u32)(0x01)
- #define VP8_NOT_SUPPORTED (u32)(0x00)
- #define VP8_SUPPORTED (u32)(0x01)
- #define REF_BUF_NOT_SUPPORTED (u32)(0x00)
- #define REF_BUF_SUPPORTED (u32)(0x01)
- #define REF_BUF_INTERLACED (u32)(0x02)
- #define REF_BUF_DOUBLE (u32)(0x04)
- #define TILED_NOT_SUPPORTED (u32)(0x00)
- #define TILED_8x4_SUPPORTED (u32)(0x01)
- #define AVS_NOT_SUPPORTED (u32)(0x00)
- #define AVS_SUPPORTED (u32)(0x01)
- #define JPEG_EXT_NOT_SUPPORTED (u32)(0x00)
- #define JPEG_EXT_SUPPORTED (u32)(0x01)
- #define RV_NOT_SUPPORTED (u32)(0x00)
- #define RV_SUPPORTED (u32)(0x01)
- #define MVC_NOT_SUPPORTED (u32)(0x00)
- #define MVC_SUPPORTED (u32)(0x01)
- #define WEBP_NOT_SUPPORTED (u32)(0x00)
- #define WEBP_SUPPORTED (u32)(0x01)
- #define EC_NOT_SUPPORTED (u32)(0x00)
- #define EC_SUPPORTED (u32)(0x01)
- #define H264_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define H264_FUSE_ENABLED (u32)(0x01)
- #define MPEG4_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define MPEG4_FUSE_ENABLED (u32)(0x01)
- #define MPEG2_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define MPEG2_FUSE_ENABLED (u32)(0x01)
- #define SORENSON_SPARK_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define SORENSON_SPARK_ENABLED (u32)(0x01)
- #define JPEG_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define JPEG_FUSE_ENABLED (u32)(0x01)
- #define VP6_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define VP6_FUSE_ENABLED (u32)(0x01)
- #define VP7_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define VP7_FUSE_ENABLED (u32)(0x01)
- #define VP8_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define VP8_FUSE_ENABLED (u32)(0x01)
- #define VC1_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define VC1_FUSE_ENABLED (u32)(0x01)
- #define JPEG_PROGRESSIVE_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define JPEG_PROGRESSIVE_FUSE_ENABLED (u32)(0x01)
- #define REF_BUF_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define REF_BUF_FUSE_ENABLED (u32)(0x01)
- #define AVS_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define AVS_FUSE_ENABLED (u32)(0x01)
- #define RV_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define RV_FUSE_ENABLED (u32)(0x01)
- #define MVC_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define MVC_FUSE_ENABLED (u32)(0x01)
- #define PP_NOT_SUPPORTED_FUSE (u32)(0x00)
- #define PP_FUSE_ENABLED (u32)(0x01)
- #define PP_FUSE_DEINTERLACING_ENABLED (u32)(0x40000000)
- #define PP_FUSE_ALPHA_BLENDING_ENABLED (u32)(0x20000000)
- #define MAX_PP_OUT_WIDHT_1920_FUSE_ENABLED (u32)(0x00008000)
- #define MAX_PP_OUT_WIDHT_1280_FUSE_ENABLED (u32)(0x00004000)
- #define MAX_PP_OUT_WIDHT_720_FUSE_ENABLED (u32)(0x00002000)
- #define MAX_PP_OUT_WIDHT_352_FUSE_ENABLED (u32)(0x00001000)
- /* Macro to copy support flags and picture max width from DWL HW config
- * to Decoder HW config */
- #define SET_DEC_BUILD_SUPPORT(decHwCfg, dwlHwCfg) \
- decHwCfg.maxDecPicWidth = dwlHwCfg.maxDecPicWidth; \
- decHwCfg.maxPpOutPicWidth = dwlHwCfg.maxPpOutPicWidth; \
- decHwCfg.h264Support = dwlHwCfg.h264Support; \
- decHwCfg.jpegSupport = dwlHwCfg.jpegSupport; \
- decHwCfg.jpegESupport = dwlHwCfg.jpegESupport; \
- decHwCfg.mpeg2Support = dwlHwCfg.mpeg2Support; \
- decHwCfg.mpeg4Support = dwlHwCfg.mpeg4Support; \
- decHwCfg.vc1Support = dwlHwCfg.vc1Support; \
- decHwCfg.ppSupport = dwlHwCfg.ppSupport; \
- decHwCfg.ppConfig = dwlHwCfg.ppConfig; \
- decHwCfg.sorensonSparkSupport = dwlHwCfg.sorensonSparkSupport; \
- decHwCfg.vp6Support = dwlHwCfg.vp6Support; \
- decHwCfg.vp7Support = dwlHwCfg.vp7Support; \
- decHwCfg.vp8Support = dwlHwCfg.vp8Support; \
- decHwCfg.refBufSupport = dwlHwCfg.refBufSupport; \
- decHwCfg.tiledModeSupport = dwlHwCfg.tiledModeSupport; \
- decHwCfg.avsSupport = dwlHwCfg.avsSupport; \
- decHwCfg.rvSupport = dwlHwCfg.rvSupport; \
- decHwCfg.customMpeg4Support = dwlHwCfg.customMpeg4Support; \
- decHwCfg.mvcSupport = dwlHwCfg.mvcSupport; \
- decHwCfg.webpSupport = dwlHwCfg.webpSupport; \
- decHwCfg.ecSupport = dwlHwCfg.ecSupport;
- typedef struct DecHwConfig_
- {
- u32 mpeg4Support; /* one of the MPEG4 values defined above */
- u32 customMpeg4Support; /* one of the MPEG4 custom values defined above */
- u32 h264Support; /* one of the H264 values defined above */
- u32 vc1Support; /* one of the VC1 values defined above */
- u32 mpeg2Support; /* one of the MPEG2 values defined above */
- u32 jpegSupport; /* one of the JPEG values defined above */
- u32 jpegProgSupport; /* one of the Progressive JPEG values defined above */
- u32 maxDecPicWidth; /* maximum picture width in decoder */
- u32 ppSupport; /* PP_SUPPORTED or PP_NOT_SUPPORTED */
- u32 ppConfig; /* Bitwise list of PP function */
- u32 maxPpOutPicWidth; /* maximum post-processor output picture width */
- u32 sorensonSparkSupport; /* one of the SORENSON_SPARK values defined above */
- u32 refBufSupport; /* one of the REF_BUF values defined above */
- u32 tiledModeSupport; /* one of the TILED values defined above */
- u32 vp6Support; /* one of the VP6 values defined above */
- u32 vp7Support; /* one of the VP7 values defined above */
- u32 vp8Support; /* one of the VP8 values defined above */
- u32 avsSupport; /* one of the AVS values defined above */
- u32 jpegESupport; /* one of the JPEG EXT values defined above */
- u32 rvSupport; /* one of the HUKKA values defined above */
- u32 mvcSupport; /* one of the MVC values defined above */
- u32 webpSupport; /* one of the WEBP values defined above */
- u32 ecSupport; /* one of the EC values defined above */
- u32 strideSupport; /* HW supports separate Y and C strides */
- u32 fieldDpbSupport;
- } DecHwConfig;
- /* Reference picture format types */
- typedef enum
- {
- DEC_REF_FRM_RASTER_SCAN = 0,
- DEC_REF_FRM_TILED_DEFAULT = 1
- } DecRefFrmFormat;
- /* Output picture format types */
- typedef enum
- {
- DEC_OUT_FRM_RASTER_SCAN = 0,
- DEC_OUT_FRM_TILED_8X4 = 1
- } DecOutFrmFormat;
- #endif /* __DECAPICOMMON_H__ */
|