aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3tab.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2007-03-09 13:57:42 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2007-03-09 13:57:42 +0000
commit4258a0a32aa2ec0c46d75b4218a111033ef8da3f (patch)
tree6f94326c9f0bd82494c26969c73b19e0fbf339e6 /libavcodec/ac3tab.h
parent96ae7f11e7c8a2e379f9c79451926e217dd65653 (diff)
downloadffmpeg-4258a0a32aa2ec0c46d75b4218a111033ef8da3f.tar.gz
Remove common code from AC-3 encoder and utilize ac3.c.
Originally committed as revision 8306 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3tab.h')
-rw-r--r--libavcodec/ac3tab.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/libavcodec/ac3tab.h b/libavcodec/ac3tab.h
index 9f90ae95c5..928f3c370c 100644
--- a/libavcodec/ac3tab.h
+++ b/libavcodec/ac3tab.h
@@ -25,10 +25,10 @@
*/
/* possible frequencies */
-static const uint16_t ac3_freqs[3] = { 48000, 44100, 32000 };
+const uint16_t ff_ac3_freqs[3] = { 48000, 44100, 32000 };
/* possible bitrates */
-static const uint16_t ac3_bitratetab[19] = {
+const uint16_t ff_ac3_bitratetab[19] = {
32, 40, 48, 56, 64, 80, 96, 112, 128,
160, 192, 224, 256, 320, 384, 448, 512, 576, 640
};
@@ -36,7 +36,7 @@ static const uint16_t ac3_bitratetab[19] = {
/* AC3 MDCT window */
/* MDCT window */
-static const int16_t ac3_window[256] = {
+const int16_t ff_ac3_window[256] = {
4, 7, 12, 16, 21, 28, 34, 42,
51, 61, 72, 84, 97, 111, 127, 145,
164, 184, 207, 231, 257, 285, 315, 347,
@@ -165,27 +165,27 @@ static const uint8_t baptab[64]= {
15, 15, 15, 15,
};
-static const uint8_t sdecaytab[4]={
+const uint8_t ff_sdecaytab[4]={
0x0f, 0x11, 0x13, 0x15,
};
-static const uint8_t fdecaytab[4]={
+const uint8_t ff_fdecaytab[4]={
0x3f, 0x53, 0x67, 0x7b,
};
-static const uint16_t sgaintab[4]= {
+const uint16_t ff_sgaintab[4]= {
0x540, 0x4d8, 0x478, 0x410,
};
-static const uint16_t dbkneetab[4]= {
+const uint16_t ff_dbkneetab[4]= {
0x000, 0x700, 0x900, 0xb00,
};
-static const int16_t floortab[8]= {
+const int16_t ff_floortab[8]= {
0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800,
};
-static const uint16_t fgaintab[8]= {
+const uint16_t ff_fgaintab[8]= {
0x080, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380, 0x400,
};
@@ -196,10 +196,3 @@ static const uint8_t bndsz[50]={
};
static uint8_t bndtab[51];
-
-/* fft & mdct sin cos tables */
-static int16_t costab[64];
-static int16_t sintab[64];
-static int16_t fft_rev[512];
-static int16_t xcos1[128];
-static int16_t xsin1[128];