1 /******************************************************************************
5 / Description: Closed caption module.
7 / Copyright 2001, Carlos Hasan
9 *******************************************************************************/
24 C_RADEON_CC_VBI_LINE_WIDTH
= 2048,
25 C_RADEON_CC_BLANK_START
= 4*112,
26 C_RADEON_CC_VBI_LINE_NUMBER
= 19,
27 C_RADEON_CC_BIT_DURATION
= 56,
28 C_RADEON_CC_BITS_PER_FIELD
= 16,
29 C_RADEON_CC_LEVEL_THRESHOLD
= 32,
31 C_RADEON_CC_LINE
= 21,
33 C_RADEON_CC_CHANNELS
= 4,
34 C_RADEON_CC_ROWS
= 15,
35 C_RADEON_CC_COLUMNS
= 32
40 CCaption(CCapture
& capture
);
44 status_t
InitCheck() const;
46 void SetMode(cc_mode mode
);
48 bool Decode(const unsigned char * buffer0
,
49 const unsigned char * buffer1
);
52 bool DecodeBits(const unsigned char * buffer
, int & data
);
54 void DisplayCaptions() const;
63 short fText
[C_RADEON_CC_ROWS
][C_RADEON_CC_COLUMNS
];
64 short fDisplayText
[C_RADEON_CC_ROWS
][C_RADEON_CC_COLUMNS
];