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/internal.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/internal.h')
-rw-r--r-- | apps/codecs/libmusepack/internal.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/apps/codecs/libmusepack/internal.h b/apps/codecs/libmusepack/internal.h index 27656d5a54..19642a240e 100644 --- a/apps/codecs/libmusepack/internal.h +++ b/apps/codecs/libmusepack/internal.h | |||
@@ -32,16 +32,24 @@ | |||
32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
33 | */ | 33 | */ |
34 | 34 | ||
35 | /// \file musepack_internal.h | 35 | /// \file internal.h |
36 | /// Definitions and structures used only internally by the libmusepack. | 36 | /// Definitions and structures used only internally by the libmpcdec. |
37 | |||
38 | #ifndef _mpcdec_internal_h | ||
39 | #define _mpcdec_internal_h | ||
37 | 40 | ||
38 | #ifndef _musepack_internal_h | ||
39 | #define _musepack_internal_h | ||
40 | 41 | ||
41 | enum { | 42 | enum { |
42 | MPC_DECODER_SYNTH_DELAY = 481 | 43 | MPC_DECODER_SYNTH_DELAY = 481 |
43 | }; | 44 | }; |
44 | 45 | ||
46 | /// Big/little endian 32 bit byte swapping routine. | ||
47 | static __inline | ||
48 | mpc_uint32_t mpc_swap32(mpc_uint32_t val) { | ||
49 | return (((val & 0xff000000) >> 24) | ((val & 0x00ff0000) >> 8) | | ||
50 | ((val & 0x0000ff00) << 8) | ((val & 0x000000ff) << 24)); | ||
51 | } | ||
52 | |||
45 | /// Searches for a ID3v2-tag and reads the length (in bytes) of it. | 53 | /// Searches for a ID3v2-tag and reads the length (in bytes) of it. |
46 | /// \param reader supplying raw stream data | 54 | /// \param reader supplying raw stream data |
47 | /// \return size of tag, in bytes | 55 | /// \return size of tag, in bytes |
@@ -49,9 +57,9 @@ enum { | |||
49 | mpc_int32_t JumpID3v2(mpc_reader* fp); | 57 | mpc_int32_t JumpID3v2(mpc_reader* fp); |
50 | 58 | ||
51 | /// helper functions used by multiple files | 59 | /// helper functions used by multiple files |
52 | mpc_uint32_t random_int(mpc_decoder *d); // in synth_filter.c | 60 | mpc_uint32_t mpc_random_int(mpc_decoder *d); // in synth_filter.c |
53 | void mpc_decoder_initialisiere_quantisierungstabellen(mpc_decoder *d, double scale_factor); | 61 | void mpc_decoder_initialisiere_quantisierungstabellen(mpc_decoder *d, double scale_factor); |
54 | void mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData); | 62 | void mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData); |
55 | 63 | ||
56 | #endif // _musepack_internal_h | 64 | #endif // _mpcdec_internal_h |
57 | 65 | ||