av1/encoder/mcomp.c
// Gets the error at the beginning when the mv has fullpel precision
Gets the error at the beginning when the mv has fullpel precision
Gets the error at the beginning when the mv has fullpel precision
static unsigned int upsampled_setup_center_error(
    MACROBLOCKD *xd, const AV1_COMMON *const cm, const MV *bestmv,
    const uint8_t *const src, const int src_stride, const uint8_t *const y,
    int y_stride, const SUBPEL_SEARCH_VAR_PARAMS *var_params,
    const MV_COST_PARAMS *mv_cost_params, unsigned int *sse1, int *distortion) {
  unsigned int besterr = upsampled_pref_error(xd, cm, bestmv, src, src_stride,
                                              y, y_stride, var_params, sse1);
  *distortion = besterr;
  besterr += mv_err_cost_(bestmv, mv_cost_params);
  return besterr;
}
static unsigned int upsampled_setup_center_error ( MACROBLOCKD * xd , const AV1_COMMON * const cm , const MV * bestmv , const uint8_t * const src , const int src_stride , const uint8_t * const y , int y_stride , const SUBPEL_SEARCH_VAR_PARAMS * var_params , const MV_COST_PARAMS * mv_cost_params , unsigned int * sse1 , int * distortion ) { unsigned int besterr = upsampled_pref_error ( xd , cm , bestmv , src , src_stride , y , y_stride , var_params , sse1 ) ; * distortion = besterr ; besterr += mv_err_cost_ ( bestmv , mv_cost_params ) ; return besterr ; }
Gets the error at the beginning when the mv has fullpel precision
Gets the error at the beginning when the mv has fullpel precision