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
dfeeb85b
Commit
dfeeb85b
authored
Oct 12, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dct-test: add transpose permutation support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
370d7ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dct-test.c
libavcodec/dct-test.c
+4
-1
No files found.
libavcodec/dct-test.c
View file @
dfeeb85b
...
...
@@ -71,7 +71,7 @@ struct algo {
const
char
*
name
;
void
(
*
func
)(
DCTELEM
*
block
);
enum
formattag
{
NO_PERM
,
MMX_PERM
,
MMX_SIMPLE_PERM
,
SCALE_PERM
,
SSE2_PERM
,
PARTTRANS_PERM
}
format
;
SSE2_PERM
,
PARTTRANS_PERM
,
TRANSPOSE_PERM
}
format
;
int
mm_support
;
int
nonspec
;
};
...
...
@@ -243,6 +243,9 @@ static void permute(DCTELEM dst[64], const DCTELEM src[64], int perm)
}
else
if
(
perm
==
PARTTRANS_PERM
)
{
for
(
i
=
0
;
i
<
64
;
i
++
)
dst
[(
i
&
0x24
)
|
((
i
&
3
)
<<
3
)
|
((
i
>>
3
)
&
3
)]
=
src
[
i
];
}
else
if
(
perm
==
TRANSPOSE_PERM
)
{
for
(
i
=
0
;
i
<
64
;
i
++
)
dst
[(
i
>>
3
)
|
((
i
<<
3
)
&
0x38
)]
=
src
[
i
];
}
else
{
for
(
i
=
0
;
i
<
64
;
i
++
)
dst
[
i
]
=
src
[
i
];
...
...
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