mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-25 01:00:00 +01:00
Libvje / refactor : rawman
* frame->width, frame->height
This commit is contained in:
@@ -51,10 +51,9 @@ vj_effect *rawman_init(int w,int h)
|
||||
return ve;
|
||||
}
|
||||
|
||||
void rawman_apply(VJFrame *frame, unsigned int width,
|
||||
unsigned int height, unsigned int mode, unsigned int YY)
|
||||
void rawman_apply(VJFrame *frame, unsigned int mode, unsigned int YY)
|
||||
{
|
||||
unsigned int len = width * height;
|
||||
unsigned int len = frame->width * frame->height;
|
||||
unsigned int i;
|
||||
uint8_t *Y = frame->data[0];
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
vj_effect *rawman_init();
|
||||
|
||||
void rawman_apply(VJFrame *frame, unsigned int width,
|
||||
unsigned int height, unsigned int mode, unsigned int Y);
|
||||
void rawman_apply(VJFrame *frame, unsigned int mode, unsigned int Y);
|
||||
void rawman_free();
|
||||
#endif
|
||||
|
||||
@@ -333,10 +333,7 @@ extern void transblend_apply(VJFrame *frame, VJFrame *frame2, int mode,
|
||||
extern void borders_apply(VJFrame *frame, int size, int color);
|
||||
extern void frameborder_apply(VJFrame *frame, VJFrame *frame2, int size);
|
||||
extern void noisepencil_apply(VJFrame *frame, int a, int b, int c , int d );
|
||||
|
||||
extern void rawman_apply(VJFrame *frame, unsigned int width,
|
||||
unsigned int height, unsigned int mode,
|
||||
unsigned int Y);
|
||||
extern void rawman_apply(VJFrame *frame, unsigned int mode, unsigned int Y);
|
||||
extern void rawval_apply(VJFrame *frame, int width, int height,
|
||||
int color_cb, int color_cr, int new_cb,
|
||||
int new_cr);
|
||||
|
||||
@@ -324,8 +324,7 @@ static void vj_effman_apply_image_effect(
|
||||
color_apply(frames[0],frames[0]->width,frames[0]->height,arg[0],arg[1],arg[2]);
|
||||
break;
|
||||
case VJ_IMAGE_EFFECT_RAWMAN:
|
||||
rawman_apply(frames[0], frames[0]->width, frames[0]->height, arg[0],
|
||||
arg[1]);
|
||||
rawman_apply(frames[0], arg[0], arg[1]);
|
||||
break;
|
||||
case VJ_IMAGE_EFFECT_RAWVAL:
|
||||
rawval_apply(frames[0], frames[0]->width, frames[0]->height, arg[0], arg[1],
|
||||
|
||||
Reference in New Issue
Block a user