Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-13Merge branch 'draft-willson' into draftdraftRalph Giles
2020-06-13fix doc/build_draft.sh run errorwillson-chen
Add newer source directories to the destdir file tree so we can include all sources referenced from opus_sources.mk. Signed-off-by: Ralph Giles <giles@thaumas.net>
2020-06-13opus draft: fix run failed under dashwillson-chen
[[ ]], the compound command is not supported by all shell interpreter. [ ], the buildin command is more common. Signed-off-by: Ralph Giles <giles@thaumas.net>
2020-06-13cmake - refactor and cleanup optionsMarcus Asteborg
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13cmake/CFeatureCheck.cmake: fix feature tests failing when Opus is a submoduleDavide Beatrici
CMAKE_SOURCE_DIR corresponds to the top project's source directory. CMAKE_BINARY_DIR corresponds to the top project's binary directory. The usage of these variables doesn't cause any problems when Opus is built as a standalone project. This is not the case when Opus is added as submodule: the variables are set by the project that calls "add_subdirectory()". The fix consists in using PROJECT_SOURCE_DIR and PROJECT_BINARY_DIR, which always refer to the current project. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13cmake - add option to disable intrinsicsMarcus Asteborg
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13cmake - move all compiler feature detection to OpusConfigMarcus Asteborg
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13cmake - add include guards to cmake filesMarcus Asteborg
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13cmake - move cmake related files to cmake folder to make root dir less busyMarcus Asteborg
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13cmake - only publish opus_custom.h if custom modes is enabled #121Marcus Asteborg
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13cmake - add headers to projectMarcus Asteborg
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13Add support to CMake build for building frameworks on Apple systems.Simon Jackson
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-12Fix intrin0.h include guard.Ralph Giles
This lighter-weight intrinsics header is available starting with Microsoft Visual Studio 2017, so the previous change to allow this header failed when building with Visual Studio 2015. Restores the appveyor continuous integration build.
2020-06-12Build time improvement, for MSVC use intrin0.h instead of intrin.h and ↵Marcus Asteborg
remove usage of stdio.h in production code Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-06-11Disable message box when calling abort(). The message box is causing hangs ↵Marcus Asteborg
in tests. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-06-11Build and run test for cmake build in gitlab-ciMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-06-09Update Doxygen config file, header and footer to Doxygen 1.8.18Marcus Asteborg
Signed-off-by: Ralph Giles <giles@thaumas.net>
2020-06-01Build trivial_example by default.Ralph Giles
Add doc/trivial_example.c to the autotools build so we get some minimal verification that the code compiles. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-01trivial_example: Check the return value of fread().Ralph Giles
Silence a gcc warning by checking the return value of the fread() call instead of the feof() guard. This prevents an infinite loop in the case of a read error. Otherwise, when end-of-file is reached fread() will certainly return a smaller number of elements read than requested, so both cases are handled now. Add a comment to clarify that we're dropping a partial frame on purpose to keep the code simple. Also add more braces around conditional bodies for less error-prone style. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-01trivial_example: open raw pcm files in binary mode.Ralph Giles
The simple codec round-trip example file in the doc directory opens an input and output pcm file. It was working fine on POSIX systems, but not on Windows, which treats text files differently. This is confusing in a example, so it's better to add an explicit binary flag to the fopen() calls. This does nothing on unix-like systems, but should make the example work for developers on Windows. Thanks to Wavesonics who reported this on irc. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-05-26fix equivalent bitrate calculation for <20ms frame sizesHector Martin
Signed-off-by: Hector Martin <marcan@marcan.st> Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-05-11Repository moved to gitlab.xiph.orgMark Harris
2020-05-10gitlab-ci: Add a build description.Ralph Giles
Describe builds for the gitlab continuous integration service runners. This does a trial build under both autotools and cmake, so we get some coverage for changes on that hosting platform. After the same script in the vorbis and ogg projects. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-04-26Fix a typo in in opus_custom.h.Hua, Chunbo
Signed-off-by: Ralph Giles <giles@thaumas.net>
2020-04-22opus draft: Add missing date tags to references.Ralph Giles
The xml2rfc DTD requires a <date> tag within reference > front. Where the reference was to a published article, I tried to add the correct publication date. For others, like references to wikipedia, I just added an empty tag, since at this point there's no way to recover a retrieval date. With this change the draft is considered valid by xml2rfc 2.43.0. However, it fails to include the externally generated text for opus_source.base64.
2020-04-22opus draft: Fix xml anchors.Ralph Giles
Corrects an xml2rfc warning. Apparently text anchors can't contain whitespace.
2020-04-22opus draft: Fix toc=exclude typo.Ralph Giles
Corrects a warning on xml2rfc.
2020-04-22Update build_draft.sh xml2rfc invocation.Ralph Giles
Switch to the newer style arguments to build both text and html versions of the ietf drafts, in line with what build_oggdraft.sh does. Current xml2rfc (v2.43.0) no longer supports the old syntax, so the script was just creating the text/plain version twice.
2020-04-22Make draft build scripts download over https.Ralph Giles
Use the more secure urls by default.
2020-04-22Fix build_draft.sh portability.Ralph Giles
It think the [[ ]] conditional expression brackets are a bashism. They don't work on Debian's /bin/sh (which is dash). Use the more portable `test` built-in instead.
2020-04-22fix doc/build_draft.sh run errorwillson-chen
Add newer source directories to the destdir file tree so we can include all sources referenced from opus_sources.mk. Signed-off-by: Ralph Giles <giles@thaumas.net>
2020-04-22gitlab-ci: Add doc job to invoke the build_draft scripts.Ralph Giles
All the drafts are currently published, so this is not particularly important. However, the code bitrots if not tested regularly, so this will remind us to maintain what we have in the tree. xml2rfc is installed with pip. Using a python base image makes for a smaller download than installing python on the gcc image used for the other build jobs.
2020-04-22gitlab-ci: Update autoconf cache paths.Ralph Giles
2020-04-21Add gitlab ci build description.Ralph Giles
Do a trial build under autotools and cmake. After the same script in the vorbis project.
2020-04-21cmake - add option for fast mathMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - add option for float_approx for IEEE 754 compatible targetsMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - Add variable length detection and alloca detectionMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21CMake ChangesNathaniel R. Lewis
- Fix typo in OPUS_USE_NEON description. - Set OPUS_PRESUME_NEON for iOS platforms as all armv7 and higher iOS devices support NEON. - Fix detection of aarch64 for OPUS_CPU_ARM and adding sources from celt_sources_arm. (previously would miss armcpu.c and arm_celt_map.c) - Change "armv7-a" to "arm" in MATCHES checks against CMAKE_SYSTEM_PROCESSOR as systems like the RPi3 report as "armv7l". - Rename OPUS_MAY_SUPPORT_NEON to OPUS_MAY_HAVE_NEON as this name is used everywhere else in the CMake build system. Without this, runtime capability detection is broken on aarch64. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - Fix OPUS_STACK_PROTECTOR optionMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - Add OPUS prefix to feature info to show correct commandline optionMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - Add option for testing to improve cliMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - intinsics fixes, only compile SSE source with SSE flags on ↵Marcus Asteborg
non-windows when target use runtime check (GH #154). For windows we only use /arch flag when target is presumed to support SSE to avoid AVX function pollution (GH #132). Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - add math library for test programs demo and compare when building ↵willson-chen
dynamic library Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - Fix CMake install include directoryevpobr
Install include directory must be `include/opus`, not `include`. Old path is still here for compatibility. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - Add support for detecting the presence of lrint and lrintf.Nathaniel R. Lewis
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - add CPack and default to TGZ packageMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-21cmake - make package version parsing more robustMarcus Asteborg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-13Fix celt decoder assertion when using OPUS_CUSTOMNiclas Olmenius
When using OPUS_CUSTOM, `CELTDecoder->end` can be larger than 21. Assert against 25 instead in OPUS_CUSTOM builds. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-03-24Fix another signed integer overflow in silk_noise_shape_quantizer_del_decFelicia Lim
2020-03-09Fix signed integer overflows in silk_noise_shape_quantizer_del_decFelicia Lim