v4l2_fill_pix_format(9)
β¨ 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 tostruct v4l2_pix_formatto be filled π«Ά this is the one getting the makeover. she shows up empty-handed and leaves iconic.mbus_fmtβ pointer tostruct v4l2_mbus_framefmtto be used as model π this is the reference photo. the inspo. the mood board.pix_fmtis 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
- 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