Lines Matching refs:cc

53 static bool isNullPad(CCData *cc) {  in isNullPad()  argument
54 return cc->mData1 < 0x10 && cc->mData2 < 0x10; in isNullPad()
65 CCData *cc = (CCData *) (ccBuf->data() + offset); in dumpBytePair() local
67 if (isNullPad(cc)) { in dumpBytePair()
73 if (cc->mData1 >= 0x20 && cc->mData1 <= 0x7f) { in dumpBytePair()
75 snprintf(tmp, sizeof(tmp), "[%d]Basic: %c %c", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
76 } else if ((cc->mData1 == 0x11 || cc->mData1 == 0x19) in dumpBytePair()
77 && cc->mData2 >= 0x30 && cc->mData2 <= 0x3f) { in dumpBytePair()
79 snprintf(tmp, sizeof(tmp), "[%d]Special: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
80 } else if ((cc->mData1 == 0x12 || cc->mData1 == 0x1A) in dumpBytePair()
81 && cc->mData2 >= 0x20 && cc->mData2 <= 0x3f){ in dumpBytePair()
83 snprintf(tmp, sizeof(tmp), "[%d]Spanish: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
84 } else if ((cc->mData1 == 0x13 || cc->mData1 == 0x1B) in dumpBytePair()
85 && cc->mData2 >= 0x20 && cc->mData2 <= 0x3f){ in dumpBytePair()
87 snprintf(tmp, sizeof(tmp), "[%d]German: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
88 } else if ((cc->mData1 == 0x11 || cc->mData1 == 0x19) in dumpBytePair()
89 && cc->mData2 >= 0x20 && cc->mData2 <= 0x2f){ in dumpBytePair()
91 snprintf(tmp, sizeof(tmp), "[%d]Mid-row: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
92 } else if (((cc->mData1 == 0x14 || cc->mData1 == 0x1c) in dumpBytePair()
93 && cc->mData2 >= 0x20 && cc->mData2 <= 0x2f) in dumpBytePair()
95 ((cc->mData1 == 0x17 || cc->mData1 == 0x1f) in dumpBytePair()
96 && cc->mData2 >= 0x21 && cc->mData2 <= 0x23)){ in dumpBytePair()
98 snprintf(tmp, sizeof(tmp), "[%d]Ctrl: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
99 } else if ((cc->mData1 & 0x70) == 0x10 in dumpBytePair()
100 && (cc->mData2 & 0x40) == 0x40 in dumpBytePair()
101 && ((cc->mData1 & 0x07) || !(cc->mData2 & 0x20)) ) { in dumpBytePair()
103 snprintf(tmp, sizeof(tmp), "[%d]PAC: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
105 snprintf(tmp, sizeof(tmp), "[%d]Invalid: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
416 CCData cc(cc_type, cc_data_1, cc_data_2); in parseMPEGCCData() local
418 if (isNullPad(&cc)) { in parseMPEGCCData()
423 if (cc.getChannel(&channel)) { in parseMPEGCCData()
436 memcpy(line21CCBuf->data() + line21CCBuf->size(), &cc, sizeof(cc)); in parseMPEGCCData()