v4l2_rect_set_max_size(9)
π v4l2_rect_set_max_size β a Kernel API Manual moment
okay so bestie, welcome to the v4l2_rect_set_max_size(9) page, from the Kernel API Manual πβ¨ this one's a little cutie β a whole function dedicated to making sure your rectangle doesn't get too big for its boots π
β¨ NAME β¨
v4l2_rect_set_max_size β width and height of r should be <= max_size π
Like, that's the whole vibe: clamp the size down so it fits. No cap. π«Ά
πΈ SYNOPSIS πΈ
void v4l2_rect_set_max_size (struct v4l2_rect *r , const struct
v4l2_rect *max_size );
she takes two pointers and returns absolutely nothing (void), which is honestly iconic behaviour π
π¦ ARGUMENTS π¦
rβ the rect whose width and height will be modified β¨ this is the main character, she's getting resizedmax_sizeβ a rect containing the maximum width and height π§ the ceiling, the limit, the "you shall not pass" of this whole story
π SEE ALSO π
fr fr, go read the whole squad β they all live in the kernel file ./include/media/v4l2-rect.h:
v4l2_rect_set_size_to(9)v4l2_rect_set_min_size(9)v4l2_rect_map_inside(9)v4l2_rect_same_size(9)v4l2_rect_same_position(9)v4l2_rect_equal(9)v4l2_rect_intersect(9)v4l2_rect_scale(9)v4l2_rect_overlap(9)v4l2_rect_enclosed(9)
like... the rect family is thriving and every single one of them ate π π₯
aaaand that's the whole page bestie, no notes π
cute sign-off: this little love letter lives in ./include/media, and the docs are dated October 2026 β π π β go forth and clamp 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