Backed out changeset 92c3567e5a0c (bug 995075).
Bug 1033140 - Make speex_resampler declarations consistent with OUTSIDE_SPEEX implementation. r=padenot, a=2.0+

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.
Bug 1042504 - Correct strip prefix for applying outside-speex patch. r=padenot, a=2.0+
Bug 1042504 - Switch speex resampler to speexdsp bbe7e099. r=padenot, a=2.0+

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.
Bug 1042504 - Update speex resampler to speexdsp 305e54ea. r=padenot, a=2.0+

Upstream SATURATE32PSHR changes conflict with Gecko's SSE runtime
detection patch.  That patch is updated to reduce deviation from
upstream.
Bug 1042504 - Use direct resampler for 48->44.1k. r=padenot, a=2.0+

Transplanted from patch by Gregory Maxwell <greg@xiph.org>
http://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=f426ab52
Bug 1042508 - Include resample_neon.h from speexdsp 305e54ea. r=padenot, a=2.0+
Bug 1042508 - Tie resampler sample type choice to MOZ_SAMPLE_TYPE_S16. r=padenot, a=2.0+

When built with FIXED_POINT speex_resampler_process_float() assumes the
samples are in the range ±0x7fff and so Gecko instead uses ConvertAudioSamples
and speex_resampler_process_int().  This decision is based on
MOZ_SAMPLE_TYPE_S16.
Bug 1042508 - Move resampler simd optimizations to separate translation units. r=padenot, a=2.0+

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
Bug 1042508 - Remove : of empty Clobber asm argument. r=padenot, a=2.0+

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
Bug 1042508 - Enable neon resampler optimizations. r=padenot, a=2.0+
Bug 995075 - Update speex resampler to speexdsp 769dc295. r=padenot, a=2.0+
Bug 1047442 - Reacquire _sendCritSect within webrtc Encoded() callback (upstream patch). r=pkerr, a=bajaj