forked from bartvdbraak/blender
Fix mistake in recent refactoring, dither needs to be float not int.
This commit is contained in:
parent
6278016892
commit
5233aea8fb
@ -380,7 +380,7 @@ void IMB_color_to_bw(struct ImBuf *ibuf);
|
|||||||
|
|
||||||
/* converting pixel buffers */
|
/* converting pixel buffers */
|
||||||
void IMB_buffer_byte_from_float(unsigned char *rect_to, const float *rect_from,
|
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);
|
int width, int height, int stride_to, int stride_from);
|
||||||
void IMB_buffer_float_from_byte(float *rect_to, const unsigned char *rect_from,
|
void IMB_buffer_float_from_byte(float *rect_to, const unsigned char *rect_from,
|
||||||
int profile_to, int profile_from, int predivide,
|
int profile_to, int profile_from, int predivide,
|
||||||
|
@ -123,7 +123,7 @@ MINLINE void float_to_byte_dither_v4(uchar b[4], const float f[4], float dither)
|
|||||||
|
|
||||||
/* float to byte pixels, output 4-channel RGBA */
|
/* float to byte pixels, output 4-channel RGBA */
|
||||||
void IMB_buffer_byte_from_float(uchar *rect_to, const float *rect_from,
|
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)
|
int width, int height, int stride_to, int stride_from)
|
||||||
{
|
{
|
||||||
float tmp[4];
|
float tmp[4];
|
||||||
|
Loading…
Reference in New Issue
Block a user