summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-12-07 00:41:04 +0100
committerClément Bœsch <ubitux@gmail.com>2012-12-19 03:13:25 +0100
commit63e1fc25884fe7cf3f66a8b99602ca98a47fb763 (patch)
treeea22a8c40f46b64b02facd82f30eca3633258f72 /libavfilter
parent60ba9a9a88fe8e041386962057a755bb599e511c (diff)
lavfi/gradfun: remove rounding to match C and SSE code.
There is no noticable benefit for such precision.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/x86/gradfun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/x86/gradfun.c b/libavfilter/x86/gradfun.c
index be3e6a9a8e..214e764192 100644
--- a/libavfilter/x86/gradfun.c
+++ b/libavfilter/x86/gradfun.c
@@ -136,9 +136,9 @@ static void gradfun_filter_line_ssse3(uint8_t *dst, const uint8_t *src, const ui
"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"