diff --git a/veejay-current/veejay-server/libvje/effects/radcor.c b/veejay-current/veejay-server/libvje/effects/radcor.c index e3c45afe..9699e5b6 100644 --- a/veejay-current/veejay-server/libvje/effects/radcor.c +++ b/veejay-current/veejay-server/libvje/effects/radcor.c @@ -90,9 +90,11 @@ typedef struct } pixel_t; -void radcor_apply( VJFrame *frame, int width, int height, int alpaX, int alpaY, int dir, int alpha) +void radcor_apply( VJFrame *frame, int alpaX, int alpaY, int dir, int alpha) { int i,j; + int width, height; + frame->width = width; frame->height = height; int len = (width * height); int i2,j2; double x,y,x2,x3,y2,y3,r; diff --git a/veejay-current/veejay-server/libvje/effects/radcor.h b/veejay-current/veejay-server/libvje/effects/radcor.h index c788976d..7deb0fd1 100644 --- a/veejay-current/veejay-server/libvje/effects/radcor.h +++ b/veejay-current/veejay-server/libvje/effects/radcor.h @@ -27,5 +27,5 @@ vj_effect *radcor_init(int w, int h); int radcor_malloc(int w, int h); void radcor_free(); -void radcor_apply( VJFrame *frame, int width, int height, int a, int b, int c, int alpha); +void radcor_apply( VJFrame *frame, int a, int b, int c, int alpha); #endif diff --git a/veejay-current/veejay-server/libvje/internal.h b/veejay-current/veejay-server/libvje/internal.h index fff303ad..e705fd98 100644 --- a/veejay-current/veejay-server/libvje/internal.h +++ b/veejay-current/veejay-server/libvje/internal.h @@ -654,7 +654,7 @@ extern void cali_apply(void *d , VJFrame *frame, extern void waterrippletv_apply(VJFrame *frame, int width, int height, int fresh_rate, int loopnum, int decay); -extern void radcor_apply( VJFrame *frame, int width, int height, int a, int b, int c, int alpha); +extern void radcor_apply( VJFrame *frame, int a, int b, int c, int alpha); extern int motionmap_prepare( uint8_t *map[4], int w, int h ); extern int chameleon_prepare( uint8_t *bg[4], int w, int h ); diff --git a/veejay-current/veejay-server/libvje/vj-effman.c b/veejay-current/veejay-server/libvje/vj-effman.c index 8b907743..a342cc5f 100644 --- a/veejay-current/veejay-server/libvje/vj-effman.c +++ b/veejay-current/veejay-server/libvje/vj-effman.c @@ -277,7 +277,7 @@ static void vj_effman_apply_image_effect( timedistort_apply(frames[0],frames[0]->width,frames[0]->height,arg[0]); break; case VJ_IMAGE_EFFECT_LENSCORRECTION: - radcor_apply( frames[0], frames[0]->width,frames[0]->height, arg[0],arg[1] ,arg[2],arg[3]); + radcor_apply( frames[0], arg[0],arg[1] ,arg[2],arg[3]); break; case VJ_IMAGE_EFFECT_NEGATION: negation_apply(frames[0], frames[0]->width, frames[0]->height, arg[0]);