comparison ac3dec.h @ 7025:acf98a472f74 libavcodec

cosmetics: add and align references to spec variable names
author jbr
date Sat, 07 Jun 2008 22:30:39 +0000
parents 7781b4d9cca2
children 4bd2ccb0619e
comparison
equal deleted inserted replaced
7024:7781b4d9cca2 7025:acf98a472f74
48 GetBitContext gbc; ///< bitstream reader 48 GetBitContext gbc; ///< bitstream reader
49 uint8_t *input_buffer; ///< temp buffer to prevent overread 49 uint8_t *input_buffer; ///< temp buffer to prevent overread
50 50
51 ///@defgroup bsi bit stream information 51 ///@defgroup bsi bit stream information
52 ///@{ 52 ///@{
53 int frame_type; ///< frame type (strmtyp) 53 int frame_type; ///< frame type (strmtyp)
54 int substreamid; ///< substream identification 54 int substreamid; ///< substream identification
55 int frame_size; ///< current frame size, in bytes 55 int frame_size; ///< current frame size, in bytes
56 int bit_rate; ///< stream bit rate, in bits-per-second 56 int bit_rate; ///< stream bit rate, in bits-per-second
57 int sample_rate; ///< sample frequency, in Hz 57 int sample_rate; ///< sample frequency, in Hz
58 int num_blocks; ///< number of audio blocks 58 int num_blocks; ///< number of audio blocks
59 int channel_mode; ///< channel mode (acmod) 59 int channel_mode; ///< channel mode (acmod)
60 int lfe_on; ///< lfe channel in use 60 int lfe_on; ///< lfe channel in use
61 int center_mix_level; ///< Center mix level index 61 int center_mix_level; ///< Center mix level index
62 int surround_mix_level; ///< Surround mix level index 62 int surround_mix_level; ///< Surround mix level index
63 ///@} 63 ///@}
64 64
65 ///@defgroup cpl standard coupling 65 ///@defgroup cpl standard coupling
66 int cpl_in_use; ///< coupling in use 66 int cpl_in_use; ///< coupling in use (cplinu)
67 int channel_in_cpl[AC3_MAX_CHANNELS]; ///< channel in coupling 67 int channel_in_cpl[AC3_MAX_CHANNELS]; ///< channel in coupling (chincpl)
68 int phase_flags_in_use; ///< phase flags in use 68 int phase_flags_in_use; ///< phase flags in use (phsflginu)
69 int phase_flags[18]; ///< phase flags 69 int phase_flags[18]; ///< phase flags (phsflg)
70 int num_cpl_subbands; ///< number of coupling sub bands 70 int num_cpl_subbands; ///< number of coupling sub bands (ncplsubnd)
71 int num_cpl_bands; ///< number of coupling bands 71 int num_cpl_bands; ///< number of coupling bands (ncplbnd)
72 int cpl_band_struct[18]; ///< coupling band structure 72 int cpl_band_struct[18]; ///< coupling band structure (cplbndstrc)
73 int cpl_coords[AC3_MAX_CHANNELS][18]; ///< coupling coordinates 73 int cpl_coords[AC3_MAX_CHANNELS][18]; ///< coupling coordinates (cplco)
74 ///@} 74 ///@}
75 75
76 ///@defgroup channel channel 76 ///@defgroup channel channel
77 int fbw_channels; ///< number of full-bandwidth channels 77 int fbw_channels; ///< number of full-bandwidth channels
78 int channels; ///< number of total channels 78 int channels; ///< number of total channels
87 ///@defgroup dynrng dynamic range 87 ///@defgroup dynrng dynamic range
88 float dynamic_range[2]; ///< dynamic range 88 float dynamic_range[2]; ///< dynamic range
89 ///@} 89 ///@}
90 90
91 ///@defgroup bandwidth bandwidth 91 ///@defgroup bandwidth bandwidth
92 int start_freq[AC3_MAX_CHANNELS]; ///< start frequency bin 92 int start_freq[AC3_MAX_CHANNELS]; ///< start frequency bin (strtmant)
93 int end_freq[AC3_MAX_CHANNELS]; ///< end frequency bin 93 int end_freq[AC3_MAX_CHANNELS]; ///< end frequency bin (endmant)
94 ///@} 94 ///@}
95 95
96 ///@defgroup rematrixing rematrixing 96 ///@defgroup rematrixing rematrixing
97 int num_rematrixing_bands; ///< number of rematrixing bands 97 int num_rematrixing_bands; ///< number of rematrixing bands (nrematbnd)
98 int rematrixing_flags[4]; ///< rematrixing flags 98 int rematrixing_flags[4]; ///< rematrixing flags (rematflg)
99 ///@} 99 ///@}
100 100
101 ///@defgroup exponents exponents 101 ///@defgroup exponents exponents
102 int num_exp_groups[AC3_MAX_CHANNELS]; ///< Number of exponent groups 102 int num_exp_groups[AC3_MAX_CHANNELS]; ///< Number of exponent groups (nexpgrp)
103 int8_t dexps[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< decoded exponents 103 int8_t dexps[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< decoded exponents
104 int exp_strategy[AC3_MAX_CHANNELS]; ///< exponent strategies 104 int exp_strategy[AC3_MAX_CHANNELS]; ///< exponent strategies (expstr)
105 ///@} 105 ///@}
106 106
107 ///@defgroup bitalloc bit allocation 107 ///@defgroup bitalloc bit allocation
108 AC3BitAllocParameters bit_alloc_params; ///< bit allocation parameters 108 AC3BitAllocParameters bit_alloc_params; ///< bit allocation parameters
109 int snr_offset[AC3_MAX_CHANNELS]; ///< signal-to-noise ratio offsets 109 int snr_offset[AC3_MAX_CHANNELS]; ///< signal-to-noise ratio offsets (snroffst)
110 int fast_gain[AC3_MAX_CHANNELS]; ///< fast gain values (signal-to-mask ratio) 110 int fast_gain[AC3_MAX_CHANNELS]; ///< fast gain values/SMR's (fgain)
111 uint8_t bap[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< bit allocation pointers 111 uint8_t bap[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< bit allocation pointers
112 int16_t psd[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< scaled exponents 112 int16_t psd[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< scaled exponents
113 int16_t band_psd[AC3_MAX_CHANNELS][50]; ///< interpolated exponents 113 int16_t band_psd[AC3_MAX_CHANNELS][50]; ///< interpolated exponents
114 int16_t mask[AC3_MAX_CHANNELS][50]; ///< masking curve values 114 int16_t mask[AC3_MAX_CHANNELS][50]; ///< masking curve values
115 int dba_mode[AC3_MAX_CHANNELS]; ///< delta bit allocation mode 115 int dba_mode[AC3_MAX_CHANNELS]; ///< delta bit allocation mode
119 uint8_t dba_values[AC3_MAX_CHANNELS][8]; ///< delta values for each segment 119 uint8_t dba_values[AC3_MAX_CHANNELS][8]; ///< delta values for each segment
120 ///@} 120 ///@}
121 121
122 ///@defgroup dithering zero-mantissa dithering 122 ///@defgroup dithering zero-mantissa dithering
123 int dither_all; ///< true if all channels are dithered 123 int dither_all; ///< true if all channels are dithered
124 int dither_flag[AC3_MAX_CHANNELS]; ///< dither flags 124 int dither_flag[AC3_MAX_CHANNELS]; ///< dither flags (dithflg)
125 AVRandomState dith_state; ///< for dither generation 125 AVRandomState dith_state; ///< for dither generation
126 ///@} 126 ///@}
127 127
128 ///@defgroup imdct IMDCT 128 ///@defgroup imdct IMDCT
129 int block_switch[AC3_MAX_CHANNELS]; ///< block switch flags 129 int block_switch[AC3_MAX_CHANNELS]; ///< block switch flags (blksw)
130 MDCTContext imdct_512; ///< for 512 sample IMDCT 130 MDCTContext imdct_512; ///< for 512 sample IMDCT
131 MDCTContext imdct_256; ///< for 256 sample IMDCT 131 MDCTContext imdct_256; ///< for 256 sample IMDCT
132 ///@} 132 ///@}
133 133
134 ///@defgroup opt optimization 134 ///@defgroup opt optimization