opus.git
7 years agoMerge commit 'silk-repo/master'
Jean-Marc Valin [Thu, 28 Apr 2011 19:51:30 +0000 (15:51 -0400)]
Merge commit 'silk-repo/master'

7 years agorm .gitignore
Jean-Marc Valin [Thu, 28 Apr 2011 19:50:16 +0000 (15:50 -0400)]
rm .gitignore

7 years agoMerge commit 'celt-repo/master'
Jean-Marc Valin [Thu, 28 Apr 2011 19:49:41 +0000 (15:49 -0400)]
Merge commit 'celt-repo/master'

7 years agoliving just the directories
Jean-Marc Valin [Thu, 28 Apr 2011 19:06:37 +0000 (15:06 -0400)]
living just the directories

7 years agoLeaving just libcelt
Jean-Marc Valin [Thu, 28 Apr 2011 19:06:25 +0000 (15:06 -0400)]
Leaving just libcelt

7 years agoUpdating the draft build system
Jean-Marc Valin [Thu, 28 Apr 2011 18:20:13 +0000 (14:20 -0400)]
Updating the draft build system

7 years agoRelying on SILK for the switching decisions
Jean-Marc Valin [Thu, 28 Apr 2011 12:04:20 +0000 (08:04 -0400)]
Relying on SILK for the switching decisions

7 years agoInterface for bandwidth switching
Koen Vos [Thu, 28 Apr 2011 01:45:48 +0000 (21:45 -0400)]
Interface for bandwidth switching

7 years agoSILK makefile update
Jean-Marc Valin [Wed, 27 Apr 2011 20:38:36 +0000 (16:38 -0400)]
SILK makefile update

7 years agoMakefile.am update (removed files)
Jean-Marc Valin [Wed, 27 Apr 2011 20:37:57 +0000 (16:37 -0400)]
Makefile.am update (removed files)

7 years agoTuning the bandwidth decision
Jean-Marc Valin [Wed, 27 Apr 2011 20:32:24 +0000 (16:32 -0400)]
Tuning the bandwidth decision

7 years agoChanging the SILK bandwidth only when there's no speech
Jean-Marc Valin [Wed, 27 Apr 2011 14:06:53 +0000 (10:06 -0400)]
Changing the SILK bandwidth only when there's no speech

7 years agoImplements desiredInternalSampleRate
Koen Vos [Wed, 27 Apr 2011 12:22:24 +0000 (08:22 -0400)]
Implements desiredInternalSampleRate

7 years agoSILK update
Koen Vos [Wed, 27 Apr 2011 03:21:27 +0000 (23:21 -0400)]
SILK update

7 years agoSquashed commit of the following:
Koen Vos [Wed, 27 Apr 2011 04:49:40 +0000 (00:49 -0400)]
Squashed commit of the following:

commit c44b37355295df2963daa724649ff1876b690488
Author: Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Date:   Wed Apr 27 00:33:12 2011 -0400

    decoder size fix

commit 78f864e9ddacd94d03d717d79a6e606712e25edd
Author: Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Date:   Tue Apr 26 23:26:14 2011 -0400

    Makefile fix

commit a0e884e463af88bcaa2f410ea8cc85e5bebd2c3b
Author: Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Date:   Tue Apr 26 22:53:27 2011 -0400

    Making some progress

commit 9e30457f2199bba7b5e37bb577ff75dc85ba9306
Author: Koen Vos <koen.vos@skype.net>
Date:   Tue Apr 26 22:29:42 2011 -0400

    SILK update with stereo support

7 years agoLoss rate adaptation for the CELT layer
Jean-Marc Valin [Mon, 25 Apr 2011 17:36:14 +0000 (13:36 -0400)]
Loss rate adaptation for the CELT layer

7 years agoAdding history to the intra decision distortion
Jean-Marc Valin [Thu, 21 Apr 2011 20:59:26 +0000 (16:59 -0400)]
Adding history to the intra decision distortion

7 years agos/intra_decision()/loss_distortion()/
Jean-Marc Valin [Thu, 21 Apr 2011 20:33:23 +0000 (16:33 -0400)]
s/intra_decision()/loss_distortion()/

7 years agoTaking into account the percentage of packet loss for intra decision
Jean-Marc Valin [Thu, 21 Apr 2011 20:04:27 +0000 (16:04 -0400)]
Taking into account the percentage of packet loss for intra decision

7 years agoImplements CELT_SET_LOSS_PERC
Jean-Marc Valin [Thu, 21 Apr 2011 14:41:13 +0000 (10:41 -0400)]
Implements CELT_SET_LOSS_PERC

7 years agoStop adjusting the VBR drift during silent frames, this prevents overshoot after...
Gregory Maxwell [Wed, 13 Apr 2011 21:08:22 +0000 (17:08 -0400)]
Stop adjusting the VBR drift during silent frames, this prevents overshoot after silent spans. This also results in undershoot on files with lots of silence, but this is desirable in terms of increasing quality consistency. It will be even better if we later include some open-loop correction of the targets.

7 years agodraft update
Jean-Marc Valin [Thu, 31 Mar 2011 00:29:23 +0000 (02:29 +0200)]
draft update

7 years agoImplementing bit-stream padding
Jean-Marc Valin [Wed, 30 Mar 2011 13:46:42 +0000 (15:46 +0200)]
Implementing bit-stream padding

7 years agoFixes a declaration-after-statement error when using ALLOC_STACK
Jean-Marc Valin [Tue, 29 Mar 2011 05:54:27 +0000 (07:54 +0200)]
Fixes a declaration-after-statement error when using ALLOC_STACK

7 years agoTypo in C5X macro
Jean-Marc Valin [Tue, 29 Mar 2011 05:43:51 +0000 (07:43 +0200)]
Typo in C5X macro

7 years agoAdds support for decoding stereo streams with a mono decoder
Jean-Marc Valin [Mon, 28 Mar 2011 05:39:41 +0000 (01:39 -0400)]
Adds support for decoding stereo streams with a mono decoder

We don't allow *encoding* a stereo stream with a mono encoder
because that's just silly.

7 years agoBuild fixes
Jean-Marc Valin [Wed, 23 Mar 2011 10:51:36 +0000 (06:51 -0400)]
Build fixes

7 years agoUpdated MSVC project file
Jean-Marc Valin [Wed, 23 Mar 2011 00:32:49 +0000 (20:32 -0400)]
Updated MSVC project file

8 years agoMaking mode switching use the same window as CELT (squared)
Jean-Marc Valin [Mon, 21 Mar 2011 17:53:40 +0000 (13:53 -0400)]
Making mode switching use the same window as CELT (squared)

8 years agoMaking CELT_GET_MODE "private"
Jean-Marc Valin [Mon, 21 Mar 2011 17:26:03 +0000 (13:26 -0400)]
Making CELT_GET_MODE "private"

8 years agoRemoves the celt_mode_info() call.
Jean-Marc Valin [Mon, 21 Mar 2011 15:32:50 +0000 (11:32 -0400)]
Removes the celt_mode_info() call.

Adds a CELT_GET_LOOKAHEAD() ctl() call instead. Other uses of
celt_mode_info() should not be needed anymore.

8 years agoUsing the Opus header in 48k/2.5-20 ms modes
Jean-Marc Valin [Mon, 21 Mar 2011 11:06:09 +0000 (07:06 -0400)]
Using the Opus header in 48k/2.5-20 ms modes

8 years agoSimplifying PLC switching to have an overlap of 2.5 ms too
Jean-Marc Valin [Fri, 18 Mar 2011 20:41:40 +0000 (16:41 -0400)]
Simplifying PLC switching to have an overlap of 2.5 ms too

8 years agoMinor code simplifications
Jean-Marc Valin [Fri, 18 Mar 2011 20:35:40 +0000 (16:35 -0400)]
Minor code simplifications

8 years agoMinor redundant frame fixes
Jean-Marc Valin [Fri, 18 Mar 2011 20:29:15 +0000 (16:29 -0400)]
Minor redundant frame fixes

8 years agoCELT update
Jean-Marc Valin [Fri, 18 Mar 2011 19:48:39 +0000 (15:48 -0400)]
CELT update

With minor fixes

8 years agoFixes tandem-test.c
Jean-Marc Valin [Fri, 18 Mar 2011 19:47:53 +0000 (15:47 -0400)]
Fixes tandem-test.c

8 years agoBump version number
Jean-Marc Valin [Fri, 18 Mar 2011 19:42:56 +0000 (15:42 -0400)]
Bump version number

8 years agoNon-fatal bit-stream errors are now reported through ctl()
Jean-Marc Valin [Fri, 18 Mar 2011 19:34:11 +0000 (15:34 -0400)]
Non-fatal bit-stream errors are now reported through ctl()

8 years agoMore project files update
Jean-Marc Valin [Fri, 18 Mar 2011 10:40:35 +0000 (06:40 -0400)]
More project files update

