C# managed PVRTC encoder/decoder library. This is a C# implementation of PVRTC texture format compression and decompression. Only 4 bit modes supported.
Because I needed this for my personal project.
You can do runtime PVRTC compression in your app/software. This could be handy if you are doing procedural texture generation and want to save some GPU texture memory. Or you could in certain situation save few download bytes by sending e.g. PNG textures to device and then converting those to PVRTC.
important functions are EncodeRgb4Bpp(Texture2D bitmap)
EncodeRgba4Bpp(Texture2D bitmap) and DecodeRgb4Bpp(byte[] data, int width)
DecodeRgba4Bpp(byte[] data, int width)
- Performance could be better
- There could be a multithreaded version of encoder/decoder
- It does NOT support PVRTC 2 bit
- It does NOT open PVR files
- It does NOT generate PVR files
This C# version is under BSD License. That is because original C++ version was under BSD License.
jthlim and Brendan Duncan who made the C++ implementation that I shamelessly ported to C#.