avslot.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:1k
- #ifndef __J_AVSLOT_H
- #define __J_AVSLOT_H
- #include "gendef.h"
- #include "stpti_hal.h"
- #include "stpti.h"
- /* Keep video, audio and pcr slot handle */
- enum
- {
- SLOTVID,
- SLOTAUD,
- SLOTPCR,
- NUM_PTI_SLOTS
- };
- extern STPTI_Slot_t PTI_SlotHandle_Multiple[KB_PTI_MAX_NUM][NUM_PTI_SLOTS];
- extern STPTI_Buffer_t PTI_AudioBufferHandle, PTI_VideoBufferHandle_Multiple[KB_PTI_MAX_NUM];
- #define PTI_SlotHandle PTI_SlotHandle_Multiple[0]
- #define PTI_VideoBufferHandle PTI_VideoBufferHandle_Multiple[0]
- /* APIs use for Video, Audio and PCR */
- ST_ErrorCode_t AVSlotInit(void);
- UINT32 StartAud(UINT16 AudioPid);
- UINT32 StopAud(void);
- UINT32 StartVid(UINT16 VideoPid);
- UINT32 StopVid(void);
- UINT32 StartPCR(UINT16 PCRPid);
- UINT32 StopPCR(void);
- #endif