summaryrefslogtreecommitdiff
path: root/libavcodec/ac3tab.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2007-03-11 02:13:05 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2007-03-11 02:13:05 +0000
commit050aa8b9bca6a2c29e1c4c914e05aca49007f1d7 (patch)
treed58da1f718db33a9d243668d4940a60a5d455388 /libavcodec/ac3tab.h
parent755c18ae5d19f940dfd05d8278637635fd8eece5 (diff)
remove redundancy in AC-3 parser by using common tables from ac3tab.h
Originally committed as revision 8318 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3tab.h')
-rw-r--r--libavcodec/ac3tab.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/ac3tab.h b/libavcodec/ac3tab.h
index 928f3c370c..e72984e170 100644
--- a/libavcodec/ac3tab.h
+++ b/libavcodec/ac3tab.h
@@ -24,6 +24,20 @@
* tables taken directly from AC3 spec.
*/
+/**
+ * Possible frame sizes.
+ * Generated at runtime to match ATSC A/52 Table 5.18 Frame Size Code Table.
+ */
+uint16_t ff_ac3_frame_sizes[38][3];
+
+/**
+ * Maps audio coding mode (acmod) to number of full-bandwidth channels.
+ * from ATSC A/52 Table 5.8 Audio Coding Mode
+ */
+const uint8_t ff_ac3_channels[8] = {
+ 2, 1, 2, 3, 3, 4, 4, 5
+};
+
/* possible frequencies */
const uint16_t ff_ac3_freqs[3] = { 48000, 44100, 32000 };