xvip_enum_frame_size(9)
π xvip_enum_frame_size(9) π
okay so bestie, welcome to the Kernel API Manual entry for xvip_enum_frame_size β yes that's a mouthful, yes it's iconic, and yes we're gonna get through it together β¨
πΈ NAME πΈ
xvip_enum_frame_size β Enumerate the media bus frame size π
β SYNOPSIS β
int xvip_enum_frame_size (struct v4l2_subdev *subdev , struct
v4l2_subdev_state *sd_state , struct v4l2_subdev_frame_size_enum *fse );
like, that's the whole vibe. three pointers and an int return, no cap π«Ά
π¦ ARGUMENTS π¦
subdevβ a V4L2 subdevice. that's the device bestie, the whole point πsd_stateβ the V4L2 subdev state. state tracking, we love to see it β¨fseβ this one's doing the returning: it hands back the media bus frame size π¦
π DESCRIPTION π
so this function is literally a drop-in implementation of the subdev enum_frame_size pad operation. like you can just slot it in. slay π
it assumes β and yeah, assumes is doing a lot of work here β that the subdevice has one sink pad and one source pad, and that the format on the source pad is always identical to the format on the sink pad. same format, both pads, periodt. πͺ
lowkey important: entities with different requirements need to implement their own enum_frame_size handlers. this one is not gonna magically fit your weird multi-pad setup, bestie. it's giving "one size fits one specific size" π
π₯ RETURN π₯
0β the media bus frame size was found. we ate. π-EINVALβ the index or the code is not valid. π not me getting a bad index...
π SEE ALSO π
- Kernel file
./drivers/media/platform/xilinx/xilinx-vip.cβ go read the source, iykyk π xvip_get_format_by_code(9)xvip_get_format_by_fourcc(9)xvip_of_get_format(9)xvip_set_format_size(9)xvip_clr_or_set(9)xvip_clr_and_set(9)xvip_enum_mbus_code(9)
the whole friend group fr fr π«Άπ¦
and that's the page !! mwah π this one shipped out of ./drivers/media/platform/xilinx in October 2026 β main character energy from the xilinx directory, no notes πβ¨
π¦ 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