vid.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- /*****************************************************************************
- File Name: vid.h
- Description: 5105 Video header
- COPYRIGHT (C) 2004 STMicroelectronics
- *****************************************************************************/
- /* Define to prevent recursive inclusion */
- #ifndef __VID_H
- #define __VID_H
- /* Includes --------------------------------------------------------------- */
- #include "stddefs.h" /* STAPI includes */
- #include "stvid.h"
- /* Exported Types ------------------------------------------------------ */
- #if defined(PIP_SUPPORT)
- #define VIDEO_USED 2
- #else
- #define VIDEO_USED 1
- #endif
- //TMTM added
- #define PRIMARY_DECODE 0
- #if defined(PIP_SUPPORT)
- #define SECONDARY_DECODE 1
- #endif
- /* Exported Constants -------------------------------------------------- */
- /* Exported Variables -------------------------------------------------- */
- extern STVID_ViewPortHandle_t VID_ViewPortHandle_Multiple[VIDEO_USED];
- extern STVID_Handle_t VID_Handle_Multiple[VIDEO_USED];
- extern ST_DeviceName_t VID_DeviceName_Multiple[VIDEO_USED];
- /* Exported Macros ----------------------------------------------------- */
- #define VID_ViewPortHandle VID_ViewPortHandle_Multiple[0]
- #define VID_Handle VID_Handle_Multiple[0]
- #define VID_DeviceName VID_DeviceName_Multiple[0]
- #define VID_DEVICE_TYPE STVID_DEVICE_TYPE_5105_MPEG
- #ifndef VIDEO_BASE_ADDRESS
- #define VIDEO_BASE_ADDRESS ST5105_VIDEO_BASE_ADDRESS
- #endif
- #define VID_BASE_ADDRESS2 0
- #define VID_BASE_ADDRESS3 0
- #ifndef VIDEO_INTERRUPT
- #define VIDEO_INTERRUPT ST5105_VIDEO_INTERRUPT
- #endif
- #ifndef SDRAM_BASE_ADDRESS
- #define SDRAM_BASE_ADDRESS 0xC0000000
- #endif
- /* Exported Functions -------------------------------------------------- */
- ST_ErrorCode_t VID_Setup(void);
- ST_ErrorCode_t VID_Link(U32 VidInst, U32 PTIInst);
- ST_ErrorCode_t VID_Unlink(U32 VidInst, U32 PTIInst);
- ST_ErrorCode_t VID_Start(STVID_StartParams_t *STVID_StartParams_p);
- ST_ErrorCode_t VID_ChangeAspectRatio(STGXOBJ_AspectRatio_t *Aspect_p);
- ST_ErrorCode_t VID_ChangeScanType(STVID_ScanType_t *ScanType_p);
- ST_ErrorCode_t Switch2Iframe(unsigned char *buffer,int number);
- ST_ErrorCode_t Switch2Live(void);
- #endif /* __VID_H */
- /* EOF --------------------------------------------------------------------- */