Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
49de902a
Commit
49de902a
authored
Dec 06, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/gradfun: fix rounding in MMX code.
Current code divide before increasing precision.
parent
dd8a76ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gradfun.c
libavfilter/x86/gradfun.c
+1
-1
No files found.
libavfilter/x86/gradfun.c
View file @
49de902a
...
...
@@ -62,8 +62,8 @@ static void gradfun_filter_line_mmxext(uint8_t *dst, const uint8_t *src, const u
"pminsw %%mm7, %%mm2
\n
"
// m = -max(0, 127-m)
"pmullw %%mm2, %%mm2
\n
"
"paddw %%mm4, %%mm0
\n
"
// pix += dither
"pmulhw %%mm2, %%mm1
\n
"
"psllw $2, %%mm1
\n
"
// m = m*m*delta >> 14
"pmulhw %%mm2, %%mm1
\n
"
"paddw %%mm1, %%mm0
\n
"
// pix += m
"psraw $7, %%mm0
\n
"
"packuswb %%mm0, %%mm0
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment