Lines Matching refs:bw
39 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size);
41 uint8_t* VP8BitWriterFinish(VP8BitWriter* const bw);
44 void VP8BitWriterWipeOut(VP8BitWriter* const bw);
46 int VP8PutBit(VP8BitWriter* const bw, int bit, int prob);
47 int VP8PutBitUniform(VP8BitWriter* const bw, int bit);
48 void VP8PutBits(VP8BitWriter* const bw, uint32_t value, int nb_bits);
49 void VP8PutSignedBits(VP8BitWriter* const bw, int value, int nb_bits);
52 int VP8BitWriterAppend(VP8BitWriter* const bw,
56 static WEBP_INLINE uint64_t VP8BitWriterPos(const VP8BitWriter* const bw) { in VP8BitWriterPos() argument
57 return (uint64_t)(bw->pos_ + bw->run_) * 8 + 8 + bw->nb_bits_; in VP8BitWriterPos()
61 static WEBP_INLINE uint8_t* VP8BitWriterBuf(const VP8BitWriter* const bw) { in VP8BitWriterBuf() argument
62 return bw->buf_; in VP8BitWriterBuf()
65 static WEBP_INLINE size_t VP8BitWriterSize(const VP8BitWriter* const bw) { in VP8BitWriterSize() argument
66 return bw->pos_; in VP8BitWriterSize()
102 static WEBP_INLINE size_t VP8LBitWriterNumBytes(VP8LBitWriter* const bw) { in VP8LBitWriterNumBytes() argument
103 return (bw->cur_ - bw->buf_) + ((bw->used_ + 7) >> 3); in VP8LBitWriterNumBytes()
107 int VP8LBitWriterInit(VP8LBitWriter* const bw, size_t expected_size);
109 uint8_t* VP8LBitWriterFinish(VP8LBitWriter* const bw);
111 void VP8LBitWriterWipeOut(VP8LBitWriter* const bw);
114 void VP8LPutBitsFlushBits(VP8LBitWriter* const bw);
117 void VP8LPutBitsInternal(VP8LBitWriter* const bw, uint32_t bits, int n_bits);
124 static WEBP_INLINE void VP8LPutBits(VP8LBitWriter* const bw, in VP8LPutBits() argument
128 if (bw->used_ >= 32) { in VP8LPutBits()
129 VP8LPutBitsFlushBits(bw); in VP8LPutBits()
131 bw->bits_ |= (vp8l_atype_t)bits << bw->used_; in VP8LPutBits()
132 bw->used_ += n_bits; in VP8LPutBits()
135 VP8LPutBitsInternal(bw, bits, n_bits); in VP8LPutBits()