📄 viddec_api.h
字号:
/******************************************************************************
* File name : Viddec_api.h
* Start date : 28.12.2004
* By : Brahmanandan K
* Contact : kbrahma@samsung.com
* Description : Header file for Video decoder API.
******************************************************************************
*/
#ifndef _VIDDEC_API_H_
#define _VIDDEC_API_H_
/* {{{ Includes */
#include "Basic_typedefs.h"
#include "S5h_capability.h"
/* }}} */
#define VD_QUEUE_SIZE 10
#define VIDMGR_TIMEOUT 0x1200
#define VIDDEC_SENDER_PSD 0x41
#define VIDDEC_SENDER_VD 0x42
#define VIDDEC_SENDER_SDOUT 0x43
#define VIDDEC_SENDER_APP 0x44
#define EV_VIDEO_DEC_INIT 0x30
#define EV_VIDEO_INPUT_BUFF_FULL 0x31
#define EV_VIDEO_INPUT_BUFF_EMPTY 0x32
#define EV_VIDEO_OUTPUT_BUFF_FULL 0x33
#define EV_VIDEO_OUTPUT_BUFF_EMPTY 0x34
#define EV_VIDEO_ERROR 0x35
#define EV_VIDEO_SEQUENCE_END 0x36
#define EV_VIDEO_DEC_HDL_END_STILL 0x37
#define EV_VIDEO_DEC_SET_SEQ_HDR 0x38
/* Error Types */
#define VD_ERR_SET_ERROR 0x21
#define VD_ERR_CORRUPT_OVFL 0x22
#define VD_ERR_WRG_CMD 0x23
#define VD_ERR_TIMEOUT 0x24
/* Seq Header set types */
#define SEQ_HDR_SET_PREV 0x40
#define SEQ_HDR_SET_NAVI 0x41
/* Error counts */
#define VD_SET_ERROR_MAX_COUNT 2
#define VD_CORR_OVFL_MAX_COUNT 1
#define VD_TIME_OUT_MAX_COUNT 1
typedef struct {
UCHAR sender;
UCHAR param;
UCHAR ext1;
UCHAR ext2;
}VDEvent_t;
/* {{{ Function */
VOID CreateVideoDec ( VOID );
VOID RunVideoDec ( VOID );
VOID KillVideoDec ( VOID );
VOID VideoDecSetCmd ( UCHAR ucSender, UCHAR ucCmd, UCHAR ucRes );
VOID HandleVideoInputFull ( VOID );
VOID HandleVideoInputEmpty ( VOID );
VOID HandleVideoOutputFull ( VOID );
VOID HandleError ( UCHAR ucErrorType );
VOID HandleErrorReset ( VOID );
VOID HandleOutputBufferFullStill ( VOID );
VOID HandleVideoSequenceEnd(void);
VOID HandleVideoDecInitialize( VOID );
VOID HandleVideoDecEndOfStillPic ( VOID );
VOID Video_freeze_on(void);
VOID Video_freeze_off(void);
BOOL PlayMem ( ULONG ulAddr, ULONG ulSize );
VOID VD_PlayLogo ( VOID );
VOID VD_ClearLogoState ( VOID );
VOID VDSetPictureOutput ( VOID *pBuf );
VOID VDDecodeFrame ( UINT uiFrameType );
VOID CallBack_FrameReadBufferAvail ( VOID );
VOID VDSetSeqHdr ( UINT16 ui16Horiz, UINT16 ui16Vert );
VOID VDStartUpdateModeChange ( UINT16 uiHorizSize, UINT16 ui16VertSize );
BOOL VDCheckMacroBlock ( VOID );
/* }}} */
#endif /* _VIDDEC_API_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -