summaryrefslogtreecommitdiff
path: root/apps/codecs/mpa.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2010-07-25 22:24:53 +0000
committerNils Wallménius <nils@rockbox.org>2010-07-25 22:24:53 +0000
commit6325ef978b2c26445721cae14028c3d429b63b3e (patch)
treed923bd73712cafde272573c26a6820c7c7aa3dab /apps/codecs/mpa.c
parentd92f8174a1f838684645267e87b3afebfc48143f (diff)
downloadrockbox-6325ef978b2c26445721cae14028c3d429b63b3e.tar.gz
rockbox-6325ef978b2c26445721cae14028c3d429b63b3e.zip
codecs: mark some local variables with 'static'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27566 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/mpa.c')
-rw-r--r--apps/codecs/mpa.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c
index 3140091434..c0e0f38c64 100644
--- a/apps/codecs/mpa.c
+++ b/apps/codecs/mpa.c
@@ -29,32 +29,32 @@ CODEC_HEADER
29#define MPA_SYNTH_ON_COP 29#define MPA_SYNTH_ON_COP
30#endif 30#endif
31 31
32struct mad_stream stream IBSS_ATTR; 32static struct mad_stream stream IBSS_ATTR;
33struct mad_frame frame IBSS_ATTR; 33static struct mad_frame frame IBSS_ATTR;
34struct mad_synth synth IBSS_ATTR; 34static struct mad_synth synth IBSS_ATTR;
35 35
36#ifdef MPA_SYNTH_ON_COP 36#ifdef MPA_SYNTH_ON_COP
37volatile short die IBSS_ATTR = 0; /*thread should die*/ 37static volatile short die IBSS_ATTR = 0; /*thread should die*/
38 38
39#if (CONFIG_CPU == PP5024) || (CONFIG_CPU == PP5022) 39#if (CONFIG_CPU == PP5024) || (CONFIG_CPU == PP5022)
40mad_fixed_t sbsample_prev[2][36][32] IBSS_ATTR; 40static mad_fixed_t sbsample_prev[2][36][32] IBSS_ATTR;
41#else 41#else
42mad_fixed_t sbsample_prev[2][36][32] SHAREDBSS_ATTR; 42static mad_fixed_t sbsample_prev[2][36][32] SHAREDBSS_ATTR;
43#endif 43#endif
44 44
45struct semaphore synth_done_sem IBSS_ATTR; 45static struct semaphore synth_done_sem IBSS_ATTR;
46struct semaphore synth_pending_sem IBSS_ATTR; 46static struct semaphore synth_pending_sem IBSS_ATTR;
47#endif 47#endif
48 48
49#define INPUT_CHUNK_SIZE 8192 49#define INPUT_CHUNK_SIZE 8192
50 50
51mad_fixed_t mad_frame_overlap[2][32][18] IBSS_ATTR; 51static mad_fixed_t mad_frame_overlap[2][32][18] IBSS_ATTR;
52mad_fixed_t sbsample[2][36][32] IBSS_ATTR; 52static mad_fixed_t sbsample[2][36][32] IBSS_ATTR;
53 53
54unsigned char mad_main_data[MAD_BUFFER_MDLEN] IBSS_ATTR; 54static unsigned char mad_main_data[MAD_BUFFER_MDLEN] IBSS_ATTR;
55/* TODO: what latency does layer 1 have? */ 55/* TODO: what latency does layer 1 have? */
56int mpeg_latency[3] = { 0, 481, 529 }; 56static int mpeg_latency[3] = { 0, 481, 529 };
57int mpeg_framesize[3] = {384, 1152, 1152}; 57static int mpeg_framesize[3] = {384, 1152, 1152};
58 58
59static void init_mad(void) 59static void init_mad(void)
60{ 60{