8 years agoMSVC files
Jean-Marc Valin [Fri, 18 Mar 2011 10:40:03 +0000 (06:40 -0400)]
MSVC files

8 years agoProject files update
Jean-Marc Valin [Fri, 18 Mar 2011 05:30:36 +0000 (01:30 -0400)]
Project files update

8 years agoFixing DTX for fixed-point too, updating project files
Jean-Marc Valin [Fri, 18 Mar 2011 05:29:17 +0000 (01:29 -0400)]
Fixing DTX for fixed-point too, updating project files

8 years agoDTX fix
Jean-Marc Valin [Thu, 17 Mar 2011 20:56:54 +0000 (16:56 -0400)]
DTX fix

8 years agoFixes a bug in the handling of the first packet after DTX
Jean-Marc Valin [Thu, 17 Mar 2011 20:55:42 +0000 (16:55 -0400)]
Fixes a bug in the handling of the first packet after DTX

We were using the last frame's DTX decision at the beginning
of the encoding

8 years agoFixes leak in test_opus
Jean-Marc Valin [Thu, 17 Mar 2011 10:51:58 +0000 (06:51 -0400)]
Fixes leak in test_opus

8 years agoFixes a few PLC/DTX bugs due to the recent decode API change
Jean-Marc Valin [Thu, 17 Mar 2011 02:11:53 +0000 (22:11 -0400)]
Fixes a few PLC/DTX bugs due to the recent decode API change

8 years agoTaking into account the start and end bands in CNG
Jean-Marc Valin [Thu, 17 Mar 2011 02:03:15 +0000 (22:03 -0400)]
Taking into account the start and end bands in CNG

8 years agoFixes return value on lost packet
Jean-Marc Valin [Thu, 17 Mar 2011 00:56:28 +0000 (20:56 -0400)]
Fixes return value on lost packet

8 years agoversion bump
Jean-Marc Valin [Mon, 14 Mar 2011 22:06:23 +0000 (18:06 -0400)]
version bump

8 years agoFixed missing tags in draft
Jean-Marc Valin [Mon, 14 Mar 2011 21:58:09 +0000 (17:58 -0400)]
Fixed missing tags in draft

8 years agoVersion change
Jean-Marc Valin [Mon, 14 Mar 2011 21:48:20 +0000 (17:48 -0400)]
Version change

8 years agoDraft revisions for the entropy coder.
Timothy B. Terriberry [Mon, 14 Mar 2011 21:29:18 +0000 (17:29 -0400)]
Draft revisions for the entropy coder.

Also includes some other minor grammar revisions.

8 years agoAdding constrained VBR mode
Jean-Marc Valin [Mon, 14 Mar 2011 19:11:44 +0000 (15:11 -0400)]
Adding constrained VBR mode

8 years agoRenamed --noltp to --nopf in celtenc.c
Jean-Marc Valin [Mon, 14 Mar 2011 18:52:54 +0000 (14:52 -0400)]
Renamed --noltp to --nopf in celtenc.c

8 years agoMinor draft update
Jean-Marc Valin [Mon, 14 Mar 2011 18:41:45 +0000 (14:41 -0400)]
Minor draft update

and s/maximums/maxima/

