COLOR FORMAT(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ Color format โœจ

okay so bestie, this is the Color format(9) page from the Kernel API Manual, and itโ€™s literally about the connector "color format" property. That property lets userspace request a specific color model on the output of the connector. ๐Ÿ’…

lowkey important: not all values listed by the property are guaranteed to work for every sink. Itโ€™s an optimistic listing of color formats that the source could output depending on circumstances. no cap. ๐Ÿซถ

Whether it actually can output a certain color format is determined during the atomic check phase. So a userspace application that sets the color format to a value other than "AUTO" should check whether its atomic commit succeeded. fr fr. ๐Ÿ˜ญ

๐ŸŽ€ Possible values for "color format" ๐ŸŽ€

  • "AUTO" โ€” the driver or display protocol helpers should pick a suitable color format. All implementations of a specific display protocol will behave the same way with "AUTO", but different display protocols do not necessarily have the same "AUTO" semantics. For HDMI connectors, "AUTO" picks RGB, but falls back to YUV 4:2:0 if the bandwidth required for full-scale RGB is not available, or the mode is YUV 4:2:0-only, as long as the mode, source, and sink all support YUV 4:2:0.
  • "RGB" โ€” RGB output format. The quantization range (limited/full) depends on the value of the "Broadcast RGB" property if it is present on the connector.
  • "YUV 4:4:4" โ€” YUV 4:4:4 (a.k.a. YCbCr 4:4:4) output format. Chroma is not subsampled. The quantization range defaults to limited.
  • "YUV 4:2:2" โ€” YUV 4:2:2 (a.k.a. YCbCr 4:2:2) output format. Chroma has half the horizontal resolution of Luma. The quantization range defaults to limited.
  • "YUV 4:2:0" โ€” YUV 4:2:0 (a.k.a. YCbCr 4:2:0) output format. Chroma has half the horizontal and vertical resolution of Luma. The quantization range defaults to limited.

A sink may only support some color formats in specific modes and at specific bit depths. The atomic modesetting API should be used to set a working configuration in one go, as an unsupported combination of parameters is rejected. periodt. ๐Ÿ’–


๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

okay thatโ€™s the whole page, bestie. cute little sign-off: shoutout to the source/version at ./drivers/gpu/drm, and the date on this one is October 2026. mwah ๐Ÿ’‹๐ŸŽ€

๐Ÿ“ฆ where this page comes from