Lines Matching refs:buf_ptr
39 const RK_U8 *buf_ptr = NULL; in jpegd_find_marker() local
45 buf_ptr = memchr(*pbuf_ptr, start_code, strm_len); in jpegd_find_marker()
47 if (!buf_ptr) { in jpegd_find_marker()
52 RK_U8 marker = *(buf_ptr + 1); in jpegd_find_marker()
54 val = *(buf_ptr + 1); in jpegd_find_marker()
55 jpegd_dbg_marker("find_marker skipped %d bytes\n", buf_ptr - *pbuf_ptr); in jpegd_find_marker()
56 *pbuf_ptr = buf_ptr; in jpegd_find_marker()
68 const RK_U8 *buf_ptr = NULL; in jpegd_find_eoi() local
77 buf_ptr = memchr(*pbuf_ptr, eoi, strm_len); in jpegd_find_eoi()
79 if (buf_ptr && (buf_end > buf_ptr)) { in jpegd_find_eoi()
744 const RK_U8 *buf_ptr = buf; in jpegd_decode_frame() local
750 if (strm_len < 8 || !memchr(buf_ptr, start_code, 8)) { in jpegd_decode_frame()
756 while (buf_ptr < buf_end) { in jpegd_decode_frame()
758 start_code = jpegd_find_marker(&buf_ptr, buf_end); in jpegd_decode_frame()
764 buf_ptr += 2; in jpegd_decode_frame()
768 start_code, buf_end - buf_ptr); in jpegd_decode_frame()
772 mpp_set_bitread_ctx(gb, (RK_U8 *)buf_ptr, buf_end - buf_ptr); in jpegd_decode_frame()
825 buf_end - buf_ptr); in jpegd_decode_frame()
840 syntax->strm_offset = buf_ptr - buf + syntax->sos_len; in jpegd_decode_frame()
849 syntax->strm_offset, buf_ptr, buf, in jpegd_decode_frame()
860 buf_ptr[syntax->sos_len] == 0xff && buf_ptr[syntax->sos_len + 1] == 0xd8) { in jpegd_decode_frame()
887 buf_ptr = ctx->bit_ctx->data_; in jpegd_decode_frame()
901 if (MPP_OK != jpegd_find_eoi(&buf_ptr, buf_end)) { in jpegd_decode_frame()