mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-18 22:00:00 +01:00
Libvje / refactor : color_apply
This commit is contained in:
@@ -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(){}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user