summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2008-06-04 06:07:43 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2008-06-04 06:07:43 +0000
commitea840e203646db7f689a817a02b3b31c108d1b69 (patch)
treef9eb50f4dc6322e1f8c0703fe1de61aa695f408a /apps
parentcc11e9466a3aa2ffc67779f80b2059a326301660 (diff)
downloadrockbox-ea840e203646db7f689a817a02b3b31c108d1b69.tar.gz
rockbox-ea840e203646db7f689a817a02b3b31c108d1b69.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/test_codec.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index e948107cf8..2379ebb1b7 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -613,6 +613,17 @@ static enum plugin_status test_track(const char* filename)
613 613
614 rb->snprintf(str,sizeof(str),"%d.%02d%% realtime",(int)speed/100,(int)speed%100); 614 rb->snprintf(str,sizeof(str),"%d.%02d%% realtime",(int)speed/100,(int)speed%100);
615 log_text(str,true); 615 log_text(str,true);
616
617#ifndef SIMULATOR
618 /* show effective clockrate in MHz needed for realtime decoding */
619 if (speed > 0)
620 {
621 speed = CPUFREQ_MAX / speed;
622 rb->snprintf(str,sizeof(str),"%d.%02dMHz needed for realtime",
623 (int)speed/100,(int)speed%100);
624 log_text(str,true);
625 }
626#endif
616 } 627 }
617 628
618 res = PLUGIN_OK; 629 res = PLUGIN_OK;