D2607: Switch eye dropper to use linear color space internally
authorStefan Werner <stewreo@gmail.com>
Thu, 20 Apr 2017 20:41:26 +0000 (22:41 +0200)
committerStefan Werner <stewreo@gmail.com>
Thu, 20 Apr 2017 20:41:26 +0000 (22:41 +0200)
commitaeda1a16f3e40b01da9afd573f1811a5212bdf34
tree31358c34d205cd7d4927d81a6b66083b45a7c1db
parentb628f765b09154fcdc9b58496e1c59c03b729e50
D2607: Switch eye dropper to use linear color space internally

This switches the internal color representation of the eye dropper from display space to linear. Any time a linear color is requested and the color is picked from a linear object, the result is now precise to the bit as the color gets patched through directly. Color space conversion now only happens when a color is picked from non-linear display space objects or when the color is requested to be returned in non-linear space.

In addition, this patch changes the DifferenceMatte node to interpret a tolerance of 0.0 to accept colors that are identical bit by bit, as apposed to simply refusing all colors.
source/blender/compositor/operations/COM_DifferenceMatteOperation.cpp
source/blender/editors/include/ED_clip.h
source/blender/editors/include/ED_image.h
source/blender/editors/include/ED_node.h
source/blender/editors/interface/interface_eyedropper.c
source/blender/editors/space_clip/clip_editor.c
source/blender/editors/space_image/image_ops.c
source/blender/editors/space_node/node_view.c