Home | History | Annotate | Download | only in dec

Lines Matching refs:br

88 static int ReadImageInfo(VP8LBitReader* const br,
91 const uint8_t signature = VP8LReadBits(br, 8);
95 *width = VP8LReadBits(br, VP8L_IMAGE_SIZE_BITS) + 1;
96 *height = VP8LReadBits(br, VP8L_IMAGE_SIZE_BITS) + 1;
97 *has_alpha = VP8LReadBits(br, 1);
98 VP8LReadBits(br, VP8L_VERSION_BITS); // Read/ignore the version number.
108 VP8LBitReader br;
109 VP8LInitBitReader(&br, data, data_size);
110 if (!ReadImageInfo(&br, &w, &h, &a)) {
123 VP8LBitReader* const br) {
130 return offset + VP8LReadBits(br, extra_bits) + 1;
134 VP8LBitReader* const br) {
136 return GetCopyDistance(length_symbol, br);
153 // FillBitWindow(br) needs to be called at minimum every second call
156 VP8LBitReader* const br) {
159 uint32_t bits = VP8LPrefetchBits(br);
166 VP8LDiscardBits(br, num_bits);
174 VP8LBitReader* const br = &dec->br_;
186 if (VP8LReadBits(br, 1)) { // use length
187 const int length_nbits = 2 + 2 * VP8LReadBits(br, 3);
188 max_symbol = 2 + VP8LReadBits(br, length_nbits);
201 VP8LFillBitWindow(br);
202 code_len = ReadSymbol(&tree, br);
211 int repeat = VP8LReadBits(br, extra_bits) + repeat_offset;
231 VP8LBitReader* const br = &dec->br_;
232 const int simple_code = VP8LReadBits(br, 1);
238 const int num_symbols = VP8LReadBits(br, 1) + 1;
239 const int first_symbol_len_code = VP8LReadBits(br, 1);
241 symbols[0] = VP8LReadBits(br, (first_symbol_len_code == 0) ? 1 : 8);
246 symbols[1] = VP8LReadBits(br, 8);
256 const int num_codes = VP8LReadBits(br, 4) + 4;
270 code_length_code_lengths[kCodeLengthCodeOrder[i]] = VP8LReadBits(br, 3);
279 ok = ok && !br->error_;
303 VP8LBitReader* const br = &dec->br_;
309 if (allow_recursion && VP8LReadBits(br, 1)) {
311 const int huffman_precision = VP8LReadBits(br, 3) + 2;
331 if (br->error_) goto Error;
691 VP8LBitReader* const br = &dec->br_; \
703 while (!br->eos_ && src < src_end) { \
711 VP8LFillBitWindow(br); \
712 code = ReadSymbol(&htree_group->htrees_[GREEN], br); \
715 red = ReadSymbol(&htree_group->htrees_[RED], br); \
717 VP8LFillBitWindow(br); \
718 blue = ReadSymbol(&htree_group->htrees_[BLUE], br); \
719 alpha = ReadSymbol(&htree_group->htrees_[ALPHA], br); \
739 const int length = GetCopyLength(length_sym, br); \
740 const int dist_symbol = ReadSymbol(&htree_group->htrees_[DIST], br); \
741 VP8LFillBitWindow(br); \
742 dist_code = GetCopyDistance(dist_symbol, br); \
781 ok = !br->error_; \
787 if (brbr->eos_ && src < src_end)) { \
790 (!br->eos_) ? VP8_STATUS_BITSTREAM_ERROR : VP8_STATUS_SUSPENDED; \
852 VP8LBitReader* const br = &dec->br_;
855 (VP8LImageTransformType)VP8LReadBits(br, 2);
873 transform->bits_ = VP8LReadBits(br, 3) + 2;
881 const int num_colors = VP8LReadBits(br, 8) + 1;
974 VP8LBitReader* const br = &dec->br_;
981 while (ok && VP8LReadBits(br, 1)) {
987 if (ok && VP8LReadBits(br, 1)) {
988 color_cache_bits = VP8LReadBits(br, 4);
1034 ok = ok && !br->error_;
1041 // If not enough data (br.eos_) resulted in BIT_STREAM_ERROR, update the