STRUCT MTK_JPEG_FMT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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's 0 if it's not applicable, periodt
  • hw_format β€” the hardware format value πŸ”₯
  • h_sample β€” horizontal sample count of the plane, measured inside a 4 * 4 pixel image
  • v_sample β€” vertical sample count of the plane, also inside a 4 * 4 pixel image πŸŽ€
  • colplanes β€” number of color planes, and lowkey important: it's 1 for packed formats
  • h_align β€” horizontal alignment order, meaning align to 2^h_align ✨
  • v_align β€” vertical alignment order, meaning align to 2^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