PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/xbmc/visualizations/Goom/goom2k4-0/src/goom_filters.h

http://github.com/xbmc/xbmc
C++ Header | 52 lines | 36 code | 8 blank | 8 comment | 0 complexity | 5aaf78688d9a1cd64f5acdf1f1fcd7f5 MD5 | raw 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
 9VisualFX zoomFilterVisualFXWrapper_create(void);
10
11struct _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) */
20	/** @since June 2001 */
21	int     hPlaneEffect;      /* deviation horitontale */
22	int     vPlaneEffect;      /* deviation verticale */
23	/** @since April 2002 */
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