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