QA /technical/2008/04/mp3-decoder-libraries-compared/

This commit is contained in:
Wesley Moore 2010-03-15 17:14:53 +11:00
parent 8d8109addb
commit 68b71d6a95
2 changed files with 161 additions and 145 deletions

View file

@ -9,6 +9,7 @@ I did some searching and came up with two other libraries that seemed well suite
I built the two additional libraries with the default configuration options, except for libmad, which I added the <code>--enable-speed</code> option. With the help of example code I made programs out of each that were comparable to the first version for Core Audio. I.e. MP3 file in, 16-bit Linear PCM audio samples out.
To provide a benchmark I wrote a script that would run each of the three programs against a source MP3 file. Each program reported the elapsed time (via <a href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/time.3.html">time(3)</a>) and the processor time (via <a href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/clock.3.html">clock(3)</a>) when it finished decoding. The programs were run one after another on the source file 10 times. Their PCM output was written to a new file for each invocation.
<!--more-->
<h3>Environment</h3>

View file

@ -331,3 +331,18 @@ ul.inline li:first-child {
width: 10em;
margin: 0;
}
/* Styles for MP3 Decoder post */
table.left_headers, table.top_headers {
border: 1px solid #D8D8D8;
border-collapse: collapse;
margin: 1em 0;
}
table.left_headers td, table.left_headers th,
table.top_headers td, table.top_headers th {
border: 1px solid #D8D8D8;
padding: 0.3em 0.7em 0.3em 0.7em;
}
table.left_headers th {
text-align: right;
}