Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Schlaile <peter@schlaile.de>2006-07-20 17:15:28 +0400
committerPeter Schlaile <peter@schlaile.de>2006-07-20 17:15:28 +0400
commit873d46aeac608163b1a12523b6cf648e24157acf (patch)
treef099ca1c8d7911d5e305ff172182b3ea3da7527b /release/plugins/sequence
parentcebb1f94654d73140c8dae7e3701217ca4896e43 (diff)
== 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...)
Diffstat (limited to 'release/plugins/sequence')
-rw-r--r--release/plugins/sequence/gamma.c8
1 files changed, 3 insertions, 5 deletions
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);