STRUCT MXC_JPEG_FMT(9)
π 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's0if 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's1for packed formats. β¨comp_planesβ number of component planes, which includes the alpha plane (1to4). like, alpha counts, don't forget her. πh_alignβ horizontal alignment order β align to2^h_align. π₯v_alignβ vertical alignment order β align to2^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.hstructmxc_jpeg_sof_comp(9), structmxc_jpeg_sof(9), structmxc_jpeg_sos_comp(9), structmxc_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
- 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