Libvje / refactor : radcor_apply

* frame->width,frame->height
This commit is contained in:
[d.j.a.y] Jerome Blanchi
2016-04-06 09:16:37 +02:00
parent 403988a33d
commit 0ab939e5cb
4 changed files with 6 additions and 4 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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 );

View File

@@ -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]);