summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/README.rockbox
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libcook/README.rockbox')
-rw-r--r--apps/codecs/libcook/README.rockbox40
1 files changed, 40 insertions, 0 deletions
diff --git a/apps/codecs/libcook/README.rockbox b/apps/codecs/libcook/README.rockbox
new file mode 100644
index 0000000000..9447b96be5
--- /dev/null
+++ b/apps/codecs/libcook/README.rockbox
@@ -0,0 +1,40 @@
1Library: libcook
2Imported by : Mohamed Tarek
3
4These files comprise a rm parser and a cook decoder based on the decoder
5from ffmpeg.
6
7LICENSING INFORMATION
8
9ffmpeg is licensed under the Lesser GNU General Public License and the
10file cook.c is Copyright 2003 Sascha Sommer and 2005 Benjamin Larsson.
11
12IMPORT DETAILS
13
14The decoder is based on ffmpeg-svn r18079.
15
16The file libavcodec/cook.c was modified to remove all ffmpeg-specific
17code and to use the current rm parser.
18
19In initializing random_state in COOKContext, ffmpeg used a random_seed()
20function that was weird in the way it gets the random number. So it was
21decided to not use this function at all,and the value was initialized to 1,
22because according to Benjamin Larsson random_seed() could just be
23replaced by any value.
24
25The current files contain lots of code which is either not needed by
26the decoder or totally disabled (#if 0 .. #endif) to enable
27compiling. This was during the isolation of the decoder from ffmpeg,
28the intention was to take as few files as possible to be able to
29compile cook.c and the related files outside ffmpeg.
30
31The decoder still uses floating point and relies on dynamic allocations
32in some parts of it. It's still not ready to be ported to rockbox.
33
34TESTING
35
36The test program should compile in any Unix-like environment using the
37command "make -f Makefile.test".
38
39Running "./cooktest file.rm" will decode the audio data to a WAV file
40called "output.wav" in the current directory.