drm_format_info_plane_width(9)
π drm_format_info_plane_width(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're reading kernel docs together, it's giving study date energy and honestly? iconic. π
β¨ NAME β¨
drm_format_info_plane_width β gives you the width of a plane, when you already know the width of the first plane. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
int drm_format_info_plane_width (const struct drm_format_info *info ,
int width , int plane );
look at her go, three args, no cap π¦
π«Ά ARGUMENTS π«Ά
infoβ the pixel format info, like the little ID card for whatever format we're dealing with π³widthβ the width of the first plane, ok so this is the reference point, the main character if you will πplaneβ the plane index, i.e. which plane you're asking about π’
β RETURN β
the width of plane, given that the width of the first plane is width. literally exactly what it says on the tin, fr fr π
π SEE ALSO π
kernel file ./include/drm/drm_fourcc.h β go read it, it's lowkey required reading π
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_422(9)drm_format_info_is_yuv_sampling_444(9)drm_format_info_plane_height(9)
like, the whole YUV sampling family showed up to the party π§ and yeah, drm_format_info_plane_height(9) is here too β the height bestie to this width bestie, we stan a duo π
ngl, if you get the plane width wrong your buffers are gonna have a bad time π get it right the first time, bestie π
mwah π that's the page! this gem lives in ./include/drm, and the version on the tin is October 2026 β so mark your calendars, sincΓ¨rement your fave kernel girlie πΈβ¨π
π¦ 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