ENUM DP_PIXELFORMAT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum dp_pixelformat ✨

Okay bestie, welcome to the Kernel API Manual, section 9 β€” this is the glow-up page for enum dp_pixelformat, aka drm DP Pixel encoding formats. Yes we're in the display-port pixel-encoding corner of the kernel and yes it's iconic πŸ’…


🌸 NAME 🌸

enum dp_pixelformat β€” drm DP Pixel encoding formats. That's it, that's the whole vibe: it's the enum that names all the pixel encoding formats DP can talk about πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

enum dp_pixelformat {
    DP_PIXELFORMAT_RGB ,
    DP_PIXELFORMAT_YUV444 ,
    DP_PIXELFORMAT_YUV422 ,
    DP_PIXELFORMAT_YUV420 ,
    DP_PIXELFORMAT_Y_ONLY ,
    DP_PIXELFORMAT_RAW ,
    DP_PIXELFORMAT_RESERVED

};

Not me obsessed with that trailing blank line before the closing brace β€” it's giving "the compiler does not care but I do" 😭 Copy it exactly, fr fr.


πŸ’– Constants πŸ’–

Every single member of the squad, in order, no cap:

  • DP_PIXELFORMAT_RGB β€” RGB pixel encoding format 🌈 the classic, the main character.
  • DP_PIXELFORMAT_YUV444 β€” YCbCr 4:4:4 pixel encoding format. Full chroma, no crumbs. ✨
  • DP_PIXELFORMAT_YUV422 β€” YCbCr 4:2:2 pixel encoding format. Chroma said "I'll sit this one out a little". πŸ¦‹
  • DP_PIXELFORMAT_YUV420 β€” YCbCr 4:2:0 pixel encoding format. Lowkey thrifty with the chroma. πŸ’œ
  • DP_PIXELFORMAT_Y_ONLY β€” Y Only pixel encoding format. Just luma, bestie. Nothing else, and honestly? Slay. πŸŽ€
  • DP_PIXELFORMAT_RAW β€” RAW pixel encoding format. No interpretation, just vibes (raw ones). πŸ”₯
  • DP_PIXELFORMAT_RESERVED β€” Reserved pixel encoding format. Placeholder energy, but make it official. πŸ™ˆ

⭐ Description ⭐

So what is this enum for? It's the one used to indicate DP VSC SDP Pixel encoding formats β€” the pixel encoding format field, living in VSC SDP land πŸ’«

And where does that come from? It's based on the DP 1.4 spec, specifically [Table 2-117: VSC SDP Payload for DB16 through DB18]. Not me citing my sources β€” academic icon behaviour πŸ‘‘

Ngl the whole "DB16 through DB18" thing means these values get carried in those payload bytes, so when you're reading or writing them, that table in the DP 1.4 spec is your bestie. Go look at it, iykyk πŸ’…

🫢 SEE ALSO 🫢

Go touch grass in these other pages, they're all linked from the kernel file ./include/drm/display/drm_dp.h:

  • struct dp_sdp_header(9)
  • struct dp_sdp(9)
  • enum dp_colorimetry(9)
  • enum dp_dynamic_range(9)
  • enum dp_content_type(9)

πŸ’– and that's the whole page, bestie πŸ’–

Cute little sign-off for the record: this one ships from ./include/drm/display, dated October 2026, and the page title is, obviously, enum dp_pixelformat(9). Periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from