Home
last modified time | relevance | path

Searched refs:pos_ (Results 1 – 4 of 4) sorted by relevance

/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dbit_reader_utils.c159 br->pos_ = length; in VP8LInitBitReader()
171 br->eos_ = (br->pos_ > br->len_) || VP8LIsEndOfStream(br); in VP8LBitReaderSetBuffer()
181 while (br->bit_pos_ >= 8 && br->pos_ < br->len_) { in ShiftBytes()
183 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (VP8L_LBITS - 8); in ShiftBytes()
184 ++br->pos_; in ShiftBytes()
195 if (br->pos_ + sizeof(br->val_) < br->len_) { in VP8LDoFillBitWindow()
198 br->val_ |= (vp8l_val_t)HToLE32(WebPMemToUint32(br->buf_ + br->pos_)) << in VP8LDoFillBitWindow()
200 br->pos_ += VP8L_LOG8_WBITS; in VP8LDoFillBitWindow()
A Dbit_writer_utils.c29 const uint64_t needed_size_64b = (uint64_t)bw->pos_ + extra_size; in BitWriterResize()
45 if (bw->pos_ > 0) { in BitWriterResize()
47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize()
62 size_t pos = bw->pos_; in Flush()
74 bw->pos_ = pos; in Flush()
167 bw->pos_ = 0; in VP8BitWriterInit()
186 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend()
187 bw->pos_ += size; in VP8BitWriterAppend()
A Dbit_reader_utils.h125 size_t pos_; // byte position in buf_ member
152 assert(br->pos_ <= br->len_); in VP8LIsEndOfStream()
153 return br->eos_ || ((br->pos_ == br->len_) && (br->bit_pos_ > VP8L_LBITS)); in VP8LIsEndOfStream()
A Dbit_writer_utils.h33 size_t pos_; member
58 return (bw->pos_ + bw->run_) * 8 + nb_bits; in VP8BitWriterPos()
67 return bw->pos_; in VP8BitWriterSize()

Completed in 5 milliseconds