Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
8b19467d
Commit
8b19467d
authored
Jun 14, 2017
by
James Darnley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/x86: allow future 8-bit simple idct to have "DC only hack"
Created by Ronald S. Bultje
parent
c1d1274b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
simple_idct10_template.asm
libavcodec/x86/simple_idct10_template.asm
+40
-0
No files found.
libavcodec/x86/simple_idct10_template.asm
View file @
8b19467d
...
...
@@ -257,6 +257,46 @@
pmullw
m12
,
[
%8
+
96
]
IDCT_1D
%1
,
%2
,
%8
%elif
%2
==
11
; This copies the DC-only shortcut. When there is only a DC coefficient the
; C shifts the value and splats it to all coeffs rather than multiplying and
; doing the full IDCT. This causes a difference on 8-bit because the
; coefficient is 16383 rather than 16384 (which you can get with shifting).
por
m1
,
m8
,
m13
por
m1
,
m12
por
m1
,
[
blockq
+
16
]
; { row[1] }[0-7]
por
m1
,
[
blockq
+
48
]
; { row[3] }[0-7]
por
m1
,
[
blockq
+
80
]
; { row[5] }[0-7]
por
m1
,
[
blockq
+
112
]
; { row[7] }[0-7]
pxor
m2
,
m2
pcmpeqw
m1
,
m2
psllw
m2
,
m10
,
3
pand
m2
,
m1
pcmpeqb
m3
,
m3
pxor
m1
,
m3
mova
[rsp],
m1
mova
[
rsp
+
16
]
,
m2
IDCT_1D
%1
,
%2
mova
m5
,
[rsp]
mova
m6
,
[
rsp
+
16
]
pand
m8
,
m5
por
m8
,
m6
pand
m0
,
m5
por
m0
,
m6
pand
m1
,
m5
por
m1
,
m6
pand
m2
,
m5
por
m2
,
m6
pand
m4
,
m5
por
m4
,
m6
pand
m11
,
m5
por
m11
,
m6
pand
m9
,
m5
por
m9
,
m6
pand
m10
,
m5
por
m10
,
m6
%else
IDCT_1D
%1
,
%2
%endif
...
...
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