Lines Matching refs:start_code
41 RK_U8 start_code = 0xff; in jpegd_find_marker() local
45 buf_ptr = memchr(*pbuf_ptr, start_code, strm_len); in jpegd_find_marker()
742 RK_S32 start_code = 0xffd8; in jpegd_decode_frame() local
750 if (strm_len < 8 || !memchr(buf_ptr, start_code, 8)) { in jpegd_decode_frame()
758 start_code = jpegd_find_marker(&buf_ptr, buf_end); in jpegd_decode_frame()
759 if (start_code <= 0) { in jpegd_decode_frame()
768 start_code, buf_end - buf_ptr); in jpegd_decode_frame()
769 ctx->start_code = start_code; in jpegd_decode_frame()
775 if (start_code >= RST0 && start_code <= RST7) { in jpegd_decode_frame()
777 jpegd_dbg_syntax("restart marker: %d\n", start_code & 0x0f); in jpegd_decode_frame()
780 if (start_code > SOF0 && start_code <= SOF15 && start_code != DHT) { in jpegd_decode_frame()
781 … mpp_err_f("Only baseline DCT is supported, unsupported entropy encoding 0x%x", start_code); in jpegd_decode_frame()
786 switch (start_code) { in jpegd_decode_frame()
878 start_code); in jpegd_decode_frame()
881 start_code); in jpegd_decode_frame()