v4l2_rect_enclosed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ¦‹:

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