Lines Matching defs:buf
1318 static int mpeg1_decode_picture(AVCodecContext *avctx, const uint8_t *buf,
1325 ret = init_get_bits8(&s->gb, buf, buf_size);
1575 static int mpeg_field_start(MpegEncContext *s, const uint8_t *buf, int buf_size)
1671 if ((ret = avctx->hwaccel->start_frame(avctx, buf, buf_size)) < 0)
1688 const uint8_t **buf, int buf_size)
1700 init_get_bits(&s->gb, *buf, buf_size * 8);
1747 const uint8_t *buf_end, *buf_start = *buf - 4; /* include start_code */
1749 buf_end = avpriv_find_start_code(buf_start + 2, *buf + buf_size, &start_code);
1750 if (buf_end < *buf + buf_size)
1755 *buf = buf_end;
1955 *buf += (get_bits_count(&s->gb) - 1) / 8;
1963 const uint8_t *buf = s->gb.buffer;
1973 ret = mpeg_decode_slice(s, mb_y, &buf, s->gb.buffer_end - buf);
1995 buf = avpriv_find_start_code(buf, s->gb.buffer_end, &start_code);
2000 mb_y += (*buf&0xE0)<<2;
2062 const uint8_t *buf, int buf_size)
2069 init_get_bits(&s->gb, buf, buf_size * 8);
2407 const uint8_t *buf, int buf_size)
2414 init_get_bits(&s->gb, buf, buf_size * 8);
2434 int *got_output, const uint8_t *buf, int buf_size)
2438 const uint8_t *buf_ptr = buf;
2439 const uint8_t *buf_end = buf + buf_size;
2478 return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index);
2480 return FFMAX(0, buf_ptr - buf);
2488 start_code, buf_ptr - buf, input_size);
2495 if (buf != avctx->extradata)
2713 if ((ret = mpeg_field_start(s2, buf, buf_size)) < 0)
2770 const uint8_t *buf = avpkt->data;
2776 if (buf_size == 0 || (buf_size == 4 && AV_RB32(buf) == SEQ_END_CODE)) {
2792 int next = ff_mpeg1_find_frame_end(&s2->parse_context, buf,
2796 (const uint8_t **) &buf, &buf_size) < 0)
2824 ret = decode_chunks(avctx, picture, got_output, buf, buf_size);