7 years agoIn VBR the MDCT modes rate control could dramatically over/undershoot after a frame...
Gregory Maxwell [Tue, 23 Aug 2011 06:00:55 +0000 (02:00 -0400)]
In VBR the MDCT modes rate control could dramatically over/undershoot after a frame size change
because the adaptive rate control offset was not being scaled.

7 years agoencode_size() moved out of opus_encoder.c
Jean-Marc Valin [Tue, 23 Aug 2011 06:56:12 +0000 (02:56 -0400)]
encode_size() moved out of opus_encoder.c

7 years agoMoves align() to a single header
Jean-Marc Valin [Mon, 22 Aug 2011 14:40:38 +0000 (10:40 -0400)]
Moves align() to a single header

7 years agoBetter handling of DTX for range coder state checks
Jean-Marc Valin [Sat, 20 Aug 2011 04:21:46 +0000 (00:21 -0400)]
Better handling of DTX for range coder state checks

7 years agoFinal range coder state now exposed through the ctl() interface
Jean-Marc Valin [Fri, 19 Aug 2011 21:07:16 +0000 (17:07 -0400)]
Final range coder state now exposed through the ctl() interface

7 years agoIncluding redundant frames in the final range coder state
Jean-Marc Valin [Fri, 19 Aug 2011 20:11:41 +0000 (16:11 -0400)]
Including redundant frames in the final range coder state

7 years agoAdd prototypes for the _float functions to opus.h.
Gregory Maxwell [Fri, 19 Aug 2011 16:17:22 +0000 (12:17 -0400)]
Add prototypes for the _float functions to opus.h.

7 years agoRemoves opus_encoder.h and opus_decoder.h
Jean-Marc Valin [Fri, 19 Aug 2011 17:00:49 +0000 (13:00 -0400)]
Removes opus_encoder.h and opus_decoder.h

Moves opaque structs directly to .c files

7 years agoAdds code for parsing self-delimited packets
Timothy B. Terriberry [Fri, 19 Aug 2011 03:29:52 +0000 (23:29 -0400)]
Adds code for parsing self-delimited packets

7 years agoRenaming "mode" option to "application"
Jean-Marc Valin [Thu, 18 Aug 2011 21:28:28 +0000 (17:28 -0400)]
Renaming "mode" option to "application"

7 years agoUsing dllimport on Win32 when not building Opus
Jean-Marc Valin [Thu, 18 Aug 2011 21:02:25 +0000 (17:02 -0400)]
Using dllimport on Win32 when not building Opus

Jean-Marc Valin [Thu, 18 Aug 2011 20:55:24 +0000 (16:55 -0400)]

7 years agoopus_packet_parse() now returns the payload offset rather than the pointer
Jean-Marc Valin [Thu, 18 Aug 2011 19:54:00 +0000 (15:54 -0400)]
opus_packet_parse() now returns the payload offset rather than the pointer

7 years agoMaking sure the decoder always outputs at least 2.5 ms
Jean-Marc Valin [Thu, 18 Aug 2011 19:00:59 +0000 (15:00 -0400)]
Making sure the decoder always outputs at least 2.5 ms

7 years agoChanging the encoder to output the ToC in DTX mode
Jean-Marc Valin [Thu, 18 Aug 2011 18:32:16 +0000 (14:32 -0400)]
Changing the encoder to output the ToC in DTX mode

Also fixes the "output all zeros" case for DTX/PLC at the beginning of
a stream

7 years agoPrevent spurious "Invalid payload length" on test_opus decode,
Gregory Maxwell [Wed, 17 Aug 2011 21:06:17 +0000 (17:06 -0400)]
Prevent spurious "Invalid payload length" on test_opus decode,
and avoid calling rand() during decode in order to make fuzzing
more deterministic.

7 years agoReduce the number of branches around ncwrs* and ucwrs* calls with k==0.
Benjamin M. Schwartz [Wed, 17 Aug 2011 01:18:32 +0000 (21:18 -0400)]
Reduce the number of branches around ncwrs* and ucwrs* calls with k==0.

