* Document the revision of Speex imported in to Rockbox along with how the import was done.

* Add the Speex license document.
* Whitespace fixes.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12266 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dan Everton 2007-02-11 00:48:50 +00:00
parent 3cf50c0007
commit 37fa620807
3 changed files with 77 additions and 7 deletions

View file

@ -0,0 +1,34 @@
Copyright 2002-2006
Xiph.org Foundation
Jean-Marc Valin
David Rowe
EpicGames
Analog Devices
Commonwealth Scientific and Industrial Research Organisation (CSIRO)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of the Xiph.org Foundation nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -0,0 +1,28 @@
Library: libspeex-1.2beta1 (SVN version 12449)
Imported: 2007-02-10 by Dan Everton
This directory contains a local version of libspeex for decoding Ogg/Speex
audio streams.
LICENSING INFORMATION
Speex is available under the terms of the Xiph.Org variant of the BSD
license, which is both an open source and free software license. The
license is described in the COPYING file in this directory.
IMPORT DETAILS
The .[ch] files from speex/libspeex/ and speex/include/ were imported
into Rockbox. This includes the test files.
A simple config.h file was added to enable libspeex's fixed-point
integer-only mode and to specify the endianness of the target CPU. Also,
ARM specific optimisations were enabled.
Since some parts of Speex still rely on <math.h> functions, a simple
include was created to get these parts to compile. Stub functions can be
found in rockbox.c in this directory.

View file

@ -93,29 +93,37 @@ float floor(float x) {
//Placeholders (not fixed point, only used when encoding):
float pow(float a, float b) {
return 0;
DEBUGF("pow(%f, %f)\n", a, b);
return 0;
}
float log(float l) {
return 0;
DEBUGF("log(%f)\n", l);
return 0;
}
float fabs(float a) {
return 0;
DEBUGF("fabs(%f)\n", a);
return 0;
}
float sin(float a) {
return 0;
DEBUGF("sin(%f)\n", a);
return 0;
}
float cos(float a) {
return 0;
DEBUGF("cos(%f)\n", a);
return 0;
}
float sqrt(float a) {
return 0;
DEBUGF("sqrt(%f)\n", a);
return 0;
}
float exp(float a) {
return 0;
DEBUGF("exp(%f)\n", a);
return 0;
}