Lines Matching defs:band
212 int band, best_idx, power_idx = 0;
220 for (band = 1; band < NELLY_BANDS; band++) {
221 power_candidate = cand[band] - power_idx;
223 idx_table[band] = best_idx;
228 static inline float distance(float x, float y, int band)
237 int i, j, band, best_idx;
252 for (band = 1; band < NELLY_BANDS; band++) {
256 power_candidate = cand[band];
258 idx_min = FFMAX(0, cand[band] - q);
259 idx_max = FFMIN(OPT_SIZE, cand[band - 1] + q);
260 for (i = FFMAX(0, cand[band - 1] - q); i < FFMIN(OPT_SIZE, cand[band - 1] + q); i++) {
261 if ( isinf(opt[band - 1][i]) )
268 tmp = opt[band - 1][i] + distance(idx, power_candidate, band);
269 if (opt[band][idx] > tmp) {
270 opt[band][idx] = tmp;
271 path[band][idx] = j;
283 band = NELLY_BANDS - 1;
285 if (best_val > opt[band][i]) {
286 best_val = opt[band][i];
290 for (band = NELLY_BANDS - 1; band >= 0; band--) {
291 idx_table[band] = path[band][best_idx];
292 if (band) {
293 best_idx -= ff_nelly_delta_table[path[band][best_idx]];
307 int i, j, band, block, best_idx, power_idx = 0;
318 for (band = 0; band < NELLY_BANDS; band++) {
320 for (j = 0; j < ff_nelly_band_sizes_table[band]; i++, j++) {
324 cand[band] =
325 log2(FFMAX(1.0, coeff_sum / (ff_nelly_band_sizes_table[band] << 7))) * 1024.0;
335 for (band = 0; band < NELLY_BANDS; band++) {
336 if (band) {
337 power_idx += ff_nelly_delta_table[idx_table[band]];
338 put_bits(&pb, 5, idx_table[band]);
344 for (j = 0; j < ff_nelly_band_sizes_table[band]; i++, j++) {