This slightly reduces the executable size and might improve
performance on platforms without good branch prediction.

7 years agoAdds a floating-point API to Opus
Jean-Marc Valin [Wed, 17 Aug 2011 19:53:37 +0000 (15:53 -0400)]
Adds a floating-point API to Opus

The high-level Opus encoder and decoder can now be compiled as
either fixed or float. Also, we now use the stack_alloc.h macros
in the top-level Opus code.

7 years agoDate change on the draft draft-08 v0.9.6
Jean-Marc Valin [Wed, 17 Aug 2011 03:22:55 +0000 (23:22 -0400)]
Date change on the draft

7 years agoMore spec additions and clean-up.
Timothy B. Terriberry [Tue, 16 Aug 2011 21:36:58 +0000 (14:36 -0700)]
More spec additions and clean-up.

This also adds an appendix for the self-delimiting framing.

7 years agoRemoves useless test in test_opus
Jean-Marc Valin [Tue, 16 Aug 2011 13:27:25 +0000 (09:27 -0400)]
Removes useless test in test_opus

7 years agoMaking the CELT bitrate default to "unlimited"
Jean-Marc Valin [Tue, 16 Aug 2011 13:12:14 +0000 (09:12 -0400)]
Making the CELT bitrate default to "unlimited"

7 years agoUpdate licensing file with current IPR disclosures; remove outdated Skype text.
Kat Walsh [Tue, 16 Aug 2011 02:57:54 +0000 (22:57 -0400)]
Update licensing file with current IPR disclosures; remove outdated Skype text.

7 years agoUpdated README files to reflect current output of tool and tweaked punctuation and...
Kat Walsh [Tue, 16 Aug 2011 02:43:51 +0000 (22:43 -0400)]
Updated README files to reflect current output of tool and tweaked punctuation and wording. Corrected typo in test_opus ("constraint"->"constrained").

7 years agoDefine CELT bitrate=-1 as "unlimited" (i.e. all bytes given)
Jean-Marc Valin [Tue, 16 Aug 2011 02:37:11 +0000 (22:37 -0400)]
Define CELT bitrate=-1 as "unlimited" (i.e. all bytes given)

7 years agoFixes a high bit-rate redundant frame bug
Jean-Marc Valin [Tue, 16 Aug 2011 02:06:02 +0000 (22:06 -0400)]
Fixes a high bit-rate redundant frame bug

We now ensure that the total payload *including* the redundant frame
is no more than 1275 bytes. Also, the redundant frame itself must
be no more than 257 (the max that can be signalled).

