Home
last modified time | relevance | path

Searched refs:bit_left (Results 1 – 4 of 4) sorted by relevance

/external/pdfium/core/src/fxcrt/
Dfx_basic_buffer.cpp409 FX_DWORD bit_pos = m_BitPos % 8, bit_left = nBits; in GetBits() local
412 if (8 - bit_pos >= bit_left) { in GetBits()
413 result = (m_pData[byte_pos] & (0xff >> bit_pos)) >> (8 - bit_pos - bit_left); in GetBits()
414 m_BitPos += bit_left; in GetBits()
417 bit_left -= 8 - bit_pos; in GetBits()
418 result = (m_pData[byte_pos++] & ((1 << (8 - bit_pos)) - 1)) << bit_left; in GetBits()
420 while (bit_left >= 8) { in GetBits()
421 bit_left -= 8; in GetBits()
422 result |= m_pData[byte_pos++] << bit_left; in GetBits()
424 if (bit_left) { in GetBits()
[all …]
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_flate.cpp146 int bit_pos = m_InPos % 8, bit_left = m_CodeLen; in Decode() local
149 bit_left -= 8 - bit_pos; in Decode()
150 code = (m_pInput[byte_pos++] & ((1 << (8 - bit_pos)) - 1)) << bit_left; in Decode()
152 if (bit_left < 8) { in Decode()
153 code |= m_pInput[byte_pos] >> (8 - bit_left); in Decode()
155 bit_left -= 8; in Decode()
156 code |= m_pInput[byte_pos++] << bit_left; in Decode()
157 if (bit_left) { in Decode()
158 code |= m_pInput[byte_pos] >> (8 - bit_left); in Decode()
/external/jpeg/
Djdhuff.c877 int byte_offset, int bit_left, INT32 buf) in jset_input_stream_position_bit() argument
881 entropy->bitstate.bits_left = bit_left; in jset_input_stream_position_bit()
Djpegint.h416 int byte_offset, int bit_left, INT32 buf));