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
06fec74c
Commit
06fec74c
authored
Nov 17, 2016
by
Ronald S. Bultje
Committed by
Martin Storsjö
Nov 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkasm: vp9dsp: benchmark all sub-IDCTs (but not WHT or ADST).
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
effc1430
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
vp9dsp.c
tests/checkasm/vp9dsp.c
+14
-7
No files found.
tests/checkasm/vp9dsp.c
View file @
06fec74c
...
...
@@ -269,14 +269,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"
,
tx
==
4
?
"wht_wht"
:
txtp_types
[
txtp
],
sz
,
sz
))
{
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"
,
tx
==
4
?
"wht_wht"
:
txtp_types
[
txtp
],
sz
,
sz
,
sub
))
{
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
);
...
...
@@ -294,8 +300,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