[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43179] trunk/blender/source/blender/imbuf : Fix mistake in recent refactoring, dither needs to be float not int.

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Jan 5 18:50:35 CET 2012


Revision: 43179
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43179
Author:   blendix
Date:     2012-01-05 17:50:34 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
Fix mistake in recent refactoring, dither needs to be float not int.

Modified Paths:
--------------
    trunk/blender/source/blender/imbuf/IMB_imbuf.h
    trunk/blender/source/blender/imbuf/intern/divers.c

Modified: trunk/blender/source/blender/imbuf/IMB_imbuf.h
===================================================================
--- trunk/blender/source/blender/imbuf/IMB_imbuf.h	2012-01-05 17:50:25 UTC (rev 43178)
+++ trunk/blender/source/blender/imbuf/IMB_imbuf.h	2012-01-05 17:50:34 UTC (rev 43179)
@@ -380,7 +380,7 @@
 
 /* converting pixel buffers */
 void IMB_buffer_byte_from_float(unsigned char *rect_to, const float *rect_from,
-	int channels_from, int dither, int profile_to, int profile_from, int predivide,
+	int channels_from, float dither, int profile_to, int profile_from, int predivide,
 	int width, int height, int stride_to, int stride_from);
 void IMB_buffer_float_from_byte(float *rect_to, const unsigned char *rect_from,
 	int profile_to, int profile_from, int predivide,

Modified: trunk/blender/source/blender/imbuf/intern/divers.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/divers.c	2012-01-05 17:50:25 UTC (rev 43178)
+++ trunk/blender/source/blender/imbuf/intern/divers.c	2012-01-05 17:50:34 UTC (rev 43179)
@@ -123,7 +123,7 @@
 
 /* float to byte pixels, output 4-channel RGBA */
 void IMB_buffer_byte_from_float(uchar *rect_to, const float *rect_from,
-	int channels_from, int dither, int profile_to, int profile_from, int predivide,
+	int channels_from, float dither, int profile_to, int profile_from, int predivide,
 	int width, int height, int stride_to, int stride_from)
 {
 	float tmp[4];




More information about the Bf-blender-cvs mailing list