diff options
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 efe8288b36..7ee0eda589 100644 --- a/apps/codecs/libfaad/common.h +++ b/apps/codecs/libfaad/common.h | |||
@@ -32,8 +32,24 @@ | |||
32 | extern "C" { | 32 | extern "C" { |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #ifdef HAVE_CONFIG_H | 35 | #include "faad_config.h" |
36 | # include "../config.h" | 36 | #include "../codec.h" |
37 | #include "../lib/codeclib.h" | ||
38 | |||
39 | extern struct codec_api* ci; | ||
40 | |||
41 | #if defined(DEBUG) || defined(SIMULATOR) | ||
42 | #undef DEBUGF | ||
43 | #define DEBUGF ci->debugf | ||
44 | #else | ||
45 | #define DEBUGF(...) | ||
46 | #endif | ||
47 | |||
48 | #ifdef ROCKBOX_HAS_LOGF | ||
49 | #undef LOGF | ||
50 | #define LOGF ci->logf | ||
51 | #else | ||
52 | #define LOGF(...) | ||
37 | #endif | 53 | #endif |
38 | 54 | ||
39 | #define INLINE __inline | 55 | #define INLINE __inline |
@@ -55,7 +71,7 @@ extern "C" { | |||
55 | /* use double precision */ | 71 | /* use double precision */ |
56 | /* #define USE_DOUBLE_PRECISION */ | 72 | /* #define USE_DOUBLE_PRECISION */ |
57 | /* use fixed point reals */ | 73 | /* use fixed point reals */ |
58 | //#define FIXED_POINT | 74 | #define FIXED_POINT |
59 | //#define BIG_IQ_TABLE | 75 | //#define BIG_IQ_TABLE |
60 | 76 | ||
61 | /* Use if target platform has address generators with autoincrement */ | 77 | /* Use if target platform has address generators with autoincrement */ |
@@ -72,7 +88,7 @@ extern "C" { | |||
72 | /* Allow decoding of MAIN profile AAC */ | 88 | /* Allow decoding of MAIN profile AAC */ |
73 | #define MAIN_DEC | 89 | #define MAIN_DEC |
74 | /* Allow decoding of SSR profile AAC */ | 90 | /* Allow decoding of SSR profile AAC */ |
75 | //#define SSR_DEC | 91 | #define SSR_DEC |
76 | /* Allow decoding of LTP profile AAC */ | 92 | /* Allow decoding of LTP profile AAC */ |
77 | #define LTP_DEC | 93 | #define LTP_DEC |
78 | /* Allow decoding of LD profile AAC */ | 94 | /* Allow decoding of LD profile AAC */ |
@@ -183,10 +199,10 @@ typedef float float32_t; | |||
183 | # if !STDC_HEADERS && HAVE_MEMORY_H | 199 | # if !STDC_HEADERS && HAVE_MEMORY_H |
184 | # include <memory.h> | 200 | # include <memory.h> |
185 | # endif | 201 | # endif |
186 | # include <string.h> | 202 | //# include <string.h> |
187 | #endif | 203 | #endif |
188 | #if HAVE_STRINGS_H | 204 | #if HAVE_STRINGS_H |
189 | # include <strings.h> | 205 | //# include <strings.h> |
190 | #endif | 206 | #endif |
191 | #if HAVE_INTTYPES_H | 207 | #if HAVE_INTTYPES_H |
192 | # include <inttypes.h> | 208 | # include <inttypes.h> |
@@ -214,7 +230,7 @@ typedef float float32_t; | |||
214 | #endif | 230 | #endif |
215 | 231 | ||
216 | #if STDC_HEADERS | 232 | #if STDC_HEADERS |
217 | # include <string.h> | 233 | //# include <string.h> |
218 | #else | 234 | #else |
219 | # if !HAVE_STRCHR | 235 | # if !HAVE_STRCHR |
220 | # define strchr index | 236 | # define strchr index |