xvip_get_format_by_code(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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