Commit Graph

18 Commits

Author SHA1 Message Date
Karl Tomlinson
4cd53b7e4f b=1042508 remove : of empty Clobber asm argument r=padenot
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Extended-Asm says

  asm [volatile] ( AssemblerTemplate : [OutputOperands] [ : [InputOperands] [ : [Clobbers] ] ] )

which implies that Clobbers is optional even after the third colon, but
the gcc used for b2g_try_emulator_dep builds says

resample_neon.c: In function 'saturate_32bit_to_16bit':
resample_neon.c:50: error: expected string literal before ')' token

--HG--
extra : rebase_source : 6ca7768d5b30f67ff6827acc9a4fdc51a672bc1e
2014-07-22 20:10:36 +12:00
Karl Tomlinson
443ba0fbbc b=1042508 move resampler simd optimizations to separate translation units r=padenot
This ensures that code in resample.c will run on Intel x86 cpus even when SSE
support has been compiled, and will provide similarly for neon support when
enabled.

--HG--
rename : media/libspeex_resampler/sse-detect-runtime.patch => media/libspeex_resampler/simd-detect-runtime.patch
rename : media/libspeex_resampler/src/resample_neon.h => media/libspeex_resampler/src/resample_neon.c
rename : media/libspeex_resampler/src/resample_sse.h => media/libspeex_resampler/src/resample_sse.c
rename : media/libspeex_resampler/src/sse_detect.cpp => media/libspeex_resampler/src/simd_detect.cpp
rename : media/libspeex_resampler/src/sse_detect.h => media/libspeex_resampler/src/simd_detect.h
extra : rebase_source : bdf1ef791129dedeadce7369354a5992729a99b7
2014-07-23 21:49:04 +12:00
Karl Tomlinson
5565b85921 b=1042508 include resample_neon.h from speexdsp 305e54ea r=padenot
--HG--
extra : rebase_source : effe9aa434298b0b49099b6809d506b92075ad1c
2014-07-21 17:08:00 +12:00
Karl Tomlinson
82e2b3354d b=1042504 use direct resampler for 48->44.1k r=padenot
Transplanted from patch by Gregory Maxwell <greg@xiph.org>
http://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=f426ab52

--HG--
extra : rebase_source : 457a874135b4fea8649d72299be96a79e7dcda64
2014-07-21 16:34:26 +12:00
Karl Tomlinson
6d4723f7d2 b=1042504 update speex resampler to speexdsp 305e54ea r=padenot
Upstream SATURATE32PSHR changes conflict with Gecko's SSE runtime
detection patch.  That patch is updated to reduce deviation from
upstream.

--HG--
extra : rebase_source : fdaf355f802b944fcbe286e076ca19dc6bc33f80
2014-07-23 16:58:45 +12:00
Karl Tomlinson
f15c5047f8 b=1042504 switch speex resampler to speexdsp bbe7e099 r=padenot
This is the speexdsp revision most similar to what is currently in Gecko.

We'll want to keep the HUGEMEM variant that we currently have from
opus-tools, but that will be restored in a subsequent patch.

--HG--
extra : rebase_source : 0d0d881dc1c997a42c9386136f0b93fd15aa0331
2014-07-23 16:56:25 +12:00
Karl Tomlinson
65871f39fc b=1042504 correct strip prefix for applying outside-speex patch r=padenot
--HG--
extra : rebase_source : 946eef24f2f585f992065430188bdbd2aff523de
2014-07-21 15:22:25 +12:00
Karl Tomlinson
b2353db8a8 b=1033140 make speex_resampler declarations consistent with OUTSIDE_SPEEX implementation r=padenot
Instead of defining OUTSIDE_SPEEX and RANDOM_PREFIX everywhere
speex_resampler.h is included, it is easier to patch the header.

Symbol names in gkmedias symbols.def are updated now that RANDOM_PREFIX is
taking effect, and unused symbols are no longer exported.

--HG--
extra : transplant_source : sx%C9%ED%EB%E7%D8P%09%18%87%D4Oj%85%D5%25%C8%A5%01
2014-07-02 20:22:45 +12:00
Karl Tomlinson
7cb01e7526 b=913854 add speex_resampler_set_skip_frac_num r=jmspeex
This allows a client to align output samples consistently for independent
resampling of contiguous input buffers.

--HG--
extra : rebase_source : 58caba11ac7f78418b173a98556276d3b4644603
2014-02-27 11:44:40 +13:00
Karl Tomlinson
889f94ff35 b=973374 complete speex_resampler_reset_mem r=jmspeex
sample_frac_num is the array most likely to be non-zero after resampling a
previous stream, but the other arrays can also be left at non-zero values
in other situations.

--HG--
extra : rebase_source : dfd3974f051ff0b1794a937d712dda185352f7d5
2014-02-18 09:52:20 +13:00
Paul Adenot
7ef8c7f9c6 Bug 903476 - Update libspeex to opus-tools version, as it is the current upstream. r=ehsan
--HG--
extra : rebase_source : 4dd23aa8f0e7f0919e1b8f37d9efce11e6b8d8cc
2013-08-12 14:40:49 +02:00
Paul Adenot
a4793c674a Bug 894941 - Patch the speex resampler to do runtime checks for SSE. r=ehsan,glandium 2013-07-26 18:46:32 +02:00
Paul Adenot
4642306714 Bug 894941 - Import SSE-optimized routines for the speex resampler. r=ehsan 2013-07-26 18:46:32 +02:00
Ralph Giles
69d98dedf2 [PATCH] Bug 829724 - Fix short buffer resampler returns. r=padenot,kinetik
From 763e746e97f0c234cea9ad1b674d406f55a2fb51 Mon Sep 17 00:00:00 2001
This applies a patch from the opus-tools fork of the speex
resampler, fixing an issue where the resampler could return
less that the requested number of samples.

https://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=5adadc5
---
 media/libspeex_resampler/README_MOZILLA   |  3 +-
 media/libspeex_resampler/src/resample.c   | 12 ++++---
 media/libspeex_resampler/truncation.patch | 54 +++++++++++++++++++++++++++++++
 media/libspeex_resampler/update.sh        |  4 +++
 4 files changed, 67 insertions(+), 6 deletions(-)
 create mode 100644 media/libspeex_resampler/truncation.patch

--HG--
extra : rebase_source : db081699c3f914824abeb3bbf6563d459a690eff
2013-01-11 14:58:22 -08:00
Ehsan Akhgari
1d13e17a19 Correct the type names in speex_config_types.h; no bug, irc-r=padenot
Turns out that the compiler believes you when you say unsigned once.
No need to repeat yourself.

--HG--
extra : rebase_source : 979560fd47f7591d9cec0533a29462d3a25e3528
2013-01-11 11:44:09 -05:00
Ehsan Akhgari
5135f80640 Bug 818327 - Make libspeex's resampler usable; r=padenot
DONTBUILD since this is NPOTB
2012-12-04 19:59:05 -05:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Paul ADENOT
5b4816ddd6 Bug 743720 - Import Speex's audio resampler in the tree. r=kinetik, khuey 2012-05-14 19:01:04 -04:00