mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 06:10:01 +01:00
Libvje / refactor : noisepencil (fix)
* clean headers
This commit is contained in:
@@ -18,13 +18,9 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 , USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 , USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include "common.h"
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <libvje/vje.h>
|
|
||||||
#include <libvjmem/vjmem.h>
|
#include <libvjmem/vjmem.h>
|
||||||
#include "noisepencil.h"
|
#include "noisepencil.h"
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
static uint8_t *Yb_frame = NULL;
|
static uint8_t *Yb_frame = NULL;
|
||||||
|
|
||||||
@@ -314,21 +310,23 @@ static void noisepencil_5_apply(uint8_t *src[3], int width, int height, int coee
|
|||||||
/* with min_t -> max_t select the threshold to 'noise ' */
|
/* with min_t -> max_t select the threshold to 'noise ' */
|
||||||
void noisepencil_apply(VJFrame *frame, int type, int coeef, int min_t, int max_t)
|
void noisepencil_apply(VJFrame *frame, int type, int coeef, int min_t, int max_t)
|
||||||
{
|
{
|
||||||
|
const unsigned int width = frame->width;
|
||||||
|
const unsigned int height = frame->height;
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case 0:
|
case 0:
|
||||||
noisepencil_1_apply(frame->data,frame->width,frame->height,coeef,min_t,max_t);
|
noisepencil_1_apply(frame->data,width, height, coeef,min_t,max_t);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
noisepencil_2_apply(frame->data,frame->width,frame->height,coeef,min_t,max_t);
|
noisepencil_2_apply(frame->data, width, height, coeef,min_t,max_t);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
noisepencil_3_apply(frame->data,frame->width,frame->height,coeef,min_t,max_t);
|
noisepencil_3_apply(frame->data, width, height, coeef,min_t,max_t);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
noisepencil_4_apply(frame->data,frame->width,frame->height,coeef,min_t,max_t);
|
noisepencil_4_apply(frame->data, width, height, coeef,min_t,max_t);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
noisepencil_5_apply(frame->data,frame->width,frame->height,coeef,min_t,max_t);
|
noisepencil_5_apply(frame->data, width, height, coeef,min_t,max_t);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,14 +19,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef NOISEPENCIL_H
|
#ifndef NOISEPENCIL_H
|
||||||
#define NOISEPENCIL_H
|
#define NOISEPENCIL_H
|
||||||
#include <libvje/vje.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
vj_effect *noisepencil_init (int w, int h);
|
vj_effect *noisepencil_init (int w, int h);
|
||||||
void noisepencil_free();
|
void noisepencil_free();
|
||||||
int noisepencil_malloc(int w, int h);
|
int noisepencil_malloc(int w, int h);
|
||||||
void noisepencil_apply( VJFrame *frame, int t, int n, int a, int b);
|
void noisepencil_apply( VJFrame *frame, int t, int n, int a, int b);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user