diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-09 02:54:28 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-09 02:54:28 +0000 |
commit | 56ae80d6e465bfd131b933d12166d04be8c1333c (patch) | |
tree | 581305d96320ea81b88e37c24f3ca9e10e60aa75 /DOCS/tech/realcodecs/audio-codecs.txt | |
parent | c047d8b1dfad8f3d991ea9d946324568d19692a6 (diff) | |
download | mpv-56ae80d6e465bfd131b933d12166d04be8c1333c.tar.bz2 mpv-56ae80d6e465bfd131b933d12166d04be8c1333c.tar.xz |
initial version from Florian Schneider <flo-mplayer-dev@gmx.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6350 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/tech/realcodecs/audio-codecs.txt')
-rw-r--r-- | DOCS/tech/realcodecs/audio-codecs.txt | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/DOCS/tech/realcodecs/audio-codecs.txt b/DOCS/tech/realcodecs/audio-codecs.txt new file mode 100644 index 0000000000..61259deb2b --- /dev/null +++ b/DOCS/tech/realcodecs/audio-codecs.txt @@ -0,0 +1,58 @@ +all audio codecs (cook,atrk,14_4,28_8,dnet,sipr) have the same interface, +but i have only analyzed the cook codec + + +audio properties + +00 short text/description of the format (bitrate, when to use) +01 avg. bytes/sec output +02 ulong: ? + ulong: samples per second + ushort: bits/sample + ushort: number of channels +03 constant 2 +04 long description +05 constant 1 (always?) +06 ulong: block align (input frame for RADecode) +07 string: minimum player version +08 n/a +09 n/a +0A n/a +0B n/a +0C n/a +0D ? +0E ? +0F ? +10 ? +11 ? +12 ? +13 min. output buffer size? max. number of samples? +14 ? + + + + +functions: + +ulong result=RAOpenCodec2(ra_main_t *raMain); + +ulong result=RAInitDecoder(ra_main_t *raMain, p2); +p2=? + + +void *GetRAFlavorProperty(ra_main_t *raMain, ulong flavor, ulong property, + short *property_length_in_bytes); +returns property data for a specific data + +ulong RADecode(ra_main_t *raMain, char *input_buffer, + ulong input_buffer_size, char *output_buffer, + ulong *decoded_bytes, ulong p6=-1); + +RAFreeDecoder(ra_main_t *); + +RACloseCodec(ra_main_t *); + + +ulong RASetFlavor(ra_main_t *ra_main, ulong flavor); +a flavor is an entry in the list of available format variations like +bitrate, number of channels, decoding algorithm, and so on |