-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatistics.html.erb
76 lines (70 loc) · 2.85 KB
/
statistics.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<%#
This file is part of vcodec_bench.
vcodec_bench is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
vcodec_bench is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with vcodec_bench. If not, see <http://www.gnu.org/licenses/>.
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Video codec benchmark(data results)</title>
<link rel="stylesheet" href="master.css" type="text/css" media="screen" title="default" charset="utf-8"/>
<script src="mootools.js" type="text/javascript" charset="utf-8"></script>
<script src="moobargraph.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var gdata = [[
<%= @bitrates.map{|y| '[['[email protected]{|k| "%.6f" % @results[k][y][:diff][0] }.join(',')+"],'#{y}']"}.join(',') %>
],[
<%= @bitrates.map{|y| '[['[email protected]{|k| "%.6f" % (@results[k][y][:diff][1]*1000) }.join(',')+"],'#{y}']"}.join(',') %>
],[
<%= @bitrates.map{|y| '[['[email protected]{|k| "%.6f" % @results[k][y][:diff][2] }.join(',')+"],'#{y}']"}.join(',') %>
],[
<%= @bitrates.map{|y| '[['[email protected]{|k| "%.1f" % @results[k][y][:trans_time] }.join(',')+"],'#{y}']"}.join(',') %>
],[
<%= @bitrates.map{|y| '[['[email protected]{|k| @results[k][y][:filesize]/1024 }.join(',')+"],'#{y}']"}.join(',') %>
]];
window.addEvent('domready', function() {
var gcolors = ['#900','#090','#009'];
var gwidth = 650;
for(var c=0;c<5;c++) {
new mooBarGraph({
container: $('myGraph'+(c+1)),
data: gdata[c],
colors:gcolors,
width:gwidth
});
}
});
</script>
</head>
<body id="main">
<h2>
Quality
<small>
<a href="http://www.imagemagick.org/RMagick/doc/image1.html#difference">
Magick::Image.difference
</a> method
</small>
</h2>
<h3>mean error per pixel</h3>
<div id="myGraph1"></div>
<h3>normalized mean error(*10^3)</h3>
<div id="myGraph2"></div>
<h3>normalized maximum error</h3>
<div id="myGraph3"></div>
<hr/>
<h2>Encoding time (sg)</h2>
<div id="myGraph4"></div>
<h2>Filesize (k)</h2>
<div id="myGraph5"></div>
</body>
</html>