#pragma warning(disable: 4786)
#endif
+#ifndef NO_FILTER_THREAD
#include <functional>
#include <thread>
+#endif
/* NOTE: The codes are not optimized. They can be made faster. */
/* get dxtn extensions */
_tx_compress_fxt1 = TxLoadLib::getInstance()->getfxtCompressTexFuncExt();
- _tx_compress_dxtn = TxLoadLib::getInstance()->getdxtCompressTexFuncExt();
+ _tx_compress_dxtn_rgba = TxLoadLib::getInstance()->getdxtCompressTexFuncExt();
}
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
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,
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,
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 */
* 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 */