Coder Social home page Coder Social logo

zloop1982 / astcrt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daoo/astcrt

0.0 0.0 0.0 240 KB

ASTC encoder with real-time performance.

License: BSD 3-Clause "New" or "Revised" License

Python 7.11% C++ 21.90% C 0.62% Meson 0.39% Objective-C 69.98%

astcrt's Introduction

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

astcrt's People

Contributors

daoo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.