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
f9888520
Commit
f9888520
authored
Mar 26, 2012
by
Christophe GISQUET
Committed by
Ronald S. Bultje
Apr 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp8dsp x86: perform rounding shift with a single instruction
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
7756859a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
vp8dsp.asm
libavcodec/x86/vp8dsp.asm
+8
-10
No files found.
libavcodec/x86/vp8dsp.asm
View file @
f9888520
...
...
@@ -144,6 +144,8 @@ filter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11, 7, 12
filter_h6_shuf2
:
db
1
,
2
,
2
,
3
,
3
,
4
,
4
,
5
,
5
,
6
,
6
,
7
,
7
,
8
,
8
,
9
filter_h6_shuf3
:
db
3
,
4
,
4
,
5
,
5
,
6
,
6
,
7
,
7
,
8
,
8
,
9
,
9
,
10
,
10
,
11
pw_256
:
times
8
dw
256
pw_20091
:
times
4
dw
20091
pw_17734
:
times
4
dw
17734
...
...
@@ -205,8 +207,7 @@ cglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, h
pmaddubsw
m2
,
m7
paddsw
m0
,
m1
paddsw
m0
,
m2
paddsw
m0
,
[
pw_64
]
psraw
m0
,
7
pmulhrsw
m0
,
[
pw_256
]
packuswb
m0
,
m0
movh
[dstq],
m0
; store
...
...
@@ -219,7 +220,7 @@ cglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, h
cglobal
put_vp8_epel
%1
_h4
,
6
,
6
+
npicregs
,
7
,
dst
,
dststride
,
src
,
srcstride
,
height
,
mx
,
picreg
shl
mxd
,
4
mova
m2
,
[
pw_
64
]
mova
m2
,
[
pw_
256
]
mova
m3
,
[
filter_h2_shuf
]
mova
m4
,
[
filter_h4_shuf
]
%ifdef
PIC
...
...
@@ -235,9 +236,8 @@ cglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, h
pshufb
m1
,
m4
pmaddubsw
m0
,
m5
pmaddubsw
m1
,
m6
paddsw
m0
,
m2
paddsw
m0
,
m1
p
sraw
m0
,
7
p
mulhrsw
m0
,
m2
packuswb
m0
,
m0
movh
[dstq],
m0
; store
...
...
@@ -255,7 +255,7 @@ cglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picr
%endif
mova
m5
,
[
fourtap_filter_hb
+
myq
-
16
]
mova
m6
,
[
fourtap_filter_hb
+
myq
]
mova
m7
,
[
pw_
64
]
mova
m7
,
[
pw_
256
]
; read 3 lines
sub
srcq
,
srcstrideq
...
...
@@ -275,8 +275,7 @@ cglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picr
pmaddubsw
m2
,
m6
paddsw
m4
,
m2
mova
m2
,
m3
paddsw
m4
,
m7
psraw
m4
,
7
pmulhrsw
m4
,
m7
packuswb
m4
,
m4
movh
[dstq],
m4
...
...
@@ -319,9 +318,8 @@ cglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picr
paddsw
m6
,
m1
paddsw
m6
,
m7
mova
m1
,
m2
paddsw
m6
,
[
pw_64
]
mova
m2
,
m3
p
sraw
m6
,
7
p
mulhrsw
m6
,
[
pw_256
]
mova
m3
,
m4
packuswb
m6
,
m6
mova
m4
,
m5
...
...
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