Searched refs:buf_end (Results 1 – 2 of 2) sorted by relevance
52 static RK_U32 avs2_find_start_code(RK_U8 *buf_start, RK_U8* buf_end, RK_U8 **pos) in avs2_find_start_code() argument56 RK_U32 remain_size = buf_end - buf_start + 1; in avs2_find_start_code()58 while (ptr < buf_end) { in avs2_find_start_code()66 if ((buf_ptr < buf_end) && (buf_ptr - buf_start > 1) && in avs2_find_start_code()440 RK_U8 *buf_end; in avs2_split_nalu() local442 buf_end = buf_start + buf_length - 1; in avs2_split_nalu()444 start_code = avs2_find_start_code(buf_start, buf_end, &start_code_ptr); in avs2_split_nalu()460 *remain = buf_end - start_code_ptr; in avs2_split_nalu()476 *remain = buf_end - start_code_ptr + 4; in avs2_split_nalu()488 *remain = buf_end - start_code_ptr; in avs2_split_nalu()
37 static RK_U8 jpegd_find_marker(const RK_U8 **pbuf_ptr, const RK_U8 *buf_end) in jpegd_find_marker() argument42 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() argument70 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() local756 while (buf_ptr < buf_end) { in jpegd_decode_frame()[all …]