Diffusion Krita 0807eeb01d02

Merge in softproofing and ocio looks.

Authored by woltherav on Jun 28 2016, 3:50 PM.

Description

Merge in softproofing and ocio looks.

These features allow for better workflow in for Print and VFX respectively.
Check https://docs.krita.org/Soft_Proofing on how to use softproofing.

Looks will still need a little note added to Lut management page.

CCMAIL:kimageshop@kde.org
Fixes T2395

Squashed commit of the following:

commit 38c4fc32021af778b9446a05502c885087bc0ff2
Merge: 5477611 e308ed0
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 28 17:46:16 2016 +0200

Merge branch 'master' into krita-testing-wolthera

commit 54776118b78a3f32b408de25f9c7b3532630b5df
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 28 17:43:20 2016 +0200

Add rant why per-shot looks won't work after wasting afternoon on it.

The tl;dr is that OCIO's documentation is extremely vague.

Ref T2337

commit a3b224b6958db0c31a2df4ba47d19d87bf9f9833
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Fri Jun 24 13:16:01 2016 +0200

Fix loading of default gamut warning color.

Always set the color space of the kocolor, kids.

ref T2337

commit 652405d3acd67d4e87d788d0b77fb67768a5cc3b
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Fri Jun 24 12:54:17 2016 +0200

Add adaptation state slider.

This allows you to set whether or not to adapt the white point, that is,
to set the white point to the screen white(full slider) or to convert all whiteson screen to the white point of the profile when using absolute colorimetric
as intent.

This is useful to simulate paper-colour.

Ref T2337

commit aea525ca6dc10b6867153da52fcf215a80adc0ba
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Fri Jun 24 10:32:37 2016 +0200

Fix builds on gcc 6

commit 67f4e5a21f873f5a3d08d3bb90250cb5b5806e2b
Merge: 519f9c1 159a612
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 22:00:22 2016 +0200

Merge branch 'master' into krita-testing-wolthera

commit 519f9c1fbe43edd6922b0cc5ef4ed85f17fd6dfc
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 19:49:56 2016 +0200

Add option to set default Proofing Options.

These will work for images with no proofing options, so, old loaded images
and new images. With this it is feature complete, and people can start testing.

Ref T2337
Ref T1238

commit 062db74d24fb7e656e8a06cbddde560ab03166b6
Merge: 2e057e7 7625539
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 15:16:54 2016 +0200

Merge branch 'master' into krita-testing-wolthera

commit 2e057e7a5339c3e3657fef562bbe716c672805b4
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 15:15:24 2016 +0200

Clean up all the debug messages.

It's... quieter in the terminal now.

Ref T2337

commit 7ff7e60b5f423cdbeaa4089d8a6e7b2cd33129ca
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 15:01:02 2016 +0200

Cleanup: Make projection color a defined tag.

commit 604efc8ddb21d38ad8a040b19ac7fa33cfe2e8d9
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 14:50:20 2016 +0200

Not sure if this isn't the correct code instead...

Ref T2337

commit 7c669703ff0c7fdf755d8070537c339bbcb02533
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 14:42:04 2016 +0200

Load embedded proofing profiles if they exist, and add them to the profile registery.

Needs testing for obvious reasons.

Ref T2337

commit 119906b23bf0e1a3b8acfaf5828cdfcbaa92e77d
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 14:27:07 2016 +0200

Add embedding of the proofing profile.

This is so that we can later unembed them.

Ref T2337

commit 9ef1dad773605e32d7018ccf7a90c1817d430d89
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 14:15:47 2016 +0200

Load Warning Colors properly from file.

Now the out of gamut warning can be written into file as XML
and loaded from file as XML.

Ref T2337

commit 6a57cf08fb170e4d32341ede0f3733be3ab1f37e
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 13:49:49 2016 +0200

Fix naming conventions.

I was using gamut warnings/alarms, and softproofing and soft proofing.

The standard is (Out of )Gamut Warnings and Soft Proofing.

Ref T2337

commit 4faa8b574da039d9dc86f099841bb901495e19a9
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 23 13:37:49 2016 +0200

Disable softproofing in floating point spaces.

There's a bunch of little niggling bugs that crop up when soft proofing
in floating point spaces, amongst which the inability of the proofing
mechanism to see floating point values higher than 1.0 fall outside of
the gamut of the color space, let alone recognising whether it can go
inside the gamut of the proofing space.

See also http://ninedegreesbelow.com/bug-reports/soft-proofing-problems.html

For now, it's best to disable softproofing on floating point spaces.
Might need a more official check, though.

Ref 2337

commit 91d7da8c41c4200729e87f98269fdf011422bb07
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Wed Jun 22 16:26:52 2016 +0200

