diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-01-30 01:00:40 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-01-30 01:00:40 +0000 |
commit | 2b483958f961637e296432632a5b891eb061c22d (patch) | |
tree | 180fd3596df375fa56732050a7cc20ebdbc3cdb7 /apps/codecs/libmusepack/huffman.h | |
parent | 58231d50f2cb940a309814e31ae583b4b0dfed24 (diff) | |
download | rockbox-2b483958f961637e296432632a5b891eb061c22d.tar.gz rockbox-2b483958f961637e296432632a5b891eb061c22d.zip |
Synced libmpcdec to musepack.net SVN.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8488 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack/huffman.h')
-rw-r--r-- | apps/codecs/libmusepack/huffman.h | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/apps/codecs/libmusepack/huffman.h b/apps/codecs/libmusepack/huffman.h index a769fece4b..3edbeb7b6e 100644 --- a/apps/codecs/libmusepack/huffman.h +++ b/apps/codecs/libmusepack/huffman.h | |||
@@ -35,8 +35,8 @@ | |||
35 | /// \file huffman.h | 35 | /// \file huffman.h |
36 | /// Data structures and functions for huffman coding. | 36 | /// Data structures and functions for huffman coding. |
37 | 37 | ||
38 | #ifndef _musepack_huffman_h_ | 38 | #ifndef _mpcdec_huffman_h_ |
39 | #define _musepack_huffman_h_ | 39 | #define _mpcdec_huffman_h_ |
40 | 40 | ||
41 | #include "config_types.h" | 41 | #include "config_types.h" |
42 | #include "decoder.h" | 42 | #include "decoder.h" |
@@ -46,30 +46,8 @@ struct mpc_decoder_t; // forward declare to break circular dependencies | |||
46 | /// Huffman table entry. | 46 | /// Huffman table entry. |
47 | typedef struct huffman_type_t { | 47 | typedef struct huffman_type_t { |
48 | mpc_uint32_t Code; | 48 | mpc_uint32_t Code; |
49 | mpc_uint32_t Length; | 49 | mpc_uint16_t Length; |
50 | mpc_int32_t Value; | 50 | mpc_int16_t Value; |
51 | } HuffmanTyp; | 51 | } HuffmanTyp; |
52 | 52 | ||
53 | //! \brief Sorts huffman-tables by codeword. | 53 | #endif // _mpcdec_huffman_h_ |
54 | //! | ||
55 | //! offset resulting value. | ||
56 | //! \param elements | ||
57 | //! \param Table table to sort | ||
58 | //! \param offset offset of resulting sort | ||
59 | void | ||
60 | mpc_decoder_resort_huff_tables( | ||
61 | const mpc_uint32_t elements, HuffmanTyp *Table, const mpc_int32_t offset); | ||
62 | |||
63 | /// Initializes sv6 huffman decoding structures. | ||
64 | void mpc_decoder_init_huffman_sv6(struct mpc_decoder_t *d); | ||
65 | |||
66 | /// Initializes sv6 huffman decoding tables. | ||
67 | void mpc_decoder_init_huffman_sv6_tables(struct mpc_decoder_t *d); | ||
68 | |||
69 | /// Initializes sv7 huffman decoding structures. | ||
70 | void mpc_decoder_init_huffman_sv7(struct mpc_decoder_t *d); | ||
71 | |||
72 | /// Initializes sv7 huffman decoding tables. | ||
73 | void mpc_decoder_init_huffman_sv7_tables(struct mpc_decoder_t *d); | ||
74 | |||
75 | #endif // _musepack_huffman_h_ | ||