| 1 | /**************************************************************************** |
|---|
| 2 | * Copyright (c) 2004 Digital Stream Technologies Inc. All Rights Reserved. |
|---|
| 3 | * |
|---|
| 4 | * Module: dsthalcc.h |
|---|
| 5 | * Author: Jun-ku Park, hwatk@dstreamtech.com |
|---|
| 6 | * Description: DST HAL CC |
|---|
| 7 | * |
|---|
| 8 | * |
|---|
| 9 | ***************************************************************************/ |
|---|
| 10 | |
|---|
| 11 | #ifndef __DST_HALCC_H__ |
|---|
| 12 | #define __DST_HALCC_H__ |
|---|
| 13 | |
|---|
| 14 | #include "dsthalcommon.h" |
|---|
| 15 | #include "dsthalcap.h" |
|---|
| 16 | |
|---|
| 17 | #define DHL_CAP_DEBUG 0 |
|---|
| 18 | |
|---|
| 19 | typedef void (*P_DHL_CAP_CBFUNC)(DS_U32); |
|---|
| 20 | |
|---|
| 21 | #define POLL_THREAD_DELAY 33 /* 1 msec unit, 33 --> 0.033 sec */ |
|---|
| 22 | |
|---|
| 23 | typedef enum { |
|---|
| 24 | DHL_CAP_CC_INPUT_START=1, |
|---|
| 25 | DHL_CAP_CC_NTSC_INPUT, |
|---|
| 26 | DHL_CAP_CC_YPBPR_INPUT, |
|---|
| 27 | DHL_CAP_CC_INPUT_END |
|---|
| 28 | } DHL_CAP_CC_INPUT; |
|---|
| 29 | |
|---|
| 30 | typedef void (*P_DHL_CAP_CC_CALLBACK)(DHL_CAP_CC_INPUT CCVideoSrc, DS_U8 nField, DS_U8 data1, DS_U8 data2); |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | typedef struct tag_DHL_CAP_CC_CONFIGURATION |
|---|
| 34 | { |
|---|
| 35 | DHL_CAP_CC_INPUT CCVideoSrc; |
|---|
| 36 | |
|---|
| 37 | P_DHL_CAP_CC_CALLBACK cbFunc[DHL_CAP_CC_INPUT_END]; |
|---|
| 38 | } DHL_CAP_CC_CONFIG, *P_DHL_CAP_CC_CONFIG; |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | #ifdef __cplusplus |
|---|
| 42 | extern "C" { |
|---|
| 43 | #endif |
|---|
| 44 | |
|---|
| 45 | DHL_RESULT DHL_CAP_CC_Init(void); |
|---|
| 46 | DHL_RESULT DHL_CAP_CC_PresetVideoSource( DHL_CAP_CC_INPUT videoInput ); |
|---|
| 47 | DHL_RESULT DHL_CAP_CC_ChangeVideoSource( DHL_CAP_CC_INPUT videoInput ); |
|---|
| 48 | DHL_RESULT DHL_CAP_CC_Start(void); |
|---|
| 49 | DHL_RESULT DHL_CAP_CC_Stop(void); |
|---|
| 50 | DHL_RESULT DHL_CAP_CC_Close(void); |
|---|
| 51 | DHL_RESULT DHL_CAP_CC_SetCallback( P_DHL_CAP_CC_CALLBACK cbFunc, DHL_CAP_CC_INPUT videoInput ); |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | #ifdef __cplusplus |
|---|
| 56 | } |
|---|
| 57 | #endif |
|---|
| 58 | |
|---|
| 59 | #endif /* __DST_HALCC_H__ */ |
|---|