summaryrefslogtreecommitdiff
path: root/src/libmusepack/musepack/requant.h
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2005-01-14 15:24:07 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2005-01-14 15:24:07 +0000
commit05f670cb8cb0e0594d85ee50e8d126557cf3f8fe (patch)
tree638bdc4737dab9c7c3724ab372459590a607e07b /src/libmusepack/musepack/requant.h
parentf03ebd99a8e85f09d1abcde8fcc4a6b3318d82ad (diff)
downloadxine-lib-05f670cb8cb0e0594d85ee50e8d126557cf3f8fe.tar.gz
xine-lib-05f670cb8cb0e0594d85ee50e8d126557cf3f8fe.tar.bz2
(Drum roll) Long awaited support for Musepack
CVS patchset: 7344 CVS date: 2005/01/14 15:24:07
Diffstat (limited to 'src/libmusepack/musepack/requant.h')
-rw-r--r--src/libmusepack/musepack/requant.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libmusepack/musepack/requant.h b/src/libmusepack/musepack/requant.h
new file mode 100644
index 000000000..dc9a5c32f
--- /dev/null
+++ b/src/libmusepack/musepack/requant.h
@@ -0,0 +1,17 @@
+/// \file requant.h
+/// Requantization function definitions.
+
+#ifndef _musepack_requant_h
+#define _musepack_requant_h_
+
+#include "musepack/musepack.h"
+
+/* C O N S T A N T S */
+extern const mpc_uint32_t Res_bit [18]; // bits per sample for chosen quantizer
+extern const MPC_SAMPLE_FORMAT __Cc [1 + 18]; // coefficients for requantization
+extern const mpc_int32_t __Dc [1 + 18]; // offset for requantization
+
+#define Cc (__Cc + 1)
+#define Dc (__Dc + 1)
+
+#endif // _musepack_requant_h_