123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- #ifndef _DRV_CVD2_EXTERNAL_H_
- #define _DRV_CVD2_EXTERNAL_H_
- #include <drv_types.h>
- #include "plf_timing_id.h"
- /* Detected standard. */
- enum
- {
- CVD2_STD_NONE , //0
- CVD2_STD_NTSC_M , //1
- CVD2_STD_NTSC_443 , //2
- CVD2_STD_PAL_IBGDK , //3
- CVD2_STD_PAL_M , //4
- CVD2_STD_PAL_CN , //5
- CVD2_STD_PAL_60 , //6
- CVD2_STD_SECAM , //7
- CVD2_STD_END , //8
- CVD2_STD_AUTO = CVD2_STD_END, //8 //For ATV Scanning
- CVD2_STD_SwitchModulation , //9 //For ATV scan mode to detect SECAM L/L' signal.
- };
- /* Select input channel in ADC175 IC */
- enum
- {
- S1_INPUT_CHANNEL,
- S2_INPUT_CHANNEL,
- S3_INPUT_CHANNEL,
- AV1_INPUT_CHANNEL,
- AV2_INPUT_CHANNEL,
- AV3_INPUT_CHANNEL,
- TV_INPUT_CHANNEL,
- RGB_INPUT_CHANNEL,
- };
- //20120511 Add for CVBS out options in factory mode
- typedef enum
- {
- ALL_DISABLE, // Disable CVBS out for all sources
- ALL_ENABLE, // Enable CVBS out for all sources (ATV-in to ATV-out, AV-in to AV-out and SV-in to SV(Y)-out)
- AV_ONLY, // Enable CVBS out for AV only (AV-in to AV-out)
- ATV_ONLY, // Enable CVBS out for ATV only (ATV-in to ATV-out)
- ATV_AV_ONLY, // Enable CVBS out for ATV and AV (ATV-in to ATV-out and AV-in to AV-out)
- SCART_MODE1, // Enable CVBS out for SCART out (ATV-in to ATV-out, AV-in to AV-out and SV-in to SV(Y)-out)
- SCART_MODE2 // Enable CVBS out for SCART out (AV-in, ATV-in and SV-in are all ATV-out)
- }cvd2_TypeCVBSOMode;
- typedef enum {
- CVD2_FormatStart,
- CVD2_NTSC_M = CVD2_FormatStart,
- CVD2_NTSC_443,
- CVD2_PAL_IBGHD,
- CVD2_PAL_M,
- CVD2_PAL_N,
- CVD2_PAL_60,
- CVD2_SECAM,
- CVD2_FormatEnd
- }CVD2_FORMAT;
- typedef enum _PicSrcCVD2{
- PicSrcCVD2_Start,
- PicSrcCVD2_ATV = PicSrcCVD2_Start,
- PicSrcCVD2_AV,
- PicSrcCVD2_SV,
- PicSrcCVD2_End // 3
- }PicSrcCVD2;
- typedef enum
- {
- DRV_TvDecOUTPUT_SOURCE_TYPE_NULL,
- DRV_TvDecOUTPUT_SOURCE_TYPE_CVBS,
- DRV_TvDecOUTPUT_SOURCE_TYPE_SVIDEO,
- DRV_TvDecOUTPUT_SOURCE_TYPE_DTV,
- DRV_TvDecOUTPUT_SOURCE_TYPE_DVIF,
- DRV_TvDecOUTPUT_SOURCE_TYPE_CHROMA
- } DRV_TvDecOutputSrcType_t;
- /*!
- * @brief input pins definition, need to sync with DRV_VAFELSInputPin_t
- */
- typedef enum
- {
- DRV_TvDecCVBS_0 =(0x01<<1),
- DRV_TvDecCVBS_1 =(0x01<<2),
- DRV_TvDecCVBS_2 =(0x01<<3),
- DRV_TvDecCVBS_3 =(0x01<<4),
- DRV_TvDecCVBS_4 =(0x01<<5),
- DRV_TvDecCHROMA_1 =(0x01<<6),
- DRV_TvDecCHROMA_2 =(0x01<<7),
- DRV_TvDecY1 =(0x01<<8),
- DRV_TvDecPB1 =(0x01<<9),
- DRV_TvDecPR1 =(0x01<<10),
- DRV_TvDecDVIF =(0x01<<11),
- DRV_TvDecNULL =(0x01<<12)
- } DRV_TvDecInputPin_t;
- typedef enum
- {
- DRV_TvDecTTEccHamming,
- DRV_TvDecTTEccParity
- } DRV_TvDecTTEcc_t;
- /**
- * \brief General Driver return status
- */
- #ifndef DRV_STATUS_TYPE
- #define DRV_STATUS_TYPE
- typedef enum
- {
- /* common status values */
- DRV_SUCCESS, /*!< successful outcome */
- DRV_ERR_FAILURE, /*!< operation failed */
- DRV_ERR_INVALID_HANDLE, /*!< invalid handle */
- DRV_ERR_INVALID_ID, /*!< invalid identifier */
- DRV_ERR_INVALID_PARAM, /*!< invalid parameter */
- DRV_ERR_INVALID_OP, /*!< requested operation is invalid */
- DRV_ERR_MEMORY_ALLOC, /*!< problem allocating memory */
- DRV_ERR_MEMORY_SIZE, /*!< problem with the size of memory */
- /* < supplied */
- DRV_ERR_RESOURCE_UNAVAILABLE,
- DRV_ERR_TIMEOUT, /*!< timeout */
- DRV_WARN_NO_ACTION, /* < the function completed successfully,*/
- /* < but no action was taken */
- DRV_WARN_PARAM_CLIPPED, /*!< the function has completed */
- /*!< successfully, though a parameter was */
- /*!< clipped to within a valid range. */
- DRV_WARN_BUFFER_EMPTY,
- DRV_WARN_BUFFER_FULL,
- DRV_WARN_UNINITED, /*!< driver has not been initialized yet */
- DRV_WARN_INITED, /*!< driver has been initialized already */
- DRV_ERR_MODE_MISMATCH, /*!< deinterlacer off*/
- DRV_ERR_MAX /*!< Max error number*/
- } DRV_Status_t;
- #endif
- typedef struct _CVD2VideoDecoderSetting_t{
- UINT8 Brightness;
- UINT8 Contrast;
- UINT8 Saturation;
- INT8 Ldly;
- UINT8 Filter;
- }CVD2VideoDecoderSetting_t;
- typedef enum {
- CVD2_CMD_START,
- CVD2_CMD_BRIGHTNESS = CVD2_CMD_START,
- CVD2_CMD_CONTRAST,
- CVD2_CMD_SATURATION,
- CVD2_CMD_LDLY,
- CVD2_CMD_FILTER,
- CVD2_CMD_HACTIVE_START,
- CVD2_CMD_HACTIVE_END,
- CVD2_CMD_HACTIVE_DELAY,
- CVD2_CMD_CBCR_SWAP,
- CVD2_CMD_VACTIVE_START,
- CVD2_CMD_VACTIVE_HEIGHT,
- CVD2_CMD_ODDEVEN_SWAP,
- CVD2_CMD_CVBSO,//GAHU
- CVD2_CMD_TTECC_MODE,
- CVD2_CMD_END
- }CVD2_CMD;
- /* CVD2 Timing Table Setting */
- typedef struct _CVD2_Timing_Param_t{
- PLF_VideoID_t eVideoID;
- UINT16 HactiveStart;
- UINT16 HactiveEnd;
- UINT8 CbCrSwap;
- UINT8 VactiveStart;
- UINT8 VactiveHeight;
- UINT8 OddEvenSwap;
- }CVD2_TIMING_PARAM_t;
- typedef struct _CVD2_WssData_t{
- UINT8 WSS_byte2;
- UINT8 WSS_byte1;
- UINT8 WSS_byte0;
- }CVD2_WSSDATA_t;
- #endif
|