projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38a2f88
)
lavfi/gradfun: remove rounding to match C and SSE code.
author
Clément Bœsch
<ubitux@gmail.com>
Thu, 6 Dec 2012 23:41:04 +0000
(
00:41
+0100)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 28 Mar 2013 06:59:29 +0000
(07:59 +0100)
There is no noticable benefit for such precision.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/x86/vf_gradfun.c
patch
|
blob
|
history
diff --git
a/libavfilter/x86/vf_gradfun.c
b/libavfilter/x86/vf_gradfun.c
index
a9e069a
..
65a8172
100644
(file)
--- 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
- "pmulh
rsw
%%xmm2, %%xmm1 \n" // m = m*m*delta >> 14
+ "pmulh
w
%%xmm2, %%xmm1 \n" // m = m*m*delta >> 14
"paddw %%xmm1, %%xmm0 \n" // pix += m
"psraw $7, %%xmm0 \n"
"packuswb %%xmm0, %%xmm0 \n"