commit | baf0508027872f50198e838fe1148b73a9b11b1f | [log] [tgz] |
---|---|---|
author | Erwin Jansen <[email protected]> | Wed Nov 21 16:09:40 2018 -0800 |
committer | Erwin Jansen <[email protected]> | Tue Nov 27 10:24:19 2018 -0800 |
tree | c1c350b5ec2b39c1c036e576968a003c84056028 | |
parent | 16661ba8c0103c2571e84a59a107c9e41dbe60dc [diff] |
CMake support to enable compilation under Visual Studio - Add support for cmake - Template fix to enable compilation with visual studio. - Exclusion of static type tests under visual studio - Fix unit tests due to declaration issues Note we do not build the fuzzing target. Test: All unit tests green on VS2017, MacOs, Linux Change-Id: Ie8437f61d187fff03279c99fde0ff565e8f39b50
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.