xvip_get_format_by_code(9)
xvip_get_format_by_code(9) π
okay so bestie, welcome to the Kernel API Manual entry for xvip_get_format_by_code β the function that retrieves format information for a media bus code. It's giving βI know your formatβ energy, and honestly? Iconic. π
β¨ NAME β¨
xvip_get_format_by_code β retrieve format information for a media bus code. That's it, that's the vibe: you hand over a media bus code, and this function is the one that knows the format info. π
πΈ SYNOPSIS πΈ
const struct xvip_video_format * xvip_get_format_by_code (unsigned int
code );
π ARGUMENTS π
codeβ the format media bus code. The actual code you're looking up, no cap. π
π¦ RETURN π¦
You get a pointer to the format information structure corresponding to the given V4L2 media bus format code, or ERR_PTR if no corresponding format can be found. So yeah: matching format? pointer. No matching format? ERR_PTR. π That's the whole return story, and it ate. π«Ά
π SEE ALSO π
go look at the kernel file and these icon functions, okay? They're all in the same little Unix friend group:
- Kernel file
./drivers/media/platform/xilinx/xilinx-vip.c 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)xvip_enum_frame_size(9)
mwah π this cutie comes from the ./drivers/media/platform/xilinx source/version, dated October 2026, and it's the xvip_get_format_by_code(9) manual page. π«Ά
π¦ 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