diff options
Diffstat (limited to 'apps/codecs/demac/libdemac/parser.h')
-rw-r--r-- | apps/codecs/demac/libdemac/parser.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/apps/codecs/demac/libdemac/parser.h b/apps/codecs/demac/libdemac/parser.h index 4ef0977e6b..53157f7681 100644 --- a/apps/codecs/demac/libdemac/parser.h +++ b/apps/codecs/demac/libdemac/parser.h | |||
@@ -26,20 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA | |||
26 | #define _APE_PARSER_H | 26 | #define _APE_PARSER_H |
27 | 27 | ||
28 | #include <inttypes.h> | 28 | #include <inttypes.h> |
29 | 29 | #include "demac_config.h" | |
30 | #ifdef ROCKBOX | ||
31 | /* Include the Rockbox Codec API when building for Rockbox */ | ||
32 | #define APE_OUTPUT_DEPTH 29 | ||
33 | #ifndef ROCKBOX_PLUGIN | ||
34 | #include "../lib/codeclib.h" | ||
35 | #include <codecs.h> | ||
36 | #endif | ||
37 | #else | ||
38 | #define APE_OUTPUT_DEPTH (ape_ctx->bps) | ||
39 | #define IBSS_ATTR | ||
40 | #define ICONST_ATTR | ||
41 | #define ICODE_ATTR | ||
42 | #endif | ||
43 | 30 | ||
44 | /* The earliest and latest file formats supported by this library */ | 31 | /* The earliest and latest file formats supported by this library */ |
45 | #define APE_MIN_VERSION 3970 | 32 | #define APE_MIN_VERSION 3970 |
@@ -66,7 +53,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA | |||
66 | #define APE_FRAMECODE_STEREO_SILENCE 3 | 53 | #define APE_FRAMECODE_STEREO_SILENCE 3 |
67 | #define APE_FRAMECODE_PSEUDO_STEREO 4 | 54 | #define APE_FRAMECODE_PSEUDO_STEREO 4 |
68 | 55 | ||
69 | #define HISTORY_SIZE 512 | ||
70 | #define PREDICTOR_ORDER 8 | 56 | #define PREDICTOR_ORDER 8 |
71 | /* Total size of all predictor histories - 50 * sizeof(int32_t) */ | 57 | /* Total size of all predictor histories - 50 * sizeof(int32_t) */ |
72 | #define PREDICTOR_SIZE 50 | 58 | #define PREDICTOR_SIZE 50 |
@@ -95,7 +81,7 @@ struct predictor_t | |||
95 | int32_t XcoeffsA[4]; | 81 | int32_t XcoeffsA[4]; |
96 | int32_t YcoeffsB[5]; | 82 | int32_t YcoeffsB[5]; |
97 | int32_t XcoeffsB[5]; | 83 | int32_t XcoeffsB[5]; |
98 | int32_t historybuffer[HISTORY_SIZE + PREDICTOR_SIZE]; | 84 | int32_t historybuffer[PREDICTOR_HISTORY_SIZE + PREDICTOR_SIZE]; |
99 | }; | 85 | }; |
100 | 86 | ||
101 | struct ape_ctx_t | 87 | struct ape_ctx_t |