xref: /kernel/linux/linux-6.6/drivers/media/platform/verisilicon/hantro_jpeg.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/drivers/media/platform/verisilicon/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci#define JPEG_HEADER_SIZE	624
462306a36Sopenharmony_ci#define JPEG_QUANT_SIZE		64
562306a36Sopenharmony_ci
662306a36Sopenharmony_cistruct hantro_jpeg_ctx {
762306a36Sopenharmony_ci	int width;
862306a36Sopenharmony_ci	int height;
962306a36Sopenharmony_ci	int quality;
1062306a36Sopenharmony_ci	unsigned char *buffer;
1162306a36Sopenharmony_ci	unsigned char hw_luma_qtable[JPEG_QUANT_SIZE];
1262306a36Sopenharmony_ci	unsigned char hw_chroma_qtable[JPEG_QUANT_SIZE];
1362306a36Sopenharmony_ci};
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_civoid hantro_jpeg_header_assemble(struct hantro_jpeg_ctx *ctx);
16

Indexes created Thu Nov 07 10:32:03 CST 2024