50 #ifndef AVCODEC_AC3DEC_H 51 #define AVCODEC_AC3DEC_H 63 #define AC3_OUTPUT_LFEON 8 65 #define SPX_MAX_BANDS 17 68 #define AC3_FRAME_BUFFER_SIZE 32768 70 typedef struct AC3DecodeContext {
88 int dialog_normalization[2];
89 int compression_exists[2];
90 int compression_gain[2];
92 int preferred_downmix;
94 int center_mix_level_ltrt;
95 int surround_mix_level;
96 int surround_mix_level_ltrt;
97 int lfe_mix_level_exists;
100 int eac3_frame_dependent_found;
101 int eac3_subsbtreamid_found;
102 int dolby_surround_mode;
103 int dolby_surround_ex_mode;
104 int dolby_headphone_mode;
107 int preferred_stereo_downmix;
108 float ltrt_center_mix_level;
109 float ltrt_surround_mix_level;
110 float loro_center_mix_level;
111 float loro_surround_mix_level;
116 int snr_offset_strategy;
117 int block_switch_syntax;
118 int dither_flag_syntax;
119 int bit_allocation_syntax;
120 int fast_gain_syntax;
129 int phase_flags_in_use;
144 int spx_src_start_freq;
145 int spx_dst_end_freq;
146 int spx_dst_start_freq;
149 uint8_t spx_band_struct[SPX_MAX_BANDS];
150 uint8_t spx_band_sizes[SPX_MAX_BANDS];
168 int prev_output_mode;
176 int heavy_compression;
186 int consistent_noise_generation;
190 int num_rematrixing_bands;
191 int rematrixing_flags[4];
Context structure for the Lagged Fibonacci PRNG.
static int ff_eac3_parse_header(AC3DecodeContext *s)
static const int fixed_coeffs[][3]
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
bitstream reader API header.
static void ff_eac3_decode_transform_coeffs_aht_ch(AC3DecodeContext *s, int ch)
static const uint16_t mask[17]
#define AC3_MAX_CHANNELS
maximum number of channels, including coupling channel
static SDL_Window * window
main external API structure.
#define AC3_CRITICAL_BANDS
static void ff_eac3_apply_spectral_extension(AC3DecodeContext *s)
Describe the class of an AVClass context structure.
#define AC3_MAX_CPL_BANDS
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
#define EAC3_MAX_CHANNELS
maximum number of channels in EAC3
Common code between the AC-3 encoder and decoder.
float ff_ac3_heavy_dynamic_range_tab[256]