band 350 libavcodec/aaccoder.c FFPsyBand *band = &s->psy.ch[s->cur_channel].psy_bands[(win+w)*16+swb]; band 354 libavcodec/aaccoder.c lambda / band->threshold, INFINITY, NULL); band 627 libavcodec/aaccoder.c FFPsyBand *band = &s->psy.ch[s->cur_channel].psy_bands[(w+w2)*16+g]; band 628 libavcodec/aaccoder.c if (band->energy <= band->threshold || band->threshold == 0.0f) { band 656 libavcodec/aaccoder.c FFPsyBand *band = &s->psy.ch[s->cur_channel].psy_bands[(w+w2)*16+g]; band 658 libavcodec/aaccoder.c q + q0, cb, lambda / band->threshold, INFINITY, NULL); band 731 libavcodec/aaccoder.c FFPsyBand *band = &s->psy.ch[s->cur_channel].psy_bands[(w+w2)*16+g]; band 732 libavcodec/aaccoder.c uplim += band->threshold; band 733 libavcodec/aaccoder.c if (band->energy <= band->threshold || band->threshold == 0.0f) { band 1029 libavcodec/aaccoder.c FFPsyBand *band = &s->psy.ch[s->cur_channel].psy_bands[(w+w2)*16+g]; band 1030 libavcodec/aaccoder.c if (band->energy <= band->threshold) { band 1034 libavcodec/aaccoder.c sce->sf_idx[(w+w2)*16+g] = av_clip(SCALE_ONE_POS - SCALE_DIV_512 + log2f(band->threshold), 80, 218); band 121 libavcodec/aacpsy.c AacPsyBand band[128]; ///< bands information band 507 libavcodec/aacpsy.c static float calc_pe_3gpp(AacPsyBand *band) band 511 libavcodec/aacpsy.c band->pe = 0.0f; band 512 libavcodec/aacpsy.c band->pe_const = 0.0f; band 513 libavcodec/aacpsy.c band->active_lines = 0.0f; band 514 libavcodec/aacpsy.c if (band->energy > band->thr) { band 515 libavcodec/aacpsy.c a = log2f(band->energy); band 516 libavcodec/aacpsy.c pe = a - log2f(band->thr); band 517 libavcodec/aacpsy.c band->active_lines = band->nz_lines; band 521 libavcodec/aacpsy.c band->active_lines *= PSY_3GPP_C3; band 523 libavcodec/aacpsy.c band->pe = pe * band->nz_lines; band 524 libavcodec/aacpsy.c band->pe_const = a * band->nz_lines; band 527 libavcodec/aacpsy.c return band->pe; band 544 libavcodec/aacpsy.c static float calc_reduced_thr_3gpp(AacPsyBand *band, float min_snr, band 547 libavcodec/aacpsy.c float thr = band->thr; band 549 libavcodec/aacpsy.c if (band->energy > thr) { band 560 libavcodec/aacpsy.c if (thr > band->energy * min_snr && band->avoid_holes != PSY_3GPP_AH_NONE) { band 561 libavcodec/aacpsy.c thr = FFMAX(band->thr, band->energy * min_snr); band 562 libavcodec/aacpsy.c band->avoid_holes = PSY_3GPP_AH_ACTIVE; band 577 libavcodec/aacpsy.c AacPsyBand *band = &pch->band[w+g]; band 581 libavcodec/aacpsy.c band->energy = 0.0f; band 583 libavcodec/aacpsy.c band->energy += coefs[start+i] * coefs[start+i]; band 586 libavcodec/aacpsy.c Temp = band->energy > 0 ? sqrtf((float)band_sizes[g] / band->energy) : 0; band 587 libavcodec/aacpsy.c band->thr = band->energy * 0.001258925f; band 588 libavcodec/aacpsy.c band->nz_lines = form_factor * sqrtf(Temp); band 637 libavcodec/aacpsy.c AacPsyBand *bands = &pch->band[w]; band 651 libavcodec/aacpsy.c AacPsyBand *band = &bands[g]; band 653 libavcodec/aacpsy.c band->thr_quiet = band->thr = FFMAX(band->thr, coeffs[g].ath); band 656 libavcodec/aacpsy.c band->thr = FFMAX(PSY_3GPP_RPEMIN*band->thr, FFMIN(band->thr, band 660 libavcodec/aacpsy.c pe += calc_pe_3gpp(band); band 661 libavcodec/aacpsy.c a += band->pe_const; band 662 libavcodec/aacpsy.c active_lines += band->active_lines; band 665 libavcodec/aacpsy.c if (spread_en[w+g] * avoid_hole_thr > band->energy || coeffs[g].min_snr > 1.0f) band 666 libavcodec/aacpsy.c band->avoid_holes = PSY_3GPP_AH_NONE; band 668 libavcodec/aacpsy.c band->avoid_holes = PSY_3GPP_AH_INACTIVE; band 693 libavcodec/aacpsy.c AacPsyBand *band = &pch->band[w+g]; band 695 libavcodec/aacpsy.c band->thr = calc_reduced_thr_3gpp(band, coeffs[g].min_snr, reduction); band 697 libavcodec/aacpsy.c pe += calc_pe_3gpp(band); band 698 libavcodec/aacpsy.c a += band->pe_const; band 699 libavcodec/aacpsy.c active_lines += band->active_lines; band 709 libavcodec/aacpsy.c AacPsyBand *band = &pch->band[w+g]; band 711 libavcodec/aacpsy.c if (band->avoid_holes != PSY_3GPP_AH_ACTIVE) { band 712 libavcodec/aacpsy.c pe_no_ah += band->pe; band 713 libavcodec/aacpsy.c a += band->pe_const; band 714 libavcodec/aacpsy.c active_lines += band->active_lines; band 725 libavcodec/aacpsy.c AacPsyBand *band = &pch->band[w+g]; band 728 libavcodec/aacpsy.c band->thr = calc_reduced_thr_3gpp(band, coeffs[g].min_snr, reduction); band 729 libavcodec/aacpsy.c pe += calc_pe_3gpp(band); band 730 libavcodec/aacpsy.c band->norm_fac = band->active_lines / band->thr; band 731 libavcodec/aacpsy.c norm_fac += band->norm_fac; band 744 libavcodec/aacpsy.c AacPsyBand *band = &pch->band[w+g]; band 746 libavcodec/aacpsy.c if (band->active_lines > 0.5f) { band 747 libavcodec/aacpsy.c float delta_sfb_pe = band->norm_fac * norm_fac * delta_pe; band 748 libavcodec/aacpsy.c float thr = band->thr; band 750 libavcodec/aacpsy.c thr *= exp2f(delta_sfb_pe / band->active_lines); band 751 libavcodec/aacpsy.c if (thr > coeffs[g].min_snr * band->energy && band->avoid_holes == PSY_3GPP_AH_INACTIVE) band 752 libavcodec/aacpsy.c thr = FFMAX(band->thr, coeffs[g].min_snr * band->energy); band 753 libavcodec/aacpsy.c band->thr = thr; band 762 libavcodec/aacpsy.c AacPsyBand *band = &pch->band[w+g]; band 763 libavcodec/aacpsy.c if (band->avoid_holes != PSY_3GPP_AH_NONE && coeffs[g].min_snr < PSY_SNR_1DB) { band 765 libavcodec/aacpsy.c band->thr = band->energy * PSY_SNR_1DB; band 766 libavcodec/aacpsy.c pe += band->active_lines * 1.5f - band->pe; band 776 libavcodec/aacpsy.c AacPsyBand *band = &pch->band[w+g]; band 779 libavcodec/aacpsy.c psy_band->threshold = band->thr; band 780 libavcodec/aacpsy.c psy_band->energy = band->energy; band 784 libavcodec/aacpsy.c memcpy(pch->prev_band, pch->band, sizeof(pch->band)); band 100 libavcodec/ac3.c int bin, band; band 109 libavcodec/ac3.c band = ff_ac3_bin_to_band_tab[start]; band 112 libavcodec/ac3.c int band_end = FFMIN(ff_ac3_band_start_tab[band+1], end); band 119 libavcodec/ac3.c band_psd[band++] = v; band 120 libavcodec/ac3.c } while (end > ff_ac3_band_start_tab[band]); band 130 libavcodec/ac3.c int band; band 145 libavcodec/ac3.c for (band = 2; band < 7; band++) { band 146 libavcodec/ac3.c if (!(is_lfe && band == 6)) band 147 libavcodec/ac3.c lowcomp = calc_lowcomp1(lowcomp, band_psd[band], band_psd[band+1], 384); band 148 libavcodec/ac3.c fastleak = band_psd[band] - fast_gain; band 149 libavcodec/ac3.c slowleak = band_psd[band] - s->slow_gain; band 150 libavcodec/ac3.c excite[band] = fastleak - lowcomp; band 151 libavcodec/ac3.c if (!(is_lfe && band == 6)) { band 152 libavcodec/ac3.c if (band_psd[band] <= band_psd[band+1]) { band 153 libavcodec/ac3.c begin = band + 1; band 160 libavcodec/ac3.c for (band = begin; band < end1; band++) { band 161 libavcodec/ac3.c if (!(is_lfe && band == 6)) band 162 libavcodec/ac3.c lowcomp = calc_lowcomp(lowcomp, band_psd[band], band_psd[band+1], band); band 163 libavcodec/ac3.c fastleak = FFMAX(fastleak - s->fast_decay, band_psd[band] - fast_gain); band 164 libavcodec/ac3.c slowleak = FFMAX(slowleak - s->slow_decay, band_psd[band] - s->slow_gain); band 165 libavcodec/ac3.c excite[band] = FFMAX(fastleak - lowcomp, slowleak); band 175 libavcodec/ac3.c for (band = begin; band < band_end; band++) { band 176 libavcodec/ac3.c fastleak = FFMAX(fastleak - s->fast_decay, band_psd[band] - fast_gain); band 177 libavcodec/ac3.c slowleak = FFMAX(slowleak - s->slow_decay, band_psd[band] - s->slow_gain); band 178 libavcodec/ac3.c excite[band] = FFMAX(fastleak, slowleak); band 183 libavcodec/ac3.c for (band = band_start; band < band_end; band++) { band 184 libavcodec/ac3.c int tmp = s->db_per_bit - band_psd[band]; band 186 libavcodec/ac3.c excite[band] += tmp >> 2; band 188 libavcodec/ac3.c mask[band] = FFMAX(ff_ac3_hearing_threshold_tab[band >> s->sr_shift][s->sr_code], excite[band]); band 197 libavcodec/ac3.c band = band_start; band 199 libavcodec/ac3.c band += dba_offsets[seg]; band 200 libavcodec/ac3.c if (band >= AC3_CRITICAL_BANDS || dba_lengths[seg] > AC3_CRITICAL_BANDS-band) band 208 libavcodec/ac3.c mask[band++] += delta; band 224 libavcodec/ac3.c int bin = 0, band; band 225 libavcodec/ac3.c for (band = 0; band < AC3_CRITICAL_BANDS; band++) { band 226 libavcodec/ac3.c int band_end = ff_ac3_band_start_tab[band+1]; band 228 libavcodec/ac3.c ff_ac3_bin_to_band_tab[bin++] = band; band 462 libavcodec/ac3dec.c int bin, band, ch; band 465 libavcodec/ac3dec.c for (band = 0; band < s->num_cpl_bands; band++) { band 467 libavcodec/ac3dec.c int band_end = bin + s->cpl_band_sizes[band]; band 470 libavcodec/ac3dec.c int cpl_coord = s->cpl_coords[ch][band] << 5; band 475 libavcodec/ac3dec.c if (ch == 2 && s->phase_flags[band]) { band 112 libavcodec/ac3dsp.c int bin, band, band_end; band 121 libavcodec/ac3dsp.c band = ff_ac3_bin_to_band_tab[start]; band 123 libavcodec/ac3dsp.c int m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor; band 124 libavcodec/ac3dsp.c band_end = ff_ac3_band_start_tab[++band]; band 202 libavcodec/aic.c int band, int slice_width, int force_chroma) band 205 libavcodec/aic.c const int num_coeffs = aic_num_band_coeffs[band]; band 206 libavcodec/aic.c const uint8_t *scan = aic_scan[band | force_chroma]; band 469 libavcodec/atrac3.c int i, nsample, band; band 472 libavcodec/atrac3.c for (i = 0, band = 0; band < 4 * 256; band += 256, i++) { band 475 libavcodec/atrac3.c nsample = band; band 485 libavcodec/atrac3.c for (; nsample < band + 8; nsample++) { band 488 libavcodec/atrac3.c c2 = c1 * INTERPOLATE(mc1_l, mc2_l, nsample - band) + band 489 libavcodec/atrac3.c c2 * INTERPOLATE(mc1_r, mc2_r, nsample - band); band 498 libavcodec/atrac3.c for (; nsample < band + 256; nsample++) { band 506 libavcodec/atrac3.c for (; nsample < band + 256; nsample++) { band 515 libavcodec/atrac3.c for (; nsample < band + 256; nsample++) { band 543 libavcodec/atrac3.c int band, nsample; band 551 libavcodec/atrac3.c for (band = 256; band < 4 * 256; band += 256) { band 552 libavcodec/atrac3.c for (nsample = band; nsample < band + 8; nsample++) { band 553 libavcodec/atrac3.c su1[nsample] *= INTERPOLATE(w[0][0], w[0][1], nsample - band); band 554 libavcodec/atrac3.c su2[nsample] *= INTERPOLATE(w[1][0], w[1][1], nsample - band); band 556 libavcodec/atrac3.c for(; nsample < band + 256; nsample++) { band 576 libavcodec/atrac3.c int band, ret, num_subbands, last_tonal, num_bands; band 619 libavcodec/atrac3.c for (band = 0; band < 4; band++) { band 621 libavcodec/atrac3.c if (band <= num_bands) band 622 libavcodec/atrac3.c imlt(q, &snd->spectrum[band * 256], snd->imdct_buf, band & 1); band 628 libavcodec/atrac3.c &snd->prev_frame[band * 256], band 629 libavcodec/atrac3.c &gain1->g_block[band], &gain2->g_block[band], band 630 libavcodec/atrac3.c 256, &output[band * 256]); band 598 libavcodec/cook.c int band, j; band 601 libavcodec/cook.c for (band = 0; band < p->total_subbands; band++) { band 602 libavcodec/cook.c index = category[band]; band 603 libavcodec/cook.c if (category[band] < 7) { band 604 libavcodec/cook.c if (unpack_SQVH(q, p, category[band], subband_coef_index, subband_coef_sign)) { band 607 libavcodec/cook.c category[band + j] = 7; band 614 libavcodec/cook.c q->scalar_dequant(q, index, quant_index_table[band], band 616 libavcodec/cook.c &mlt_buffer[band * SUBBAND_SIZE]); band 253 libavcodec/dcaenc.c int band; band 270 libavcodec/dcaenc.c for (band = 0; band < 32; band++) { band 273 libavcodec/dcaenc.c int s = (2 * band + 1) * (2 * (i + 16) + 1); band 277 libavcodec/dcaenc.c c->subband[subs][band][ch] = ((band + 1) & 2) ? -resp : resp; band 449 libavcodec/dcaenc.c static void walk_band_low(DCAEncContext *c, int band, int channel, band 454 libavcodec/dcaenc.c if (band == 0) { band 459 libavcodec/dcaenc.c walk(c, band, band - 1, 8 * band - 4 + f, band 464 libavcodec/dcaenc.c static void walk_band_high(DCAEncContext *c, int band, int channel, band 469 libavcodec/dcaenc.c if (band == 31) { band 474 libavcodec/dcaenc.c walk(c, band, band + 1, 8 * band + 4 + f, band 491 libavcodec/dcaenc.c int i, k, band, ch, ssf; band 515 libavcodec/dcaenc.c for (band = 0; band < 32; band++) { band 516 libavcodec/dcaenc.c c->band_masking_cb[band] = 2048; band 517 libavcodec/dcaenc.c walk_band_low(c, band, 0, update_band_masking, NULL); band 518 libavcodec/dcaenc.c walk_band_high(c, band, 0, update_band_masking, NULL); band 524 libavcodec/dcaenc.c int band, ch; band 526 libavcodec/dcaenc.c for (band = 0; band < 32; band++) band 532 libavcodec/dcaenc.c int32_t s = abs(c->subband[sample][band][ch]); band 536 libavcodec/dcaenc.c c->peak_cb[band][ch] = get_cb(m); band 557 libavcodec/dcaenc.c int ch, band, ret = 0; band 565 libavcodec/dcaenc.c for (band = 0; band < 32; band++) { band 566 libavcodec/dcaenc.c int snr_cb = c->peak_cb[band][ch] - c->band_masking_cb[band] - noise; band 569 libavcodec/dcaenc.c c->abits[band][ch] = 26; band 572 libavcodec/dcaenc.c c->abits[band][ch] = 8 + mul32(snr_cb - 222, 69000000); band 575 libavcodec/dcaenc.c c->abits[band][ch] = 2 + mul32(snr_cb, 106000000); band 578 libavcodec/dcaenc.c c->abits[band][ch] = 1; band 584 libavcodec/dcaenc.c for (band = 0; band < 32; band++) band 586 libavcodec/dcaenc.c c->consumed_bits += bit_consumption[c->abits[band][ch]]; band 682 libavcodec/dcaenc.c int band, ch; band 684 libavcodec/dcaenc.c for (band = 0; band < 32; band++) band 686 libavcodec/dcaenc.c c->scale_factor[band][ch] = calc_one_scale(c->peak_cb[band][ch], band 687 libavcodec/dcaenc.c c->abits[band][ch], band 688 libavcodec/dcaenc.c &c->quant[band][ch]); band 696 libavcodec/dcaenc.c int sample, band, ch; band 699 libavcodec/dcaenc.c for (band = 0; band < 32; band++) band 701 libavcodec/dcaenc.c c->quantized[sample][band][ch] = quantize_value(c->subband[sample][band][ch], c->quant[band][ch]); band 833 libavcodec/dcaenc.c static void put_subframe_samples(DCAEncContext *c, int ss, int band, int ch) band 835 libavcodec/dcaenc.c if (c->abits[band][ch] <= 7) { band 840 libavcodec/dcaenc.c sum *= quant_levels[c->abits[band][ch]]; band 841 libavcodec/dcaenc.c sum += c->quantized[ss * 8 + i + j][band][ch]; band 842 libavcodec/dcaenc.c sum += (quant_levels[c->abits[band][ch]] - 1) / 2; band 844 libavcodec/dcaenc.c put_bits(&c->pb, bit_consumption[c->abits[band][ch]] / 4, sum); band 849 libavcodec/dcaenc.c int bits = bit_consumption[c->abits[band][ch]] / 16; band 851 libavcodec/dcaenc.c put_bits(&c->pb, bits, c->quantized[ss * 8 + i][band][ch] & mask); band 858 libavcodec/dcaenc.c int i, band, ss, ch; band 868 libavcodec/dcaenc.c for (band = 0; band < DCAENC_SUBBANDS; band++) band 874 libavcodec/dcaenc.c for (band = 0; band < DCAENC_SUBBANDS; band++) band 875 libavcodec/dcaenc.c put_bits(&c->pb, 5, c->abits[band][ch]); band 880 libavcodec/dcaenc.c for (band = 0; band < DCAENC_SUBBANDS; band++) band 886 libavcodec/dcaenc.c for (band = 0; band < DCAENC_SUBBANDS; band++) band 887 libavcodec/dcaenc.c put_bits(&c->pb, 7, c->scale_factor[band][ch]); band 906 libavcodec/dcaenc.c for (band = 0; band < DCAENC_SUBBANDS; band++) band 907 libavcodec/dcaenc.c put_subframe_samples(c, ss, band, ch); band 133 libavcodec/diracdec.c SubBand band[MAX_DWT_LEVELS][4]; band 658 libavcodec/diracdec.c SubBand *b = &s->plane[comp].band[level][orientation]; band 674 libavcodec/diracdec.c avctx->execute(avctx, decode_subband_arith, &s->plane[comp].band[level][!!level], band 751 libavcodec/diracdec.c &s->plane[0].band[level][orientation], NULL); band 764 libavcodec/diracdec.c &s->plane[1].band[level][orientation], band 765 libavcodec/diracdec.c &s->plane[2].band[level][orientation]); band 809 libavcodec/diracdec.c intra_dc_prediction(&s->plane[0].band[0][0]); /* [DIRAC_STD] 13.3 intra_dc_prediction() */ band 810 libavcodec/diracdec.c intra_dc_prediction(&s->plane[1].band[0][0]); /* [DIRAC_STD] 13.3 intra_dc_prediction() */ band 811 libavcodec/diracdec.c intra_dc_prediction(&s->plane[2].band[0][0]); /* [DIRAC_STD] 13.3 intra_dc_prediction() */ band 833 libavcodec/diracdec.c SubBand *b = &p->band[level][orientation]; band 848 libavcodec/diracdec.c b->parent = &p->band[level-1][orientation]; band 74 libavcodec/g722.c static inline void s_zero(int cur_diff, struct G722Band *band) band 80 libavcodec/g722.c band->zero_mem[k] = ((band->zero_mem[k] * 255) >> 8) + \ band 81 libavcodec/g722.c d*((band->diff_mem[k]^cur_diff) < 0 ? -128 : 128); \ band 82 libavcodec/g722.c band->diff_mem[k] = tmp; \ band 83 libavcodec/g722.c s_zero += (tmp * band->zero_mem[k]) >> 15; \ band 86 libavcodec/g722.c ACCUM(5, band->diff_mem[4], 1); band 87 libavcodec/g722.c ACCUM(4, band->diff_mem[3], 1); band 88 libavcodec/g722.c ACCUM(3, band->diff_mem[2], 1); band 89 libavcodec/g722.c ACCUM(2, band->diff_mem[1], 1); band 90 libavcodec/g722.c ACCUM(1, band->diff_mem[0], 1); band 93 libavcodec/g722.c ACCUM(5, band->diff_mem[4], 0); band 94 libavcodec/g722.c ACCUM(4, band->diff_mem[3], 0); band 95 libavcodec/g722.c ACCUM(3, band->diff_mem[2], 0); band 96 libavcodec/g722.c ACCUM(2, band->diff_mem[1], 0); band 97 libavcodec/g722.c ACCUM(1, band->diff_mem[0], 0); band 101 libavcodec/g722.c band->s_zero = s_zero; band 110 libavcodec/g722.c static void do_adaptive_prediction(struct G722Band *band, const int cur_diff) band 114 libavcodec/g722.c const int cur_part_reconst = band->s_zero + cur_diff < 0; band 116 libavcodec/g722.c sg[0] = sign_lookup[cur_part_reconst != band->part_reconst_mem[0]]; band 117 libavcodec/g722.c sg[1] = sign_lookup[cur_part_reconst == band->part_reconst_mem[1]]; band 118 libavcodec/g722.c band->part_reconst_mem[1] = band->part_reconst_mem[0]; band 119 libavcodec/g722.c band->part_reconst_mem[0] = cur_part_reconst; band 121 libavcodec/g722.c band->pole_mem[1] = av_clip((sg[0] * av_clip(band->pole_mem[0], -8191, 8191) >> 5) + band 122 libavcodec/g722.c (sg[1] << 7) + (band->pole_mem[1] * 127 >> 7), -12288, 12288); band 124 libavcodec/g722.c limit = 15360 - band->pole_mem[1]; band 125 libavcodec/g722.c band->pole_mem[0] = av_clip(-192 * sg[0] + (band->pole_mem[0] * 255 >> 8), -limit, limit); band 127 libavcodec/g722.c s_zero(cur_diff, band); band 129 libavcodec/g722.c cur_qtzd_reconst = av_clip_int16((band->s_predictor + cur_diff) << 1); band 130 libavcodec/g722.c band->s_predictor = av_clip_int16(band->s_zero + band 131 libavcodec/g722.c (band->pole_mem[0] * cur_qtzd_reconst >> 15) + band 132 libavcodec/g722.c (band->pole_mem[1] * band->prev_qtzd_reconst >> 15)); band 133 libavcodec/g722.c band->prev_qtzd_reconst = cur_qtzd_reconst; band 143 libavcodec/g722.c void ff_g722_update_low_predictor(struct G722Band *band, const int ilow) band 145 libavcodec/g722.c do_adaptive_prediction(band, band 146 libavcodec/g722.c band->scale_factor * ff_g722_low_inv_quant4[ilow] >> 10); band 149 libavcodec/g722.c band->log_factor = av_clip((band->log_factor * 127 >> 7) + band 151 libavcodec/g722.c band->scale_factor = linear_scale_factor(band->log_factor - (8 << 11)); band 154 libavcodec/g722.c void ff_g722_update_high_predictor(struct G722Band *band, const int dhigh, band 157 libavcodec/g722.c do_adaptive_prediction(band, dhigh); band 160 libavcodec/g722.c band->log_factor = av_clip((band->log_factor * 127 >> 7) + band 162 libavcodec/g722.c band->scale_factor = linear_scale_factor(band->log_factor - (10 << 11)); band 53 libavcodec/g722.h } band[2]; band 73 libavcodec/g722.h void ff_g722_update_low_predictor(struct G722Band *band, const int ilow); band 75 libavcodec/g722.h void ff_g722_update_high_predictor(struct G722Band *band, const int dhigh, band 66 libavcodec/g722dec.c c->band[0].scale_factor = 8; band 67 libavcodec/g722dec.c c->band[1].scale_factor = 2; band 113 libavcodec/g722dec.c rlow = av_clip_intp2((c->band[0].scale_factor * quantizer_table[ilow] >> 10) band 114 libavcodec/g722dec.c + c->band[0].s_predictor, 14); band 116 libavcodec/g722dec.c ff_g722_update_low_predictor(&c->band[0], ilow >> (2 - skip)); band 118 libavcodec/g722dec.c dhigh = c->band[1].scale_factor * ff_g722_high_inv_quant[ihigh] >> 10; band 119 libavcodec/g722dec.c rhigh = av_clip_intp2(dhigh + c->band[1].s_predictor, 14); band 121 libavcodec/g722dec.c ff_g722_update_high_predictor(&c->band[1], dhigh, ihigh); band 69 libavcodec/g722enc.c c->band[0].scale_factor = 8; band 70 libavcodec/g722enc.c c->band[1].scale_factor = 2; band 195 libavcodec/g722enc.c nodes[i][0]->state = c->band[i]; band 327 libavcodec/g722enc.c c->band[0] = nodes[0][0]->state; band 328 libavcodec/g722enc.c c->band[1] = nodes[1][0]->state; band 336 libavcodec/g722enc.c ihigh = encode_high(&c->band[1], xhigh); band 337 libavcodec/g722enc.c ilow = encode_low (&c->band[0], xlow); band 338 libavcodec/g722enc.c ff_g722_update_high_predictor(&c->band[1], c->band[1].scale_factor * band 340 libavcodec/g722enc.c ff_g722_update_low_predictor(&c->band[0], ilow >> 2); band 269 libavcodec/indeo4.c static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band, band 278 libavcodec/indeo4.c if (band->plane != plane || band->band_num != band_num) { band 283 libavcodec/indeo4.c band->is_empty = get_bits1(&ctx->gb); band 284 libavcodec/indeo4.c if (!band->is_empty) { band 285 libavcodec/indeo4.c int old_blk_size = band->blk_size; band 291 libavcodec/indeo4.c band->is_halfpel = get_bits(&ctx->gb, 2); band 292 libavcodec/indeo4.c if (band->is_halfpel >= 2) { band 294 libavcodec/indeo4.c band->is_halfpel); band 298 libavcodec/indeo4.c if (!band->is_halfpel) band 302 libavcodec/indeo4.c band->checksum_present = get_bits1(&ctx->gb); band 303 libavcodec/indeo4.c if (band->checksum_present) band 304 libavcodec/indeo4.c band->checksum = get_bits(&ctx->gb, 16); band 311 libavcodec/indeo4.c band->mb_size = 16 >> indx; band 312 libavcodec/indeo4.c band->blk_size = 8 >> (indx >> 1); band 314 libavcodec/indeo4.c band->inherit_mv = get_bits1(&ctx->gb); band 315 libavcodec/indeo4.c band->inherit_qdelta = get_bits1(&ctx->gb); band 317 libavcodec/indeo4.c band->glob_quant = get_bits(&ctx->gb, 5); band 332 libavcodec/indeo4.c if (transform_id < 10 && band->blk_size < 8) { band 341 libavcodec/indeo4.c band->inv_transform = transforms[transform_id].inv_trans; band 342 libavcodec/indeo4.c band->dc_transform = transforms[transform_id].dc_trans; band 343 libavcodec/indeo4.c band->is_2d_trans = transforms[transform_id].is_2d_trans; band 346 libavcodec/indeo4.c band->transform_size = 8; band 348 libavcodec/indeo4.c band->transform_size = 4; band 350 libavcodec/indeo4.c if (band->blk_size != band->transform_size) { band 351 libavcodec/indeo4.c av_log(avctx, AV_LOG_ERROR, "transform and block size mismatch (%d != %d)\n", band->transform_size, band->blk_size); band 361 libavcodec/indeo4.c if (band->blk_size != 4) { band 365 libavcodec/indeo4.c } else if (band->blk_size != 8) { band 370 libavcodec/indeo4.c band->scan = scan_index_to_tab[scan_indx]; band 371 libavcodec/indeo4.c band->scan_size = band->blk_size; band 383 libavcodec/indeo4.c band->quant_mat = quant_mat; band 385 libavcodec/indeo4.c if (old_blk_size != band->blk_size) { band 392 libavcodec/indeo4.c if (quant_index_to_tab[band->quant_mat] > 4 && band->blk_size == 4) { band 394 libavcodec/indeo4.c band->quant_mat = 0; band 397 libavcodec/indeo4.c if (band->scan_size != band->blk_size) { band 401 libavcodec/indeo4.c if (band->transform_size == 8 && band->blk_size < 8) { band 408 libavcodec/indeo4.c band->blk_vlc.tab = ctx->blk_vlc.tab; band 411 libavcodec/indeo4.c &band->blk_vlc, avctx)) band 415 libavcodec/indeo4.c band->rvmap_sel = get_bits1(&ctx->gb) ? get_bits(&ctx->gb, 3) : 8; band 418 libavcodec/indeo4.c band->num_corr = 0; /* there is no corrections */ band 420 libavcodec/indeo4.c band->num_corr = get_bits(&ctx->gb, 8); /* get number of correction pairs */ band 421 libavcodec/indeo4.c if (band->num_corr > 61) { band 423 libavcodec/indeo4.c band->num_corr); band 428 libavcodec/indeo4.c for (i = 0; i < band->num_corr * 2; i++) band 429 libavcodec/indeo4.c band->corr[i] = get_bits(&ctx->gb, 8); band 433 libavcodec/indeo4.c if (band->blk_size == 8) { band 434 libavcodec/indeo4.c band->intra_base = &ivi4_quant_8x8_intra[quant_index_to_tab[band->quant_mat]][0]; band 435 libavcodec/indeo4.c band->inter_base = &ivi4_quant_8x8_inter[quant_index_to_tab[band->quant_mat]][0]; band 437 libavcodec/indeo4.c band->intra_base = &ivi4_quant_4x4_intra[quant_index_to_tab[band->quant_mat]][0]; band 438 libavcodec/indeo4.c band->inter_base = &ivi4_quant_4x4_inter[quant_index_to_tab[band->quant_mat]][0]; band 442 libavcodec/indeo4.c band->intra_scale = NULL; band 443 libavcodec/indeo4.c band->inter_scale = NULL; band 447 libavcodec/indeo4.c if (!band->scan) { band 466 libavcodec/indeo4.c static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band, band 472 libavcodec/indeo4.c int row_offset = band->mb_size * band->pitch; band 476 libavcodec/indeo4.c offs = tile->ypos * band->pitch + tile->xpos; band 478 libavcodec/indeo4.c blks_per_mb = band->mb_size != band->blk_size ? 4 : 1; band 482 libavcodec/indeo4.c mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3); band 485 libavcodec/indeo4.c if (((tile->width + band->mb_size-1)/band->mb_size) * ((tile->height + band->mb_size-1)/band->mb_size) != tile->num_MBs) { band 486 libavcodec/indeo4.c av_log(avctx, AV_LOG_ERROR, "num_MBs mismatch %d %d %d %d\n", tile->width, tile->height, band->mb_size, tile->num_MBs); band 490 libavcodec/indeo4.c for (y = tile->ypos; y < tile->ypos + tile->height; y += band->mb_size) { band 493 libavcodec/indeo4.c for (x = tile->xpos; x < tile->xpos + tile->width; x += band->mb_size) { band 509 libavcodec/indeo4.c if (!band->plane && !band->band_num && ctx->in_q) { band 516 libavcodec/indeo4.c if (band->inherit_mv && ref_mb) { band 527 libavcodec/indeo4.c if (band->inherit_mv) { band 544 libavcodec/indeo4.c if (band->inherit_qdelta) { band 546 libavcodec/indeo4.c } else if (mb->cbp || (!band->plane && !band->band_num && band 556 libavcodec/indeo4.c if (band->inherit_mv) { band 598 libavcodec/indeo4.c s= band->is_halfpel; band 600 libavcodec/indeo4.c if ( x + (mb->mv_x >>s) + (y+ (mb->mv_y >>s))*band->pitch < 0 || band 601 libavcodec/indeo4.c x + ((mb->mv_x+s)>>s) + band->mb_size - 1 band 602 libavcodec/indeo4.c + (y+band->mb_size - 1 +((mb->mv_y+s)>>s))*band->pitch > band->bufsize -1) { band 610 libavcodec/indeo4.c mb_offset += band->mb_size; band 63 libavcodec/indeo5.c IVIBandDesc *band, *band1, *band2; band 128 libavcodec/indeo5.c band = &ctx->planes[p].bands[i]; band 130 libavcodec/indeo5.c band->is_halfpel = get_bits1(&ctx->gb); band 141 libavcodec/indeo5.c blk_size_changed = mb_size != band->mb_size || blk_size != band->blk_size; band 143 libavcodec/indeo5.c band->mb_size = mb_size; band 144 libavcodec/indeo5.c band->blk_size = blk_size; band 155 libavcodec/indeo5.c band->inv_transform = ff_ivi_inverse_slant_8x8; band 156 libavcodec/indeo5.c band->dc_transform = ff_ivi_dc_slant_2d; band 157 libavcodec/indeo5.c band->scan = ff_zigzag_direct; band 158 libavcodec/indeo5.c band->transform_size = 8; band 162 libavcodec/indeo5.c band->inv_transform = ff_ivi_row_slant8; band 163 libavcodec/indeo5.c band->dc_transform = ff_ivi_dc_row_slant; band 164 libavcodec/indeo5.c band->scan = ff_ivi_vertical_scan_8x8; band 165 libavcodec/indeo5.c band->transform_size = 8; band 169 libavcodec/indeo5.c band->inv_transform = ff_ivi_col_slant8; band 170 libavcodec/indeo5.c band->dc_transform = ff_ivi_dc_col_slant; band 171 libavcodec/indeo5.c band->scan = ff_ivi_horizontal_scan_8x8; band 172 libavcodec/indeo5.c band->transform_size = 8; band 176 libavcodec/indeo5.c band->inv_transform = ff_ivi_put_pixels_8x8; band 177 libavcodec/indeo5.c band->dc_transform = ff_ivi_put_dc_pixel_8x8; band 178 libavcodec/indeo5.c band->scan = ff_ivi_horizontal_scan_8x8; band 179 libavcodec/indeo5.c band->transform_size = 8; band 183 libavcodec/indeo5.c band->inv_transform = ff_ivi_inverse_slant_4x4; band 184 libavcodec/indeo5.c band->dc_transform = ff_ivi_dc_slant_2d; band 185 libavcodec/indeo5.c band->scan = ff_ivi_direct_scan_4x4; band 186 libavcodec/indeo5.c band->transform_size = 4; band 190 libavcodec/indeo5.c band->is_2d_trans = band->inv_transform == ff_ivi_inverse_slant_8x8 || band 191 libavcodec/indeo5.c band->inv_transform == ff_ivi_inverse_slant_4x4; band 193 libavcodec/indeo5.c if (band->transform_size != band->blk_size) { band 194 libavcodec/indeo5.c av_log(avctx, AV_LOG_ERROR, "transform and block size mismatch (%d != %d)\n", band->transform_size, band->blk_size); band 205 libavcodec/indeo5.c if (band->blk_size == 8) { band 210 libavcodec/indeo5.c band->intra_base = &ivi5_base_quant_8x8_intra[quant_mat][0]; band 211 libavcodec/indeo5.c band->inter_base = &ivi5_base_quant_8x8_inter[quant_mat][0]; band 212 libavcodec/indeo5.c band->intra_scale = &ivi5_scale_quant_8x8_intra[quant_mat][0]; band 213 libavcodec/indeo5.c band->inter_scale = &ivi5_scale_quant_8x8_inter[quant_mat][0]; band 215 libavcodec/indeo5.c band->intra_base = ivi5_base_quant_4x4_intra; band 216 libavcodec/indeo5.c band->inter_base = ivi5_base_quant_4x4_inter; band 217 libavcodec/indeo5.c band->intra_scale = ivi5_scale_quant_4x4_intra; band 218 libavcodec/indeo5.c band->inter_scale = ivi5_scale_quant_4x4_inter; band 381 libavcodec/indeo5.c static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band, band 390 libavcodec/indeo5.c band->is_empty = 1; band 394 libavcodec/indeo5.c band->data_size = (ctx->frame_flags & 0x80) ? get_bits_long(&ctx->gb, 24) : 0; band 396 libavcodec/indeo5.c band->inherit_mv = band_flags & 2; band 397 libavcodec/indeo5.c band->inherit_qdelta = band_flags & 8; band 398 libavcodec/indeo5.c band->qdelta_present = band_flags & 4; band 399 libavcodec/indeo5.c if (!band->qdelta_present) band->inherit_qdelta = 1; band 402 libavcodec/indeo5.c band->num_corr = 0; /* there are no corrections */ band 404 libavcodec/indeo5.c band->num_corr = get_bits(&ctx->gb, 8); /* get number of correction pairs */ band 405 libavcodec/indeo5.c if (band->num_corr > 61) { band 407 libavcodec/indeo5.c band->num_corr); band 412 libavcodec/indeo5.c for (i = 0; i < band->num_corr * 2; i++) band 413 libavcodec/indeo5.c band->corr[i] = get_bits(&ctx->gb, 8); band 417 libavcodec/indeo5.c band->rvmap_sel = (band_flags & 0x40) ? get_bits(&ctx->gb, 3) : 8; band 421 libavcodec/indeo5.c &band->blk_vlc, avctx); band 425 libavcodec/indeo5.c band->checksum_present = get_bits1(&ctx->gb); band 426 libavcodec/indeo5.c if (band->checksum_present) band 427 libavcodec/indeo5.c band->checksum = get_bits(&ctx->gb, 16); band 429 libavcodec/indeo5.c band->glob_quant = get_bits(&ctx->gb, 5); band 453 libavcodec/indeo5.c static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band, band 459 libavcodec/indeo5.c int row_offset = band->mb_size * band->pitch; band 463 libavcodec/indeo5.c offs = tile->ypos * band->pitch + tile->xpos; band 466 libavcodec/indeo5.c ((band->qdelta_present && band->inherit_qdelta) || band->inherit_mv)) band 469 libavcodec/indeo5.c if (tile->num_MBs != IVI_MBs_PER_TILE(tile->width, tile->height, band->mb_size)) { band 471 libavcodec/indeo5.c tile->num_MBs, IVI_MBs_PER_TILE(tile->width, tile->height, band->mb_size)); band 476 libavcodec/indeo5.c mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3); band 479 libavcodec/indeo5.c for (y = tile->ypos; y < (tile->ypos + tile->height); y += band->mb_size) { band 482 libavcodec/indeo5.c for (x = tile->xpos; x < (tile->xpos + tile->width); x += band->mb_size) { band 496 libavcodec/indeo5.c if (!band->plane && !band->band_num && (ctx->frame_flags & 8)) { band 503 libavcodec/indeo5.c if (band->inherit_mv && ref_mb){ band 514 libavcodec/indeo5.c if (band->inherit_mv && ref_mb) { band 522 libavcodec/indeo5.c blks_per_mb = band->mb_size != band->blk_size ? 4 : 1; band 526 libavcodec/indeo5.c if (band->qdelta_present) { band 527 libavcodec/indeo5.c if (band->inherit_qdelta) { band 529 libavcodec/indeo5.c } else if (mb->cbp || (!band->plane && !band->band_num && band 540 libavcodec/indeo5.c if (band->inherit_mv && ref_mb){ band 563 libavcodec/indeo5.c s= band->is_halfpel; band 565 libavcodec/indeo5.c if ( x + (mb->mv_x >>s) + (y+ (mb->mv_y >>s))*band->pitch < 0 || band 566 libavcodec/indeo5.c x + ((mb->mv_x+s)>>s) + band->mb_size - 1 band 567 libavcodec/indeo5.c + (y+band->mb_size - 1 +((mb->mv_y+s)>>s))*band->pitch > band->bufsize - 1) { band 575 libavcodec/indeo5.c mb_offset += band->mb_size; band 80 libavcodec/ivi_common.c static int ivi_mc(IVIBandDesc *band, ivi_mc_func mc, ivi_mc_avg_func mc_avg, band 84 libavcodec/ivi_common.c int ref_offs = offs + mv_y * band->pitch + mv_x; band 85 libavcodec/ivi_common.c int buf_size = band->pitch * band->aheight; band 86 libavcodec/ivi_common.c int min_size = band->pitch * (band->blk_size - 1) + band->blk_size; band 87 libavcodec/ivi_common.c int ref_size = (mc_type > 1) * band->pitch + (mc_type & 1); band 90 libavcodec/ivi_common.c av_assert0(offs >= 0 && ref_offs >= 0 && band->ref_buf); band 96 libavcodec/ivi_common.c mc(band->buf + offs, band->ref_buf + ref_offs, band->pitch, mc_type); band 98 libavcodec/ivi_common.c int ref_offs2 = offs + mv_y2 * band->pitch + mv_x2; band 99 libavcodec/ivi_common.c int ref_size2 = (mc_type2 > 1) * band->pitch + (mc_type2 & 1); band 100 libavcodec/ivi_common.c if (offs < 0 || ref_offs2 < 0 || !band->b_ref_buf) band 106 libavcodec/ivi_common.c mc(band->buf + offs, band->b_ref_buf + ref_offs2, band 107 libavcodec/ivi_common.c band->pitch, mc_type2); band 109 libavcodec/ivi_common.c mc_avg(band->buf + offs, band->ref_buf + ref_offs, band 110 libavcodec/ivi_common.c band->b_ref_buf + ref_offs2, band->pitch, band 309 libavcodec/ivi_common.c IVIBandDesc *band; band 348 libavcodec/ivi_common.c band = &planes[p].bands[b]; /* select appropriate plane/band */ band 349 libavcodec/ivi_common.c band->plane = p; band 350 libavcodec/ivi_common.c band->band_num = b; band 351 libavcodec/ivi_common.c band->width = b_width; band 352 libavcodec/ivi_common.c band->height = b_height; band 353 libavcodec/ivi_common.c band->pitch = width_aligned; band 354 libavcodec/ivi_common.c band->aheight = height_aligned; band 355 libavcodec/ivi_common.c band->bufs[0] = av_mallocz(buf_size); band 356 libavcodec/ivi_common.c band->bufs[1] = av_mallocz(buf_size); band 357 libavcodec/ivi_common.c band->bufsize = buf_size/2; band 358 libavcodec/ivi_common.c if (!band->bufs[0] || !band->bufs[1]) band 363 libavcodec/ivi_common.c band->bufs[2] = av_mallocz(buf_size); band 364 libavcodec/ivi_common.c if (!band->bufs[2]) band 368 libavcodec/ivi_common.c band->bufs[3] = av_mallocz(buf_size); band 369 libavcodec/ivi_common.c if (!band->bufs[3]) band 380 libavcodec/ivi_common.c static int ivi_init_tiles(IVIBandDesc *band, IVITile *ref_tile, band 384 libavcodec/ivi_common.c IVITile *tile = band->tiles; band 386 libavcodec/ivi_common.c for (y = 0; y < band->height; y += t_height) { band 387 libavcodec/ivi_common.c for (x = 0; x < band->width; x += t_width) { band 390 libavcodec/ivi_common.c tile->mb_size = band->mb_size; band 391 libavcodec/ivi_common.c tile->width = FFMIN(band->width - x, t_width); band 392 libavcodec/ivi_common.c tile->height = FFMIN(band->height - y, t_height); band 396 libavcodec/ivi_common.c band->mb_size); band 423 libavcodec/ivi_common.c IVIBandDesc *band; band 437 libavcodec/ivi_common.c band = &planes[p].bands[b]; band 438 libavcodec/ivi_common.c x_tiles = IVI_NUM_TILES(band->width, t_width); band 439 libavcodec/ivi_common.c y_tiles = IVI_NUM_TILES(band->height, t_height); band 440 libavcodec/ivi_common.c band->num_tiles = x_tiles * y_tiles; band 442 libavcodec/ivi_common.c av_freep(&band->tiles); band 443 libavcodec/ivi_common.c band->tiles = av_mallocz_array(band->num_tiles, sizeof(IVITile)); band 444 libavcodec/ivi_common.c if (!band->tiles) band 449 libavcodec/ivi_common.c ret = ivi_init_tiles(band, planes[0].bands[0].tiles, band 486 libavcodec/ivi_common.c static int ivi_dc_transform(IVIBandDesc *band, int *prev_dc, int buf_offs, band 489 libavcodec/ivi_common.c int buf_size = band->pitch * band->aheight - buf_offs; band 490 libavcodec/ivi_common.c int min_size = (blk_size - 1) * band->pitch + blk_size; band 495 libavcodec/ivi_common.c band->dc_transform(prev_dc, band->buf + buf_offs, band 496 libavcodec/ivi_common.c band->pitch, blk_size); band 501 libavcodec/ivi_common.c static int ivi_decode_coded_blocks(GetBitContext *gb, IVIBandDesc *band, band 510 libavcodec/ivi_common.c const uint16_t *base_tab = is_intra ? band->intra_base : band->inter_base; band 511 libavcodec/ivi_common.c RVMapDesc *rvmap = band->rv_map; band 516 libavcodec/ivi_common.c int blk_size = band->blk_size; band 520 libavcodec/ivi_common.c int min_size = band->pitch * (band->transform_size - 1) + band 521 libavcodec/ivi_common.c band->transform_size; band 522 libavcodec/ivi_common.c int buf_size = band->pitch * band->aheight - offs; band 527 libavcodec/ivi_common.c if (!band->scan) { band 537 libavcodec/ivi_common.c sym = get_vlc2(gb, band->blk_vlc.tab->table, band 544 libavcodec/ivi_common.c run = get_vlc2(gb, band->blk_vlc.tab->table, IVI_VLC_BITS, 1) + 1; band 545 libavcodec/ivi_common.c lo = get_vlc2(gb, band->blk_vlc.tab->table, IVI_VLC_BITS, 1); band 546 libavcodec/ivi_common.c hi = get_vlc2(gb, band->blk_vlc.tab->table, IVI_VLC_BITS, 1); band 562 libavcodec/ivi_common.c pos = band->scan[scan_pos]; band 579 libavcodec/ivi_common.c if (is_intra && band->is_2d_trans) { band 585 libavcodec/ivi_common.c if(band->transform_size > band->blk_size){ band 591 libavcodec/ivi_common.c band->inv_transform(trvec, band->buf + offs, band 592 libavcodec/ivi_common.c band->pitch, col_flags); band 596 libavcodec/ivi_common.c return ivi_mc(band, mc, mc_avg, offs, mv_x, mv_y, mv_x2, mv_y2, band 612 libavcodec/ivi_common.c static int ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, band 627 libavcodec/ivi_common.c blk_size = band->blk_size; band 629 libavcodec/ivi_common.c num_blocks = (band->mb_size != blk_size) ? 4 : 1; band 647 libavcodec/ivi_common.c quant = band->glob_quant + mb->q_delta; band 653 libavcodec/ivi_common.c scale_tab = is_intra ? band->intra_scale : band->inter_scale; band 662 libavcodec/ivi_common.c if (band->is_halfpel) { band 677 libavcodec/ivi_common.c dmv_x = mb->mv_x >> band->is_halfpel; band 678 libavcodec/ivi_common.c dmv_y = mb->mv_y >> band->is_halfpel; band 679 libavcodec/ivi_common.c cx = mb->mv_x & band->is_halfpel; band 680 libavcodec/ivi_common.c cy = mb->mv_y & band->is_halfpel; band 683 libavcodec/ivi_common.c mb->xpos + dmv_x + band->mb_size + cx > band->pitch || band 685 libavcodec/ivi_common.c mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { band 692 libavcodec/ivi_common.c dmv_x = mb->b_mv_x >> band->is_halfpel; band 693 libavcodec/ivi_common.c dmv_y = mb->b_mv_y >> band->is_halfpel; band 694 libavcodec/ivi_common.c cx = mb->b_mv_x & band->is_halfpel; band 695 libavcodec/ivi_common.c cy = mb->b_mv_y & band->is_halfpel; band 698 libavcodec/ivi_common.c mb->xpos + dmv_x + band->mb_size + cx > band->pitch || band 700 libavcodec/ivi_common.c mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { band 712 libavcodec/ivi_common.c buf_offs += blk_size * band->pitch; band 716 libavcodec/ivi_common.c ret = ivi_decode_coded_blocks(gb, band, mc_with_delta_func, band 729 libavcodec/ivi_common.c ret = ivi_dc_transform(band, &prev_dc, buf_offs, blk_size); band 733 libavcodec/ivi_common.c ret = ivi_mc(band, mc_no_delta_func, mc_avg_no_delta_func, band 759 libavcodec/ivi_common.c static int ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band, band 769 libavcodec/ivi_common.c if (tile->num_MBs != IVI_MBs_PER_TILE(tile->width, tile->height, band->mb_size)) { band 772 libavcodec/ivi_common.c tile->num_MBs, IVI_MBs_PER_TILE(tile->width, tile->height, band->mb_size)); band 776 libavcodec/ivi_common.c offs = tile->ypos * band->pitch + tile->xpos; band 779 libavcodec/ivi_common.c row_offset = band->mb_size * band->pitch; band 782 libavcodec/ivi_common.c for (y = tile->ypos; y < (tile->ypos + tile->height); y += band->mb_size) { band 785 libavcodec/ivi_common.c for (x = tile->xpos; x < (tile->xpos + tile->width); x += band->mb_size) { band 793 libavcodec/ivi_common.c if (!band->qdelta_present && !band->plane && !band->band_num) { band 794 libavcodec/ivi_common.c mb->q_delta = band->glob_quant; band 799 libavcodec/ivi_common.c if (band->inherit_qdelta && ref_mb) band 802 libavcodec/ivi_common.c if (band->inherit_mv && ref_mb) { band 815 libavcodec/ivi_common.c dmv_x = mb->mv_x >> band->is_halfpel; band 816 libavcodec/ivi_common.c dmv_y = mb->mv_y >> band->is_halfpel; band 817 libavcodec/ivi_common.c cx = mb->mv_x & band->is_halfpel; band 818 libavcodec/ivi_common.c cy = mb->mv_y & band->is_halfpel; band 821 libavcodec/ivi_common.c || mb->xpos + dmv_x + band->mb_size + cx > band->pitch band 823 libavcodec/ivi_common.c || mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { band 833 libavcodec/ivi_common.c mb_offset += band->mb_size; band 838 libavcodec/ivi_common.c if (band->inherit_mv && need_mc) { /* apply motion compensation if there is at least one non-zero motion vector */ band 839 libavcodec/ivi_common.c num_blocks = (band->mb_size != band->blk_size) ? 4 : 1; /* number of blocks per mb */ band 840 libavcodec/ivi_common.c mc_no_delta_func = (band->blk_size == 8) ? ff_ivi_mc_8x8_no_delta band 846 libavcodec/ivi_common.c if (!band->is_halfpel) { band 856 libavcodec/ivi_common.c offs = mb->buf_offs + band->blk_size * ((blk & 1) + !!(blk & 2) * band->pitch); band 857 libavcodec/ivi_common.c ret = ivi_mc(band, mc_no_delta_func, 0, offs, band 865 libavcodec/ivi_common.c src = band->ref_buf + tile->ypos * band->pitch + tile->xpos; band 866 libavcodec/ivi_common.c dst = band->buf + tile->ypos * band->pitch + tile->xpos; band 868 libavcodec/ivi_common.c memcpy(dst, src, tile->width*sizeof(band->buf[0])); band 869 libavcodec/ivi_common.c src += band->pitch; band 870 libavcodec/ivi_common.c dst += band->pitch; band 879 libavcodec/ivi_common.c static uint16_t ivi_calc_band_checksum(IVIBandDesc *band) band 884 libavcodec/ivi_common.c src = band->buf; band 887 libavcodec/ivi_common.c for (y = 0; y < band->height; src += band->pitch, y++) band 888 libavcodec/ivi_common.c for (x = 0; x < band->width; x++) band 930 libavcodec/ivi_common.c IVIBandDesc *band, AVCodecContext *avctx) band 935 libavcodec/ivi_common.c band->buf = band->bufs[ctx->dst_buf]; band 936 libavcodec/ivi_common.c if (!band->buf) { band 941 libavcodec/ivi_common.c band->ref_buf = band->bufs[ctx->b_ref_buf]; band 942 libavcodec/ivi_common.c band->b_ref_buf = band->bufs[ctx->ref_buf]; band 944 libavcodec/ivi_common.c band->ref_buf = band->bufs[ctx->ref_buf]; band 945 libavcodec/ivi_common.c band->b_ref_buf = 0; band 947 libavcodec/ivi_common.c band->data_ptr = ctx->frame_data + (get_bits_count(&ctx->gb) >> 3); band 949 libavcodec/ivi_common.c result = ctx->decode_band_hdr(ctx, band, avctx); band 956 libavcodec/ivi_common.c if (band->is_empty) { band 961 libavcodec/ivi_common.c band->rv_map = &ctx->rvmap_tabs[band->rvmap_sel]; band 964 libavcodec/ivi_common.c for (i = 0; i < band->num_corr; i++) { band 965 libavcodec/ivi_common.c idx1 = band->corr[i * 2]; band 966 libavcodec/ivi_common.c idx2 = band->corr[i * 2 + 1]; band 967 libavcodec/ivi_common.c FFSWAP(uint8_t, band->rv_map->runtab[idx1], band->rv_map->runtab[idx2]); band 968 libavcodec/ivi_common.c FFSWAP(int16_t, band->rv_map->valtab[idx1], band->rv_map->valtab[idx2]); band 969 libavcodec/ivi_common.c if (idx1 == band->rv_map->eob_sym || idx2 == band->rv_map->eob_sym) band 970 libavcodec/ivi_common.c band->rv_map->eob_sym ^= idx1 ^ idx2; band 971 libavcodec/ivi_common.c if (idx1 == band->rv_map->esc_sym || idx2 == band->rv_map->esc_sym) band 972 libavcodec/ivi_common.c band->rv_map->esc_sym ^= idx1 ^ idx2; band 977 libavcodec/ivi_common.c for (t = 0; t < band->num_tiles; t++) { band 978 libavcodec/ivi_common.c tile = &band->tiles[t]; band 980 libavcodec/ivi_common.c if (tile->mb_size != band->mb_size) { band 982 libavcodec/ivi_common.c band->mb_size, tile->mb_size); band 987 libavcodec/ivi_common.c result = ivi_process_empty_tile(avctx, band, tile, band 988 libavcodec/ivi_common.c (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3)); band 1000 libavcodec/ivi_common.c result = ctx->decode_mb_info(ctx, band, tile, avctx); band 1004 libavcodec/ivi_common.c result = ivi_decode_blocks(&ctx->gb, band, tile, avctx); band 1024 libavcodec/ivi_common.c for (i = band->num_corr-1; i >= 0; i--) { band 1025 libavcodec/ivi_common.c idx1 = band->corr[i*2]; band 1026 libavcodec/ivi_common.c idx2 = band->corr[i*2+1]; band 1027 libavcodec/ivi_common.c FFSWAP(uint8_t, band->rv_map->runtab[idx1], band->rv_map->runtab[idx2]); band 1028 libavcodec/ivi_common.c FFSWAP(int16_t, band->rv_map->valtab[idx1], band->rv_map->valtab[idx2]); band 1029 libavcodec/ivi_common.c if (idx1 == band->rv_map->eob_sym || idx2 == band->rv_map->eob_sym) band 1030 libavcodec/ivi_common.c band->rv_map->eob_sym ^= idx1 ^ idx2; band 1031 libavcodec/ivi_common.c if (idx1 == band->rv_map->esc_sym || idx2 == band->rv_map->esc_sym) band 1032 libavcodec/ivi_common.c band->rv_map->esc_sym ^= idx1 ^ idx2; band 1036 libavcodec/ivi_common.c if (band->checksum_present) { band 1037 libavcodec/ivi_common.c uint16_t chksum = ivi_calc_band_checksum(band); band 1038 libavcodec/ivi_common.c if (chksum != band->checksum) { band 1042 libavcodec/ivi_common.c band->plane, band->band_num, band->checksum, chksum); band 262 libavcodec/ivi_common.h int (*decode_band_hdr) (struct IVI45DecContext *ctx, IVIBandDesc *band, AVCodecContext *avctx); band 263 libavcodec/ivi_common.h int (*decode_mb_info) (struct IVI45DecContext *ctx, IVIBandDesc *band, IVITile *tile, AVCodecContext *avctx); band 132 libavcodec/j2kenc.c Jpeg2000Band *band = reslevel->band + bandno; band 138 libavcodec/j2kenc.c band->x0, band->x1, band 139 libavcodec/j2kenc.c band->y0, band->y1, band 140 libavcodec/j2kenc.c band->codeblock_width, band->codeblock_height, band 141 libavcodec/j2kenc.c band->cblknx, band->cblkny); band 143 libavcodec/j2kenc.c Jpeg2000Prec *prec = band->prec + precno; band 661 libavcodec/j2kenc.c if (rlevel->band[bandno].coord[0][0] < rlevel->band[bandno].coord[0][1] band 662 libavcodec/j2kenc.c && rlevel->band[bandno].coord[1][0] < rlevel->band[bandno].coord[1][1]){ band 675 libavcodec/j2kenc.c Jpeg2000Band *band = rlevel->band + bandno; band 676 libavcodec/j2kenc.c Jpeg2000Prec *prec = band->prec + precno; band 680 libavcodec/j2kenc.c if (band->coord[0][0] == band->coord[0][1] band 681 libavcodec/j2kenc.c || band->coord[1][0] == band->coord[1][1]) band 725 libavcodec/j2kenc.c Jpeg2000Band *band = rlevel->band + bandno; band 726 libavcodec/j2kenc.c Jpeg2000Prec *prec = band->prec + precno; band 798 libavcodec/j2kenc.c Jpeg2000Band *band = reslevel->band + bandno; band 799 libavcodec/j2kenc.c Jpeg2000Prec *prec = band->prec + precno; band 805 libavcodec/j2kenc.c (int64_t)dwt_norms[codsty->transform == FF_DWT53][bandpos][lev] * (int64_t)band->i_stepsize >> 15); band 830 libavcodec/j2kenc.c Jpeg2000Band *band = reslevel->band + bandno; band 831 libavcodec/j2kenc.c Jpeg2000Prec *prec = band->prec; // we support only 1 precinct per band ATM in the encoder band 835 libavcodec/j2kenc.c yy1 = FFMIN(ff_jpeg2000_ceildivpow2(band->coord[1][0] + 1, band->log2_cblk_height) << band->log2_cblk_height, band 836 libavcodec/j2kenc.c band->coord[1][1]) - band->coord[1][0] + yy0; band 838 libavcodec/j2kenc.c if (band->coord[0][0] == band->coord[0][1] || band->coord[1][0] == band->coord[1][1]) band 849 libavcodec/j2kenc.c xx1 = FFMIN(ff_jpeg2000_ceildivpow2(band->coord[0][0] + 1, band->log2_cblk_width) << band->log2_cblk_width, band 850 libavcodec/j2kenc.c band->coord[0][1]) - band->coord[0][0] + xx0; band 866 libavcodec/j2kenc.c *ptr = (int64_t)*ptr * (int64_t)(16384 * 65536 / band->i_stepsize) >> 15 - NMSEDEC_FRACBITS; band 874 libavcodec/j2kenc.c xx1 = FFMIN(xx1 + (1 << band->log2_cblk_width), band->coord[0][1] - band->coord[0][0] + x0); band 877 libavcodec/j2kenc.c yy1 = FFMIN(yy1 + (1 << band->log2_cblk_height), band->coord[1][1] - band->coord[1][0] + y0); band 276 libavcodec/jpeg2000.c reslevel->band = av_mallocz_array(reslevel->nbands, sizeof(*reslevel->band)); band 277 libavcodec/jpeg2000.c if (!reslevel->band) band 281 libavcodec/jpeg2000.c Jpeg2000Band *band = reslevel->band + bandno; band 292 libavcodec/jpeg2000.c band->f_stepsize = 1; band 298 libavcodec/jpeg2000.c band->f_stepsize = SHL(2048 + qntsty->mant[gbandno], band 311 libavcodec/jpeg2000.c band->f_stepsize = pow(2.0, gain - qntsty->expn[gbandno]); band 312 libavcodec/jpeg2000.c band->f_stepsize *= qntsty->mant[gbandno] / 2048.0 + 1.0; band 315 libavcodec/jpeg2000.c band->f_stepsize = 0; band 322 libavcodec/jpeg2000.c band->f_stepsize *= 0.5; band 324 libavcodec/jpeg2000.c band->i_stepsize = band->f_stepsize * (1 << 15); band 334 libavcodec/jpeg2000.c band->coord[i][j] = band 340 libavcodec/jpeg2000.c band->log2_cblk_width = FFMIN(codsty->log2_cblk_width, band 342 libavcodec/jpeg2000.c band->log2_cblk_height = FFMIN(codsty->log2_cblk_height, band 350 libavcodec/jpeg2000.c band->coord[i][j] = band 358 libavcodec/jpeg2000.c band->log2_cblk_width = FFMIN(codsty->log2_cblk_width, band 360 libavcodec/jpeg2000.c band->log2_cblk_height = FFMIN(codsty->log2_cblk_height, band 368 libavcodec/jpeg2000.c band->coord[0][j] = ff_jpeg2000_ceildiv(band->coord[0][j], dx); band 370 libavcodec/jpeg2000.c band->coord[1][j] = ff_jpeg2000_ceildiv(band->coord[1][j], dy); band 373 libavcodec/jpeg2000.c band->prec = NULL; band 377 libavcodec/jpeg2000.c band->prec = av_mallocz_array(nb_precincts, sizeof(*band->prec)); band 378 libavcodec/jpeg2000.c if (!band->prec) band 382 libavcodec/jpeg2000.c Jpeg2000Prec *prec = band->prec + precno; band 391 libavcodec/jpeg2000.c prec->coord[0][0] = FFMAX(prec->coord[0][0], band->coord[0][0]); band 396 libavcodec/jpeg2000.c prec->coord[1][0] = FFMAX(prec->coord[1][0], band->coord[1][0]); band 401 libavcodec/jpeg2000.c prec->coord[0][1] = FFMIN(prec->coord[0][1], band->coord[0][1]); band 406 libavcodec/jpeg2000.c prec->coord[1][1] = FFMIN(prec->coord[1][1], band->coord[1][1]); band 411 libavcodec/jpeg2000.c band->log2_cblk_width); band 415 libavcodec/jpeg2000.c band->log2_cblk_height); band 444 libavcodec/jpeg2000.c Cx0 = (prec->coord[0][0] >> band->log2_cblk_width) << band->log2_cblk_width; band 445 libavcodec/jpeg2000.c Cx0 = Cx0 + ((cblkno % prec->nb_codeblocks_width) << band->log2_cblk_width); band 449 libavcodec/jpeg2000.c Cy0 = (prec->coord[1][0] >> band->log2_cblk_height) << band->log2_cblk_height; band 450 libavcodec/jpeg2000.c Cy0 = Cy0 + ((cblkno / prec->nb_codeblocks_width) << band->log2_cblk_height); band 454 libavcodec/jpeg2000.c cblk->coord[0][1] = FFMIN(Cx0 + (1 << band->log2_cblk_width), band 458 libavcodec/jpeg2000.c cblk->coord[1][1] = FFMIN(Cy0 + (1 << band->log2_cblk_height), band 492 libavcodec/jpeg2000.c Jpeg2000Band *band = rlevel->band + bandno; band 494 libavcodec/jpeg2000.c Jpeg2000Prec *prec = band->prec + precno; band 520 libavcodec/jpeg2000.c Jpeg2000Band *band; band 522 libavcodec/jpeg2000.c if (!reslevel->band) band 525 libavcodec/jpeg2000.c band = reslevel->band + bandno; band 527 libavcodec/jpeg2000.c if (band->prec) { band 528 libavcodec/jpeg2000.c Jpeg2000Prec *prec = band->prec + precno; band 535 libavcodec/jpeg2000.c av_freep(&band->prec); band 537 libavcodec/jpeg2000.c av_freep(&reslevel->band); band 194 libavcodec/jpeg2000.h Jpeg2000Band *band; band 748 libavcodec/jpeg2000dec.c Jpeg2000Band *band = rlevel->band + bandno; band 749 libavcodec/jpeg2000dec.c Jpeg2000Prec *prec = band->prec + precno; band 751 libavcodec/jpeg2000dec.c if (band->coord[0][0] == band->coord[0][1] || band 752 libavcodec/jpeg2000dec.c band->coord[1][0] == band->coord[1][1]) band 806 libavcodec/jpeg2000dec.c Jpeg2000Band *band = rlevel->band + bandno; band 807 libavcodec/jpeg2000dec.c Jpeg2000Prec *prec = band->prec + precno; band 1119 libavcodec/jpeg2000dec.c Jpeg2000T1Context *t1, Jpeg2000Band *band) band 1127 libavcodec/jpeg2000dec.c datap[i] = src[i] * band->f_stepsize; band 1134 libavcodec/jpeg2000dec.c Jpeg2000T1Context *t1, Jpeg2000Band *band) band 1142 libavcodec/jpeg2000dec.c datap[i] = (src[i] * band->i_stepsize + (1 << 14)) >> 15; band 1192 libavcodec/jpeg2000dec.c Jpeg2000Band *band = rlevel->band + bandno; band 1197 libavcodec/jpeg2000dec.c if (band->coord[0][0] == band->coord[0][1] || band 1198 libavcodec/jpeg2000dec.c band->coord[1][0] == band->coord[1][1]) band 1204 libavcodec/jpeg2000dec.c Jpeg2000Prec *prec = band->prec + precno; band 1219 libavcodec/jpeg2000dec.c dequantization_float(x, y, cblk, comp, &t1, band); band 1221 libavcodec/jpeg2000dec.c dequantization_int(x, y, cblk, comp, &t1, band); band 2156 libavcodec/mips/aaccoder_mips.c FFPsyBand *band = &s->psy.ch[s->cur_channel].psy_bands[(w+w2)*16+g]; band 2157 libavcodec/mips/aaccoder_mips.c uplim += band->threshold; band 2158 libavcodec/mips/aaccoder_mips.c if (band->energy <= band->threshold || band->threshold == 0.0f) { band 70 libavcodec/mips/aacpsy_mips.h AacPsyBand *band = &pch->band[w+g]; band 74 libavcodec/mips/aacpsy_mips.h band->energy = 0.0f; band 104 libavcodec/mips/aacpsy_mips.h [e]"+f"(band->energy), [f]"+f"(form_factor), band 112 libavcodec/mips/aacpsy_mips.h Temp = sqrtf((float)band_sizes[g] / band->energy); band 113 libavcodec/mips/aacpsy_mips.h band->thr = band->energy * 0.001258925f; band 114 libavcodec/mips/aacpsy_mips.h band->nz_lines = form_factor * sqrtf(Temp); band 68 libavcodec/mips/ac3dsp_mips.c int band, band_end, cond; band 80 libavcodec/mips/ac3dsp_mips.c band = ff_ac3_bin_to_band_tab[start]; band 83 libavcodec/mips/ac3dsp_mips.c m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor; band 84 libavcodec/mips/ac3dsp_mips.c band_end = ff_ac3_band_start_tab[++band]; band 208 libavcodec/nellymoserenc.c int band, best_idx, power_idx = 0; band 216 libavcodec/nellymoserenc.c for (band = 1; band < NELLY_BANDS; band++) { band 217 libavcodec/nellymoserenc.c power_candidate = cand[band] - power_idx; band 219 libavcodec/nellymoserenc.c idx_table[band] = best_idx; band 224 libavcodec/nellymoserenc.c static inline float distance(float x, float y, int band) band 233 libavcodec/nellymoserenc.c int i, j, band, best_idx; band 248 libavcodec/nellymoserenc.c for (band = 1; band < NELLY_BANDS; band++) { band 252 libavcodec/nellymoserenc.c power_candidate = cand[band]; band 254 libavcodec/nellymoserenc.c idx_min = FFMAX(0, cand[band] - q); band 255 libavcodec/nellymoserenc.c idx_max = FFMIN(OPT_SIZE, cand[band - 1] + q); band 256 libavcodec/nellymoserenc.c for (i = FFMAX(0, cand[band - 1] - q); i < FFMIN(OPT_SIZE, cand[band - 1] + q); i++) { band 257 libavcodec/nellymoserenc.c if ( isinf(opt[band - 1][i]) ) band 264 libavcodec/nellymoserenc.c tmp = opt[band - 1][i] + distance(idx, power_candidate, band); band 265 libavcodec/nellymoserenc.c if (opt[band][idx] > tmp) { band 266 libavcodec/nellymoserenc.c opt[band][idx] = tmp; band 267 libavcodec/nellymoserenc.c path[band][idx] = j; band 279 libavcodec/nellymoserenc.c band = NELLY_BANDS - 1; band 281 libavcodec/nellymoserenc.c if (best_val > opt[band][i]) { band 282 libavcodec/nellymoserenc.c best_val = opt[band][i]; band 286 libavcodec/nellymoserenc.c for (band = NELLY_BANDS - 1; band >= 0; band--) { band 287 libavcodec/nellymoserenc.c idx_table[band] = path[band][best_idx]; band 288 libavcodec/nellymoserenc.c if (band) { band 289 libavcodec/nellymoserenc.c best_idx -= ff_nelly_delta_table[path[band][best_idx]]; band 303 libavcodec/nellymoserenc.c int i, j, band, block, best_idx, power_idx = 0; band 314 libavcodec/nellymoserenc.c for (band = 0; band < NELLY_BANDS; band++) { band 316 libavcodec/nellymoserenc.c for (j = 0; j < ff_nelly_band_sizes_table[band]; i++, j++) { band 320 libavcodec/nellymoserenc.c cand[band] = band 321 libavcodec/nellymoserenc.c log(FFMAX(1.0, coeff_sum / (ff_nelly_band_sizes_table[band] << 7))) * 1024.0 / M_LN2; band 331 libavcodec/nellymoserenc.c for (band = 0; band < NELLY_BANDS; band++) { band 332 libavcodec/nellymoserenc.c if (band) { band 333 libavcodec/nellymoserenc.c power_idx += ff_nelly_delta_table[idx_table[band]]; band 334 libavcodec/nellymoserenc.c put_bits(&pb, 5, idx_table[band]); band 340 libavcodec/nellymoserenc.c for (j = 0; j < ff_nelly_band_sizes_table[band]; i++, j++) { band 115 libavcodec/on2avc.c int band = 0, i, band_type, run_len, run; band 117 libavcodec/on2avc.c while (band < num_bands) { band 124 libavcodec/on2avc.c if (band + run_len > num_bands) { band 128 libavcodec/on2avc.c for (i = band; i < band + run_len; i++) { band 130 libavcodec/on2avc.c c->band_run_end[i] = band + run_len; band 132 libavcodec/on2avc.c band += run_len; band 733 libavcodec/opus_celt.c int band = celt_freq_range[i] * (s->endband - i - 1); band 742 libavcodec/opus_celt.c trim_offset[i] = trim * (band << scale) >> 6; band 1319 libavcodec/opus_celt.c const int band, float *X, float *Y, band 1363 libavcodec/opus_celt.c int tf_change = s->tf_change[band]; band 1406 libavcodec/opus_celt.c celt_cache_index[(duration + 1) * CELT_MAX_BANDS + band]; band 1428 libavcodec/opus_celt.c pulse_cap = celt_log_freq_range[band] + duration * 8; band 1431 libavcodec/opus_celt.c qn = (dualstereo && band >= s->intensitystereo) ? 1 : band 1497 libavcodec/opus_celt.c cm = celt_decode_band(s, rc, band, x2, NULL, N, mbits, blocks, band 1550 libavcodec/opus_celt.c cm = celt_decode_band(s, rc, band, X, NULL, N, mbits, blocks, band 1561 libavcodec/opus_celt.c cm |= celt_decode_band(s, rc, band, Y, NULL, N, sbits, blocks, band 1568 libavcodec/opus_celt.c cm = celt_decode_band(s, rc, band, Y, NULL, N, sbits, blocks, band 1579 libavcodec/opus_celt.c cm |= celt_decode_band(s, rc, band, X, NULL, N, mbits, blocks, band 102 libavcodec/snow.c memset(s->plane[plane_index].band[level][orientation].state, MID_STATE, sizeof(s->plane[plane_index].band[level][orientation].state)); band 546 libavcodec/snow.c SubBand *b= &s->plane[plane_index].band[level][orientation]; band 569 libavcodec/snow.c b->parent= &s->plane[plane_index].band[level-1][orientation]; band 725 libavcodec/snow.c SubBand *b= &s->plane[plane_index].band[level][orientation]; band 101 libavcodec/snow.h SubBand band[MAX_DECOMPOSITIONS][4]; band 273 libavcodec/snowdec.c if (plane_index==2) q= s->plane[1].band[level][orientation].qlog; band 274 libavcodec/snowdec.c else if(orientation==2) q= s->plane[plane_index].band[level][1].qlog; band 276 libavcodec/snowdec.c s->plane[plane_index].band[level][orientation].qlog= q; band 511 libavcodec/snowdec.c SubBand *b= &p->band[level][orientation]; band 540 libavcodec/snowdec.c SubBand *b= &p->band[level][orientation]; band 557 libavcodec/snowdec.c SubBand * correlate_band = &p->band[0][0]; band 1365 libavcodec/snowenc.c put_symbol(&s->c, s->header_state, s->plane[plane_index].band[level][orientation].qlog, 1); band 1479 libavcodec/snowenc.c SubBand *b= &s->plane[0].band[level][orientation]; band 1528 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; band 1766 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; band 1781 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; band 2037 libavcodec/vp9.c int i = 0, band = 0, band_left = band_counts[band]; band 2045 libavcodec/vp9.c eob[band][nnz][val]++; band 2051 libavcodec/vp9.c cnt[band][nnz][0]++; band 2053 libavcodec/vp9.c band_left = band_counts[++band]; band 2056 libavcodec/vp9.c tp = p[band][nnz]; band 2064 libavcodec/vp9.c cnt[band][nnz][1]++; band 2072 libavcodec/vp9.c cnt[band][nnz][2]++; band 2126 libavcodec/vp9.c band_left = band_counts[++band]; band 2132 libavcodec/vp9.c tp = p[band][nnz]; band 419 libavcodec/wmaprodec.c int band = 1; band 423 libavcodec/wmaprodec.c for (x = 0; x < MAX_BANDS-1 && s->sfb_offsets[i][band - 1] < subframe_len; x++) { band 427 libavcodec/wmaprodec.c if (offset > s->sfb_offsets[i][band - 1]) band 428 libavcodec/wmaprodec.c s->sfb_offsets[i][band++] = offset; band 433 libavcodec/wmaprodec.c s->sfb_offsets[i][band - 1] = subframe_len; band 434 libavcodec/wmaprodec.c s->num_sfb[i] = band - 1; band 61 libavfilter/vf_delogo.c unsigned int band, int show, int direct) band 124 libavfilter/vf_delogo.c if (y >= logo_y+band && y < logo_y+logo_h-band && band 125 libavfilter/vf_delogo.c x >= logo_x+band && x < logo_x+logo_w-band) { band 130 libavfilter/vf_delogo.c if (x < logo_x+band) band 131 libavfilter/vf_delogo.c dist = FFMAX(dist, logo_x-x+band); band 132 libavfilter/vf_delogo.c else if (x >= logo_x+logo_w-band) band 133 libavfilter/vf_delogo.c dist = FFMAX(dist, x-(logo_x+logo_w-1-band)); band 135 libavfilter/vf_delogo.c if (y < logo_y+band) band 136 libavfilter/vf_delogo.c dist = FFMAX(dist, logo_y-y+band); band 137 libavfilter/vf_delogo.c else if (y >= logo_y+logo_h-band) band 138 libavfilter/vf_delogo.c dist = FFMAX(dist, y-(logo_y+logo_h-1-band)); band 140 libavfilter/vf_delogo.c *xdst = (*xsrc*dist + interp*(band-dist))/band; band 141 libavfilter/vf_delogo.c if (show && (dist == band-1)) band 153 libavfilter/vf_delogo.c int x, y, w, h, band, show; band 164 libavfilter/vf_delogo.c { "band", "set delogo area band size", OFFSET(band), AV_OPT_TYPE_INT, { .i64 = 4 }, 1, INT_MAX, FLAGS }, band 165 libavfilter/vf_delogo.c { "t", "set delogo area band size", OFFSET(band), AV_OPT_TYPE_INT, { .i64 = 4 }, 1, INT_MAX, FLAGS }, band 200 libavfilter/vf_delogo.c s->x, s->y, s->w, s->h, s->band, s->show); band 202 libavfilter/vf_delogo.c s->w += s->band*2; band 203 libavfilter/vf_delogo.c s->h += s->band*2; band 204 libavfilter/vf_delogo.c s->x -= s->band; band 205 libavfilter/vf_delogo.c s->y -= s->band; band 253 libavfilter/vf_delogo.c s->band>>FFMIN(hsub, vsub),