commit | 9b150919fd518f0755d6624ddc36163467ced431 | [log] [tgz] |
---|---|---|
author | Jeff McGlynn <jwmcglynn@google.com> | Thu Jan 24 19:32:05 2019 -0800 |
committer | Jeff McGlynn <jeff@jeffmcglynn.com> | Thu Jan 24 19:36:48 2019 -0800 |
tree | 0a848bb00cfcfba6957fa94e92edb7f17fa25b76 | |
parent | 4e0cc971ea82fbb985f27933af23d1afb3994290 [diff] |
Small fixes to build files and readme * Remove duplicate https:// * Update test library to use @gtest//:gtest instead of gtest_main * Declare hdrs in astc_codec library.
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.