• tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    2 days ago

    I guess related to the MPV post. From what I understand wp_color_manager_v1 essentially tells a window manager what colorspace its outputting (via dbus?) so that the window manager can make (realtime?) color corrections.

    Trying to think of a use case… maybe if you have a really red video scene, your window manager can normalise that so you can see the different shades of red better. Am I even close?

    • Leaflet@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 days ago

      Videos may use different color spaces. So it’s good to tell the composition which colorspace you’re using so you don’t end up losing detail and distorting colors when displaying them.

      (I’m also by no means a color expert, might have gotten some details wrong).

      • tetris11@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        Makes sense, I just dont quite get what the compositor does in the case of two videos being played simulatanously both with vastly different profiles (e.g. one mostly red, one mostly blue).

        Does the compositor then do correction on a per-window basis, or it just averages across the whole screen. This question is likely outside of the scope of the PR

        • exu@feditown.com
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 days ago

          With color spaces we’re talking about standards like sRGB, Rec.2020 and many more. Wikipedia Article

          If a video comes with information on the color space it uses, the video player and compositor can now do a more source accurate mapping to your screen than before.

          If you also have an ICC profile for your monitor, you’ll get the most out of your panel now. Without that, the compositor will assume an sRGB calibration (when not using HDR) and do its best to map a higher definition video to that.