STRUCT V4L2_SUBDEV_FRAME_SIZE_ENUM(9)
π¦ struct v4l2_subdev_frame_size_enum(9) π¦
okay bestie, welcome to the Kernel API Manual π this one's about struct v4l2_subdev_frame_size_enum β aka the lil struct that does media bus format enumeration. yes the page header literally calls it struct v4l2_...me_size_enum(9) because it got truncated mid-yawn, but she's the same girl, trust π
β¨ NAME β¨
struct v4l2_subdev_frame_size_enum β Media bus format enumeration πΈ
β¨ SYNOPSIS β¨
like, here she is in all her glory, no cap, every field exactly as it lives:
struct v4l2_subdev_frame_size_enum {
__u32 index;
__u32 pad;
__u32 code;
__u32 min_width;
__u32 max_width;
__u32 min_height;
__u32 max_height;
__u32 which;
__u32 stream;
__u32 reserved[7];
};
π Members π
bestie, let's go field by field, we're not skipping a single one:
indexβ the format index during enumeration π’ like, which one are we on rnpadβ the pad number, as reported by the media API π«Άcodeβ the format code (it's givingMEDIA_BUS_FMT_definitions energy) βmin_widthβ minimum frame width, in pixels β¨max_widthβ maximum frame width, in pixels πmin_heightβ minimum frame height, in pixels π¦max_heightβ maximum frame height, in pixels πwhichβ the format type (fromenum v4l2_subdev_format_whence), periodt πstreamβ the stream number, defined in subdev routing πreservedβ π¨ drivers and applications must zero this array π¨ like, not optional, not a vibe, zero it fr fr
no cap on thatreservedone β it's an array of 7__u32, and both drivers and applications have to zero it. don't be the main character who forgets π
π SEE ALSO π
the whole friend group, all linked, none left out:
- Kernel file
./include/uapi/linux/v4l2-subdev.henum v4l2_subdev_format_whence(9)struct v4l2_subdev_format(9)struct v4l2_subdev_crop(9)struct v4l2_subdev_mbus_code_enum(9)struct v4l2_subdev_frame_interval(9)struct v4l2_subdev_frame_interval_enum(9)struct v4l2_subdev_selection(9)struct v4l2_subdev_capability(9)struct v4l2_subdev_route(9)struct v4l2_subdev_routing(9)struct v4l2_subdev_client_capability(9)
okay that's the whole page, you ate that π
sign-off time: this cutie lives in ./include/uapi/linux π and she's dated October 2026 ποΈ β manual name Kernel API Manual, page struct v4l2_...me_size_enum(9). mwah, go enumerate some formats bestie π«Άπ
π¦ 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