drm_mode_is_420_also(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mode_is_420_also(9)

okay bestie, welcome to the Kernel API Manual β€” this one's a tiny lil function but she's got main character energy in the display pipeline. her whole thing? figuring out if a videomode can also be supported in YCBCR420 output format, on top of RGB/YCBCR444/422. yes, "also". she's the also girl. iykyk πŸ’–


✨ NAME ✨

drm_mode_is_420_also β€” checks whether a given videomode can be supported in YCBCR420 output format also (along with RGB/YCBCR444/422). like, not instead of, bestie β€” also. periodt 🫢


🌸 SYNOPSIS 🌸

bool drm_mode_is_420_also (const struct drm_display_info *display ,
const struct drm_display_mode *mode );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • display β€” the display under action. literally the one we're doing the vibe check on πŸ’…
  • mode β€” the video mode to be tested. this is the girl we're asking about πŸŽ€

⭐ RETURN ⭐

Returns true if the mode can be supported in YCBCR420 format, and false if not. no cap, that's the whole tea β˜•


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/drm_modes.c

and the whole friend group, in order, no gatekeeping:


πŸ’€ reminder for the girlies skimming: drm_mode_is_420_only(9) and drm_mode_is_420(9) are her cousins, not her. this one is the also one. don't mix them up fr fr πŸ™ˆ

and that's the whole page, bestie!! 🧚 source lives at ./drivers/gpu/drm, dated October 2026, and the page signs off as drm_mode_is_420_also(9). slay, go read your modes πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from