diff --git a/veejay-current/veejay-server/libplugger/frei0r-loader.c b/veejay-current/veejay-server/libplugger/frei0r-loader.c index 84fd9ae9..fd32c823 100644 --- a/veejay-current/veejay-server/libplugger/frei0r-loader.c +++ b/veejay-current/veejay-server/libplugger/frei0r-loader.c @@ -131,7 +131,6 @@ static inline int frei0r_param_set_double(f0r_set_param_value_f q,void *plugin, static inline int frei0r_param_get_bool(f0r_get_param_value_f q, void *plugin, int seq_no) { double b; - f0r_param_t param; (*q)( plugin, (void **) &b, seq_no ); if( b!= 0.0 && b!=1. ) { b = 0.0; diff --git a/veejay-current/veejay-server/libplugger/plugload.c b/veejay-current/veejay-server/libplugger/plugload.c index 2544020e..c1c9b6f6 100644 --- a/veejay-current/veejay-server/libplugger/plugload.c +++ b/veejay-current/veejay-server/libplugger/plugload.c @@ -837,8 +837,6 @@ void plug_build_name_space( int fx_id, void *fx_instance, void *data, int entry_ void plug_print_all() { - int n; - int x=0; /*for(n = 0; n < index_ ; n ++ ) { char *fx_name = plug_get_name(n); diff --git a/veejay-current/veejay-server/libvje/effects/alphaselect.c b/veejay-current/veejay-server/libvje/effects/alphaselect.c index dc80bbbd..d479ca4c 100644 --- a/veejay-current/veejay-server/libvje/effects/alphaselect.c +++ b/veejay-current/veejay-server/libvje/effects/alphaselect.c @@ -80,7 +80,7 @@ void alphaselect_apply( VJFrame *frame, int width, int height, int i_angle, int r, int g, int b, int swap) { - int8_t *fg_cb, *fg_cr; + uint8_t *fg_cb, *fg_cr; int accept_angle_tg; int cb, cr; float kg1, tmp, aa = 255.0f, bb = 255.0f, _y = 0; @@ -91,7 +91,7 @@ void alphaselect_apply( VJFrame *frame, int width, uint8_t *Cb = frame->data[1]; uint8_t *Cr = frame->data[2]; uint8_t *A = frame->data[3]; - int iy,iu,iv; + int iy=0,iu=128,iv=128; _rgb2yuv(r,g,b,iy,iu,iv); _y = (float) iy; diff --git a/veejay-current/veejay-server/libvje/effects/alphaselect2.c b/veejay-current/veejay-server/libvje/effects/alphaselect2.c index 7cd14382..579fd238 100644 --- a/veejay-current/veejay-server/libvje/effects/alphaselect2.c +++ b/veejay-current/veejay-server/libvje/effects/alphaselect2.c @@ -98,7 +98,7 @@ void alphaselect2_apply( VJFrame *frame, int width, uint8_t *Cb = frame->data[1]; uint8_t *Cr = frame->data[2]; uint8_t *A = frame->data[3]; - int iy,iu,iv; + int iy=0,iu=128,iv=128; _rgb2yuv(r,g,b,iy,iu,iv); const double dtola = tola * 0.1f; diff --git a/veejay-current/veejay-server/libvje/effects/bathroom.c b/veejay-current/veejay-server/libvje/effects/bathroom.c index afb816b4..12f64c13 100644 --- a/veejay-current/veejay-server/libvje/effects/bathroom.c +++ b/veejay-current/veejay-server/libvje/effects/bathroom.c @@ -75,7 +75,6 @@ static int n__ = 0; static int N__ = 0; int bathroom_malloc(int width, int height) { - int i; bathroom_frame[0] = (uint8_t*)vj_malloc(sizeof(uint8_t) * RUP8(width*height * 4)); if(!bathroom_frame[0]) return 0; diff --git a/veejay-current/veejay-server/libvje/effects/boids.c b/veejay-current/veejay-server/libvje/effects/boids.c index bb0d5f86..02b4c30d 100644 --- a/veejay-current/veejay-server/libvje/effects/boids.c +++ b/veejay-current/veejay-server/libvje/effects/boids.c @@ -160,7 +160,6 @@ static void blob_init_( blob_t *b , int blob_id, int w , int h) int boids_malloc(int w, int h) { int j,i; - double frac; int dist_sqrt; if(blob_radius_ <= 0) @@ -190,7 +189,6 @@ int boids_malloc(int w, int h) dist_sqrt = i * i + j * j; if( dist_sqrt < blob_sradius_ ) { - frac = (double) (sqrt(dist_sqrt)) / (double) blob_sradius_; blob_[i + blob_radius_][j + blob_radius_] = 0xff; } else diff --git a/veejay-current/veejay-server/libvje/effects/chromapalette.c b/veejay-current/veejay-server/libvje/effects/chromapalette.c index a0c13173..6815961d 100644 --- a/veejay-current/veejay-server/libvje/effects/chromapalette.c +++ b/veejay-current/veejay-server/libvje/effects/chromapalette.c @@ -106,7 +106,7 @@ void chromapalette_apply(VJFrame *frame, int width, int height, int angle, int r uint8_t *Cr = frame->data[2]; uint8_t U; uint8_t V; - int y,u,v; + int y=0,u=128,v=128; const float cb_mul = 0.492; const float cr_mul = 0.877; diff --git a/veejay-current/veejay-server/libvje/effects/dices.c b/veejay-current/veejay-server/libvje/effects/dices.c index 79a1baac..3c58f537 100644 --- a/veejay-current/veejay-server/libvje/effects/dices.c +++ b/veejay-current/veejay-server/libvje/effects/dices.c @@ -128,7 +128,7 @@ void dices_apply( void* data, VJFrame *frame, int width, int height, int cube_bits) { - int i = 0, map_x, map_y, map_i = 0, base, dx, dy, di; + int i = 0, map_x, map_y, map_i = 0, base, dx, dy, di=0; uint8_t *Y = frame->data[0]; uint8_t *Cb = frame->data[1]; uint8_t *Cr = frame->data[2]; diff --git a/veejay-current/veejay-server/libvje/effects/dummy.c b/veejay-current/veejay-server/libvje/effects/dummy.c index d60b476b..3038d19a 100644 --- a/veejay-current/veejay-server/libvje/effects/dummy.c +++ b/veejay-current/veejay-server/libvje/effects/dummy.c @@ -66,9 +66,9 @@ void dummy_apply( VJFrame *frame, int width, int height, int color) void dummy_rgb_apply( VJFrame *frame, int width, int height, int r,int g, int b) { - const int len = frame->len; + const int len = frame->len; const int uv_len = frame->uv_len; - int colorCb, colorCr, colorY; + int colorCb=128, colorCr=128, colorY=0; uint8_t *Y = frame->data[0]; uint8_t *Cb = frame->data[1]; diff --git a/veejay-current/veejay-server/libvje/effects/flip.c b/veejay-current/veejay-server/libvje/effects/flip.c index a7f8df71..383bd64e 100644 --- a/veejay-current/veejay-server/libvje/effects/flip.c +++ b/veejay-current/veejay-server/libvje/effects/flip.c @@ -20,8 +20,8 @@ #include #include #include +#include "common.h" #include "flip.h" -#include vj_effect *flip_init(int w, int h) { diff --git a/veejay-current/veejay-server/libvje/effects/isolate.c b/veejay-current/veejay-server/libvje/effects/isolate.c index d9f71a1a..47e878b0 100644 --- a/veejay-current/veejay-server/libvje/effects/isolate.c +++ b/veejay-current/veejay-server/libvje/effects/isolate.c @@ -67,9 +67,8 @@ void isolate_apply( VJFrame *frame, int width, int height, int i_angle, int r, int g, int b, int opacity) { - - int8_t *fg_cb, *fg_cr; - int accept_angle_tg, accept_angle_ctg; + uint8_t *fg_cb, *fg_cr; + int accept_angle_tg; int cb, cr; float kg1, tmp, aa = 255, bb = 255, _y = 0; float angle = (float) i_angle / 100.0f; @@ -90,7 +89,6 @@ void isolate_apply( VJFrame *frame, int width, /* obtain coordinate system for cb / cr */ accept_angle_tg = (int)( 15.0f * tanf(M_PI * angle / 180.0f)); - accept_angle_ctg= (int)( 15.0f / tanf(M_PI * angle / 180.0f)); tmp = 1 / kg1; diff --git a/veejay-current/veejay-server/libvje/effects/radcor.c b/veejay-current/veejay-server/libvje/effects/radcor.c index 37f6a627..a946f9e8 100644 --- a/veejay-current/veejay-server/libvje/effects/radcor.c +++ b/veejay-current/veejay-server/libvje/effects/radcor.c @@ -179,7 +179,7 @@ void radcor_apply( VJFrame *frame, int width, int height, int alpaX, int alpaY, if( alpha) { for( i = 0; i < len; i ++ ) { - A[i * width + j ] = Ai[ Map[i * width + j] ]; + A[i] = Ai[ Map[i] ]; } } diff --git a/veejay-current/veejay-server/libvje/effects/rgbkey.c b/veejay-current/veejay-server/libvje/effects/rgbkey.c index 0f024fe6..ab495db1 100644 --- a/veejay-current/veejay-server/libvje/effects/rgbkey.c +++ b/veejay-current/veejay-server/libvje/effects/rgbkey.c @@ -209,7 +209,7 @@ void rgbkey_apply(VJFrame *frame, VJFrame *frame2, int width,int height, int tol uint8_t *A = frame->data[3]; uint8_t *B = frame2->data[3]; const unsigned int len = frame->len; - int iy,iu,iv; + int iy=0,iu=128,iv=128; uint8_t *T = temp[0]; uint8_t op0,op1; diff --git a/veejay-current/veejay-server/libvje/effects/threshold.c b/veejay-current/veejay-server/libvje/effects/threshold.c index 3e330bf6..dca8b647 100644 --- a/veejay-current/veejay-server/libvje/effects/threshold.c +++ b/veejay-current/veejay-server/libvje/effects/threshold.c @@ -94,7 +94,6 @@ void threshold_apply( VJFrame *frame, VJFrame *frame2,int width, int height, int uint8_t *Cb2=frame2->data[1]; uint8_t *Cr2=frame2->data[2]; - uint8_t *bmap = binary_img; int len = frame->len; softblur_apply( frame, width,height,0 ); diff --git a/veejay-current/veejay-server/libvje/effects/videoplay.c b/veejay-current/veejay-server/libvje/effects/videoplay.c index cd93d022..e5928afc 100644 --- a/veejay-current/veejay-server/libvje/effects/videoplay.c +++ b/veejay-current/veejay-server/libvje/effects/videoplay.c @@ -84,9 +84,6 @@ static int prepare_filmstrip(int film_length, int w, int h) num_videos = film_length; - uint8_t val = 0; -// int inc = num_videos % 255; - for ( i = 0; i < num_videos; i ++ ) { video_list[i] = vj_calloc(sizeof(picture_t)); @@ -101,7 +98,6 @@ static int prepare_filmstrip(int film_length, int w, int h) return 0; veejay_memset(video_list[i]->data[j], (j==0 ? pixel_Y_lo_ : 128), picture_width *picture_height ); } - // val+= inc; } frame_counter = 0; diff --git a/veejay-current/veejay-server/libvje/effects/videowall.c b/veejay-current/veejay-server/libvje/effects/videowall.c index 0ce99427..6052fc7c 100644 --- a/veejay-current/veejay-server/libvje/effects/videowall.c +++ b/veejay-current/veejay-server/libvje/effects/videowall.c @@ -60,7 +60,6 @@ vj_effect *videowall_init(int w, int h) static picture_t **photo_list = NULL; static int num_photos = 0; static int frame_counter = 0; -static int frame_delay = 0; static int *offset_table_x = NULL; static int *offset_table_y = NULL; diff --git a/veejay-current/veejay-server/libvje/transitions/fadecolor.c b/veejay-current/veejay-server/libvje/transitions/fadecolor.c index 26125162..41e3b380 100644 --- a/veejay-current/veejay-server/libvje/transitions/fadecolor.c +++ b/veejay-current/veejay-server/libvje/transitions/fadecolor.c @@ -58,7 +58,7 @@ void colorfade_apply(VJFrame *frame, int width, int height, int opacity, unsigned int i, op0, op1; unsigned int len = width * height; uint8_t colorCb = 128, colorCr = 128; - uint8_t colorY; + uint8_t colorY=0; const int uv_len = frame->uv_len; uint8_t *Y = frame->data[0]; uint8_t *Cb = frame->data[1];