Lines Matching refs:buf_
46 assert(bw->buf_ != NULL); in BitWriterResize()
47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize()
49 WebPSafeFree(bw->buf_); in BitWriterResize()
50 bw->buf_ = new_buf; in BitWriterResize()
67 if (pos > 0) bw->buf_[pos - 1]++; in Flush()
71 for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value; in Flush()
73 bw->buf_[pos++] = bits; in Flush()
170 bw->buf_ = NULL; in VP8BitWriterInit()
178 return bw->buf_; in VP8BitWriterFinish()
186 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend()
193 WebPSafeFree(bw->buf_); in VP8BitWriterWipeOut()
209 const size_t max_bytes = bw->end_ - bw->buf_; in VP8LBitWriterResize()
210 const size_t current_size = bw->cur_ - bw->buf_; in VP8LBitWriterResize()
228 memcpy(allocated_buf, bw->buf_, current_size); in VP8LBitWriterResize()
230 WebPSafeFree(bw->buf_); in VP8LBitWriterResize()
231 bw->buf_ = allocated_buf; in VP8LBitWriterResize()
232 bw->cur_ = bw->buf_ + current_size; in VP8LBitWriterResize()
233 bw->end_ = bw->buf_ + allocated_size; in VP8LBitWriterResize()
244 WebPSafeFree(bw->buf_); in VP8LBitWriterWipeOut()
252 const uint64_t extra_size = (bw->end_ - bw->buf_) + MIN_EXTRA_SIZE; in VP8LPutBitsFlushBits()
255 bw->cur_ = bw->buf_; in VP8LPutBitsFlushBits()
288 const uint64_t extra_size = (bw->end_ - bw->buf_) + MIN_EXTRA_SIZE; in VP8LPutBitsInternal()
291 bw->cur_ = bw->buf_; in VP8LPutBitsInternal()
316 return bw->buf_; in VP8LBitWriterFinish()