summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2010-12-22 13:27:55 +0000
committerNils Wallménius <nils@rockbox.org>2010-12-22 13:27:55 +0000
commitfcb9ea4002ae4b588c325ea20ba07a84be9b636a (patch)
tree615d193bdcbbe2e6d2e6ff9e81901b1bd0f86ac1 /utils
parent9b4522bacec8cf1eb8ff69684cf959c0bb732c0d (diff)
downloadrockbox-fcb9ea4002ae4b588c325ea20ba07a84be9b636a.tar.gz
rockbox-fcb9ea4002ae4b588c325ea20ba07a84be9b636a.tar.bz2
rockbox-fcb9ea4002ae4b588c325ea20ba07a84be9b636a.zip
parse_testcodec.rb: add new 'pegase' filenames so they get a heading and fix printing of the MHz needed for realtime values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28876 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
-rwxr-xr-xutils/parse_testcodec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/parse_testcodec.rb b/utils/parse_testcodec.rb
index 9a2a6e9170..2f46c4ceca 100755
--- a/utils/parse_testcodec.rb
+++ b/utils/parse_testcodec.rb
@@ -51,7 +51,7 @@ private
self.codec = "Atrac3"
when /true.+/
self.codec = "True Audio"
- when /toolame.+/
+ when /toolame.+/, /pegase_l2.+/
self.codec = "MP2"
when /atrack1.+/
self.codec = "Atrac1"
@@ -61,6 +61,8 @@ private
self.codec = "WMA Lossless"
when /speex.+/
self.codec = "Speex"
+ when /pegase_l1.+/
+ self.codec = "MP1"
else
self.codec = "CODEC UNKNOWN (#{name})"
end
@@ -129,7 +131,7 @@ public
test = Regexp.new(/[.\d]+MHz needed for realtime/)
self.mhz_needed = nil
if (text_block[5] != nil && text_block[5].length > 0)
- self.mhz_needed = text_block[5].match(test)[1].to_f
+ self.mhz_needed = text_block[5].match(test)[0].to_f
elsif (cpu_freq)
# if not given, calculate it as per passed cpu frequency
# duration to microseconds