1 /* SPDX-License-Identifier: GPL-2.0+ */
2 
3 #define JPEG_HEADER_SIZE	624
4 #define JPEG_QUANT_SIZE		64
5 
6 struct hantro_jpeg_ctx {
7 	int width;
8 	int height;
9 	int quality;
10 	unsigned char *buffer;
11 	unsigned char hw_luma_qtable[JPEG_QUANT_SIZE];
12 	unsigned char hw_chroma_qtable[JPEG_QUANT_SIZE];
13 };
14 
15 void hantro_jpeg_header_assemble(struct hantro_jpeg_ctx *ctx);
16