av1/encoder/mcomp.c
// Returns the cost of encoding the motion vector diff := *mv - *ref. The cost
// is defined as the rate required to encode diff * weight, rounded to the
// nearest 2 ** 7.
// This is NOT used during motion compensation.
Returns the cost of encoding the motion vector diff := *mv - *ref. The cost
is defined as the rate required to encode diff * weight, rounded to the
nearest 2 ** 7.
This is NOT used during motion compensation.
Returns the cost of encoding the motion vector diff : = * mv - * ref . The cost is defined as the rate required to encode diff * weight rounded to the nearest 2 ** 7 . This is NOT used during motion compensation .
int av1_mv_bit_cost(const MV *mv, const MV *ref_mv, const int *mvjcost,
                    int *mvcost[2], int weight) {
  const MV diff = { mv->row - ref_mv->row, mv->col - ref_mv->col };
  return ROUND_POWER_OF_TWO(
      mv_cost(&diff, mvjcost, CONVERT_TO_CONST_MVCOST(mvcost)) * weight, 7);
}
int av1_mv_bit_cost ( const MV * mv , const MV * ref_mv , const int * mvjcost , int * mvcost [ 2 ] , int weight ) { const MV diff = { mv -> row - ref_mv -> row , mv -> col - ref_mv -> col } ; return ROUND_POWER_OF_TWO ( mv_cost ( & diff , mvjcost , CONVERT_TO_CONST_MVCOST ( mvcost ) ) * weight , 7 ) ; }
Returns the cost of encoding the motion vector diff := *mv - *ref.
Returns the cost of encoding the motion vector diff : = * mv - * ref .