• Home
  • Raw
  • Download

Lines Matching refs:ch

86         int ch, sb;  in ff_sbc_calculate_bits()  local
88 for (ch = 0; ch < frame->channels; ch++) { in ff_sbc_calculate_bits()
92 bitneed[ch][sb] = frame->scale_factor[ch][sb]; in ff_sbc_calculate_bits()
93 if (bitneed[ch][sb] > max_bitneed) in ff_sbc_calculate_bits()
94 max_bitneed = bitneed[ch][sb]; in ff_sbc_calculate_bits()
98 if (frame->scale_factor[ch][sb] == 0) in ff_sbc_calculate_bits()
99 bitneed[ch][sb] = -5; in ff_sbc_calculate_bits()
102 loudness = frame->scale_factor[ch][sb] - sbc_offset4[sf][sb]; in ff_sbc_calculate_bits()
104 loudness = frame->scale_factor[ch][sb] - sbc_offset8[sf][sb]; in ff_sbc_calculate_bits()
106 bitneed[ch][sb] = loudness / 2; in ff_sbc_calculate_bits()
108 bitneed[ch][sb] = loudness; in ff_sbc_calculate_bits()
110 if (bitneed[ch][sb] > max_bitneed) in ff_sbc_calculate_bits()
111 max_bitneed = bitneed[ch][sb]; in ff_sbc_calculate_bits()
123 if ((bitneed[ch][sb] > bitslice + 1) && (bitneed[ch][sb] < bitslice + 16)) in ff_sbc_calculate_bits()
125 else if (bitneed[ch][sb] == bitslice + 1) in ff_sbc_calculate_bits()
136 if (bitneed[ch][sb] < bitslice + 2) in ff_sbc_calculate_bits()
137 bits[ch][sb] = 0; in ff_sbc_calculate_bits()
139 bits[ch][sb] = bitneed[ch][sb] - bitslice; in ff_sbc_calculate_bits()
140 if (bits[ch][sb] > 16) in ff_sbc_calculate_bits()
141 bits[ch][sb] = 16; in ff_sbc_calculate_bits()
147 if ((bits[ch][sb] >= 2) && (bits[ch][sb] < 16)) { in ff_sbc_calculate_bits()
148 bits[ch][sb]++; in ff_sbc_calculate_bits()
150 } else if ((bitneed[ch][sb] == bitslice + 1) && (frame->bitpool > bitcount + 1)) { in ff_sbc_calculate_bits()
151 bits[ch][sb] = 2; in ff_sbc_calculate_bits()
158 if (bits[ch][sb] < 16) { in ff_sbc_calculate_bits()
159 bits[ch][sb]++; in ff_sbc_calculate_bits()
168 int ch, sb; in ff_sbc_calculate_bits() local
172 for (ch = 0; ch < 2; ch++) { in ff_sbc_calculate_bits()
174 bitneed[ch][sb] = frame->scale_factor[ch][sb]; in ff_sbc_calculate_bits()
175 if (bitneed[ch][sb] > max_bitneed) in ff_sbc_calculate_bits()
176 max_bitneed = bitneed[ch][sb]; in ff_sbc_calculate_bits()
180 for (ch = 0; ch < 2; ch++) { in ff_sbc_calculate_bits()
182 if (frame->scale_factor[ch][sb] == 0) in ff_sbc_calculate_bits()
183 bitneed[ch][sb] = -5; in ff_sbc_calculate_bits()
186 loudness = frame->scale_factor[ch][sb] - sbc_offset4[sf][sb]; in ff_sbc_calculate_bits()
188 loudness = frame->scale_factor[ch][sb] - sbc_offset8[sf][sb]; in ff_sbc_calculate_bits()
190 bitneed[ch][sb] = loudness / 2; in ff_sbc_calculate_bits()
192 bitneed[ch][sb] = loudness; in ff_sbc_calculate_bits()
194 if (bitneed[ch][sb] > max_bitneed) in ff_sbc_calculate_bits()
195 max_bitneed = bitneed[ch][sb]; in ff_sbc_calculate_bits()
207 for (ch = 0; ch < 2; ch++) { in ff_sbc_calculate_bits()
209 if ((bitneed[ch][sb] > bitslice + 1) && (bitneed[ch][sb] < bitslice + 16)) in ff_sbc_calculate_bits()
211 else if (bitneed[ch][sb] == bitslice + 1) in ff_sbc_calculate_bits()
222 for (ch = 0; ch < 2; ch++) { in ff_sbc_calculate_bits()
224 if (bitneed[ch][sb] < bitslice + 2) { in ff_sbc_calculate_bits()
225 bits[ch][sb] = 0; in ff_sbc_calculate_bits()
227 bits[ch][sb] = bitneed[ch][sb] - bitslice; in ff_sbc_calculate_bits()
228 if (bits[ch][sb] > 16) in ff_sbc_calculate_bits()
229 bits[ch][sb] = 16; in ff_sbc_calculate_bits()
234 ch = 0; in ff_sbc_calculate_bits()
237 if ((bits[ch][sb] >= 2) && (bits[ch][sb] < 16)) { in ff_sbc_calculate_bits()
238 bits[ch][sb]++; in ff_sbc_calculate_bits()
240 } else if ((bitneed[ch][sb] == bitslice + 1) && (frame->bitpool > bitcount + 1)) { in ff_sbc_calculate_bits()
241 bits[ch][sb] = 2; in ff_sbc_calculate_bits()
244 if (ch == 1) { in ff_sbc_calculate_bits()
245 ch = 0; in ff_sbc_calculate_bits()
250 ch = 1; in ff_sbc_calculate_bits()
253 ch = 0; in ff_sbc_calculate_bits()
256 if (bits[ch][sb] < 16) { in ff_sbc_calculate_bits()
257 bits[ch][sb]++; in ff_sbc_calculate_bits()
260 if (ch == 1) { in ff_sbc_calculate_bits()
261 ch = 0; in ff_sbc_calculate_bits()
266 ch = 1; in ff_sbc_calculate_bits()