mp3_encoder: reduce plugin binsize
commit0ab1ce2a338ca10aa61015e2fcb182a6ac90ac0e
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Tue, 18 May 2010 10:12:23 +0000 (18 10:12 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Tue, 18 May 2010 10:12:23 +0000 (18 10:12 +0000)
tree55b2db00daacbc575174ca8e0243dcfd89e52185
parentb844f9c992474f95df77de7351e2fc661c501fbf
mp3_encoder: reduce plugin binsize

- reduce the size of some structs -> gain ~1kB
- since we run the code only once, we don't need to declare large
structure in bss and copy const data in them, declare them const
directly -> gain ~17kB
- steal audio buffer for encoded data buffer -> gain 64kB
this will stop playback when encoding, but it was stopped already on
targets using IRAM
- some const policy
Tested on Clipv1 & sim, 83012 bytes smaller on clipv1

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26134 a1c6a512-1295-4272-9138-f99709370657
apps/plugins/mp3_encoder.c