30 #ifndef _SDL2_imageFilter_h 31 #define _SDL2_imageFilter_h 41 # if defined(DLL_EXPORT) && !defined(LIBSDL2_GFX_DLL_IMPORT) 42 # define SDL2_IMAGEFILTER_SCOPE __declspec(dllexport) 44 # ifdef LIBSDL2_GFX_DLL_IMPORT 45 # define SDL2_IMAGEFILTER_SCOPE __declspec(dllimport) 49 #ifndef SDL2_IMAGEFILTER_SCOPE 50 # define SDL2_IMAGEFILTER_SCOPE extern 59 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterMMXdetect(
void);
62 SDL2_IMAGEFILTER_SCOPE
void SDL_imageFilterMMXoff(
void);
63 SDL2_IMAGEFILTER_SCOPE
void SDL_imageFilterMMXon(
void);
72 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterAdd(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
75 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterMean(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
78 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterSub(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
81 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterAbsDiff(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
84 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterMult(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
87 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterMultNor(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
90 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterMultDivby2(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
94 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterMultDivby4(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
98 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterBitAnd(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
101 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterBitOr(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
104 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterDiv(
unsigned char *Src1,
unsigned char *Src2,
unsigned char *Dest,
unsigned int length);
107 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterBitNegation(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length);
110 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterAddByte(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
unsigned char C);
113 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterAddUint(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
unsigned int C);
116 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterAddByteToHalf(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
120 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterSubByte(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
unsigned char C);
123 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterSubUint(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
unsigned int C);
126 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterShiftRight(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
unsigned char N);
129 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterShiftRightUint(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
unsigned char N);
132 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterMultByByte(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
unsigned char C);
135 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterShiftRightAndMultByByte(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
136 unsigned char N,
unsigned char C);
139 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterShiftLeftByte(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
143 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterShiftLeftUint(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
147 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterShiftLeft(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
unsigned char N);
150 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterBinarizeUsingThreshold(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
154 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterClipToRange(
unsigned char *Src1,
unsigned char *Dest,
unsigned int length,
155 unsigned char Tmin,
unsigned char Tmax);
158 SDL2_IMAGEFILTER_SCOPE
int SDL_imageFilterNormalizeLinear(
unsigned char *Src,
unsigned char *Dest,
unsigned int length,
int Cmin,
159 int Cmax,
int Nmin,
int Nmax);