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:
parent
9b4522bace
commit
fcb9ea4002
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue