v4l2_rect_same_size(9)
π v4l2_rect_same_size β kernel API manual, bestie edition π
okay so real talk, this is a page from the Kernel API Manual, and honestly? it's a tiny little icon and i'm obsessed with it. let's get into it β¨
πΈ NAME πΈ
v4l2_rect_same_size β returns true if r1 has the same size as r2. that's it. that's the whole job. no cap. π
β¨ SYNOPSIS β¨
bool v4l2_rect_same_size (const struct v4l2_rect *r1 , const struct v4l2_rect *r2 );
look at that signature. she's giving "two pointers, one truth" π¦ and she returns a bool, so you already know the answer is gonna be a yes or a no, no in-between, periodt.
π ARGUMENTS π
r1β a rectangle. that's the whole description. a rectangle. iconic minimalism, honestly πr2β also a rectangle. matching energy. we love a symmetrical cast π«Ά
π₯ DESCRIPTION π₯
so the way this works is: return true if both rectangles have the same size. that's the entire vibe check. two rects walk in, the function looks at their sizes, and if they match it's true, bestie π
ngl it does not say anything about position here, so don't come for me β it's literally just the size check. there's a whole other function for position and you know it's in SEE ALSO π
π SEE ALSO π
- Kernel file
./include/media/v4l2-rect.h 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_position(9)v4l2_rect_equal(9)v4l2_rect_intersect(9)v4l2_rect_scale(9)v4l2_rect_overlap(9)v4l2_rect_enclosed(9)
the whole rect friend group, fr fr. go read them all, they ate π₯π
πΈ and that's the page!! brought to you by ./include/media β October 2026 β in the Kernel API Manual, main character energy only πβ¨π bye bestie, go compare some rectangles π«Ά
π¦ 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