6 #include "cc_decoder.h" 9 #define MAX_708_PACKET_LENGTH 128 10 #define CCX_DECODERS_708_MAX_SERVICES 8 11 #define I708_MAX_ROWS 15 12 #define I708_MAX_COLUMNS 42 13 #define I708_SCREENGRID_ROWS 75 14 #define I708_SCREENGRID_COLUMNS 210 15 #define I708_MAX_WINDOWS 8 17 enum COMMANDS_C0_CODES
29 enum COMMANDS_C1_CODES
69 const char *description;
74 enum eWindowsAttribJustify
82 enum eWindowsAttribPrintDirection
90 enum eWindowsAttribScrollDirection
98 enum eWindowsAttribScrollDisplayEffect
105 enum eWindowsAttribEffectDirection
113 enum eWindowsAttribFillOpacity
121 enum eWindowsAttribBorderType
138 enum ePenAttribFontStyle
140 fontstyle_default_or_undefined=0,
141 monospaced_with_serifs=1,
142 proportionally_spaced_with_serifs=2,
143 monospaced_without_serifs=3,
144 proportionally_spaced_without_serifs=4,
150 enum ePanAttribTextTag
153 texttag_source_or_speaker_id=1,
154 texttag_electronic_voice=2,
155 texttag_foreign_language=3,
157 texttag_audible_translation=5,
158 texttag_subtitle_translation=6,
159 texttag_voice_quality_description=7,
160 texttag_song_lyrics=8,
161 texttag_sound_effect_description=9,
162 texttag_musical_score_description=10,
163 texttag_expletive=11,
164 texttag_undefined_12=12,
165 texttag_undefined_13=13,
166 texttag_undefined_14=14,
167 texttag_not_to_be_displayed=15
170 enum ePanAttribOffset
177 enum ePanAttribEdgeType
181 edgetype_depressed=2,
183 edgetype_left_drop_shadow=4,
184 edgetype_right_drop_shadow=5
189 anchorpoint_top_left = 0,
190 anchorpoint_top_center = 1,
191 anchorpoint_top_right =2,
192 anchorpoint_middle_left = 3,
193 anchorpoint_middle_center = 4,
194 anchorpoint_middle_right = 5,
195 anchorpoint_bottom_left = 6,
196 anchorpoint_bottom_center = 7,
197 anchorpoint_bottom_right = 8
246 int anchor_horizontal;
252 unsigned char commands[6];
258 unsigned char *rows[I708_MAX_ROWS+1];
265 unsigned char chars[I708_SCREENGRID_ROWS][I708_SCREENGRID_COLUMNS+1];
280 void (*callback)(
int service,
void *userdata);
281 char text[I708_SCREENGRID_ROWS*I708_SCREENGRID_COLUMNS+1];
294 void Init(
void (*handler)(
int service,
void *userdata),
void *userdata);
295 void Decode(
const unsigned char *data,
int datalength);
299 unsigned char m_current_packet[MAX_708_PACKET_LENGTH];
300 int m_current_packet_length;
Definition: cc_decoder708.h:209
Definition: cc_decoder708.h:65
Definition: cc_decoder708.h:220
Definition: cc_decoder708.h:263
Definition: cc_decoder708.h:236
Definition: inftrees.h:24
Definition: cc_decoder708.h:200
Definition: cc_decoder708.h:289
Definition: cc_decoder.h:91
Definition: cc_decoder708.h:270