v4l2_rect_equal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_rect_equal β€” bestie edition

okay so ✨ welcome to the Kernel API Manual, bestie! today's main character is v4l2_rect_equal(9) and honestly? she's a whole vibe check for rectangles πŸŽ€


🌸 NAME 🌸

v4l2_rect_equal β€” returns true if r1 equals r2 πŸ’–


✨ SYNOPSIS ✨

bool v4l2_rect_equal (const struct v4l2_rect *r1 , const struct v4l2_rect *r2 );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • r1 β€” a rectangle. that's it, that's the whole description 🫢
  • r2 β€” another rectangle. iconic of her πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• this function returns true if both rectangles have the same size and position. like, same size AND same position, not one or the other β€” both. no cap πŸ’€

it's giving "are these two rectangles literally the same rectangle" and honestly? obsessed 😭✨

ngl bestie, this one's lowkey the simplest of the family β€” but she's still pulling her weight πŸŽ€

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./include/media/v4l2-rect.h πŸ—‚οΈ and the whole rectangle friend group is here:


🌈 and that's the whole page! this one came to you from ./include/media, dated October 2026 β€” mwah, go compare some rectangles bestie πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from