MythTV  master
filters.h
Go to the documentation of this file.
1 #ifndef FILTERS_H
2 #define FILTERS_H
3 
4 #include "goomconfig.h"
5 
6 #include "graphic.h"
7 #include "math.h"
8 
9 typedef struct
10 {
11  int vitesse; /* 128 = vitesse nule... * * 256 = en arriere * hyper vite.. * * 0 = en avant hype vite. */
12  unsigned char pertedec;
13  unsigned char sqrtperte;
14  int middleX, middleY; /* milieu de l'effet */
15  char reverse; /* inverse la vitesse */
16  char mode; /* type d'effet appliquer (cf les #define)
17  * * * * * ** @since June 2001 */
18  int hPlaneEffect; /* deviation horitontale */
19  int vPlaneEffect; /* deviation verticale */
21  int waveEffect; /* applique une "surcouche" de wave effect */
22  int hypercosEffect; /* applique une "surcouche de hypercos effect
23  */
24 
25  char noisify; /* ajoute un bruit a la transformation */
26 }
28 
29 
30 #define NORMAL_MODE 0
31 #define WAVE_MODE 1
32 #define CRYSTAL_BALL_MODE 2
33 #define SCRUNCH_MODE 3
34 #define AMULETTE_MODE 4
35 #define WATER_MODE 5
36 #define HYPERCOS1_MODE 6
37 #define HYPERCOS2_MODE 7
38 #define YONLY_MODE 8
39 #define SPEEDWAY_MODE 9
40 
41 void pointFilter (guint32 * pix1, Color c, float t1, float t2, float t3, float t4, guint32 cycle);
42 
43 /* filtre de zoom :
44  * le contenu de pix1 est copie dans pix2.
45  * zf : si non NULL, configure l'effet.
46  * resx,resy : taille des buffers.
47  */
48 
49 void zoomFilterFastRGB (guint32 * pix1, guint32 * pix2, ZoomFilterData * zf, guint32 resx, guint32 resy, int switchIncr, float switchMult);
50 
51 #define SIN_MUL 1
52 #define SIN_ADD 2
53 
54 #endif
void zoomFilterFastRGB(guint32 *pix1, guint32 *pix2, ZoomFilterData *zf, guint32 resx, guint32 resy, int switchIncr, float switchMult)
int hPlaneEffect
Definition: filters.h:18
unsigned char pertedec
Definition: filters.h:12
unsigned char sqrtperte
Definition: filters.h:13
static guint32 cycle
Definition: goom_core.c:36
int vPlaneEffect
Definition: filters.h:19
Definition: graphic.h:6
#define guint32
Definition: goomconfig.h:35
char noisify
Definition: filters.h:25
int waveEffect
Definition: filters.h:21
void pointFilter(guint32 *pix1, Color c, float t1, float t2, float t3, float t4, guint32 cycle)
int hypercosEffect
Definition: filters.h:22
static int middleX
Definition: filters.c:119
char reverse
Definition: filters.h:15