mirror of
https://github.com/game-stop/veejay.git
synced 2026-01-09 08:25:30 +01:00
Libvje / refactor : radcor_apply
* frame->width,frame->height
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user