Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
d133e527
Commit
d133e527
authored
Jan 31, 2024
by
sunyuechi
Committed by
Rémi Denis-Courmont
Feb 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkasm/rv34dsp: add rv34_idct_dc_add test
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
ee08974f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
rv34dsp.c
tests/checkasm/rv34dsp.c
+24
-0
No files found.
tests/checkasm/rv34dsp.c
View file @
d133e527
...
...
@@ -56,10 +56,34 @@ static void test_rv34_inv_transform_dc(RV34DSPContext *s) {
report
(
"rv34_inv_transform_dc"
);
}
static
void
test_rv34_idct_dc_add
(
RV34DSPContext
*
s
)
{
declare_func
(
void
,
uint8_t
*
dst
,
ptrdiff_t
stride
,
int
dc
);
if
(
check_func
(
s
->
rv34_idct_dc_add
,
"rv34_idct_dc_add"
))
{
LOCAL_ALIGNED_16
(
uint8_t
,
p1
,
[
BUF_SIZE
]);
LOCAL_ALIGNED_16
(
uint8_t
,
p2
,
[
BUF_SIZE
]);
randomize
(
p1
,
BUF_SIZE
);
memcpy
(
p2
,
p1
,
BUF_SIZE
*
sizeof
(
*
p1
));
call_ref
(
p1
,
4
,
5
);
call_new
(
p2
,
4
,
5
);
if
(
memcmp
(
p1
,
p2
,
BUF_SIZE
*
sizeof
(
*
p1
))
!=
0
)
{
fail
();
}
bench_new
(
p1
,
4
,
5
);
}
report
(
"rv34_idct_dc_add"
);
}
void
checkasm_check_rv34dsp
(
void
)
{
RV34DSPContext
s
=
{
0
};
ff_rv34dsp_init
(
&
s
);
test_rv34_inv_transform_dc
(
&
s
);
test_rv34_idct_dc_add
(
&
s
);
}
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