Commit graph

3269 commits

Author SHA1 Message Date
Jean-Marc Valin
a156c5ece7 Makes the SILK pitch search use celt_pitch_xcorr()
Should gives us ARM/SSE optimizations for free.
2013-08-26 19:27:46 -04:00
Ralph Giles
568de0a17b Fix more VS2010 header paths. 2013-08-21 16:15:57 -07:00
Ralph Giles
2af12f3c8a Fix relative paths the header file in the VS2010 projects.
This prevented opening the files from the 'Solution Explorer'
interface where the source listing is displayed. Thanks to
Koen Vos for reporting the issue.
2013-08-21 16:06:30 -07:00
Jean-Marc Valin
03e8203717 Fixes a denorm issue in the VoIP mode high-pass filter 2013-08-12 14:49:02 -04:00
Jean-Marc Valin
5771b5a2e5 Update the RTP draft for resubmit 2013-08-12 14:49:02 -04:00
Timothy B. Terriberry
0aa8b42db0 Fix broken URL in entdec.c.
Thanks to thinqa for the report.
Fixes #1968.
2013-08-04 22:47:07 -07:00
Jean-Marc Valin
e45509294c Better handling of the dynalloc cap for CBR/CVBR 2013-07-30 05:12:46 -04:00
Jean-Marc Valin
8259492a7d Fixes an integer wrap-around due to an exceedingly large QCONST16 2013-07-25 13:55:15 -04:00
Daniel Jensen
c0c0ef677d Add SET_MAX_BANDWIDTH to multistream encoder ctl list
Signed-off-by: Gregory Maxwell <greg@xiph.org>
2013-07-23 11:23:03 -07:00
Ralph Giles
ecc81ee629 Disable MSVC posix security warnings in the project file.
By default Visual Studio warns about various C stdlib calls,
recommending non-portable replacements instead. We disable
this warning in a number of places in the source.

Since they're specific to the Visual Studio build, it's better
to disable them just in the project files where they always
apply to the correct toolchain.

I have only added the disable setting to project files which
need it currently: opus, test_opus_encode, and test_opus_decode.
2013-07-15 16:30:45 -07:00
Ralph Giles
25eca1c33e Conditionalize #pragma warn for MSVC.
This warning disable was conditional on _WIN32, which mingw
also defines, resulting in a warning about the unknown pragma
on gcc. Instead make it depend on something only the Visual
Studio compiler defines.
2013-07-15 16:05:31 -07:00
Gregory Maxwell
5280c71883 Revert "Fixes a number of double promotions and missing casts."
This reverts commit 43279728cd.
2013-07-15 15:51:24 -07:00
Gregory Maxwell
4effd30882 Revert "Additional MSVC warning missed in the last commit."
This reverts commit 715b37f6d6.
2013-07-15 15:51:14 -07:00
Gregory Maxwell
715b37f6d6 Additional MSVC warning missed in the last commit. 2013-07-15 15:31:44 -07:00
Gregory Maxwell
43279728cd Fixes a number of double promotions and missing casts.
At a minimum MSVC warns on some of this stuff.
2013-07-15 15:23:03 -07:00
Ron
cfe8e2b86d Always try to update the version when autogen.sh is run
This avoids at least one case where ./autogen.sh && ./configure && make
will re-run configure because the makefile rules updated something that
it depends upon. Pulling a new version from git will change the version
so we should update that at the first step rather than iterating after
the last one.
2013-07-13 17:23:04 +09:30
Jean-Marc Valin
ae521b0fe5 Update draft for the Opus RFC 2013-07-12 23:52:00 -04:00
Jean-Marc Valin
b29ad007e5 Fixes MSVC warnings 2013-07-12 22:59:29 -04:00
Jean-Marc Valin
ea95c533c8 Updates version.mk for 1.1-beta until we can get rid of it 2013-07-12 10:08:52 -04:00
Jean-Marc Valin
260474fb81 Fixes a denorm problem when the input goes silent after active audio 2013-07-12 01:22:09 -04:00
Pedro Becerra
1af7f9562b Fixes build when DISABLE_FLOAT_API is defined
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2013-07-11 00:02:00 -04:00
Jean-Marc Valin
cd373b54de Surround masking tuning
More conservative surround masking
Disables temporal VBR on surround
Disables tonality on LFE
2013-07-07 02:51:07 -04:00
Jean-Marc Valin
4958751ef4 Better handling of centre for surround masking, bitrate tuning
Centre channel now contributes sqrt(.5) to both channels
Reduces the stream offset at low bitrate
2013-07-07 02:50:18 -04:00
Jean-Marc Valin
2f7a315101 Fixes silly fixed-point bug with the surround downmix 2013-07-07 01:11:23 -04:00
Jean-Marc Valin
4365498d48 Prevents zero-energy on LFE 2013-07-07 00:39:35 -04:00
Ron
45106b7e4d Link libopus itself with libm too 2013-07-02 17:01:23 +09:30
Jean-Marc Valin
4eb399d7f4 More speech/music detection comments (delayed decision) 2013-07-01 20:19:24 -04:00
Jean-Marc Valin
0f5ff80bac Commenting the speech/music Markov code 2013-07-01 18:39:34 -04:00
Jean-Marc Valin
92a06f51a7 Disables temporal VBR for LFE 2013-07-01 16:27:07 -04:00
Jean-Marc Valin
337f34cf5b Adds some checks to the surround API 2013-07-01 16:17:01 -04:00
Jean-Marc Valin
8e3a1cbf48 Temporal VBR tuning
Applies temporal VBR up to higher bitrates after IgorC reported it being
useful at 64 kb/s for amount=0.1
2013-07-01 16:14:48 -04:00
Ron
f92286b3da Get rid of PC_LIBM
It only existed to not include -lm in the .pc for fixed point builds,
but that is still needed since the float API is still enabled and
will use at least lrint.
2013-07-02 02:35:53 +09:30
Gregory Maxwell
a9daf9fec3 Add a couple minor additional decoder tests. 2013-06-29 22:20:54 -07:00
Gregory Maxwell
a0d096f18f Braces go on the next line. 2013-06-29 20:33:32 -07:00
Gregory Maxwell
b271dae70c Brace a number of if statements instead of one-lining them. 2013-06-29 20:25:55 -07:00
Gregory Maxwell
dd7b0dac3b Fixes some return without va_end in the api, adds tests.
Also makes the CTL bad argument handling more consistent to avoid mistakes
 like that in the future.  Also updates the variable duration docs.
