Lines Matching refs:buf_end
1229 static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end)
1239 while (buf_ptr < buf_end) {
1242 if ((v == 0xff) && (v2 >= 0xc0) && (v2 <= 0xfe) && buf_ptr < buf_end) {
1264 const uint8_t *buf_end, *buf_ptr;
1269 buf_end = buf + buf_size;
1270 while (buf_ptr < buf_end) {
1272 start_code = find_marker(&buf_ptr, buf_end);
1278 av_log(avctx, AV_LOG_DEBUG, "marker=%x avail_size_in_buf=%td\n", start_code, buf_end - buf_ptr);
1280 if ((buf_end - buf_ptr) > s->buffer_size)
1283 s->buffer_size = buf_end-buf_ptr;
1295 while (src<buf_end)
1303 while (src < buf_end && x == 0xff)
1316 (buf_end - buf_ptr) - (dst - s->buffer));
1328 while (src + t < buf_end){
1331 while((src + t < buf_end) && x == 0xff)
1358 init_get_bits(&s->gb, buf_ptr, (buf_end - buf_ptr)*8);
1489 av_log(avctx, AV_LOG_DEBUG, "mjpeg decode frame unused %td bytes\n", buf_end - buf_ptr);
1490 // return buf_end - buf_ptr;