drm_mode_is_420(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mode_is_420 πŸ’…

okay bestie, so this is a page from the Kernel API Manual section 9, and it's about one tiny little function that answers one very specific question: can this videomode do YCBCR420 output or not? that's it. that's the whole gig. no cap. πŸ¦‹


✨ SYNOPSIS ✨

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

so it takes two const pointers and hands you back a bool. that's the whole signature, she's not complicated, she just knows what she's about πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • display β€” the display that's under action rn, like the one being examined. she's the vibe check subject πŸ‘€
  • mode β€” the video mode you want tested. this is the one getting scrutinized, bestie πŸ”

🌸 RETURN 🌸

  • true β€” slay! the mode can be supported in YCBCR420 format πŸ’–
  • false β€” nope, not this one, the mode can't be supported in YCBCR420 format πŸ™ˆ

literally just a yes-or-no, it's giving simple and iconic ✨


πŸ¦‹ SEE ALSO πŸ¦‹

first up, the actual home of this function β€” the kernel file:

  • ./drivers/gpu/drm/drm_modes.c

and then, omg, the whole friend group 🫢 β€” every single one of these is (9) and every single one matters, so here's the full squad, no one gets left out:


bestie note: drm_mode_is_420_only(9) and drm_mode_is_420_also(9) are right there in the list and they are literally the siblings of this function. iykyk πŸ‘‘

and that's the page!! πŸŽ€ this little gem lives under ./drivers/gpu/drm and it's dated October 2026 β€” so yeah, mark your calendars bestie, she's coming πŸ’œ ✨ πŸ“

πŸ“¦ where this page comes from