Commit Graph

606 Commits

Author SHA1 Message Date
Rich Geldreich
e486ceb66c Merge pull request #173 from UebelAndre/cmake-ci
Use CMake in CI
2020-10-07 20:47:21 -04:00
Andre Brisco
9d0226d108 Use CMake in CI 2020-10-07 15:09:43 -07:00
Rich Geldreich
f80f8dd971 Merge pull request #145 from cician/master
node.js build target
2020-09-18 23:37:32 -04:00
Rich Geldreich
eeca276ad6 Merge pull request #143 from cwoffenden/encoder-xcode
Xcode encoder warnings removed
2020-09-18 23:36:30 -04:00
Rich Geldreich
46af0305fc Merge pull request #150 from davidhubbard/master
Fix #44: document _ofs header fields
2020-09-18 23:35:37 -04:00
Rich Geldreich
3cca083a57 Merge pull request #152 from ondys/patch-3
Fixed signed integer overflow
2020-09-18 23:31:44 -04:00
Rich Geldreich
276dc27f08 Merge pull request #169 from oddhack/165-reuse
Make repository compliant with REUSE (https://reuse.software).
2020-09-16 22:27:40 -04:00
Jon Leech
f400f28171 Make repository compliant with REUSE (https://reuse.software).
This PR simply wildcards files in the repository in the metainformation
.reuse/dep5 to express copyright and licensing information for files
that can't easily be parsed by REUSE. If any of the assertions made in
.reuse/dep5 are incorrect, we should fix that before this PR
is accepted.

This approach works OK, though a more intrusive, but superior version of
this PR would simplify copyright / license statements as follows, and
make sure they're present in every file:

// Copyright 2019-2020 Binomial LLC
// SPDX-License-Identifier: Apache-2.0

(or whatever the appropriate copyright owner and license are for each
file). If that were done, the wildcarding in .reuse/dep5 would not be
required to pass REUSE.
2020-09-02 20:03:01 -07:00
Rich Geldreich
102275a964 Fixing filename 2020-06-16 18:39:28 -04:00
Rich Geldreich
5f43e1f037 Rebuilt 2020-06-16 18:38:14 -04:00
Ondrej Stava
52147e5a99 Fixed signed integer overflow
(1 << num_bits)  was converted to a signed integer that caused an overflow (as num_bits was usually set to 31). It worked fine since the value was later converted back to uint32_t but signed integer overflow is technically an undefined behavior and it was triggering errors in our automated tests.
2020-06-11 12:18:59 -07:00
David Hubbard
c65ab695ca Fix #44: document _ofs header fields
Image slices have m_file_ofs. It is not relative to the start of the header, it is relative to the
start of the file. Double-check basisu_basis_file.cpp:

`m_images_descs[i].m_file_ofs = (uint32_t)cur_slice_file_ofs;`

basis_file_header has m_endpoint_cb_file_ofs. It might be easier to read if the comment on it
just said "file offset," but to clear up any confusion if someone is re-reading the spec later
this commit leaves the "relative to the" language but clarifies it. Ditto for
m_selector_cb_file_ofs.
2020-06-04 23:26:26 -05:00
Rich Geldreich
00edf6396c Update basis_spec.txt 2020-05-30 17:28:06 -04:00
Rich Geldreich
b8c614e758 Update basis_spec.txt 2020-05-26 01:03:35 -04:00
Rich Geldreich
25a5d99c93 Update basis_spec.txt 2020-05-26 00:56:13 -04:00
Rich Geldreich
82235af126 Update basis_spec.txt 2020-05-26 00:55:26 -04:00
Rich Geldreich
c5bbe545c8 Update basis_spec.txt 2020-05-26 00:55:05 -04:00
Rich Geldreich
7f98f715df Update basis_spec.txt 2020-05-26 00:52:28 -04:00
Rich Geldreich
3e72d4cefa Update basis_spec.txt 2020-05-26 00:51:34 -04:00
Rich Geldreich
dc85354516 Update basis_spec.txt 2020-05-26 00:40:23 -04:00
Rich Geldreich
6c51561349 Update basis_spec.txt 2020-05-26 00:39:00 -04:00
Rich Geldreich
3f0c27ea36 Update basis_spec.txt 2020-05-26 00:37:08 -04:00
Rich Geldreich
d8d01a07f2 Update basis_spec.txt 2020-05-26 00:36:32 -04:00
Rich Geldreich
3eb8464f3a Update basis_spec.txt 2020-05-26 00:34:29 -04:00
Rich Geldreich
041d06ba91 Update basis_spec.txt 2020-05-26 00:33:57 -04:00
Rich Geldreich
8afd2e7a46 Update basis_spec.txt 2020-05-26 00:28:01 -04:00
Rich Geldreich
3ea02ed1f0 Update basis_spec.txt 2020-05-26 00:21:34 -04:00
Rich Geldreich
a8d1bf100a Update basis_spec.txt 2020-05-26 00:17:51 -04:00
Rich Geldreich
576844fd69 Update basis_spec.txt 2020-05-26 00:17:00 -04:00
Rich Geldreich
053785bb67 Update basis_spec.txt 2020-05-26 00:10:53 -04:00
Rich Geldreich
674558e441 Update basis_spec.txt 2020-05-26 00:10:03 -04:00
Rich Geldreich
192991213a Update basis_spec.txt 2020-05-26 00:09:16 -04:00
Rich Geldreich
210434969b Update basis_spec.txt 2020-05-26 00:08:25 -04:00
Rich Geldreich
5f11015be1 Update basis_spec.txt 2020-05-26 00:07:56 -04:00
Rich Geldreich
67076f56b9 Update basis_spec.txt 2020-05-25 23:34:24 -04:00
Rich Geldreich
dd7d699241 Update basis_spec.txt 2020-05-25 23:33:44 -04:00
Rich Geldreich
60dcfc8e4a Update basis_spec.txt 2020-05-25 23:32:10 -04:00
Rich Geldreich
45fb3c7969 Update basis_spec.txt 2020-05-25 23:26:40 -04:00
Rich Geldreich
0a4b1d3e1d Update basis_spec.txt 2020-05-25 23:25:41 -04:00
Rich Geldreich
ef6a01cf1e Update basis_spec.txt 2020-05-25 23:13:17 -04:00
Rich Geldreich
fbf9a04729 Update basis_spec.txt 2020-05-25 23:12:43 -04:00
Maciej Kacper Jagiełło
4433e80fe4 Enable building the encoder with Enscripten to WebAssebly as a Nodejs cli tool. 2020-05-16 17:28:17 +02:00
Carl Woffenden
3401fe5e6a Xcode encoder warnings removed 2020-05-12 12:37:41 +02:00
Rich Geldreich
374a04d54d Merge pull request #134 from cwoffenden/transcoder-xcode
Xcode 11 transcoder warnings removed
2020-05-06 19:59:59 -04:00
Rich Geldreich
cc1dac78fb Merge pull request #136 from aaronfranke/travis
Add a formatting script for Travis CI
2020-05-06 19:57:43 -04:00
Rich Geldreich
525458ae82 Merge pull request #137 from ondys/patch-2
Fixed undefined behavior in BASISU_OFFSETOF
2020-05-06 19:56:56 -04:00
richgel999
a1689504ea Huffman encoder fixes for very large streams
Allowing Huffman decoder to use different fast bits table sizes
Adding NV and AMD BC1 decoders
2020-05-05 23:10:21 -04:00
richgel999
bb64ec604c Renaming USE_UNALIGNED_WORD_READS to BASISD_USE_UNALIGNED_WORD_READS.
Setting BASISD_USE_UNALIGNED_WORD_READS to 0 for WebAssembly builds.
Renaming IS_BIG_ENDIAN to BASISD_IS_BIG_ENDIAN.
2020-05-05 22:40:40 -04:00
Ondrej Stava
57ca9acadd Fixed undefined behavior in BASISU_OFFSETOF
The original implementation was dereferencing a nullptr which is an undefined behavior according to the C++ spec. It was triggering some automatic errors during our sanitizer tests (asan with nullptr check).

The fix replaces the offset with standard implementation of offsetof that uses compiler built in instructions when available (avoiding the undefined behavior).
2020-04-28 11:11:10 -07:00
Aaron Franke
409d9a502e Commit files changed by the formatting script 2020-04-25 00:21:48 -04:00