Blender Git Loki

Git Commits -> Revision b57a552

Revision b57a552 by Sergey Sharybin (master)
June 30, 2012, 12:37 (GMT)
Color management refactoiring and some extra options

- Move space-being settings (such as view transform) into own
DNA and RNA structure to avoid code duplication in some areas
and save some arguments on display buffer acquiring function.

Also added some utility functions to BKE to manipulate this
settings.

- Replace static sized color managed buffer flags array with
dynamically sized array which matches actual number of displays.

Probably this flags better be transfposed so it'll support
any number of view transforms and 32 displays (currently it's
other way around). it's runtime flags only, so would be simple
to change any time.

- Added support of configurable exposure and gamma.

Changing this settings wouldn't generate new item in cache,
it'll affect on buffer with the same color spaces conversion.

It'll also run full color transform from scratch on every run,
this could be changes in a way that it'll re-use color managed
buffer, but from quick glance it doesn't give really noticeable
boost.

Currently this settings are stored as pointer in ImBuf structure
itself. Probably it make sense removing them from ImBuf and make
moviecache be able to store some kind of tags associated with
cached ImBuf.

Commit Details:

Full Hash: b57a5521c4a6b1f27fdb2a122b2b31f4f7308950
SVN Revision: 48436
Parent Commit: dc40cb4
Lines Changed: +418, -156

18 Modified Paths:

/intern/opencolorio/ocio_capi.cpp (+52, -0) (Diff)
/intern/opencolorio/ocio_capi.h (+14, -0) (Diff)
/release/scripts/startup/bl_ui/space_image.py (+10, -2) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+10, -2) (Diff)
/source/blender/blenkernel/BKE_colortools.h (+5, -1) (Diff)
/source/blender/blenkernel/intern/colortools.c (+18, -0) (Diff)
/source/blender/editors/space_image/image_draw.c (+2, -1) (Diff)
/source/blender/editors/space_image/space_image.c (+2, -6) (Diff)
/source/blender/editors/space_node/drawnode.c (+2, -1) (Diff)
/source/blender/editors/space_node/space_node.c (+4, -7) (Diff)
/source/blender/imbuf/IMB_colormanagement.h (+8, -2) (Diff)
/source/blender/imbuf/IMB_imbuf_types.h (+3, -2) (Diff)
/source/blender/imbuf/intern/allocimbuf.c (+4, -0) (Diff)
/source/blender/imbuf/intern/colormanagement.c (+185, -43) (Diff)
/source/blender/makesdna/DNA_color_types.h (+10, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_color.c (+76, -3) (Diff)
/source/blender/makesrna/intern/rna_space.c (+8, -81) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021