aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Use C++11-compatible assertions in constexpr functionsHEADmasterGravatar Benjamin Barenblat2019-06-17
| | | | | | C++11 restricts the bodies of constexpr functions more aggressively than C++14 or later. Introduce and use a C++11-compatible macro for assertions in constexpr functions.
* Fixed repeated variable name in README.md’s sampleGravatar Alexander Böhn2019-01-26
| | | … Both the output `std::vector<uint8_t>` and the success/fail `bool` were named `result` – which that wouldn’t work. How about `bool success`?
* Small fixes to build files and readmeGravatar Jeff McGlynn2019-01-24
| | | | | | * Remove duplicate https:// * Update test library to use @gtest//:gtest instead of gtest_main * Declare hdrs in astc_codec library.
* Sync/format build filesGravatar Jeff McGlynn2019-01-24
| | | | | | | | | | * Always compile astc_utils with -O3, since it is very slow when built with fastbuild. * Add missing licenses() declarations. * Declare test library as testonly. * Run BUILD file formatter. Additionally, fix one ambiguous usage of auto in src/decoder/parition.cc
* Add CI config files for continuous/presubmit buildsGravatar Jeff McGlynn2019-01-23
|
* Update honggfuzz, fix compilation errors with gccGravatar Jeff McGlynn2019-01-23
| | | | | * Compile with -std=c11 * Update to honggfuzz-1.7.
* Add a CI script for LinuxGravatar Jeff McGlynn2019-01-23
|
* Update to build with the latest version of bazelGravatar Jeff McGlynn2019-01-23
| | | | | | | | | * http_archive and git_repository are now skylark rules, update to use them. * new_http_archive has been merged with http_archive, and takes a label for build_file instead of a path. Add an empty third_party/BUILD file so that we can reference the label. * Rename tools/bazel.rc to .bazelrc
* Merge pull request #2 from pokowaka/masterGravatar Jeff McGlynn2018-11-28
|\ | | | | Explicitly set ctest command.
| * Explicitly set ctest command.Gravatar Erwin Jansen2018-11-27
|/ | | | | | Some generators have trouble finding base_test if this project is included as a subproject. Explicitly setting the test name and executable command will fix this issue.
* Merge pull request #1 from pokowaka/masterGravatar Jeff McGlynn2018-11-27
|\ | | | | CMake support to enable compilation under Visual Studio
| * CMake support to enable compilation under Visual StudioGravatar Erwin Jansen2018-11-27
|/ | | | | | | | | | | | | - 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
* Fix ASAN failures in integer_sequence_codec and partitionGravatar Jeff McGlynn2018-08-16
| | | | | | | | | | | | Introduce UTILS_RELEASE_ASSERT, which crashes if the condition isn't met, even on release builds. Update integer_sequence_codec and partition to use the new tests to validate input parameters, and update the tests so that they expect the crash to occur even on release builds. Bug: 112691516, 112669735 Change-Id: Ic82edeffc64ca0f2b0d17f1c63563dfd8d9cdd71
* Fix compilation errors with mingwGravatar Jeff McGlynn2018-08-15
| | | | | | | | | | | Fix minor build errors when building with mingw in the Android Emulator's build system: * Passing initializer list to pushAll helper can't deduce template argument with mingw, fix by adding an explicit type. * Add inline to image_utils helpers so that mingw doesn't think that the functions are declared but not used. Change-Id: I223e1a74380f9990dbab13ce41e377c3004f43b0
* Fix build errors when used by the Android EmulatorGravatar Jeff McGlynn2018-08-07
| | | | | | | | In the Android Emulator, there are two main differences: 1) googletest is the shared version 1.8.0, instead of the later commit used by astc-codec (to get bazel support). 2) Unit tests are all linked together into one binary, so one function needs to be marked "static".
* Remove third_party/googletest and reference git repo insteadGravatar Jeff McGlynn2018-07-26
| | | | | | | Use a Bazel git_repository rule to reference the git repository instead of bundling the source. Change-Id: I32a0970178cb87fbf0e381db2e2d51fcccab542f
* Fix compilation with mingwGravatar Jeff McGlynn2018-07-06
| | | | | | | On mingw, "IntType data_ = 0" fails to compile. Update to use IntType() instead. Change-Id: I706c15ddb993091aeb922ba7d9ef8cc4cc23bd64
* Initial version of astc-codec for open source releaseGravatar Jeff McGlynn2018-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contains an implementation of an ASTC decoder that is able to pass the dEQP ASTC LDR tests. astc-codec has no external dependencies for the main library, only for test code, and is licensed under the Apache license. Components: include/ - Public API that can decode ASTC LDR data into a RGBA UNORM8 buffer. src/base/ - Base library with common functionality not directly related to ASTC decoding. Contains a uint128 implementation, BitStream for reading/writing bits with a primitive (or uint128 type), Optional implementation (to not take a dependency on C++17), and more. src/decoder/ - Internal implementation of the ASTC decoder. src/base/test/, src/decoder/test/ - Unit tests (and a fuzzing test) for the astc decoder. src/decoder/testdata/ - Sample ASTC images and golden image results for testing. src/decoder/tools/ - A tool to inspect contents of an ASTC file. third_party/ - Third party libraries, only used for tests. Change-Id: Ia98e5a7dc847daa3d3a48c5e62d94b8fb1cb98bd
* Set up build system and add dependencies to WORKSPACEGravatar Jeff McGlynn2018-06-18
|
* Merge commit 'fa9c8eaf4fe936f35dd95a1eecfbbb228494522d' as ↵Gravatar Jeff McGlynn2018-06-18
|\ | | | | | | 'third_party/googletest'
| * Squashed 'third_party/googletest/' content from commit ba96d0b1Gravatar Jeff McGlynn2018-06-18
| | | | | git-subtree-dir: third_party/googletest git-subtree-split: ba96d0b1161f540656efdaed035b3c062b60e006
* Add license and README based on Google open source templateGravatar Jeff McGlynn2018-06-18