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
1c8fbd7b
Commit
1c8fbd7b
authored
Nov 17, 2016
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkasm/vp9: benchmark all sub-IDCTs (but not WHT or ADST).
parent
0ff8c6b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
vp9dsp.c
tests/checkasm/vp9dsp.c
+14
-8
No files found.
tests/checkasm/vp9dsp.c
View file @
1c8fbd7b
...
...
@@ -331,15 +331,20 @@ static void check_itxfm(void)
int
n_txtps
=
tx
<
TX_32X32
?
N_TXFM_TYPES
:
1
;
for
(
txtp
=
0
;
txtp
<
n_txtps
;
txtp
++
)
{
if
(
check_func
(
dsp
.
itxfm_add
[
tx
][
txtp
],
"vp9_inv_%s_%dx%d_add_%d"
,
tx
==
4
?
"wht_wht"
:
txtp_types
[
txtp
],
sz
,
sz
,
bit_depth
))
{
randomize_buffers
();
ftx
(
coef
,
tx
,
txtp
,
sz
,
bit_depth
);
for
(
sub
=
(
txtp
==
0
)
?
1
:
2
;
sub
<=
sz
;
sub
<<=
1
)
{
// skip testing sub-IDCTs for WHT or ADST since they don't
// implement it in any of the SIMD functions. If they do,
// consider changing this to ensure we have complete test
// coverage
for
(
sub
=
(
txtp
==
0
&&
tx
<
4
)
?
1
:
sz
;
sub
<=
sz
;
sub
<<=
1
)
{
if
(
check_func
(
dsp
.
itxfm_add
[
tx
][
txtp
],
"vp9_inv_%s_%dx%d_sub%d_add_%d"
,
tx
==
4
?
"wht_wht"
:
txtp_types
[
txtp
],
sz
,
sz
,
sub
,
bit_depth
))
{
int
eob
;
randomize_buffers
();
ftx
(
coef
,
tx
,
txtp
,
sz
,
bit_depth
);
if
(
sub
<
sz
)
{
eob
=
copy_subcoefs
(
subcoef0
,
coef
,
tx
,
txtp
,
sz
,
sub
,
bit_depth
);
...
...
@@ -357,8 +362,9 @@ static void check_itxfm(void)
!
iszero
(
subcoef0
,
sz
*
sz
*
SIZEOF_COEF
)
||
!
iszero
(
subcoef1
,
sz
*
sz
*
SIZEOF_COEF
))
fail
();
bench_new
(
dst
,
sz
*
SIZEOF_PIXEL
,
coef
,
eob
);
}
bench_new
(
dst
,
sz
*
SIZEOF_PIXEL
,
coef
,
sz
*
sz
);
}
}
}
...
...
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