summaryrefslogtreecommitdiff
path: root/apps/codecs/libalac
diff options
context:
space:
mode:
authorTomasz Malesinski <tomal@rockbox.org>2006-11-09 21:59:27 +0000
committerTomasz Malesinski <tomal@rockbox.org>2006-11-09 21:59:27 +0000
commit5c54ba49d5c05e394a31f3827f7c4a75e28d9999 (patch)
tree096c978d3e4d259cc6cf08ee5ccdd4414d06c013 /apps/codecs/libalac
parent2e383a430de025378bf17942a1cf5ea86860f700 (diff)
downloadrockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.zip
rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.tar.gz
rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.tar.bz2
rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.tar.xz
Added macros controlling what goes to IRAM on different targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libalac')
-rw-r--r--apps/codecs/libalac/alac.c6
-rw-r--r--apps/codecs/libalac/decomp.h11
2 files changed, 11 insertions, 6 deletions
diff --git a/apps/codecs/libalac/alac.c b/apps/codecs/libalac/alac.c
index 5487c68..f8e4df8 100644
--- a/apps/codecs/libalac/alac.c
+++ b/apps/codecs/libalac/alac.c
@@ -226,7 +226,7 @@ void basterdised_rice_decompress(alac_file *alac,
int rice_kmodifier, /* arg424->d */
int rice_historymult, /* arg424->c */
int rice_kmodifier_mask /* arg424->e */
- ) ICODE_ATTR;
+ ) ICODE_ATTR_ALAC;
void basterdised_rice_decompress(alac_file *alac,
int32_t *output_buffer,
int output_size,
@@ -373,7 +373,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
int readsamplesize,
int16_t *predictor_coef_table,
int predictor_coef_num,
- int predictor_quantitization) ICODE_ATTR;
+ int predictor_quantitization) ICODE_ATTR_ALAC;
static void predictor_decompress_fir_adapt(int32_t *error_buffer,
int32_t *buffer_out,
int output_size,
@@ -645,7 +645,7 @@ void deinterlace_16(int32_t* buffer0,
int32_t* buffer1,
int numsamples,
uint8_t interlacing_shift,
- uint8_t interlacing_leftweight) ICODE_ATTR;
+ uint8_t interlacing_leftweight) ICODE_ATTR_ALAC;
void deinterlace_16(int32_t* buffer0,
int32_t* buffer1,
int numsamples,
diff --git a/apps/codecs/libalac/decomp.h b/apps/codecs/libalac/decomp.h
index 1628110..e4a19a7 100644
--- a/apps/codecs/libalac/decomp.h
+++ b/apps/codecs/libalac/decomp.h
@@ -1,6 +1,10 @@
#ifndef __ALAC__DECOMP_H
#define __ALAC__DECOMP_H
+#ifndef ICODE_ATTR_ALAC
+#define ICODE_ATTR_ALAC ICODE_ATTR
+#endif
+
/* Always output samples shifted to 28 bits + sign*/
#define ALAC_OUTPUT_DEPTH 29
#define SCALE16 (ALAC_OUTPUT_DEPTH - 16)
@@ -31,12 +35,13 @@ typedef struct
/* end setinfo stuff */
} alac_file;
-void create_alac(int samplesize, int numchannels, alac_file* alac) ICODE_ATTR;
+void create_alac(int samplesize, int numchannels, alac_file* alac)
+ ICODE_ATTR_ALAC;
int alac_decode_frame(alac_file *alac,
unsigned char *inbuffer,
int32_t outputbuffer[ALAC_MAX_CHANNELS][ALAC_BLOCKSIZE],
- void (*yield)(void)) ICODE_ATTR;
-void alac_set_info(alac_file *alac, char *inputbuffer) ICODE_ATTR;
+ void (*yield)(void)) ICODE_ATTR_ALAC;
+void alac_set_info(alac_file *alac, char *inputbuffer) ICODE_ATTR_ALAC;
#endif /* __ALAC__DECOMP_H */