STRUCT V4L2_SUBDEV_CROP(9)
π struct v4l2_subdev_crop(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a little struct called v4l2_subdev_crop and it's all about pad-level crop settings β yes, crop, like cropping a pic, but for video pads. let's get into it π
πΈ NAME πΈ
struct v4l2_subdev_crop β pad-level crop settings π¦
β¨ SYNOPSIS β¨
struct v4l2_subdev_crop {
__u32 which;
__u32 pad;
struct v4l2_rect rect;
__u32 stream;
__u32 reserved[7];
};
like, that's the whole vibe. five members, one of them's an array of seven. cute π
π Members π
whichβ the format type, and it comes fromenum v4l2_subdev_format_whence(iykyk π)padβ the pad number, exactly as reported by the media API πrectβ the pad crop rectangle boundaries β this is the actual "what part are we keeping" bit, main character energy fr π₯streamβ the stream number, defined in subdev routing π§reservedβ drivers and applications must zero this array. not "should", not "maybe", must. it's giving non-negotiable π
π Description π
so here's the tea, and it's a little sad π β the subdev crop API is an obsolete interface and may be removed in the future. it's been superseded by the selection API. and no new extensions to this structure will be accepted, periodt. so don't come up with fun new fields for it, it's not happening bestie π«Ά
ngl this one's on its way out β if you're writing new code, the selection API is where it's at β¨
π¦ SEE ALSO π¦
- Kernel file
./include/uapi/linux/v4l2-subdev.handenum v4l2_subdev_format_whence(9) struct v4l2_subdev_format(9)struct v4l2_subdev_mbus_code_enum(9)struct v4l2_subdev_frame_size_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)
and that's the whole page, bestie, you ate that π
β¨ ok so the little sign-off down here says this lives under ./include/uapi/linux and it's dated October 2026, brought to you as struct v4l2_subdev_crop(9) β go forth and crop responsibly ππ
π¦ 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