Home
last modified time | relevance | path

Searched refs:numberOfBits (Results 1 – 3 of 3) sorted by relevance

/external/opencore/baselibs/gen_data_structures/src/
Dbitstreamparser.cpp54 OSCL_EXPORT_REF uint32 BitStreamParser::ReadBits(uint8 numberOfBits) in ReadBits() argument
59 OSCL_ASSERT(numberOfBits <= BITS_PER_UINT32); in ReadBits()
61 if (numberOfBits > BITS_PER_UINT32) numberOfBits = BITS_PER_UINT32; in ReadBits()
65 while (numberOfBits) in ReadBits()
75 if ((numberOfBits >= BITS_PER_UINT8) && (bitpos == MOST_SIG_BIT)) in ReadBits()
85 numberOfBits -= BITS_PER_UINT8; in ReadBits()
104 if (bitsFromThisByte > numberOfBits) bitsFromThisByte = numberOfBits; in ReadBits()
115 numberOfBits -= bitsFromThisByte; in ReadBits()
164 OSCL_EXPORT_REF void BitStreamParser::WriteBits(uint8 numberOfBits, const uint8* data) in WriteBits() argument
168 BitStreamParser input(const_cast<uint8*>(data), BITS_TO_BYTES(numberOfBits)); in WriteBits()
[all …]
Dbitstreamparser.h50 OSCL_IMPORT_REF uint32 ReadBits(uint8 numberOfBits);
62 OSCL_IMPORT_REF void WriteBits(uint8 numberOfBits, const uint8* data);
92 OSCL_IMPORT_REF void NextBits(uint32 numberOfBits);
/external/opencore/fileformats/mp3/parser/src/
Dmp3parser.cpp2368 uint32 numberOfBits; in mp3VerifyCRC() local
2380 numberOfBits = 4 * (mp3CI.NumberOfChannels * bound + (32 - bound)); in mp3VerifyCRC()
2387 numberOfBits = (mp3HdrInfo.frameVer == FRAME_VESION_MPEG_1) ? in mp3VerifyCRC()
2398 numberOfBits += MP3_FRAME_HEADER_SIZE * 8 + 16; in mp3VerifyCRC()
2400 numberOfBytes = numberOfBits % 8 ? numberOfBits / 8 + 1 : numberOfBits / 8; in mp3VerifyCRC()
2411 uint16 calcCRC16 = CalcCRC16(buffer, numberOfBits); in mp3VerifyCRC()