v4l2_rect_enclosed(9)
π v4l2_rect_enclosed β is r1 enclosed in r2? π
okay so bestie, welcome to the v4l2_rect_enclosed page from the Kernel API Manual (that's the manual name, iykyk π). this one is short and sweet and honestly iconic β it's a tiny bool-returning helper that answers one very specific question about two rectangles. let's get into it β¨
πΈ SYNOPSIS πΈ
bool v4l2_rect_enclosed (struct v4l2_rect *r1 , struct v4l2_rect *r2 );
like, that's the whole thing. one function call, two pointers, one bool back. slay π
π¦ ARGUMENTS π¦
r1β rectangle. yep, that's the whole description. it's a rectangle, bestie π«Άr2β rectangle. also a rectangle. we love a symmetrical situation π
β¨ DESCRIPTION β¨
Returns true if r1 is enclosed in r2.
that's it. that's the description. no cap, no extra lore, no hidden gotchas. the vibe check is: is rectangle number one literally inside rectangle number two? true = yes, enclosed, cozy, contained π. otherwise you get not-true. periodt π
π SEE ALSO π
Kernel file ./include/media/v4l2-rect.h β and the whole rectangle friend group is here, all of them getting their own (9) pages π¦:
v4l2_rect_set_size_to(9)v4l2_rect_set_min_size(9)v4l2_rect_set_max_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)
go read them all, they're all in ./include/media and they're all lowkey obsessed with rectangles π
ngl the arguments section is doing the absolute bare minimum (both of them are just "rectangle.") but we respect the minimalism π
and that's the page!! thanks for reading, mwah π
sign-off time: this was v4l2_rect_enclosed(9) from the Kernel API Manual, living at ./include/media, dated October 2026 β see you in the next one 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