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
c8b1612a
Commit
c8b1612a
authored
Feb 09, 2016
by
Timothy Gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/vf_blend: Move multiplying to a macro
Reviewed-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
5486d7fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
vf_blend.asm
libavfilter/x86/vf_blend.asm
+10
-6
No files found.
libavfilter/x86/vf_blend.asm
View file @
c8b1612a
...
...
@@ -102,6 +102,15 @@ BLEND_INIT difference128, 4
jl
.
loop
BLEND_END
%macro
MULTIPLY
3
; a, b, pw_1
pmullw
%1
,
%2
; xxxxxxxx a * b
paddw
%1
,
%3
mova
%2
,
%1
psrlw
%2
,
8
paddw
%1
,
%2
psrlw
%1
,
8
; 00xx00xx a * b / 255
%endmacro
BLEND_INIT
multiply
,
4
pxor
m2
,
m2
mova
m3
,
[
pw_1
]
...
...
@@ -116,12 +125,7 @@ BLEND_INIT multiply, 4
punpcklbw
m0
,
m2
; 00xx00xx
punpcklbw
m1
,
m2
pmullw
m0
,
m1
; xxxxxxxx a * b
paddw
m0
,
m3
mova
m1
,
m0
psrlw
m1
,
8
paddw
m0
,
m1
psrlw
m0
,
8
; 00xx00xx a * b / 255
MULTIPLY
m0
,
m1
,
m3
packuswb
m0
,
m0
; 0000xxxx
movh
[
dstq
+
xq
]
,
m0
...
...
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