Home | History | Annotate | Download | only in encoder

Lines Matching defs:mvc

26     const struct mv_context *mvc
29 const vp8_prob *p = mvc->prob;
68 void vp8_encode_motion_vector(vp8_writer *w, const MV *mv, const MV_CONTEXT *mvc)
95 encode_mvcomponent(w, mv->row >> 1, &mvc[0]);
96 encode_mvcomponent(w, mv->col >> 1, &mvc[1]);
100 static unsigned int cost_mvcomponent(const int v, const struct mv_context *mvc)
102 const vp8_prob *p = mvc->prob;
140 void vp8_build_component_cost_table(int *mvcost[2], int *mvsadcost[2], const MV_CONTEXT *mvc, int mvc_flag[2])
167 mvcost [0] [0] = cost_mvcomponent(0, &mvc[0]);
171 //mvcost [0] [i] = cost_mvcomponent( i, &mvc[0]);
172 cost0 = cost_mvcomponent(i, &mvc[0]);
174 mvcost [0] [i] = cost0 + vp8_cost_zero(mvc[0].prob[MVPsign]);
175 mvcost [0] [-i] = cost0 + vp8_cost_one(mvc[0].prob[MVPsign]);
184 mvcost [1] [0] = cost_mvcomponent(0, &mvc[1]);
188 //mvcost [1] [i] = cost_mvcomponent( i, mvc[1]);
189 cost1 = cost_mvcomponent(i, &mvc[1]);
191 mvcost [1] [i] = cost1 + vp8_cost_zero(mvc[1].prob[MVPsign]);
192 mvcost [1] [-i] = cost1 + vp8_cost_one(mvc[1].prob[MVPsign]);
201 mvcost [0] [i] = cost_mvcomponent( i, mvc[0]);
202 mvcost [1] [i] = cost_mvcomponent( i, mvc[1]);
426 MV_CONTEXT *mvc = cpi->common.fc.mvc;
432 w, &mvc[0], &vp8_default_mv_context[0], &vp8_mv_update_probs[0], cpi->MVcount[0], 0, &flags[0]
435 w, &mvc[1], &vp8_default_mv_context[1], &vp8_mv_update_probs[1], cpi->MVcount[1], 1, &flags[1]
439 vp8_build_component_cost_table(cpi->mb.mvcost, cpi->mb.mvsadcost, (const MV_CONTEXT *) cpi->common.fc.mvc, flags);