summaryrefslogtreecommitdiff
path: root/contrib/libdca/tables.h
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-18 17:52:13 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-18 17:52:13 +0200
commit1ae85c23560a870d34edaafd76b2cb64b9b95c93 (patch)
tree078c431dd8cc4b435ab3182196b4bd836d0edb0c /contrib/libdca/tables.h
parent1b589783e8f1bf896a4dc8fdcdfe854e37a57270 (diff)
downloadxine-lib-1ae85c23560a870d34edaafd76b2cb64b9b95c93.tar.gz
xine-lib-1ae85c23560a870d34edaafd76b2cb64b9b95c93.tar.bz2
Replace libdts 0.0.2 with libdca 0.0.5 and contextually move it in contrib/.
libdca 0.0.5 was released about a week ago, and this commit replaces the old code from libdts 0.0.2 (that was renamed libdca). There's basically no functional change even if the build system is simplified as configure takes care of switching between the two implementations on its own.
Diffstat (limited to 'contrib/libdca/tables.h')
-rw-r--r--contrib/libdca/tables.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/contrib/libdca/tables.h b/contrib/libdca/tables.h
new file mode 100644
index 000000000..ca336cf29
--- /dev/null
+++ b/contrib/libdca/tables.h
@@ -0,0 +1,48 @@
+/*
+ * tables.h
+ * Copyright (C) 2004 Gildas Bazin <gbazin@videolan.org>
+ *
+ * This file is part of libdca, a free DTS Coherent Acoustics stream decoder.
+ * See http://www.videolan.org/developers/libdca.html for updates.
+ *
+ * libdca is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * libdca is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+static const int dca_sample_rates[] =
+{
+ 0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0,
+ 12000, 24000, 48000, 96000, 192000
+};
+
+static const int dca_bit_rates[] =
+{
+ 32000, 56000, 64000, 96000, 112000, 128000,
+ 192000, 224000, 256000, 320000, 384000,
+ 448000, 512000, 576000, 640000, 768000,
+ 896000, 1024000, 1152000, 1280000, 1344000,
+ 1408000, 1411200, 1472000, 1536000, 1920000,
+ 2048000, 3072000, 3840000, 1/*open*/, 2/*variable*/, 3/*lossless*/
+};
+
+static const uint8_t dca_channels[] =
+{
+ 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8
+};
+
+static const uint8_t dca_bits_per_sample[] =
+{
+ 16, 16, 20, 20, 0, 24, 24
+};