mb 207 libavcodec/aic.c int mb, idx; mb 218 libavcodec/aic.c for (mb = 0; mb < slice_width; mb++) { mb 236 libavcodec/aic.c for (mb = 0; mb < slice_width; mb++) { mb 308 libavcodec/aic.c int ret, i, mb, blk; mb 332 libavcodec/aic.c for (mb = 0; mb < slice_width; mb++) { mb 152 libavcodec/cinepakenc.c mb_info *mb; //MB RD state mb 239 libavcodec/cinepakenc.c if (!(s->mb = av_malloc_array(mb_count, sizeof(mb_info)))) mb 303 libavcodec/cinepakenc.c av_freep(&s->mb); mb 324 libavcodec/cinepakenc.c mb_info *mb; mb 343 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 344 libavcodec/cinepakenc.c ret += FF_LAMBDA_SCALE * mb->v1_error; mb 346 libavcodec/cinepakenc.c *serr += mb->v1_error; mb 350 libavcodec/cinepakenc.c mb->best_encoding = ENC_V1; mb 361 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 362 libavcodec/cinepakenc.c if(mb->best_encoding == ENC_V1) mb 363 libavcodec/cinepakenc.c score1 = s->lambda * 9 + FF_LAMBDA_SCALE * (mberr=mb->v1_error); mb 365 libavcodec/cinepakenc.c score1 = s->lambda * 33 + FF_LAMBDA_SCALE * (mberr=mb->v4_error); mb 373 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 374 libavcodec/cinepakenc.c score1 = s->lambda * 9 + FF_LAMBDA_SCALE * mb->v1_error; mb 375 libavcodec/cinepakenc.c score2 = s->lambda * 33 + FF_LAMBDA_SCALE * mb->v4_error; mb 380 libavcodec/cinepakenc.c *serr += mb->v1_error; mb 382 libavcodec/cinepakenc.c mb->best_encoding = ENC_V1; mb 386 libavcodec/cinepakenc.c *serr += mb->v4_error; mb 388 libavcodec/cinepakenc.c mb->best_encoding = ENC_V4; mb 399 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 402 libavcodec/cinepakenc.c score1 = s->lambda * 1 + FF_LAMBDA_SCALE * mb->skip_error; mb 403 libavcodec/cinepakenc.c if(mb->best_encoding == ENC_SKIP) { mb 406 libavcodec/cinepakenc.c *serr += mb->skip_error; mb 408 libavcodec/cinepakenc.c } else if(mb->best_encoding == ENC_V1) { mb 409 libavcodec/cinepakenc.c if((score2=s->lambda * 10 + FF_LAMBDA_SCALE * mb->v1_error) >= score1) { mb 410 libavcodec/cinepakenc.c mb->best_encoding = ENC_SKIP; mb 414 libavcodec/cinepakenc.c *serr += mb->skip_error; mb 419 libavcodec/cinepakenc.c *serr += mb->v1_error; mb 423 libavcodec/cinepakenc.c if((score3=s->lambda * 34 + FF_LAMBDA_SCALE * mb->v4_error) >= score1) { mb 424 libavcodec/cinepakenc.c mb->best_encoding = ENC_SKIP; mb 428 libavcodec/cinepakenc.c *serr += mb->skip_error; mb 433 libavcodec/cinepakenc.c *serr += mb->v4_error; mb 442 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 443 libavcodec/cinepakenc.c score1 = s->lambda * 1 + FF_LAMBDA_SCALE * mb->skip_error; mb 444 libavcodec/cinepakenc.c score2 = s->lambda * 10 + FF_LAMBDA_SCALE * mb->v1_error; mb 445 libavcodec/cinepakenc.c score3 = s->lambda * 34 + FF_LAMBDA_SCALE * mb->v4_error; mb 450 libavcodec/cinepakenc.c *serr += mb->skip_error; mb 452 libavcodec/cinepakenc.c mb->best_encoding = ENC_SKIP; mb 456 libavcodec/cinepakenc.c *serr += mb->v1_error; mb 458 libavcodec/cinepakenc.c mb->best_encoding = ENC_V1; mb 462 libavcodec/cinepakenc.c *serr += mb->v4_error; mb 464 libavcodec/cinepakenc.c mb->best_encoding = ENC_V4; mb 625 libavcodec/cinepakenc.c mb_info *mb; mb 641 libavcodec/cinepakenc.c mb = &s->mb[z]; mb 645 libavcodec/cinepakenc.c if(info->mode == MODE_MC && mb->best_encoding == ENC_SKIP) { mb 648 libavcodec/cinepakenc.c } else if(info->mode == MODE_V1_ONLY || mb->best_encoding == ENC_V1) mb 649 libavcodec/cinepakenc.c decode_v1_vector(s, &sub_scratch, mb->v1_vector, info); mb 651 libavcodec/cinepakenc.c decode_v4_vector(s, &sub_scratch, mb->v4_vector, info); mb 661 libavcodec/cinepakenc.c buf[ret++] = s->mb[x].v1_vector; mb 672 libavcodec/cinepakenc.c if(s->mb[y].best_encoding == ENC_V4) mb 679 libavcodec/cinepakenc.c mb = &s->mb[y]; mb 681 libavcodec/cinepakenc.c if(mb->best_encoding == ENC_V1) mb 682 libavcodec/cinepakenc.c buf[ret++] = mb->v1_vector; mb 685 libavcodec/cinepakenc.c buf[ret++] = mb->v4_vector[z]; mb 699 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 700 libavcodec/cinepakenc.c flags |= (mb->best_encoding != ENC_SKIP) << (31 - bits++); mb 704 libavcodec/cinepakenc.c if(mb->best_encoding != ENC_SKIP) { mb 706 libavcodec/cinepakenc.c flags |= (mb->best_encoding == ENC_V4) << (31 - bits++); mb 716 libavcodec/cinepakenc.c if(mb->best_encoding == ENC_SKIP || needs_extra_bit) { mb 725 libavcodec/cinepakenc.c flags = (mb->best_encoding == ENC_V4) << 31; mb 729 libavcodec/cinepakenc.c if(mb->best_encoding == ENC_V1) mb 730 libavcodec/cinepakenc.c temp[temp_size++] = mb->v1_vector; mb 731 libavcodec/cinepakenc.c else if(mb->best_encoding == ENC_V4) mb 733 libavcodec/cinepakenc.c temp[temp_size++] = mb->v4_vector[z]; mb 803 libavcodec/cinepakenc.c if(s->mb[mbn].best_encoding != encoding) continue; mb 868 libavcodec/cinepakenc.c mb_info *mb = &s->mb[j]; mb 870 libavcodec/cinepakenc.c if(CERTAIN(encoding) && mb->best_encoding != encoding) mb 877 libavcodec/cinepakenc.c mb->v1_vector = s->codebook_closest[i]; mb 880 libavcodec/cinepakenc.c decode_v1_vector(s, &vq_pict, mb->v1_vector, info); mb 882 libavcodec/cinepakenc.c mb->v1_error = compute_mb_distortion(s, &sub_pict, &vq_pict); mb 883 libavcodec/cinepakenc.c total_error += mb->v1_error; mb 886 libavcodec/cinepakenc.c mb->v4_vector[k] = s->codebook_closest[i+k]; mb 889 libavcodec/cinepakenc.c decode_v4_vector(s, &vq_pict, mb->v4_vector, info); mb 891 libavcodec/cinepakenc.c mb->v4_error = compute_mb_distortion(s, &sub_pict, &vq_pict); mb 892 libavcodec/cinepakenc.c total_error += mb->v4_error; mb 915 libavcodec/cinepakenc.c s->mb[i].skip_error = compute_mb_distortion(s, &sub_last, &sub_pict); mb 1071 libavcodec/cinepakenc.c memcpy(s->best_mb, s->mb, mb_count*sizeof(mb_info)); mb 1308 libavcodec/cinepakenc.c av_freep(&s->mb); mb 625 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 660 libavcodec/dnxhdenc.c ctx->mb_rc[qscale][mb].ssd = ssd; mb 661 libavcodec/dnxhdenc.c ctx->mb_rc[qscale][mb].bits = ac_bits + dc_bits + 12 + mb 680 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 681 libavcodec/dnxhdenc.c int qscale = ctx->mb_qscale[mb]; mb 713 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 714 libavcodec/dnxhdenc.c ctx->slice_size[mb_y] += ctx->mb_bits[mb]; mb 735 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 756 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].value = varc; mb 757 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].mb = mb; mb 764 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 782 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].value = sqmean - mean * mean; mb 783 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].mb = mb; mb 814 libavcodec/dnxhdenc.c int mb = y * ctx->m.mb_width + x; mb 816 libavcodec/dnxhdenc.c unsigned score = ctx->mb_rc[q][mb].bits * lambda + mb 817 libavcodec/dnxhdenc.c ((unsigned) ctx->mb_rc[q][mb].ssd << LAMBDA_FRAC_BITS); mb 823 libavcodec/dnxhdenc.c bits += ctx->mb_rc[qscale][mb].bits; mb 824 libavcodec/dnxhdenc.c ctx->mb_qscale[mb] = qscale; mb 825 libavcodec/dnxhdenc.c ctx->mb_bits[mb] = ctx->mb_rc[qscale][mb].bits; mb 994 libavcodec/dnxhdenc.c int mb = y * ctx->m.mb_width + x; mb 996 libavcodec/dnxhdenc.c ctx->mb_qscale[mb] = ctx->qscale; mb 997 libavcodec/dnxhdenc.c ctx->mb_bits[mb] = ctx->mb_rc[ctx->qscale][mb].bits; mb 998 libavcodec/dnxhdenc.c max_bits += ctx->mb_rc[ctx->qscale][mb].bits; mb 1000 libavcodec/dnxhdenc.c delta_bits = ctx->mb_rc[ctx->qscale][mb].bits - mb 1001 libavcodec/dnxhdenc.c ctx->mb_rc[ctx->qscale + 1][mb].bits; mb 1002 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].mb = mb; mb 1003 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].value = mb 1004 libavcodec/dnxhdenc.c delta_bits ? ((ctx->mb_rc[ctx->qscale][mb].ssd - mb 1005 libavcodec/dnxhdenc.c ctx->mb_rc[ctx->qscale + 1][mb].ssd) * 100) / mb 1018 libavcodec/dnxhdenc.c int mb = ctx->mb_cmp[x].mb; mb 1019 libavcodec/dnxhdenc.c max_bits -= ctx->mb_rc[ctx->qscale][mb].bits - mb 1020 libavcodec/dnxhdenc.c ctx->mb_rc[ctx->qscale + 1][mb].bits; mb 1021 libavcodec/dnxhdenc.c ctx->mb_qscale[mb] = ctx->qscale + 1; mb 1022 libavcodec/dnxhdenc.c ctx->mb_bits[mb] = ctx->mb_rc[ctx->qscale + 1][mb].bits; mb 33 libavcodec/dnxhdenc.h uint16_t mb; mb 203 libavcodec/dvdec.c static void dv_decode_ac(GetBitContext *gb, BlockInfo *mb, int16_t *block) mb 206 libavcodec/dvdec.c const uint8_t *scan_table = mb->scan_table; mb 207 libavcodec/dvdec.c const uint32_t *factor_table = mb->factor_table; mb 208 libavcodec/dvdec.c int pos = mb->pos; mb 209 libavcodec/dvdec.c int partial_bit_count = mb->partial_bit_count; mb 218 libavcodec/dvdec.c mb->partial_bit_buffer; mb 220 libavcodec/dvdec.c mb->partial_bit_count = 0; mb 241 libavcodec/dvdec.c mb->partial_bit_count = last_index - re_index; mb 242 libavcodec/dvdec.c mb->partial_bit_buffer = re_cache & ~(-1u >> mb->partial_bit_count); mb 260 libavcodec/dvdec.c mb->pos = pos; mb 288 libavcodec/dvdec.c BlockInfo mb_data[5 * DV_MAX_BPM], *mb, *mb1; mb 310 libavcodec/dvdec.c mb = mb1; mb 322 libavcodec/dvdec.c mb->idct_put = s->idct_put[0]; mb 323 libavcodec/dvdec.c mb->scan_table = s->dv_zigzag[0]; mb 324 libavcodec/dvdec.c mb->factor_table = &s->idct_factor[(j >= 4) * 4 * 16 * 64 + mb 329 libavcodec/dvdec.c mb->idct_put = s->idct_put[dct_mode && log2_blocksize == 3]; mb 330 libavcodec/dvdec.c mb->scan_table = s->dv_zigzag[dct_mode]; mb 331 libavcodec/dvdec.c mb->factor_table = mb 342 libavcodec/dvdec.c mb->pos = 0; mb 343 libavcodec/dvdec.c mb->partial_bit_count = 0; mb 346 libavcodec/dvdec.c dv_decode_ac(&gb, mb, block); mb 350 libavcodec/dvdec.c if (mb->pos >= 64) mb 354 libavcodec/dvdec.c mb++; mb 360 libavcodec/dvdec.c mb = mb1; mb 364 libavcodec/dvdec.c for (j = 0; j < s->sys->bpm; j++, block += 64, mb++) { mb 365 libavcodec/dvdec.c if (mb->pos < 64 && get_bits_left(&gb) > 0) { mb 366 libavcodec/dvdec.c dv_decode_ac(&gb, mb, block); mb 368 libavcodec/dvdec.c if (mb->pos < 64) mb 381 libavcodec/dvdec.c mb = mb_data; mb 387 libavcodec/dvdec.c if (mb->pos < 64 && get_bits_left(&gb) > 0) { mb 389 libavcodec/dvdec.c dv_decode_ac(&gb, mb, block); mb 391 libavcodec/dvdec.c if (mb->pos >= 64 && mb->pos < 127) mb 393 libavcodec/dvdec.c "AC EOB marker is absent pos=%d\n", mb->pos); mb 395 libavcodec/dvdec.c mb++; mb 401 libavcodec/dvdec.c mb = mb_data; mb 417 libavcodec/dvdec.c mb[0].idct_put(y_ptr, linesize, block + 0 * 64); mb 419 libavcodec/dvdec.c mb[2].idct_put(y_ptr + (1 << log2_blocksize), linesize, block + 2 * 64); mb 421 libavcodec/dvdec.c mb[1].idct_put(y_ptr + (1 << log2_blocksize), linesize, block + 1 * 64); mb 422 libavcodec/dvdec.c mb[2].idct_put(y_ptr + y_stride, linesize, block + 2 * 64); mb 423 libavcodec/dvdec.c mb[3].idct_put(y_ptr + (1 << log2_blocksize) + y_stride, linesize, block + 3 * 64); mb 425 libavcodec/dvdec.c mb += 4; mb 438 libavcodec/dvdec.c mb->idct_put(pixels, 8, block); mb 448 libavcodec/dvdec.c mb++; mb 453 libavcodec/dvdec.c (mb++)->idct_put(c_ptr, linesize, block); mb 456 libavcodec/dvdec.c (mb++)->idct_put(c_ptr + y_stride, linesize, block); mb 155 libavcodec/dvenc.c int16_t mb[64]; mb 198 libavcodec/dvenc.c size = dv_rl2vlc(bi->cur_ac - prev - 1, bi->mb[bi->cur_ac], mb 291 libavcodec/dvenc.c bi->mb[0] = blk[0]; mb 309 libavcodec/dvenc.c bi->mb[i] = level; mb 332 libavcodec/dvenc.c bi->mb[i] >>= 1; mb 334 libavcodec/dvenc.c if (bi->mb[i]) { mb 335 libavcodec/dvenc.c bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, bi->mb[i]); mb 373 libavcodec/dvenc.c av_assert2(b->next[prev] >= mb_area_start[a + 1] || b->mb[prev]); mb 375 libavcodec/dvenc.c b->mb[k] >>= 1; mb 376 libavcodec/dvenc.c if (b->mb[k]) { mb 377 libavcodec/dvenc.c b->bit_size[a] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); mb 384 libavcodec/dvenc.c av_assert2(b->mb[b->next[k]]); mb 385 libavcodec/dvenc.c b->bit_size[a2] += dv_rl2vlc_size(b->next[k] - prev - 1, b->mb[b->next[k]]) - mb 386 libavcodec/dvenc.c dv_rl2vlc_size(b->next[k] - k - 1, b->mb[b->next[k]]); mb 409 libavcodec/dvenc.c if (b->mb[k] < a && b->mb[k] > -a) { mb 412 libavcodec/dvenc.c size[0] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); mb 518 libavcodec/dvenc.c put_sbits(&pbs[j], 9, ((enc_blks[j].mb[0] >> 3) - 1024 + 2) >> 2); mb 172 libavcodec/escape124.c static void insert_mb_into_sb(SuperBlock* sb, MacroBlock mb, unsigned index) { mb 177 libavcodec/escape124.c dst[0] = mb.pixels32[0]; mb 178 libavcodec/escape124.c dst[4] = mb.pixels32[1]; mb 284 libavcodec/escape124.c MacroBlock mb; mb 303 libavcodec/escape124.c mb = decode_macroblock(s, &gb, &cb_index, superblock_index); mb 308 libavcodec/escape124.c insert_mb_into_sb(&sb, mb, i); mb 325 libavcodec/escape124.c mb = decode_macroblock(s, &gb, &cb_index, mb 327 libavcodec/escape124.c insert_mb_into_sb(&sb, mb, i); mb 332 libavcodec/escape124.c mb = decode_macroblock(s, &gb, &cb_index, superblock_index); mb 333 libavcodec/escape124.c insert_mb_into_sb(&sb, mb, get_bits(&gb, 4)); mb 498 libavcodec/h264.h DECLARE_ALIGNED(16, int16_t, mb)[16 * 48 * 2]; ///< as a dct coefficient is int32_t in high depth, we need to reserve twice the space. mb 1852 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, h->mb + (16*index << pixel_shift), ctx_cat[1][p], index, scan + 1, qmul, 15); mb 1863 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, h->mb + (16*index << pixel_shift), ctx_cat[3][p], index, mb 1870 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, h->mb + (16*index << pixel_shift), ctx_cat[2][p], index, scan, qmul, 16); mb 2381 libavcodec/h264_cabac.c decode_cabac_residual_dc_422(h, h->mb + ((256 + 16*16*c) << pixel_shift), 3, mb 2389 libavcodec/h264_cabac.c int16_t *mb = h->mb + (16*(16 + 16*c) << pixel_shift); mb 2394 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, mb, 4, index, scan + 1, qmul, 15); mb 2395 libavcodec/h264_cabac.c mb += 16<<pixel_shift; mb 2407 libavcodec/h264_cabac.c decode_cabac_residual_dc(h, h->mb + ((256 + 16*16*c) << pixel_shift), 3, CHROMA_DC_BLOCK_INDEX+c, chroma_dc_scan, 4); mb 2416 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, h->mb + (16*index << pixel_shift), 4, index, scan + 1, qmul, 15); mb 651 libavcodec/h264_cavlc.c if( decode_residual(h, h->intra_gb_ptr, h->mb + (16*index << pixel_shift), mb 669 libavcodec/h264_cavlc.c int16_t *buf = &h->mb[64*i8x8+256*p << pixel_shift]; mb 683 libavcodec/h264_cavlc.c if( decode_residual(h, gb, h->mb + (16*index << pixel_shift), index, mb 1137 libavcodec/h264_cavlc.c if (decode_residual(h, gb, h->mb + ((256 + 16*16*chroma_idx) << pixel_shift), mb 1148 libavcodec/h264_cavlc.c int16_t *mb = h->mb + (16*(16 + 16*chroma_idx) << pixel_shift); mb 1152 libavcodec/h264_cavlc.c if (decode_residual(h, gb, mb, index, scan + 1, qmul, 15) < 0) mb 1154 libavcodec/h264_cavlc.c mb += 16 << pixel_shift; mb 588 libavcodec/h264_mb.c static av_always_inline int dctcoef_get(int16_t *mb, int high_bit_depth, mb 592 libavcodec/h264_mb.c return AV_RN32A(((int32_t *)mb) + index); mb 594 libavcodec/h264_mb.c return AV_RN16A(mb + index); mb 597 libavcodec/h264_mb.c static av_always_inline void dctcoef_set(int16_t *mb, int high_bit_depth, mb 601 libavcodec/h264_mb.c AV_WN32A(((int32_t *)mb) + index, value); mb 603 libavcodec/h264_mb.c AV_WN16A(mb + index, value); mb 634 libavcodec/h264_mb.c h->hpc.pred8x8l_add[dir](ptr, h->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 636 libavcodec/h264_mb.c h->hpc.pred8x8l_filter_add[dir](ptr, h->mb + (i * 16 + p * 256 << pixel_shift), mb 644 libavcodec/h264_mb.c if (nnz == 1 && dctcoef_get(h->mb, pixel_shift, i * 16 + p * 256)) mb 645 libavcodec/h264_mb.c idct_dc_add(ptr, h->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 647 libavcodec/h264_mb.c idct_add(ptr, h->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 664 libavcodec/h264_mb.c h->hpc.pred4x4_add[dir](ptr, h->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 689 libavcodec/h264_mb.c if (nnz == 1 && dctcoef_get(h->mb, pixel_shift, i * 16 + p * 256)) mb 690 libavcodec/h264_mb.c idct_dc_add(ptr, h->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 692 libavcodec/h264_mb.c idct_add(ptr, h->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 694 libavcodec/h264_mb.c ff_svq3_add_idct_c(ptr, h->mb + i * 16 + p * 256, linesize, qscale, 0); mb 704 libavcodec/h264_mb.c h->h264dsp.h264_luma_dc_dequant_idct(h->mb + (p * 256 << pixel_shift), mb 715 libavcodec/h264_mb.c dctcoef_set(h->mb + (p * 256 << pixel_shift), mb 722 libavcodec/h264_mb.c ff_svq3_luma_dc_dequant_idct_c(h->mb + p * 256, mb 746 libavcodec/h264_mb.c h->mb + (p * 256 << pixel_shift), mb 751 libavcodec/h264_mb.c dctcoef_get(h->mb, pixel_shift, i * 16 + p * 256)) mb 753 libavcodec/h264_mb.c h->mb + (i * 16 + p * 256 << pixel_shift), mb 758 libavcodec/h264_mb.c h->mb + (p * 256 << pixel_shift), mb 770 libavcodec/h264_mb.c h->mb + (i * 16 + p * 256 << pixel_shift), mb 775 libavcodec/h264_mb.c h->mb + (p * 256 << pixel_shift), mb 780 libavcodec/h264_mb.c h->mb + (p * 256 << pixel_shift), mb 787 libavcodec/h264_mb.c if (h->non_zero_count_cache[scan8[i + p * 16]] || h->mb[i * 16 + p * 256]) { mb 790 libavcodec/h264_mb.c ff_svq3_add_idct_c(ptr, h->mb + i * 16 + p * 256, linesize, mb 202 libavcodec/h264_mb_template.c h->mb + (16 * 16 * 1 << PIXEL_SHIFT), mb 206 libavcodec/h264_mb_template.c h->mb + (16 * 16 * 2 << PIXEL_SHIFT), mb 213 libavcodec/h264_mb_template.c dctcoef_get(h->mb, PIXEL_SHIFT, i * 16)) mb 215 libavcodec/h264_mb_template.c h->mb + (i * 16 << PIXEL_SHIFT), mb 220 libavcodec/h264_mb_template.c dctcoef_get(h->mb, PIXEL_SHIFT, i * 16)) mb 222 libavcodec/h264_mb_template.c h->mb + (i * 16 << PIXEL_SHIFT), mb 238 libavcodec/h264_mb_template.c h->h264dsp.h264_chroma_dc_dequant_idct(h->mb + (16 * 16 * 1 << PIXEL_SHIFT), mb 241 libavcodec/h264_mb_template.c h->h264dsp.h264_chroma_dc_dequant_idct(h->mb + (16 * 16 * 2 << PIXEL_SHIFT), mb 244 libavcodec/h264_mb_template.c h->mb, uvlinesize, mb 247 libavcodec/h264_mb_template.c h->h264dsp.h264_chroma_dc_dequant_idct(h->mb + 16 * 16 * 1, mb 249 libavcodec/h264_mb_template.c h->h264dsp.h264_chroma_dc_dequant_idct(h->mb + 16 * 16 * 2, mb 253 libavcodec/h264_mb_template.c if (h->non_zero_count_cache[scan8[i]] || h->mb[i * 16]) { mb 255 libavcodec/h264_mb_template.c ff_svq3_add_idct_c(ptr, h->mb + i * 16, mb 103 libavcodec/h264_parser.c unsigned int mb, last_mb= h->parse_last_mb; mb 108 libavcodec/h264_parser.c mb= get_ue_golomb_long(&gb); mb 109 libavcodec/h264_parser.c h->parse_last_mb= mb; mb 111 libavcodec/h264_parser.c if (mb <= last_mb) mb 542 libavcodec/h264_slice.c memset(&h->mb, 0, sizeof(h->mb)); mb 471 libavcodec/indeo4.c IVIMbInfo *mb, *ref_mb; mb 474 libavcodec/indeo4.c mb = tile->mbs; mb 494 libavcodec/indeo4.c mb->xpos = x; mb 495 libavcodec/indeo4.c mb->ypos = y; mb 496 libavcodec/indeo4.c mb->buf_offs = mb_offset; mb 497 libavcodec/indeo4.c mb->b_mv_x = mb 498 libavcodec/indeo4.c mb->b_mv_y = 0; mb 505 libavcodec/indeo4.c mb->type = 1; /* empty macroblocks are always INTER */ mb 506 libavcodec/indeo4.c mb->cbp = 0; /* all blocks are empty */ mb 508 libavcodec/indeo4.c mb->q_delta = 0; mb 510 libavcodec/indeo4.c mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table, mb 512 libavcodec/indeo4.c mb->q_delta = IVI_TOSIGNED(mb->q_delta); mb 515 libavcodec/indeo4.c mb->mv_x = mb->mv_y = 0; /* no motion vector coded */ mb 519 libavcodec/indeo4.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 520 libavcodec/indeo4.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 522 libavcodec/indeo4.c mb->mv_x = ref_mb->mv_x; mb 523 libavcodec/indeo4.c mb->mv_y = ref_mb->mv_y; mb 533 libavcodec/indeo4.c mb->type = ref_mb->type; mb 536 libavcodec/indeo4.c mb->type = 0; /* mb_type is always INTRA for intra-frames */ mb 538 libavcodec/indeo4.c mb->type = get_bits(&ctx->gb, mb_type_bits); mb 541 libavcodec/indeo4.c mb->cbp = get_bits(&ctx->gb, blks_per_mb); mb 543 libavcodec/indeo4.c mb->q_delta = 0; mb 545 libavcodec/indeo4.c if (ref_mb) mb->q_delta = ref_mb->q_delta; mb 546 libavcodec/indeo4.c } else if (mb->cbp || (!band->plane && !band->band_num && mb 548 libavcodec/indeo4.c mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table, mb 550 libavcodec/indeo4.c mb->q_delta = IVI_TOSIGNED(mb->q_delta); mb 553 libavcodec/indeo4.c if (!mb->type) { mb 554 libavcodec/indeo4.c mb->mv_x = mb->mv_y = 0; /* there is no motion vector in intra-macroblocks */ mb 560 libavcodec/indeo4.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 561 libavcodec/indeo4.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 563 libavcodec/indeo4.c mb->mv_x = ref_mb->mv_x; mb 564 libavcodec/indeo4.c mb->mv_y = ref_mb->mv_y; mb 574 libavcodec/indeo4.c mb->mv_x = mv_x; mb 575 libavcodec/indeo4.c mb->mv_y = mv_y; mb 576 libavcodec/indeo4.c if (mb->type == 3) { mb 585 libavcodec/indeo4.c mb->b_mv_x = -mv_x; mb 586 libavcodec/indeo4.c mb->b_mv_y = -mv_y; mb 589 libavcodec/indeo4.c if (mb->type == 2) { mb 590 libavcodec/indeo4.c mb->b_mv_x = -mb->mv_x; mb 591 libavcodec/indeo4.c mb->b_mv_y = -mb->mv_y; mb 592 libavcodec/indeo4.c mb->mv_x = 0; mb 593 libavcodec/indeo4.c mb->mv_y = 0; mb 599 libavcodec/indeo4.c if (mb->type) mb 600 libavcodec/indeo4.c if ( x + (mb->mv_x >>s) + (y+ (mb->mv_y >>s))*band->pitch < 0 || mb 601 libavcodec/indeo4.c x + ((mb->mv_x+s)>>s) + band->mb_size - 1 mb 602 libavcodec/indeo4.c + (y+band->mb_size - 1 +((mb->mv_y+s)>>s))*band->pitch > band->bufsize -1) { mb 603 libavcodec/indeo4.c av_log(avctx, AV_LOG_ERROR, "motion vector %d %d outside reference\n", x*s + mb->mv_x, y*s + mb->mv_y); mb 607 libavcodec/indeo4.c mb++; mb 458 libavcodec/indeo5.c IVIMbInfo *mb, *ref_mb; mb 461 libavcodec/indeo5.c mb = tile->mbs; mb 483 libavcodec/indeo5.c mb->xpos = x; mb 484 libavcodec/indeo5.c mb->ypos = y; mb 485 libavcodec/indeo5.c mb->buf_offs = mb_offset; mb 492 libavcodec/indeo5.c mb->type = 1; /* empty macroblocks are always INTER */ mb 493 libavcodec/indeo5.c mb->cbp = 0; /* all blocks are empty */ mb 495 libavcodec/indeo5.c mb->q_delta = 0; mb 497 libavcodec/indeo5.c mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table, mb 499 libavcodec/indeo5.c mb->q_delta = IVI_TOSIGNED(mb->q_delta); mb 502 libavcodec/indeo5.c mb->mv_x = mb->mv_y = 0; /* no motion vector coded */ mb 506 libavcodec/indeo5.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 507 libavcodec/indeo5.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 509 libavcodec/indeo5.c mb->mv_x = ref_mb->mv_x; mb 510 libavcodec/indeo5.c mb->mv_y = ref_mb->mv_y; mb 515 libavcodec/indeo5.c mb->type = ref_mb->type; /* copy mb_type from corresponding reference mb */ mb 517 libavcodec/indeo5.c mb->type = 0; /* mb_type is always INTRA for intra-frames */ mb 519 libavcodec/indeo5.c mb->type = get_bits1(&ctx->gb); mb 523 libavcodec/indeo5.c mb->cbp = get_bits(&ctx->gb, blks_per_mb); mb 525 libavcodec/indeo5.c mb->q_delta = 0; mb 528 libavcodec/indeo5.c if (ref_mb) mb->q_delta = ref_mb->q_delta; mb 529 libavcodec/indeo5.c } else if (mb->cbp || (!band->plane && !band->band_num && mb 531 libavcodec/indeo5.c mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table, mb 533 libavcodec/indeo5.c mb->q_delta = IVI_TOSIGNED(mb->q_delta); mb 537 libavcodec/indeo5.c if (!mb->type) { mb 538 libavcodec/indeo5.c mb->mv_x = mb->mv_y = 0; /* there is no motion vector in intra-macroblocks */ mb 543 libavcodec/indeo5.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 544 libavcodec/indeo5.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 546 libavcodec/indeo5.c mb->mv_x = ref_mb->mv_x; mb 547 libavcodec/indeo5.c mb->mv_y = ref_mb->mv_y; mb 557 libavcodec/indeo5.c mb->mv_x = mv_x; mb 558 libavcodec/indeo5.c mb->mv_y = mv_y; mb 564 libavcodec/indeo5.c if (mb->type) mb 565 libavcodec/indeo5.c if ( x + (mb->mv_x >>s) + (y+ (mb->mv_y >>s))*band->pitch < 0 || mb 566 libavcodec/indeo5.c x + ((mb->mv_x+s)>>s) + band->mb_size - 1 mb 567 libavcodec/indeo5.c + (y+band->mb_size - 1 +((mb->mv_y+s)>>s))*band->pitch > band->bufsize - 1) { mb 568 libavcodec/indeo5.c av_log(avctx, AV_LOG_ERROR, "motion vector %d %d outside reference\n", x*s + mb->mv_x, y*s + mb->mv_y); mb 572 libavcodec/indeo5.c mb++; mb 620 libavcodec/ivi_common.c IVIMbInfo *mb; mb 642 libavcodec/ivi_common.c for (mbn = 0, mb = tile->mbs; mbn < tile->num_MBs; mb++, mbn++) { mb 643 libavcodec/ivi_common.c is_intra = !mb->type; mb 644 libavcodec/ivi_common.c cbp = mb->cbp; mb 645 libavcodec/ivi_common.c buf_offs = mb->buf_offs; mb 647 libavcodec/ivi_common.c quant = band->glob_quant + mb->q_delta; mb 658 libavcodec/ivi_common.c mv_x = mb->mv_x; mb 659 libavcodec/ivi_common.c mv_y = mb->mv_y; mb 660 libavcodec/ivi_common.c mv_x2 = mb->b_mv_x; mb 661 libavcodec/ivi_common.c mv_y2 = mb->b_mv_y; mb 670 libavcodec/ivi_common.c if (mb->type == 2) mb 672 libavcodec/ivi_common.c if (mb->type != 2 && mb->type != 3) mb 674 libavcodec/ivi_common.c if (mb->type) { mb 677 libavcodec/ivi_common.c dmv_x = mb->mv_x >> band->is_halfpel; mb 678 libavcodec/ivi_common.c dmv_y = mb->mv_y >> band->is_halfpel; mb 679 libavcodec/ivi_common.c cx = mb->mv_x & band->is_halfpel; mb 680 libavcodec/ivi_common.c cy = mb->mv_y & band->is_halfpel; mb 682 libavcodec/ivi_common.c if (mb->xpos + dmv_x < 0 || mb 683 libavcodec/ivi_common.c mb->xpos + dmv_x + band->mb_size + cx > band->pitch || mb 684 libavcodec/ivi_common.c mb->ypos + dmv_y < 0 || mb 685 libavcodec/ivi_common.c mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { mb 689 libavcodec/ivi_common.c if (mb->type == 2 || mb->type == 3) { mb 692 libavcodec/ivi_common.c dmv_x = mb->b_mv_x >> band->is_halfpel; mb 693 libavcodec/ivi_common.c dmv_y = mb->b_mv_y >> band->is_halfpel; mb 694 libavcodec/ivi_common.c cx = mb->b_mv_x & band->is_halfpel; mb 695 libavcodec/ivi_common.c cy = mb->b_mv_y & band->is_halfpel; mb 697 libavcodec/ivi_common.c if (mb->xpos + dmv_x < 0 || mb 698 libavcodec/ivi_common.c mb->xpos + dmv_x + band->mb_size + cx > band->pitch || mb 699 libavcodec/ivi_common.c mb->ypos + dmv_y < 0 || mb 700 libavcodec/ivi_common.c mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { mb 764 libavcodec/ivi_common.c IVIMbInfo *mb, *ref_mb; mb 777 libavcodec/ivi_common.c mb = tile->mbs; mb 786 libavcodec/ivi_common.c mb->xpos = x; mb 787 libavcodec/ivi_common.c mb->ypos = y; mb 788 libavcodec/ivi_common.c mb->buf_offs = mb_offset; mb 790 libavcodec/ivi_common.c mb->type = 1; /* set the macroblocks type = INTER */ mb 791 libavcodec/ivi_common.c mb->cbp = 0; /* all blocks are empty */ mb 794 libavcodec/ivi_common.c mb->q_delta = band->glob_quant; mb 795 libavcodec/ivi_common.c mb->mv_x = 0; mb 796 libavcodec/ivi_common.c mb->mv_y = 0; mb 800 libavcodec/ivi_common.c mb->q_delta = ref_mb->q_delta; mb 805 libavcodec/ivi_common.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 806 libavcodec/ivi_common.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 808 libavcodec/ivi_common.c mb->mv_x = ref_mb->mv_x; mb 809 libavcodec/ivi_common.c mb->mv_y = ref_mb->mv_y; mb 811 libavcodec/ivi_common.c need_mc |= mb->mv_x || mb->mv_y; /* tracking non-zero motion vectors */ mb 815 libavcodec/ivi_common.c dmv_x = mb->mv_x >> band->is_halfpel; mb 816 libavcodec/ivi_common.c dmv_y = mb->mv_y >> band->is_halfpel; mb 817 libavcodec/ivi_common.c cx = mb->mv_x & band->is_halfpel; mb 818 libavcodec/ivi_common.c cy = mb->mv_y & band->is_halfpel; mb 820 libavcodec/ivi_common.c if ( mb->xpos + dmv_x < 0 mb 821 libavcodec/ivi_common.c || mb->xpos + dmv_x + band->mb_size + cx > band->pitch mb 822 libavcodec/ivi_common.c || mb->ypos + dmv_y < 0 mb 823 libavcodec/ivi_common.c || mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { mb 830 libavcodec/ivi_common.c mb++; mb 843 libavcodec/ivi_common.c for (mbn = 0, mb = tile->mbs; mbn < tile->num_MBs; mb++, mbn++) { mb 844 libavcodec/ivi_common.c mv_x = mb->mv_x; mb 845 libavcodec/ivi_common.c mv_y = mb->mv_y; mb 856 libavcodec/ivi_common.c offs = mb->buf_offs + band->blk_size * ((blk & 1) + !!(blk & 2) * band->pitch); mb 201 libavcodec/mpc7.c int mb = -1; mb 251 libavcodec/mpc7.c mb = i; mb 256 libavcodec/mpc7.c for(i = 0; i <= mb; i++) mb 260 libavcodec/mpc7.c for(i = 0; i <= mb; i++){ mb 293 libavcodec/mpc7.c ff_mpc_dequantize_and_synth(c, mb, (int16_t **)frame->extended_data, 2); mb 2132 libavcodec/mpegvideo.c static int add_mb(AVMotionVector *mb, uint32_t mb_type, mb 2137 libavcodec/mpegvideo.c mb->w = IS_8X8(mb_type) || IS_8X16(mb_type) ? 8 : 16; mb 2138 libavcodec/mpegvideo.c mb->h = IS_8X8(mb_type) || IS_16X8(mb_type) ? 8 : 16; mb 2139 libavcodec/mpegvideo.c mb->src_x = src_x; mb 2140 libavcodec/mpegvideo.c mb->src_y = src_y; mb 2141 libavcodec/mpegvideo.c mb->dst_x = dst_x; mb 2142 libavcodec/mpegvideo.c mb->dst_y = dst_y; mb 2143 libavcodec/mpegvideo.c mb->source = direction ? 1 : -1; mb 2144 libavcodec/mpegvideo.c mb->flags = 0; // XXX: does mb_type contain extra information that could be exported here? mb 912 libavcodec/proresenc_kostya.c int x, y = jobnr, mb, q = 0; mb 914 libavcodec/proresenc_kostya.c for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) { mb 918 libavcodec/proresenc_kostya.c (mb + 1) * TRELLIS_WIDTH, x, y, mb 937 libavcodec/proresenc_kostya.c int x, y, i, mb, q = 0; mb 1013 libavcodec/proresenc_kostya.c for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) { mb 1015 libavcodec/proresenc_kostya.c : ctx->slice_q[mb + y * ctx->slices_width]; mb 267 libavcodec/roqvideoenc.c static void get_frame_mb(const AVFrame *frame, int x, int y, uint8_t mb[], int dim) mb 275 libavcodec/roqvideoenc.c *mb++ = frame->data[cp][(y+i)*stride + x + j]; mb 736 libavcodec/svq3.c if (svq3_decode_block(&h->gb, &h->mb[16 * k], index, type)) { mb 746 libavcodec/svq3.c if (svq3_decode_block(&h->gb, &h->mb[16 * 16 * i], 0, 3)) { mb 758 libavcodec/svq3.c if (svq3_decode_block(&h->gb, &h->mb[16 * k], 1, 1)) { mb 259 libavcodec/truemotion2.c int d, mb; mb 263 libavcodec/truemotion2.c mb = get_bits(&ctx->gb, 5); mb 265 libavcodec/truemotion2.c av_assert2(mb < 32); mb 266 libavcodec/truemotion2.c if ((d < 1) || (d > TM2_DELTAS) || (mb < 1)) { mb 267 libavcodec/truemotion2.c av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect delta table: %i deltas x %i bits\n", d, mb); mb 272 libavcodec/truemotion2.c v = get_bits_long(&ctx->gb, mb); mb 273 libavcodec/truemotion2.c if (v & (1 << (mb - 1))) mb 274 libavcodec/truemotion2.c ctx->deltas[stream_id][i] = v - (1 << mb); mb 823 libavcodec/vp8.c int decode_splitmvs(VP8Context *s, VP56RangeCoder *c, VP8Macroblock *mb, mb 829 libavcodec/vp8.c VP8Macroblock *left_mb = &mb[-1]; mb 834 libavcodec/vp8.c VP56mv *cur_mv = mb->bmv; mb 837 libavcodec/vp8.c top_mb = &mb[2]; mb 839 libavcodec/vp8.c top_mb = &mb[-s->mb_width - 1]; mb 855 libavcodec/vp8.c mb->partitioning = part_idx; mb 876 libavcodec/vp8.c mb->bmv[n].y = mb->mv.y + mb 878 libavcodec/vp8.c mb->bmv[n].x = mb->mv.x + mb 881 libavcodec/vp8.c AV_ZERO32(&mb->bmv[n]); mb 884 libavcodec/vp8.c AV_WN32A(&mb->bmv[n], above); mb 887 libavcodec/vp8.c AV_WN32A(&mb->bmv[n], left); mb 918 libavcodec/vp8.c static const VP56mv *get_bmv_ptr(const VP8Macroblock *mb, int subblock) mb 920 libavcodec/vp8.c return &mb->bmv[mb->mode == VP8_MVMODE_SPLIT ? vp8_mbsplits[mb->partitioning][subblock] : 0]; mb 924 libavcodec/vp8.c void vp7_decode_mvs(VP8Context *s, VP8Macroblock *mb, mb 977 libavcodec/vp8.c mb->partitioning = VP8_SPLITMVMODE_NONE; mb 980 libavcodec/vp8.c mb->mode = VP8_MVMODE_MV; mb 987 libavcodec/vp8.c AV_WN32A(&mb->mv, cnt[CNT_ZERO] > cnt[CNT_NEAREST] ? 0 : AV_RN32A(&near_mv[CNT_NEAREST])); mb 989 libavcodec/vp8.c AV_WN32A(&mb->mv, cnt[CNT_ZERO] > cnt[CNT_NEAR] ? 0 : AV_RN32A(&near_mv[CNT_NEAR])); mb 992 libavcodec/vp8.c mb->mode = VP8_MVMODE_SPLIT; mb 993 libavcodec/vp8.c mb->mv = mb->bmv[decode_splitmvs(s, c, mb, layout, IS_VP7) - 1]; mb 995 libavcodec/vp8.c mb->mv.y += vp7_read_mv_component(c, s->prob->mvc[0]); mb 996 libavcodec/vp8.c mb->mv.x += vp7_read_mv_component(c, s->prob->mvc[1]); mb 997 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1000 libavcodec/vp8.c mb->mv = near_mv[CNT_NEAR]; mb 1001 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1004 libavcodec/vp8.c mb->mv = near_mv[CNT_NEAREST]; mb 1005 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1008 libavcodec/vp8.c mb->mode = VP8_MVMODE_ZERO; mb 1009 libavcodec/vp8.c AV_ZERO32(&mb->mv); mb 1010 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1015 libavcodec/vp8.c void vp8_decode_mvs(VP8Context *s, VP8Macroblock *mb, mb 1019 libavcodec/vp8.c mb - 1 /* left */, mb 1024 libavcodec/vp8.c int cur_sign_bias = s->sign_bias[mb->ref_frame]; mb 1031 libavcodec/vp8.c mb_edge[0] = mb + 2; mb 1032 libavcodec/vp8.c mb_edge[2] = mb + 1; mb 1034 libavcodec/vp8.c mb_edge[0] = mb - s->mb_width - 1; mb 1035 libavcodec/vp8.c mb_edge[2] = mb - s->mb_width - 2; mb 1068 libavcodec/vp8.c mb->partitioning = VP8_SPLITMVMODE_NONE; mb 1070 libavcodec/vp8.c mb->mode = VP8_MVMODE_MV; mb 1086 libavcodec/vp8.c clamp_mv(s, &mb->mv, &near_mv[CNT_ZERO + (cnt[CNT_NEAREST] >= cnt[CNT_ZERO])]); mb 1092 libavcodec/vp8.c mb->mode = VP8_MVMODE_SPLIT; mb 1093 libavcodec/vp8.c mb->mv = mb->bmv[decode_splitmvs(s, c, mb, layout, IS_VP8) - 1]; mb 1095 libavcodec/vp8.c mb->mv.y += vp8_read_mv_component(c, s->prob->mvc[0]); mb 1096 libavcodec/vp8.c mb->mv.x += vp8_read_mv_component(c, s->prob->mvc[1]); mb 1097 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1100 libavcodec/vp8.c clamp_mv(s, &mb->mv, &near_mv[CNT_NEAR]); mb 1101 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1104 libavcodec/vp8.c clamp_mv(s, &mb->mv, &near_mv[CNT_NEAREST]); mb 1105 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1108 libavcodec/vp8.c mb->mode = VP8_MVMODE_ZERO; mb 1109 libavcodec/vp8.c AV_ZERO32(&mb->mv); mb 1110 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1115 libavcodec/vp8.c void decode_intra4x4_modes(VP8Context *s, VP56RangeCoder *c, VP8Macroblock *mb, mb 1118 libavcodec/vp8.c uint8_t *intra4x4 = mb->intra4x4_pred_mode_mb; mb 1121 libavcodec/vp8.c VP8Macroblock *mb_top = mb - s->mb_width - 1; mb 1122 libavcodec/vp8.c memcpy(mb->intra4x4_pred_mode_top, mb_top->intra4x4_pred_mode_top, 4); mb 1129 libavcodec/vp8.c top = mb->intra4x4_pred_mode_top; mb 1150 libavcodec/vp8.c void decode_mb_mode(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y, mb 1177 libavcodec/vp8.c mb->segment = *segment; mb 1179 libavcodec/vp8.c mb->skip = s->mbskip_enabled ? vp56_rac_get_prob(c, s->prob->mbskip) : 0; mb 1182 libavcodec/vp8.c mb->mode = vp8_rac_get_tree(c, vp8_pred16x16_tree_intra, mb 1185 libavcodec/vp8.c if (mb->mode == MODE_I4x4) { mb 1186 libavcodec/vp8.c decode_intra4x4_modes(s, c, mb, mb_x, 1, layout); mb 1189 libavcodec/vp8.c : vp8_pred4x4_mode)[mb->mode] * 0x01010101u; mb 1191 libavcodec/vp8.c AV_WN32A(mb->intra4x4_pred_mode_top, modes); mb 1197 libavcodec/vp8.c mb->chroma_pred_mode = vp8_rac_get_tree(c, vp8_pred8x8c_tree, mb 1199 libavcodec/vp8.c mb->ref_frame = VP56_FRAME_CURRENT; mb 1203 libavcodec/vp8.c mb->ref_frame = mb 1207 libavcodec/vp8.c mb->ref_frame = VP56_FRAME_PREVIOUS; mb 1208 libavcodec/vp8.c s->ref_count[mb->ref_frame - 1]++; mb 1212 libavcodec/vp8.c vp7_decode_mvs(s, mb, mb_x, mb_y, layout); mb 1214 libavcodec/vp8.c vp8_decode_mvs(s, mb, mb_x, mb_y, layout); mb 1217 libavcodec/vp8.c mb->mode = vp8_rac_get_tree(c, vp8_pred16x16_tree_inter, s->prob->pred16x16); mb 1219 libavcodec/vp8.c if (mb->mode == MODE_I4x4) mb 1220 libavcodec/vp8.c decode_intra4x4_modes(s, c, mb, mb_x, 0, layout); mb 1222 libavcodec/vp8.c mb->chroma_pred_mode = vp8_rac_get_tree(c, vp8_pred8x8c_tree, mb 1224 libavcodec/vp8.c mb->ref_frame = VP56_FRAME_CURRENT; mb 1225 libavcodec/vp8.c mb->partitioning = VP8_SPLITMVMODE_NONE; mb 1226 libavcodec/vp8.c AV_ZERO32(&mb->bmv[0]); mb 1376 libavcodec/vp8.c VP8Macroblock *mb, uint8_t t_nnz[9], uint8_t l_nnz[9], mb 1381 libavcodec/vp8.c int segment = mb->segment; mb 1384 libavcodec/vp8.c if (mb->mode != MODE_I4x4 && (is_vp7 || mb->mode != VP8_MVMODE_SPLIT)) { mb 1393 libavcodec/vp8.c if (is_vp7 && mb->mode > MODE_I4x4) { mb 1395 libavcodec/vp8.c s->inter_dc_pred[mb->ref_frame - 1]); mb 1446 libavcodec/vp8.c mb->skip = 1; mb 1577 libavcodec/vp8.c VP8Macroblock *mb, int mb_x, int mb_y, int is_vp7) mb 1589 libavcodec/vp8.c if (mb->mode < MODE_I4x4) { mb 1590 libavcodec/vp8.c mode = check_intra_pred8x8_mode_emuedge(mb->mode, mb_x, mb_y, is_vp7); mb 1594 libavcodec/vp8.c uint8_t *intra4x4 = mb->intra4x4_pred_mode_mb; mb 1610 libavcodec/vp8.c if (mb->skip) mb 1678 libavcodec/vp8.c mode = check_intra_pred8x8_mode_emuedge(mb->chroma_pred_mode, mb 1859 libavcodec/vp8.c void prefetch_motion(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y, mb 1865 libavcodec/vp8.c int mx = (mb->mv.x >> 2) + x_off + 8; mb 1866 libavcodec/vp8.c int my = (mb->mv.y >> 2) + y_off; mb 1883 libavcodec/vp8.c VP8Macroblock *mb, int mb_x, int mb_y) mb 1887 libavcodec/vp8.c ThreadFrame *ref = &s->framep[mb->ref_frame]->tf; mb 1888 libavcodec/vp8.c VP56mv *bmv = mb->bmv; mb 1890 libavcodec/vp8.c switch (mb->partitioning) { mb 1893 libavcodec/vp8.c 0, 0, 16, 16, width, height, &mb->mv); mb 1917 libavcodec/vp8.c uvmv.x = mb->bmv[2 * y * 4 + 2 * x ].x + mb 1918 libavcodec/vp8.c mb->bmv[2 * y * 4 + 2 * x + 1].x + mb 1919 libavcodec/vp8.c mb->bmv[(2 * y + 1) * 4 + 2 * x ].x + mb 1920 libavcodec/vp8.c mb->bmv[(2 * y + 1) * 4 + 2 * x + 1].x; mb 1921 libavcodec/vp8.c uvmv.y = mb->bmv[2 * y * 4 + 2 * x ].y + mb 1922 libavcodec/vp8.c mb->bmv[2 * y * 4 + 2 * x + 1].y + mb 1923 libavcodec/vp8.c mb->bmv[(2 * y + 1) * 4 + 2 * x ].y + mb 1924 libavcodec/vp8.c mb->bmv[(2 * y + 1) * 4 + 2 * x + 1].y; mb 1966 libavcodec/vp8.c void idct_mb(VP8Context *s, VP8ThreadData *td, uint8_t *dst[3], VP8Macroblock *mb) mb 1970 libavcodec/vp8.c if (mb->mode != MODE_I4x4) { mb 2028 libavcodec/vp8.c void filter_level_for_mb(VP8Context *s, VP8Macroblock *mb, mb 2034 libavcodec/vp8.c filter_level = s->segmentation.filter_level[mb->segment]; mb 2041 libavcodec/vp8.c filter_level += s->lf_delta.ref[mb->ref_frame]; mb 2042 libavcodec/vp8.c filter_level += s->lf_delta.mode[mb->mode]; mb 2056 libavcodec/vp8.c f->inner_filter = is_vp7 || !mb->skip || mb->mode == MODE_I4x4 || mb 2057 libavcodec/vp8.c mb->mode == VP8_MVMODE_SPLIT; mb 2191 libavcodec/vp8.c VP8Macroblock *mb = s->macroblocks_base + mb 2199 libavcodec/vp8.c for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { mb 2201 libavcodec/vp8.c AV_WN32A((mb - s->mb_width - 1)->intra4x4_pred_mode_top, mb 2203 libavcodec/vp8.c decode_mb_mode(s, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, mb 2276 libavcodec/vp8.c VP8Macroblock *mb; mb 2291 libavcodec/vp8.c mb = s->macroblocks_base + ((s->mb_width + 1) * (mb_y + 1) + 1); mb 2298 libavcodec/vp8.c mb = s->macroblocks + (s->mb_height - mb_y - 1) * 2; mb 2299 libavcodec/vp8.c memset(mb - 1, 0, sizeof(*mb)); // zero left macroblock mb 2309 libavcodec/vp8.c for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { mb 2329 libavcodec/vp8.c decode_mb_mode(s, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, mb 2333 libavcodec/vp8.c prefetch_motion(s, mb, mb_x, mb_y, mb_xy, VP56_FRAME_PREVIOUS); mb 2335 libavcodec/vp8.c if (!mb->skip) mb 2336 libavcodec/vp8.c decode_mb_coeffs(s, td, c, mb, s->top_nnz[mb_x], td->left_nnz, is_vp7); mb 2338 libavcodec/vp8.c if (mb->mode <= MODE_I4x4) mb 2339 libavcodec/vp8.c intra_predict(s, td, dst, mb, mb_x, mb_y, is_vp7); mb 2341 libavcodec/vp8.c inter_predict(s, td, dst, mb, mb_x, mb_y); mb 2343 libavcodec/vp8.c prefetch_motion(s, mb, mb_x, mb_y, mb_xy, VP56_FRAME_GOLDEN); mb 2345 libavcodec/vp8.c if (!mb->skip) { mb 2346 libavcodec/vp8.c idct_mb(s, td, dst, mb); mb 2353 libavcodec/vp8.c if (mb->mode != MODE_I4x4 && mb->mode != VP8_MVMODE_SPLIT) { mb 2360 libavcodec/vp8.c filter_level_for_mb(s, mb, &td->filter_strength[mb_x], is_vp7); mb 2371 libavcodec/vp8.c prefetch_motion(s, mb, mb_x, mb_y, mb_xy, VP56_FRAME_GOLDEN2); mb 2406 libavcodec/vp8.c VP8Macroblock *mb; mb 2415 libavcodec/vp8.c mb = s->macroblocks_base + ((s->mb_width + 1) * (mb_y + 1) + 1); mb 2417 libavcodec/vp8.c mb = s->macroblocks + (s->mb_height - mb_y - 1) * 2; mb 2428 libavcodec/vp8.c for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb++) { mb 115 libavfilter/vf_colormatrix.c double det = ma * (me * mi - mf * mh) - mb * (md * mi - mf * mg) + mc * (md * mh - me * mg); mb 118 libavfilter/vf_colormatrix.c imb = det * (mc * mh - mb * mi); mb 119 libavfilter/vf_colormatrix.c imc = det * (mb * mf - mc * me); mb 124 libavfilter/vf_colormatrix.c imh = det * (mb * mg - ma * mh); mb 125 libavfilter/vf_colormatrix.c imi = det * (ma * me - mb * md); mb 124 libavfilter/vsrc_mandelbrot.c MBContext *mb = ctx->priv; mb 126 libavfilter/vsrc_mandelbrot.c mb->bailout *= mb->bailout; mb 128 libavfilter/vsrc_mandelbrot.c mb->start_scale /=mb->h; mb 129 libavfilter/vsrc_mandelbrot.c mb->end_scale /=mb->h; mb 131 libavfilter/vsrc_mandelbrot.c mb->cache_allocated = mb->w * mb->h * 3; mb 132 libavfilter/vsrc_mandelbrot.c mb->cache_used = 0; mb 133 libavfilter/vsrc_mandelbrot.c mb->point_cache= av_malloc_array(mb->cache_allocated, sizeof(*mb->point_cache)); mb 134 libavfilter/vsrc_mandelbrot.c mb-> next_cache= av_malloc_array(mb->cache_allocated, sizeof(*mb-> next_cache)); mb 135 libavfilter/vsrc_mandelbrot.c mb-> zyklus = av_malloc_array(mb->maxiter + 16, sizeof(*mb->zyklus)); mb 142 libavfilter/vsrc_mandelbrot.c MBContext *mb = ctx->priv; mb 144 libavfilter/vsrc_mandelbrot.c av_freep(&mb->point_cache); mb 145 libavfilter/vsrc_mandelbrot.c av_freep(&mb-> next_cache); mb 146 libavfilter/vsrc_mandelbrot.c av_freep(&mb->zyklus); mb 163 libavfilter/vsrc_mandelbrot.c MBContext *mb = ctx->priv; mb 165 libavfilter/vsrc_mandelbrot.c if (av_image_check_size(mb->w, mb->h, 0, ctx) < 0) mb 168 libavfilter/vsrc_mandelbrot.c inlink->w = mb->w; mb 169 libavfilter/vsrc_mandelbrot.c inlink->h = mb->h; mb 170 libavfilter/vsrc_mandelbrot.c inlink->time_base = av_inv_q(mb->frame_rate); mb 176 libavfilter/vsrc_mandelbrot.c MBContext *mb = ctx->priv; mb 177 libavfilter/vsrc_mandelbrot.c if(mb->morphamp) mb 179 libavfilter/vsrc_mandelbrot.c for(; *in_cidx < mb->cache_used; (*in_cidx)++){ mb 180 libavfilter/vsrc_mandelbrot.c Point *p= &mb->point_cache[*in_cidx]; mb 184 libavfilter/vsrc_mandelbrot.c x= round((p->p[0] - mb->start_x) / scale + mb->w/2); mb 185 libavfilter/vsrc_mandelbrot.c if(x<0 || x >= mb->w) mb 188 libavfilter/vsrc_mandelbrot.c if(out_cidx && *out_cidx < mb->cache_allocated) mb 189 libavfilter/vsrc_mandelbrot.c mb->next_cache[(*out_cidx)++]= *p; mb 193 libavfilter/vsrc_mandelbrot.c static int interpol(MBContext *mb, uint32_t *color, int x, int y, int linesize) mb 199 libavfilter/vsrc_mandelbrot.c if(!x || !y || x+1==mb->w || y+1==mb->h) mb 202 libavfilter/vsrc_mandelbrot.c dist= FFMAX(FFABS(x-(mb->w>>1))*mb->h, FFABS(y-(mb->h>>1))*mb->w); mb 204 libavfilter/vsrc_mandelbrot.c if(dist<(mb->w*mb->h>>3)) mb 249 libavfilter/vsrc_mandelbrot.c MBContext *mb = ctx->priv; mb 251 libavfilter/vsrc_mandelbrot.c double scale= mb->start_scale*pow(mb->end_scale/mb->start_scale, pts/mb->end_pts); mb 253 libavfilter/vsrc_mandelbrot.c fill_from_cache(ctx, NULL, &in_cidx, NULL, mb->start_y+scale*(-mb->h/2-0.5), scale); mb 255 libavfilter/vsrc_mandelbrot.c memset(color, 0, sizeof(*color)*mb->w); mb 256 libavfilter/vsrc_mandelbrot.c for(y=0; y<mb->h; y++){ mb 258 libavfilter/vsrc_mandelbrot.c const double ci=mb->start_y+scale*(y-mb->h/2); mb 260 libavfilter/vsrc_mandelbrot.c if(y1<mb->h){ mb 261 libavfilter/vsrc_mandelbrot.c memset(color+linesize*y1, 0, sizeof(*color)*mb->w); mb 265 libavfilter/vsrc_mandelbrot.c for(x=0; x<mb->w; x++){ mb 267 libavfilter/vsrc_mandelbrot.c const double cr=mb->start_x+scale*(x-mb->w/2); mb 271 libavfilter/vsrc_mandelbrot.c double dv= mb->dither / (double)(1LL<<32); mb 272 libavfilter/vsrc_mandelbrot.c mb->dither= mb->dither*1664525+1013904223; mb 276 libavfilter/vsrc_mandelbrot.c if(!mb->morphamp){ mb 277 libavfilter/vsrc_mandelbrot.c if(interpol(mb, color, x, y, linesize)){ mb 278 libavfilter/vsrc_mandelbrot.c if(next_cidx < mb->cache_allocated){ mb 279 libavfilter/vsrc_mandelbrot.c mb->next_cache[next_cidx ].p[0]= cr; mb 280 libavfilter/vsrc_mandelbrot.c mb->next_cache[next_cidx ].p[1]= ci; mb 281 libavfilter/vsrc_mandelbrot.c mb->next_cache[next_cidx++].val = color[x + y*linesize]; mb 286 libavfilter/vsrc_mandelbrot.c zr += cos(pts * mb->morphxf) * mb->morphamp; mb 287 libavfilter/vsrc_mandelbrot.c zi += sin(pts * mb->morphyf) * mb->morphamp; mb 290 libavfilter/vsrc_mandelbrot.c use_zyklus= (x==0 || mb->inner!=BLACK ||color[x-1 + y*linesize] == 0xFF000000); mb 292 libavfilter/vsrc_mandelbrot.c epsilon= scale*1*sqrt(SQR(x-mb->w/2) + SQR(y-mb->h/2))/mb->w; mb 301 libavfilter/vsrc_mandelbrot.c if(Z && fabs(mb->zyklus[i>>1][0]-outr)+fabs(mb->zyklus[i>>1][1]-outi) <= epsilon)\ mb 304 libavfilter/vsrc_mandelbrot.c mb->zyklus[i][0]= outr;\ mb 305 libavfilter/vsrc_mandelbrot.c mb->zyklus[i][1]= outi;\ mb 309 libavfilter/vsrc_mandelbrot.c for(i=0; i<mb->maxiter-8; i++){ mb 326 libavfilter/vsrc_mandelbrot.c if(zr*zr + zi*zi > mb->bailout){ mb 328 libavfilter/vsrc_mandelbrot.c for(; i<mb->maxiter; i++){ mb 329 libavfilter/vsrc_mandelbrot.c zr= mb->zyklus[i][0]; mb 330 libavfilter/vsrc_mandelbrot.c zi= mb->zyklus[i][1]; mb 331 libavfilter/vsrc_mandelbrot.c if(zr*zr + zi*zi > mb->bailout){ mb 332 libavfilter/vsrc_mandelbrot.c switch(mb->outer){ mb 338 libavfilter/vsrc_mandelbrot.c zr = i + log2(log(mb->bailout) / log(zr*zr + zi*zi)); mb 345 libavfilter/vsrc_mandelbrot.c zr /= mb->bailout; mb 346 libavfilter/vsrc_mandelbrot.c zi /= mb->bailout; mb 356 libavfilter/vsrc_mandelbrot.c if(mb->inner==PERIOD){ mb 359 libavfilter/vsrc_mandelbrot.c if(SQR(mb->zyklus[j][0]-zr) + SQR(mb->zyklus[j][1]-zi) < epsilon*epsilon*10) mb 365 libavfilter/vsrc_mandelbrot.c }else if(mb->inner==CONVTIME){ mb 366 libavfilter/vsrc_mandelbrot.c c= floor(i*255.0/mb->maxiter+dv)*0x010101; mb 367 libavfilter/vsrc_mandelbrot.c } else if(mb->inner==MINCOL){ mb 372 libavfilter/vsrc_mandelbrot.c if(SQR(mb->zyklus[j][0]) + SQR(mb->zyklus[j][1]) < closest){ mb 373 libavfilter/vsrc_mandelbrot.c closest= SQR(mb->zyklus[j][0]) + SQR(mb->zyklus[j][1]); mb 377 libavfilter/vsrc_mandelbrot.c c= lrintf((mb->zyklus[closest_index][0]/closest+1)*127+dv) + lrintf((mb->zyklus[closest_index][1]/closest+1)*127+dv)*256; mb 382 libavfilter/vsrc_mandelbrot.c if(next_cidx < mb->cache_allocated){ mb 383 libavfilter/vsrc_mandelbrot.c mb->next_cache[next_cidx ].p[0]= cr; mb 384 libavfilter/vsrc_mandelbrot.c mb->next_cache[next_cidx ].p[1]= ci; mb 385 libavfilter/vsrc_mandelbrot.c mb->next_cache[next_cidx++].val = c; mb 390 libavfilter/vsrc_mandelbrot.c FFSWAP(void*, mb->next_cache, mb->point_cache); mb 391 libavfilter/vsrc_mandelbrot.c mb->cache_used = next_cidx; mb 392 libavfilter/vsrc_mandelbrot.c if(mb->cache_used == mb->cache_allocated) mb 398 libavfilter/vsrc_mandelbrot.c MBContext *mb = link->src->priv; mb 399 libavfilter/vsrc_mandelbrot.c AVFrame *picref = ff_get_video_buffer(link, mb->w, mb->h); mb 404 libavfilter/vsrc_mandelbrot.c picref->pts = mb->pts++; mb 43 libavformat/replaygain.c int32_t mb = 0; mb 58 libavformat/replaygain.c mb += scale * (*fraction - '0'); mb 64 libavformat/replaygain.c if (abs(db) > (INT32_MAX - mb) / 100000) mb 67 libavformat/replaygain.c return db * 100000 + sign * mb; mb 45 tools/yuvcmp.c int mb; mb 95 tools/yuvcmp.c mb = x / 16 + (y / 16) * mb_x; mb 104 tools/yuvcmp.c mb); mb 106 tools/yuvcmp.c mberrors[mb] |= 1; mb 128 tools/yuvcmp.c mb = x / 8 + (y / 8) * mb_x; mb 130 tools/yuvcmp.c mberrors[mb] |= 2 << p;