I've also made an example 8192x8192 image available for test purposes. It is based on the Carina Nebula shot from Hubble.
For comparison, here's the previous method of speed measurement, heavily influenced by the PNG decoder:
$ time etcpak.exe 8192.pngAnd here's the new benchmark mode:
real 0m1.471s
user 0m0.000s
sys 0m0.030s
$ etcpak.exe 8192.png -b
Image load time: 1330.949 ms
Mean compression time for 50 runs: 631.308 ms
Download: https://bitbucket.org/wolfpld/etcpak/downloads
4 comments:
Hi! To be clear, this tool only generates PVR formatted textures, and not ETC1 textures (PKM header/data), correct?
Yes, only a minimum PVR header is supported currently. Implementing a PKM header should be trivial enough:
1. Modify the header size (magic number 52) to a value appropiate for PKM format (16).
2. Change the OpenForWriting() function to fill the correct data (http://www.mhgames.org/2012/03/android-development-loading-etc1-textures-from-ndk/ for reference).
All the changes should be done in BlockData.cpp.
Hi,
does this tool support ETC2 format?
All ETC1 images are also ETC2 images. etcpak is not able to generate blocks exclusive to ETC2.
Post a Comment