Lines Matching refs:br
255 NALBitReader br(data + 1, size - 1); in parseSEINalUnit() local
258 while (br.atLeastNumBitsLeft(16)) { // at least 16-bit for sei_message() in parseSEINalUnit()
264 last_byte = br.getBits(8); in parseSEINalUnit()
269 last_byte = br.getBits(8); in parseSEINalUnit()
274 || !br.atLeastNumBitsLeft(payload_size * 8)) { in parseSEINalUnit()
286 uint8_t itu_t_t35_country_code = br.getBits(8); in parseSEINalUnit()
287 uint16_t itu_t_t35_provider_code = br.getBits(16); in parseSEINalUnit()
288 uint32_t user_identifier = br.getBits(32); in parseSEINalUnit()
289 uint8_t user_data_type_code = br.getBits(8); in parseSEINalUnit()
300 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); in parseSEINalUnit()
309 br.skipBits(payload_size * 8); in parseSEINalUnit()
351 ABitReader br(data + 4, 5); in parseMPEGUserDataUnit() local
353 uint32_t user_identifier = br.getBits(32); in parseMPEGUserDataUnit()
354 uint8_t user_data_type = br.getBits(8); in parseMPEGUserDataUnit()
369 ABitReader br(data, size); in parseMPEGCCData() local
371 if (br.numBitsLeft() <= 16) { in parseMPEGCCData()
375 br.skipBits(1); in parseMPEGCCData()
376 bool process_cc_data_flag = br.getBits(1); in parseMPEGCCData()
377 br.skipBits(1); in parseMPEGCCData()
378 size_t cc_count = br.getBits(5); in parseMPEGCCData()
379 br.skipBits(8); in parseMPEGCCData()
381 if (!process_cc_data_flag || 3 * 8 * cc_count >= br.numBitsLeft()) { in parseMPEGCCData()
388 br.skipBits(5); in parseMPEGCCData()
389 bool cc_valid = br.getBits(1); in parseMPEGCCData()
390 uint8_t cc_type = br.getBits(2); in parseMPEGCCData()
399 memcpy(mDTVCCPacket->data() + mDTVCCPacket->size(), br.data(), 2); in parseMPEGCCData()
401 br.skipBits(16); in parseMPEGCCData()
404 memcpy(mDTVCCPacket->data() + mDTVCCPacket->size(), br.data(), 2); in parseMPEGCCData()
411 br.skipBits(16); in parseMPEGCCData()
413 uint8_t cc_data_1 = br.getBits(8) & 0x7f; in parseMPEGCCData()
414 uint8_t cc_data_2 = br.getBits(8) & 0x7f; in parseMPEGCCData()
440 br.skipBits(16); in parseMPEGCCData()
447 br.skipBits(16); in parseMPEGCCData()
462 ABitReader br(data, size); in parseDTVCCPacket() local
463 br.skipBits(2); in parseDTVCCPacket()
465 size_t packet_size = br.getBits(6); in parseDTVCCPacket()
475 while (br.numBitsLeft() >= 16) { in parseDTVCCPacket()
477 uint8_t service_number = br.getBits(3); in parseDTVCCPacket()
478 size_t block_size = br.getBits(5); in parseDTVCCPacket()
481 br.skipBits(2); in parseDTVCCPacket()
482 service_number = br.getBits(6); in parseDTVCCPacket()
489 if (br.numBitsLeft() < block_size * 8) { in parseDTVCCPacket()
502 memcpy(ccPacket->data(), br.data(), block_size); in parseDTVCCPacket()
506 br.skipBits(block_size * 8); in parseDTVCCPacket()