#include <linux/align.h>
#include <linux/build_bug.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <media/v4l2-jpeg.h>
#include "hantro_jpeg.h"
#include "hantro.h"
#define LUMA_QUANT_OFF …
#define CHROMA_QUANT_OFF …
#define HEIGHT_OFF …
#define WIDTH_OFF …
#define HUFF_LUMA_DC_OFF …
#define HUFF_LUMA_AC_OFF …
#define HUFF_CHROMA_DC_OFF …
#define HUFF_CHROMA_AC_OFF …
static const u32 hw_reorder[] = …;
static const unsigned char hantro_jpeg_header[] = …;
static_assert(…);
static_assert(…);
static unsigned char jpeg_scale_qp(const unsigned char qp, int scale)
{ … }
static void
jpeg_scale_quant_table(unsigned char *file_q_tab,
unsigned char *reordered_q_tab,
const unsigned char *tab, int scale)
{ … }
static void jpeg_set_quality(struct hantro_jpeg_ctx *ctx)
{ … }
void hantro_jpeg_header_assemble(struct hantro_jpeg_ctx *ctx)
{ … }