drm_format_info_plane_width(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ“–

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