mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
fbb6c848dd
The Hantro mainline driver has been used in production since several years and was only kept as a staging driver due the stateless CODEC controls. Now that all the stateless CODEC controls have been moved out of staging, graduate the driver as well. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
16 lines
352 B
C
16 lines
352 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
#define JPEG_HEADER_SIZE 624
|
|
#define JPEG_QUANT_SIZE 64
|
|
|
|
struct hantro_jpeg_ctx {
|
|
int width;
|
|
int height;
|
|
int quality;
|
|
unsigned char *buffer;
|
|
unsigned char hw_luma_qtable[JPEG_QUANT_SIZE];
|
|
unsigned char hw_chroma_qtable[JPEG_QUANT_SIZE];
|
|
};
|
|
|
|
void hantro_jpeg_header_assemble(struct hantro_jpeg_ctx *ctx);
|