STRUCT MXC_JPEG_FMT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct mxc_jpeg_fmt(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this is the whole rundown on struct mxc_jpeg_fmt, and it's literally the driver's internal color format data. yes, internal. it's giving backstage-pass energy, not main-character-public-API energy. πŸŽ€


✨ NAME ✨

struct mxc_jpeg_fmt β€” the driver's internal color format data. that's it, that's the vibe check. 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole struct, no cap, copy it exactly how it is:

struct mxc_jpeg_fmt {
    const char                              *name;
    u32 fourcc;
    enum v4l2_jpeg_chroma_subsampling       subsampling;
    int nc;
    int depth;
    int mem_planes;
    int comp_planes;
    int h_align;
    int v_align;
    u32 flags;
    u8 precision;
    u8 is_rgb;
 };

like, look at all those fields. she's organized. she's got range. πŸ’…


πŸ‘‘ Members πŸ‘‘

okay so every single member, one by one, and what she actually does:

  • name β€” the format description. just the lil' label so you know who's who. 🏷️
  • fourcc β€” the fourcc code, and it's 0 if it's not applicable. so if you see a zero, that's a "not applicable bestie", not a bug. πŸ™ˆ
  • subsampling β€” the subsampling of jpeg components. chroma business. 🌈
  • nc β€” number of color components. how many components are invited to the party. πŸŽ‰
  • depth β€” number of bits per pixel. πŸ“
  • mem_planes β€” number of memory planes β€” and heads up, it's 1 for packed formats. ✨
  • comp_planes β€” number of component planes, which includes the alpha plane (1 to 4). like, alpha counts, don't forget her. πŸ’œ
  • h_align β€” horizontal alignment order β€” align to 2^h_align. πŸ”₯
  • v_align β€” vertical alignment order β€” align to 2^v_align. πŸ”₯
  • flags β€” flags describing format applicability. the receipts, basically. 🧾
  • precision β€” jpeg sample precision. 🎯
  • is_rgb β€” is an RGB pixel format. yes/no, that's the whole job. ⭐

🌟 SEE ALSO 🌟

go read these next, iykyk:

  • Kernel file ./drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h struct mxc_jpeg_sof_comp(9), struct mxc_jpeg_sof(9), struct mxc_jpeg_sos_comp(9), struct mxc_jpeg_sos(9)

fr fr, that's the whole page. struct's done, fields are done, you're basically a mxc-jpeg format expert now. πŸ’€πŸ’–

and that's a wrap, bestie 🫢 β€” this lil' page came from ./drivers/media/platform/nxp/i..., dated October 2026, and yeah, the footer still says struct mxc_jpeg_fmt(9) because legends never change their name. slay. πŸ’…βœ¨

πŸ“¦ where this page comes from