00001 #ifndef FILTERS_H
00002 #define FILTERS_H
00003
00004 #include "goomconfig.h"
00005
00006 #include "graphic.h"
00007 #include "math.h"
00008
00009 typedef struct
00010 {
00011 int vitesse;
00012 unsigned char pertedec;
00013 unsigned char sqrtperte;
00014 int middleX, middleY;
00015 char reverse;
00016 char mode;
00017
00018 int hPlaneEffect;
00019 int vPlaneEffect;
00021 int waveEffect;
00022 int hypercosEffect;
00023
00024
00025 char noisify;
00026 }
00027 ZoomFilterData;
00028
00029
00030 #define NORMAL_MODE 0
00031 #define WAVE_MODE 1
00032 #define CRYSTAL_BALL_MODE 2
00033 #define SCRUNCH_MODE 3
00034 #define AMULETTE_MODE 4
00035 #define WATER_MODE 5
00036 #define HYPERCOS1_MODE 6
00037 #define HYPERCOS2_MODE 7
00038 #define YONLY_MODE 8
00039 #define SPEEDWAY_MODE 9
00040
00041 void pointFilter (guint32 * pix1, Color c, float t1, float t2, float t3, float t4, guint32 cycle);
00042
00043
00044
00045
00046
00047
00048
00049 void zoomFilterFastRGB (guint32 * pix1, guint32 * pix2, ZoomFilterData * zf, guint32 resx, guint32 resy, int switchIncr, float switchMult);
00050
00051 #define SIN_MUL 1
00052 #define SIN_ADD 2
00053
00054 #endif