avplay.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:3k
- #ifndef _AVAPPLET_H_
- #define _AVAPPLET_H_
- #include "osp.h"
- #include "db.h"
- #include "av.h"
- typedef enum
- {
- KB_DTVRUN,
- KB_DTVSTOP,
- KB_DTVOK,
- KB_DTVFAIL,
- KB_DTVNoSignal
- }KB_DTVStatus;
- typedef struct
- {
- INT32 prgType;
- INT32 ndtvNO;
- INT32 nradNO;
- }KB_DTVSinglePrgInfo;
- typedef struct
- {
- int prgType;
- int prgNO;
- int nSvcID;
- UINT32 nFrequency;
- UINT32 nSymbol;
- UINT8 nQamTyep;
- }KB_DTVPrgAVInfo;
- typedef void (*KB_DTVRunCallback)(int intype);
- INT32 KB_DTVHandleMsg(KB_OSPMsgNode *pInMsg);
- INT32 KB_DTVStart(UINT32 nVideoPid, UINT32 nAudioPid, UINT32 nPcrPid);
- INT32 KB_DTVStop(void);
- INT32 KB_DTVRun(void);
- INT32 KB_DTVStopAV(void);
- INT32 KB_DTVStartIFrame(UINT8 *pInData, INT32 nDataSize);
- INT32 KB_DTVStopIFrame(void);
- INT32 KB_DTVStartCA(INT32 nTsId, INT32 nSvcID);
- KB_DTVRunCallback KB_DTVCallBack(KB_DTVRunCallback ptCallback);
- INT32 KB_DTVInit(void);
- INT32 KB_DTVCreate(void);
- INT32 KB_DTVDestroy(void);
- INT32 KB_DTVAVHandleMsg(KB_OSPMsgNode *pInMsg);
- INT32 KB_DTVSetPreChnnl(void);
- INT32 KB_DTVSetPrg(int prgType, int prgNO);
- INT32 KB_DTVGetPrg(int *pPrgType, int *pPrgNO);
- INT32 KB_DTVGetPreDtvNO(void);
- INT32 KB_DTVGetPreRadNO(void);
- INT32 KB_DTVGetPrePrgType(void);
- INT32 KB_DTVSetVolume(UINT8 nVolume);
- INT32 KB_DTVGetVolume(void);
- INT32 KB_DTVSaveCurVolume(void);
- INT32 KB_DTVMute(BOOL nMute);
- INT32 KB_DTVGetMuteFlag(void);
- INT32 KB_DTVRunNextPrg(KB_DBPRGType prgType);
- INT32 KB_DTVRunPrePrg(KB_DBPRGType prgType);
- KB_DTVStatus KB_DTVGetRunFlag(void);
- INT32 KB_DTVGetEitPF(void);
- INT32 KB_DTVGetClass(INT32 nPrgType);
- void KB_DTVSetClass(INT32 nPrgType, INT32 iPlayClass);
- INT32 KB_DTVSetTrack(KB_DBTRACK nTrackType);
- KB_DBTRACK KB_DTVGetTrack(void);
- INT32 KB_DTVSetNextPrg(KB_DBPRGType prgType);
- INT32 KB_DTVSetPrePrg(KB_DBPRGType prgType);
- INT32 KB_DTVSetRetPrg(KB_DBPRGType nCurPrg);
- INT32 KB_DTVGetRetDtvNO(void);
- INT32 KB_DTVGetRetRadNO(void);
- INT32 KB_DTVGetRetPrgType(void);
- //added by whale 07/06/03
- void KB_DTVPlayPrg(int prgType, int prgNO);
- void KB_DTVPlayCurPrg(void);
- void KB_DTVPlayPrePrg(void);
- void KB_DTVPlayNexPrg(void);
- int KB_DTVGetCurrentProgramNo(void);
- INT32 KB_DTVPrgSwitch(KB_DBPRGType type);
- void KB_DTVVolumeAdd(void);
- void KB_DTVVolumeReduce(void);
- BOOL KB_DTVGetCurPrgInfo(unsigned short *pTsID, unsigned short *pServID);
- void KB_DTVDisplayCurPrgInfo(void);
- void KB_DTVRunForNvod(void);
- void KB_DTVStartCurCAProg(void);
- #endif
- /* EOF */