blk 596 libavcodec/ac3dec.c static void decode_transform_coeffs_ch(AC3DecodeContext *s, int blk, int ch, blk 605 libavcodec/ac3dec.c if (!blk && CONFIG_EAC3_DECODER) blk 608 libavcodec/ac3dec.c s->fixed_coeffs[ch][bin] = s->pre_mantissa[ch][bin][blk] >> s->dexps[ch][bin]; blk 616 libavcodec/ac3dec.c static void decode_transform_coeffs(AC3DecodeContext *s, int blk) blk 626 libavcodec/ac3dec.c decode_transform_coeffs_ch(s, blk, ch, &m); blk 631 libavcodec/ac3dec.c decode_transform_coeffs_ch(s, blk, CPL_CH, &m); blk 755 libavcodec/ac3dec.c static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, blk 773 libavcodec/ac3dec.c } else if (!blk) { blk 807 libavcodec/ac3dec.c static int decode_audio_block(AC3DecodeContext *s, int blk) blk 847 libavcodec/ac3dec.c } else if (blk == 0) { blk 853 libavcodec/ac3dec.c if (s->eac3 && (!blk || get_bits1(gbc))) { blk 900 libavcodec/ac3dec.c decode_band_structure(gbc, blk, s->eac3, 0, blk 990 libavcodec/ac3dec.c if (s->eac3 ? s->cpl_strategy_exists[blk] : get_bits1(gbc)) { blk 993 libavcodec/ac3dec.c s->cpl_in_use[blk] = get_bits1(gbc); blk 994 libavcodec/ac3dec.c if (s->cpl_in_use[blk]) { blk 1035 libavcodec/ac3dec.c decode_band_structure(gbc, blk, s->eac3, 0, cpl_start_subband, blk 1049 libavcodec/ac3dec.c if (!blk) { blk 1054 libavcodec/ac3dec.c s->cpl_in_use[blk] = s->cpl_in_use[blk-1]; blk 1057 libavcodec/ac3dec.c cpl_in_use = s->cpl_in_use[blk]; blk 1079 libavcodec/ac3dec.c } else if (!blk) { blk 1099 libavcodec/ac3dec.c if ((s->eac3 && !blk) || get_bits1(gbc)) { blk 1108 libavcodec/ac3dec.c } else if (!blk) { blk 1118 libavcodec/ac3dec.c s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch)); blk 1119 libavcodec/ac3dec.c if (s->exp_strategy[blk][ch] != EXP_REUSE) blk 1126 libavcodec/ac3dec.c if (s->exp_strategy[blk][ch] != EXP_REUSE) { blk 1141 libavcodec/ac3dec.c group_size = 3 << (s->exp_strategy[blk][ch] - 1); blk 1143 libavcodec/ac3dec.c if (blk > 0 && s->end_freq[ch] != prev) blk 1147 libavcodec/ac3dec.c if (cpl_in_use && s->exp_strategy[blk][CPL_CH] != EXP_REUSE) { blk 1149 libavcodec/ac3dec.c (3 << (s->exp_strategy[blk][CPL_CH] - 1)); blk 1154 libavcodec/ac3dec.c if (s->exp_strategy[blk][ch] != EXP_REUSE) { blk 1156 libavcodec/ac3dec.c if (decode_exponents(gbc, s->exp_strategy[blk][ch], blk 1177 libavcodec/ac3dec.c } else if (!blk) { blk 1185 libavcodec/ac3dec.c if (!s->eac3 || !blk) { blk 1195 libavcodec/ac3dec.c if (blk && s->snr_offset[ch] != snr) { blk 1205 libavcodec/ac3dec.c if (blk && prev != s->fast_gain[ch]) blk 1209 libavcodec/ac3dec.c } else if (!s->eac3 && !blk) { blk 1221 libavcodec/ac3dec.c if (blk && prev != s->fast_gain[ch]) blk 1224 libavcodec/ac3dec.c } else if (s->eac3 && !blk) { blk 1241 libavcodec/ac3dec.c if (blk && (fl != s->bit_alloc_params.cpl_fast_leak || blk 1247 libavcodec/ac3dec.c } else if (!s->eac3 && !blk) { blk 1279 libavcodec/ac3dec.c } else if (blk == 0) { blk 1327 libavcodec/ac3dec.c decode_transform_coeffs(s, blk); blk 1415 libavcodec/ac3dec.c int blk, ch, err, ret; blk 1548 libavcodec/ac3dec.c for (blk = 0; blk < s->num_blocks; blk++) { blk 1549 libavcodec/ac3dec.c if (!err && decode_audio_block(s, blk)) { blk 1555 libavcodec/ac3dec.c memcpy(((SHORTFLOAT*)frame->data[ch]) + AC3_BLOCK_SIZE*blk, output[ch], AC3_BLOCK_SIZE*sizeof(SHORTFLOAT)); blk 30 libavcodec/ac3dsp.c int blk, i; blk 38 libavcodec/ac3dsp.c for (blk = 0; blk < num_reuse_blocks; blk++) { blk 147 libavcodec/ac3dsp.c int blk, bap; blk 150 libavcodec/ac3dsp.c for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) { blk 152 libavcodec/ac3dsp.c bits += (mant_cnt[blk][1] / 3) * 5; blk 155 libavcodec/ac3dsp.c bits += ((mant_cnt[blk][2] / 3) + (mant_cnt[blk][4] >> 1)) * 7; blk 157 libavcodec/ac3dsp.c bits += mant_cnt[blk][3] * 3; blk 160 libavcodec/ac3dsp.c bits += mant_cnt[blk][bap] * ff_ac3_bap_bits[bap]; blk 202 libavcodec/ac3enc.c int blk, ch; blk 208 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 209 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 218 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 219 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 231 libavcodec/ac3enc.c block->new_cpl_strategy = !blk; blk 232 libavcodec/ac3enc.c if (blk) { blk 234 libavcodec/ac3enc.c if (block->channel_in_cpl[ch] != s->blocks[blk-1].channel_in_cpl[ch]) { blk 242 libavcodec/ac3enc.c if (!blk || (block->cpl_in_use && !got_cpl_snr)) { blk 254 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 255 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 274 libavcodec/ac3enc.c int blk, bnd, i; blk 281 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 282 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 359 libavcodec/ac3enc.c int ch, blk, blk1; blk 370 libavcodec/ac3enc.c for (blk = 1; blk < s->num_blocks; blk++, exp += AC3_MAX_COEFS) { blk 372 libavcodec/ac3enc.c if (!s->blocks[blk-1].cpl_in_use) { blk 373 libavcodec/ac3enc.c exp_strategy[blk] = EXP_NEW; blk 375 libavcodec/ac3enc.c } else if (!s->blocks[blk].cpl_in_use) { blk 376 libavcodec/ac3enc.c exp_strategy[blk] = EXP_REUSE; blk 379 libavcodec/ac3enc.c } else if (s->blocks[blk].channel_in_cpl[ch] != s->blocks[blk-1].channel_in_cpl[ch]) { blk 380 libavcodec/ac3enc.c exp_strategy[blk] = EXP_NEW; blk 384 libavcodec/ac3enc.c exp_strategy[blk] = EXP_REUSE; blk 385 libavcodec/ac3enc.c if (ch == CPL_CH && exp_diff > (EXP_DIFF_THRESHOLD * (s->blocks[blk].end_freq[ch] - s->start_freq[ch]) / AC3_MAX_COEFS)) blk 386 libavcodec/ac3enc.c exp_strategy[blk] = EXP_NEW; blk 388 libavcodec/ac3enc.c exp_strategy[blk] = EXP_NEW; blk 393 libavcodec/ac3enc.c blk = 0; blk 394 libavcodec/ac3enc.c while (blk < s->num_blocks) { blk 395 libavcodec/ac3enc.c blk1 = blk + 1; blk 398 libavcodec/ac3enc.c exp_strategy[blk] = exp_strategy_reuse_tab[s->num_blks_code][blk1-blk-1]; blk 399 libavcodec/ac3enc.c blk = blk1; blk 405 libavcodec/ac3enc.c for (blk = 1; blk < s->num_blocks; blk++) blk 406 libavcodec/ac3enc.c s->exp_strategy[ch][blk] = EXP_REUSE; blk 498 libavcodec/ac3enc.c int blk, blk1, ch, cpl; blk 507 libavcodec/ac3enc.c blk = 0; blk 508 libavcodec/ac3enc.c while (blk < s->num_blocks) { blk 509 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 512 libavcodec/ac3enc.c blk++; blk 516 libavcodec/ac3enc.c blk1 = blk + 1; blk 520 libavcodec/ac3enc.c s->exp_ref_block[ch][blk] = blk; blk 522 libavcodec/ac3enc.c s->exp_ref_block[ch][blk1] = blk; blk 525 libavcodec/ac3enc.c num_reuse_blocks = blk1 - blk - 1; blk 531 libavcodec/ac3enc.c encode_exponents_blk_ch(exp, nb_coefs, exp_strategy[blk], cpl); blk 534 libavcodec/ac3enc.c blk = blk1; blk 548 libavcodec/ac3enc.c int blk, ch; blk 552 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 553 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 555 libavcodec/ac3enc.c int exp_strategy = s->exp_strategy[ch][blk]; blk 580 libavcodec/ac3enc.c int blk, ch, i, cpl; blk 586 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 587 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 589 libavcodec/ac3enc.c int exp_strategy = s->exp_strategy[ch][blk]; blk 655 libavcodec/ac3enc.c int blk; blk 703 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 727 libavcodec/ac3enc.c if (!blk) blk 797 libavcodec/ac3enc.c int blk, ch; blk 829 libavcodec/ac3enc.c for (blk = 1; blk < s->num_blocks; blk++) { blk 830 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 841 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) blk 842 libavcodec/ac3enc.c frame_bits += 2 * s->blocks[blk].cpl_in_use; blk 857 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 858 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 897 libavcodec/ac3enc.c if (!s->eac3 || blk > 0) blk 899 libavcodec/ac3enc.c if (s->blocks[blk].new_rematrixing_strategy) blk 905 libavcodec/ac3enc.c if (s->exp_strategy[ch][blk] != EXP_REUSE) { blk 942 libavcodec/ac3enc.c int blk, ch; blk 944 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 945 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 950 libavcodec/ac3enc.c if (s->exp_strategy[ch][blk] != EXP_REUSE) { blk 972 libavcodec/ac3enc.c int blk, ch; blk 980 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) blk 981 libavcodec/ac3enc.c s->ref_bap[ch][blk] = ref_bap + AC3_MAX_COEFS * s->exp_ref_block[ch][blk]; blk 997 libavcodec/ac3enc.c int blk; blk 999 libavcodec/ac3enc.c for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) { blk 1000 libavcodec/ac3enc.c memset(mant_cnt[blk], 0, sizeof(mant_cnt[blk])); blk 1001 libavcodec/ac3enc.c mant_cnt[blk][1] = mant_cnt[blk][2] = 2; blk 1002 libavcodec/ac3enc.c mant_cnt[blk][4] = 1; blk 1021 libavcodec/ac3enc.c int blk; blk 1023 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 1024 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 1027 libavcodec/ac3enc.c s->ac3dsp.update_bap_counts(mant_cnt[blk], blk 1028 libavcodec/ac3enc.c s->ref_bap[ch][blk] + start, blk 1065 libavcodec/ac3enc.c int blk, ch; blk 1070 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 1071 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 1078 libavcodec/ac3enc.c if (s->exp_strategy[ch][blk] != EXP_REUSE) { blk 1082 libavcodec/ac3enc.c ff_ac3_bap_tab, s->ref_bap[ch][blk]); blk 1301 libavcodec/ac3enc.c int blk, ch, ch0=0, got_cpl; blk 1303 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 1304 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 1315 libavcodec/ac3enc.c s->blocks[s->exp_ref_block[ch][blk]].exp[ch], blk 1316 libavcodec/ac3enc.c s->ref_bap[ch][blk], block->qmant[ch], blk 1384 libavcodec/ac3enc.c static void output_audio_block(AC3EncodeContext *s, int blk) blk 1387 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 1457 libavcodec/ac3enc.c if (!s->eac3 || blk > 0) blk 1469 libavcodec/ac3enc.c put_bits(&s->pb, 2, s->exp_strategy[ch][blk]); blk 1471 libavcodec/ac3enc.c put_bits(&s->pb, 1, s->exp_strategy[s->lfe_channel][blk]); blk 1476 libavcodec/ac3enc.c if (s->exp_strategy[ch][blk] != EXP_REUSE && !block->channel_in_cpl[ch]) blk 1485 libavcodec/ac3enc.c if (s->exp_strategy[ch][blk] == EXP_REUSE) blk 1492 libavcodec/ac3enc.c nb_groups = exponent_group_tab[cpl][s->exp_strategy[ch][blk]-1][block->end_freq[ch]-s->start_freq[ch]]; blk 1503 libavcodec/ac3enc.c baie = (blk == 0); blk 1555 libavcodec/ac3enc.c b = s->ref_bap[ch][blk][i]; blk 1662 libavcodec/ac3enc.c int blk; blk 1668 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) blk 1669 libavcodec/ac3enc.c output_audio_block(s, blk); blk 2018 libavcodec/ac3enc.c int blk, ch; blk 2039 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 2040 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 2252 libavcodec/ac3enc.c int blk, ch, av_uninit(cpl_start); blk 2267 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) blk 2268 libavcodec/ac3enc.c s->blocks[blk].end_freq[ch] = s->bandwidth_code * 3 + 73; blk 2273 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) blk 2274 libavcodec/ac3enc.c s->blocks[blk].end_freq[ch] = 7; blk 2314 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) blk 2315 libavcodec/ac3enc.c s->blocks[blk].end_freq[CPL_CH] = s->cpl_end_freq; blk 2323 libavcodec/ac3enc.c int blk, ch; blk 2355 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 2356 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 2380 libavcodec/ac3enc.c block->grouped_exp[ch] = &s->grouped_exp_buffer[128 * (blk * channels + ch)]; blk 2381 libavcodec/ac3enc.c block->psd[ch] = &s->psd_buffer [AC3_MAX_COEFS * (blk * channels + ch)]; blk 2382 libavcodec/ac3enc.c block->band_psd[ch] = &s->band_psd_buffer [64 * (blk * channels + ch)]; blk 2383 libavcodec/ac3enc.c block->mask[ch] = &s->mask_buffer [64 * (blk * channels + ch)]; blk 2384 libavcodec/ac3enc.c block->qmant[ch] = &s->qmant_buffer [AC3_MAX_COEFS * (blk * channels + ch)]; blk 2386 libavcodec/ac3enc.c block->cpl_coord_exp[ch] = &s->cpl_coord_exp_buffer [16 * (blk * channels + ch)]; blk 2387 libavcodec/ac3enc.c block->cpl_coord_mant[ch] = &s->cpl_coord_mant_buffer[16 * (blk * channels + ch)]; blk 2391 libavcodec/ac3enc.c block->exp[ch] = &s->exp_buffer [AC3_MAX_COEFS * (s->num_blocks * ch + blk)]; blk 2392 libavcodec/ac3enc.c block->mdct_coef[ch] = &s->mdct_coef_buffer [AC3_MAX_COEFS * (s->num_blocks * ch + blk)]; blk 2399 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 2400 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 2404 libavcodec/ac3enc.c block->fixed_coef[ch] = &s->fixed_coef_buffer[AC3_MAX_COEFS * (s->num_blocks * ch + blk)]; blk 2407 libavcodec/ac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 2408 libavcodec/ac3enc.c AC3Block *block = &s->blocks[blk]; blk 94 libavcodec/ac3enc_fixed.c int blk, ch; blk 96 libavcodec/ac3enc_fixed.c for (blk = 0; blk < s->num_blocks; blk++) { blk 97 libavcodec/ac3enc_fixed.c AC3Block *block = &s->blocks[blk]; blk 103 libavcodec/ac3enc_template.c int blk, ch; blk 106 libavcodec/ac3enc_template.c for (blk = 0; blk < s->num_blocks; blk++) { blk 107 libavcodec/ac3enc_template.c AC3Block *block = &s->blocks[blk]; blk 108 libavcodec/ac3enc_template.c const SampleType *input_samples = &s->planar_samples[ch][blk * AC3_BLOCK_SIZE]; blk 139 libavcodec/ac3enc_template.c int av_uninit(blk), ch, bnd, i, j; blk 155 libavcodec/ac3enc_template.c for (blk = 0; blk < s->num_blocks; blk++) { blk 156 libavcodec/ac3enc_template.c AC3Block *block = &s->blocks[blk]; blk 180 libavcodec/ac3enc_template.c for (blk = 0; blk < s->num_blocks; blk++) { blk 181 libavcodec/ac3enc_template.c AC3Block *block = &s->blocks[blk]; blk 186 libavcodec/ac3enc_template.c MAC_COEF(energy[blk][ch][bnd], v, v); blk 195 libavcodec/ac3enc_template.c for (blk = 0; blk < s->num_blocks; blk++) { blk 196 libavcodec/ac3enc_template.c AC3Block *block = &s->blocks[blk]; blk 203 libavcodec/ac3enc_template.c cpl_coords[blk][ch][bnd] = calc_cpl_coord(energy[blk][ch][bnd], blk 204 libavcodec/ac3enc_template.c energy[blk][CPL_CH][bnd]); blk 210 libavcodec/ac3enc_template.c for (blk = 0; blk < s->num_blocks; blk++) { blk 211 libavcodec/ac3enc_template.c AC3Block *block = &s->blocks[blk]; blk 212 libavcodec/ac3enc_template.c AC3Block *block0 = blk ? &s->blocks[blk-1] : NULL; blk 222 libavcodec/ac3enc_template.c if (blk == 0 || !block0->cpl_in_use) { blk 234 libavcodec/ac3enc_template.c coord_diff += FFABS(cpl_coords[blk-1][ch][bnd] - blk 235 libavcodec/ac3enc_template.c cpl_coords[blk ][ch][bnd]); blk 249 libavcodec/ac3enc_template.c blk = 0; blk 250 libavcodec/ac3enc_template.c while (blk < s->num_blocks) { blk 252 libavcodec/ac3enc_template.c AC3Block *block = &s->blocks[blk]; blk 255 libavcodec/ac3enc_template.c blk++; blk 263 libavcodec/ac3enc_template.c energy_cpl = energy[blk][CPL_CH][bnd]; blk 264 libavcodec/ac3enc_template.c energy_ch = energy[blk][ch][bnd]; blk 265 libavcodec/ac3enc_template.c blk1 = blk+1; blk 273 libavcodec/ac3enc_template.c cpl_coords[blk][ch][bnd] = calc_cpl_coord(energy_ch, energy_cpl); blk 275 libavcodec/ac3enc_template.c blk = blk1; blk 280 libavcodec/ac3enc_template.c for (blk = 0; blk < s->num_blocks; blk++) { blk 281 libavcodec/ac3enc_template.c AC3Block *block = &s->blocks[blk]; blk 286 libavcodec/ac3enc_template.c s->ac3dsp.float_to_fixed24(fixed_cpl_coords[blk][1], blk 287 libavcodec/ac3enc_template.c cpl_coords[blk][1], blk 291 libavcodec/ac3enc_template.c fixed_cpl_coords[blk][1], blk 320 libavcodec/ac3enc_template.c int cpl_mant = (fixed_cpl_coords[blk][ch][bnd] << (5 + cpl_exp + master_exp * 3)) >> 24; blk 342 libavcodec/ac3enc_template.c int blk, bnd; blk 348 libavcodec/ac3enc_template.c for (blk = 0; blk < s->num_blocks; blk++) { blk 349 libavcodec/ac3enc_template.c block = &s->blocks[blk]; blk 350 libavcodec/ac3enc_template.c block->new_rematrixing_strategy = !blk; blk 356 libavcodec/ac3enc_template.c if (blk && block->num_rematrixing_bands != block0->num_rematrixing_bands) blk 381 libavcodec/ac3enc_template.c if (blk && blk 308 libavcodec/aic.c int ret, i, mb, blk; blk 333 libavcodec/aic.c for (blk = 0; blk < 4; blk++) { blk 339 libavcodec/aic.c &base_y, &ext_y, blk); blk 344 libavcodec/aic.c dst = Y + (blk >> 1) * 8 * ystride + (blk & 1) * 8; blk 347 libavcodec/aic.c dst = Y + (blk & 1) * 8 + (blk >> 1) * ystride; blk 354 libavcodec/aic.c for (blk = 0; blk < 2; blk++) { blk 359 libavcodec/aic.c ctx->idsp.put_signed_pixels_clamped(ctx->block, C[blk], blk 360 libavcodec/aic.c ctx->frame->linesize[blk + 1]); blk 361 libavcodec/aic.c C[blk] += 8; blk 810 libavcodec/bink.c int blk, ret; blk 841 libavcodec/bink.c blk = binkb_get_value(c, BINKB_SRC_BLOCK_TYPES); blk 842 libavcodec/bink.c switch (blk) { blk 942 libavcodec/bink.c av_log(c->avctx, AV_LOG_ERROR, "Unknown block type %d\n", blk); blk 956 libavcodec/bink.c int blk, ret; blk 1010 libavcodec/bink.c blk = get_value(c, BINK_SRC_BLOCK_TYPES); blk 1012 libavcodec/bink.c if ((by & 1) && blk == SCALED_BLOCK) { blk 1018 libavcodec/bink.c switch (blk) { blk 1023 libavcodec/bink.c blk = get_value(c, BINK_SRC_SUB_BLOCK_TYPES); blk 1024 libavcodec/bink.c switch (blk) { blk 1073 libavcodec/bink.c av_log(c->avctx, AV_LOG_ERROR, "Incorrect 16x16 block type %d\n", blk); blk 1076 libavcodec/bink.c if (blk != FILL_BLOCK) blk 1171 libavcodec/bink.c av_log(c->avctx, AV_LOG_ERROR, "Unknown block type %d\n", blk); blk 96 libavcodec/dv.c int x, y, blk; blk 101 libavcodec/dv.c blk = (chan * 11 + seq) * 27 + slot; blk 112 libavcodec/dv.c i = (4 * chan + blk + off[m]) % 11; blk 113 libavcodec/dv.c k = (blk / 11) % 27; blk 121 libavcodec/dv.c blk = (chan * 10 + seq) * 27 + slot; blk 123 libavcodec/dv.c i = (4 * chan + (seq / 5) + 2 * blk + off[m]) % 10; blk 124 libavcodec/dv.c k = (blk / 5) % 27; blk 136 libavcodec/dv.c blk = (chan * 10 + seq) * 27 + slot; blk 138 libavcodec/dv.c i = (4 * chan + (seq / 5) + 2 * blk + off[m]) % 10; blk 139 libavcodec/dv.c k = (blk / 5) % 27 + (i & 1) * 3; blk 251 libavcodec/dvenc.c LOCAL_ALIGNED_16(int16_t, blk, [64]); blk 271 libavcodec/dvenc.c av_assert2((((int) blk) & 15) == 0); blk 282 libavcodec/dvenc.c s->get_pixels(blk, data, linesize); blk 283 libavcodec/dvenc.c s->fdct[bi->dct_mode](blk); blk 288 libavcodec/dvenc.c memset(blk, 0, 64 * sizeof(*blk)); blk 291 libavcodec/dvenc.c bi->mb[0] = blk[0]; blk 300 libavcodec/dvenc.c int level = blk[zigzag_scan[i]]; blk 205 libavcodec/eac3dec.c int bin, blk, gs; blk 248 libavcodec/eac3dec.c for (blk = 0; blk < 6; blk++) { blk 249 libavcodec/eac3dec.c s->pre_mantissa[ch][bin][blk] = (av_lfg_get(&s->dith_state) & 0x7FFFFF) - 0x400000; blk 254 libavcodec/eac3dec.c for (blk = 0; blk < 6; blk++) { blk 255 libavcodec/eac3dec.c s->pre_mantissa[ch][bin][blk] = ff_eac3_mantissa_vq[hebap][v][blk] << 8; blk 267 libavcodec/eac3dec.c for (blk = 0; blk < 6; blk++) { blk 289 libavcodec/eac3dec.c s->pre_mantissa[ch][bin][blk] = mant; blk 298 libavcodec/eac3dec.c int i, blk, ch; blk 406 libavcodec/eac3dec.c for (blk = 0; blk < s->num_blocks; blk++) { blk 502 libavcodec/eac3dec.c for (blk = 0; blk < s->num_blocks; blk++) { blk 503 libavcodec/eac3dec.c s->cpl_strategy_exists[blk] = (!blk || get_bits1(gbc)); blk 504 libavcodec/eac3dec.c if (s->cpl_strategy_exists[blk]) { blk 505 libavcodec/eac3dec.c s->cpl_in_use[blk] = get_bits1(gbc); blk 507 libavcodec/eac3dec.c s->cpl_in_use[blk] = s->cpl_in_use[blk-1]; blk 509 libavcodec/eac3dec.c num_cpl_blocks += s->cpl_in_use[blk]; blk 518 libavcodec/eac3dec.c for (blk = 0; blk < s->num_blocks; blk++) { blk 519 libavcodec/eac3dec.c for (ch = !s->cpl_in_use[blk]; ch <= s->fbw_channels; ch++) { blk 520 libavcodec/eac3dec.c s->exp_strategy[blk][ch] = get_bits(gbc, 2); blk 527 libavcodec/eac3dec.c for (blk = 0; blk < 6; blk++) { blk 528 libavcodec/eac3dec.c s->exp_strategy[blk][ch] = ff_eac3_frm_expstr[frmchexpstr][blk]; blk 534 libavcodec/eac3dec.c for (blk = 0; blk < s->num_blocks; blk++) { blk 535 libavcodec/eac3dec.c s->exp_strategy[blk][s->lfe_ch] = get_bits1(gbc); blk 553 libavcodec/eac3dec.c for (blk = 1; blk < 6; blk++) { blk 554 libavcodec/eac3dec.c if ((s->exp_strategy[blk][ch] != EXP_REUSE) || blk 555 libavcodec/eac3dec.c (!ch && s->cpl_strategy_exists[blk])) { blk 97 libavcodec/eac3enc.c int ch, blk; blk 103 libavcodec/eac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 104 libavcodec/eac3enc.c AC3Block *block = &s->blocks[blk]; blk 118 libavcodec/eac3enc.c for (blk = 0; blk < s->num_blocks; blk++) { blk 119 libavcodec/eac3enc.c AC3Block *block = &s->blocks[blk]; blk 130 libavcodec/eac3enc.c int blk, ch; blk 214 libavcodec/eac3enc.c for (blk = 1; blk < s->num_blocks; blk++) { blk 215 libavcodec/eac3enc.c AC3Block *block = &s->blocks[blk]; blk 226 libavcodec/eac3enc.c for (blk = 0; blk < s->num_blocks; blk++) blk 227 libavcodec/eac3enc.c for (ch = !s->blocks[blk].cpl_in_use; ch <= s->fbw_channels; ch++) blk 228 libavcodec/eac3enc.c put_bits(&s->pb, 2, s->exp_strategy[ch][blk]); blk 231 libavcodec/eac3enc.c for (blk = 0; blk < s->num_blocks; blk++) blk 232 libavcodec/eac3enc.c put_bits(&s->pb, 1, s->exp_strategy[s->lfe_channel][blk]); blk 82 libavcodec/fic.c static av_always_inline void fic_idct(int16_t *blk, int step, int shift, int rnd) blk 84 libavcodec/fic.c const int t0 = 27246 * blk[3 * step] + 18405 * blk[5 * step]; blk 85 libavcodec/fic.c const int t1 = 27246 * blk[5 * step] - 18405 * blk[3 * step]; blk 86 libavcodec/fic.c const int t2 = 6393 * blk[7 * step] + 32139 * blk[1 * step]; blk 87 libavcodec/fic.c const int t3 = 6393 * blk[1 * step] - 32139 * blk[7 * step]; blk 92 libavcodec/fic.c const int t8 = 17734 * blk[2 * step] - 42813 * blk[6 * step]; blk 93 libavcodec/fic.c const int t9 = 17734 * blk[6 * step] + 42814 * blk[2 * step]; blk 94 libavcodec/fic.c const int tA = (blk[0 * step] - blk[4 * step] << 15) + rnd; blk 95 libavcodec/fic.c const int tB = (blk[0 * step] + blk[4 * step] << 15) + rnd; blk 96 libavcodec/fic.c blk[0 * step] = ( t4 + t9 + tB) >> shift; blk 97 libavcodec/fic.c blk[1 * step] = ( t6 + t7 + t8 + tA) >> shift; blk 98 libavcodec/fic.c blk[2 * step] = ( t6 - t7 - t8 + tA) >> shift; blk 99 libavcodec/fic.c blk[3 * step] = ( t5 - t9 + tB) >> shift; blk 100 libavcodec/fic.c blk[4 * step] = ( -t5 - t9 + tB) >> shift; blk 101 libavcodec/fic.c blk[5 * step] = (-(t6 - t7) - t8 + tA) >> shift; blk 102 libavcodec/fic.c blk[6 * step] = (-(t6 + t7) + t8 + tA) >> shift; blk 103 libavcodec/fic.c blk[7 * step] = ( -t4 + t9 + tB) >> shift; blk 84 libavcodec/hqx.c static inline void idct_col(int16_t *blk, const uint8_t *quant) blk 90 libavcodec/hqx.c s0 = (int) blk[0 * 8] * quant[0 * 8]; blk 91 libavcodec/hqx.c s1 = (int) blk[1 * 8] * quant[1 * 8]; blk 92 libavcodec/hqx.c s2 = (int) blk[2 * 8] * quant[2 * 8]; blk 93 libavcodec/hqx.c s3 = (int) blk[3 * 8] * quant[3 * 8]; blk 94 libavcodec/hqx.c s4 = (int) blk[4 * 8] * quant[4 * 8]; blk 95 libavcodec/hqx.c s5 = (int) blk[5 * 8] * quant[5 * 8]; blk 96 libavcodec/hqx.c s6 = (int) blk[6 * 8] * quant[6 * 8]; blk 97 libavcodec/hqx.c s7 = (int) blk[7 * 8] * quant[7 * 8]; blk 120 libavcodec/hqx.c blk[0 * 8] = t13 + t4 * 2; blk 121 libavcodec/hqx.c blk[1 * 8] = t12 + t9 * 2; blk 122 libavcodec/hqx.c blk[2 * 8] = t11 + t8 * 2; blk 123 libavcodec/hqx.c blk[3 * 8] = t10 + t5 * 2; blk 124 libavcodec/hqx.c blk[4 * 8] = t10; blk 125 libavcodec/hqx.c blk[5 * 8] = t11; blk 126 libavcodec/hqx.c blk[6 * 8] = t12; blk 127 libavcodec/hqx.c blk[7 * 8] = t13; blk 130 libavcodec/hqx.c static inline void idct_row(int16_t *blk) blk 135 libavcodec/hqx.c t0 = (blk[3] * 19266 + blk[5] * 12873) >> 14; blk 136 libavcodec/hqx.c t1 = (blk[5] * 19266 - blk[3] * 12873) >> 14; blk 137 libavcodec/hqx.c t2 = ((blk[7] * 4520 + blk[1] * 22725) >> 14) - t0; blk 138 libavcodec/hqx.c t3 = ((blk[1] * 4520 - blk[7] * 22725) >> 14) - t1; blk 145 libavcodec/hqx.c tA = (blk[2] * 8867 - blk[6] * 21407) >> 14; blk 146 libavcodec/hqx.c tB = (blk[6] * 8867 + blk[2] * 21407) >> 14; blk 147 libavcodec/hqx.c tC = blk[0] - blk[4]; blk 148 libavcodec/hqx.c tD = blk[4] * 2 + tC; blk 156 libavcodec/hqx.c blk[0] = (t13 + t4 * 2 + 4) >> 3; blk 157 libavcodec/hqx.c blk[1] = (t12 + t9 * 2 + 4) >> 3; blk 158 libavcodec/hqx.c blk[2] = (t11 + t8 * 2 + 4) >> 3; blk 159 libavcodec/hqx.c blk[3] = (t10 + t5 * 2 + 4) >> 3; blk 160 libavcodec/hqx.c blk[4] = (t10 + 4) >> 3; blk 161 libavcodec/hqx.c blk[5] = (t11 + 4) >> 3; blk 162 libavcodec/hqx.c blk[6] = (t12 + 4) >> 3; blk 163 libavcodec/hqx.c blk[7] = (t13 + 4) >> 3; blk 615 libavcodec/ivi_common.c int mbn, blk, num_blocks, blk_size, ret, is_intra; blk 706 libavcodec/ivi_common.c for (blk = 0; blk < num_blocks; blk++) { blk 708 libavcodec/ivi_common.c if (blk & 1) { blk 710 libavcodec/ivi_common.c } else if (blk == 2) { blk 762 libavcodec/ivi_common.c int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type; blk 854 libavcodec/ivi_common.c for (blk = 0; blk < num_blocks; blk++) { blk 856 libavcodec/ivi_common.c offs = mb->buf_offs + band->blk_size * ((blk & 1) + !!(blk & 2) * band->pitch); blk 64 libavcodec/mss34dsp.c #define DCT_TEMPLATE(blk, step, SOP, shift) \ blk 65 libavcodec/mss34dsp.c const int t0 = -39409 * blk[7 * step] - 58980 * blk[1 * step]; \ blk 66 libavcodec/mss34dsp.c const int t1 = 39410 * blk[1 * step] - 58980 * blk[7 * step]; \ blk 67 libavcodec/mss34dsp.c const int t2 = -33410 * blk[5 * step] - 167963 * blk[3 * step]; \ blk 68 libavcodec/mss34dsp.c const int t3 = 33410 * blk[3 * step] - 167963 * blk[5 * step]; \ blk 69 libavcodec/mss34dsp.c const int t4 = blk[3 * step] + blk[7 * step]; \ blk 70 libavcodec/mss34dsp.c const int t5 = blk[1 * step] + blk[5 * step]; \ blk 73 libavcodec/mss34dsp.c const int t8 = 35470 * blk[2 * step] - 85623 * blk[6 * step]; \ blk 74 libavcodec/mss34dsp.c const int t9 = 35470 * blk[6 * step] + 85623 * blk[2 * step]; \ blk 75 libavcodec/mss34dsp.c const int tA = SOP(blk[0 * step] - blk[4 * step]); \ blk 76 libavcodec/mss34dsp.c const int tB = SOP(blk[0 * step] + blk[4 * step]); \ blk 78 libavcodec/mss34dsp.c blk[0 * step] = ( t1 + t6 + t9 + tB) >> shift; \ blk 79 libavcodec/mss34dsp.c blk[1 * step] = ( t3 + t7 + t8 + tA) >> shift; \ blk 80 libavcodec/mss34dsp.c blk[2 * step] = ( t2 + t6 - t8 + tA) >> shift; \ blk 81 libavcodec/mss34dsp.c blk[3 * step] = ( t0 + t7 - t9 + tB) >> shift; \ blk 82 libavcodec/mss34dsp.c blk[4 * step] = (-(t0 + t7) - t9 + tB) >> shift; \ blk 83 libavcodec/mss34dsp.c blk[5 * step] = (-(t2 + t6) - t8 + tA) >> shift; \ blk 84 libavcodec/mss34dsp.c blk[6 * step] = (-(t3 + t7) + t8 + tA) >> shift; \ blk 85 libavcodec/mss34dsp.c blk[7 * step] = (-(t1 + t6) + t9 + tB) >> shift; \ blk 156 libavcodec/ppc/idctdsp.c static void idct_altivec(int16_t *blk) blk 158 libavcodec/ppc/idctdsp.c vec_s16 *block = (vec_s16 *) blk; blk 172 libavcodec/ppc/idctdsp.c static void idct_put_altivec(uint8_t *dest, int stride, int16_t *blk) blk 174 libavcodec/ppc/idctdsp.c vec_s16 *block = (vec_s16 *) blk; blk 201 libavcodec/ppc/idctdsp.c static void idct_add_altivec(uint8_t *dest, int stride, int16_t *blk) blk 203 libavcodec/ppc/idctdsp.c vec_s16 *block = (vec_s16 *) blk; blk 405 libavcodec/smacker.c int blocks, blk, bw, bh; blk 437 libavcodec/smacker.c blk = 0; blk 442 libavcodec/smacker.c while(blk < blocks) { blk 450 libavcodec/smacker.c while(run-- && blk < blocks){ blk 455 libavcodec/smacker.c out = smk->pic->data[0] + (blk / bw) * (stride * 4) + (blk % bw) * 4; blk 466 libavcodec/smacker.c blk++; blk 475 libavcodec/smacker.c while(run-- && blk < blocks){ blk 476 libavcodec/smacker.c out = smk->pic->data[0] + (blk / bw) * (stride * 4) + (blk % bw) * 4; blk 516 libavcodec/smacker.c blk++; blk 520 libavcodec/smacker.c while(run-- && blk < blocks) blk 521 libavcodec/smacker.c blk++; blk 525 libavcodec/smacker.c while(run-- && blk < blocks){ blk 527 libavcodec/smacker.c out = smk->pic->data[0] + (blk / bw) * (stride * 4) + (blk % bw) * 4; blk 533 libavcodec/smacker.c blk++; blk 93 libavcodec/vb.c int blk, blocks, t, blk2; blk 108 libavcodec/vb.c for (blk = 0; blk < blocks; blk++) { blk 109 libavcodec/vb.c if (!(blk & 3)) { blk 169 libavcodec/vb.c av_log(c->avctx, AV_LOG_ERROR, "Invalid opcode seen @%d\n", blk); blk 57 libavutil/sha.c #define R1(v,w,x,y,z,i) z += (((w)&((x)^(y)))^(y)) + blk (i) + 0x5A827999 + rol(v, 5); w = rol(w, 30); blk 58 libavutil/sha.c #define R2(v,w,x,y,z,i) z += ( (w)^(x) ^(y)) + blk (i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30); blk 59 libavutil/sha.c #define R3(v,w,x,y,z,i) z += ((((w)|(x))&(y))|((w)&(x))) + blk (i) + 0x8F1BBCDC + rol(v, 5); w = rol(w, 30); blk 60 libavutil/sha.c #define R4(v,w,x,y,z,i) z += ( (w)^(x) ^(y)) + blk (i) + 0xCA62C1D6 + rol(v, 5); w = rol(w, 30); blk 199 libavutil/sha.c T1 = blk(i); \ blk 222 libavutil/sha.c T1 = blk(i); blk 116 libavutil/sha512.c T1 = blk(i); \ blk 140 libavutil/sha512.c T1 = blk(i);