X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=mupen64plus-pandora.git;a=blobdiff_plain;f=source%2Fgles2glide64%2Fsrc%2FGlideHQ%2FTxQuantize.cpp;h=c7a9eee6c630504b18d3bbbd2fe06fcad5de8515;hp=b21db71ac95a27e7c18a2329c312f5dbeeb3bb12;hb=2d26287291331f2b1793a8e76ede08c75654fb7c;hpb=01d8ca6fb06a8261602900cab63c61e5a1b143c9 diff --git a/source/gles2glide64/src/GlideHQ/TxQuantize.cpp b/source/gles2glide64/src/GlideHQ/TxQuantize.cpp index b21db71..c7a9eee 100644 --- a/source/gles2glide64/src/GlideHQ/TxQuantize.cpp +++ b/source/gles2glide64/src/GlideHQ/TxQuantize.cpp @@ -25,8 +25,10 @@ #pragma warning(disable: 4786) #endif +#ifndef NO_FILTER_THREAD #include #include +#endif /* NOTE: The codes are not optimized. They can be made faster. */ @@ -41,7 +43,7 @@ TxQuantize::TxQuantize() /* get dxtn extensions */ _tx_compress_fxt1 = TxLoadLib::getInstance()->getfxtCompressTexFuncExt(); - _tx_compress_dxtn = TxLoadLib::getInstance()->getdxtCompressTexFuncExt(); + _tx_compress_dxtn_rgba = TxLoadLib::getInstance()->getdxtCompressTexFuncExt(); } @@ -1990,7 +1992,7 @@ TxQuantize::DXTn(uint8 *src, uint8 *dest, boolean bRet = 0; - if (_tx_compress_dxtn && + if (_tx_compress_dxtn_rgba && srcwidth >= 4 && srcheight >= 4) { /* compress to dxtn * width and height must be larger than 4 @@ -2038,7 +2040,7 @@ TxQuantize::DXTn(uint8 *src, uint8 *dest, unsigned int srcStride = (srcwidth * blkheight) << 2; unsigned int destStride = dstRowStride * blkrow; for (i = 0; i < numcore - 1; i++) { - thrd[i] = new std::thread(std::bind(_tx_compress_dxtn, + thrd[i] = new std::thread(std::bind(_tx_compress_dxtn_rgba, 4, srcwidth, blkheight, @@ -2049,7 +2051,7 @@ TxQuantize::DXTn(uint8 *src, uint8 *dest, src += srcStride; dest += destStride; } - thrd[i] = new std::thread(std::bind(_tx_compress_dxtn, + thrd[i] = new std::thread(std::bind(_tx_compress_dxtn_rgba, 4, srcwidth, srcheight - blkheight * i, @@ -2062,7 +2064,7 @@ TxQuantize::DXTn(uint8 *src, uint8 *dest, delete thrd[i]; } } else { - (*_tx_compress_dxtn)(4, /* comps: ARGB8888=4, RGB888=3 */ + (*_tx_compress_dxtn_rgba)(4, /* comps: ARGB8888=4, RGB888=3 */ srcwidth, /* width */ srcheight, /* height */ src, /* source */ @@ -2072,7 +2074,7 @@ TxQuantize::DXTn(uint8 *src, uint8 *dest, * others = 16 bytes per 4x4 texel */ } #else - (*_tx_compress_dxtn)(4, /* comps: ARGB8888=4, RGB888=3 */ + (*_tx_compress_dxtn_rgba)(4, /* comps: ARGB8888=4, RGB888=3 */ srcwidth, /* width */ srcheight, /* height */ src, /* source */