From 7bf62e8da66ca8ff0acc2702f92ea4fe06eb94b1 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Sat, 10 Feb 2007 11:44:26 +0000 Subject: * Sync Speex codec with Speex SVN revision 12449 (roughly Speex 1.2beta1). * Redo the changes required to make Speex compile in Rockbox. Should be a bit easier to keep in sync with Speex SVN now. * Fix name of Speex library in codecs Makefile. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12254 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libspeex/misc.c | 124 +++++++++++--------------------------------- 1 file changed, 30 insertions(+), 94 deletions(-) (limited to 'apps/codecs/libspeex/misc.c') diff --git a/apps/codecs/libspeex/misc.c b/apps/codecs/libspeex/misc.c index 4d2b485..97b35b3 100644 --- a/apps/codecs/libspeex/misc.c +++ b/apps/codecs/libspeex/misc.c @@ -34,15 +34,11 @@ #include "config.h" #endif -#include "../codecs.h" - #include #include #include #include "misc.h" - - #ifdef USER_MISC #include "user_misc.h" #endif @@ -51,16 +47,14 @@ #include "misc_bfin.h" #endif -//static struct codec_api *rb;//defined in decoder api speex.c - #ifndef RELEASE void print_vec(float *vec, int len, char *name) { -/* int i; + int i; printf ("%s ", name); for (i=0;i>24; ret += (i>>8)&0x0000ff00; ret += (i<<8)&0x00ff0000; @@ -84,7 +78,7 @@ spx_uint32_t be_int(spx_uint32_t i) spx_uint32_t le_int(spx_uint32_t i) { spx_uint32_t ret=i; -#ifdef ROCKBOX_BIG_ENDIAN +#ifdef WORDS_BIGENDIAN ret = i>>24; ret += (i>>8)&0x0000ff00; ret += (i<<8)&0x00ff0000; @@ -93,86 +87,38 @@ spx_uint32_t le_int(spx_uint32_t i) return ret; } -#if BYTES_PER_CHAR == 2 -void speex_memcpy_bytes(char *dst, char *src, int nbytes) -{ - int i; - int nchars = nbytes/BYTES_PER_CHAR; - for (i=0;i