1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 3 #define JPEG_HEADER_SIZE 601 4 5 struct hantro_jpeg_ctx { 6 int width; 7 int height; 8 int quality; 9 unsigned char *buffer; 10 }; 11 12 unsigned char *hantro_jpeg_get_qtable(struct hantro_jpeg_ctx *ctx, int index); 13 void hantro_jpeg_header_assemble(struct hantro_jpeg_ctx *ctx);