Searched refs:bit_pos_ (Results 1 – 7 of 7) sorted by relevance
149 br->bit_pos_ = 0; in VP8LInitBitReader()176 br->bit_pos_ = 0; // To avoid undefined behaviour with shifts. in VP8LSetEndOfStream()181 while (br->bit_pos_ >= 8 && br->pos_ < br->len_) { in ShiftBytes()185 br->bit_pos_ -= 8; in ShiftBytes()193 assert(br->bit_pos_ >= VP8L_WBITS); in VP8LDoFillBitWindow()199 br->bit_pos_ -= VP8L_WBITS; in VP8LDoFillBitWindow()216 const int new_bits = br->bit_pos_ + n_bits; in VP8LReadBits()217 br->bit_pos_ = new_bits; in VP8LReadBits()
126 int bit_pos_; // current bit-reading position in val_ member146 return (uint32_t)(br->val_ >> (br->bit_pos_ & (VP8L_LBITS - 1))); in VP8LPrefetchBits()153 return br->eos_ || ((br->pos_ == br->len_) && (br->bit_pos_ > VP8L_LBITS)); in VP8LIsEndOfStream()159 br->bit_pos_ = val; in VP8LSetBitPos()167 if (br->bit_pos_ >= VP8L_WBITS) VP8LDoFillBitWindow(br); in VP8LFillBitWindow()
139 br->bit_pos_ = 0; in VP8LInitBitReader()160 while (br->bit_pos_ >= 8 && br->pos_ < br->len_) { in ShiftBytes()164 br->bit_pos_ -= 8; in ShiftBytes()169 if (br->bit_pos_ >= WBITS) { in VP8LFillBitWindow()173 br->bit_pos_ -= WBITS; in VP8LFillBitWindow()182 if (br->pos_ == br->len_ && br->bit_pos_ == LBITS) { in VP8LFillBitWindow()193 (uint32_t)(br->val_ >> br->bit_pos_) & kBitMask[n_bits]; in VP8LReadBits()194 const int new_bits = br->bit_pos_ + n_bits; in VP8LReadBits()195 br->bit_pos_ = new_bits; in VP8LReadBits()
245 uint8_t* const p = &bw->buf_[bw->bit_pos_ >> 3]; in VP8LWriteBits()247 v |= bits << (bw->bit_pos_ & 7); in VP8LWriteBits()249 bw->bit_pos_ += n_bits; in VP8LWriteBits()253 uint8_t* p = &bw->buf_[bw->bit_pos_ >> 3]; in VP8LWriteBits()254 const int bits_reserved_in_first_byte = bw->bit_pos_ & 7; in VP8LWriteBits()269 bw->bit_pos_ += n_bits; in VP8LWriteBits()272 if ((bw->bit_pos_ >> 3) > (bw->max_bytes_ - 8)) { in VP8LWriteBits()276 bw->bit_pos_ = 0; in VP8LWriteBits()
77 size_t bit_pos_; member88 return (bw->bit_pos_ + 7) >> 3; in VP8LBitWriterNumBytes()
296 int bit_pos_; // current bit-reading position in val_ member316 return (uint32_t)(br->val_ >> br->bit_pos_); in VP8LPrefetchBits()321 br->bit_pos_ += num_bits; in VP8LDiscardBits()
189 VP8LSetBitPos(br, br->bit_pos_ + HUFFMAN_TABLE_BITS); in ReadSymbol()194 VP8LSetBitPos(br, br->bit_pos_ + table->bits); in ReadSymbol()208 VP8LSetBitPos(br, br->bit_pos_ + code.bits); in ReadPackedSymbols()212 VP8LSetBitPos(br, br->bit_pos_ + code.bits - BITS_SPECIAL_MARKER); in ReadPackedSymbols()280 VP8LSetBitPos(br, br->bit_pos_ + p->bits); in ReadHuffmanCodeLengths()