v4l2_rect_equal(9)
π 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:
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_size(9)v4l2_rect_same_position(9)v4l2_rect_intersect(9)v4l2_rect_scale(9)v4l2_rect_overlap(9)v4l2_rect_enclosed(9)
π 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
- 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