xine-lib: xine-lib-1.2.12/src/post/goom/goom_filters.h Source File

xine-lib 1.2.12

goom_filters.h
Go to the documentation of this file.
1#ifndef FILTERS_H
2#define FILTERS_H
3
4#include "goom_config.h"
5#include "goom_typedefs.h"
6#include "goom_visual_fx.h"
7#include "goom_graphic.h"
8
9 VisualFX zoomFilterVisualFXWrapper_create(void);
10
11 struct _ZOOM_FILTER_DATA
12{
13 int vitesse; /* 128 = vitesse nule... * * 256 = en arriere
14 * hyper vite.. * * 0 = en avant hype vite. */
15 unsigned char pertedec;
16 unsigned char sqrtperte;
17 int middleX, middleY; /* milieu de l'effet */
18 char reverse; /* inverse la vitesse */
19 char mode; /* type d'effet à appliquer (cf les #define) */
21 int hPlaneEffect; /* deviation horitontale */
22 int vPlaneEffect; /* deviation verticale */
24 int waveEffect; /* applique une "surcouche" de wave effect */
25 int hypercosEffect; /* applique une "surcouche de hypercos effect */
26
27 char noisify; /* ajoute un bruit a la transformation */
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
41void pointFilter (PluginInfo *goomInfo, Pixel * pix1, Color c,
42 float t1, float t2, float t3, float t4, guint32 cycle);
43
44/* filtre de zoom :
45 * le contenu de pix1 est copie dans pix2.
46 * zf : si non NULL, configure l'effet.
47 * resx,resy : taille des buffers.
48 */
49void zoomFilterFastRGB (PluginInfo *goomInfo, Pixel * pix1, Pixel * pix2, ZoomFilterData * zf, guint32 resx,
50 guint32 resy, int switchIncr, float switchMult);
51
52#endif
goom_config.h
guint32
#define guint32
Definition: goom_config.h:28
zoomFilterFastRGB
void zoomFilterFastRGB(PluginInfo *goomInfo, Pixel *pix1, Pixel *pix2, ZoomFilterData *zf, unsigned int resx, unsigned int resy, int switchIncr, float switchMult)
Definition: filters.c:528
zoomFilterVisualFXWrapper_create
VisualFX zoomFilterVisualFXWrapper_create(void)
Definition: filters.c:758
pointFilter
void pointFilter(PluginInfo *goomInfo, Pixel *pix1, Color c, float t1, float t2, float t3, float t4, unsigned int cycle)
Definition: filters.c:771
goom_graphic.h
goom_typedefs.h
goom_visual_fx.h
Color
Definition: goom_graphic.h:7
_PLUGIN_INFO
Definition: goom_plugin_info.h:75
_VISUAL_FX
Definition: goom_visual_fx.h:17
_ZOOM_FILTER_DATA
Definition: goom_filters.h:12
_ZOOM_FILTER_DATA::noisify
char noisify
Definition: goom_filters.h:27
_ZOOM_FILTER_DATA::hypercosEffect
int hypercosEffect
Definition: goom_filters.h:25
_ZOOM_FILTER_DATA::vitesse
int vitesse
Definition: goom_filters.h:13
_ZOOM_FILTER_DATA::vPlaneEffect
int vPlaneEffect
Definition: goom_filters.h:22
_ZOOM_FILTER_DATA::hPlaneEffect
int hPlaneEffect
Definition: goom_filters.h:21
_ZOOM_FILTER_DATA::waveEffect
int waveEffect
Definition: goom_filters.h:24
_ZOOM_FILTER_DATA::reverse
char reverse
Definition: goom_filters.h:18
_ZOOM_FILTER_DATA::pertedec
unsigned char pertedec
Definition: goom_filters.h:15
_ZOOM_FILTER_DATA::mode
char mode
Definition: goom_filters.h:19
_ZOOM_FILTER_DATA::middleY
int middleY
Definition: goom_filters.h:17
_ZOOM_FILTER_DATA::middleX
int middleX
Definition: goom_filters.h:17
_ZOOM_FILTER_DATA::sqrtperte
unsigned char sqrtperte
Definition: goom_filters.h:16
_PIXEL
Definition: goom_graphic.h:55