v4l2_rect_set_size_to(9)
β¨ v4l2_rect_set_size_to β¨
okay so bestie, welcome to the Kernel API Manual β we're doing kernel media rectangle math today and honestly it's giving main character energy π
π NAME π
v4l2_rect_set_size_to β literally just copies the width/height values over. that's it. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
void v4l2_rect_set_size_to (struct v4l2_rect *r , const struct v4l2_rect
*size );
π ARGUMENTS π
rβ the rect that's gonna get itswidthandheightfields set. she's the one receiving the glow-up πsizeβ the rect that's holding thewidthandheightfields you actually need. the source of truth, the blueprint, the moment π₯
no cap, this function does exactly one thing: it copies size over. don't go looking for extra lore, there is none π
π SEE ALSO π
kernel file ./include/media/v4l2-rect.h β and the whole rectangle friend group, fr fr:
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_equal(9)v4l2_rect_intersect(9)v4l2_rect_scale(9)v4l2_rect_overlap(9)v4l2_rect_enclosed(9)
and that's the whole page, bestie π«Ά go forth and set those sizes. this gem lives in ./include/media, dated October 2026, so likeβ¦ future-era kernel knowledge, iconic βπ
π¦ 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