regevent.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:3k
- /*****************************************************************************
- File Name : regevent.h
- Description: Test applications events header
- Copyright (C) 2004 STMicroelectronics
- *****************************************************************************/
- /* Define to prevent recursive inclusion */
- #ifndef __REGEVENT_H
- #define __REGEVENT_H
- /* Includes --------------------------------------------------------------- */
- #include "stddefs.h" /* STAPI includes */
- /* Exported Types ------------------------------------------------------ */
- /* Exported Constants -------------------------------------------------- */
- #define LAST_EVENT_TO_PROCESS 0
- /* Exported Variables -------------------------------------------------- */
- extern U32 VideoEvent_STVID_NEW_PICTURE_TO_BE_DISPLAYED_EVT_Count;
- extern U32 VideoEvent_Errors_Count;
- extern STEVT_EventConstant_t VideoEvent_NextToPrint;
- extern semaphore_t AspectRatioChangedSem;
- extern STGXOBJ_AspectRatio_t DisplayAspectRatio;
- #ifdef AUDIO_VIDEO_DECODE
- extern semaphore_t VideoEventSem;
- extern BOOL OutputWindowEnabled;
- #else
- extern S32 VideoEvent_STVID_SEQUENCE_INFO_EVT_Count;
- extern clock_t StartCodeEvtTimer,
- DisplayEvtTimer;
- extern semaphore_t ChannelChangeTimerSemaphore;
- #endif
- /* Required for Audio */
- extern U32 AudioEvent_STAUD_NEW_FRAME_EVT_Count;
- extern U32 AudioEvent_Errors_Count;
- extern STEVT_EventConstant_t AudioEvent_NextToPrint;
- /* Required for PTI */
- extern U32 StptiEvent_Errors_Count;
- extern STEVT_EventConstant_t StptiEvent_NextToPrint;
- #ifdef TTX_SUPPORT
- /* Required for Tele Text */
- extern U32 TeletextEvent_Errors_Count;
- extern STEVT_EventConstant_t TTXEvent_NextToPrint;
- #endif /* TTX_SUPPORT */
- /* Exported Macros ----------------------------------------------------- */
- /* Exported Functions -------------------------------------------------- */
- ST_ErrorCode_t RegisterEvents(void);
- ST_ErrorCode_t RegisterVideoEnableEvents(void);
- char *VideoEvent_EventToStr(STEVT_EventConstant_t Event);
- char *AudioEvent_EventToStr(STEVT_EventConstant_t Event);
- char *StptiEvent_EventToStr(STEVT_EventConstant_t Event);
- char *TTXEvent_EventToStr(STEVT_EventConstant_t Event);
- #endif /* __REGEVENT_H */
- /* EOF --------------------------------------------------------------------- */