diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-01 05:54:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-01 05:54:10 +0300 |
commit | f801b2bcba276a26a68accb9167798c4facb9275 (patch) | |
tree | 64ea3576e772dff74146d58933a2beacdb95968d /source/blender/imbuf/IMB_imbuf.h | |
parent | ad0dd98f26bc681c92a0a1893c17a3bc484a0cb5 (diff) |
bugfix [#23406] DPX Images load darker then saved, UI broken.
- a linear float buffer was being created and saved into a non-linear DPX/Cineon file.
- removed the UI since the settings are not used at the moment.
added a utility function IMB_float_profile_ensure(), which returns a float buffer in the requested profile, using the existing if needed or returning an allocated buffer if the profile is different to that of the ImBuf. - Useful this case where the save function has its own linear setting.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index eff42e48dad..a22168e06a3 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -321,6 +321,7 @@ void IMB_float_from_rect(struct ImBuf *ibuf); void IMB_float_from_rect_simple(struct ImBuf *ibuf); /* no profile conversion */ /* note, check that the conversion exists, only some are supported */ void IMB_convert_profile(struct ImBuf *ibuf, int profile); +float *IMB_float_profile_ensure(struct ImBuf *ibuf, int profile, int *alloc); /** * Change the ordering of the color bytes pointed to by rect from |