From 873d46aeac608163b1a12523b6cf648e24157acf Mon Sep 17 00:00:00 2001 From: Peter Schlaile Date: Thu, 20 Jul 2006 13:15:28 +0000 Subject: == Sequencer plugins == applied bugfix by Stephane Soppera, removing two warnings and declaring pointers explicitly as unsigned char*. (has worked without it, since the compiler flags declare all (char*) in blender to be unsigned...) --- release/plugins/sequence/gamma.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'release/plugins') diff --git a/release/plugins/sequence/gamma.c b/release/plugins/sequence/gamma.c index 828e2fd8841..1c8c91f4f36 100644 --- a/release/plugins/sequence/gamma.c +++ b/release/plugins/sequence/gamma.c @@ -99,10 +99,8 @@ static void make_gamma_table(float setup, float gain, float gamma, void plugin_seq_doit(Cast *cast, float facf0, float facf1, int width, int height, ImBuf *ibuf1, ImBuf *ibuf2, ImBuf *out, ImBuf *use) { - char *dest, *src1, *src2; + unsigned char *dest, *src1, *src2; int x, y, c; - float rgb[3]; - float yuv[3]; unsigned char gamma_table_m[256]; unsigned char gamma_table_r[256]; unsigned char gamma_table_g[256]; @@ -110,8 +108,8 @@ void plugin_seq_doit(Cast *cast, float facf0, float facf1, int width, if (!ibuf1) return; - dest= (char *) out->rect; - src1= (char *) ibuf1->rect; + dest= (unsigned char *) out->rect; + src1= (unsigned char *) ibuf1->rect; make_gamma_table(cast->setup_m, cast->gain_m, cast->gamma_m, gamma_table_m); -- cgit v1.2.3