Libvje / refactor : color_apply

This commit is contained in:
[d.j.a.y] Jerome Blanchi
2016-07-29 09:36:43 +02:00
parent 81ae1a7758
commit db946a8960
4 changed files with 6 additions and 9 deletions

View File

@@ -48,9 +48,7 @@ vj_effect *color_init(int w, int h)
}
void color_apply(VJFrame *frame, int width, int height,
int opacity_a, int opacity_b,
int opacity_c)
void color_apply(VJFrame *frame, int opacity_a, int opacity_b, int opacity_c)
{
unsigned int i;
const unsigned int op_a0 = 255 - opacity_a;
@@ -93,7 +91,7 @@ void color_apply(VJFrame *frame, int width, int height,
Cb[i] = q1;
Cr[i] = q2;
}
}
}
void color_free(){}

View File

@@ -25,7 +25,7 @@
#include <stdint.h>
vj_effect *color_init();
void color_apply( VJFrame *frame , int width, int height, int a, int b, int c);
void color_apply( VJFrame *frame, int a, int b, int c);
void color_free();
#endif

View File

@@ -421,8 +421,7 @@ extern void perspective_apply( VJFrame *frame, int x1, int y1, int x2, int y2,
extern void deinterlace_apply(VJFrame *frame, int val);
//extern void simplematte_apply(VJFrame *frame, int threshold, int invert);
extern void crosspixel_apply(VJFrame *frame,int type, int val);
extern void color_apply(VJFrame *frame, int w, int h, int a,int b, int c);
extern void color_apply(VJFrame *frame, int a, int b, int c);
//extern void water_apply(VJFrame *frame, int w, int h, int val, int l, int d);
extern void water_apply(void *user_data, VJFrame *frame, VJFrame *frame2, int width, int height, int fresh,int loopnum, int decay, int mode, int threshold);

View File

@@ -313,7 +313,7 @@ static void vj_effman_apply_image_effect(
dices_apply(vj_effects[entry], frames[0], arg[0]);
break;
case VJ_IMAGE_EFFECT_COLORTEST:
color_apply(frames[0],frames[0]->width,frames[0]->height,arg[0],arg[1],arg[2]);
color_apply(frames[0], arg[0], arg[1], arg[2]);
break;
case VJ_IMAGE_EFFECT_RAWMAN:
rawman_apply(frames[0], arg[0], arg[1]);