drm_format_...sampling_410(9)
π drm_format_info_is_yuv_sampling_410 β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little baby page about one very specific little function, and honestly? she's iconic in her own lowkey way. let's get into it π«Ά
β¨ NAME β¨
drm_format_info_is_yuv_sampling_410 β literally just checks that the format info matches a YUV format with 4:1:0 sub-sampling πΈ that's it, that's the whole job, and she does it slayfully π
π¦ SYNOPSIS π¦
bool drm_format_info_is_yuv_sampling_410 (const struct drm_format_info
*info );
no cap, that's the whole signature β she takes one pointer and hands you back a bool π
π ARGUMENTS π
infoβ format info π yeah that's the entire description in the original and we're keeping it fr fr. it's the format info. that's the vibe.
π RETURN π
A boolean indicating whether the format info matches a YUV format with 4:1:0 sub-sampling β
so likeβ¦ true = yes bestie she's 4:1:0, false = nope, not this one π no guessing, no extra lore, that's the documented deal β¨
π SEE ALSO π
go touch some grass in the kernel file ./include/drm/drm_fourcc.h π± and while you're there, the whole friend group is linked up:
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_411(9)drm_format_info_is_yuv_sampling_420(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)
the sampling sisters 411, 420, 422, 444 are all there and 410 is serving main character energy in her own entry ππ
lowkey reminder: this page documents exactly one check. don't go asking her about packing or planes, she'll point you at the SEE ALSO list and politely move on π
and that's the wrap, bestie ππ¦ this cutie lives under ./include/drm and the docs are dated October 2026 β go forth and sample your 4:1:0 formats responsibly, ily, periodt πβ¨
π¦ 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