Searched defs:mvcost (Results 1 - 9 of 9) sorted by relevance

/external/libvpx/libvpx/vp8/encoder/
H A Dencodemv.c122 void vp8_build_component_cost_table(int *mvcost[2], const MV_CONTEXT *mvc, argument
133 mvcost[0][0] = cost_mvcomponent(0, &mvc[0]);
138 mvcost[0][i] = cost0 + vp8_cost_zero(mvc[0].prob[MVPsign]);
139 mvcost[0][-i] = cost0 + vp8_cost_one(mvc[0].prob[MVPsign]);
146 mvcost[1][0] = cost_mvcomponent(0, &mvc[1]);
151 mvcost[1][i] = cost1 + vp8_cost_zero(mvc[1].prob[MVPsign]);
152 mvcost[1][-i] = cost1 + vp8_cost_one(mvc[1].prob[MVPsign]);
324 cpi->mb.mvcost, (const MV_CONTEXT *)cpi->common.fc.mvc, flags);
H A Dblock.h94 int *mvcost[2]; member in struct:macroblock
H A Dmcomp.c29 int vp8_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int Weight) { argument
37 return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] +
38 mvcost[1][(mv->as_mv.col - ref->as_mv.col) >> 1]) *
43 static int mv_err_cost(int_mv *mv, int_mv *ref, int *mvcost[2], argument
45 /* Ignore mv costing if mvcost is NULL */
46 if (mvcost) {
47 return ((mvcost[0][(mv->as_mv.row - ref->as_mv.row) >> 1] +
48 mvcost[1][(mv->as_mv.col - ref->as_mv.col) >> 1]) *
194 (mvcost \
195 ? ((mvcost[
223 vp8_find_best_sub_pixel_step_iteratively(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *bestmv, int_mv *ref_mv, int error_per_bit, const vp8_variance_fn_ptr_t *vfp, int *mvcost[2], int *distortion, unsigned int *sse1) argument
367 vp8_find_best_sub_pixel_step(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *bestmv, int_mv *ref_mv, int error_per_bit, const vp8_variance_fn_ptr_t *vfp, int *mvcost[2], int *distortion, unsigned int *sse1) argument
663 vp8_find_best_half_pixel_step(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *bestmv, int_mv *ref_mv, int error_per_bit, const vp8_variance_fn_ptr_t *vfp, int *mvcost[2], int *distortion, unsigned int *sse1) argument
839 vp8_hex_search(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv, int_mv *best_mv, int search_param, int sad_per_bit, const vp8_variance_fn_ptr_t *vfp, int *mvsadcost[2], int *mvcost[2], int_mv *center_mv) argument
1022 vp8_diamond_search_sad_c(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv, int_mv *best_mv, int search_param, int sad_per_bit, int *num00, vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2], int_mv *center_mv) argument
1134 vp8_diamond_search_sadx4(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv, int_mv *best_mv, int search_param, int sad_per_bit, int *num00, vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2], int_mv *center_mv) argument
1283 vp8_full_search_sad_c(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv, int sad_per_bit, int distance, vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2], int_mv *center_mv) argument
1369 vp8_full_search_sadx3(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv, int sad_per_bit, int distance, vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2], int_mv *center_mv) argument
1488 vp8_full_search_sadx8(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv, int sad_per_bit, int distance, vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2], int_mv *center_mv) argument
1634 vp8_refining_search_sad_c(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv, int error_per_bit, int search_range, vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2], int_mv *center_mv) argument
1712 vp8_refining_search_sadx4(MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv *ref_mv, int error_per_bit, int search_range, vp8_variance_fn_ptr_t *fn_ptr, int *mvcost[2], int_mv *center_mv) argument
[all...]
H A Dpickinter.c127 int *mvcost[2], int *distortion,
135 (void)mvcost;
986 &cpi->fn_ptr[BLOCK_16X16], cpi->mb.mvcost, &distortion2, &sse);
1019 x->mvsadcost, x->mvcost, &best_ref_mv);
1024 &cpi->fn_ptr[BLOCK_16X16], x->mvcost, &best_ref_mv);
1039 &num00, &cpi->fn_ptr[BLOCK_16X16], x->mvcost, &best_ref_mv);
1058 &cpi->fn_ptr[BLOCK_16X16], cpi->mb.mvcost, &distortion2, &sse);
1069 vp8_mv_bit_cost(&mode_mv[NEWMV], &best_ref_mv, cpi->mb.mvcost, 128);
123 vp8_skip_fractional_mv_step(MACROBLOCK *mb, BLOCK *b, BLOCKD *d, int_mv *bestmv, int_mv *ref_mv, int error_per_bit, const vp8_variance_fn_ptr_t *vfp, int *mvcost[2], int *distortion, unsigned int *sse) argument
H A Drdopt.c812 int_mv *best_ref_mv, int *mvcost[2]) {
844 thismvcost = vp8_mv_bit_cost(this_mv, best_ref_mv, mvcost, 102);
1069 v_fn_ptr, x->mvcost, bsi->ref_mv);
1082 v_fn_ptr, x->mvcost, bsi->ref_mv);
1101 v_fn_ptr, x->mvcost, bsi->ref_mv);
1119 x->errorperbit, v_fn_ptr, x->mvcost,
1125 bsi->ref_mv, x->mvcost);
1158 bsi->ref_mv, x->mvcost);
2061 &cpi->fn_ptr[BLOCK_16X16], x->mvcost, &best_ref_mv);
2082 &cpi->fn_ptr[BLOCK_16X16], x->mvcost,
810 labels2mode(MACROBLOCK *x, int const *labelings, int which_label, B_PREDICTION_MODE this_mode, int_mv *this_mv, int_mv *best_ref_mv, int *mvcost[2]) argument
[all...]
/external/libvpx/libvpx/vp9/encoder/
H A Dvp9_encodemv.c69 static void build_nmv_component_cost_table(int *mvcost, argument
98 mvcost[0] = 0;
112 mvcost[v] = cost + sign_cost[0];
113 mvcost[-v] = cost + sign_cost[1];
126 mvcost[v] = cost + hp_cost[0] + sign_cost[0];
127 mvcost[-v] = cost + hp_cost[0] + sign_cost[1];
129 mvcost[v + 1] = cost + hp_cost[1] + sign_cost[0];
130 mvcost[-v - 1] = cost + hp_cost[1] + sign_cost[1];
132 mvcost[v] = cost + sign_cost[0];
133 mvcost[
232 vp9_build_nmv_cost_table(int *mvjoint, int *mvcost[2], const nmv_context *ctx, int usehp) argument
[all...]
H A Dvp9_block.h111 int **mvcost; member in struct:macroblock
H A Dvp9_mcomp.c94 int *mvcost[2], int weight) {
96 return ROUND_POWER_OF_TWO(mv_cost(&diff, mvjcost, mvcost) * weight, 7);
101 int *mvcost[2], int error_per_bit) {
102 if (mvcost) {
105 (int64_t)mv_cost(&diff, mvjcost, mvcost) * error_per_bit,
180 tmpmse += mv_err_cost(&mv, &ref_mv, mvjcost, mvcost, error_per_bit); \
205 if ((v = mv_err_cost(&mv, &ref_mv, mvjcost, mvcost, error_per_bit) + \
326 int *mvjcost, int *mvcost[2], uint32_t *sse1, uint32_t *distortion) {
345 besterr += mv_err_cost(bestmv, ref_mv, mvjcost, mvcost, error_per_bit);
359 besterr += mv_err_cost(bestmv, ref_mv, mvjcost, mvcost, error_per_bi
93 vp9_mv_bit_cost(const MV *mv, const MV *ref, const int *mvjcost, int *mvcost[2], int weight) argument
100 mv_err_cost(const MV *mv, const MV *ref, const int *mvjcost, int *mvcost[2], int error_per_bit) argument
321 setup_center_error( const MACROBLOCKD *xd, const MV *bestmv, const MV *ref_mv, int error_per_bit, const vp9_variance_fn_ptr_t *vfp, const uint8_t *const src, const int src_stride, const uint8_t *const y, int y_stride, const uint8_t *second_pred, int w, int h, int offset, int *mvjcost, int *mvcost[2], uint32_t *sse1, uint32_t *distortion) argument
391 vp9_skip_sub_pixel_tree(const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, int error_per_bit, const vp9_variance_fn_ptr_t *vfp, int forced_stop, int iters_per_step, int *cost_list, int *mvjcost, int *mvcost[2], uint32_t *distortion, uint32_t *sse1, const uint8_t *second_pred, int w, int h) argument
425 vp9_find_best_sub_pixel_tree_pruned_evenmore( const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, int error_per_bit, const vp9_variance_fn_ptr_t *vfp, int forced_stop, int iters_per_step, int *cost_list, int *mvjcost, int *mvcost[2], uint32_t *distortion, uint32_t *sse1, const uint8_t *second_pred, int w, int h) argument
490 vp9_find_best_sub_pixel_tree_pruned_more( const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, int error_per_bit, const vp9_variance_fn_ptr_t *vfp, int forced_stop, int iters_per_step, int *cost_list, int *mvjcost, int *mvcost[2], uint32_t *distortion, uint32_t *sse1, const uint8_t *second_pred, int w, int h) argument
550 vp9_find_best_sub_pixel_tree_pruned( const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, int error_per_bit, const vp9_variance_fn_ptr_t *vfp, int forced_stop, int iters_per_step, int *cost_list, int *mvjcost, int *mvcost[2], uint32_t *distortion, uint32_t *sse1, const uint8_t *second_pred, int w, int h) argument
641 vp9_find_best_sub_pixel_tree( const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, int error_per_bit, const vp9_variance_fn_ptr_t *vfp, int forced_stop, int iters_per_step, int *cost_list, int *mvjcost, int *mvcost[2], uint32_t *distortion, uint32_t *sse1, const uint8_t *second_pred, int w, int h) argument
2280 vp9_return_max_sub_pixel_mv( const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, int error_per_bit, const vp9_variance_fn_ptr_t *vfp, int forced_stop, int iters_per_step, int *cost_list, int *mvjcost, int *mvcost[2], uint32_t *distortion, uint32_t *sse1, const uint8_t *second_pred, int w, int h) argument
2302 vp9_return_min_sub_pixel_mv( const MACROBLOCK *x, MV *bestmv, const MV *ref_mv, int allow_hp, int error_per_bit, const vp9_variance_fn_ptr_t *vfp, int forced_stop, int iters_per_step, int *cost_list, int *mvjcost, int *mvcost[2], uint32_t *distortion, uint32_t *sse1, const uint8_t *second_pred, int w, int h) argument
[all...]
H A Dvp9_rdopt.c1443 int *mvcost[2]) {
1456 mvjcost, mvcost, MV_COST_WEIGHT_SUB);
1460 mvjcost, mvcost, MV_COST_WEIGHT_SUB);
1832 cpi->sf.mv.subpel_iters_per_step, NULL, x->nmvjointcost, x->mvcost,
1859 x->nmvjointcost, x->mvcost, MV_COST_WEIGHT);
2019 x->nmvjointcost, x->mvcost, &distortion,
2058 bsi->ref_mv, x->nmvjointcost, x->mvcost);
2152 x->mvcost);
2424 x->nmvjointcost, x->mvcost, &dis, &x->pred_sse[ref], NULL, 0, 0);
2427 x->mvcost, MV_COST_WEIGH
1438 set_and_cost_bmi_mvs(VP9_COMP *cpi, MACROBLOCK *x, MACROBLOCKD *xd, int i, PREDICTION_MODE mode, int_mv this_mv[2], int_mv frame_mv[MB_MODE_COUNT][MAX_REF_FRAMES], int_mv seg_mvs[MAX_REF_FRAMES], int_mv *best_ref_mv[2], const int *mvjcost, int *mvcost[2]) argument
[all...]

Completed in 180 milliseconds