ENUM DP_PIXELFORMAT(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms