media/libspeex_resampler/update.sh
author Karl Tomlinson <karlt+@karlt.net>
Wed, 23 Jul 2014 16:56:25 +1200
changeset 195798 f8cd15fa98249662c4541a1fdf588a3cace2b67a
parent 195797 8beaf971f95018983160b311a90e7717b4826325
child 195799 0ca7ce33b2b2e7de72da140bbd748ee157574cb2
permissions -rw-r--r--
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.

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Usage: ./update.sh <speexdsp_directory>
#
# Copies the needed files from a directory containing the original
# speexdsp sources.

set -e -x

cp $1/libspeexdsp/resample.c src
cp $1/libspeexdsp/resample_sse.h src
cp $1/libspeexdsp/arch.h src
cp $1/libspeexdsp/stack_alloc.h src
cp $1/libspeexdsp/fixed_generic.h src
cp $1/include/speex/speex_resampler.h src
cp $1/AUTHORS .
cp $1/COPYING .

# apply outstanding local patches
patch -p3 < outside-speex.patch
patch -p1 < sse-detect-runtime.patch
patch -p3 < set-skip-frac.patch