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
f75169b2
Commit
f75169b2
authored
Apr 26, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr-test: fix pointer type warnings
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7b2ce507
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
swresample_test.c
libswresample/swresample_test.c
+10
-10
No files found.
libswresample/swresample_test.c
View file @
f75169b2
...
...
@@ -256,7 +256,7 @@ int main(int argc, char **argv){
r
=
(
seed
*
(
uint64_t
)(
max_tests
-
test
))
>>
32
;
FFSWAP
(
int
,
remaining_tests
[
r
],
remaining_tests
[
max_tests
-
test
-
1
]);
}
qsort
(
remaining_tests
+
max_tests
-
num_tests
,
num_tests
,
sizeof
(
remaining_tests
[
0
]),
cmp
);
qsort
(
remaining_tests
+
max_tests
-
num_tests
,
num_tests
,
sizeof
(
remaining_tests
[
0
]),
(
void
*
)
cmp
);
in_sample_rate
=
16000
;
for
(
test
=
0
;
test
<
num_tests
;
test
++
){
char
in_layout_string
[
256
];
...
...
@@ -309,27 +309,27 @@ int main(int argc, char **argv){
mode
++
;
mode
%=
3
;
if
(
mode
==
0
/*|| out_sample_rate == in_sample_rate*/
)
{
mid_count
=
swr_convert
(
forw_ctx
,
amid
,
3
*
SAMPLES
,
ain
,
SAMPLES
);
mid_count
=
swr_convert
(
forw_ctx
,
amid
,
3
*
SAMPLES
,
(
const
uint8_t
**
)
ain
,
SAMPLES
);
}
else
if
(
mode
==
1
){
mid_count
=
swr_convert
(
forw_ctx
,
amid
,
0
,
ain
,
SAMPLES
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
3
*
SAMPLES
,
ain
,
0
);
mid_count
=
swr_convert
(
forw_ctx
,
amid
,
0
,
(
const
uint8_t
**
)
ain
,
SAMPLES
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
3
*
SAMPLES
,
(
const
uint8_t
**
)
ain
,
0
);
}
else
{
int
tmp_count
;
mid_count
=
swr_convert
(
forw_ctx
,
amid
,
0
,
ain
,
1
);
mid_count
=
swr_convert
(
forw_ctx
,
amid
,
0
,
(
const
uint8_t
**
)
ain
,
1
);
av_assert0
(
mid_count
==
0
);
shift
(
ain
,
1
,
in_ch_count
,
in_sample_fmt
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
3
*
SAMPLES
,
ain
,
0
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
3
*
SAMPLES
,
(
const
uint8_t
**
)
ain
,
0
);
shift
(
amid
,
mid_count
,
out_ch_count
,
out_sample_fmt
);
tmp_count
=
mid_count
;
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
2
,
ain
,
2
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
2
,
(
const
uint8_t
**
)
ain
,
2
);
shift
(
amid
,
mid_count
-
tmp_count
,
out_ch_count
,
out_sample_fmt
);
tmp_count
=
mid_count
;
shift
(
ain
,
2
,
in_ch_count
,
in_sample_fmt
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
1
,
ain
,
SAMPLES
-
3
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
1
,
(
const
uint8_t
**
)
ain
,
SAMPLES
-
3
);
shift
(
amid
,
mid_count
-
tmp_count
,
out_ch_count
,
out_sample_fmt
);
tmp_count
=
mid_count
;
shift
(
ain
,
-
3
,
in_ch_count
,
in_sample_fmt
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
3
*
SAMPLES
,
ain
,
0
);
mid_count
+=
swr_convert
(
forw_ctx
,
amid
,
3
*
SAMPLES
,
(
const
uint8_t
**
)
ain
,
0
);
shift
(
amid
,
-
tmp_count
,
out_ch_count
,
out_sample_fmt
);
}
out_count
=
swr_convert
(
backw_ctx
,
aout
,
SAMPLES
,
amid
,
mid_count
);
out_count
=
swr_convert
(
backw_ctx
,
aout
,
SAMPLES
,
(
const
uint8_t
**
)
amid
,
mid_count
);
for
(
ch
=
0
;
ch
<
in_ch_count
;
ch
++
){
double
sse
,
maxdiff
=
0
;
...
...
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