drm_format_...sampling_422(9)
β¨ drm_format_info_is_yuv_sampling_422 β¨
okay so real talk, bestie β we're deep in the Kernel API Manual today (drm_format_...sampling_422(9), for the record π
) and this little function is genuinely one of the cutest vibe checks in all of DRM. it does exactly one thing and it does it flawlessly. obsessed.
πΈ NAME πΈ
drm_format_info_is_yuv_sampling_422 β it checks that the format info matches a YUV format with 4:2:2 sub-sampling π
π¦ SYNOPSIS π¦
bool drm_format_info_is_yuv_sampling_422 (const struct drm_format_info
*info );
π ARGUMENTS π
infoβ the format info, obviously πββοΈ like, the actualstruct drm_format_infoyou want to interrogate. it's the only thing she needs.
β RETURN β
A boolean, bestie β a whole bool β indicating whether the format info matches a YUV format with 4:2:2 sub-sampling. that's it. that's the tea. no side quests, no surprises, just a yes-or-no and she's out π«Ά
π SEE ALSO π
okay so if you're going down the rabbit hole (and honestly? iconic of you), here's the whole friend group π β Kernel file ./include/drm/drm_fourcc.h, 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_420(9), drm_format_info_is_yuv_sampling_444(9), drm_format_info_plane_width(9), drm_format_info_plane_height(9) π
and that's the whole page, fr fr π β brought to you by the fine folks at ./include/drm, dated October 2026. go check your sampling, bestie, 4:2:2 is serving πβ¨
π¦ 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