7 years agoIn silk_dec_API.c a memcpy was blindly copying data of differing types (opus_int16...
Gregory Maxwell [Mon, 15 Aug 2011 17:18:52 +0000 (13:18 -0400)]
In silk_dec_API.c a memcpy was blindly copying data of differing types (opus_int16[2] to opus_int[2]).

7 years agoStrip off trailing zero bytes when in LPC mode.
Gregory Maxwell [Mon, 15 Aug 2011 21:25:59 +0000 (17:25 -0400)]
Strip off trailing zero bytes when in LPC mode.
Saves about 60 bits/sec for 20ms frames.

7 years agoAvoid passing 'resynth' argument since resynth is either !encode
Gregory Maxwell [Mon, 15 Aug 2011 20:05:40 +0000 (16:05 -0400)]
Avoid passing 'resynth' argument since resynth is either !encode
or it's always 1 if -DRESYNTH.

7 years agoFixes an encoder bugg when requesting a CBR rate over the allowable limit
Jean-Marc Valin [Mon, 15 Aug 2011 18:08:57 +0000 (14:08 -0400)]
Fixes an encoder bugg when requesting a CBR rate over the allowable limit

7 years agoMake dump_modes.c include the arguments in the output.
Gregory Maxwell [Mon, 15 Aug 2011 17:03:25 +0000 (13:03 -0400)]
Make dump_modes.c include the arguments in the output.

7 years agoRespect the ANSI C89 maximum line length.
Gregory Maxwell [Mon, 15 Aug 2011 16:35:10 +0000 (12:35 -0400)]
Respect the ANSI C89 maximum line length.

7 years agoRemove two branches from bitexact_cos(). These cases were actually
Gregory Maxwell [Mon, 15 Aug 2011 15:35:39 +0000 (11:35 -0400)]
Remove two branches from bitexact_cos(). These cases were actually
unreachable due the maximum and minimum values being special cases
in the caller plus the limits of the maximum itheta precision.

The testcases are also updated to only test the reachable range.

7 years agoReplacing SPK_INLINE by static inline
Jean-Marc Valin [Mon, 15 Aug 2011 15:24:37 +0000 (11:24 -0400)]
Replacing SPK_INLINE by static inline

The config.h will take care of compat issues with "inline"

7 years agoAdd cwrs32-test coverage for some N which are only used
Gregory Maxwell [Mon, 15 Aug 2011 14:35:06 +0000 (10:35 -0400)]
Add cwrs32-test coverage for some N which are only used
with oddball opus-custom framesizes, disables testing
sizes only used by custom modes when not compiling with
custom mode support.

7 years agoIncluding config.h from all the SILK files
Jean-Marc Valin [Mon, 15 Aug 2011 14:49:53 +0000 (10:49 -0400)]
Including config.h from all the SILK files

7 years agoMaking the MDCT produce interleaved data
Jean-Marc Valin [Mon, 15 Aug 2011 14:20:06 +0000 (10:20 -0400)]
Making the MDCT produce interleaved data

7 years agoMaking the IMDCT work on interleaved data
Jean-Marc Valin [Mon, 15 Aug 2011 14:01:00 +0000 (10:01 -0400)]
Making the IMDCT work on interleaved data

Saves a copy in the decoder

7 years agoRemoves unused functions from cwrs.c
Jean-Marc Valin [Mon, 15 Aug 2011 13:43:52 +0000 (09:43 -0400)]
Removes unused functions from cwrs.c

7 years agokiss fft cleanup
Jean-Marc Valin [Mon, 15 Aug 2011 13:39:16 +0000 (09:39 -0400)]
kiss fft cleanup

7 years agoRenames the kiss FFT implementation to reduce the risk of symbol clashes
Jean-Marc Valin [Mon, 15 Aug 2011 13:01:29 +0000 (09:01 -0400)]
Renames the kiss FFT implementation to reduce the risk of symbol clashes

7 years agoMaking forward and inverse FFT non-recursive
Jean-Marc Valin [Mon, 15 Aug 2011 06:36:42 +0000 (02:36 -0400)]
Making forward and inverse FFT non-recursive

Should be less confusing for profiling

7 years agoRemoving (already broken) support for strides in kiss-fft
Jean-Marc Valin [Sun, 14 Aug 2011 22:01:13 +0000 (18:01 -0400)]
Removing (already broken) support for strides in kiss-fft

7 years agoProperly take into account the frame size to decide the mode
Jean-Marc Valin [Sat, 13 Aug 2011 05:44:39 +0000 (01:44 -0400)]
Properly take into account the frame size to decide the mode

7 years agoFixes a pretty bad stereo bug in test_opus
Jean-Marc Valin [Sat, 13 Aug 2011 05:44:09 +0000 (01:44 -0400)]
Fixes a pretty bad stereo bug in test_opus

7 years agoRearrange mode structure to avoid wasting memory from padding.
Gregory Maxwell [Fri, 12 Aug 2011 23:03:29 +0000 (19:03 -0400)]
Rearrange mode structure to avoid wasting memory from padding.

7 years agoIdentifying the fuzzing builds in the version string
Jean-Marc Valin [Fri, 12 Aug 2011 20:23:16 +0000 (16:23 -0400)]
Identifying the fuzzing builds in the version string

7 years agoFixes a stereo rate mismatch bug
Jean-Marc Valin [Fri, 12 Aug 2011 20:17:27 +0000 (16:17 -0400)]
Fixes a stereo rate mismatch bug

This is a tentative fix for a bug found in fuzzing where the encoder
switched from mono to stereo while in the process of changing bandwidth.
The result was that the newly added side would use the new sampling
rate, while the mid hadn't switched yet, causing an encoder/decoder
mismatch. The fix is that the side rate selection gets overridden
to use the mid rate.
The bug would occur when compiling with fuzzing enabled and using:
./test_opus 0 48000 2 24000 input.sw output.sw

7 years agoCorrect anti_collapse in the decoder to handle the stereo
Gregory Maxwell [Fri, 12 Aug 2011 18:22:16 +0000 (14:22 -0400)]
Correct anti_collapse in the decoder to handle the stereo
to mono state transition in the same manner as the encoder.

7 years agoShrink INV_TABLE to save a little memory.
Gregory Maxwell [Fri, 12 Aug 2011 17:08:38 +0000 (13:08 -0400)]
Shrink INV_TABLE to save a little memory.

7 years agoEliminate some unreachable cases from the cwrs code and fixup the
Gregory Maxwell [Fri, 12 Aug 2011 16:05:16 +0000 (12:05 -0400)]
Eliminate some unreachable cases from the cwrs code and fixup the
asserts to reflect the actual limits. Update the cwrs test to cover
the complete n,k range used by opus/opus_custom.

7 years agoFixes a mode transition bug found by fuzzing
Jean-Marc Valin [Fri, 12 Aug 2011 04:30:47 +0000 (00:30 -0400)]
Fixes a mode transition bug found by fuzzing

During SILK->CELT transitions, we were delaying the mode change by
one frame, but only after having ensured that bandwidth and mode were
consistent. We now do the delaying earlier.

7 years agoAdds a fuzzing mode that causes the encoder to make random decisions
Jean-Marc Valin [Thu, 11 Aug 2011 20:21:58 +0000 (16:21 -0400)]
Adds a fuzzing mode that causes the encoder to make random decisions

7 years agoFixed multiple bugs in the repacketizer
Jean-Marc Valin [Wed, 10 Aug 2011 18:17:55 +0000 (14:17 -0400)]
Fixed multiple bugs in the repacketizer

Repacketizer now seems to work, though it doesn't yet handle
unmergeable packets. Also, test_opis no longer attempt to do proper
gapless at the end of the file, which was causing problems for
repacketization, but also with 32 bit overflows

7 years agoAdds a test_repacketizer tool and fixes a few of the bugs in the repacketizer
Jean-Marc Valin [Wed, 10 Aug 2011 13:47:30 +0000 (09:47 -0400)]
Adds a test_repacketizer tool and fixes a few of the bugs in the repacketizer

Still more bugs to find

7 years agoRepacketization code (untested)
Jean-Marc Valin [Wed, 10 Aug 2011 12:54:49 +0000 (08:54 -0400)]
Repacketization code (untested)

7 years agoRefactoring the decoder to create opus_packet_parse()
Jean-Marc Valin [Mon, 8 Aug 2011 15:57:13 +0000 (11:57 -0400)]
Refactoring the decoder to create opus_packet_parse()

7 years agoUnit tests for bitexact_cos() and bitexact_log2tan().
Gregory Maxwell [Mon, 8 Aug 2011 02:42:56 +0000 (22:42 -0400)]
Unit tests for bitexact_cos() and bitexact_log2tan().

7 years agoUsing a more conservative trim (just in case) following Greg's last patch
Jean-Marc Valin [Mon, 8 Aug 2011 15:33:17 +0000 (11:33 -0400)]
Using a more conservative trim (just in case) following Greg's last patch

7 years agoCorrect allocation tilt estimation in the CELT encoder for stereo.
Gregory Maxwell [Sun, 7 Aug 2011 04:57:31 +0000 (00:57 -0400)]
Correct allocation tilt estimation in the CELT encoder for stereo.
Remove a redundant negative length check in celt_decode.

7 years agoremoves tandem test
Jean-Marc Valin [Fri, 5 Aug 2011 15:05:47 +0000 (11:05 -0400)]
removes tandem test

7 years agoFixes the celt_exp2() test (not the function, the test itself)
Jean-Marc Valin [Fri, 5 Aug 2011 14:53:04 +0000 (10:53 -0400)]
Fixes the celt_exp2() test (not the function, the test itself)

Was previously testing only far on the negative side and using
the wrong scaling factor

7 years agoRe-enables test cases, including the rotation test
Jean-Marc Valin [Fri, 5 Aug 2011 14:47:41 +0000 (10:47 -0400)]
Re-enables test cases, including the rotation test

7 years agoFixes two test cases
Jean-Marc Valin [Fri, 5 Aug 2011 13:41:22 +0000 (09:41 -0400)]
Fixes two test cases

7 years agoUsing the real version name instead of the last tag name
Jean-Marc Valin [Fri, 5 Aug 2011 12:47:24 +0000 (08:47 -0400)]
Using the real version name instead of the last tag name

7 years agoAdds OPUS_GET_LOOKAHEAD
Jean-Marc Valin [Wed, 3 Aug 2011 16:44:37 +0000 (12:44 -0400)]

7 years agoRename libcelt/static_modes_(fixed|float).c to .h to better reflect
Gregory Maxwell [Tue, 2 Aug 2011 21:13:06 +0000 (17:13 -0400)]
Rename libcelt/static_modes_(fixed|float).c to .h to better reflect
their usage and to make any toolchain that doesn't like to #include
.c file happy.

7 years agoTell automake to put object files in subdirectories.
Ralph Giles [Tue, 2 Aug 2011 18:43:43 +0000 (11:43 -0700)]
Tell automake to put object files in subdirectories.

Previously the autotools build litered whatever directory
'make' was invoked from with intermediate files. Adding
'subdir-objects' to AUTOMAKE_OPTIONS tells it to put them
in subdirectories according to the relative paths to the
source files, .i.e. silk/schur.o for $(srcdir)/silk/schur.c

The change to autogen.sh is necessary to handle the
(apparently new) case where an AUTOMAKE_OPTIONS line is
given without a minimum version number.

7 years agoRemove duplicate 'libopus' from the fallback version string.
Ralph Giles [Tue, 2 Aug 2011 17:33:04 +0000 (10:33 -0700)]
Remove duplicate 'libopus' from the fallback version string.

Thanks to Tim Terriberry for pointing out the issue.

7 years agoUse 'libopus' rather than 'Opus' in the version string.
Ralph Giles [Tue, 2 Aug 2011 17:17:44 +0000 (10:17 -0700)]
Use 'libopus' rather than 'Opus' in the version string.

This better distinguishes the reference implementation,
which is what this string is meant to do. Thanks to
Greg Maxwell for the suggestion.

7 years agoPrint the library version from test_opus.
Ralph Giles [Tue, 2 Aug 2011 17:14:36 +0000 (10:14 -0700)]
Print the library version from test_opus.

This lets us verify this part of the API is working.

7 years agoRegularize whitespace in the src directory.
Ralph Giles [Tue, 2 Aug 2011 17:06:59 +0000 (10:06 -0700)]
Regularize whitespace in the src directory.

Remove trailing whitespace, convert tabs to 4 spaces, re-align
test_opus to use 4-space indents instead of 3, and re-wrap some
long lines.

7 years agoPrepend "Opus" to the version string.
Ralph Giles [Tue, 2 Aug 2011 16:39:54 +0000 (09:39 -0700)]
Prepend "Opus" to the version string.

This lets users print it out without context, which is a little
easier for clients.

7 years agoQuery git for the repository revision and use that for the version string.
Ralph Giles [Tue, 2 Aug 2011 16:34:55 +0000 (09:34 -0700)]
Query git for the repository revision and use that for the version string.

Rather than compiling in the fixed version number from the configure
file, it's more helpful for testing and debugging to directly embed
the repository's revision. We use 'git describe --tags' for this, since
for tagged revisions it just returns the tag name, and in other cases
is more readable than a raw commit id.

If git isn't present or can't find a repository to query, we fall back
to the static version number in the configure script.

7 years agoDefine a fallback version string.
Ralph Giles [Tue, 2 Aug 2011 00:10:00 +0000 (17:10 -0700)]
Define a fallback version string.

The new opus_get_version_string() call just returns a static string
defined by OPUS_VERSION, which is passed in from the build system
through config.h (or a custom compile line). Provide a fallback to
"unknown" if the build system fails to actually provide that definition.

This restores compilation with Makefile.draft.

In general, this means there will be builds out there with non-specific
version strings, since ports won't be forced to update the string. While
that's unfortunate, I think it's more valuable that the library be simple
to build.

7 years agoforgot to include opus.h from opus.c
Jean-Marc Valin [Tue, 2 Aug 2011 16:39:13 +0000 (12:39 -0400)]
forgot to include opus.h from opus.c

7 years agoMakefile fixes
Jean-Marc Valin [Tue, 2 Aug 2011 12:13:42 +0000 (08:13 -0400)]
Makefile fixes

silk_sources.mk no longer needs to be patched (s/if/ifdef/) for
the draft Makefile to work.

7 years agoFix varrious splint warnings, C89 compatibility, and compilation with the
Gregory Maxwell [Tue, 2 Aug 2011 02:02:25 +0000 (22:02 -0400)]
Fix varrious splint warnings, C89 compatibility, and compilation with the
draft makefile. Increase precision of the static modes table.

7 years agoRemove many unused defines and convert some double constants to float.
Gregory Maxwell [Tue, 2 Aug 2011 00:41:54 +0000 (20:41 -0400)]
Remove many unused defines and convert some double constants to float.

7 years agoAdd a function to query the Opus version
Jean-Marc Valin [Mon, 1 Aug 2011 02:29:05 +0000 (22:29 -0400)]
Add a function to query the Opus version

7 years agoConvert all CRLF in the SILK code, tabs to spaces, and trailing
Gregory Maxwell [Sat, 30 Jul 2011 12:18:48 +0000 (08:18 -0400)]
Convert all CRLF in the SILK code, tabs to spaces, and trailing

7 years agoCorrect many whitespace errors under libcelt/ and remove
Gregory Maxwell [Sat, 30 Jul 2011 04:00:29 +0000 (00:00 -0400)]
Correct many whitespace errors under libcelt/ and remove
non-ascii characters from the source.

7 years agoAdd extra entries to the shell code tables
Timothy B. Terriberry [Sun, 31 Jul 2011 01:24:03 +0000 (21:24 -0400)]
Add extra entries to the shell code tables

Although the current encoder uses does not use them, the decoder
might have tried to use offsets beyond the end of these tables.
Inserting values here ensures that the stream can be decoded in a
well-defined way.
The particular values of these tables were chosen to match a
Gaussian distribution with sigma=3.93.

7 years agos/celt_types/opus_types/ in celt_headers.txt
Jean-Marc Valin [Sat, 30 Jul 2011 03:31:20 +0000 (23:31 -0400)]
s/celt_types/opus_types/ in celt_headers.txt

7 years agoMaking use of the opus_int* types in the toplevel Opus code
Jean-Marc Valin [Sat, 30 Jul 2011 00:10:27 +0000 (20:10 -0400)]
Making use of the opus_int* types in the toplevel Opus code

7 years agoRenamed celt_word* to opus_val*
Jean-Marc Valin [Fri, 29 Jul 2011 22:59:12 +0000 (18:59 -0400)]
Renamed celt_word* to opus_val*

7 years agoRenamed SKP_[u]int* to opus_[u]int*
Jean-Marc Valin [Fri, 29 Jul 2011 22:39:57 +0000 (18:39 -0400)]
Renamed SKP_[u]int* to opus_[u]int*

7 years agoRenamed celt_[u]int* to opus_[u]int*
Jean-Marc Valin [Fri, 29 Jul 2011 21:33:06 +0000 (17:33 -0400)]
Renamed celt_[u]int* to opus_[u]int*

7 years agoAlways enable OPUS_TEST_RANGE_CODER_STATE.
Ralph Giles [Fri, 29 Jul 2011 21:01:54 +0000 (14:01 -0700)]

This removes the configurability of the OPUS_TEST_RANGE_CODER_STATE
consistency check, in favour of always running it. The performance
penalty is low, and it's an important check on correctness for the
reference encoder to provide.

7 years agoRemove the configurability of the post-filter. It is always enabled in Opus.
Gregory Maxwell [Fri, 29 Jul 2011 20:17:23 +0000 (16:17 -0400)]
Remove the configurability of the post-filter. It is always enabled in Opus.

7 years agoHeader documentation fixes
Jean-Marc Valin [Fri, 29 Jul 2011 20:12:28 +0000 (16:12 -0400)]
Header documentation fixes

7 years agoAddressing editorial comments by Christian Hoene
Jean-Marc Valin [Fri, 29 Jul 2011 17:19:17 +0000 (13:19 -0400)]
Addressing editorial comments by Christian Hoene

7 years agoRemove an unused variable.
Ralph Giles [Fri, 29 Jul 2011 16:39:25 +0000 (09:39 -0700)]
Remove an unused variable.

Fix a warning on gcc 4.6. 'internal_sampling_rate_Hz' was
replaced by 'bandwidth' in a10e8796 but the local variable
holding the setting wasn't removed.

7 years agoRemove a _overlap_mem only used for -DRESYNTH builds in celt.c.
Gregory Maxwell [Fri, 29 Jul 2011 15:53:45 +0000 (11:53 -0400)]
Remove a _overlap_mem only used for -DRESYNTH builds in celt.c.

7 years agoEnable automake's "silent rules" if they are available.
Ralph Giles [Fri, 29 Jul 2011 07:55:56 +0000 (00:55 -0700)]
Enable automake's "silent rules" if they are available.

Automake version 1.11 and above provide a build mode where
each build command is replaced by a single-line annotation.
Since autotools build lines for libraries typically each fill
an entire terminal screen, this mode makes it easier to keep
track of build progress, and warnings stand out more clearly.

For debugging the build process, the old behaviour can be
recovered by running 'make V=1' at bulid time, or by passing
--disable-silent-rules to configure.

Since Automake 1.11 is still very recent, we only invoke
the AM_SILENT_RULES macro if it is defined, allowing fallback
to the old behaviour under previous versions of automake.

7 years agoFix a comment in frame count byte decoding.
Ralph Giles [Fri, 29 Jul 2011 07:44:08 +0000 (00:44 -0700)]
Fix a comment in frame count byte decoding.

A comment in opus_decode() said, "bit 6 is ignored" when in
fact bit 6 is the padding flag, parsed in the previous block.

The comment, and the previous one, are modified to reflect
the current code.

7 years agoDocument HAVE_LRINTF in the draft Makefile.
Ralph Giles [Mon, 25 Jul 2011 20:26:57 +0000 (13:26 -0700)]
Document HAVE_LRINTF in the draft Makefile.

I've changed the grouping of the options to place the performance-
related ones after the more serious thread-safety options. This
is still somewhat confusing as with C99 on wants -DHAVE_LRINTF
but NOT -Drestrict=

I've also added leading whitespace to the comment lines to better
distinguish them from the commented-out code lines.

7 years agoPrevents more than 10 LSBs from being decoded
Jean-Marc Valin [Mon, 25 Jul 2011 14:45:23 +0000 (10:45 -0400)]
Prevents more than 10 LSBs from being decoded

7 years agoFixes some compiler warnings
Christian Hoene [Mon, 25 Jul 2011 13:04:51 +0000 (09:04 -0400)]
Fixes some compiler warnings

7 years agofix autotools build, bump version number draft-07 v0.9.5
Jean-Marc Valin [Sat, 9 Jul 2011 13:20:51 +0000 (09:20 -0400)]
fix autotools build, bump version number