/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
H A D | vp9_mvref_common.h | 24 // TODO(jingning): this mv clamping function should be block size dependent. 25 static INLINE void clamp_mv2(MV *mv, const MACROBLOCKD *xd) { argument 26 clamp_mv(mv, xd->mb_to_left_edge - LEFT_TOP_MARGIN,
|
H A D | vp9_mv.h | 22 typedef struct mv { struct 37 static INLINE void clamp_mv(MV *mv, int min_col, int max_col, argument 39 mv->col = clamp(mv->col, min_col, max_col); 40 mv->row = clamp(mv->row, min_row, max_row);
|
H A D | vp9_scale.c | 44 MV32 vp9_scale_mv(const MV *mv, int x, int y, const struct scale_factors *sf) { argument 48 scaled_y(mv->row, sf) + y_off_q4, 49 scaled_x(mv->col, sf) + x_off_q4
|
H A D | vp9_entropymode.h | 73 nmv_context_counts mv; member in struct:__anon576
|
H A D | vp9_entropymv.c | 17 // Integer pel reference mv threshold for use of high-precision 1/8 mv 153 d = (o >> 3); /* int mv data */ 154 f = (o >> 1) & 3; /* fractional pel mv data */ 155 e = (o & 1); /* high precision mv data */ 171 void vp9_inc_mv(const MV *mv, nmv_context_counts *counts) { argument 173 const MV_JOINT_TYPE j = vp9_get_mv_joint(mv); 177 inc_mv_component(mv->row, &counts->comps[0], 1, 1); 181 inc_mv_component(mv->col, &counts->comps[1], 1, 1); 201 const nmv_context_counts *counts = &cm->counts.mv; [all...] |
H A D | vp9_entropymv.h | 98 static INLINE MV_JOINT_TYPE vp9_get_mv_joint(const MV *mv) { argument 99 if (mv->row == 0) { 100 return mv->col == 0 ? MV_JOINT_ZERO : MV_JOINT_HNZVZ; 102 return mv->col == 0 ? MV_JOINT_HZVNZ : MV_JOINT_HNZVNZ; 126 void vp9_inc_mv(const MV *mv, nmv_context_counts *mvctx);
|
H A D | vp9_mvref_common.c | 34 // adding 9 for each intra block, 3 for each zero mv and 1 for each new 118 static void clamp_mv_ref(MV *mv, const MACROBLOCKD *xd) { argument 119 clamp_mv(mv, xd->mb_to_left_edge - MV_BORDER, 125 // This function returns either the appropriate sub block or block's mv 132 : candidate->mbmi.mv[which_mv]; 136 // Performs mv sign inversion if indicated by the reference frame combination. 140 int_mv mv = mbmi->mv[ref]; local 142 mv.as_mv.row *= -1; 143 mv 295 lower_mv_precision(MV *mv, int allow_hp) argument [all...] |
H A D | vp9_reconinter.c | 90 MV32 mv = vp9_scale_mv(&mv_q4, x, y, sf); local 91 const int subpel_x = mv.col & SUBPEL_MASK; 92 const int subpel_y = mv.row & SUBPEL_MASK; 94 src += (mv.row >> SUBPEL_BITS) * src_stride + (mv.col >> SUBPEL_BITS); 116 // TODO(jkoleszar): yet another mv clamping function :-( 162 const MV mv = mi->mbmi.sb_type < BLOCK_8X8 local 165 : mi->mbmi.mv[ref].as_mv; 172 const MV mv_q4 = clamp_mv_to_umv_border_sb(xd, &mv, bw, bh, 266 const MV mv local [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
H A D | vp9_mbgraph.h | 22 int_mv mv; member in union:__anon618::__anon619::__anon620
|
H A D | vp9_encodemv.c | 38 const int d = offset >> 3; // int mv data 39 const int fr = (offset >> 1) & 3; // fractional mv data 40 const int hp = offset & 1; // high precision mv data 108 d = (o >> 3); /* int mv data */ 109 f = (o >> 1) & 3; /* fractional pel mv data */ 110 e = (o & 1); /* high precision mv data */ 167 nmv_context_counts *const counts = &cm->counts.mv; 203 const MV* mv, const MV* ref, 205 const MV diff = {mv->row - ref->row, 206 mv 202 vp9_encode_mv(VP9_COMP* cpi, vp9_writer* w, const MV* mv, const MV* ref, const nmv_context* mvctx, int usehp) argument [all...] |
H A D | vp9_temporal_filter.c | 44 const MV mv = { mv_row, mv_col }; local 60 &mv, 68 &mv, 76 &mv, 162 // Ignore mv costing by sending NULL pointer instead of cost arrays 171 // Ignore mv costing by sending NULL pointer instead of cost array 226 // before and 3 pixels after. So the largest Y mv on a border would 228 // Y and therefore only extended by 8. The largest mv that a UV block 229 // can support is 8 - VP9_INTERP_EXTEND. A UV mv is half of a Y mv [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/ |
H A D | ec_types.h | 50 MV mv; member in struct:__anon541
|
H A D | decodemv.c | 111 static void read_mv(vp8_reader *r, MV *mv, const MV_CONTEXT *mvc) argument 113 mv->row = (short)(read_mvcomponent(r, mvc) * 2); 114 mv->col = (short)(read_mvcomponent(r, ++mvc) * 2); 268 leftmv.as_int = left_mb->mbmi.mv.as_int; 270 leftmv.as_int = (left_mb->bmi + k + 4 - 1)->mv.as_int; 273 leftmv.as_int = (mi->bmi + k - 1)->mv.as_int; 279 abovemv.as_int = above_mb->mbmi.mv.as_int; 281 abovemv.as_int = (above_mb->bmi + k + 16 - 4)->mv.as_int; 284 abovemv.as_int = (mi->bmi + k - 4)->mv.as_int; 328 mi->bmi[ *fill_offset].mv [all...] |
H A D | error_concealment.c | 189 new_row = row - bmi->mv.as_mv.row; 190 new_col = col - bmi->mv.as_mv.col; 256 bmi->mv.as_int = 0; 261 col_acc += overlaps[i].overlap * overlaps[i].bmi->mv.as_mv.col; 262 row_acc += overlaps[i].overlap * overlaps[i].bmi->mv.as_mv.row; 268 bmi->mv.as_mv.col = col_acc / overlap_sum; 269 bmi->mv.as_mv.row = row_acc / overlap_sum; 273 bmi->mv.as_mv.col = 0; 274 bmi->mv.as_mv.row = 0; 290 MV * const filtered_mv = &(mi->mbmi.mv 525 int_mv * const mv = &(mi->bmi[row*4 + col].mv); local [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
H A D | findnearmv.h | 15 #include "mv.h" 37 static void vp8_clamp_mv2(int_mv *mv, const MACROBLOCKD *xd) argument 39 if (mv->as_mv.col < (xd->mb_to_left_edge - LEFT_TOP_MARGIN)) 40 mv->as_mv.col = xd->mb_to_left_edge - LEFT_TOP_MARGIN; 41 else if (mv->as_mv.col > xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN) 42 mv->as_mv.col = xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN; 44 if (mv->as_mv.row < (xd->mb_to_top_edge - LEFT_TOP_MARGIN)) 45 mv->as_mv.row = xd->mb_to_top_edge - LEFT_TOP_MARGIN; 46 else if (mv->as_mv.row > xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN) 47 mv 50 vp8_clamp_mv(int_mv *mv, int mb_to_left_edge, int mb_to_right_edge, int mb_to_top_edge, int mb_to_bottom_edge) argument 62 vp8_check_mv_bounds(int_mv *mv, int mb_to_left_edge, int mb_to_right_edge, int mb_to_top_edge, int mb_to_bottom_edge) argument [all...] |
H A D | findnearmv.c | 40 int_mv *mv = near_mvs; local 45 mv[0].as_int = mv[1].as_int = mv[2].as_int = 0; 51 if (above->mbmi.mv.as_int) 53 (++mv)->as_int = above->mbmi.mv.as_int; 54 mv_bias(ref_frame_sign_bias[above->mbmi.ref_frame], refframe, mv, ref_frame_sign_bias); 64 if (left->mbmi.mv.as_int) 68 this_mv.as_int = left->mbmi.mv [all...] |
H A D | reconinter.c | 131 ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); 133 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) 135 sppf(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, pred_ptr, pitch); 154 ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); 156 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv 340 clamp_mv_to_umv_border(MV *mv, const MACROBLOCKD *xd) argument 363 clamp_uvmv_to_umv_border(MV *mv, const MACROBLOCKD *xd) argument [all...] |
H A D | blockd.h | 19 #include "mv.h" 143 int_mv mv; member in union:b_mode_info 160 int_mv mv; member in struct:__anon513 180 int_mv mv; member in struct:__anon514
|
H A D | postproc.c | 955 MV *mv = &bmi->mv.as_mv; local 957 x1 = x0 + 8 + (mv->col >> 3); 958 y1 = y0 + 4 + (mv->row >> 3); 965 x1 = x0 + 8 + (mv->col >> 3); 966 y1 = y0 +12 + (mv->row >> 3); 976 MV *mv = &bmi->mv.as_mv; local 978 x1 = x0 + 4 + (mv->col >> 3); 979 y1 = y0 + 8 + (mv 997 MV *mv = &bmi->mv.as_mv; local 1039 MV *mv = &bmi->mv.as_mv; local 1055 MV *mv = &mi->mbmi.mv.as_mv; local [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
H A D | encodemv.c | 68 void vp8_encode_motion_vector(vp8_writer *w, const MV *mv, const MV_CONTEXT *mvc) argument 73 if (abs(mv->row >> 1) > max_mv_r) 76 max_mv_r = abs(mv->row >> 1); 77 fprintf(f, "New Mv Row Max %6d\n", (mv->row >> 1)); 79 if ((abs(mv->row) / 2) != max_mv_r) 80 fprintf(f, "MV Row conversion error %6d\n", abs(mv->row) / 2); 85 if (abs(mv->col >> 1) > max_mv_c) 88 fprintf(f, "New Mv Col Max %6d\n", (mv->col >> 1)); 89 max_mv_c = abs(mv->col >> 1); 95 encode_mvcomponent(w, mv [all...] |
H A D | block.h | 31 MV mv; member in struct:__anon545 63 int_mv mv; member in struct:__anon546::__anon547
|
H A D | bitstream.c | 452 vp8_writer *w, const MV *mv, const int_mv *ref, const MV_CONTEXT *mvc 456 e.row = mv->row - ref->as_mv.row; 457 e.col = mv->col - ref->as_mv.col; 656 write_mv(w, &mi->mv.as_mv, &best_mv, mvc); 679 blockmv = cpi->mb.partition_info->bmi[j].mv; 450 write_mv( vp8_writer *w, const MV *mv, const int_mv *ref, const MV_CONTEXT *mvc ) argument
|
H A D | mcomp.c | 26 int vp8_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int Weight) argument 35 return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] + mvcost[1][(mv->as_mv.col - ref->as_mv.col) >> 1]) * Weight) >> 7; 38 static int mv_err_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int error_per_bit) argument 40 /* Ignore mv costing if mvcost is NULL */ 42 return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] + 43 mvcost[1][(mv->as_mv.col - ref->as_mv.col) >> 1]) 48 static int mvsad_err_cost(int_mv *mv, int_mv *ref, int *mvsadcost[2], int error_per_bit) argument 51 /* Ignore mv costing if mvsadcost is NULL */ 53 return ((mvsadcost[0][(mv [all...] |
/hardware/intel/common/libva/va/vendor/intel/ |
H A D | va_intel_fei.h | 143 } mv[4]; /* MaxNumPredictor is 4 */ member in struct:_VAEncMVPredictorH264Intel
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
H A D | vp9_decodemv.c | 237 static INLINE void read_mv(vp9_reader *r, MV *mv, const MV *ref, argument 253 mv->row = ref->row + diff.row; 254 mv->col = ref->col + diff.col; 360 static INLINE int is_mv_valid(const MV *mv) { argument 361 return mv->row > MV_LOW && mv->row < MV_UPP && 362 mv->col > MV_LOW && mv->col < MV_UPP; 366 int_mv mv[2], int_mv ref_mv[2], 375 NULL : &cm->counts.mv; 365 assign_mv(VP9_COMMON *cm, MB_PREDICTION_MODE mode, int_mv mv[2], int_mv ref_mv[2], int_mv nearest_mv[2], int_mv near_mv[2], int is_compound, int allow_hp, vp9_reader *r) argument [all...] |