forked from len0rd/rockbox
Don't include the .bss and .ibss sections in the binary image for codecs and plugins. Saves quite some disk space (and buffer space in case of codec changes during playback).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8308 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e8b1787296
commit
07c4254135
13 changed files with 70 additions and 24 deletions
|
|
@ -20,10 +20,12 @@
|
|||
#include "codeclib.h"
|
||||
#include <codecs/libffmpegFLAC/shndec.h>
|
||||
|
||||
#ifndef SIMULATOR
|
||||
#ifdef USE_IRAM
|
||||
extern char iramcopy[];
|
||||
extern char iramstart[];
|
||||
extern char iramend[];
|
||||
extern char iedata[];
|
||||
extern char iend[];
|
||||
#endif
|
||||
|
||||
struct codec_api* rb;
|
||||
|
|
@ -52,8 +54,9 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
rb = api;
|
||||
ci = (struct codec_api*)api;
|
||||
|
||||
#ifndef SIMULATOR
|
||||
#ifdef USE_IRAM
|
||||
ci->memcpy(iramstart, iramcopy, iramend-iramstart);
|
||||
ci->memset(iedata, 0, iend - iedata);
|
||||
#endif
|
||||
|
||||
ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue