16 lines
352 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
/* SPDX-License-Identifier: GPL-2.0+ */
2026-01-29 22:25:33 +08:00
#define JPEG_HEADER_SIZE 624
#define JPEG_QUANT_SIZE 64
2026-01-21 18:59:54 +08:00
struct hantro_jpeg_ctx {
int width;
int height;
int quality;
unsigned char *buffer;
2026-01-29 22:25:33 +08:00
unsigned char hw_luma_qtable[JPEG_QUANT_SIZE];
unsigned char hw_chroma_qtable[JPEG_QUANT_SIZE];
2026-01-21 18:59:54 +08:00
};
void hantro_jpeg_header_assemble(struct hantro_jpeg_ctx *ctx);