commit | 500945dd1316fcebb6d2fc6ec22019988b8ce6d2 | [log] [tgz] |
---|---|---|
author | Jeff McGlynn <jeff@jeffmcglynn.com> | Tue Nov 27 11:17:42 2018 -0800 |
committer | GitHub <noreply@github.com> | Tue Nov 27 11:17:42 2018 -0800 |
tree | c1c350b5ec2b39c1c036e576968a003c84056028 | |
parent | 16661ba8c0103c2571e84a59a107c9e41dbe60dc [diff] | |
parent | baf0508027872f50198e838fe1148b73a9b11b1f [diff] |
Merge pull request #1 from pokowaka/master CMake support to enable compilation under Visual Studio
astc-codec is a software ASTC decoder implementation, which supports the ASTC LDR profile.
Example usage:
#include <astc-codec/astc-codec.h> // ... std::vector<uint8_t> astc = LoadMyASTCData(); const size_t width = 640; const size_t height = 480; std::vector<uint8_t> result; result.resize(width * height * 4); bool result = astc_codec::ASTCDecompressToRGBA( astc.data(), astc.size(), width, height, astc_codec::FootprintType::k4x4, result.data(), result.size(), /* stride */ width * 4);
Install Bazel, and then run:
bazel build :astc_codec -c opt
astc-codec has been tested on Mac and Linux.
bazel test //...
Install CMake, and the run:
mkdir build && cd build && cmake .. && make
Or open the project in your favorite IDE and import CMakeLists.txt.
In the build directory, execute:
ctest
See CONTRIBUTING.md for important contributing requirements.
astc-codec project is licensed under the Apache License Version 2.0. You can find a copy of it in LICENSE.
This is not an officially supported Google product.