Home
last modified time | relevance | path

Searched refs:numBitsLeft (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/libstagefright/rtsp/
DAMPEG4ElementaryAssembler.cpp265 unsigned numBitsLeft = AU_headers_length; in addPacket() local
269 if (numBitsLeft < mSizeLength) { break; } in addPacket()
272 numBitsLeft -= mSizeLength; in addPacket()
275 if (numBitsLeft < n) { break; } in addPacket()
278 numBitsLeft -= n; in addPacket()
287 if (numBitsLeft < 1) { in addPacket()
290 --numBitsLeft; in addPacket()
292 if (numBitsLeft < mCTSDeltaLength) { in addPacket()
296 numBitsLeft -= mCTSDeltaLength; in addPacket()
301 if (numBitsLeft < 1) { in addPacket()
[all …]
DAMPEG4AudioAssembler.cpp147 size_t totalNumBits = bits->numBitsLeft(); in parseAudioSpecificConfig()
194 if (extensionAudioObjectType != 5 && bits->numBitsLeft() >= 16) { in parseAudioSpecificConfig()
195 size_t numBitsLeftAtStart = bits->numBitsLeft(); in parseAudioSpecificConfig()
214 numBitsLeftAtStart - bits->numBitsLeft(); in parseAudioSpecificConfig()
235 totalNumBits -= bits->numBitsLeft(); in parseAudioSpecificConfig()
/frameworks/av/media/libstagefright/foundation/
DABitReader.cpp127 size_t ABitReader::numBitsLeft() const { in numBitsLeft() function in android::ABitReader
142 size_t numBits = numBitsLeft(); in atLeastNumBitsLeft()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2CCDecoder.cpp287 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); in parseSEINalUnit()
347 if (br.numBitsLeft() <= 16) { in parseMPEGCCData()
357 if (!process_cc_data_flag || 3 * 8 * cc_count >= br.numBitsLeft()) { in parseMPEGCCData()
445 while (br.numBitsLeft() >= 16) { in parseDTVCCPacket()
459 if (br.numBitsLeft() < block_size * 8) { in parseDTVCCPacket()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerCCDecoder.cpp288 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); in parseSEINalUnit()
348 if (br.numBitsLeft() <= 16) { in parseMPEGCCData()
358 if (!process_cc_data_flag || 3 * 8 * cc_count >= br.numBitsLeft()) { in parseMPEGCCData()
446 while (br.numBitsLeft() >= 16) { in parseDTVCCPacket()
460 if (br.numBitsLeft() < block_size * 8) { in parseDTVCCPacket()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DABitReader.h54 size_t numBitsLeft() const;
/frameworks/av/media/extractors/mpeg2/
DMPEG2PSExtractor.cpp510 if (br.numBitsLeft() < optional_bytes_remaining * 8) { in dequeuePES()
525 if (br.numBitsLeft() < dataLength * 8) { in dequeuePES()
528 br.numBitsLeft(), dataLength * 8); in dequeuePES()
533 if (br.numBitsLeft() < dataLength * 8) { in dequeuePES()
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp946 size_t payloadSizeBits = br->numBitsLeft(); in parse()
1243 if (br->numBitsLeft() < dataLength * 8) { in parsePES()
1246 br->numBitsLeft(), dataLength * 8); in parsePES()
1262 br->data(), br->numBitsLeft() / 8, pesOffset, event); in parsePES()
1264 size_t payloadSizeBits = br->numBitsLeft(); in parsePES()
1298 if (br->numBitsLeft() < 48) { in getPesScramblingControl()
1331 if (PES_header_data_length * 8 > br->numBitsLeft()) { in getPesScramblingControl()
1845 if (br->numBitsLeft() % 8 != 0) { in parsePID()
1848 status_t err = section->append(br->data(), br->numBitsLeft() / 8); in parsePID()
1930 if (adaptation_field_length * 8 > br->numBitsLeft()) { in parseAdaptationField()
[all …]
DESQueue.cpp119 if (bits.numBitsLeft() < 16) { in parseAC3SyncFrame()
126 if (bits.numBitsLeft() < 16 + 2 + 6 + 5 + 3 + 3) { in parseAC3SyncFrame()
157 if (bits.numBitsLeft() < 2) { in parseAC3SyncFrame()
163 if (bits.numBitsLeft() < 2) { in parseAC3SyncFrame()
169 if (bits.numBitsLeft() < 2) { in parseAC3SyncFrame()
175 if (bits.numBitsLeft() < 1) { in parseAC3SyncFrame()
DCasManager.cpp339 ecm.setToExternal((uint8_t*)br->data(), br->numBitsLeft() / 8); in parsePID()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp3623 if (br.numBitsLeft() < 28) return ERROR_MALFORMED; in updateAudioTrackInfoFromESDS_MPEG4Audio()
3627 if (br.numBitsLeft() < 4) return ERROR_MALFORMED; in updateAudioTrackInfoFromESDS_MPEG4Audio()
3638 if (br.numBitsLeft() < 4) return ERROR_MALFORMED; in updateAudioTrackInfoFromESDS_MPEG4Audio()
3645 if (br.numBitsLeft() < 24) return ERROR_MALFORMED; in updateAudioTrackInfoFromESDS_MPEG4Audio()
3682 if (br.numBitsLeft() < 5) return ERROR_MALFORMED; in updateAudioTrackInfoFromESDS_MPEG4Audio()
3686 if (br.numBitsLeft() < 6) return ERROR_MALFORMED; in updateAudioTrackInfoFromESDS_MPEG4Audio()
3693 if (br.numBitsLeft() < 2) return ERROR_MALFORMED; in updateAudioTrackInfoFromESDS_MPEG4Audio()
3699 if (br.numBitsLeft() < 14) return ERROR_MALFORMED; in updateAudioTrackInfoFromESDS_MPEG4Audio()
3704 if (br.numBitsLeft() > 0) { in updateAudioTrackInfoFromESDS_MPEG4Audio()
3729 if (br.numBitsLeft() < 32) { in updateAudioTrackInfoFromESDS_MPEG4Audio()
[all …]