summaryrefslogtreecommitdiff
path: root/media/libaom/src/av1/common/x86/convolve_sse2.c
diff options
context:
space:
mode:
Diffstat (limited to 'media/libaom/src/av1/common/x86/convolve_sse2.c')
-rw-r--r--media/libaom/src/av1/common/x86/convolve_sse2.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/media/libaom/src/av1/common/x86/convolve_sse2.c b/media/libaom/src/av1/common/x86/convolve_sse2.c
index 5016642de..4323ac4d1 100644
--- a/media/libaom/src/av1/common/x86/convolve_sse2.c
+++ b/media/libaom/src/av1/common/x86/convolve_sse2.c
@@ -79,7 +79,7 @@ void av1_convolve_y_sr_sse2(const uint8_t *src, int src_stride, uint8_t *dst,
int dst_stride, int w, int h,
const InterpFilterParams *filter_params_x,
const InterpFilterParams *filter_params_y,
- const int subpel_x_q4, const int subpel_y_q4,
+ const int subpel_x_qn, const int subpel_y_qn,
ConvolveParams *conv_params) {
const int fo_vert = filter_params_y->taps / 2 - 1;
const uint8_t *src_ptr = src - fo_vert * src_stride;
@@ -88,14 +88,14 @@ void av1_convolve_y_sr_sse2(const uint8_t *src, int src_stride, uint8_t *dst,
__m128i coeffs[4];
(void)filter_params_x;
- (void)subpel_x_q4;
+ (void)subpel_x_qn;
(void)conv_params;
assert(conv_params->round_0 <= FILTER_BITS);
assert(((conv_params->round_0 + conv_params->round_1) <= (FILTER_BITS + 1)) ||
((conv_params->round_0 + conv_params->round_1) == (2 * FILTER_BITS)));
- prepare_coeffs(filter_params_y, subpel_y_q4, coeffs);
+ prepare_coeffs(filter_params_y, subpel_y_qn, coeffs);
if (w <= 4) {
__m128i s[8], src6, res, res_round, res16;
@@ -132,7 +132,7 @@ void av1_convolve_y_sr_sse2(const uint8_t *src, int src_stride, uint8_t *dst,
res_int = _mm_cvtsi128_si32(_mm_packus_epi16(res16, res16));
if (w == 2)
- *(uint16_t *)dst = res_int;
+ *(uint16_t *)dst = (uint16_t)res_int;
else
*(uint32_t *)dst = res_int;
@@ -145,7 +145,7 @@ void av1_convolve_y_sr_sse2(const uint8_t *src, int src_stride, uint8_t *dst,
res_int = _mm_cvtsi128_si32(_mm_packus_epi16(res16, res16));
if (w == 2)
- *(uint16_t *)dst = res_int;
+ *(uint16_t *)dst = (uint16_t)res_int;
else
*(uint32_t *)dst = res_int;
@@ -240,7 +240,7 @@ void av1_convolve_x_sr_sse2(const uint8_t *src, int src_stride, uint8_t *dst,
int dst_stride, int w, int h,
const InterpFilterParams *filter_params_x,
const InterpFilterParams *filter_params_y,
- const int subpel_x_q4, const int subpel_y_q4,
+ const int subpel_x_qn, const int subpel_y_qn,
ConvolveParams *conv_params) {
const int fo_horiz = filter_params_x->taps / 2 - 1;
const uint8_t *src_ptr = src - fo_horiz;
@@ -253,13 +253,13 @@ void av1_convolve_x_sr_sse2(const uint8_t *src, int src_stride, uint8_t *dst,
__m128i coeffs[4];
(void)filter_params_y;
- (void)subpel_y_q4;
+ (void)subpel_y_qn;
assert(bits >= 0);
assert((FILTER_BITS - conv_params->round_1) >= 0 ||
((conv_params->round_0 + conv_params->round_1) == 2 * FILTER_BITS));
- prepare_coeffs(filter_params_x, subpel_x_q4, coeffs);
+ prepare_coeffs(filter_params_x, subpel_x_qn, coeffs);
if (w <= 4) {
do {
@@ -284,7 +284,7 @@ void av1_convolve_x_sr_sse2(const uint8_t *src, int src_stride, uint8_t *dst,
uint32_t r = _mm_cvtsi128_si32(res);
if (w == 2)
- *(uint16_t *)dst = r;
+ *(uint16_t *)dst = (uint16_t)r;
else
*(uint32_t *)dst = r;