1
2
3 #ifndef __IL21DEC__
4 #define __IL21DEC__
5
6 typedef enum _AM_LINE21_CCSTYLE
7 {
8 AM_L21_CCSTYLE_None = 0,
9 AM_L21_CCSTYLE_PopOn,
10 AM_L21_CCSTYLE_PaintOn,
11 AM_L21_CCSTYLE_RollUp
12 } AM_LINE21_CCSTYLE, *PAM_LINE21_CCSTYLE;
13
14 typedef enum _AM_LINE21_CCSERVICE
15 {
16 AM_L21_CCSERVICE_None = 0,
17 AM_L21_CCSERVICE_Caption1,
18 AM_L21_CCSERVICE_Caption2,
19 AM_L21_CCSERVICE_Text1,
20 AM_L21_CCSERVICE_Text2,
21 AM_L21_CCSERVICE_XDS,
22 AM_L21_CCSERVICE_DefChannel = 10,
23 AM_L21_CCSERVICE_Invalid
24 } AM_LINE21_CCSERVICE, *PAM_LINE21_CCSERVICE;
25
26 typedef enum _AM_LINE21_DRAWBGMODE
27 {
28 AM_L21_DRAWBGMODE_Opaque,
29 AM_L21_DRAWBGMODE_Transparent
30 } AM_LINE21_DRAWBGMODE, *PAM_LINE21_DRAWBGMODE;
31
32 typedef enum _AM_LINE21_CCSTATE
33 {
34 AM_L21_CCSTATE_Off = 0,
35 AM_L21_CCSTATE_On
36 } AM_LINE21_CCSTATE, *PAM_LINE21_CCSTATE;
37
38 typedef enum _AM_LINE21_CCLEVEL
39 {
40 AM_L21_CCLEVEL_TC2 = 0
41 } AM_LINE21_CCLEVEL, *PAM_LINE21_CCLEVEL;
42
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46
DECLARE_INTERFACE_(IAMLine21Decoder,IUnknown)47 DECLARE_INTERFACE_(IAMLine21Decoder, IUnknown)
48 {
49 public:
50 STDMETHOD(GetDecoderLevel)(THIS_ AM_LINE21_CCLEVEL *lpLevel) PURE;
51 STDMETHOD(GetCurrentService)(THIS_ AM_LINE21_CCSERVICE *lpService) PURE;
52 STDMETHOD(SetCurrentService)(THIS_ AM_LINE21_CCSERVICE Service) PURE;
53 STDMETHOD(GetServiceState)(THIS_ AM_LINE21_CCSTATE *lpState) PURE;
54 STDMETHOD(SetServiceState)(THIS_ AM_LINE21_CCSTATE State) PURE;
55 STDMETHOD(GetOutputFormat)(THIS_ LPBITMAPINFOHEADER lpbmih) PURE;
56 STDMETHOD(SetOutputFormat)(THIS_ LPBITMAPINFO lpbmi) PURE;
57 STDMETHOD(GetBackgroundColor)(THIS_ DWORD *pdwPhysColor) PURE;
58 STDMETHOD(SetBackgroundColor)(THIS_ DWORD dwPhysColor) PURE;
59 STDMETHOD(GetRedrawAlways)(THIS_ LPBOOL lpbOption) PURE;
60 STDMETHOD(SetRedrawAlways)(THIS_ BOOL bOption) PURE;
61 STDMETHOD(GetDrawBackgroundMode)(THIS_ AM_LINE21_DRAWBGMODE *lpMode) PURE;
62 STDMETHOD(SetDrawBackgroundMode)(THIS_ AM_LINE21_DRAWBGMODE Mode) PURE;
63 } ;
64
65 #ifdef __cplusplus
66 }
67 #endif
68 #endif
69