From f40bfc9267b13b54e6379dfe7539447662879d24 Mon Sep 17 00:00:00 2001 From: Sean Bartell Date: Sat, 25 Jun 2011 21:32:25 -0400 Subject: Add codecs to librbcodec. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97 Reviewed-on: http://gerrit.rockbox.org/137 Reviewed-by: Nils Wallménius Tested-by: Nils Wallménius --- lib/rbcodec/codecs/libcook/README.rockbox | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 lib/rbcodec/codecs/libcook/README.rockbox (limited to 'lib/rbcodec/codecs/libcook/README.rockbox') diff --git a/lib/rbcodec/codecs/libcook/README.rockbox b/lib/rbcodec/codecs/libcook/README.rockbox new file mode 100644 index 0000000000..ae72f2a2f2 --- /dev/null +++ b/lib/rbcodec/codecs/libcook/README.rockbox @@ -0,0 +1,47 @@ +Library: libcook +Imported by : Mohamed Tarek + +These files comprise a rm parser and a cook decoder based on the decoder +from ffmpeg. + +LICENSING INFORMATION + +ffmpeg is licensed under the Lesser GNU General Public License and the +file cook.c is Copyright 2003 Sascha Sommer and 2005 Benjamin Larsson. + +IMPORT DETAILS + +The decoder is based on ffmpeg-svn r18079. + +CONVERSION TO FIXED-POINT + +A patch from ffmpeg's mailing list was used to convert the decoder to +use fixed-point arithmetic. The patch was done by Ian Braithwaite, and +discussed here : + +http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/46024 + +The patch is a bit dated (2007) so the modifications to cook.c had to +be done manually. The patch was also applied to cookdata.h and was +used to create cookdata_fixpoint.h, cook_fixpoint.h and +cook_fixp_mdct.h. + +cook_fixp_mdct.h and parts from cookdata_fixpoint.h were dropped and +rockbox's mdct library is now used in both the test program and the +real codec. + +Note : Only parts of the patch were committed to ffmpeg's repository. + +TESTING + +The test program should compile in any Unix-like environment using the +command "make -f Makefile.test". + +For ARM targets add -DCPU_ARM to CFLAGS in Makefile.test to make use of +the asm ARM optimisations in rockbox's mdct library. + +For Big-endian targets, change -D"ROCKBOX_LITTLE_ENDIAN=1" +to -D"ROCKBOX_BIG_ENDIAN=1" in Makefile.test. + +Running "./cooktest file.rm" will decode the audio data to a WAV file +called "output.wav" in the current directory. -- cgit v1.2.3