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
path: root/silk
AgeCommit message (Collapse)Author
2023-11-04Match silenced overflow checks in the sse4.1 versionHEADmasterFelicia Lim
Update silk/x86/NSQ_del_dec_sse4_1.c to match the remaining silk/NSQ_del_dec.c changes made in https://gitlab.xiph.org/xiph/opus/-/commit/c913dc38
2023-10-24Silence some overflow checksFelicia Lim
Co-authored-by: James Zern <jzern@google.com>
2023-04-19oops, avoid using a reserved identifierv1.4Jean-Marc Valin
2023-04-18Avoid "ISO C forbids an empty translation unit"Jean-Marc Valin
Add dummy typedef to avoid the warning
2022-09-06Fix typo in MacroDebug.h comment.Nathan E. Egge
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2022-08-05Change pitch scaling behavior wrt nFramesPerPacketJean-Marc Valin
Not sure if it was the original intent, but we now reduce the loss percentage threshold for pitch scaling as 1/nFramesPerPacket since only the first frame will have pitch scaling anyway. As a side effect, this brings back the original behavior of disabling pitch scaling for 0% loss.
2022-07-24Smooth out the LBRR rate estimateJean-Marc Valin
Reduces fluctuations in the non-FEC target bitrate.
2022-07-24More FEC tuning: lowering the LBRR bitrate a bitJean-Marc Valin
2022-07-24Re-tuning the use of LTP scalingJean-Marc Valin
Making LTP scaling depend on the bitrate and whether FEC is on. The thresholds for scaling 1 and 2 are now independent.
2022-07-22More ubsan fixes for the debug macros themselvesJean-Marc Valin
Reviewed by Mark Harris
2022-07-10Only build platform RTCD sources when enabled.Timothy B. Terriberry
To avoid issues with empty compilation units.
2022-07-10Don't compile x86 cpu detection without RTCD.Timothy B. Terriberry
Also #error if RTCD is enabled without a detection method, like Arm. A number of SILK functions also still used the lookup tables, even when RTCD was disabled. Fix those, too.
2022-07-10Make silk/x86 header indentation consistent.Timothy B. Terriberry
The indentation for nested #ifs was all over the place.
2022-07-09Fix C90-related warningsexp_warnings1Jean-Marc Valin
2022-07-06Silence GCC 11+ -Wmaybe-uninitialized warningsMark Harris
Reviewed by Timothy B. Terriberry.
2022-07-06Avoid undefined behaviour within the debug macrosJean-Marc Valin
Even when the macro itself would overflow. Reviewed by Mark Harris
2022-07-06Fix some 16-bit overflows (using 32-bit macros)Jean-Marc Valin
Reviewed by Mark Harris
2022-07-06Avoid left shifts of negative values in debug macrosJean-Marc Valin
Reviewed by Mark Harris
2022-06-28Fixes valgrind failure caused by silk_find_pred_coefs_*()Jean-Marc Valin
The function copies NLSFs from the stack to the state which for order 10 means we were copying uninitialized values. That in turn breaks check-asm when comparing the state under valgrind. Reviewed by Timothy B. Terriberry.
2022-06-28Fixes wrap-around in silk_inner_prod16_sse4_1()Jean-Marc Valin
Thanks Tim
2022-03-08Update and re-enable SILK SSE4.1 optimisationsFrancis Quiers
2022-02-24Prevent int32 overflow when applying HARM FIR filter in NSQ.c by using a ↵Tom Denton
saturating sum. This matches behavior in NSQ_del_dec.c. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2021-03-03celt_lpc: avoid overflows when computing lpcs in fixed pointFelicia Lim
The LPCs are computed in 32-bit, so increase the allowed range from +/-8 to +/-64 to avoid overflows caught during fuzzing. Before downshifting back down to the +/-8 range in the final 16-bit output, perform bandwidth extension to avoid any additional overflow issues.
2020-10-28Add support for Meson build systemTim-Philipp Müller
Tested on: - Linux/x86* with gcc - Android armv7 arm64 x86 x86_64 with clang - Windows x86 x86_64 with Visual Studio 2017 - Windows x86 x86_64 with MinGW - macOS x86_64 with clang - iOS arm64 x86_64 with clang Co-authored by: Nirbheek Chauhan <nirbheek@centricular.com> https://gitlab.xiph.org/xiph/opus/-/merge_requests/13
2020-08-22Replace WIN32 with _WIN32 everywhereNirbheek Chauhan
_WIN32 is defined on all Windows platforms by every compiler that targets Windows. We do not need WIN32 at all. Signed-off-by: Mark Harris <mark.hsj@gmail.com> Resolves https://github.com/xiph/opus/pull/104
2020-08-22silk: Fix incorrect ifdef in debug.cNirbheek Chauhan
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
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-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
2020-02-03Revert "Attenuate SILK PLC gain only for unvoiced speech"Jesús de Vicente Peña
This reverts commit 4f5557c3095a1d212161609ff638cdae67a9b303. Signed-off-by: Felicia Lim <flim@google.com>
2019-09-03Fix NEON optimizations buffer read overrunFelicia Lim
Thanks to Ray Essick
2019-07-08Avoid processing LPC coeffs beyond the given order in NEON optimizationsFelicia Lim
2019-06-01Silk CNG adapts faster to received packets with lower gainsFelicia Lim
2019-04-09Fix build errors using Makefile.mipsMark Harris
Broken by earlier ARM optimizations.
2018-10-30Fixes misleading initialization with not enough zerosJean-Marc Valin
2018-09-27Prevent the SILK counter from overflowing after 2 years and 9 monthsJean-Marc Valin
or "just" 1 year and 4 months for 10-ms frames. The overflow can eventually cause a divide-by-zero when counter == -16 Thanks to Dmitry Malinin for reporting the bug.
2018-07-22Silence compiler warningsMark Harris
clang -Wcast-align warnings with ambisonics enabled clang -Wnull-pointer-arithmetic warnings in test_opus_api.c gcc -Wimplicit-fallthrough warnings on arm msvc warning C4244 in celt_encoder.c with fixed point
2018-05-24Fixes a SILK bandwidth switching regressionJean-Marc Valin
The bug was triggered because f982b84d started using prefill for SILK bandwidth changes, which reinitialized the encoder state and prevented the variable lowpass from working properly. To fix the problem, we preserve the sampling rate and variable low-pass when prefilling.
2018-05-18Improving rate control for low bitrateJean-Marc Valin
Using a finer table for the rate to SNR curves in silk_control_SNR(). It's now possible to have an SNR that reaches 0, so we can lower bitrate down to ~5 kbps for narrowband and 5.5 kbps for wideband.
2018-05-14Silk makes use of Opus VADGustaf Ullberg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2018-03-27two more asserts I forgotJean-Marc Valin
2018-03-27Harden SILK x86 codeJean-Marc Valin
2018-03-27Hardening silk/fixedJean-Marc Valin
2018-03-27Hardening asserts for SILK floatJean-Marc Valin
2018-03-27Converting some silk_assert()s into hardening celt_assert()sJean-Marc Valin
Only converted the ones that are really sure (not signal-dependent) and that shouldn't add much run-time complexity
2018-02-23Fixed off-by-one issue in Silk DTXGustaf Ullberg
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2018-02-18Fixes integer overflow in SILK VAD for 10-ms framesJean-Marc Valin
Reported by Chandrakala Madhira on the mailing list
2017-09-28Better rate allocation for stereo SILK in hybrid modeJean-Marc Valin
SILK was being allocated too few bits for stereo hybrid, often resulting in forced narrowing of the width. We now allocate more bits to SILK and reduce the threshold for narrowing. This improves quality enough that the bitrate threshold for switching to SILK can be increased to 44 kb/s.
2017-09-11Rename SSE 4.1 files to match their targets.Ralph Giles
Distinguish source files for the SSE 4.1 instruction set extension consistently by their filename. This makes it easier to check the correct flags are being set at build time. Signed-off-by: Jonathan Lennox <jonathan@vidyo.com>