Lines Matching defs:band
203 int band, best_idx, power_idx = 0;
211 for (band = 1; band < NELLY_BANDS; band++) {
212 power_candidate = cand[band] - power_idx;
214 idx_table[band] = best_idx;
219 static inline float distance(float x, float y, int band)
228 int i, j, band, best_idx;
243 for (band = 1; band < NELLY_BANDS; band++) {
247 power_candidate = cand[band];
249 idx_min = FFMAX(0, cand[band] - q);
250 idx_max = FFMIN(OPT_SIZE, cand[band - 1] + q);
251 for (i = FFMAX(0, cand[band - 1] - q); i < FFMIN(OPT_SIZE, cand[band - 1] + q); i++) {
252 if ( isinf(opt[band - 1][i]) )
259 tmp = opt[band - 1][i] + distance(idx, power_candidate, band);
260 if (opt[band][idx] > tmp) {
261 opt[band][idx] = tmp;
262 path[band][idx] = j;
274 band = NELLY_BANDS - 1;
276 if (best_val > opt[band][i]) {
277 best_val = opt[band][i];
281 for (band = NELLY_BANDS - 1; band >= 0; band--) {
282 idx_table[band] = path[band][best_idx];
283 if (band) {
284 best_idx -= ff_nelly_delta_table[path[band][best_idx]];
298 int i, j, band, block, best_idx, power_idx = 0;
309 for (band = 0; band < NELLY_BANDS; band++) {
311 for (j = 0; j < ff_nelly_band_sizes_table[band]; i++, j++) {
315 cand[band] =
316 log(FFMAX(1.0, coeff_sum / (ff_nelly_band_sizes_table[band] << 7))) * 1024.0 / M_LN2;
326 for (band = 0; band < NELLY_BANDS; band++) {
327 if (band) {
328 power_idx += ff_nelly_delta_table[idx_table[band]];
329 put_bits(&pb, 5, idx_table[band]);
335 for (j = 0; j < ff_nelly_band_sizes_table[band]; i++, j++) {