drm_format_i...plane_height(9)
β¨ drm_format_i...plane_height(9) β¨
okay so this is a page from the Kernel API Manual (yes, the kernel has lore, and yes, it's sending us mail π) and it's all about one smol but iconic function: drm_format_info_plane_height. bestie, if you've ever wondered "how tall is this plane, actually?" β this is the girl for you π«Ά
πΈ NAME πΈ
drm_format_info_plane_height β the height of the plane, given the first plane. literally that's the whole vibe: you tell it the height of plane zero, it tells you how tall your plane is β¨
π SYNOPSIS π
int drm_format_info_plane_height (const struct drm_format_info *info ,
int height , int plane );
no cap, that's the whole signature π
π ARGUMENTS π
infoβ the pixel format info πΌοΈ like, the whole personality of the format. it's aconst struct drm_format_info *.heightβ the height of the first plane. key word: first. that's the reference point, the main character πplaneβ the plane index. which plane are we asking about, bestie? π’
π RETURN π
the height of plane, given that the height of the first plane is height. that's it, that's the answer β an int. slay β¨
ngl it's a very short page, but it's doing exactly what it says. no surprises, no drama, just math for plane heights π§
π₯ SEE ALSO π₯
- Kernel file
./include/drm/drm_fourcc.hβ the source of truth, go read it iykyk π DRM_FORMAT_MAX_PLANES(9)β the ceiling, literally ποΈstruct drm_format_info(9)β the struct herself π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_width(9)β the height's bestie, the width one π¦
okay that's the whole thing, you ate that π mwah π
sign-off time, bestie: this page lives in ./include/drm, dated October 2026 π ty for reading, go touch some planes β¨π
π¦ 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