diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-10-31 20:33:27 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-10-31 20:33:27 +0000 |
| commit | 798a4f3533cc63be2b313797bd4be5d53bda8fb9 (patch) | |
| tree | 0e2b8bdeff50b3d0a1cbe73c591f97ef73179b65 /apps/codecs/libfaad/common.h | |
| parent | 65de1cc6af31f547bd36d320f09cbcc6e6975421 (diff) | |
| download | rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.zip rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.tar.gz rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.tar.bz2 rockbox-798a4f3533cc63be2b313797bd4be5d53bda8fb9.tar.xz | |
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
Diffstat (limited to 'apps/codecs/libfaad/common.h')
| -rw-r--r-- | apps/codecs/libfaad/common.h | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/apps/codecs/libfaad/common.h b/apps/codecs/libfaad/common.h index efe8288..7ee0eda 100644 --- a/apps/codecs/libfaad/common.h +++ b/apps/codecs/libfaad/common.h @@ -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 |