2013-06-29 20:06:07 -07:00
Ron
90a39039a4 Make the parallel test mode of automake 1.13 useable 2013-06-29 16:36:24 +09:30
Ron
64b398573d Replace INCLUDES with AM_CPPFLAGS
Automake 1.13 complains that INCLUDES is obsoleted now.
2013-06-29 15:40:27 +09:30
Ron
5bac4f26cb More autoconf housekeeping
Drop the test for getopt, it's not used anywhere anymore.

Switch the last uses of AC_TRY_COMPILE to AC_COMPILE_IFELSE now.
The former is marked as obsolete, and this will leave no confusion
about which to cut and paste if new tests are added.

Double quote all the parameters to AC_LANG_SOURCE and AC_LANG_PROGRAM.
This is actually required, even if you can get away with not doing it
sometimes, so again set a good example for future changes to follow,
to hopefully avoid people getting bitten harder than they need to be.

Don't bother checking for alloca if we're never going to use it
(ie. if we have C99 variable-size array support).
The test for this is a bit sketchy anyway ...  we separately test for
HAVE_ALLOCA_H and USE_ALLOCA, but the test for USE_ALLOCA depends upon
having alloca.h present, yet the use of these macros in stack_alloc.h
only tests for HAVE_ALLOCA_H inside of a test for USE_ALLOCA.
I'm not going to change this logic right now, since I don't know what
crazy system it was attempting to cater for, though I suspect it was
one that was not using the autoconf build system ... since with the
current test that combination should not be possible to obtain.

Use LT_LIB_M instead of the song and dance with testing for exp().
This should also work for BeOS which is what the exp test was added for.
It also means we don't unconditionally add -lm to everything via LIBS.

Use LIBM now instead of hardcoding -lm everywhere.

Use AS_HELP_STRING to format all option descriptions.

Don't bother to test for doxygen if using it is --disable'd.

