v4l2_rect_map_inside(9)
π v4l2_rect_map_inside β a β¨ Kernel API Manual β¨ moment
okay bestie so real talk, this one lives in the Kernel API Manual and it's called v4l2_rect_map_inside (that (9) is just the kernel-doc section vibe, iykyk). And the whole entire personality of this function is literally in one line: r should be inside boundary. that's it. that's the tweet. π
β¨ SYNOPSIS β¨
void v4l2_rect_map_inside (struct v4l2_rect *r , const struct v4l2_rect *boundary );
no cap, that's the whole signature β copy it exactly, don't get cute with it π«Ά
π¦ ARGUMENTS π¦
rβ the rect that will be modified π like, this one gets changed. it's the main character of this operation and it will be edited, so don't be weird about it afterwards.boundaryβ the rect that contains the boundary forrπ she's the rule-setter, the vibe check, the container.ris supposed to behave itself inside her.
ngl there are exactly two arguments here, so if you were bracing for a long list of optionsβ¦ there isn't one, babes. two pointers, that's the whole meal. π
π SEE ALSO π
the kernel file for all this is ./include/media/v4l2-rect.h β that's the home base π β¨ and here's the whole friend group, all of them (9)ers, all of them iconic:
v4l2_rect_set_size_to(9)v4l2_rect_set_min_size(9)v4l2_rect_set_max_size(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 cinematic universe fr fr π
π quick disclaimer: this page gives you the signature, the two arguments and the squad. it does not hand you a description section, a return value, or an options list β so i'm not gonna manifest any of those out of thin air. what you see is what's documented. periodt.
and that's the page!! π§ signed off from ./include/media, dated October 2026, version v4l2_rect_map_inside(9) β mwah π go keep your rects inside their boundaries, bestie, slay π
π¦ 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