ref: 275c102787e493fbf9b45341c29864b04c27de05
parent: dbd3760712be518fcf756811a006915c4a595347
parent: fdc549994a5f6eb3ba24fd18d3b1712199ee4755
author: Johann <[email protected]>
date: Mon Jun 1 14:56:49 EDT 2015
Merge "Cast variance reference output"
--- a/test/variance_test.cc
+++ b/test/variance_test.cc
@@ -96,8 +96,8 @@
}
}
RoundHighBitDepth(bit_depth, &se, &sse);
- *sse_ptr = sse;
- return sse - (((int64_t) se * se) >> (l2w + l2h));
+ *sse_ptr = (uint32_t) sse;
+ return (unsigned int) (sse - (((int64_t) se * se) >> (l2w + l2h)));
}
static unsigned int subpel_variance_ref(const uint8_t *ref, const uint8_t *src,
@@ -142,8 +142,8 @@
}
}
RoundHighBitDepth(bit_depth, &se, &sse);
- *sse_ptr = sse;
- return sse - (((int64_t) se * se) >> (l2w + l2h));
+ *sse_ptr = (unsigned int) sse;
+ return (unsigned int) (sse - (((int64_t) se * se) >> (l2w + l2h)));
}
typedef unsigned int (*SumOfSquaresFunction)(const int16_t *src);
@@ -510,8 +510,8 @@
}
}
RoundHighBitDepth(bit_depth, &se, &sse);
- *sse_ptr = sse;
- return sse - (((int64_t) se * se) >> (l2w + l2h));
+ *sse_ptr = (unsigned int) sse;
+ return (unsigned int) (sse - (((int64_t) se * se) >> (l2w + l2h)));
}
template<typename SubpelVarianceFunctionType>