Lines Matching defs:cc
792 static bool isNullPad(CCData *cc) {
793 return cc->mData1 < 0x10 && cc->mData2 < 0x10;
803 CCData *cc = (CCData *) (ccBuf->data() + offset);
805 if (isNullPad(cc)) {
811 if (cc->mData1 >= 0x20 && cc->mData1 <= 0x7f) {
813 sprintf(tmp, "[%d]Basic: %c %c", cc->mType, cc->mData1, cc->mData2);
814 } else if ((cc->mData1 == 0x11 || cc->mData1 == 0x19)
815 && cc->mData2 >= 0x30 && cc->mData2 <= 0x3f) {
817 sprintf(tmp, "[%d]Special: %02x %02x", cc->mType, cc->mData1, cc->mData2);
818 } else if ((cc->mData1 == 0x12 || cc->mData1 == 0x1A)
819 && cc->mData2 >= 0x20 && cc->mData2 <= 0x3f){
821 sprintf(tmp, "[%d]Spanish: %02x %02x", cc->mType, cc->mData1, cc->mData2);
822 } else if ((cc->mData1 == 0x13 || cc->mData1 == 0x1B)
823 && cc->mData2 >= 0x20 && cc->mData2 <= 0x3f){
825 sprintf(tmp, "[%d]German: %02x %02x", cc->mType, cc->mData1, cc->mData2);
826 } else if ((cc->mData1 == 0x11 || cc->mData1 == 0x19)
827 && cc->mData2 >= 0x20 && cc->mData2 <= 0x2f){
829 sprintf(tmp, "[%d]Mid-row: %02x %02x", cc->mType, cc->mData1, cc->mData2);
830 } else if (((cc->mData1 == 0x14 || cc->mData1 == 0x1c)
831 && cc->mData2 >= 0x20 && cc->mData2 <= 0x2f)
833 ((cc->mData1 == 0x17 || cc->mData1 == 0x1f)
834 && cc->mData2 >= 0x21 && cc->mData2 <= 0x23)){
836 sprintf(tmp, "[%d]Ctrl: %02x %02x", cc->mType, cc->mData1, cc->mData2);
837 } else if ((cc->mData1 & 0x70) == 0x10
838 && (cc->mData2 & 0x40) == 0x40
839 && ((cc->mData1 & 0x07) || !(cc->mData2 & 0x20)) ) {
841 sprintf(tmp, "[%d]PAC: %02x %02x", cc->mType, cc->mData1, cc->mData2);
843 sprintf(tmp, "[%d]Invalid: %02x %02x", cc->mType, cc->mData1, cc->mData2);
929 // returns true if a new CC track is found
1001 CCData cc(cc_type, cc_data_1, cc_data_2);
1002 if (!isNullPad(&cc)) {
1004 if (cc.getChannel(&channel) && getTrackIndex(channel) < 0) {
1010 (void *)&cc, sizeof(cc));
1063 // TODO: extract CC from other sources
1074 ALOGV("cc for timestamp %" PRId64 " not found", timeUs);