Diffusion Krita f3e35b642c3e

Address Lab/CMYK space subtleties within KoColorSpaceMaths

Authored by lsegovia on Jul 12 2017, 5:33 PM.

Description

Address Lab/CMYK space subtleties within KoColorSpaceMaths

Summary:
In T4488, two problems were identified with regards to Lab and CMYK when using KoColorSpaceMaths:

  • Palette loading was broken
  • Calculations themselves were broken: KoColorSpaceMaths assumes [0..1] in floating point whereas Lab has [0.100, -128..+127, -128..+127] and CMYK [0..100].

This patch attempts to fix he following:

  • Lab:
    • Specialize Lab traits
  • CMYK:
    • Specialize CMYK traits

I still need to figure out how to implement the composite ops, as
they will react differently per channel.

Maniphest Tasks: T4488

Differential Revision: https://phabricator.kde.org/D6589

Details

Committed
lsegoviaJul 12 2017, 5:33 PM
Differential Revision
Restricted Differential Revision
Parents
R37:073305f63844: Workaround Qt fullscreen bug on Windows
Branches
Unknown
Tags
Unknown