mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-21 15:20:02 +01:00
Libvje / refactor : enhancemask
* frame->h , frame->w
This commit is contained in:
@@ -47,11 +47,14 @@ vj_effect *enhancemask_init(int width, int height)
|
|||||||
return ve;
|
return ve;
|
||||||
}
|
}
|
||||||
|
|
||||||
void enhancemask_apply(VJFrame *frame, int width, int height, int *s ) {
|
void enhancemask_apply(VJFrame *frame, int *s )
|
||||||
|
{
|
||||||
|
|
||||||
//int s[9]= { 1, 0, -1, 2, 0, -2, 1 , 0 , -1};
|
//int s[9]= { 1, 0, -1, 2, 0, -2, 1 , 0 , -1};
|
||||||
unsigned int r;
|
unsigned int r;
|
||||||
const unsigned int len = (width*height)-width-1;
|
const int width = frame->width;
|
||||||
|
const int height = frame->height;
|
||||||
|
const unsigned int len = (frame->len)-width-1;
|
||||||
uint8_t *Y = frame->data[0];
|
uint8_t *Y = frame->data[0];
|
||||||
/*
|
/*
|
||||||
int sum=0;
|
int sum=0;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
vj_effect *enhancemask_init(int w, int h);
|
vj_effect *enhancemask_init(int w, int h);
|
||||||
|
|
||||||
|
|
||||||
void enhancemask_apply(VJFrame *frame, int w, int h, int *t);
|
void enhancemask_apply(VJFrame *frame, int *t);
|
||||||
|
|
||||||
void enhancemask_free();
|
void enhancemask_free();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -401,8 +401,7 @@ extern void complexsaturation_apply(VJFrame *frame, int angle, int r, int g, int
|
|||||||
extern void complexthreshold_apply(VJFrame *frame, VJFrame *frame2, int angle,
|
extern void complexthreshold_apply(VJFrame *frame, VJFrame *frame2, int angle,
|
||||||
int r, int g, int b, int level, int threshold);
|
int r, int g, int b, int level, int threshold);
|
||||||
extern void complexsync_apply(VJFrame *frame, VJFrame *frame2, int val );
|
extern void complexsync_apply(VJFrame *frame, VJFrame *frame2, int val );
|
||||||
|
extern void enhancemask_apply(VJFrame *frame, int *t);
|
||||||
extern void enhancemask_apply(VJFrame *frame,int w, int h, int *t);
|
|
||||||
|
|
||||||
extern void contrast_apply(VJFrame *frame, int w, int h, int *t);
|
extern void contrast_apply(VJFrame *frame, int w, int h, int *t);
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ static void vj_effman_apply_image_effect(
|
|||||||
contrast_apply(frames[0], frames[0]->width, frames[0]->height,arg);
|
contrast_apply(frames[0], frames[0]->width, frames[0]->height,arg);
|
||||||
break;
|
break;
|
||||||
case VJ_IMAGE_EFFECT_ENHANCEMASK:
|
case VJ_IMAGE_EFFECT_ENHANCEMASK:
|
||||||
enhancemask_apply(frames[0],frames[0]->width,frames[0]->height,arg);
|
enhancemask_apply(frames[0],arg);
|
||||||
break;
|
break;
|
||||||
case VJ_IMAGE_EFFECT_SOLARIZE:
|
case VJ_IMAGE_EFFECT_SOLARIZE:
|
||||||
solarize_apply(frames[0], arg[0]);
|
solarize_apply(frames[0], arg[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user