drm_format_...sampling_420(9)
π 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 astruct drm_format_infoand 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 π
DRM_FORMAT_MAX_PLANES(9)struct drm_format_info(9)drm_format_info_is_yuv_packed(9)drm_format_info_is_yuv_semiplanar(9)drm_format_info_is_yuv_planar(9)drm_format_info_is_yuv_sampling_410(9)drm_format_info_is_yuv_sampling_411(9)drm_format_info_is_yuv_sampling_422(9)drm_format_info_is_yuv_sampling_444(9)drm_format_info_plane_width(9)drm_format_info_plane_height(9)
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
- 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