comparison ac3.h @ 4879:60603c9c89d1 libavcodec

move ac3 tables from a .h to a .c
author aurel
date Wed, 25 Apr 2007 22:12:51 +0000
parents 40f3a7f2b1fd
children f8e21b3014f7
comparison
equal deleted inserted replaced
4878:0e38c828bdae 4879:60603c9c89d1
21 21
22 /** 22 /**
23 * @file ac3.h 23 * @file ac3.h
24 * Common code between AC3 encoder and decoder. 24 * Common code between AC3 encoder and decoder.
25 */ 25 */
26
27 #include "ac3tab.h"
26 28
27 #define AC3_MAX_CODED_FRAME_SIZE 3840 /* in bytes */ 29 #define AC3_MAX_CODED_FRAME_SIZE 3840 /* in bytes */
28 #define AC3_MAX_CHANNELS 6 /* including LFE channel */ 30 #define AC3_MAX_CHANNELS 6 /* including LFE channel */
29 31
30 #define NB_BLOCKS 6 /* number of PCM blocks inside an AC3 frame */ 32 #define NB_BLOCKS 6 /* number of PCM blocks inside an AC3 frame */
75 uint8_t channels; 77 uint8_t channels;
76 uint16_t frame_size; 78 uint16_t frame_size;
77 /** @} */ 79 /** @} */
78 } AC3HeaderInfo; 80 } AC3HeaderInfo;
79 81
80 extern const uint16_t ff_ac3_frame_sizes[38][3];
81 extern const uint8_t ff_ac3_channels[8];
82 extern const uint16_t ff_ac3_freqs[3];
83 extern const uint16_t ff_ac3_bitratetab[19];
84 extern const int16_t ff_ac3_window[256];
85 extern const uint8_t ff_sdecaytab[4];
86 extern const uint8_t ff_fdecaytab[4];
87 extern const uint16_t ff_sgaintab[4];
88 extern const uint16_t ff_dbkneetab[4];
89 extern const int16_t ff_floortab[8];
90 extern const uint16_t ff_fgaintab[8];
91 82
92 void ac3_common_init(void); 83 void ac3_common_init(void);
93 84
94 /** 85 /**
95 * Calculates the log power-spectral density of the input signal. 86 * Calculates the log power-spectral density of the input signal.