Lines Matching refs:buf_end
1774 static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end)
1782 while (buf_end - buf_ptr > 1) {
1785 if ((v == 0xff) && (v2 >= 0xc0) && (v2 <= 0xfe) && buf_ptr < buf_end) {
1791 buf_ptr = buf_end;
1800 const uint8_t **buf_ptr, const uint8_t *buf_end,
1805 start_code = find_marker(buf_ptr, buf_end);
1807 av_fast_padded_malloc(&s->buffer, &s->buffer_size, buf_end - *buf_ptr);
1816 while (src < buf_end) {
1822 while (src < buf_end && x == 0xff)
1838 (buf_end - *buf_ptr) - (dst - s->buffer));
1847 while (src + t < buf_end) {
1850 while ((src + t < buf_end) && x == 0xff)
1879 *unescaped_buf_size = buf_end - *buf_ptr;
1892 const uint8_t *buf_end, *buf_ptr;
1906 buf_end = buf + buf_size;
1907 while (buf_ptr < buf_end) {
1909 start_code = ff_mjpeg_find_marker(s, &buf_ptr, buf_end,
1922 start_code, buf_end - buf_ptr);
2225 buf_end - buf_ptr);
2226 // return buf_end - buf_ptr;