/third_party/ffmpeg/libavcodec/ |
H A D | indeo4.c | 472 int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, blks_per_mb, in decode_mb_info() local 486 mv_x = mv_y = 0; in decode_mb_info() 523 mb->mv_x = mb->mv_y = 0; /* no motion vector coded */ in decode_mb_info() 527 mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); in decode_mb_info() 530 mb->mv_x = ref_mb->mv_x; in decode_mb_info() 562 mb->mv_x = mb->mv_y = 0; /* there is no motion vector in intra-macroblocks */ in decode_mb_info() 568 mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scal in decode_mb_info() [all...] |
H A D | indeo5.c | 458 int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, in decode_mb_info() local 479 mv_x = mv_y = 0; in decode_mb_info() 504 mb->mv_x = mb->mv_y = 0; /* no motion vector coded */ in decode_mb_info() 508 mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale); in decode_mb_info() 511 mb->mv_x = ref_mb->mv_x; in decode_mb_info() 540 mb->mv_x = mb->mv_y = 0; /* there is no motion vector in intra-macroblocks */ in decode_mb_info() 545 mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scal in decode_mb_info() [all...] |
H A D | ivi.c | 82 int offs, int mv_x, int mv_y, int mv_x2, int mv_y2, in ivi_mc() 85 int ref_offs = offs + mv_y * band->pitch + mv_x; in ivi_mc() 487 int mv_x, int mv_y, in ivi_decode_coded_blocks() 580 return ivi_mc(band, mc, mc_avg, offs, mv_x, mv_y, mv_x2, mv_y2, in ivi_decode_coded_blocks() 601 int mv_x = 0, mv_y = 0, mv_x2 = 0, mv_y2 = 0; in ivi_decode_blocks() local 642 mv_x = mb->mv_x; in ivi_decode_blocks() 647 mc_type = ((mv_y & 1) << 1) | (mv_x & 1); in ivi_decode_blocks() 649 mv_x >>= 1; in ivi_decode_blocks() 661 dmv_x = mb->mv_x >> ban in ivi_decode_blocks() 81 ivi_mc(const IVIBandDesc *band, ivi_mc_func mc, ivi_mc_avg_func mc_avg, int offs, int mv_x, int mv_y, int mv_x2, int mv_y2, int mc_type, int mc_type2) ivi_mc() argument 485 ivi_decode_coded_blocks(GetBitContext *gb, const IVIBandDesc *band, ivi_mc_func mc, ivi_mc_avg_func mc_avg, int mv_x, int mv_y, int mv_x2, int mv_y2, int *prev_dc, int is_intra, int mc_type, int mc_type2, uint32_t quant, int offs, AVCodecContext *avctx) ivi_decode_coded_blocks() argument 751 int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type; ivi_process_empty_tile() local [all...] |
H A D | eamad.c | 97 int j, int mv_x, int mv_y, int add) in comp_block() 100 unsigned offset = (mb_y*16 + ((j&2)<<2) + mv_y)*t->last_frame->linesize[0] + mb_x*16 + ((j&1)<<3) + mv_x; in comp_block() 109 unsigned offset = (mb_y * 8 + (mv_y/2))*t->last_frame->linesize[index] + mb_x * 8 + (mv_x/2); in comp_block() 214 int av_uninit(mv_x), av_uninit(mv_y); in decode_mb() 221 mv_x = decode_motion(&s->gb); in decode_mb() 227 if (mv_map & (1<<j)) { // mv_x and mv_y are guarded by mv_map in decode_mb() 230 comp_block(s, frame, s->mb_x, s->mb_y, j, mv_x, mv_y, add); in decode_mb() 95 comp_block(MadContext *t, AVFrame *frame, int mb_x, int mb_y, int j, int mv_x, int mv_y, int add) comp_block() argument
|
H A D | indeo3.c | 226 * Copy pixels of the cell(x + mv_x, y + mv_y) from the previous frame into 235 int h, w, mv_x, mv_y, offset, offset_dst; in copy_cell() local 243 mv_x = cell->mv_ptr[1]; in copy_cell() 245 mv_x= mv_y= 0; in copy_cell() 248 if ((cell->ypos << 2) + mv_y < -1 || (cell->xpos << 2) + mv_x < 0 || in copy_cell() 250 ((cell->xpos + cell->width) << 2) + mv_x > plane->width) { in copy_cell() 256 offset = offset_dst + mv_y * plane->pitch + mv_x; in copy_cell() 587 int x, mv_x, mv_y, mode, vq_index, prim_indx, second_indx; in decode_cell() local 615 mv_x = cell->mv_ptr[1]; in decode_cell() 618 if ((cell->ypos << 2) + mv_y < -1 || (cell->xpos << 2) + mv_x < in decode_cell() [all...] |
H A D | agm.c | 422 int mv_x = s->mvectors[mvpos].x / (1 + !shift); in decode_inter_plane() local 430 x * 8 + mv_x < 0 || x * 8 + mv_x + 8 > w) in decode_inter_plane() 434 prev->data[plane] + ((s->blocks_h - 1 - y) * 8 - mv_y) * prev->linesize[plane] + (x * 8 + mv_x), in decode_inter_plane() 455 int mv_x = s->mvectors[mvpos].x / (1 + !shift); in decode_inter_plane() local 467 x * 8 + mv_x < 0 || x * 8 + mv_x + 8 > w) in decode_inter_plane() 471 prev->data[plane] + ((s->blocks_h - 1 - y) * 8 - mv_y) * prev->linesize[plane] + (x * 8 + mv_x), in decode_inter_plane()
|
H A D | ivi.h | 117 int8_t mv_x; ///< motion vector (x component) member
|
H A D | mv30.c | 550 int mv_x = sign_extend(bytestream2_get_ne16(&mv), 16); in decode_inter() local 553 int px = x + mv_x; in decode_inter()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_minterpolate.c | 257 int mv_x, mv_y, i, j; in get_sbad() local 262 mv_x = av_clip(x_mv - x, -FFMIN(x - me_ctx->x_min, me_ctx->x_max - x), FFMIN(x - me_ctx->x_min, me_ctx->x_max - x)); in get_sbad() 270 sbad += FFABS(data_cur[x + mv_x + i + j * linesize] - data_next[x - mv_x + i + j * linesize]); in get_sbad() 286 int mv_x, mv_y, i, j; in get_sbad_ob() local 291 mv_x = av_clip(x_mv - x, -FFMIN(x - x_min, x_max - x), FFMIN(x - x_min, x_max - x)); in get_sbad_ob() 296 sbad += FFABS(data_cur[x + mv_x + i + (y + mv_y + j) * linesize] - data_next[x - mv_x + i + (y - mv_y + j) * linesize]); in get_sbad_ob() 310 int mv_x = x_mv - x; in get_sad_ob() local 324 return sad + (FFABS(mv_x in get_sad_ob() 585 int mv_x, mv_y; var_size_bme() local 645 int mv_x, mv_y, avg_x, avg_y, dx, dy; cluster_mvs() local 873 int mv_x = mi_ctx->frames[2 - dir].blocks[mb_x + mb_y * mi_ctx->b_width].mvs[dir][0]; bidirectional_obmc() local 980 int mv_x = sb->mvs[0][0] * 2; var_size_bmc() local 1015 int mv_x = block->mvs[0][0] * 2; bilateral_obmc() local [all...] |
H A D | motion_estimation.h | 61 int mv_x, int mv_y);
|