8 years agoDraft update (allocation
Gregory Maxwell [Mon, 14 Mar 2011 18:04:56 +0000 (14:04 -0400)]
Draft update (allocation

8 years agoMore error handling
Jean-Marc Valin [Mon, 14 Mar 2011 15:44:16 +0000 (11:44 -0400)]
More error handling

8 years agoError handling
Jean-Marc Valin [Mon, 14 Mar 2011 10:45:17 +0000 (06:45 -0400)]
Error handling

8 years agoCode for handling multiple frames per packet
Jean-Marc Valin [Mon, 14 Mar 2011 00:41:52 +0000 (20:41 -0400)]
Code for handling multiple frames per packet

Barely tested

8 years agoAdding some packet parsing code
Jean-Marc Valin [Sun, 13 Mar 2011 16:41:08 +0000 (12:41 -0400)]
Adding some packet parsing code

8 years agoceltdec update for change in celt_decode() return value
Jean-Marc Valin [Sun, 13 Mar 2011 01:36:26 +0000 (20:36 -0500)]
celtdec update for change in celt_decode() return value

8 years agoDisable newly introduced CELT signalling
Jean-Marc Valin [Fri, 11 Mar 2011 22:49:10 +0000 (17:49 -0500)]
Disable newly introduced CELT signalling

8 years agoFix missing break statements
Jean-Marc Valin [Fri, 11 Mar 2011 22:46:02 +0000 (17:46 -0500)]
Fix missing break statements

8 years agoAdds in-band signalling of the CELT frame size and bandwidth
Jean-Marc Valin [Fri, 11 Mar 2011 21:31:24 +0000 (16:31 -0500)]
Adds in-band signalling of the CELT frame size and bandwidth

8 years agoSpeeds up compute_allocation() by removing potential aliasing
Jean-Marc Valin [Fri, 11 Mar 2011 15:36:11 +0000 (10:36 -0500)]
Speeds up compute_allocation() by removing potential aliasing

8 years agoNothing to see here
Jean-Marc Valin [Thu, 10 Mar 2011 15:14:12 +0000 (10:14 -0500)]
Nothing to see here

8 years agoversion bump
Jean-Marc Valin [Thu, 10 Mar 2011 02:31:14 +0000 (21:31 -0500)]
version bump

8 years agoBump version to 0.11.2
Jean-Marc Valin [Wed, 9 Mar 2011 21:47:34 +0000 (16:47 -0500)]
Bump version to 0.11.2

8 years agodraft version bump
Jean-Marc Valin [Wed, 9 Mar 2011 19:52:46 +0000 (14:52 -0500)]
draft version bump

8 years agoDraft Makefile update
Jean-Marc Valin [Wed, 9 Mar 2011 19:15:32 +0000 (14:15 -0500)]
Draft Makefile update

8 years agoMinor draft distribution update
Jean-Marc Valin [Wed, 9 Mar 2011 18:24:24 +0000 (13:24 -0500)]
Minor draft distribution update

8 years agoCELT update
Jean-Marc Valin [Wed, 9 Mar 2011 16:57:13 +0000 (11:57 -0500)]
CELT update

8 years agoFix for global stack
Jean-Marc Valin [Wed, 9 Mar 2011 16:56:29 +0000 (11:56 -0500)]
Fix for global stack

8 years agoUpdating the build of the draft and adding fixed-point support
Jean-Marc Valin [Wed, 9 Mar 2011 16:42:15 +0000 (11:42 -0500)]
Updating the build of the draft and adding fixed-point support

8 years agoAutomatic bandwidth selection
Jean-Marc Valin [Wed, 9 Mar 2011 03:12:43 +0000 (22:12 -0500)]
Automatic bandwidth selection

8 years agoremoving debug code
Jean-Marc Valin [Wed, 9 Mar 2011 02:13:23 +0000 (21:13 -0500)]
removing debug code

8 years agoCleanup
Jean-Marc Valin [Tue, 8 Mar 2011 23:05:45 +0000 (18:05 -0500)]
Cleanup

8 years agoSimple mode selection logic
Jean-Marc Valin [Tue, 8 Mar 2011 19:57:46 +0000 (14:57 -0500)]
Simple mode selection logic

8 years agoFixes a few issues with PLC-based mode switching
Jean-Marc Valin [Tue, 8 Mar 2011 04:53:53 +0000 (23:53 -0500)]
Fixes a few issues with PLC-based mode switching

8 years agoSupport for glitchles mode switching
Jean-Marc Valin [Tue, 8 Mar 2011 01:54:33 +0000 (20:54 -0500)]
Support for glitchles mode switching

Uses a 5ms redundant CELT frame embedded into the SILK or hybrid
packet to handle the switching. It's still possible to use the
PLC-based method when no redundant packet is included.

8 years agoShouldn't include config.h from a header
Jean-Marc Valin [Mon, 7 Mar 2011 21:15:55 +0000 (16:15 -0500)]
Shouldn't include config.h from a header

8 years agofixes error in definition of V(N,K)
Jean-Marc Valin [Mon, 7 Mar 2011 17:18:45 +0000 (12:18 -0500)]
fixes error in definition of V(N,K)

8 years agoSILK bugfix
Jean-Marc Valin [Thu, 3 Mar 2011 22:31:45 +0000 (17:31 -0500)]
SILK bugfix

8 years agousing memmove() instead of memcpy() when necessary
Jean-Marc Valin [Thu, 3 Mar 2011 22:31:11 +0000 (17:31 -0500)]
using memmove() instead of memcpy() when necessary

8 years agoFix redundancy mismatch
Jean-Marc Valin [Thu, 3 Mar 2011 21:53:32 +0000 (16:53 -0500)]
Fix redundancy mismatch

8 years agoFix PLC-based mode transition code.
Jean-Marc Valin [Thu, 3 Mar 2011 20:50:08 +0000 (15:50 -0500)]
Fix PLC-based mode transition code.

8 years agoEliminate the ec_int32 and ec_uint32 typedefs.
Timothy B. Terriberry [Thu, 3 Mar 2011 00:24:32 +0000 (16:24 -0800)]
Eliminate the ec_int32 and ec_uint32 typedefs.

These were used because the entropy coder originally came from
 outside libcelt, and thus did not have a common type system.
It's now undergone enough modification that it's not ever likely to
 be used as-is in another codec without some porting effort, so
 there's no real reason to maintain the typedefs separately.
Hopefully we'll replace these all again somedate with a common set
 of Opus typedefs, but for now this will do.

This fixes an issue caused by commit 6c8acbf1, which moved the
 ec_ilog() prototype from entcode.h to ecintrin.h, where the
 ec_uint32 typedef was not yet available.
Thanks to John Ridges for the report.

8 years agoFix CNG when effEBands is less than nbEBands.
Timothy B. Terriberry [Wed, 2 Mar 2011 23:28:08 +0000 (15:28 -0800)]
Fix CNG when effEBands is less than nbEBands.

We were trying to normalize bands that didn't actually exist (e.g.,
 the last band with 320-sample frames at 32kHz).
Thanks to John Ridges for the report.

8 years agoImplementing decoder-side support for redundant mode switching (bemasc's idea)
Jean-Marc Valin [Wed, 2 Mar 2011 22:54:43 +0000 (17:54 -0500)]
Implementing decoder-side support for redundant mode switching (bemasc's idea)

8 years agoA float variable and a bug left in transient_analysis()
Jean-Marc Valin [Wed, 2 Mar 2011 22:26:48 +0000 (17:26 -0500)]
A float variable and a bug left in transient_analysis()

8 years agoSILK update
Jean-Marc Valin [Wed, 2 Mar 2011 20:58:42 +0000 (15:58 -0500)]
SILK update

8 years agoRevert de32a5bf617f782f6a478c5cd50fb040b0fbffe9
Jean-Marc Valin [Wed, 2 Mar 2011 20:43:31 +0000 (15:43 -0500)]
Revert de32a5bf617f782f6a478c5cd50fb040b0fbffe9

Moves all the delay compensation back into the encoder only

8 years agoShouldn't have been commented out
Jean-Marc Valin [Wed, 2 Mar 2011 20:40:45 +0000 (15:40 -0500)]
Shouldn't have been commented out

8 years agoEC_ILOG cleanups.
Timothy B. Terriberry [Tue, 1 Mar 2011 20:54:04 +0000 (12:54 -0800)]
EC_ILOG cleanups.

Mark _BitScanReverse as an intrinsic, as this is not done by default
 in _DEBUG mode (thanks to Bjoern D. Rasmussen for the suggestion).
Move the declaration of ec_ilog() to where the macro using it is
 defined, to ensure it is available when the macro is used.
Thanks to John Ridges for the report.

8 years agoFix effectiveBytes computation for VBR
Jean-Marc Valin [Tue, 1 Mar 2011 23:08:15 +0000 (18:08 -0500)]
Fix effectiveBytes computation for VBR

8 years agoSILK/CELT update
Jean-Marc Valin [Mon, 28 Feb 2011 21:29:02 +0000 (16:29 -0500)]
SILK/CELT update

8 years agoSquashed commit of the following:
Koen Vos [Mon, 28 Feb 2011 21:07:58 +0000 (16:07 -0500)]
Squashed commit of the following:

commit 7721daf733c6986cb2c2511c81e6fc14fea1ec6a
Author: Jean-Marc Valin <jean-marc.valin@octasic.com>
Date:   Mon Feb 28 16:00:52 2011 -0500

    Makefile.am update

commit 47dcc4edad849f57240b0c364036a378b5d22a9a
Author: Koen Vos <koen.vos@skype.net>
Date:   Mon Feb 28 15:46:23 2011 -0500

    SILK update (prefill, new LSF quant)

8 years agodraft: PVQ work
Jean-Marc Valin [Fri, 25 Feb 2011 22:42:21 +0000 (17:42 -0500)]
draft: PVQ work

8 years agodraft work
Jean-Marc Valin [Thu, 24 Feb 2011 23:54:22 +0000 (18:54 -0500)]
draft work