#include <linux/kernel.h>
#include <linux/videodev2.h>
#include <media/jpeg.h>
#include "mtk_jpeg_dec_parse.h"
struct mtk_jpeg_stream { … };
static int read_byte(struct mtk_jpeg_stream *stream)
{ … }
static int read_word_be(struct mtk_jpeg_stream *stream, u32 *word)
{ … }
static void read_skip(struct mtk_jpeg_stream *stream, long len)
{ … }
static bool mtk_jpeg_do_parse(struct mtk_jpeg_dec_param *param, u8 *src_addr_va,
u32 src_size)
{ … }
bool mtk_jpeg_parse(struct mtk_jpeg_dec_param *param, u8 *src_addr_va,
u32 src_size)
{ … }