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
6f205a42
Commit
6f205a42
authored
Jul 06, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkasm: add hybrid_analysis_ileave and hybrid_synthesis_deint tests to aacpsdsp
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
823cc7e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
0 deletions
+82
-0
aacpsdsp.c
tests/checkasm/aacpsdsp.c
+82
-0
No files found.
tests/checkasm/aacpsdsp.c
View file @
6f205a42
...
...
@@ -97,6 +97,80 @@ static void test_hybrid_analysis(void)
bench_new
(
dst1
,
in
,
filter
,
STRIDE
,
N
);
}
static
void
test_hybrid_analysis_ileave
(
void
)
{
LOCAL_ALIGNED_16
(
INTFLOAT
,
in
,
[
2
],
[
38
][
64
]);
LOCAL_ALIGNED_16
(
INTFLOAT
,
out0
,
[
91
],
[
32
][
2
]);
LOCAL_ALIGNED_16
(
INTFLOAT
,
out1
,
[
91
],
[
32
][
2
]);
declare_func
(
void
,
INTFLOAT
(
*
out
)[
32
][
2
],
INTFLOAT
L
[
2
][
38
][
64
],
int
i
,
int
len
);
randomize
((
INTFLOAT
*
)
out0
,
91
*
32
*
2
);
randomize
((
INTFLOAT
*
)
in
,
2
*
38
*
64
);
memcpy
(
out1
,
out0
,
91
*
32
*
2
*
sizeof
(
INTFLOAT
));
/* len is hardcoded to 32 as that's the only value used in
libavcodec. asm functions are likely to be optimized
hardcoding this value in their loops and could fail with
anything else.
i is hardcoded to the two values currently used by the
aac decoder because the arm neon implementation is
micro-optimized for them and will fail for almost every
other value. */
call_ref
(
out0
,
in
,
3
,
32
);
call_new
(
out1
,
in
,
3
,
32
);
/* the function just moves data around, so memcmp is enough */
if
(
memcmp
(
out0
,
out1
,
91
*
32
*
2
*
sizeof
(
INTFLOAT
)))
fail
();
call_ref
(
out0
,
in
,
5
,
32
);
call_new
(
out1
,
in
,
5
,
32
);
if
(
memcmp
(
out0
,
out1
,
91
*
32
*
2
*
sizeof
(
INTFLOAT
)))
fail
();
bench_new
(
out1
,
in
,
3
,
32
);
}
static
void
test_hybrid_synthesis_deint
(
void
)
{
LOCAL_ALIGNED_16
(
INTFLOAT
,
out0
,
[
2
],
[
38
][
64
]);
LOCAL_ALIGNED_16
(
INTFLOAT
,
out1
,
[
2
],
[
38
][
64
]);
LOCAL_ALIGNED_16
(
INTFLOAT
,
in
,
[
91
],
[
32
][
2
]);
declare_func
(
void
,
INTFLOAT
out
[
2
][
38
][
64
],
INTFLOAT
(
*
in
)[
32
][
2
],
int
i
,
int
len
);
randomize
((
INTFLOAT
*
)
in
,
91
*
32
*
2
);
randomize
((
INTFLOAT
*
)
out0
,
2
*
38
*
64
);
memcpy
(
out1
,
out0
,
2
*
38
*
64
*
sizeof
(
INTFLOAT
));
/* len is hardcoded to 32 as that's the only value used in
libavcodec. asm functions are likely to be optimized
hardcoding this value in their loops and could fail with
anything else.
i is hardcoded to the two values currently used by the
aac decoder because the arm neon implementation is
micro-optimized for them and will fail for almost every
other value. */
call_ref
(
out0
,
in
,
3
,
32
);
call_new
(
out1
,
in
,
3
,
32
);
/* the function just moves data around, so memcmp is enough */
if
(
memcmp
(
out0
,
out1
,
2
*
38
*
64
*
sizeof
(
INTFLOAT
)))
fail
();
call_ref
(
out0
,
in
,
5
,
32
);
call_new
(
out1
,
in
,
5
,
32
);
if
(
memcmp
(
out0
,
out1
,
2
*
38
*
64
*
sizeof
(
INTFLOAT
)))
fail
();
bench_new
(
out1
,
in
,
3
,
32
);
}
static
void
test_stereo_interpolate
(
PSDSPContext
*
psdsp
)
{
int
i
;
...
...
@@ -156,6 +230,14 @@ void checkasm_check_aacpsdsp(void)
test_hybrid_analysis
();
report
(
"hybrid_analysis"
);
if
(
check_func
(
psdsp
.
hybrid_analysis_ileave
,
"ps_hybrid_analysis_ileave"
))
test_hybrid_analysis_ileave
();
report
(
"hybrid_analysis_ileave"
);
if
(
check_func
(
psdsp
.
hybrid_synthesis_deint
,
"ps_hybrid_synthesis_deint"
))
test_hybrid_synthesis_deint
();
report
(
"hybrid_synthesis_deint"
);
test_stereo_interpolate
(
&
psdsp
);
report
(
"stereo_interpolate"
);
}
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