Skip to content

Instantly share code, notes, and snippets.

Last active January 1, 2023 09:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save marcan/5c89b85518827bca419bcbbb4bdf6b62 to your computer and use it in GitHub Desktop.


Tested with 10-bit mode on KDE on an M1 Pro.

  • 12:

    • 10-bit mode: 0..1023
    • 8-bit mode: 0..255
    • Likely native primaries
      • Actually seems to be P3?
  • 9:

    • 10-bit mode: 384..896 range for white, gamma looks normal.
    • 8-bit mode: 0..255 slightly wider than native gamut (reds clipped)
    • BT.2020 (with the bg-sRGB range in 10-bit mode)
  • Others:

    • 10-bit mode: Like 9, but with noticeably less saturated primaries at 896. With the extended range, reaches the same saturated primaries as 9,12.
    • 8-bit mode: almost certainly sRGB
    • Likely sRGB/bg-sRGB.

Transfer function

  • 16: HDR (PQ). Doesn't actually increase dynamic range in any way? Clips out at 50% (512) and also has more range devoted to dark/black colors.

  • Others: Normal SDR. Presumably the sRGB transfer function.

  • 1: BT.709? (not explicitly supported)

Fun thing: with HDR mode and "others" colorspace, pure green overflows the red channel beyond whatever negative saturation headroom they have, and it ends up wrapping around into yellow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment