xref: /linux/drivers/media/platform/verisilicon/hantro_jpeg.h (revision 778b8ebe5192e7a7f00563a7456517dfa63e1d90)
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