ENUM V4L2_MBUS_FRAME_DESC_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 enum v4l2_mbus_frame_desc_type(9) 🌸

okay bestie, this is a page from the Kernel API Manual, and it's honestly such a tiny icon β€” it's just an enum that tells you what kind of media bus a frame description is talking about. Like, it's giving "hello, which bus are you" energy. Let's get into it πŸ’…


✨ NAME ✨

enum v4l2_mbus_frame_desc_type β€” the media bus frame description type, aka the little label that says what kind of bus we're on πŸ¦‹


✨ SYNOPSIS ✨

enum v4l2_mbus_frame_desc_type {
    V4L2_MBUS_FRAME_DESC_TYPE_UNDEFINED ,
    V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL ,
    V4L2_MBUS_FRAME_DESC_TYPE_CSI2

};

like, that's the whole vibe. three constants, no cap πŸŽ€


✨ Constants ✨

  • V4L2_MBUS_FRAME_DESC_TYPE_UNDEFINED β€” the undefined frame desc type, aka the "we don't know her" option 😭. Drivers should not use this one β€” nope, not even a little β€” it's purely there for backwards compatibility. It's legacy energy, don't touch it 🫢
  • V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL β€” parallel media bus. that's it, that's the whole thing ✨
  • V4L2_MBUS_FRAME_DESC_TYPE_CSI2 β€” CSI-2 media bus 🌈. Important: the frame desc parameters must be set in struct v4l2_mbus_frame_desc_entry->csi2. Like, that's where they live, periodt πŸ“
this is the one your driver actually cares about β€” if you're on CSI-2, put your params in struct v4l2_mbus_frame_desc_entry->csi2 and nowhere else, iykyk πŸ’€

✨ SEE ALSO ✨

first up, there's a kernel file you should look at:

  • Kernel file ./include/media/v4l2-subdev.h

and then the whole friend group of related symbols (it's a lot, bestie, but they're all iconic πŸ‘‘):


that's the whole page, bestie β€” go forth and describe your frames correctly πŸ’–βœ¨

mwah πŸ’‹ this one came from the source path ./include/media, and the date on it is October 2026 β€” so yeah, she's from the future, main character energy fr fr πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from