Blender Git Commit Log

Git Commits -> Revision 0d37f82

Revision 0d37f82 by Sergey Sharybin (master)
July 16, 2012, 10:50 (GMT)
Color management: support of configurable input color space

This adds a user-defined input color space name for image and
movie clip data blocks. Support for this thing for other data
blocks is still a TODO.

Input color space is being used on loading file to convert
loaded image buffer from this space to scene linear space,
later this space is never used in a pipeline.

Color space name was wrapped into own structure like it's
done for display and view settings. This helps keep code
de-duplicated in RNA and it'll help when likely more options
are added into input color space settings (i.e. flag whether
image could be color managed or it's a non-color data).

This implied quite of internal refactoring:

- Made routines around threaded display buffer calculation
more general, so any kind of color transform could be
performed using the same technique.

- Added function to convert given float buffer from given
input color space to output color space. This is a public
function which could be used in such a things as compositor
node.

- Added function to convert ImBuf's content to scene linear
space. Currently used only for images and clips. Should be
added to any image/movie-related data blocks such as
sequencer strips, but that a bit more long-term plan.

- If input color space is set to NONE then no buffer transform
would be performed on image loading. It'll behave in the same
way as using scene linear as input space.

Commit Details:

Full Hash: 0d37f82c9ba51889f156eb239cef1edba59e8003
SVN Revision: 48959
Parent Commit: 5a033ca
Lines Changed: +529, -78

16 Modified Paths:

/release/scripts/startup/bl_ui/space_clip.py (+1, -0) (Diff)
/source/blender/blenkernel/intern/image.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/movieclip.c (+6, -0) (Diff)
/source/blender/editors/space_clip/clip_buttons.c (+11, -0) (Diff)
/source/blender/editors/space_clip/clip_editor.c (+13, -0) (Diff)
/source/blender/editors/space_image/image_buttons.c (+12, -1) (Diff)
/source/blender/imbuf/IMB_colormanagement.h (+13, -0) (Diff)
/source/blender/imbuf/intern/colormanagement.c (+369, -74) (Diff)
/source/blender/imbuf/intern/IMB_colormanagement_intern.h (+4, -0) (Diff)
/source/blender/makesdna/DNA_color_types.h (+4, -0) (Diff)
/source/blender/makesdna/DNA_image_types.h (+4, -0) (Diff)
/source/blender/makesdna/DNA_movieclip_types.h (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_color.c (+71, -1) (Diff)
/source/blender/makesrna/intern/rna_image.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_movieclip.c (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021