forked from len0rd/rockbox
Add effective clockrate for realtime decoding to the displayed results of test_codec plugin. This result shows the effectiveness of a codec on the current target plaform.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17687 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cc11e9466a
commit
ea840e2036
1 changed files with 11 additions and 0 deletions
|
@ -613,6 +613,17 @@ static enum plugin_status test_track(const char* filename)
|
|||
|
||||
rb->snprintf(str,sizeof(str),"%d.%02d%% realtime",(int)speed/100,(int)speed%100);
|
||||
log_text(str,true);
|
||||
|
||||
#ifndef SIMULATOR
|
||||
/* show effective clockrate in MHz needed for realtime decoding */
|
||||
if (speed > 0)
|
||||
{
|
||||
speed = CPUFREQ_MAX / speed;
|
||||
rb->snprintf(str,sizeof(str),"%d.%02dMHz needed for realtime",
|
||||
(int)speed/100,(int)speed%100);
|
||||
log_text(str,true);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
res = PLUGIN_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue