Home
last modified time | relevance | path

Searched refs:readNBits (Results 1 – 8 of 8) sorted by relevance

/external/pdfium/core/fxcodec/jbig2/
DJBig2_BitStream_unittest.cpp18 EXPECT_EQ(0, stream.readNBits(1, &val1)); in TEST()
22 EXPECT_EQ(0, stream.readNBits(1, &val2)); in TEST()
25 EXPECT_EQ(0, stream.readNBits(2, &val2)); in TEST()
28 EXPECT_EQ(0, stream.readNBits(4, &val2)); in TEST()
37 EXPECT_EQ(0, stream.readNBits(10, &val1)); in TEST()
45 EXPECT_EQ(-1, stream.readNBits(1, &val1)); in TEST()
48 EXPECT_EQ(-1, stream.readNBits(2, &val2)); in TEST()
56 EXPECT_EQ(0, stream.readNBits(8, &val1)); in TEST()
59 EXPECT_EQ(-1, stream.readNBits(2, &val2)); in TEST()
68 EXPECT_EQ(0, stream.readNBits(34, &val1)); in TEST()
DJBig2_HuffmanTable.cpp185 if ((pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) || in ParseFromCodedBuffer()
186 (pStream->readNBits(HTRS, &RANGELEN[NTEMP]) == -1) || in ParseFromCodedBuffer()
201 if (pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) in ParseFromCodedBuffer()
211 if (pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) in ParseFromCodedBuffer()
219 if (pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) in ParseFromCodedBuffer()
DJBig2_BitStream.h21 int32_t readNBits(uint32_t dwBits, uint32_t* dwResult);
22 int32_t readNBits(uint32_t dwBits, int32_t* nResult);
DJBig2_BitStream.cpp27 int32_t CJBig2_BitStream::readNBits(uint32_t dwBits, uint32_t* dwResult) { in readNBits() function in CJBig2_BitStream
49 int32_t CJBig2_BitStream::readNBits(uint32_t dwBits, int32_t* nResult) { in readNBits() function in CJBig2_BitStream
DJBig2_HuffmanDecoder.cpp41 if (m_pStream->readNBits(pTable->GetRANGELEN()[i], &nTmp) == -1) in DecodeAValue()
DJBig2_Context.cpp1134 if (m_pStream->readNBits(4, &huffman_codes[i].codelen) != 0) in DecodeSymbolIDHuffmanTable()
1171 if (m_pStream->readNBits(2, &nTemp) != 0) in DecodeSymbolIDHuffmanTable()
1175 if (m_pStream->readNBits(3, &nTemp) != 0) in DecodeSymbolIDHuffmanTable()
1179 if (m_pStream->readNBits(7, &nTemp) != 0) in DecodeSymbolIDHuffmanTable()
DJBig2_TrdProc.cpp105 if (pStream->readNBits(nTmp, &nVal) != 0) in DecodeHuffman()
/external/zstd/doc/
Dzstd_compression_format.md755 Offset_Value = (1 << offsetCode) + readNBits(offsetCode);