At present several core daala libraries rely on libogg for integer types (e.g. ogg_uint32) and shims for malloc and friends(e.g. _ogg_malloc).
The effected libraries are:
- libdaalabase
- libdaaladec
- libdaalaenc
All references to libogg malloc family functions were replaced with their C standard library cousins. All references to libogg integer types were replaced with stdint.h style integer types.
To accomplish this, a new header file was created called daala_integer.h to support systems which do not have stdint.h. The header was largely borrowed from libvpx.
- Borrowed from the BSD-Licensed libvpx project, revision: f3a1295cffe62806255bace4abb49c8831b7a61f
- Original BSD copyright notice retained. Note that binary distributions must also bear this notice.
- All references to VPX replaced with DAALA.
- Discussed on Github with tdaea/TD-Linux: https://github.com/iankronquist/daala/commit/8a8564717109050f0d9225d5119b72dee83ac6fa#commitcomment-11870384
Resolves issue #95 on GitHub.
93b42d9 Remove dependency on libogg for core daala
include/daala/codec.h | 26 +++++-----
include/daala/daala_integer.h | 99 +++++++++++++++++++++++++++++++++++++
include/daala/daaladec.h | 1 +
include/daala/daalaenc.h | 1 +
src/accounting.c | 26 +++++-----
src/accounting.h | 10 ++--
src/adapt.c | 28 +++++------
src/adapt.h | 18 +++----
src/arm/armdct.c | 6 +--
src/arm/cpu.c | 8 +--
src/arm/cpu.h | 2 +-
src/block_size.h | 2 +-
src/block_size_enc.c | 24 ++++-----
src/block_size_enc.h | 32 ++++++------
src/decode.c | 8 +--
src/encode.c | 18 +++----
src/entcode.c | 6 +--
src/entcode.h | 8 +--
src/entdec.c | 26 +++++-----
src/entdec.h | 24 ++++-----
src/entenc.c | 78 ++++++++++++++---------------
src/entenc.h | 32 ++++++------
src/filter.c | 4 +-
src/filter.h | 4 +-
src/generic_code.c | 4 +-
src/generic_code.h | 8 +--
src/generic_decoder.c | 4 +-
src/generic_encoder.c | 6 +--
src/info.c | 8 +--
src/infodec.c | 16 +++---
src/infoenc.c | 2 +-
src/internal.c | 50 +++++++++----------
src/internal.h | 16 +++---
src/intra.c | 2 +-
src/laplace_code.h | 8 +--
src/laplace_decoder.c | 8 +--
src/laplace_encoder.c | 8 +--
src/laplace_tables.c | 4 +-
src/logging.c | 16 +++---
src/logging.h | 8 +--
src/mc.c | 48 +++++++++---------
src/mc.h | 8 +--
src/mcenc.c | 110 ++++++++++++++++++++---------------------
src/mcenc.h | 14 +++---
src/pvq.c | 2 +-
src/pvq_code.c | 4 +-
src/pvq_code.h | 4 +-
src/pvq_encoder.c | 2 +-
src/state.c | 62 +++++++++++------------
src/state.h | 30 +++++------
src/switch_table.c | 6 +--
src/tests/ectest.c | 6 +--
src/tests/headerencode_test.c | 6 +--
src/tests/logging_test.c | 8 +--
src/tests/test_coef_coder.c | 8 +--
src/x86/cpu.c | 14 +++---
src/x86/cpu.h | 2 +-
src/x86/sse2dct.c | 10 ++--
src/x86/sse2mc.c | 26 +++++-----
src/x86/x86dct.h | 6 +--
src/x86/x86int.h | 2 +-
61 files changed, 570 insertions(+), 467 deletions(-)
Upstream: git.xiph.org