Libvje / refactor : maskstop

* w,h
* clean headers
This commit is contained in:
[d.j.a.y] Jerome Blanchi
2016-07-29 18:20:31 +02:00
parent 2c33582972
commit e3a0f54470
4 changed files with 7 additions and 12 deletions

View File

@@ -20,12 +20,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 , USA.
*/
#include <config.h>
#include <stdlib.h>
#include <stdint.h>
#include <libvjmem/vjmem.h>
#include <libvje/vje.h>
#include "common.h"
#include <libvjmem/vjmem.h>
#include "maskstop.h"
static uint8_t *vvmaskstop_buffer[6];
@@ -90,7 +87,8 @@ void maskstop_free() {
}
void maskstop_apply( VJFrame *frame, int width, int height, int negmask, int swapmask, int framefreq, int maskfreq) {
void maskstop_apply( VJFrame *frame, int negmask, int swapmask, int framefreq, int maskfreq)
{
int i=0;
const unsigned int len = frame->len;

View File

@@ -23,6 +23,6 @@
vj_effect *maskstop_init(int width, int height);
int maskstop_malloc(int w, int h);
void maskstop_free();
void maskstop_apply( VJFrame *frame, int width, int height, int negmask, int swapmask, int framefreq, int maskfreq);
void maskstop_apply( VJFrame *frame,int negmask, int swapmask, int framefreq, int maskfreq);
#endif

View File

@@ -470,9 +470,7 @@ extern void neighbours3_apply( VJFrame *frame, int brush_size, int level, int mo
extern void neighbours4_apply( VJFrame *frame, int radius, int brush_size, int level, int mode);
extern void neighbours5_apply( VJFrame *frame, int radius, int brush_size, int level);
extern void cutstop_apply( VJFrame *frame, int treshold, int freq, int cutmode, int holdmode);
extern void maskstop_apply( VJFrame *frame,
int width, int height, int treshold,
int freq, int cutmode, int holdmode);
extern void maskstop_apply( VJFrame *frame, int treshold, int freq, int cutmode, int holdmode);
extern void photoplay_apply(VJFrame *frame, int w, int h, int a, int b, int c);
extern void videoplay_apply(VJFrame *frame,VJFrame *B, int w, int h, int a, int b, int c);

View File

@@ -95,8 +95,7 @@ static void vj_effman_apply_image_effect(
frames[0]->height,arg[0],arg[1],arg[2]);
break;
case VJ_IMAGE_EFFECT_MASKSTOP:
maskstop_apply(frames[0],frames[0]->width,
frames[0]->height,arg[0],arg[1],arg[2],arg[3]);
maskstop_apply(frames[0],arg[0],arg[1],arg[2],arg[3]);
break;
case VJ_IMAGE_EFFECT_CUTSTOP:
cutstop_apply(frames[0],arg[0],arg[1],arg[2],arg[3]);