X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fgles2glide64%2Fsrc%2FGlideHQ%2FTxReSample.h;fp=source%2Fgles2glide64%2Fsrc%2FGlideHQ%2FTxReSample.h;h=805647d2980bc6244a9988d0eb3bf8ab9ef9fbef;hb=98e75f2d18c02c233da543560f76282f04fc796c;hp=0000000000000000000000000000000000000000;hpb=0ced54f867d36e8b324155bef49e8abfebfc3237;p=mupen64plus-pandora.git diff --git a/source/gles2glide64/src/GlideHQ/TxReSample.h b/source/gles2glide64/src/GlideHQ/TxReSample.h new file mode 100644 index 0000000..805647d --- /dev/null +++ b/source/gles2glide64/src/GlideHQ/TxReSample.h @@ -0,0 +1,45 @@ +/* + * Texture Filtering + * Version: 1.0 + * + * Copyright (C) 2007 Hiroshi Morii All Rights Reserved. + * Email koolsmoky(at)users.sourceforge.net + * Web http://www.3dfxzone.it/koolsmoky + * + * this is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * this is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef __TXRESAMPLE_H__ +#define __TXRESAMPLE_H__ + +#include "TxInternal.h" + +class TxReSample +{ +private: + double tent(double x); + double gaussian(double x); + double sinc(double x); + double lanczos3(double x); + double mitchell(double x); + double besselI0(double x); + double kaiser(double x); +public: + boolean minify(uint8 **src, int *width, int *height, int ratio); + boolean nextPow2(uint8** image, int* width, int* height, int bpp, boolean use_3dfx); + int nextPow2(int num); +}; + +#endif /* __TXRESAMPLE_H__ */