All Projects → daoo → astcrt

daoo / astcrt

Licence: BSD-3-Clause License
ASTC encoder with real-time performance.

Programming Languages

objective c
16641 projects - #2 most used programming language
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to astcrt

ConvectionKernels
Fast, high-quality texture compression library for many formats
Stars: ✭ 40 (+81.82%)
Mutual labels:  texture-compression

astcrt

This repository contains the code written for my thesis: Real-Time Adaptive Scalable Texture Compression for the Web[1]. It contains the program astcrt, which compress input images into ASTC[2] files.

Building

To build run ./build/configure && ninja -C out_clang_debug.

Dependencies:

  • Bash
  • Ninja
  • Clang (for debug builds)
  • GCC (for release builds)
  • GCC with ARM cross compiler (for arm builds)

Running

The astcrt program encodes an TGA file using the ASTC format. The program takes two arguments: input TGA file path and output ASTC file path. The TGA file must be uncompressed 32-bit BGRA without a color map. The width and height of the input file must also be a multiple of 4. Prepare the image with an image manipulation program.

Decoding

The reference implementation by ARM[3] can be used for decoding.

Run it with the following commands:

astcrt original.tga encoded.astc
astcenc -d encoded.astc decoded.tga
astcenc -compare original.tga decode.tga -showpsnr

References

  1. Real-Time Adaptive Scalable Texture Compression for the Web
  2. Adaptive Scalable Texture Compression
  3. Reference Encoder
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].