STRUCT V4L2_PIX_FORMAT_MPLANE(9)
๐ธ struct v4l2_pix_format_mplane(9) ๐ธ
okay so bestie, we're in the Kernel API Manual today and this is literally the page for struct v4l2_pix_format_mplane โ the multiplanar format definition. she's giving pixel-format royalty, no cap ๐
โจ NAME โจ
struct v4l2_pix_format_mplane โ multiplanar format definition ๐
๐ฆ SYNOPSIS ๐ฆ
struct v4l2_pix_format_mplane {
__u32 width;
__u32 height;
__u32 pixelformat;
__u32 field;
__u32 colorspace;
struct v4l2_plane_pix_format plane_fmt[VIDEO_MAX_PLANES];
__u8 num_planes;
__u8 flags;
union {
__u8 ycbcr_enc;
__u8 hsv_enc;
};
__u8 quantization;
__u8 xfer_func;
__u8 reserved[7];
};
like, look at her. so organized. so structured. main character energy fr fr โจ
๐ Members ๐
widthโ image width in pixels ๐heightโ image height in pixels ๐pixelformatโ little endian four character code (fourcc) ๐ค โ yes bestie, fourcc, four characters, it's exactly what it sounds likefieldโenum v4l2_field; the field order (this one's for interlaced video, iykyk) ๐๏ธcolorspaceโenum v4l2_colorspace; supplemental topixelformat๐ โ think of it as the supporting actress, not the leadplane_fmtโ per-plane information ๐๏ธ โ every plane gets her own little momentnum_planesโ number of planes for this format ๐ขflagsโ format flags (V4L2_PIX_FMT_FLAG_*) ๐ฉ{unnamed_union}โ anonymous ๐ป โ she has no name and she doesn't need oneycbcr_encโenum v4l2_ycbcr_encoding, Y'CbCr encoding ๐จhsv_encโenum v4l2_hsv_encoding, HSV encoding ๐จ โ same union energy asycbcr_enc, pick your fighterquantizationโenum v4l2_quantization, colorspace quantization ๐งฎxfer_funcโenum v4l2_xfer_func, colorspace transfer function ๐reservedโ drivers and applications must zero this array โ ๏ธ โ not "should", not "maybe", must. zero her out, bestie, that's the whole vibe check ๐
๐ฅ SEE ALSO ๐ฅ
Kernel file ./include/uapi/linux/videodev2.h
struct v4l2_capability(9)struct v4l2_plane(9)struct v4l2_buffer(9)v4l2_timeval_to_ns(9)struct v4l2_exportbuffer(9)struct v4l2_selection(9)struct v4l2_plane_pix_format(9)struct v4l2_sdr_format(9)struct v4l2_meta_format(9)struct v4l2_format(9)struct v4l2_event_motion_det(9)struct v4l2_create_buffers(9)struct v4l2_remove_buffers(9)
like, that's the whole friend group right there. go say hi ๐ซถ
ngl the one thing to actually remember: reserved has to be zeroed by both drivers and applications. that's not a suggestion, that's the rule ๐
โญ that's the page!! brought to you by ./include/uapi/linux, dated October 2026, and yes the footer still says struct v4l2...ormat_mplane(9) because the kernel is dramatic and truncates her name for the header. slay, honestly ๐๐
๐ฆ 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