Lines Matching refs:buf_end
37 static RK_U8 jpegd_find_marker(const RK_U8 **pbuf_ptr, const RK_U8 *buf_end) in jpegd_find_marker() argument
42 RK_U32 strm_len = buf_end - *pbuf_ptr + 1; in jpegd_find_marker()
44 while (*pbuf_ptr < buf_end) { in jpegd_find_marker()
66 static MPP_RET jpegd_find_eoi(const RK_U8 **pbuf_ptr, const RK_U8 *buf_end) in jpegd_find_eoi() argument
70 RK_U32 strm_len = buf_end - *pbuf_ptr + 1; in jpegd_find_eoi()
72 if (*pbuf_ptr >= buf_end) { in jpegd_find_eoi()
73 mpp_err("buf ptr %p is overflow the buf end %p.", *pbuf_ptr, buf_end); in jpegd_find_eoi()
79 if (buf_ptr && (buf_end > buf_ptr)) { in jpegd_find_eoi()
745 const RK_U8 *const buf_end = buf + strm_len; in jpegd_decode_frame() local
756 while (buf_ptr < buf_end) { in jpegd_decode_frame()
758 start_code = jpegd_find_marker(&buf_ptr, buf_end); 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()
901 if (MPP_OK != jpegd_find_eoi(&buf_ptr, buf_end)) { in jpegd_decode_frame()