Color management refactor
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 2 Jul 2012 16:37:40 +0000 (16:37 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 2 Jul 2012 16:37:40 +0000 (16:37 +0000)
commit896fb9fda7d2b6c9c9f41715f52436507ffd65b2
tree600ca48cf9c5f477a55263031afaded24a6710b3
parent11b0e4866eaeec2aeec4f1cea2b9d6b0840ebe33
Color management refactor

- Move color management display settings into own structure like it's
  done for view settings.

  This is helpful from two sides:

  * It is planned to support display calibration settings which
    should be taken into account by color management stuff to
    add needed transformations to OCIO processor.
  * File saving should be able to make the same display
    transformations as it's done by window when displaying the image.
    Having own DNA and RNA structures for display device settings
    helps avoiding having duplicated code.

- Small refactor of cacheing functions which are now accepts
  cache-like versions of view and display settings. This structures
  used for cache are quite the same as DNA structures but they contains
  indices of view and display which avoids extra lookup for this
  things.

  This also helps having reasonable amount of variables passing
  to cache functions.
14 files changed:
release/scripts/startup/bl_ui/properties_color_management.py
release/scripts/startup/bl_ui/space_info.py
source/blender/blenkernel/BKE_colortools.h
source/blender/blenkernel/intern/colortools.c
source/blender/editors/space_clip/clip_draw.c
source/blender/editors/space_image/image_draw.c
source/blender/editors/space_node/drawnode.c
source/blender/imbuf/IMB_colormanagement.h
source/blender/imbuf/intern/colormanagement.c
source/blender/makesdna/DNA_color_types.h
source/blender/makesdna/DNA_windowmanager_types.h
source/blender/makesrna/intern/rna_color.c
source/blender/makesrna/intern/rna_wm.c
source/blender/windowmanager/intern/wm_window.c