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 VP8PutValue(VP8BitWriter* const bw, int value, int nb_bits);
49 void VP8PutSignedValue(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) {
57 return (uint64_t)(bw->pos_ + bw->run_) * 8 + 8 + bw->nb_bits_;
61 static WEBP_INLINE uint8_t* VP8BitWriterBuf(const VP8BitWriter* const bw) {
62 return bw->buf_;
65 static WEBP_INLINE size_t VP8BitWriterSize(const VP8BitWriter* const bw) {
66 return bw->pos_;
87 static WEBP_INLINE size_t VP8LBitWriterNumBytes(VP8LBitWriter* const bw) {
88 return (bw->bit_pos_ + 7) >> 3;
91 static WEBP_INLINE uint8_t* VP8LBitWriterFinish(VP8LBitWriter* const bw) {
92 return bw->buf_;
96 int VP8LBitWriterInit(VP8LBitWriter* const bw, size_t expected_size);
98 void VP8LBitWriterDestroy(VP8LBitWriter* const bw);
117 void VP8LWriteBits(VP8LBitWriter* const bw, int n_bits, uint32_t bits);