summaryrefslogtreecommitdiff
path: root/apps/codecs/libwma/asf.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-07-03 09:25:36 +0000
committerDave Chapman <dave@dchapman.com>2007-07-03 09:25:36 +0000
commitc72824786a0e8c68921ebb9b72f02a2e80aaee17 (patch)
treeadf8dac26d074ee3620df4ab482ff108561ead01 /apps/codecs/libwma/asf.h
parent2ca895bae7a25ea8ef7f295b4e8ab01ff75a4914 (diff)
downloadrockbox-c72824786a0e8c68921ebb9b72f02a2e80aaee17.tar.gz
rockbox-c72824786a0e8c68921ebb9b72f02a2e80aaee17.zip
Initial, work-in-progress, version of a WMA codec using Michael Giacomelli's fixed-point and malloc-less WMA decoder (based on the ffmpeg WMA decoder from early 2006, and also building on the work started by Paul Jones). The codec itself and the ASF parsing code were written by me, inspired by the ASF parser in libasf. Current performance is around 400% realtime on gigabeat, 100% realtime on PP and 20% realtime on Coldfire.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13769 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwma/asf.h')
-rw-r--r--apps/codecs/libwma/asf.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/codecs/libwma/asf.h b/apps/codecs/libwma/asf.h
new file mode 100644
index 0000000000..8cae8fae1d
--- /dev/null
+++ b/apps/codecs/libwma/asf.h
@@ -0,0 +1,24 @@
1#ifndef _ASF_H
2#define _ASF_H
3
4#include <inttypes.h>
5
6/* ASF codec IDs */
7#define ASF_CODEC_ID_WMAV1 0x160
8#define ASF_CODEC_ID_WMAV2 0x161
9
10struct asf_waveformatex_s {
11 uint32_t packet_size;
12 int audiostream;
13 uint16_t codec_id;
14 uint16_t channels;
15 uint32_t rate;
16 uint32_t bitrate;
17 uint16_t blockalign;
18 uint16_t bitspersample;
19 uint16_t datalen;
20 uint8_t data[6];
21};
22typedef struct asf_waveformatex_s asf_waveformatex_t;
23
24#endif