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
This commit is contained in:
Nils Wallménius 2010-12-22 13:27:55 +00:00
parent 9b4522bace
commit fcb9ea4002

View file

@ -51,7 +51,7 @@ private
self.codec = "Atrac3" self.codec = "Atrac3"
when /true.+/ when /true.+/
self.codec = "True Audio" self.codec = "True Audio"
when /toolame.+/ when /toolame.+/, /pegase_l2.+/
self.codec = "MP2" self.codec = "MP2"
when /atrack1.+/ when /atrack1.+/
self.codec = "Atrac1" self.codec = "Atrac1"
@ -61,6 +61,8 @@ private
self.codec = "WMA Lossless" self.codec = "WMA Lossless"
when /speex.+/ when /speex.+/
self.codec = "Speex" self.codec = "Speex"
when /pegase_l1.+/
self.codec = "MP1"
else else
self.codec = "CODEC UNKNOWN (#{name})" self.codec = "CODEC UNKNOWN (#{name})"
end end
@ -129,7 +131,7 @@ public
test = Regexp.new(/[.\d]+MHz needed for realtime/) test = Regexp.new(/[.\d]+MHz needed for realtime/)
self.mhz_needed = nil self.mhz_needed = nil
if (text_block[5] != nil && text_block[5].length > 0) 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) elsif (cpu_freq)
# if not given, calculate it as per passed cpu frequency # if not given, calculate it as per passed cpu frequency
# duration to microseconds # duration to microseconds