Commit 15a608f8 authored by Debargha Mukherjee's avatar Debargha Mukherjee

Fix highbd compile error introduced in global mv

Change-Id: I7b0a00627a9807c42345d3d28c3499c208c5e792
parent 8d59d113
......@@ -499,6 +499,7 @@ static uint16_t highbd_warp_interpolate(uint16_t *ref, int x, int y, int width,
static INLINE int highbd_error_measure(int err, int bd) {
const int b = bd - 8;
const int bmask = (1 << b) - 1;
const int v = (1 << b);
int e1, e2;
err = abs(err);
e1 = err >> b;
......@@ -532,8 +533,8 @@ static double highbd_warp_erroradv(WarpedMotionParams *wm, uint8_t *ref8,
stride, bd);
no_gm_err = dst[(j - p_col) + (i - p_row) * p_stride] -
ref[(j - p_col) + (i - p_row) * stride];
gm_sumerr += highbd_error_measure(gm_err, bd];
no_gm_sumerr += highbd_error_measure(no_gm_err bd);
gm_sumerr += highbd_error_measure(gm_err, bd);
no_gm_sumerr += highbd_error_measure(no_gm_err, bd);
}
}
return (double)gm_sumerr / no_gm_sumerr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment