123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #ifndef __HDMI_VIDEO_H__
- #define __HDMI_VIDEO_H__
- #include <drv_vip_internal.h>
- #define AVI_C_NODATA (0)
- #define AVI_C_ITU601 (1)
- #define AVI_C_ITU709 (2)
- #define AVI_Y_RGB (0)
- #define AVI_Y_YCC422 (1)
- #define AVI_Y_YCC444 (2)
- #define AVI_M_NODATA (0)
- #define AVI_M_4_3 (1)
- #define AVI_M_16_9 (2)
- #define AVI_R_CHECK_AVI_M (8)
- #define AVI_R_4_3_CENTER (9)
- #define AVI_R_16_9_CENTER (10)
- #define AVI_R_14_9_CENTER (11)
- #define HDMI_HVAILD_TOLERANCE_PERMILE (10) //unit: 0.1%
- #define HDMI_VVAILD_TOLERANCE_PERMILE (10) //unit: 0.1%
- #define HDMI_HTOTAL_TOLERANCE_PERMILE (20)
- #define HDMI_VTOTAL_TOLERANCE_PERMILE (20)
- #define HDMI_VFREQ_TOLERANCE_PERMILE (5) //unit: 1%
-
- /*!
- * @brief HDMI Video Type of Vendor Specific InfoFrame Packet
- */
- typedef enum
- {
- DRV_HDMI_VSI_TYPE_NONE = 0x00, //no additional HDMI format is presented in this packet
- DRV_HDMI_VSI_TYPE_EXT_RES, //extended resolution format (e.g. used for 4K x 2K video) present
- DRV_HDMI_VSI_TYEP_3D, // 3D format indication present
- } DRV_HDMIVSITYPE_e;
- /*!
- * @brief HDMI 3D Structure
- */
- typedef enum
- {
- DRV_HDMI_3D_STRUCT_FP = 0x00, //frame packing
- DRV_HDMI_3D_STRUCT_FA, //field alternative
- DRV_HDMI_3D_STRUCT_LA, //line alternative
- DRV_HDMI_3D_STRUCT_SS_F, //side by side full
- DRV_HDMI_3D_STRUCT_L_D, //L + depth
- DRV_HDMI_3D_STRUCT_L_D_G, //L + depth + graphic + graphics-depth
- DRV_HDMI_3D_STRUCT_TB, //Top and Bottom
- DRV_HDMI_3D_STRUCT_RESV7, //reserved
- DRV_HDMI_3D_STRUCT_SS_H, //side by side half
- DRV_HDMI_3D_STRUCT_RESV9, //reserved
- DRV_HDMI_3D_STRUCT_RESV10, //reserved
- DRV_HDMI_3D_STRUCT_RESV11, //reserved
- DRV_HDMI_3D_STRUCT_RESV12, //reserved
- DRV_HDMI_3D_STRUCT_RESV13, //reserved
- DRV_HDMI_3D_STRUCT_RESV14, //reserved
- DRV_HDMI_3D_STRUCT_NOTUSE, //not use
- } DRV_HDMI3DStructure_e;
- /*!
- * @brief HDMI 3D Extened Data
- */
- typedef enum
- {
- DRV_HDMI_3D_EXDATA_H_SUBSMP = 0x00, //Horizontal sub-sampling
- DRV_HDMI_3D_EXDATA_Q_OLOR = 0x04, //Quincunx matix - Odd/Left picture, Odd/Right picture
- DRV_HDMI_3D_EXDATA_Q_OLER = 0x05, //Quincunx matix - Odd/Left picture, Even/Right picture
- DRV_HDMI_3D_EXDATA_Q_ELOR = 0x06, //Quincunx matix - Even/Left picture, Odd/Right picture
- DRV_HDMI_3D_EXDATA_Q_ELER = 0x07, //Quincunx matix - Even/Left picture, Even/Right picture
- DRV_HDMI_3D_EXDATA_RESV, //reserved
- DRV_HDMI_3D_EXDATA_NOEXDATA = 0xFF, //no extended data
- } DRV_HDMI3DExtData_e;
- UINT8 HDMI_GetInputInformation(VIP_InterfaceKIC *pstKic);
- void HDMI_VSI_handler(void);
- BOOL HDMI_IsAviChanged(VIP_InterfaceKIC *pstKic);
- void HDMI_SetSupportMaxHz(UINT8 bSupportMaxHz);
- UINT8 HDMI_CheckSupportResolutionMode(VIP_InterfaceKIC *pstKic);
- UINT32 get_pixel_clock(void);
- #endif /* __HDMI_VIDEO_H__ */
|