summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libffmpegFLAC/README.rockbox
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/libffmpegFLAC/README.rockbox')
-rw-r--r--lib/rbcodec/codecs/libffmpegFLAC/README.rockbox46
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libffmpegFLAC/README.rockbox b/lib/rbcodec/codecs/libffmpegFLAC/README.rockbox
new file mode 100644
index 0000000000..850cdfcb7d
--- /dev/null
+++ b/lib/rbcodec/codecs/libffmpegFLAC/README.rockbox
@@ -0,0 +1,46 @@
1Library: libffmpegFLAC
2Imported: 2005-10-26 by Dave Chapman
3
4This directory contains a FLAC decoder based on the flac.c (and a small
5number of other files) from the ffmpeg project.
6
7LICENSING INFORMATION
8
9ffmpeg is licensed under the Lesser GNU General Public License and the
10file flac.c is Copyright 2003 Alex Beregszaszi.
11
12IMPORT DETAILS
13
14The decoder is based on ffmpeg-cvs from 26 October 2005.
15
16The file libavcodec/flac.c was renamed to decoder.c and all ffmpeg
17related code was removed. It was also heavily modified to remove
18debugging information and unused experiemental code.
19
20It was also changed to provide output as 32-bit integers (with the
21data left-shifted to 28 bit accuracy). The original flac.c provided
2216-bit output.
23
24In order to minimise memory usage, a small number of hard-coded limits
25are present in decoder.h - mainly limiting the supported blocksize
26(number of samples in a frame) to 4608. This is the default value
27used by the reference FLAC encoder at all standard compression
28settings.
29
30
31TESTING
32
33A test program is contained in the file main.c and this should compile
34in any Unix-like environment using the command "make -f Makefile.test".
35
36Running "test file.flac" will decode the audio data to a WAV file
37called "test.wav" in the current directory. This has been tested with
3816-bit and 24-bit mono and stereo FLAC files.
39
40This can be used to test the accuracy of the decoder by comparing the
41md5sum of the WAV file produced by this decoder with a WAV file
42produced by the official libFLAC decoder.
43
44This test program could be extended to perform an internal md5sum
45calculation and comparing that against the md5sum stored in the FLAC
46file's header.