v1.03 prerelease - Full Linux port of crnlib/crunch, in progress - still more testing to do, and some cmd line options (such as -timestamp) don't work under linux yet, but the core stuff (compression/decompression/transcoding) should work fine and performance under Linux is comparable to Windows. The 3 examples haven't been ported yet.
This commit is contained in:
+13
-1
@@ -37,7 +37,19 @@ namespace crnlib
|
||||
*pDst++ = swap16(*pSrc++);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void copy_dwords(uint32* pDst, const uint32* pSrc, uint num, bool endian_switch)
|
||||
{
|
||||
if (!endian_switch)
|
||||
memcpy(pDst, pSrc, num << 2U);
|
||||
else
|
||||
{
|
||||
uint32* pDst_end = pDst + num;
|
||||
while (pDst != pDst_end)
|
||||
*pDst++ = swap32(*pSrc++);
|
||||
}
|
||||
}
|
||||
|
||||
uint compute_max_mips(uint width, uint height)
|
||||
{
|
||||
if ((width | height) == 0)
|
||||
|
||||
Reference in New Issue
Block a user