Make views smart enough to track softproof/gamutcheck-state.

Also add a floating message to say when the softproofing or gamutcheck
is turned on in the view. Wording may change.

Ref T2337

commit 5c48dd2c12e37ff0a75e098368449d260ff524bc
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Wed Jun 22 16:26:35 2016 +0200

Fix Build

commit 6bacfcda6005622669a3f4a47da59a759838797c
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Wed Jun 22 14:45:52 2016 +0200

Add attempt at saving color to xml.

This fails due to me not being able to load the xml, due object-bonanza.

ref T2337

commit 3bbf025b32ae53ff4601f188901541fcb80f63a7
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Wed Jun 22 12:49:06 2016 +0200

Intitial saving/loading of config.[unstable]

Works, but might change later.

commit 1f733e28cb7f87fb4bea5a14159e86c5a5dd852f
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 21 20:21:15 2016 +0200

Refactor the proofing transform system for better caching.

This now makes the transform separately from the actual transforming,
which means it's easier to cache and to update. Softproofing is now
gone from usable to user-friendly.

Still needs saving/loading and little setting-bugs fixed.

ref T2337

commit 8371c4179b1a8025e727528c5b7ce09ee3562ec9
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 21 18:20:48 2016 +0200

Enable Gamut color and proofing intent.

The image now stored proofing intent, and the monitor intent is the general
rendering intent.

This also allows us to set the gamut warning color, however, for updating
you currently need to switch profiles as well. I'll make a seperate
generateSoftProofingTransform function, to cache the transform better, so it's
easier to update.

Ref 2337

commit 9d9ce38079c60ed04a63a2985a9c5ecb08652626
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 21 14:18:05 2016 +0200

Add softproofing section to image properties menu.

Now, the proofing in the image can be changed.

Also fixes that ugly little square problem with the kocoloractionpopup button.

Ref T1238, T2337

commit 8d7b4418e798978ed5e4c9fbb28509e7b9e098d4
Merge: e2ee9ff d58645e
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 16 13:28:24 2016 +0200

Merge remote-tracking branch 'origin/master' into krita-testing-wolthera

commit e2ee9ff5774c80ebb72c02bc02d8ce7a79ace72f
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 14 15:56:50 2016 +0200

Cache the transform unelegantly.

This does cause a significant speed-up, but it's a bit fiddly.
Regardless, the speed-up is enough to make this usable.

commit f643fc7bc2deb9317b6b7ef299f9d76a0c4e2160
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 14 14:49:16 2016 +0200

Fix softproofing

It's slow again :/

commit cbc91c076310188456980563e3c061ca1a47147f
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 14 12:45:43 2016 +0200

Fix setting softproofing and gamutcheck flags.

commit 9ae336ed94207bab7885010720647814c9648e9d
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Tue Jun 14 12:44:50 2016 +0200

Cache the color space engine to make it faster

It doesn't fix everything, but it fixes quite a bit.
Ref T210

commit d43589016b35ea85943c55ff244e83e6bc5cd15a
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Mon Jun 13 17:59:18 2016 +0200

Add base implementation softproofing with toggles.

It doesn't really work yet :/

Ref: T210
Ref: T2337

commit 7de0256960a6021591217ea3935dba1b39143b58
Author: Boudewijn Rempt <boud@valdyas.org>
Date: Sun Jun 12 16:10:31 2016 +0200

Create the proofing transform

This doesn't use the caching graph stuff, which is too complex
to refactor for now.

commit 00efd627af23f28555aa33a78a18fdd133934cf3
Author: Boudewijn Rempt <boud@valdyas.org>
Date: Sun Jun 12 16:10:05 2016 +0200

Add a per-image proofing settings class

commit d3bd5375b304dfea9282a9ad581130c7ddf8200a
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Sun Jun 12 14:44:50 2016 +0200

Push work-in-progress proofing

commit bb97947abc29f76913924de9f1d2cb4a2762cf80
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 9 16:42:18 2016 +0200

Fix copy-paste error

commit 9ed934a8206ea1e11077f9332252b465c0899d1f
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Thu Jun 9 16:30:09 2016 +0200

Add OCIO Look support.

The code is based of that of Blender, as I couldn't figure out how else to
apply looks. The OCIO api wasn't clear about it, nor could I find much information,
but it somewhat works and doesn't crash.

Auditors: rempt, dkazakov
Ref: T210

commit 2819ad66554f33e229729f8d86eb11a01413f23f
Author: Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com>
Date: Wed Jun 8 12:21:25 2016 +0200

Add softproofing to the lcms conversion tests

I am not fully sure if I understand the softproofing function, but the alarm works.