Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

daoo/astcrt

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ASTC encoder with real-time performance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.