summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Properly check to see if there's room for DREDJean-Marc Valin2023-05-081-4/+6
|
* Fix extensions padding for CBRJean-Marc Valin2023-05-082-5/+7
|
* Fixes corruption when using extensionsJean-Marc Valin2023-05-082-19/+35
| | | | | Now generating the extension in place once all the data is already in the right place.
* DRED versioning in bitstreamJean-Marc Valin2023-04-142-5/+18
| | | | | | Adding a 'D' byte to signal the DRED experiment, along with a version number byte. This entire commit will be reverted once DRED is finalized and given a non-experimental extension number.
* Fix padding overwriting the packet contentJean-Marc Valin2023-01-251-2/+5
|
* Only decode the DRED frames we needJean-Marc Valin2023-01-201-1/+6
|
* Fixes build when ENABLE_NEURAL_FEC is offJean-Marc Valin2023-01-112-1/+4
|
* Don't encode empty DRED packetsJean-Marc Valin2022-12-211-6/+16
|
* Controlling DRED on the encode sideJean-Marc Valin2022-12-213-2/+40
|
* Splitting up DRED encodingJean-Marc Valin2022-12-201-1/+9
|
* Clear FEC buffer on new dred packetJean-Marc Valin2022-12-201-1/+4
| | | | Fixes "FEC buffer full" issue
* Fix DRED segfaultJean-Marc Valin2022-12-201-7/+14
| | | | Properly re-initialize DRED (only) when needed
* reenable DREDJean-Marc Valin2022-12-201-1/+1
|
* Should handle mixes of PLC and DREDJean-Marc Valin2022-12-192-8/+7
|
* Fix the normal PLC caseJean-Marc Valin2022-12-131-1/+1
|
* Adds -lossfile option to opus_demoJean-Marc Valin2022-12-131-2/+18
|
* DRED: First version that (kinda) worksJean-Marc Valin2022-12-092-3/+24
| | | | Probably still has many bugs
* Make FEC handling in opus_demo more generalJean-Marc Valin2022-12-081-55/+56
| | | | Now only running the decoder on "received" packets
* DRED: better namingJean-Marc Valin2022-12-071-3/+3
|
* DRED: Decode variable number of framesJean-Marc Valin2022-12-071-2/+4
|
* DRED cleanup, support for variable number of framesJean-Marc Valin2022-12-062-1/+5
|
* DRED integration work in progressJean-Marc Valin2022-12-062-3/+12
|
* Code for inserting/extracting DRED in/from packetsJean-Marc Valin2022-12-027-12/+89
|
* Experimentng with padding extensionsJean-Marc Valin2022-12-025-11/+325
|
* Fix warnings when compiling with FUZZING enabledJean-Marc Valin2022-07-061-0/+4
|
* Adds OPUS_SET_INBAND_FEC(2) optionJean-Marc Valin2022-06-301-5/+8
| | | | | Unlike OPUS_SET_INBAND_FEC(1), the encoder does not necessarily switch to SILK if we have music.
* Fix 8101b33 to decode ignored redundancyMark Harris2022-06-261-5/+9
| | | | | | | Even if the redundancy is ignored, the final range from the decoder is needed for testing. Reviewed by Timothy B. Terriberry.
* Correct redundancy handling with lost/DTX framesMark Harris2022-06-251-2/+7
| | | | | | | | | | | | | | | | | In https://github.com/xiph/opus/issues/253, the encoder generates a Hybrid frame with redundancy, to switch to CELT-only mode, and then activates DTX immediately afterwards. The decoder ran Hybrid PLC, which isn't right. Use CELT PLC instead if there was already a transition to CELT via redundancy at the end of the previous frame. Also do not use a stale CELT decoder to decode a second redundancy frame when the first redundancy frame for a transition from SILK-only mode was lost. Instead of mixing in old audio from the last time that CELT was used, ignore the second redundancy frame in this case. Alternatively the CELT decoder could be reset before decoding, but it would not be ready until after the 2.5 ms of audio that is needed. Reviewed by Jean-Marc Valin.
* Check channels/stream counts and mapping when creating the multistreamFelicia Lim2021-09-271-4/+5
| | | | encoder
* Fix trailing whitespace.Ralph Giles2021-05-121-4/+4
| | | | | | | | | This was introduced in February, and fails the corresponding check in gitlab ci runs. Also indent the subsequent lines to match and correct typos. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* Sending refresh DTX packets every 400 ms independently of the encoded frame ↵Jesús de Vicente Peña2021-02-191-11/+15
| | | | | | size. Signed-off-by: Felicia Lim <flim@google.com>
* Add support for Meson build systemTim-Philipp Müller2020-10-281-0/+45
| | | | | | | | | | | | | | 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
* repacketizer_demo: check for read errors to fix compiler warningsNirbheek Chauhan2020-08-211-7/+37
| | | | | | | | | | | Actually check for read errors instead of just storing the return value in a variable that then never gets checked. Also fixes "conversion from 'size_t' to 'int', possible loss of data" compiler warnings on Windows with MSVC caused by storing the size_t returned by fread() into an int variable. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* Silence clang silk_encoder alignment warningMark Harris2020-06-131-1/+1
|
* Build time improvement, for MSVC use intrin0.h instead of intrin.h and ↵Marcus Asteborg2020-06-111-0/+2
| | | | | | remove usage of stdio.h in production code Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
* Fix for an assertion when running the fixed point testsJesús de Vicente Peña2020-02-141-9/+11
| | | | Signed-off-by: Felicia Lim <flim@google.com>
* Reland "Fixes to the the activity flag that is passed to Silk so it ↵Jesús de Vicente Peña2020-02-141-35/+20
| | | | | | | | | | represents the final activity flag used in the DTX decision" This flag was modified after calling the Silk encoder function. This commit corrects that behavior by introducing those modifications before calling the Silk encoder. Slightly modified comments by Felicia Lim Signed-off-by: Felicia Lim <flim@google.com>
* Revert "Fixes to the the activity flag that is passed to Silk so it ↵Felicia Lim2020-02-101-19/+35
| | | | | | represents the final activity flag used in the DTX decision" This reverts commit ea3b30f946d0e3a8d5b88d1b71cac56fb87955fd.
* Fixes to the the activity flag that is passed to Silk so it represents the ↵Jesús de Vicente Peña2020-02-101-35/+19
| | | | | | | | | | final activity flag used in the DTX decision This flag was modified after calling the Silk encoder function. This commit corrects that behavior by introducing those modifications before calling the Silk encoder. Slightly modified comments by Felicia Lim Signed-off-by: Felicia Lim <flim@google.com>
* OPUS_GET_IN_DTX handles Silk middle channel onlyGustaf Ullberg2019-12-041-6/+5
| | | | Signed-off-by: Felicia Lim <flim@google.com>
* Don't update null data pointer after each multistream decoderFelicia Lim2019-12-031-2/+5
| | | | The data pointer could be null in the case of DTX or packet loss.
* API for checking whether the encoder is in DTXGustaf Ullberg2019-04-101-0/+27
| | | | Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
* Correctly enable/disable SILK DTX with forced modeMark Harris2019-04-081-7/+9
|
* Fix mismatching arg names in function declaration and definitionFelicia Lim2019-03-011-1/+1
|
* Reset nb_no_activity_frames when analysis DTX isn't usedanalysis_fix2Jean-Marc Valin2019-02-131-0/+2
|
* Improve silence handlingJean-Marc Valin2019-02-131-1/+5
| | | | Copy the previous analysis data instead of flagging as invalid
* Fixing initialization issues on small frame sizesJean-Marc Valin2019-02-131-3/+5
|
* Fixes analysis buffering for silence and complexity changesJean-Marc Valin2019-02-134-20/+50
| | | | The previous code would go out of sync in those cases.
* Avoiding problems with x87Jean-Marc Valin2019-02-121-1/+1
| | | | logE[b] can end up slightly larger than tonal->highE[b] due to rounding
* Properly handle a bad stream_id in OPUS_MULTISTREAM_GET_*_STATE_REQUESTJean-Marc Valin2019-01-232-2/+2
| | | | Thanks to Dmitriy for reporting this.