summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/libwmapro/README.rockbox29
-rw-r--r--apps/codecs/libwmapro/libwmapro.make10
2 files changed, 6 insertions, 33 deletions
diff --git a/apps/codecs/libwmapro/README.rockbox b/apps/codecs/libwmapro/README.rockbox
index 9bd737a432..1e195b1b8b 100644
--- a/apps/codecs/libwmapro/README.rockbox
+++ b/apps/codecs/libwmapro/README.rockbox
@@ -14,27 +14,10 @@ IMPORT DETAILS
14 14
15Based on ffmpeg svn r22886 dated 15 April 2010. 15Based on ffmpeg svn r22886 dated 15 April 2010.
16 16
17The code is slowly being modified to convert it from floating point maths to 17The decoder now (17 July 2010) uses fixed point arithmetic everywhere. It still
18fixed point. 18doesn't work on 3 targets, namely clip, c200v2 and m200v4 due to their small
19codec buffer compared to wma pro's needs.
19 20
20As of 6 July 2010, the following steps are all working properly in fixed point: 21A comparison against ffmpeg floating point decoder gives :
21- Inverse quantization and rescaling 220.2~0.3% max relative error
22- IMDCT 230.005~0.01% average relative error
23- Windowing
24
25Results of comparing output wav files from the partially fixed point decoder to
26the output wav files of ffmpeg decoder are :
27- average relative error = 0.016%
28- maximum relative error = 0.3%
29
30COMPILING
31
32At the time of this writing (21 June 2010) the decoder isn't still included in
33the main build since it still only works in the simulator.
34
35A patch is included that would enable building the library and the codec for
36testing and development purposes.
37
38To apply the patch, you should cd to libwmapro directory and then execute the
39following command :
40patch -p 0 < wmapro_mainbuild.patch
diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make
index 0e8df7e9cb..9177eafb20 100644
--- a/apps/codecs/libwmapro/libwmapro.make
+++ b/apps/codecs/libwmapro/libwmapro.make
@@ -16,13 +16,3 @@ OTHER_SRC += $(WMAPROLIB_SRC)
16$(WMAPROLIB): $(WMAPROLIB_OBJ) 16$(WMAPROLIB): $(WMAPROLIB_OBJ)
17 $(SILENT)$(shell rm -f $@) 17 $(SILENT)$(shell rm -f $@)
18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null 18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
19
20ifdef APP_TYPE
21# wmapro needs libm in the simulator
22$(CODECDIR)/wmapro.codec: $(CODECDIR)/wmapro.o
23 $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmapro.elf \
24 $(filter %.o, $^) \
25 $(filter %.a, $+) \
26 -lgcc -lm $(CODECLDFLAGS)
27 $(SILENT)cp $(CODECDIR)/wmapro.elf $@
28endif