RICE: OOT Fix from mupen64plus-ae team
[mupen64plus-pandora.git] / source / gles2glide64 / src / GlideHQ / TxReSample.h
CommitLineData
98e75f2d 1/*
2 * Texture Filtering
3 * Version: 1.0
4 *
5 * Copyright (C) 2007 Hiroshi Morii All Rights Reserved.
6 * Email koolsmoky(at)users.sourceforge.net
7 * Web http://www.3dfxzone.it/koolsmoky
8 *
9 * this is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2, or (at your option)
12 * any later version.
13 *
14 * this is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with GNU Make; see the file COPYING. If not, write to
21 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 */
23
24#ifndef __TXRESAMPLE_H__
25#define __TXRESAMPLE_H__
26
27#include "TxInternal.h"
28
29class TxReSample
30{
31private:
32 double tent(double x);
33 double gaussian(double x);
34 double sinc(double x);
35 double lanczos3(double x);
36 double mitchell(double x);
37 double besselI0(double x);
38 double kaiser(double x);
39public:
40 boolean minify(uint8 **src, int *width, int *height, int ratio);
41 boolean nextPow2(uint8** image, int* width, int* height, int bpp, boolean use_3dfx);
42 int nextPow2(int num);
43};
44
45#endif /* __TXRESAMPLE_H__ */