STRUCT MTK_JPEG_FMT(9)
π NAME π
struct mtk_jpeg_fmt β the driver's own internal lil cheat sheet for color formats β¨ (this is a Kernel API Manual page, btw, so you know it's the real deal π)
π SYNOPSIS π
okay so here's the whole struct, bestie, every field exactly as it lives:
struct mtk_jpeg_fmt {
u32 fourcc;
u32 hw_format;
int h_sample[VIDEO_MAX_PLANES];
int v_sample[VIDEO_MAX_PLANES];
int colplanes;
int h_align;
int v_align;
u32 flags;
};
π¦ Members π¦
the way that each of these has a job and they all ate π
fourccβ the fourcc code, and it's0if it's not applicable, periodthw_formatβ the hardware format value π₯h_sampleβ horizontal sample count of the plane, measured inside a4 * 4pixel imagev_sampleβ vertical sample count of the plane, also inside a4 * 4pixel image πcolplanesβ number of color planes, and lowkey important: it's1for packed formatsh_alignβ horizontal alignment order, meaning align to2^h_alignβ¨v_alignβ vertical alignment order, meaning align to2^v_alignβ¨flagsβ flags that describe the format's applicability πΈ
π SEE ALSO π
go look at the kernel file ./drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.h and the enum in there, plus these icons π«Ά:
mtk_jpeg_ctx_state(9)struct mtk_jpeg_variant(9)struct mtk_jpegenc_clk(9)struct mtk_jpegdec_clk(9)struct mtk_jpegenc_comp_dev(9)struct mtk_jpegdec_comp_dev(9)struct mtk_jpeg_dev(9)struct mtk_jpeg_q_data(9)struct mtk_jpeg_ctx(9)
not me ending the page but likeβ¦ fr fr go read the source, iykyk π
okay bye bestie, mwah π β this was struct mtk_jpeg_fmt(9) from the Kernel API Manual, sourced from ./drivers/media/platform/media..., dated October 2026 π¦βπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms