Lines Matching refs:buf_ptr
50 const uint8_t *buf_end, *buf_ptr; in mjpegb_decode_frame() local
56 buf_ptr = buf; in mjpegb_decode_frame()
67 if (buf_end - buf_ptr >= 1 << 28) in mjpegb_decode_frame()
70 init_get_bits(&hgb, buf_ptr, /*buf_size*/(buf_end - buf_ptr)*8); in mjpegb_decode_frame()
82 …second_field_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "second_field_offs is %d and size is… in mjpegb_decode_frame()
86 dqt_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "dqt is %d and size is %d\n"); in mjpegb_decode_frame()
89 init_get_bits(&s->gb, buf_ptr+dqt_offs, (buf_end - (buf_ptr+dqt_offs))*8); in mjpegb_decode_frame()
96 dht_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "dht is %d and size is %d\n"); in mjpegb_decode_frame()
99 init_get_bits(&s->gb, buf_ptr+dht_offs, (buf_end - (buf_ptr+dht_offs))*8); in mjpegb_decode_frame()
104 sof_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "sof is %d and size is %d\n"); in mjpegb_decode_frame()
107 init_get_bits(&s->gb, buf_ptr+sof_offs, (buf_end - (buf_ptr+sof_offs))*8); in mjpegb_decode_frame()
113 sos_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "sos is %d and size is %d\n"); in mjpegb_decode_frame()
115 sod_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "sof is %d and size is %d\n"); in mjpegb_decode_frame()
118 init_get_bits(&s->gb, buf_ptr + sos_offs, in mjpegb_decode_frame()
119 8 * FFMIN(field_size, buf_end - buf_ptr - sos_offs)); in mjpegb_decode_frame()
131 buf_ptr = buf + second_field_offs; in mjpegb_decode_frame()