Lines Matching defs:gB
57 c->value = (uint16_t)c->value << 8 | bytestream2_get_byte(c->gbc.gB);
140 int bp = bytestream2_tell(c->gbc.gB) - 3 << 3;
151 static void arith2_init(ArithCoder *c, GetByteContext *gB)
155 c->value = bytestream2_get_be24(gB);
157 c->gbc.gB = gB;
179 static int decode_555(AVCodecContext *avctx, GetByteContext *gB, uint16_t *dst, ptrdiff_t stride,
188 a = bytestream2_get_byte(gB) << 4; \
189 t = bytestream2_get_byte(gB); \
192 b |= bytestream2_get_byte(gB); \
210 int b = bytestream2_get_byte(gB);
212 last_symbol = b << 8 | bytestream2_get_byte(gB);
220 repeat = (repeat << 8) + bytestream2_get_byte(gB) + 1;
482 GetByteContext gB;
536 bytestream2_init(&gB, buf, buf_size + ARITH2_PADDING);
537 arith2_init(&acoder, &gB);
634 bytestream2_init(&gB, buf, buf_size);
636 if (decode_555(avctx, &gB, (uint16_t *)c->rgb_pic, c->rgb_stride >> 1,
640 buf_size -= bytestream2_tell(&gB);
671 bytestream2_init(&gB, buf, buf_size + ARITH2_PADDING);
672 arith2_init(&acoder, &gB);
684 bytestream2_init(&gB, buf, buf_size + ARITH2_PADDING);
685 arith2_init(&acoder, &gB);