Diffusion Krita 13caeea64772

Fix color selector conversions in OCIO+Internal mode

Authored by dkazakov on Jan 15 2019, 1:06 PM.

Description

Fix color selector conversions in OCIO+Internal mode

The pipeline of he color is the following:

  1. Convert the color to a RGBA-32-bit color space supported by OCIO. Unially, this color space coincides with the one use by the image.
  1. OCIO applies Exposure and Gamma correction
  1. If color management mode is not internal, OCIO converts the color space for the output device, otherwise the color is converted by the display converter explicitly.
  1. Display converted converts the resulting data either in qt-widget color space or to the opengl-surface space.

The problem of Internal mode happened because steps 2 and 3 were
swapped, when in Internal mode. Now everything is applied in a correct
order.

Details

Committed
dkazakovJan 15 2019, 1:06 PM
Parents
R37:6b1505476bde: Fix saving of the OCIO configuration into Krita config file
Branches
Unknown
Tags
Unknown