[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53654] trunk/blender/source/blender: Remove unused IMB function which wasn't ported to new color management
Sergey Sharybin
sergey.vfx at gmail.com
Tue Jan 8 14:32:53 CET 2013
Revision: 53654
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53654
Author: nazgul
Date: 2013-01-08 13:32:48 +0000 (Tue, 08 Jan 2013)
Log Message:
-----------
Remove unused IMB function which wasn't ported to new color management
Also marked some TODOs as actually solved.
Modified Paths:
--------------
trunk/blender/source/blender/imbuf/IMB_imbuf.h
trunk/blender/source/blender/imbuf/intern/divers.c
trunk/blender/source/blender/makesrna/intern/rna_sequencer_api.c
Modified: trunk/blender/source/blender/imbuf/IMB_imbuf.h
===================================================================
--- trunk/blender/source/blender/imbuf/IMB_imbuf.h 2013-01-08 12:10:53 UTC (rev 53653)
+++ trunk/blender/source/blender/imbuf/IMB_imbuf.h 2013-01-08 13:32:48 UTC (rev 53654)
@@ -373,8 +373,6 @@
* Changed part will be stored in buffer. This is expected to be used for texture painting updates */
void IMB_partial_rect_from_float(struct ImBuf *ibuf, float *buffer, int x, int y, int w, int h, int is_data);
void IMB_float_from_rect(struct ImBuf *ibuf);
-/* note, check that the conversion exists, only some are supported */
-float *IMB_float_profile_ensure(struct ImBuf *ibuf, int profile, int *alloc);
void IMB_color_to_bw(struct ImBuf *ibuf);
void IMB_saturation(struct ImBuf *ibuf, float sat);
Modified: trunk/blender/source/blender/imbuf/intern/divers.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/divers.c 2013-01-08 12:10:53 UTC (rev 53653)
+++ trunk/blender/source/blender/imbuf/intern/divers.c 2013-01-08 13:32:48 UTC (rev 53654)
@@ -659,53 +659,6 @@
BLI_unlock_thread(LOCK_COLORMANAGE);
}
-/* use when you need to get a buffer with a certain profile
- * if the return */
-
-/* OCIO_TODO: used only by Cineon/DPX exporter which is still broken, so can not guarantee
- * this function is working properly
- */
-float *IMB_float_profile_ensure(ImBuf *ibuf, int profile, int *alloc)
-{
- int profile_from = IB_PROFILE_LINEAR_RGB;
- int profile_to;
-
- /* determine profile */
- if (profile == IB_PROFILE_NONE)
- profile_to = IB_PROFILE_LINEAR_RGB;
- else
- profile_to = IB_PROFILE_SRGB;
-
- if (profile_from == profile_to) {
- /* simple case, just allocate the buffer and return */
- *alloc = 0;
-
- if (ibuf->rect_float == NULL)
- IMB_float_from_rect(ibuf);
-
- return ibuf->rect_float;
- }
- else {
- /* conversion is needed, first check */
- float *fbuf = MEM_mallocN(ibuf->x * ibuf->y * sizeof(float) * 4, "IMB_float_profile_ensure");
- *alloc = 1;
-
- if (ibuf->rect_float == NULL) {
- IMB_buffer_float_from_byte(fbuf, (uchar *)ibuf->rect,
- profile_to, profile_from, FALSE,
- ibuf->x, ibuf->y, ibuf->x, ibuf->x);
- IMB_premultiply_rect_float(ibuf->rect_float, ibuf->planes, ibuf->x, ibuf->y);
- }
- else {
- IMB_buffer_float_from_float(fbuf, ibuf->rect_float,
- 4, profile_to, profile_from, TRUE,
- ibuf->x, ibuf->y, ibuf->x, ibuf->x);
- }
-
- return fbuf;
- }
-}
-
/**************************** Color to Grayscale *****************************/
/* no profile conversion */
Modified: trunk/blender/source/blender/makesrna/intern/rna_sequencer_api.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_sequencer_api.c 2013-01-08 12:10:53 UTC (rev 53653)
+++ trunk/blender/source/blender/makesrna/intern/rna_sequencer_api.c 2013-01-08 13:32:48 UTC (rev 53654)
@@ -200,7 +200,6 @@
Scene *scene = (Scene *)id;
Sequence *seq;
- /* OCIO_TODO: support configurable color spaces for strips */
struct anim *an = openanim(file, IB_rect, 0, NULL);
if (an == NULL) {
More information about the Bf-blender-cvs
mailing list