| 1 | #if !defined (_DDDTV_H_) |
|---|
| 2 | #define _DDDTV_H_ |
|---|
| 3 | |
|---|
| 4 | typedef enum { |
|---|
| 5 | DD_AUDIOMUTE_MAIN = 1, |
|---|
| 6 | DD_AUDIOMUTE_AUX, |
|---|
| 7 | DD_AUDIOMUTE_HP, |
|---|
| 8 | DD_AUDIOMUTE_SPDIF, |
|---|
| 9 | DD_AUDIOMUTE_AMP, |
|---|
| 10 | DD_AUDIOMUTE_CHANGESPDIF, |
|---|
| 11 | } DD_AUDIOMUTE; |
|---|
| 12 | |
|---|
| 13 | typedef enum { |
|---|
| 14 | DD_DTV_VIDEO_INIT, |
|---|
| 15 | DD_DTV_VIDEO_START, //start components |
|---|
| 16 | DD_DTV_VIDEO_STOP, //stop components |
|---|
| 17 | DD_DTV_VIDEO_PAUSE, |
|---|
| 18 | DD_DTV_VIDEO_CLOSE |
|---|
| 19 | }DD_VIDEO_STATUS; |
|---|
| 20 | |
|---|
| 21 | typedef enum { |
|---|
| 22 | DD_DTV_AUDIO_INIT, |
|---|
| 23 | DD_DTV_AUDIO_START, //start components |
|---|
| 24 | DD_DTV_AUDIO_STOP, //stop components |
|---|
| 25 | DD_DTV_AUDIO_PAUSE, |
|---|
| 26 | DD_DTV_AUDIO_CLOSE |
|---|
| 27 | }DD_AUDIO_STATUS; |
|---|
| 28 | |
|---|
| 29 | typedef struct tag_DST_VIDEO |
|---|
| 30 | { |
|---|
| 31 | DS_U16 uCurVidPID; |
|---|
| 32 | DS_U16 uCurPcrPID; |
|---|
| 33 | |
|---|
| 34 | // |
|---|
| 35 | // Video - Display °ü·Ã º¯¼ö |
|---|
| 36 | // |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | // |
|---|
| 41 | // Video °ü·Ã º¯¼ö |
|---|
| 42 | // |
|---|
| 43 | |
|---|
| 44 | DD_VIDEO_STATUS uCurVideoStatus; |
|---|
| 45 | |
|---|
| 46 | // |
|---|
| 47 | // Contrast/Brightness/Saturation/Tint |
|---|
| 48 | // |
|---|
| 49 | DS_U32 uContrast; //contrast |
|---|
| 50 | DS_U32 uBrightness; //brightness |
|---|
| 51 | DS_U32 uColor; //color saturation |
|---|
| 52 | DS_S32 uTint; //tint |
|---|
| 53 | |
|---|
| 54 | // |
|---|
| 55 | // Audio °ü·Ã º¯¼ö |
|---|
| 56 | // |
|---|
| 57 | |
|---|
| 58 | } DST_AV, *P_DST_AV; |
|---|
| 59 | |
|---|
| 60 | typedef struct tag_PES_MSG |
|---|
| 61 | { |
|---|
| 62 | DS_U32 Param; |
|---|
| 63 | DS_U8 *Buf; |
|---|
| 64 | }DST_PES_MSG, *P_DST_PES_MSG; |
|---|
| 65 | |
|---|
| 66 | #if defined __cplusplus |
|---|
| 67 | extern "C" { |
|---|
| 68 | #endif |
|---|
| 69 | |
|---|
| 70 | DHL_RESULT DD_DTV_Init(void); |
|---|
| 71 | DHL_RESULT DD_DTV_Start(DS_U16 uVidPID, DS_U16 uAudPID, DS_U16 uPcrPID, DHL_AUD_STREAMTYPE AudStreamType); |
|---|
| 72 | DHL_RESULT DD_DTV_Stop(void); |
|---|
| 73 | DHL_RESULT DD_DTV_Close(void); |
|---|
| 74 | DHL_RESULT DD_DTV_Pause(void); |
|---|
| 75 | DHL_RESULT DD_DTV_Resume(void); |
|---|
| 76 | |
|---|
| 77 | DHL_RESULT DD_DTV_VideoStart(DS_U16 uVidPID, DS_U16 uPcrPID); |
|---|
| 78 | DHL_RESULT DD_DTV_VideoStartEx(DS_U16 uVidPID, DS_U16 uPcrPID, DS_U16 uAudPID); |
|---|
| 79 | DHL_RESULT DD_DTV_VideoStartEx2(DS_U16 uVidPID, DS_U16 uPcrPID, DS_U8 Stream_Type); |
|---|
| 80 | DHL_RESULT DD_DTV_VideoStop(void); |
|---|
| 81 | |
|---|
| 82 | DHL_RESULT DD_DTV_IsVideoAlive(DS_BOOL *bVideo, DS_U32 uWatingTicks); |
|---|
| 83 | |
|---|
| 84 | DHL_RESULT DD_DTV_AudioStart(DS_U16 uAudPID, DS_U16 uPcrPID, DHL_AUD_STREAMTYPE AudStreamType, DS_BOOL bAudOnlyCh); |
|---|
| 85 | DHL_RESULT DD_DTV_AudioStop(void); |
|---|
| 86 | DHL_RESULT DD_DTV_IsAudioAlive(DS_BOOL *bAudio, DS_U32 uWatingTicks); |
|---|
| 87 | |
|---|
| 88 | DHL_RESULT DD_DTV_SetAudioDynamicRange(DS_BOOL On); |
|---|
| 89 | |
|---|
| 90 | DS_BOOL DD_DTV_IsVideoStarted(void); |
|---|
| 91 | DS_BOOL DD_DTV_IsAudioStarted(void); |
|---|
| 92 | DHL_RESULT DD_DTV_GetAC3Info(P_DHL_DTV_AC3_STATUS pAC3Status); |
|---|
| 93 | |
|---|
| 94 | DS_BOOL DD_DTV_IsAVStarted(void); |
|---|
| 95 | DS_BOOL DD_DTV_IsMpegDisplayStarted(void); |
|---|
| 96 | void DD_DTV_MpegDisplayHandler(void); |
|---|
| 97 | |
|---|
| 98 | DHL_RESULT DD_DTV_PresetPESCallback( DHL_DTV_PES_CALLBACK cbFunc ); |
|---|
| 99 | DHL_RESULT DD_DTV_StartPESFilter(DS_U16 uPESPid,DHL_PESFILTER *filter); |
|---|
| 100 | DHL_RESULT DD_DTV_StopPESFilter(DS_U16 uPESPid); |
|---|
| 101 | |
|---|
| 102 | #if defined __cplusplus |
|---|
| 103 | } |
|---|
| 104 | #endif |
|---|
| 105 | |
|---|
| 106 | #endif |
|---|