1 #include "ccx_common_constants.h" 2 3 // RCWT header (11 bytes): 4 //byte(s) value description (All values below are hex numbers, not 5 // actual numbers or values 6 //0-2 CCCCED magic number, for Closed Caption CC Extractor Data 7 //3 CC Creating program. Legal values: CC = CC Extractor 8 //4-5 0050 Program version number 9 //6-7 0001 File format version 10 //8-10 000000 Padding, required :-) 11 unsigned char rcwt_header[11]={0xCC, 0xCC, 0xED, 0xCC, 0x00, 0x50, 0, 1, 0, 0, 0}; 12 13 const unsigned char BROADCAST_HEADER[]={0xff, 0xff, 0xff, 0xff}; 14 const unsigned char LITTLE_ENDIAN_BOM[]={0xff, 0xfe}; 15 const unsigned char UTF8_BOM[]={0xef, 0xbb,0xbf}; 16 17 const unsigned char DVD_HEADER[8]={0x00,0x00,0x01,0xb2,0x43,0x43,0x01,0xf8}; 18 const unsigned char lc1[1]={0x8a}; 19 const unsigned char lc2[1]={0x8f}; 20 const unsigned char lc3[2]={0x16,0xfe}; 21 const unsigned char lc4[2]={0x1e,0xfe}; 22 const unsigned char lc5[1]={0xff}; 23 const unsigned char lc6[1]={0xfe}; 24 25 const double framerates_values[16]= 26 { 27 0, 28 24000.0/1001, /* 23.976 */ 29 24.0, 30 25.0, 31 30000.0/1001, /* 29.97 */ 32 30.0, 33 50.0, 34 60000.0/1001, /* 59.94 */ 35 60.0, 36 0, 37 0, 38 0, 39 0, 40 0 41 }; 42 43 const char *framerates_types[16]= 44 { 45 "00 - forbidden", 46 "01 - 23.976", 47 "02 - 24", 48 "03 - 25", 49 "04 - 29.97", 50 "05 - 30", 51 "06 - 50", 52 "07 - 59.94", 53 "08 - 60", 54 "09 - reserved", 55 "10 - reserved", 56 "11 - reserved", 57 "12 - reserved", 58 "13 - reserved", 59 "14 - reserved", 60 "15 - reserved" 61 }; 62 63 const char *aspect_ratio_types[16]= 64 { 65 "00 - forbidden", 66 "01 - 1:1", 67 "02 - 4:3", 68 "03 - 16:9", 69 "04 - 2.21:1", 70 "05 - reserved", 71 "06 - reserved", 72 "07 - reserved", 73 "08 - reserved", 74 "09 - reserved", 75 "10 - reserved", 76 "11 - reserved", 77 "12 - reserved", 78 "13 - reserved", 79 "14 - reserved", 80 "15 - reserved" 81 }; 82 83 84 const char *pict_types[8]= 85 { 86 "00 - ilegal (0)", 87 "01 - I", 88 "02 - P", 89 "03 - B", 90 "04 - ilegal (D)", 91 "05 - ilegal (5)", 92 "06 - ilegal (6)", 93 "07 - ilegal (7)" 94 }; 95 96 97 const char *slice_types[10]= 98 { 99 "0 - P", 100 "1 - B", 101 "2 - I", 102 "3 - SP", 103 "4 - SI", 104 "5 - P", 105 "6 - B", 106 "7 - I", 107 "8 - SP", 108 "9 - SI" 109 }; 110 111 const char *cc_types[4] = 112 { 113 "NTSC line 21 field 1 closed captions", 114 "NTSC line 21 field 2 closed captions", 115 "DTVCC Channel Packet Data", 116 "DTVCC Channel Packet Start" 117 }; 118 119 enum 120 { 121 NTSC_CC_f1 = 0, 122 NTSC_CC_f2 = 1, 123 DTVCC_PACKET_DATA = 2, 124 DTVCC_PACKET_START = 3, 125 }; 126 127 /** 128 * After Adding a new language here, dont forget 129 * to increase NB_LANGUAGE define ccx_common_constants.h 130 */ 131 const char *language[NB_LANGUAGE] = 132 { 133 /*0*/"und", //Undefined 134 /*1*/"eng", 135 /*2*/"afr", 136 /*3*/"amh", 137 /*4*/"ara", 138 /*5*/"asm", 139 /*6*/"aze", 140 /*7*/"bel", 141 /*8*/"ben", 142 /*9*/"bod", 143 /*10*/"bos", 144 /*11*/"bul", 145 /*12*/"cat", 146 /*13*/"ceb", 147 /*14*/"ces", 148 /*15*/"chs", 149 /*16*/"chi", 150 /*17*/"chr", 151 /*18*/"cym", 152 /*19*/"dan", 153 /*20*/"deu", 154 /*21*/"dzo", 155 /*22*/"ell", 156 /*23*/"enm", 157 /*24*/"epo", 158 /*25*/"equ", 159 /*26*/"est", 160 /*27*/"eus", 161 /*28*/"fas", 162 /*29*/"fin", 163 /*30*/"fra", 164 /*31*/"frk", 165 /*32*/"frm", 166 /*33*/"gle", 167 /*34*/"glg", 168 /*35*/"grc", 169 /*36*/"guj", 170 /*37*/"hat", 171 /*38*/"heb", 172 /*39*/"hin", 173 /*40*/"hrv", 174 /*41*/"hun", 175 /*42*/"iku", 176 /*43*/"ind", 177 /*44*/"isl", 178 /*45*/"ita", 179 /*46*/"jav", 180 /*47*/"jpn", 181 /*48*/"kan", 182 /*49*/"kat", 183 /*50*/"kaz", 184 /*51*/"khm", 185 /*52*/"kir", 186 /*53*/"kor", 187 /*54*/"kur", 188 /*55*/"lao", 189 /*56*/"lat", 190 /*57*/"lav", 191 /*58*/"lit", 192 /*59*/"mal", 193 /*60*/"mar", 194 /*61*/"mkd", 195 /*62*/"mlt", 196 /*63*/"msa", 197 /*64*/"mya", 198 /*65*/"nep", 199 /*66*/"nld", 200 /*67*/"nor", 201 /*68*/"ori", 202 /*69*/"osd", 203 /*70*/"pan", 204 /*71*/"pol", 205 /*72*/"por", 206 /*73*/"pus", 207 /*74*/"ron", 208 /*75*/"rus", 209 /*76*/"san", 210 /*77*/"sin", 211 /*78*/"slk", 212 /*79*/"slv", 213 /*80*/"spa", 214 /*81*/"sqi", 215 /*82*/"srp", 216 /*83*/"swa", 217 /*84*/"swe", 218 /*85*/"syr", 219 /*86*/"tam", 220 /*87*/"tel", 221 /*88*/"tgk", 222 /*89*/"tgl", 223 /*90*/"tha", 224 /*91*/"tir", 225 /*92*/"tur", 226 /*93*/"uig", 227 /*94*/"ukr", 228 /*95*/"urd", 229 /*96*/"uzb", 230 /*97*/"vie", 231 /*98*/"yid", 232 NULL 233 }; 234