50 #ifndef AVCODEC_AC3DEC_H
51 #define AVCODEC_AC3DEC_H
65 #define AC3_OUTPUT_LFEON 8
67 #define SPX_MAX_BANDS 17
70 #define AC3_FRAME_BUFFER_SIZE 32768
72 typedef struct AC3DecodeContext {
90 int dialog_normalization[2];
91 int compression_exists[2];
92 int compression_gain[2];
94 int preferred_downmix;
96 int center_mix_level_ltrt;
97 int surround_mix_level;
98 int surround_mix_level_ltrt;
99 int lfe_mix_level_exists;
102 int eac3_frame_dependent_found;
103 int eac3_subsbtreamid_found;
104 int dolby_surround_mode;
105 int dolby_surround_ex_mode;
106 int dolby_headphone_mode;
109 int preferred_stereo_downmix;
110 float ltrt_center_mix_level;
111 float ltrt_surround_mix_level;
112 float loro_center_mix_level;
113 float loro_surround_mix_level;
118 int snr_offset_strategy;
119 int block_switch_syntax;
120 int dither_flag_syntax;
121 int bit_allocation_syntax;
122 int fast_gain_syntax;
131 int phase_flags_in_use;
146 int spx_src_start_freq;
147 int spx_dst_end_freq;
148 int spx_dst_start_freq;
151 uint8_t spx_band_struct[SPX_MAX_BANDS];
152 uint8_t spx_band_sizes[SPX_MAX_BANDS];
170 int prev_output_mode;
178 int heavy_compression;
188 int consistent_noise_generation;
192 int num_rematrixing_bands;
193 int rematrixing_flags[4];
Common code between the AC-3 encoder and decoder.
#define EAC3_MAX_CHANNELS
maximum number of channels in EAC3
#define AC3_MAX_CHANNELS
maximum number of channels, including coupling channel
#define AC3_CRITICAL_BANDS
#define AC3_MAX_CPL_BANDS
static void ff_eac3_decode_transform_coeffs_aht_ch(AC3DecodeContext *s, int ch)
static int ff_eac3_parse_header(AC3DecodeContext *s)
static void ff_eac3_apply_spectral_extension(AC3DecodeContext *s)
static SDL_Window * window
bitstream reader API header.
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding.
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
float ff_ac3_heavy_dynamic_range_tab[256]
static const uint16_t mask[17]
static const int fixed_coeffs[][3]
Describe the class of an AVClass context structure.
main external API structure.
Context structure for the Lagged Fibonacci PRNG.