v4l2_rect_same_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈

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