Searched refs:bit_left (Results 1 – 4 of 4) sorted by relevance
409 FX_DWORD bit_pos = m_BitPos % 8, bit_left = nBits; in GetBits() local412 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 …]
146 int bit_pos = m_InPos % 8, bit_left = m_CodeLen; in Decode() local149 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()
877 int byte_offset, int bit_left, INT32 buf) in jset_input_stream_position_bit() argument881 entropy->bitstate.bits_left = bit_left; in jset_input_stream_position_bit()
416 int byte_offset, int bit_left, INT32 buf));