diff options
| author | Dave Chapman <dave@dchapman.com> | 2007-05-07 22:30:23 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2007-05-07 22:30:23 +0000 |
| commit | f4a9dab4d161a8f59800656417baf38e6f163f9d (patch) | |
| tree | ab2b89c90480e1dbae5c83ece53a3ab7c116adf0 /apps/plugin.h | |
| parent | 173b611921db2d353d977dc617a8288345f5e6ed (diff) | |
| download | rockbox-f4a9dab4d161a8f59800656417baf38e6f163f9d.zip rockbox-f4a9dab4d161a8f59800656417baf38e6f163f9d.tar.gz rockbox-f4a9dab4d161a8f59800656417baf38e6f163f9d.tar.bz2 rockbox-f4a9dab4d161a8f59800656417baf38e6f163f9d.tar.xz | |
Use a separate thread in test_codec, with the same (IRAM) stack as the main codec thread. Add a function to the plugin API to steal the codec thread, which test_codec copies and then restores. Now libmad can be benchmarked.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13347 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index cb8324f..daecee7 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -611,6 +611,7 @@ struct plugin_api { bool (*get_metadata)(struct track_info* track, int fd, const char* trackname, bool v1first); const char *(*get_codec_filename)(int cod_spec); + void (*steal_codec_stack)(unsigned char** stack, size_t* size); #endif }; |