summaryrefslogtreecommitdiff
path: root/src/libdts/tables.h
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-04-09 14:57:25 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-04-09 14:57:25 +0000
commitff3ff7253e5680592329b363b9f84cccd8231eff (patch)
tree47a2a24e09b447410a27cc5df75f9845d0b3c031 /src/libdts/tables.h
parentc3505ea78011062e183c550aab20fb6aeafda4b6 (diff)
downloadxine-lib-ff3ff7253e5680592329b363b9f84cccd8231eff.tar.gz
xine-lib-ff3ff7253e5680592329b363b9f84cccd8231eff.tar.bz2
including libdts as experimental DTS decoder
(xine wrapper code by James Stembridge) does not work on all DVDs, but better a sometimes failing decoder than no decoder at all; digital passthrough seems unaffected CVS patchset: 6361 CVS date: 2004/04/09 14:57:25
Diffstat (limited to 'src/libdts/tables.h')
-rw-r--r--src/libdts/tables.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/libdts/tables.h b/src/libdts/tables.h
new file mode 100644
index 000000000..73d109ea3
--- /dev/null
+++ b/src/libdts/tables.h
@@ -0,0 +1,47 @@
+/*
+ * tables.h
+ * Copyright (C) 2004 Gildas Bazin <gbazin@videolan.org>
+ *
+ * This file is part of dtsdec, a free DTS Coherent Acoustics stream decoder.
+ * See http://www.videolan.org/dtsdec.html for updates.
+ *
+ * dtsdec 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.
+ *
+ * dtsdec 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+static const int dts_sample_rates[] =
+{
+ 0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0,
+ 12000, 24000, 48000, 96000, 192000
+};
+
+static const int dts_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 dts_channels[] =
+{
+ 1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8
+};
+
+static const uint8_t dts_bits_per_sample[] =
+{
+ 16, 16, 20, 20, 0, 24, 24
+};