v4l2_fill_pix_format(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ v4l2_fill_pix_format(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’… this one lives in the media subsystem and it's lowkey a little matchmaker function β€” it takes your media-bus format and translates it into a pixel format. it's giving "glow-up," fr fr. πŸ¦‹


🌸 NAME 🌸

v4l2_fill_pix_format β€” an ancillary routine (yes, ancillary, she's a supporting character but she ATE πŸŽ€) that fills a &struct v4l2_pix_format's fields from a &struct v4l2_mbus_framefmt.

that's it. that's the whole job. copy the vibe from one struct to the other. no cap. ✨


🧚 SYNOPSIS 🧚

void v4l2_fill_pix_format (struct v4l2_pix_format *pix_fmt , const
struct v4l2_mbus_framefmt *mbus_fmt );

notice she returns void β€” she's not here to give you feedback, she's here to do the thing. πŸ”₯


πŸ’– ARGUMENTS πŸ’–

  • pix_fmt β€” pointer to struct v4l2_pix_format to be filled 🫢 this is the one getting the makeover. she shows up empty-handed and leaves iconic.
  • mbus_fmt β€” pointer to struct v4l2_mbus_framefmt to be used as model πŸ‘‘ this is the reference photo. the inspo. the mood board. pix_fmt is gonna copy her whole look.
ok so quick vibe check: pix_fmt = the destination, mbus_fmt = the source of truth. don't mix them up, bestie 😭

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, i'm obsessed with this little friend group ngl:

  • Kernel file ./include/media/v4l2-mediabus.h β€” the whole squad lives here πŸ’œ
  • enum v4l2_mbus_csi2_cphy_line_orders_type(9)
  • struct v4l2_mbus_config_mipi_csi2(9)
  • struct v4l2_mbus_config_parallel(9)
  • struct v4l2_mbus_config_mipi_csi1(9)
  • enum v4l2_mbus_type(9)
  • struct v4l2_mbus_config(9)
  • v4l2_fill_mbus_format(9) β€” the other direction, the remix πŸ”
  • v4l2_fill_pix_format_mplane(9) β€” the multi-planar cousin, highkey a whole different girl 🌈
  • v4l2_fill_mbus_format_mplane(9)

and that's the whole page, bestie!! no bugs to warn you about up in here, she's a clean little helper function and we stan a low-drama icon ⭐

mwah πŸ’‹ this has been your girl signing off β€” brought to you by the fine folks in ./include/media, dated October 2026, and living her best life as v4l2_fill_pix_format(9). iykyk πŸŽ€

πŸ“¦ where this page comes from