Path: blob/master/libmupen64plus/mupen64plus-video-glide64mk2/src/GlideHQ/TxReSample.h
2 views
/*1* Texture Filtering2* Version: 1.03*4* Copyright (C) 2007 Hiroshi Morii All Rights Reserved.5* Email koolsmoky(at)users.sourceforge.net6* Web http://www.3dfxzone.it/koolsmoky7*8* this is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2, or (at your option)11* any later version.12*13* this is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16* GNU General Public License for more details.17*18* You should have received a copy of the GNU General Public License19* along with GNU Make; see the file COPYING. If not, write to20* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.21*/2223#ifndef __TXRESAMPLE_H__24#define __TXRESAMPLE_H__2526#include "TxInternal.h"2728class TxReSample29{30private:31double tent(double x);32double gaussian(double x);33double sinc(double x);34double lanczos3(double x);35double mitchell(double x);36double besselI0(double x);37double kaiser(double x);38public:39boolean minify(uint8 **src, int *width, int *height, int ratio);40boolean nextPow2(uint8** image, int* width, int* height, int bpp, boolean use_3dfx);41int nextPow2(int num);42};4344#endif /* __TXRESAMPLE_H__ */454647