aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/x86
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-12-07 00:41:04 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-28 07:59:29 +0100
commit1ae44c87c924b69a0657256fbaa8ad140df2f27c (patch)
treeb9a1b9703b7f12c8cb529486b8c9ef990086c3c4 /libavfilter/x86
parent38a2f88d39e50c573193b6d3f14df58b6c4e3a7b (diff)
downloadffmpeg-1ae44c87c924b69a0657256fbaa8ad140df2f27c.tar.gz
lavfi/gradfun: remove rounding to match C and SSE code.
There is no noticable benefit for such precision. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/x86')
-rw-r--r--libavfilter/x86/vf_gradfun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/x86/vf_gradfun.c b/libavfilter/x86/vf_gradfun.c
index a9e069a5bf..65a8172cbc 100644
--- a/libavfilter/x86/vf_gradfun.c
+++ b/libavfilter/x86/vf_gradfun.c
@@ -136,9 +136,9 @@ static void gradfun_filter_line_ssse3(uint8_t *dst, uint8_t *src, uint16_t *dc,
"psubw %%xmm6, %%xmm2 \n"
"pminsw %%xmm7, %%xmm2 \n" // m = -max(0, 127-m)
"pmullw %%xmm2, %%xmm2 \n"
- "psllw $1, %%xmm2 \n"
+ "psllw $2, %%xmm1 \n"
"paddw %%xmm4, %%xmm0 \n" // pix += dither
- "pmulhrsw %%xmm2, %%xmm1 \n" // m = m*m*delta >> 14
+ "pmulhw %%xmm2, %%xmm1 \n" // m = m*m*delta >> 14
"paddw %%xmm1, %%xmm0 \n" // pix += m
"psraw $7, %%xmm0 \n"
"packuswb %%xmm0, %%xmm0 \n"