Drop the SYMBOL_VISIBILITY export, it isn't used anywhere (we add the
compiler flag to CFLAGS).
2013-06-29 05:06:24 +09:30
Jean-Marc Valin
e83a365b74 Fixes more MSVC warnings 2013-06-27 14:45:50 -04:00
Jean-Marc Valin
157fd8f948 Fixes MSVC warning 2013-06-27 13:03:33 -04:00
Jean-Marc Valin
fa3344e825 Avoid name clash with y0 Bessel function 2013-06-27 04:15:44 -04:00
Jean-Marc Valin
aecebff9be Updates the Makefile.am EXTRA_DIST for the MSVC reorg 2013-06-27 04:04:48 -04:00
Jean-Marc Valin
16ba19a95b Fixes MSVC warnings 2013-06-27 03:40:44 -04:00
Jean-Marc Valin
1975eeadd2 Big squashed commit of Garf's MSVC reorg:
commit 77880655f652c54415e4b5f03b5984b951f5267b
Author: Timothy B. Terriberry <tterribe@xiph.org>
Date:   Wed Jun 26 12:23:53 2013 +0200

    Fix version.mk parsing in genversion.bat.

    This was broken by the changes in 0482c82f to make it work with spaces.

    CMD interprets the quotes to mean the argument to FOR is a string,
    not a file name. Instead, we expand the path to a short file name.

    Signed-off-by: Gian-Carlo Pascutto <gcp@sjeng.org>

commit 8e97847ecac3a04956747b117fefef14939cbcbe
Merge: 0482c82 3c0aa8f
Author: Gian-Carlo Pascutto <gcp@sjeng.org>
Date:   Wed Jun 26 12:19:41 2013 +0200

    Merge branch 'master' into msvc_reorg

commit 0482c82fea6dd397a7d2ab50dc6cda4965278fc2
Author: Gian-Carlo Pascutto <gcp@sjeng.org>
Date:   Tue May 21 17:59:30 2013 +0200

    Make genversion.bat work in paths with spaces.

commit 3648ec55b7511119735280fc49bc57c7a3b55d6a
Author: Gian-Carlo Pascutto <gcp@sjeng.org>
Date:   Tue May 21 17:42:14 2013 +0200

    Rework output & intermediate dirs for parallel build support.

commit c367a0fcfcbf5551fb65d61365d9b832d7af2b38
Merge: bafb1dd b518b56
Author: Gian-Carlo Pascutto <gcp@sjeng.org>
Date:   Tue May 21 14:17:11 2013 +0200

    Merge branch 'master' into msvc_reorg

    Conflicts:
    	win32/VS2010/celt.vcxproj
    	win32/VS2010/opus.vcxproj
    	win32/VS2010/silk_common.vcxproj
    	win32/VS2010/silk_float.vcxproj

commit bafb1dda3fcf6785decdfb42a1f934c7fab0c567
Author: Gian-Carlo Pascutto <gcp@sjeng.org>
Date:   Mon Mar 11 21:25:28 2013 +0100

    Fix two more files to not have the Platform Toolset explicitly set.

commit c69c870201fec7461862fe79731a37866a1810f1
Author: Gian-Carlo Pascutto <gcp@sjeng.org>
Date:   Mon Mar 11 21:08:00 2013 +0100

    Add missing SILK MSVC project files.

commit a0d41fb7f97558c8f812d500b9027c77907c37c0
Author: Gian-Carlo Pascutto <gcp@sjeng.org>
Date:   Fri Mar 8 15:00:51 2013 +0100

    Use the default toolset in the MSVC project files.

commit 34aac5b2637ed38c5620f0d876e08db232849933
Author: Gian-Carlo Pascutto <gcp@sjeng.org>
Date:   Fri Mar 8 14:54:41 2013 +0100

    Move the MSVC project files outside the source tree.

    Bring the project structure more in line with the one in libogg.
2013-06-27 03:12:38 -04:00
Jean-Marc Valin
3c0aa8fc25 Adds "temporal VBR", which should be mostly useful at low bitrate.
The idea is to allow more noise than the default in quiet segments.
Right now, this hurts for high bitrates , so it's gradually reduced
as the rate goes up, until it's completely disabled above 68 kb/s.
2013-06-25 14:10:27 -04:00
Jean-Marc Valin
b9176a4c3e Makes dual_inner_prod() more generic to increase its use 2013-06-17 16:37:41 -04:00
MuldeR
ff31b79016 Enable SSE for MSVC
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2013-06-17 14:11:15 -04:00
Jean-Marc Valin
96e2be37b8 Only enable non-multiple of 4 in comb_filter_const() when CUSTOM_MODES is on 2013-06-17 14:04:17 -04:00
Jacek Caban
1f26ee2bbd Use __declspec(dllexport) on mingw build.
Signed-off-by: Gregory Maxwell <greg@xiph.org>
2013-06-17 10:12:28 -07:00