1
0
Fork 0
forked from len0rd/rockbox

Changes to make libfaad compile in Rockbox. Also remove compiler warnings, use some IRAM (IRAM usage needs reviewing) and drastically reduce the stack usage

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7700 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-10-31 20:33:27 +00:00
parent 65de1cc6af
commit 798a4f3533
25 changed files with 334 additions and 63 deletions

View file

@ -32,8 +32,24 @@
extern "C" {
#endif
#ifdef HAVE_CONFIG_H
# include "../config.h"
#include "faad_config.h"
#include "../codec.h"
#include "../lib/codeclib.h"
extern struct codec_api* ci;
#if defined(DEBUG) || defined(SIMULATOR)
#undef DEBUGF
#define DEBUGF ci->debugf
#else
#define DEBUGF(...)
#endif
#ifdef ROCKBOX_HAS_LOGF
#undef LOGF
#define LOGF ci->logf
#else
#define LOGF(...)
#endif
#define INLINE __inline
@ -55,7 +71,7 @@ extern "C" {
/* use double precision */
/* #define USE_DOUBLE_PRECISION */
/* use fixed point reals */
//#define FIXED_POINT
#define FIXED_POINT
//#define BIG_IQ_TABLE
/* Use if target platform has address generators with autoincrement */
@ -72,7 +88,7 @@ extern "C" {
/* Allow decoding of MAIN profile AAC */
#define MAIN_DEC
/* Allow decoding of SSR profile AAC */
//#define SSR_DEC
#define SSR_DEC
/* Allow decoding of LTP profile AAC */
#define LTP_DEC
/* Allow decoding of LD profile AAC */
@ -183,10 +199,10 @@ typedef float float32_t;
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
//# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
//# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
@ -214,7 +230,7 @@ typedef float float32_t;
#endif
#if STDC_HEADERS
# include <string.h>
//# include <string.h>
#else
# if !HAVE_STRCHR
# define strchr index