drm_format_...sampling_420(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_format_info_is_yuv_sampling_420 β€” NAME ✨

okay so bestie, this is a Kernel API Manual page (the (9) at the end is giving "kernel doc section", iykyk) and the whole entire vibe of it is:

drm_format_info_is_yuv_sampling_420 β€” the function that checks whether a format info actually matches a YUV format with 4:2:0 sub-sampling. that's it. that's the whole job. lowkey iconic for how specific it is πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

bool drm_format_info_is_yuv_sampling_420 (const struct drm_format_info *info);

bool return, one argument, no cap. she's neat, she's tidy, she knows exactly what she is πŸ¦‹


🌸 ARGUMENTS 🌸

  • info β€” the format info. literally just the format info. that's the whole parameter. hand her a struct drm_format_info and she'll do her little check ✨

πŸ”₯ RETURN πŸ”₯

she gives you back a boolean, and that boolean is telling you whether the format info matches a YUV format with 4:2:0 sub-sampling. true = yes bestie that's 4:2:0. false = nope, not it πŸ’€

fr fr that's the entire contract β€” a boolean, about 4:2:0, nothing more, nothing less. periodt. πŸ‘‘

🫢 SEE ALSO 🫢

Kernel file ./include/drm/drm_fourcc.h β€” the whole friend group lives in here, go say hi 🌈

not me listing the entire sampling squad 😭 410, 411, 420, 422, 444 β€” she's got a sister for every sub-sampling and they all ate πŸ’…βœ¨


and that's the page!! this one came out of ./include/drm back in October 2026 β€” ty for coming to my ted talk, drink some water, mwah πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from