drm_format_info_min_pitch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay so bestie, welcome to drm_format_info_min_pitch β€” manual page 9, Kernel API Manual, and it literally computes the minimum required pitch in bytes πŸ”₯ (yes, that's the whole vibe, she's a one-job icon and she does it well πŸ’…)


🌸 SYNOPSIS 🌸

uint64_t drm_format_info_min_pitch (const struct drm_format_info *info ,
int plane , unsigned int buffer_width );

No cap, that's the whole signature 🫢 β€” takes a format info pointer, a plane index, and a buffer width, and hands you back a uint64_t. Periodt.


πŸŽ€ ARGUMENTS πŸŽ€

  • info β€” the pixel format info πŸ’– like, the whole personality of the pixel format lives in here
  • plane β€” the plane index 🌈 (which plane we're looking at, bestie, keep up)
  • buffer_width β€” the buffer width, and it's measured in pixels ⭐ don't get it twisted

πŸ‘‘ RETURN πŸ‘‘

So what does she give you back? The minimum required pitch in bytes for a buffer πŸ’… β€” and she gets there by taking into consideration both the pixel format information and the buffer width. Both. She's thorough like that. We love a considerate function πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/gpu/drm/drm_fourcc.c and honestly the whole friend group πŸ’œ:

Go read them, they're all iconic in their own way ✨


That's the whole page, bestie β€” sending you off with love from ./drivers/gpu/drm πŸ’–, dated October 2026, and that's the drama of drm_format_info_min_pitch(9) πŸŽ€πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from