| 1 | /**************************************************************************** |
|---|
| 2 | *_Copyright (c) 2004 Digital Stream Technologies Inc. All Rights Reserved. |
|---|
| 3 | * |
|---|
| 4 | * Module: dstddcap.h |
|---|
| 5 | * Author: Jun-ku Park, hwatk@dstreamtech.com |
|---|
| 6 | * Description: Capturing audio and video from external source. |
|---|
| 7 | * |
|---|
| 8 | ***************************************************************************/ |
|---|
| 9 | #ifndef __DSTDDCAP_H__ |
|---|
| 10 | #define __DSTDDCAP_H__ |
|---|
| 11 | |
|---|
| 12 | #include "dsthaldtv.h" |
|---|
| 13 | |
|---|
| 14 | DHL_RESULT DD_CAP_Init(void); |
|---|
| 15 | DHL_RESULT DD_CAP_Close(void); |
|---|
| 16 | DHL_RESULT DD_CAP_Pause(DS_BOOL Focus); |
|---|
| 17 | DHL_RESULT DD_CAP_Resume(DS_BOOL Focus); |
|---|
| 18 | |
|---|
| 19 | DHL_RESULT DD_CAP_StartVideo(void); |
|---|
| 20 | DHL_RESULT DD_CAP_StopVideo(void); |
|---|
| 21 | DHL_RESULT DD_CAP_StartVideoPIP(void); |
|---|
| 22 | DHL_RESULT DD_CAP_StopVideoPIP(void); |
|---|
| 23 | DHL_RESULT DD_CAP_SelectVideoInput( DHL_CAP_VIDEO_INPUT audIn, DS_BOOL bFocus ); |
|---|
| 24 | DHL_RESULT DD_CAP_ChangeVideoFormat(DHL_VIDEO_FORMAT UserVideoFormat, DS_BOOL Update, DS_BOOL Focus); |
|---|
| 25 | |
|---|
| 26 | DHL_RESULT DD_CAP_VideoPause(DS_BOOL Focus); |
|---|
| 27 | DHL_RESULT DD_CAP_VideoResume(DS_BOOL Focus); |
|---|
| 28 | |
|---|
| 29 | DHL_RESULT DD_CAP_StartAudio(void); |
|---|
| 30 | DHL_RESULT DD_CAP_StopAudio(void); |
|---|
| 31 | int DD_CAP_GetAudioInFrequency(void); |
|---|
| 32 | DHL_RESULT DD_CAP_SetAudioInFrequency(int audInFreq); |
|---|
| 33 | |
|---|
| 34 | DS_BOOL DD_CAP_IsInputSrcValid(DS_BOOL bFocus); |
|---|
| 35 | DHL_RESULT DD_CAP_GetVideoTiming(DS_BOOL bFocus, DS_U16 *phRes, DS_U16 *pvRes, DS_U16 *pRefreshRate, DS_BOOL *pbInterlaced); |
|---|
| 36 | DS_U16 DD_CAP_GetSignalNoise(void); |
|---|
| 37 | void DD_CAP_SetAdaptiveNR(void); |
|---|
| 38 | |
|---|
| 39 | DS_U16 DD_CAP_GetFieldMotion(void); |
|---|
| 40 | DS_U16 DD_CAP_GetFrameMotion(void); |
|---|
| 41 | |
|---|
| 42 | void DD_CAP_ResetVBI(DS_BOOL bFocus); |
|---|
| 43 | DHL_RESULT DD_CAP_GetVBI(DS_BOOL bFocus, DS_U8 *pBuf, int *pLen); |
|---|
| 44 | DHL_RESULT DD_CAP_IsHDMIMode(DS_BOOL *bHDMI); |
|---|
| 45 | void DD_CAP_GetHDMIFmt(DS_U32 *phPix, DS_U32 *phTotal, DS_U32 *pvLine, DS_U32 *pvTotal); |
|---|
| 46 | void DD_CAP_GetRGBFmt(DS_U16 *pwHR, DS_U16 *pwVR, DS_U16 *pwHW, DS_U16 *pwVW, DS_U16 *pwPol); |
|---|
| 47 | void DD_CAP_SetSyncLock(int bEnable); |
|---|
| 48 | int DD_CAP_IsNTSCValud(void); |
|---|
| 49 | void DD_CAP_ClearSyncLock(void); |
|---|
| 50 | void DD_CAP_SetSyncLockEnable(int bEnable); |
|---|
| 51 | void DD_CAP_CheckNTSCLock(void); |
|---|
| 52 | void DD_CAP_ClearSyncLockOnMute(int En); |
|---|
| 53 | DS_BOOL DD_CAP_IsSrcChangeValid(DS_BOOL bFocus); |
|---|
| 54 | DHL_RESULT DD_CAP_GetVSyncDiff(int *piDiff, int *pVTotal, int *pDiff); |
|---|
| 55 | DHL_RESULT DD_CAP_EnableVSyncCapture(int En, int Line, int vFrameDrop, int vRangeLow, int vRangeHigh, int inVFreq); |
|---|
| 56 | void DD_CAP_InitVSyncCapture(DHL_VIDEO_FORMAT UserFmt); |
|---|
| 57 | |
|---|
| 58 | ////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 59 | // VGA Functions |
|---|
| 60 | ////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 61 | DHL_RESULT DD_CAP_SetVGADefault(void); |
|---|
| 62 | DHL_RESULT DD_CAP_SetVGAPhase(int Param); |
|---|
| 63 | DHL_RESULT DD_CAP_SetVGAClock(int Param); |
|---|
| 64 | DHL_RESULT DD_CAP_SetVGAHSize(int Param); |
|---|
| 65 | DHL_RESULT DD_CAP_SetVGAHPosition(int Param); |
|---|
| 66 | DHL_RESULT DD_CAP_SetVGAVSize(int Param); |
|---|
| 67 | DHL_RESULT DD_CAP_SetVGAVPosition(int Param); |
|---|
| 68 | DHL_RESULT DD_CAP_SetVGAAutoAdjustment(int Param); |
|---|
| 69 | DHL_RESULT DD_CAP_SetVGAAutoPhase(int Param); |
|---|
| 70 | |
|---|
| 71 | DHL_RESULT DD_CAP_GetVGAPhase(int *pParam); |
|---|
| 72 | DHL_RESULT DD_CAP_GetVGAClock(int *pParam); |
|---|
| 73 | DHL_RESULT DD_CAP_GetVGAHSize(int *pParam); |
|---|
| 74 | DHL_RESULT DD_CAP_GetVGAHPosition(int *pParam); |
|---|
| 75 | DHL_RESULT DD_CAP_GetVGAVSize(int *pParam); |
|---|
| 76 | DHL_RESULT DD_CAP_GetVGAVPosition(int *pParam); |
|---|
| 77 | |
|---|
| 78 | void DD_CAP_InvalidateVGACapData(void); |
|---|
| 79 | void DD_CAP_ValidateVGACapData(void); |
|---|
| 80 | void DD_CAP_SetCurrentVGACapture(void); |
|---|
| 81 | |
|---|
| 82 | DHL_RESULT DD_CAP_GetVGACapture(VGA_CAPTURE_t *vc); |
|---|
| 83 | DHL_RESULT DD_CAP_SetVGACapture(VGA_CAPTURE_t *vc); |
|---|
| 84 | DHL_RESULT DD_CAP_DoVGAAutoColor(VGA_ADC_t *va); |
|---|
| 85 | DHL_RESULT DD_CAP_SetVGAAutoColor(VGA_ADC_t *va); |
|---|
| 86 | |
|---|
| 87 | #endif /* __DSTDDCAP_H__ */ |
|---|