X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fgles2glide64%2Fsrc%2FGlideHQ%2FTxFilter.h;fp=source%2Fgles2glide64%2Fsrc%2FGlideHQ%2FTxFilter.h;h=bdbfe1b7c26628e8ef54147785ce8fa68969190d;hb=98e75f2d18c02c233da543560f76282f04fc796c;hp=0000000000000000000000000000000000000000;hpb=0ced54f867d36e8b324155bef49e8abfebfc3237;p=mupen64plus-pandora.git diff --git a/source/gles2glide64/src/GlideHQ/TxFilter.h b/source/gles2glide64/src/GlideHQ/TxFilter.h new file mode 100644 index 0000000..bdbfe1b --- /dev/null +++ b/source/gles2glide64/src/GlideHQ/TxFilter.h @@ -0,0 +1,83 @@ +/* + * 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 __TXFILTER_H__ +#define __TXFILTER_H__ + +#include "TxInternal.h" +#include "TxQuantize.h" +#include "TxHiResCache.h" +#include "TxTexCache.h" +#include "TxUtil.h" +#include "TxImage.h" +#include + +class TxFilter +{ +private: + int _numcore; + + uint8 *_tex1; + uint8 *_tex2; + int _maxwidth; + int _maxheight; + int _maxbpp; + int _options; + int _cacheSize; + std::wstring _ident; + std::wstring _datapath; + std::wstring _cachepath; + TxQuantize *_txQuantize; + TxTexCache *_txTexCache; + TxHiResCache *_txHiResCache; + TxUtil *_txUtil; + TxImage *_txImage; + boolean _initialized; + void clear(); +public: + ~TxFilter(); + TxFilter(int maxwidth, + int maxheight, + int maxbpp, + int options, + int cachesize, + wchar_t *datapath, + wchar_t *cachepath, + wchar_t *ident, + dispInfoFuncExt callback); + boolean filter(uint8 *src, + int srcwidth, + int srcheight, + uint16 srcformat, + uint64 g64crc, /* glide64 crc, 64bit for future use */ + GHQTexInfo *info); + boolean hirestex(uint64 g64crc, /* glide64 crc, 64bit for future use */ + uint64 r_crc64, /* checksum hi:palette low:texture */ + uint16 *palette, + GHQTexInfo *info); + uint64 checksum64(uint8 *src, int width, int height, int size, int rowStride, uint8 *palette); + boolean dmptx(uint8 *src, int width, int height, int rowStridePixel, uint16 gfmt, uint16 n64fmt, uint64 r_crc64); + boolean reloadhirestex(); +}; + +#endif /* __TXFILTER_H__ */