drm_format_...s_yuv_planar(9)
π drm_format_info_is_yuv_planar β the "is this a three-plane YUV baddie?" check
okay so picture this, you're deep in the Kernel API Manual (that's the manual name btw, slay) and you need to know if some format info is giving planar YUV energy. that's literally the whole job of this function. it's a vibe check for pixel formats π
β¨ SYNOPSIS β¨
bool drm_format_info_is_yuv_planar (const struct drm_format_info *info
);
it returns a bool, bestie. a simple yes-or-no. no drama, no side effects, no cap π
πΈ ARGUMENTS πΈ
infoβ the format info you're interrogating. that's it. that's the whole argument. one (1) single format info struct, and she'sconstso nobody's touching her β¨
π¦ RETURN π¦
it hands you back a boolean indicating whether the format info matches a planar YUV format β like, YUV with the data laid out in three separate planes, one for each YUV component. three planes, three components, one iconic little bool π
so to be crystal clear:true= yes queen, three planes, one per YUV component.false= not that. we move on π«Ά
π SEE ALSO π
the whole friend group, honestly. go say hi π
- 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_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_422(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, babe πβ¨ this one lives in ./include/drm, dated October 2026 β so like, future iconic. bookmark it, screenshot it, send it to the group chat. 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