mb 616 libavcodec/aaccoder_twoloop.h int mb = find_min_book(maxvals[w*16+g], sce->sf_idx[w*16+g]-1); mb 649 libavcodec/aaccoder_twoloop.h if (mb && (sce->sf_idx[w*16+g] < mindeltasf || ( mb 208 libavcodec/aic.c int mb, idx; mb 222 libavcodec/aic.c for (mb = 0; mb < slice_width; mb++) { mb 240 libavcodec/aic.c for (mb = 0; mb < slice_width; mb++) { mb 312 libavcodec/aic.c int ret, i, mb, blk; mb 346 libavcodec/aic.c for (mb = 0; mb < slice_width; mb++) { mb 120 libavcodec/cinepakenc.c mb_info *mb; // MB RD state mb 207 libavcodec/cinepakenc.c if (!(s->mb = av_malloc_array(mb_count, sizeof(mb_info)))) mb 266 libavcodec/cinepakenc.c av_freep(&s->mb); mb 283 libavcodec/cinepakenc.c mb_info *mb; mb 296 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 297 libavcodec/cinepakenc.c ret += FF_LAMBDA_SCALE * mb->v1_error; mb 300 libavcodec/cinepakenc.c mb->best_encoding = ENC_V1; mb 311 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 312 libavcodec/cinepakenc.c if (mb->best_encoding == ENC_V1) mb 313 libavcodec/cinepakenc.c score1 = s->lambda * 9 + FF_LAMBDA_SCALE * (mberr = mb->v1_error); mb 315 libavcodec/cinepakenc.c score1 = s->lambda * 33 + FF_LAMBDA_SCALE * (mberr = mb->v4_error); mb 320 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 321 libavcodec/cinepakenc.c score1 = s->lambda * 9 + FF_LAMBDA_SCALE * mb->v1_error; mb 322 libavcodec/cinepakenc.c score2 = s->lambda * 33 + FF_LAMBDA_SCALE * mb->v4_error; mb 326 libavcodec/cinepakenc.c mb->best_encoding = ENC_V1; mb 329 libavcodec/cinepakenc.c mb->best_encoding = ENC_V4; mb 340 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 343 libavcodec/cinepakenc.c score1 = s->lambda * 1 + FF_LAMBDA_SCALE * mb->skip_error; mb 344 libavcodec/cinepakenc.c if (mb->best_encoding == ENC_SKIP) { mb 346 libavcodec/cinepakenc.c } else if (mb->best_encoding == ENC_V1) { mb 347 libavcodec/cinepakenc.c if ((score2 = s->lambda * 10 + FF_LAMBDA_SCALE * mb->v1_error) >= score1) { mb 348 libavcodec/cinepakenc.c mb->best_encoding = ENC_SKIP; mb 355 libavcodec/cinepakenc.c if ((score3 = s->lambda * 34 + FF_LAMBDA_SCALE * mb->v4_error) >= score1) { mb 356 libavcodec/cinepakenc.c mb->best_encoding = ENC_SKIP; mb 368 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 369 libavcodec/cinepakenc.c score1 = s->lambda * 1 + FF_LAMBDA_SCALE * mb->skip_error; mb 370 libavcodec/cinepakenc.c score2 = s->lambda * 10 + FF_LAMBDA_SCALE * mb->v1_error; mb 371 libavcodec/cinepakenc.c score3 = s->lambda * 34 + FF_LAMBDA_SCALE * mb->v4_error; mb 375 libavcodec/cinepakenc.c mb->best_encoding = ENC_SKIP; mb 378 libavcodec/cinepakenc.c mb->best_encoding = ENC_V1; mb 381 libavcodec/cinepakenc.c mb->best_encoding = ENC_V4; mb 551 libavcodec/cinepakenc.c mb_info *mb; mb 568 libavcodec/cinepakenc.c mb = &s->mb[z]; mb 573 libavcodec/cinepakenc.c if (info->mode == MODE_MC && mb->best_encoding == ENC_SKIP) { mb 578 libavcodec/cinepakenc.c } else if (info->mode == MODE_V1_ONLY || mb->best_encoding == ENC_V1) mb 580 libavcodec/cinepakenc.c mb->v1_vector, info); mb 583 libavcodec/cinepakenc.c mb->v4_vector, info); mb 591 libavcodec/cinepakenc.c buf[ret++] = s->mb[x].v1_vector; mb 602 libavcodec/cinepakenc.c if (s->mb[y].best_encoding == ENC_V4) mb 609 libavcodec/cinepakenc.c mb = &s->mb[y]; mb 611 libavcodec/cinepakenc.c if (mb->best_encoding == ENC_V1) mb 612 libavcodec/cinepakenc.c buf[ret++] = mb->v1_vector; mb 615 libavcodec/cinepakenc.c buf[ret++] = mb->v4_vector[z]; mb 629 libavcodec/cinepakenc.c mb = &s->mb[x]; mb 630 libavcodec/cinepakenc.c flags |= (uint32_t)(mb->best_encoding != ENC_SKIP) << (31 - bits++); mb 634 libavcodec/cinepakenc.c if (mb->best_encoding != ENC_SKIP) { mb 636 libavcodec/cinepakenc.c flags |= (uint32_t)(mb->best_encoding == ENC_V4) << (31 - bits++); mb 646 libavcodec/cinepakenc.c if (mb->best_encoding == ENC_SKIP || needs_extra_bit) { mb 655 libavcodec/cinepakenc.c flags = (uint32_t)(mb->best_encoding == ENC_V4) << 31; mb 659 libavcodec/cinepakenc.c if (mb->best_encoding == ENC_V1) mb 660 libavcodec/cinepakenc.c temp[temp_size++] = mb->v1_vector; mb 661 libavcodec/cinepakenc.c else if (mb->best_encoding == ENC_V4) mb 663 libavcodec/cinepakenc.c temp[temp_size++] = mb->v4_vector[z]; mb 734 libavcodec/cinepakenc.c if (s->mb[mbn].best_encoding != encoding) mb 794 libavcodec/cinepakenc.c mb_info *mb = &s->mb[j]; mb 796 libavcodec/cinepakenc.c if (CERTAIN(encoding) && mb->best_encoding != encoding) mb 803 libavcodec/cinepakenc.c mb->v1_vector = s->codebook_closest[i]; mb 806 libavcodec/cinepakenc.c decode_v1_vector(s, vq_data, vq_linesize, mb->v1_vector, info); mb 808 libavcodec/cinepakenc.c mb->v1_error = compute_mb_distortion(s, sub_data, sub_linesize, mb 810 libavcodec/cinepakenc.c total_error += mb->v1_error; mb 813 libavcodec/cinepakenc.c mb->v4_vector[k] = s->codebook_closest[i + k]; mb 816 libavcodec/cinepakenc.c decode_v4_vector(s, vq_data, vq_linesize, mb->v4_vector, info); mb 818 libavcodec/cinepakenc.c mb->v4_error = compute_mb_distortion(s, sub_data, sub_linesize, mb 820 libavcodec/cinepakenc.c total_error += mb->v4_error; mb 846 libavcodec/cinepakenc.c s->mb[i].skip_error = mb 1190 libavcodec/cinepakenc.c av_freep(&s->mb); mb 865 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 901 libavcodec/dnxhdenc.c ctx->mb_rc[(qscale * ctx->m.mb_num) + mb].ssd = ssd; mb 902 libavcodec/dnxhdenc.c ctx->mb_rc[(qscale * ctx->m.mb_num) + mb].bits = ac_bits + dc_bits + 12 + mb 921 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 922 libavcodec/dnxhdenc.c int qscale = ctx->mb_qscale[mb]; mb 955 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 956 libavcodec/dnxhdenc.c ctx->slice_size[mb_y] += ctx->mb_bits[mb]; mb 977 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 998 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].value = varc; mb 999 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].mb = mb; mb 1006 libavcodec/dnxhdenc.c unsigned mb = mb_y * ctx->m.mb_width + mb_x; mb 1026 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].value = sqmean - mean * mean; mb 1027 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].mb = mb; mb 1058 libavcodec/dnxhdenc.c int mb = y * ctx->m.mb_width + x; mb 1061 libavcodec/dnxhdenc.c int i = (q*ctx->m.mb_num) + mb; mb 1071 libavcodec/dnxhdenc.c ctx->mb_qscale[mb] = qscale; mb 1072 libavcodec/dnxhdenc.c ctx->mb_bits[mb] = ctx->mb_rc[rc].bits; mb 1230 libavcodec/dnxhdenc.c int mb = y * ctx->m.mb_width + x; mb 1231 libavcodec/dnxhdenc.c int rc = (ctx->qscale * ctx->m.mb_num ) + mb; mb 1233 libavcodec/dnxhdenc.c ctx->mb_qscale[mb] = ctx->qscale; mb 1234 libavcodec/dnxhdenc.c ctx->mb_bits[mb] = ctx->mb_rc[rc].bits; mb 1239 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].mb = mb; mb 1240 libavcodec/dnxhdenc.c ctx->mb_cmp[mb].value = mb 1255 libavcodec/dnxhdenc.c int mb = ctx->mb_cmp[x].mb; mb 1256 libavcodec/dnxhdenc.c int rc = (ctx->qscale * ctx->m.mb_num ) + mb; mb 1259 libavcodec/dnxhdenc.c ctx->mb_qscale[mb] = ctx->qscale + 1; mb 1260 libavcodec/dnxhdenc.c ctx->mb_bits[mb] = ctx->mb_rc[rc + ctx->m.mb_num].bits; mb 35 libavcodec/dnxhdenc.h uint16_t mb; mb 201 libavcodec/dvdec.c static void dv_decode_ac(GetBitContext *gb, BlockInfo *mb, int16_t *block) mb 204 libavcodec/dvdec.c const uint8_t *scan_table = mb->scan_table; mb 205 libavcodec/dvdec.c const uint32_t *factor_table = mb->factor_table; mb 206 libavcodec/dvdec.c int pos = mb->pos; mb 207 libavcodec/dvdec.c int partial_bit_count = mb->partial_bit_count; mb 216 libavcodec/dvdec.c mb->partial_bit_buffer; mb 218 libavcodec/dvdec.c mb->partial_bit_count = 0; mb 239 libavcodec/dvdec.c mb->partial_bit_count = last_index - re_index; mb 240 libavcodec/dvdec.c mb->partial_bit_buffer = re_cache & ~(-1u >> mb->partial_bit_count); mb 258 libavcodec/dvdec.c mb->pos = pos; mb 328 libavcodec/dvdec.c BlockInfo mb_data[5 * DV_MAX_BPM], *mb, *mb1; mb 364 libavcodec/dvdec.c mb = mb1; mb 376 libavcodec/dvdec.c mb->idct_put = s->idct_put[0]; mb 377 libavcodec/dvdec.c mb->scan_table = s->dv_zigzag[0]; mb 378 libavcodec/dvdec.c mb->factor_table = &s->idct_factor[(j >= 4) * 4 * 16 * 64 + mb 383 libavcodec/dvdec.c mb->idct_put = s->idct_put[dct_mode && log2_blocksize == 3]; mb 384 libavcodec/dvdec.c mb->scan_table = s->dv_zigzag[dct_mode]; mb 385 libavcodec/dvdec.c mb->factor_table = mb 396 libavcodec/dvdec.c mb->pos = 0; mb 397 libavcodec/dvdec.c mb->partial_bit_count = 0; mb 400 libavcodec/dvdec.c dv_decode_ac(&gb, mb, block); mb 404 libavcodec/dvdec.c if (mb->pos >= 64) mb 406 libavcodec/dvdec.c if (mb->pos >= 64 && mb->pos < 127) mb 410 libavcodec/dvdec.c mb++; mb 419 libavcodec/dvdec.c mb = mb1; mb 423 libavcodec/dvdec.c for (j = 0; j < s->sys->bpm; j++, block += 64, mb++) { mb 424 libavcodec/dvdec.c if (mb->pos < 64 && get_bits_left(&gb) > 0) { mb 425 libavcodec/dvdec.c dv_decode_ac(&gb, mb, block); mb 427 libavcodec/dvdec.c if (mb->pos < 64) mb 429 libavcodec/dvdec.c if (mb->pos < 127) mb 442 libavcodec/dvdec.c mb = mb_data; mb 448 libavcodec/dvdec.c if (mb->pos < 64 && get_bits_left(&gb) > 0 && !vs_bit_buffer_damaged) { mb 450 libavcodec/dvdec.c dv_decode_ac(&gb, mb, block); mb 453 libavcodec/dvdec.c if (mb->pos >= 64 && mb->pos < 127) { mb 455 libavcodec/dvdec.c "AC EOB marker is absent pos=%d\n", mb->pos); mb 459 libavcodec/dvdec.c mb++; mb 470 libavcodec/dvdec.c mb = mb_data; mb 489 libavcodec/dvdec.c mb[0].idct_put(y_ptr, linesize, block + 0 * 64); mb 491 libavcodec/dvdec.c mb[2].idct_put(y_ptr + (1 << log2_blocksize), linesize, block + 2 * 64); mb 493 libavcodec/dvdec.c mb[1].idct_put(y_ptr + (1 << log2_blocksize), linesize, block + 1 * 64); mb 494 libavcodec/dvdec.c mb[2].idct_put(y_ptr + y_stride, linesize, block + 2 * 64); mb 495 libavcodec/dvdec.c mb[3].idct_put(y_ptr + (1 << log2_blocksize) + y_stride, linesize, block + 3 * 64); mb 498 libavcodec/dvdec.c mb += 4; mb 511 libavcodec/dvdec.c mb->idct_put(pixels, 8, block); mb 521 libavcodec/dvdec.c mb++; mb 527 libavcodec/dvdec.c mb += 2; mb 531 libavcodec/dvdec.c (mb++)->idct_put(c_ptr, linesize, block); mb 534 libavcodec/dvdec.c (mb++)->idct_put(c_ptr + y_stride, linesize, block); mb 154 libavcodec/dvenc.c int16_t mb[64]; mb 202 libavcodec/dvenc.c size = dv_rl2vlc(bi->cur_ac - prev - 1, bi->mb[bi->cur_ac], mb 387 libavcodec/dvenc.c bi->mb[0] = blk[0]; mb 404 libavcodec/dvenc.c bi->mb[i] = level; mb 427 libavcodec/dvenc.c bi->mb[i] >>= 1; mb 429 libavcodec/dvenc.c if (bi->mb[i]) { mb 430 libavcodec/dvenc.c bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, bi->mb[i]); mb 489 libavcodec/dvenc.c bi->mb[0] = blk[0]; mb 593 libavcodec/dvenc.c b->mb[k] = ac; mb 771 libavcodec/dvenc.c av_assert2(b->next[prev] >= mb_area_start[a + 1] || b->mb[prev]); mb 773 libavcodec/dvenc.c b->mb[k] >>= 1; mb 774 libavcodec/dvenc.c if (b->mb[k]) { mb 775 libavcodec/dvenc.c b->bit_size[a] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); mb 782 libavcodec/dvenc.c av_assert2(b->mb[b->next[k]]); mb 783 libavcodec/dvenc.c b->bit_size[a2] += dv_rl2vlc_size(b->next[k] - prev - 1, b->mb[b->next[k]]) - mb 784 libavcodec/dvenc.c dv_rl2vlc_size(b->next[k] - k - 1, b->mb[b->next[k]]); mb 807 libavcodec/dvenc.c if (b->mb[k] < a && b->mb[k] > -a) { mb 810 libavcodec/dvenc.c size[0] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); mb 953 libavcodec/dvenc.c put_sbits(&pbs[j], 9, ((enc_blks[j].mb[0] >> 3) - 1024 + 2) >> 2); mb 171 libavcodec/escape124.c static void insert_mb_into_sb(SuperBlock* sb, MacroBlock mb, unsigned index) { mb 176 libavcodec/escape124.c dst[0] = mb.pixels32[0]; mb 177 libavcodec/escape124.c dst[4] = mb.pixels32[1]; mb 296 libavcodec/escape124.c MacroBlock mb; mb 315 libavcodec/escape124.c mb = decode_macroblock(s, &gb, &cb_index, superblock_index); mb 320 libavcodec/escape124.c insert_mb_into_sb(&sb, mb, i); mb 337 libavcodec/escape124.c mb = decode_macroblock(s, &gb, &cb_index, mb 339 libavcodec/escape124.c insert_mb_into_sb(&sb, mb, i); mb 344 libavcodec/escape124.c mb = decode_macroblock(s, &gb, &cb_index, superblock_index); mb 345 libavcodec/escape124.c insert_mb_into_sb(&sb, mb, get_bits(&gb, 4)); mb 1880 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, sl, sl->mb + (16*index << pixel_shift), ctx_cat[1][p], index, scan + 1, qmul, 15); mb 1891 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, sl, sl->mb + (16*index << pixel_shift), ctx_cat[3][p], index, mb 1897 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, sl, sl->mb + (16*index << pixel_shift), ctx_cat[2][p], index, scan, qmul, 16); mb 2435 libavcodec/h264_cabac.c decode_cabac_residual_dc_422(h, sl, sl->mb + ((256 + 16*16*c) << pixel_shift), 3, mb 2443 libavcodec/h264_cabac.c int16_t *mb = sl->mb + (16*(16 + 16*c) << pixel_shift); mb 2448 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, sl, mb, 4, index, scan + 1, qmul, 15); mb 2449 libavcodec/h264_cabac.c mb += 16<<pixel_shift; mb 2461 libavcodec/h264_cabac.c decode_cabac_residual_dc(h, sl, sl->mb + ((256 + 16 * 16 * c) << pixel_shift), mb 2471 libavcodec/h264_cabac.c decode_cabac_residual_nondc(h, sl, sl->mb + (16*index << pixel_shift), 4, index, scan + 1, qmul, 15); mb 654 libavcodec/h264_cavlc.c if( decode_residual(h, sl, gb, sl->mb + (16*index << pixel_shift), mb 672 libavcodec/h264_cavlc.c int16_t *buf = &sl->mb[64*i8x8+256*p << pixel_shift]; mb 686 libavcodec/h264_cavlc.c if( decode_residual(h, sl, gb, sl->mb + (16*index << pixel_shift), index, mb 1152 libavcodec/h264_cavlc.c if (decode_residual(h, sl, gb, sl->mb + ((256 + 16*16*chroma_idx) << pixel_shift), mb 1163 libavcodec/h264_cavlc.c int16_t *mb = sl->mb + (16*(16 + 16*chroma_idx) << pixel_shift); mb 1167 libavcodec/h264_cavlc.c if (decode_residual(h, sl, gb, mb, index, scan + 1, qmul, 15) < 0) mb 1169 libavcodec/h264_cavlc.c mb += 16 << pixel_shift; mb 595 libavcodec/h264_mb.c static av_always_inline int dctcoef_get(int16_t *mb, int high_bit_depth, mb 599 libavcodec/h264_mb.c return AV_RN32A(((int32_t *)mb) + index); mb 601 libavcodec/h264_mb.c return AV_RN16A(mb + index); mb 604 libavcodec/h264_mb.c static av_always_inline void dctcoef_set(int16_t *mb, int high_bit_depth, mb 608 libavcodec/h264_mb.c AV_WN32A(((int32_t *)mb) + index, value); mb 610 libavcodec/h264_mb.c AV_WN16A(mb + index, value); mb 641 libavcodec/h264_mb.c h->hpc.pred8x8l_add[dir](ptr, sl->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 643 libavcodec/h264_mb.c h->hpc.pred8x8l_filter_add[dir](ptr, sl->mb + (i * 16 + p * 256 << pixel_shift), mb 651 libavcodec/h264_mb.c if (nnz == 1 && dctcoef_get(sl->mb, pixel_shift, i * 16 + p * 256)) mb 652 libavcodec/h264_mb.c idct_dc_add(ptr, sl->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 654 libavcodec/h264_mb.c idct_add(ptr, sl->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 671 libavcodec/h264_mb.c h->hpc.pred4x4_add[dir](ptr, sl->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 695 libavcodec/h264_mb.c if (nnz == 1 && dctcoef_get(sl->mb, pixel_shift, i * 16 + p * 256)) mb 696 libavcodec/h264_mb.c idct_dc_add(ptr, sl->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 698 libavcodec/h264_mb.c idct_add(ptr, sl->mb + (i * 16 + p * 256 << pixel_shift), linesize); mb 707 libavcodec/h264_mb.c h->h264dsp.h264_luma_dc_dequant_idct(sl->mb + (p * 256 << pixel_shift), mb 718 libavcodec/h264_mb.c dctcoef_set(sl->mb + (p * 256 << pixel_shift), mb 745 libavcodec/h264_mb.c sl->mb + (p * 256 << pixel_shift), mb 750 libavcodec/h264_mb.c dctcoef_get(sl->mb, pixel_shift, i * 16 + p * 256)) mb 752 libavcodec/h264_mb.c sl->mb + (i * 16 + p * 256 << pixel_shift), mb 757 libavcodec/h264_mb.c sl->mb + (p * 256 << pixel_shift), mb 769 libavcodec/h264_mb.c sl->mb + (i * 16 + p * 256 << pixel_shift), mb 774 libavcodec/h264_mb.c sl->mb + (p * 256 << pixel_shift), mb 779 libavcodec/h264_mb.c sl->mb + (p * 256 << pixel_shift), mb 202 libavcodec/h264_mb_template.c sl->mb + (16 * 16 * 1 << PIXEL_SHIFT), mb 206 libavcodec/h264_mb_template.c sl->mb + (16 * 16 * 2 << PIXEL_SHIFT), mb 213 libavcodec/h264_mb_template.c dctcoef_get(sl->mb, PIXEL_SHIFT, i * 16)) mb 215 libavcodec/h264_mb_template.c sl->mb + (i * 16 << PIXEL_SHIFT), mb 220 libavcodec/h264_mb_template.c dctcoef_get(sl->mb, PIXEL_SHIFT, i * 16)) mb 222 libavcodec/h264_mb_template.c sl->mb + (i * 16 << PIXEL_SHIFT), mb 237 libavcodec/h264_mb_template.c h->h264dsp.h264_chroma_dc_dequant_idct(sl->mb + (16 * 16 * 1 << PIXEL_SHIFT), mb 240 libavcodec/h264_mb_template.c h->h264dsp.h264_chroma_dc_dequant_idct(sl->mb + (16 * 16 * 2 << PIXEL_SHIFT), mb 243 libavcodec/h264_mb_template.c sl->mb, uvlinesize, mb 124 libavcodec/h264_parser.c unsigned int mb, last_mb = p->parse_last_mb; mb 129 libavcodec/h264_parser.c mb= get_ue_golomb_long(&gb); mb 131 libavcodec/h264_parser.c p->parse_last_mb = mb; mb 133 libavcodec/h264_parser.c if (mb <= last_mb) { mb 313 libavcodec/h264dec.h DECLARE_ALIGNED(16, int16_t, mb)[16 * 48 * 2]; mb 474 libavcodec/indeo4.c IVIMbInfo *mb, *ref_mb; mb 477 libavcodec/indeo4.c mb = tile->mbs; mb 497 libavcodec/indeo4.c mb->xpos = x; mb 498 libavcodec/indeo4.c mb->ypos = y; mb 499 libavcodec/indeo4.c mb->buf_offs = mb_offset; mb 500 libavcodec/indeo4.c mb->b_mv_x = mb 501 libavcodec/indeo4.c mb->b_mv_y = 0; mb 513 libavcodec/indeo4.c mb->type = 1; /* empty macroblocks are always INTER */ mb 514 libavcodec/indeo4.c mb->cbp = 0; /* all blocks are empty */ mb 516 libavcodec/indeo4.c mb->q_delta = 0; mb 518 libavcodec/indeo4.c mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table, mb 520 libavcodec/indeo4.c mb->q_delta = IVI_TOSIGNED(mb->q_delta); mb 523 libavcodec/indeo4.c mb->mv_x = mb->mv_y = 0; /* no motion vector coded */ mb 527 libavcodec/indeo4.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 528 libavcodec/indeo4.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 530 libavcodec/indeo4.c mb->mv_x = ref_mb->mv_x; mb 531 libavcodec/indeo4.c mb->mv_y = ref_mb->mv_y; mb 541 libavcodec/indeo4.c mb->type = ref_mb->type; mb 544 libavcodec/indeo4.c mb->type = 0; /* mb_type is always INTRA for intra-frames */ mb 546 libavcodec/indeo4.c mb->type = get_bits(&ctx->gb, mb_type_bits); mb 549 libavcodec/indeo4.c mb->cbp = get_bits(&ctx->gb, blks_per_mb); mb 551 libavcodec/indeo4.c mb->q_delta = 0; mb 553 libavcodec/indeo4.c if (ref_mb) mb->q_delta = ref_mb->q_delta; mb 554 libavcodec/indeo4.c } else if (mb->cbp || (!band->plane && !band->band_num && mb 556 libavcodec/indeo4.c mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table, mb 558 libavcodec/indeo4.c mb->q_delta = IVI_TOSIGNED(mb->q_delta); mb 561 libavcodec/indeo4.c if (!mb->type) { mb 562 libavcodec/indeo4.c mb->mv_x = mb->mv_y = 0; /* there is no motion vector in intra-macroblocks */ mb 568 libavcodec/indeo4.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 569 libavcodec/indeo4.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 571 libavcodec/indeo4.c mb->mv_x = ref_mb->mv_x; mb 572 libavcodec/indeo4.c mb->mv_y = ref_mb->mv_y; mb 582 libavcodec/indeo4.c mb->mv_x = mv_x; mb 583 libavcodec/indeo4.c mb->mv_y = mv_y; mb 584 libavcodec/indeo4.c if (mb->type == 3) { mb 593 libavcodec/indeo4.c mb->b_mv_x = -mv_x; mb 594 libavcodec/indeo4.c mb->b_mv_y = -mv_y; mb 597 libavcodec/indeo4.c if (mb->type == 2) { mb 598 libavcodec/indeo4.c mb->b_mv_x = -mb->mv_x; mb 599 libavcodec/indeo4.c mb->b_mv_y = -mb->mv_y; mb 600 libavcodec/indeo4.c mb->mv_x = 0; mb 601 libavcodec/indeo4.c mb->mv_y = 0; mb 607 libavcodec/indeo4.c if (mb->type) mb 608 libavcodec/indeo4.c if ( x + (mb->mv_x >>s) + (y+ (mb->mv_y >>s))*band->pitch < 0 || mb 609 libavcodec/indeo4.c x + ((mb->mv_x+s)>>s) + band->mb_size - 1 mb 610 libavcodec/indeo4.c + (y+band->mb_size - 1 +((mb->mv_y+s)>>s))*band->pitch > band->bufsize -1) { mb 611 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 615 libavcodec/indeo4.c mb++; mb 459 libavcodec/indeo5.c IVIMbInfo *mb, *ref_mb; mb 462 libavcodec/indeo5.c mb = tile->mbs; mb 484 libavcodec/indeo5.c mb->xpos = x; mb 485 libavcodec/indeo5.c mb->ypos = y; mb 486 libavcodec/indeo5.c mb->buf_offs = mb_offset; mb 493 libavcodec/indeo5.c mb->type = 1; /* empty macroblocks are always INTER */ mb 494 libavcodec/indeo5.c mb->cbp = 0; /* all blocks are empty */ mb 496 libavcodec/indeo5.c mb->q_delta = 0; mb 498 libavcodec/indeo5.c mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table, mb 500 libavcodec/indeo5.c mb->q_delta = IVI_TOSIGNED(mb->q_delta); mb 503 libavcodec/indeo5.c mb->mv_x = mb->mv_y = 0; /* no motion vector coded */ mb 507 libavcodec/indeo5.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 508 libavcodec/indeo5.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 510 libavcodec/indeo5.c mb->mv_x = ref_mb->mv_x; mb 511 libavcodec/indeo5.c mb->mv_y = ref_mb->mv_y; mb 516 libavcodec/indeo5.c mb->type = ref_mb->type; /* copy mb_type from corresponding reference mb */ mb 518 libavcodec/indeo5.c mb->type = 0; /* mb_type is always INTRA for intra-frames */ mb 520 libavcodec/indeo5.c mb->type = get_bits1(&ctx->gb); mb 524 libavcodec/indeo5.c mb->cbp = get_bits(&ctx->gb, blks_per_mb); mb 526 libavcodec/indeo5.c mb->q_delta = 0; mb 529 libavcodec/indeo5.c if (ref_mb) mb->q_delta = ref_mb->q_delta; mb 530 libavcodec/indeo5.c } else if (mb->cbp || (!band->plane && !band->band_num && mb 532 libavcodec/indeo5.c mb->q_delta = get_vlc2(&ctx->gb, ctx->mb_vlc.tab->table, mb 534 libavcodec/indeo5.c mb->q_delta = IVI_TOSIGNED(mb->q_delta); mb 538 libavcodec/indeo5.c if (!mb->type) { mb 539 libavcodec/indeo5.c mb->mv_x = mb->mv_y = 0; /* there is no motion vector in intra-macroblocks */ mb 544 libavcodec/indeo5.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 545 libavcodec/indeo5.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 547 libavcodec/indeo5.c mb->mv_x = ref_mb->mv_x; mb 548 libavcodec/indeo5.c mb->mv_y = ref_mb->mv_y; mb 558 libavcodec/indeo5.c mb->mv_x = mv_x; mb 559 libavcodec/indeo5.c mb->mv_y = mv_y; mb 565 libavcodec/indeo5.c if (mb->type) mb 566 libavcodec/indeo5.c if ( x + (mb->mv_x >>s) + (y+ (mb->mv_y >>s))*band->pitch < 0 || mb 567 libavcodec/indeo5.c x + ((mb->mv_x+s)>>s) + band->mb_size - 1 mb 568 libavcodec/indeo5.c + (y+band->mb_size - 1 +((mb->mv_y+s)>>s))*band->pitch > band->bufsize - 1) { mb 569 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 573 libavcodec/indeo5.c mb++; mb 615 libavcodec/ivi.c IVIMbInfo *mb; mb 637 libavcodec/ivi.c for (mbn = 0, mb = tile->mbs; mbn < tile->num_MBs; mb++, mbn++) { mb 638 libavcodec/ivi.c is_intra = !mb->type; mb 639 libavcodec/ivi.c cbp = mb->cbp; mb 640 libavcodec/ivi.c buf_offs = mb->buf_offs; mb 642 libavcodec/ivi.c quant = band->glob_quant + mb->q_delta; mb 653 libavcodec/ivi.c mv_x = mb->mv_x; mb 654 libavcodec/ivi.c mv_y = mb->mv_y; mb 655 libavcodec/ivi.c mv_x2 = mb->b_mv_x; mb 656 libavcodec/ivi.c mv_y2 = mb->b_mv_y; mb 665 libavcodec/ivi.c if (mb->type == 2) mb 667 libavcodec/ivi.c if (mb->type != 2 && mb->type != 3) mb 669 libavcodec/ivi.c if (mb->type) { mb 672 libavcodec/ivi.c dmv_x = mb->mv_x >> band->is_halfpel; mb 673 libavcodec/ivi.c dmv_y = mb->mv_y >> band->is_halfpel; mb 674 libavcodec/ivi.c cx = mb->mv_x & band->is_halfpel; mb 675 libavcodec/ivi.c cy = mb->mv_y & band->is_halfpel; mb 677 libavcodec/ivi.c if (mb->xpos + dmv_x < 0 || mb 678 libavcodec/ivi.c mb->xpos + dmv_x + band->mb_size + cx > band->pitch || mb 679 libavcodec/ivi.c mb->ypos + dmv_y < 0 || mb 680 libavcodec/ivi.c mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { mb 684 libavcodec/ivi.c if (mb->type == 2 || mb->type == 3) { mb 687 libavcodec/ivi.c dmv_x = mb->b_mv_x >> band->is_halfpel; mb 688 libavcodec/ivi.c dmv_y = mb->b_mv_y >> band->is_halfpel; mb 689 libavcodec/ivi.c cx = mb->b_mv_x & band->is_halfpel; mb 690 libavcodec/ivi.c cy = mb->b_mv_y & band->is_halfpel; mb 692 libavcodec/ivi.c if (mb->xpos + dmv_x < 0 || mb 693 libavcodec/ivi.c mb->xpos + dmv_x + band->mb_size + cx > band->pitch || mb 694 libavcodec/ivi.c mb->ypos + dmv_y < 0 || mb 695 libavcodec/ivi.c mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { mb 764 libavcodec/ivi.c IVIMbInfo *mb, *ref_mb; mb 782 libavcodec/ivi.c mb = tile->mbs; mb 791 libavcodec/ivi.c mb->xpos = x; mb 792 libavcodec/ivi.c mb->ypos = y; mb 793 libavcodec/ivi.c mb->buf_offs = mb_offset; mb 795 libavcodec/ivi.c mb->type = 1; /* set the macroblocks type = INTER */ mb 796 libavcodec/ivi.c mb->cbp = 0; /* all blocks are empty */ mb 799 libavcodec/ivi.c mb->q_delta = band->glob_quant; mb 800 libavcodec/ivi.c mb->mv_x = 0; mb 801 libavcodec/ivi.c mb->mv_y = 0; mb 806 libavcodec/ivi.c mb->q_delta = ref_mb->q_delta; mb 811 libavcodec/ivi.c mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); mb 812 libavcodec/ivi.c mb->mv_y = ivi_scale_mv(ref_mb->mv_y, mv_scale); mb 814 libavcodec/ivi.c mb->mv_x = ref_mb->mv_x; mb 815 libavcodec/ivi.c mb->mv_y = ref_mb->mv_y; mb 817 libavcodec/ivi.c need_mc |= mb->mv_x || mb->mv_y; /* tracking non-zero motion vectors */ mb 821 libavcodec/ivi.c dmv_x = mb->mv_x >> is_halfpel; mb 822 libavcodec/ivi.c dmv_y = mb->mv_y >> is_halfpel; mb 823 libavcodec/ivi.c cx = mb->mv_x & is_halfpel; mb 824 libavcodec/ivi.c cy = mb->mv_y & is_halfpel; mb 826 libavcodec/ivi.c if ( mb->xpos + dmv_x < 0 mb 827 libavcodec/ivi.c || mb->xpos + dmv_x + mb_size + cx > pitch mb 828 libavcodec/ivi.c || mb->ypos + dmv_y < 0 mb 829 libavcodec/ivi.c || mb->ypos + dmv_y + mb_size + cy > band->aheight) { mb 838 libavcodec/ivi.c mb++; mb 849 libavcodec/ivi.c for (mbn = 0, mb = tile->mbs; mbn < tile->num_MBs; mb++, mbn++) { mb 850 libavcodec/ivi.c mv_x = mb->mv_x; mb 851 libavcodec/ivi.c mv_y = mb->mv_y; mb 862 libavcodec/ivi.c offs = mb->buf_offs + band->blk_size * ((blk & 1) + !!(blk & 2) * pitch); mb 201 libavcodec/mpc7.c int mb = -1; mb 252 libavcodec/mpc7.c mb = i; mb 257 libavcodec/mpc7.c for(i = 0; i <= mb; i++) mb 261 libavcodec/mpc7.c for(i = 0; i <= mb; i++){ mb 294 libavcodec/mpc7.c ff_mpc_dequantize_and_synth(c, mb, (int16_t **)frame->extended_data, 2); mb 32 libavcodec/mpegutils.c static int add_mb(AVMotionVector *mb, uint32_t mb_type, mb 37 libavcodec/mpegutils.c mb->w = IS_8X8(mb_type) || IS_8X16(mb_type) ? 8 : 16; mb 38 libavcodec/mpegutils.c mb->h = IS_8X8(mb_type) || IS_16X8(mb_type) ? 8 : 16; mb 39 libavcodec/mpegutils.c mb->motion_x = motion_x; mb 40 libavcodec/mpegutils.c mb->motion_y = motion_y; mb 41 libavcodec/mpegutils.c mb->motion_scale = motion_scale; mb 42 libavcodec/mpegutils.c mb->dst_x = dst_x; mb 43 libavcodec/mpegutils.c mb->dst_y = dst_y; mb 44 libavcodec/mpegutils.c mb->src_x = dst_x + motion_x / motion_scale; mb 45 libavcodec/mpegutils.c mb->src_y = dst_y + motion_y / motion_scale; mb 46 libavcodec/mpegutils.c mb->source = direction ? 1 : -1; mb 47 libavcodec/mpegutils.c mb->flags = 0; // XXX: does mb_type contain extra information that could be exported here? mb 34 libavcodec/opus_rc.c const int cb = cbuf >> OPUS_RC_SYM, mb = (OPUS_RC_CEIL + cb) & OPUS_RC_CEIL; mb 42 libavcodec/opus_rc.c *rc->rng_cur++ = mb; mb 979 libavcodec/proresenc_kostya.c int x, y = jobnr, mb, q = 0; mb 981 libavcodec/proresenc_kostya.c for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) { mb 985 libavcodec/proresenc_kostya.c (mb + 1) * TRELLIS_WIDTH, x, y, mb 1004 libavcodec/proresenc_kostya.c int x, y, i, mb, q = 0; mb 1081 libavcodec/proresenc_kostya.c for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) { mb 1083 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 145 libavcodec/svq3.c DECLARE_ALIGNED(16, int16_t, mb)[16 * 48 * 2]; mb 626 libavcodec/svq3.c if (s->non_zero_count_cache[scan8[i]] || s->mb[i * 16]) { mb 628 libavcodec/svq3.c svq3_add_idct_c(ptr, s->mb + i * 16, linesize, mb 664 libavcodec/svq3.c svq3_add_idct_c(ptr, s->mb + i * 16, linesize, qscale, 0); mb 669 libavcodec/svq3.c svq3_luma_dc_dequant_idct_c(s->mb, s->mb_luma_dc[0], qscale); mb 706 libavcodec/svq3.c s->h264dsp.h264_chroma_dc_dequant_idct(s->mb + 16 * 16 * 1, mb 708 libavcodec/svq3.c s->h264dsp.h264_chroma_dc_dequant_idct(s->mb + 16 * 16 * 2, mb 712 libavcodec/svq3.c if (s->non_zero_count_cache[scan8[i]] || s->mb[i * 16]) { mb 714 libavcodec/svq3.c svq3_add_idct_c(ptr, s->mb + i * 16, mb 977 libavcodec/svq3.c if (svq3_decode_block(&s->gb_slice, &s->mb[16 * k], index, type)) { mb 987 libavcodec/svq3.c if (svq3_decode_block(&s->gb_slice, &s->mb[16 * 16 * i], 0, 3)) { mb 999 libavcodec/svq3.c if (svq3_decode_block(&s->gb_slice, &s->mb[16 * k], 1, 1)) { mb 270 libavcodec/truemotion2.c int d, mb; mb 274 libavcodec/truemotion2.c mb = get_bits(&ctx->gb, 5); mb 276 libavcodec/truemotion2.c av_assert2(mb < 32); mb 277 libavcodec/truemotion2.c if ((d < 1) || (d > TM2_DELTAS) || (mb < 1)) { mb 278 libavcodec/truemotion2.c av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect delta table: %i deltas x %i bits\n", d, mb); mb 283 libavcodec/truemotion2.c v = get_bits_long(&ctx->gb, mb); mb 284 libavcodec/truemotion2.c if (v & (1 << (mb - 1))) mb 285 libavcodec/truemotion2.c ctx->deltas[stream_id][i] = v - (1U << mb); mb 913 libavcodec/vp8.c int decode_splitmvs(VP8Context *s, VP56RangeCoder *c, VP8Macroblock *mb, mb 919 libavcodec/vp8.c VP8Macroblock *left_mb = &mb[-1]; mb 924 libavcodec/vp8.c VP56mv *cur_mv = mb->bmv; mb 927 libavcodec/vp8.c top_mb = &mb[2]; mb 929 libavcodec/vp8.c top_mb = &mb[-s->mb_width - 1]; mb 945 libavcodec/vp8.c mb->partitioning = part_idx; mb 966 libavcodec/vp8.c mb->bmv[n].y = mb->mv.y + mb 968 libavcodec/vp8.c mb->bmv[n].x = mb->mv.x + mb 971 libavcodec/vp8.c AV_ZERO32(&mb->bmv[n]); mb 974 libavcodec/vp8.c AV_WN32A(&mb->bmv[n], above); mb 977 libavcodec/vp8.c AV_WN32A(&mb->bmv[n], left); mb 1008 libavcodec/vp8.c static const VP56mv *get_bmv_ptr(const VP8Macroblock *mb, int subblock) mb 1010 libavcodec/vp8.c return &mb->bmv[mb->mode == VP8_MVMODE_SPLIT ? vp8_mbsplits[mb->partitioning][subblock] : 0]; mb 1014 libavcodec/vp8.c void vp7_decode_mvs(VP8Context *s, VP8Macroblock *mb, mb 1067 libavcodec/vp8.c mb->partitioning = VP8_SPLITMVMODE_NONE; mb 1070 libavcodec/vp8.c mb->mode = VP8_MVMODE_MV; mb 1077 libavcodec/vp8.c AV_WN32A(&mb->mv, cnt[CNT_ZERO] > cnt[CNT_NEAREST] ? 0 : AV_RN32A(&near_mv[CNT_NEAREST])); mb 1079 libavcodec/vp8.c AV_WN32A(&mb->mv, cnt[CNT_ZERO] > cnt[CNT_NEAR] ? 0 : AV_RN32A(&near_mv[CNT_NEAR])); mb 1082 libavcodec/vp8.c mb->mode = VP8_MVMODE_SPLIT; mb 1083 libavcodec/vp8.c mb->mv = mb->bmv[decode_splitmvs(s, c, mb, layout, IS_VP7) - 1]; mb 1085 libavcodec/vp8.c mb->mv.y += vp7_read_mv_component(c, s->prob->mvc[0]); mb 1086 libavcodec/vp8.c mb->mv.x += vp7_read_mv_component(c, s->prob->mvc[1]); mb 1087 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1090 libavcodec/vp8.c mb->mv = near_mv[CNT_NEAR]; mb 1091 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1094 libavcodec/vp8.c mb->mv = near_mv[CNT_NEAREST]; mb 1095 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1098 libavcodec/vp8.c mb->mode = VP8_MVMODE_ZERO; mb 1099 libavcodec/vp8.c AV_ZERO32(&mb->mv); mb 1100 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1105 libavcodec/vp8.c void vp8_decode_mvs(VP8Context *s, VP8mvbounds *mv_bounds, VP8Macroblock *mb, mb 1109 libavcodec/vp8.c mb - 1 /* left */, mb 1114 libavcodec/vp8.c int cur_sign_bias = s->sign_bias[mb->ref_frame]; mb 1121 libavcodec/vp8.c mb_edge[0] = mb + 2; mb 1122 libavcodec/vp8.c mb_edge[2] = mb + 1; mb 1124 libavcodec/vp8.c mb_edge[0] = mb - s->mb_width - 1; mb 1125 libavcodec/vp8.c mb_edge[2] = mb - s->mb_width - 2; mb 1158 libavcodec/vp8.c mb->partitioning = VP8_SPLITMVMODE_NONE; mb 1160 libavcodec/vp8.c mb->mode = VP8_MVMODE_MV; mb 1176 libavcodec/vp8.c clamp_mv(mv_bounds, &mb->mv, &near_mv[CNT_ZERO + (cnt[CNT_NEAREST] >= cnt[CNT_ZERO])]); mb 1182 libavcodec/vp8.c mb->mode = VP8_MVMODE_SPLIT; mb 1183 libavcodec/vp8.c mb->mv = mb->bmv[decode_splitmvs(s, c, mb, layout, IS_VP8) - 1]; mb 1185 libavcodec/vp8.c mb->mv.y += vp8_read_mv_component(c, s->prob->mvc[0]); mb 1186 libavcodec/vp8.c mb->mv.x += vp8_read_mv_component(c, s->prob->mvc[1]); mb 1187 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1190 libavcodec/vp8.c clamp_mv(mv_bounds, &mb->mv, &near_mv[CNT_NEAR]); mb 1191 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1194 libavcodec/vp8.c clamp_mv(mv_bounds, &mb->mv, &near_mv[CNT_NEAREST]); mb 1195 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1198 libavcodec/vp8.c mb->mode = VP8_MVMODE_ZERO; mb 1199 libavcodec/vp8.c AV_ZERO32(&mb->mv); mb 1200 libavcodec/vp8.c mb->bmv[0] = mb->mv; mb 1205 libavcodec/vp8.c void decode_intra4x4_modes(VP8Context *s, VP56RangeCoder *c, VP8Macroblock *mb, mb 1208 libavcodec/vp8.c uint8_t *intra4x4 = mb->intra4x4_pred_mode_mb; mb 1211 libavcodec/vp8.c VP8Macroblock *mb_top = mb - s->mb_width - 1; mb 1212 libavcodec/vp8.c memcpy(mb->intra4x4_pred_mode_top, mb_top->intra4x4_pred_mode_top, 4); mb 1219 libavcodec/vp8.c top = mb->intra4x4_pred_mode_top; mb 1241 libavcodec/vp8.c VP8Macroblock *mb, int mb_x, int mb_y, mb 1268 libavcodec/vp8.c mb->segment = *segment; mb 1270 libavcodec/vp8.c mb->skip = s->mbskip_enabled ? vp56_rac_get_prob(c, s->prob->mbskip) : 0; mb 1273 libavcodec/vp8.c mb->mode = vp8_rac_get_tree(c, vp8_pred16x16_tree_intra, mb 1276 libavcodec/vp8.c if (mb->mode == MODE_I4x4) { mb 1277 libavcodec/vp8.c decode_intra4x4_modes(s, c, mb, mb_x, 1, layout); mb 1280 libavcodec/vp8.c : vp8_pred4x4_mode)[mb->mode] * 0x01010101u; mb 1282 libavcodec/vp8.c AV_WN32A(mb->intra4x4_pred_mode_top, modes); mb 1288 libavcodec/vp8.c mb->chroma_pred_mode = vp8_rac_get_tree(c, vp8_pred8x8c_tree, mb 1290 libavcodec/vp8.c mb->ref_frame = VP56_FRAME_CURRENT; mb 1294 libavcodec/vp8.c mb->ref_frame = mb 1298 libavcodec/vp8.c mb->ref_frame = VP56_FRAME_PREVIOUS; mb 1299 libavcodec/vp8.c s->ref_count[mb->ref_frame - 1]++; mb 1303 libavcodec/vp8.c vp7_decode_mvs(s, mb, mb_x, mb_y, layout); mb 1305 libavcodec/vp8.c vp8_decode_mvs(s, mv_bounds, mb, mb_x, mb_y, layout); mb 1308 libavcodec/vp8.c mb->mode = vp8_rac_get_tree(c, vp8_pred16x16_tree_inter, s->prob->pred16x16); mb 1310 libavcodec/vp8.c if (mb->mode == MODE_I4x4) mb 1311 libavcodec/vp8.c decode_intra4x4_modes(s, c, mb, mb_x, 0, layout); mb 1313 libavcodec/vp8.c mb->chroma_pred_mode = vp8_rac_get_tree(c, vp8_pred8x8c_tree, mb 1315 libavcodec/vp8.c mb->ref_frame = VP56_FRAME_CURRENT; mb 1316 libavcodec/vp8.c mb->partitioning = VP8_SPLITMVMODE_NONE; mb 1317 libavcodec/vp8.c AV_ZERO32(&mb->bmv[0]); mb 1467 libavcodec/vp8.c VP8Macroblock *mb, uint8_t t_nnz[9], uint8_t l_nnz[9], mb 1472 libavcodec/vp8.c int segment = mb->segment; mb 1475 libavcodec/vp8.c if (mb->mode != MODE_I4x4 && (is_vp7 || mb->mode != VP8_MVMODE_SPLIT)) { mb 1484 libavcodec/vp8.c if (is_vp7 && mb->mode > MODE_I4x4) { mb 1486 libavcodec/vp8.c s->inter_dc_pred[mb->ref_frame - 1]); mb 1537 libavcodec/vp8.c mb->skip = 1; mb 1668 libavcodec/vp8.c VP8Macroblock *mb, int mb_x, int mb_y, int is_vp7) mb 1680 libavcodec/vp8.c if (mb->mode < MODE_I4x4) { mb 1681 libavcodec/vp8.c mode = check_intra_pred8x8_mode_emuedge(mb->mode, mb_x, mb_y, is_vp7); mb 1685 libavcodec/vp8.c uint8_t *intra4x4 = mb->intra4x4_pred_mode_mb; mb 1701 libavcodec/vp8.c if (mb->skip) mb 1770 libavcodec/vp8.c mode = check_intra_pred8x8_mode_emuedge(mb->chroma_pred_mode, mb 1951 libavcodec/vp8.c void prefetch_motion(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y, mb 1957 libavcodec/vp8.c int mx = (mb->mv.x >> 2) + x_off + 8; mb 1958 libavcodec/vp8.c int my = (mb->mv.y >> 2) + y_off; mb 1975 libavcodec/vp8.c VP8Macroblock *mb, int mb_x, int mb_y) mb 1979 libavcodec/vp8.c ThreadFrame *ref = &s->framep[mb->ref_frame]->tf; mb 1980 libavcodec/vp8.c VP56mv *bmv = mb->bmv; mb 1982 libavcodec/vp8.c switch (mb->partitioning) { mb 1985 libavcodec/vp8.c 0, 0, 16, 16, width, height, &mb->mv); mb 2009 libavcodec/vp8.c uvmv.x = mb->bmv[2 * y * 4 + 2 * x ].x + mb 2010 libavcodec/vp8.c mb->bmv[2 * y * 4 + 2 * x + 1].x + mb 2011 libavcodec/vp8.c mb->bmv[(2 * y + 1) * 4 + 2 * x ].x + mb 2012 libavcodec/vp8.c mb->bmv[(2 * y + 1) * 4 + 2 * x + 1].x; mb 2013 libavcodec/vp8.c uvmv.y = mb->bmv[2 * y * 4 + 2 * x ].y + mb 2014 libavcodec/vp8.c mb->bmv[2 * y * 4 + 2 * x + 1].y + mb 2015 libavcodec/vp8.c mb->bmv[(2 * y + 1) * 4 + 2 * x ].y + mb 2016 libavcodec/vp8.c mb->bmv[(2 * y + 1) * 4 + 2 * x + 1].y; mb 2058 libavcodec/vp8.c void idct_mb(VP8Context *s, VP8ThreadData *td, uint8_t *dst[3], VP8Macroblock *mb) mb 2062 libavcodec/vp8.c if (mb->mode != MODE_I4x4) { mb 2120 libavcodec/vp8.c void filter_level_for_mb(VP8Context *s, VP8Macroblock *mb, mb 2126 libavcodec/vp8.c filter_level = s->segmentation.filter_level[mb->segment]; mb 2133 libavcodec/vp8.c filter_level += s->lf_delta.ref[mb->ref_frame]; mb 2134 libavcodec/vp8.c filter_level += s->lf_delta.mode[mb->mode]; mb 2148 libavcodec/vp8.c f->inner_filter = is_vp7 || !mb->skip || mb->mode == MODE_I4x4 || mb 2149 libavcodec/vp8.c mb->mode == VP8_MVMODE_SPLIT; mb 2283 libavcodec/vp8.c VP8Macroblock *mb = s->macroblocks_base + mb 2295 libavcodec/vp8.c for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { mb 2297 libavcodec/vp8.c AV_WN32A((mb - s->mb_width - 1)->intra4x4_pred_mode_top, mb 2299 libavcodec/vp8.c decode_mb_mode(s, &s->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, mb 2371 libavcodec/vp8.c VP8Macroblock *mb; mb 2390 libavcodec/vp8.c mb = s->macroblocks_base + ((s->mb_width + 1) * (mb_y + 1) + 1); mb 2397 libavcodec/vp8.c mb = s->macroblocks + (s->mb_height - mb_y - 1) * 2; mb 2398 libavcodec/vp8.c memset(mb - 1, 0, sizeof(*mb)); // zero left macroblock mb 2408 libavcodec/vp8.c for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { mb 2430 libavcodec/vp8.c decode_mb_mode(s, &td->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, mb 2434 libavcodec/vp8.c prefetch_motion(s, mb, mb_x, mb_y, mb_xy, VP56_FRAME_PREVIOUS); mb 2436 libavcodec/vp8.c if (!mb->skip) mb 2437 libavcodec/vp8.c decode_mb_coeffs(s, td, c, mb, s->top_nnz[mb_x], td->left_nnz, is_vp7); mb 2439 libavcodec/vp8.c if (mb->mode <= MODE_I4x4) mb 2440 libavcodec/vp8.c intra_predict(s, td, dst, mb, mb_x, mb_y, is_vp7); mb 2442 libavcodec/vp8.c inter_predict(s, td, dst, mb, mb_x, mb_y); mb 2444 libavcodec/vp8.c prefetch_motion(s, mb, mb_x, mb_y, mb_xy, VP56_FRAME_GOLDEN); mb 2446 libavcodec/vp8.c if (!mb->skip) { mb 2447 libavcodec/vp8.c idct_mb(s, td, dst, mb); mb 2454 libavcodec/vp8.c if (mb->mode != MODE_I4x4 && mb->mode != VP8_MVMODE_SPLIT) { mb 2461 libavcodec/vp8.c filter_level_for_mb(s, mb, &td->filter_strength[mb_x], is_vp7); mb 2472 libavcodec/vp8.c prefetch_motion(s, mb, mb_x, mb_y, mb_xy, VP56_FRAME_GOLDEN2); mb 2508 libavcodec/vp8.c VP8Macroblock *mb; mb 2517 libavcodec/vp8.c mb = s->macroblocks_base + ((s->mb_width + 1) * (mb_y + 1) + 1); mb 2519 libavcodec/vp8.c mb = s->macroblocks + (s->mb_height - mb_y - 1) * 2; mb 2530 libavcodec/vp8.c for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb++) { mb 122 libavfilter/vf_colormatrix.c double det = ma * (me * mi - mf * mh) - mb * (md * mi - mf * mg) + mc * (md * mh - me * mg); mb 125 libavfilter/vf_colormatrix.c imb = det * (mc * mh - mb * mi); mb 126 libavfilter/vf_colormatrix.c imc = det * (mb * mf - mc * me); mb 131 libavfilter/vf_colormatrix.c imh = det * (mb * mg - ma * mh); mb 132 libavfilter/vf_colormatrix.c imi = det * (ma * me - mb * md); 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 394 libavutil/tx_template.c int m = s->m, mb = av_log2(m); mb 397 libavutil/tx_template.c fft_dispatch[mb](out); 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;