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
1ccf82cf
Commit
1ccf82cf
authored
Dec 21, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavr: cosmetics: reindent
parent
074a00d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
25 deletions
+28
-25
audio_convert.c
libavresample/audio_convert.c
+28
-25
No files found.
libavresample/audio_convert.c
View file @
1ccf82cf
...
...
@@ -378,32 +378,35 @@ int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in)
}
}
}
else
{
switch
(
ac
->
func_type
)
{
case
CONV_FUNC_TYPE_FLAT
:
{
if
(
!
in
->
is_planar
)
len
*=
in
->
channels
;
if
(
use_generic
)
{
for
(
p
=
0
;
p
<
ac
->
planes
;
p
++
)
ac
->
conv_flat_generic
(
out
->
data
[
p
],
in
->
data
[
p
],
len
);
}
else
{
for
(
p
=
0
;
p
<
ac
->
planes
;
p
++
)
ac
->
conv_flat
(
out
->
data
[
p
],
in
->
data
[
p
],
len
);
switch
(
ac
->
func_type
)
{
case
CONV_FUNC_TYPE_FLAT
:
{
if
(
!
in
->
is_planar
)
len
*=
in
->
channels
;
if
(
use_generic
)
{
for
(
p
=
0
;
p
<
ac
->
planes
;
p
++
)
ac
->
conv_flat_generic
(
out
->
data
[
p
],
in
->
data
[
p
],
len
);
}
else
{
for
(
p
=
0
;
p
<
ac
->
planes
;
p
++
)
ac
->
conv_flat
(
out
->
data
[
p
],
in
->
data
[
p
],
len
);
}
break
;
}
case
CONV_FUNC_TYPE_INTERLEAVE
:
if
(
use_generic
)
ac
->
conv_interleave_generic
(
out
->
data
[
0
],
in
->
data
,
len
,
ac
->
channels
);
else
ac
->
conv_interleave
(
out
->
data
[
0
],
in
->
data
,
len
,
ac
->
channels
);
break
;
case
CONV_FUNC_TYPE_DEINTERLEAVE
:
if
(
use_generic
)
ac
->
conv_deinterleave_generic
(
out
->
data
,
in
->
data
[
0
],
len
,
ac
->
channels
);
else
ac
->
conv_deinterleave
(
out
->
data
,
in
->
data
[
0
],
len
,
ac
->
channels
);
break
;
}
break
;
}
case
CONV_FUNC_TYPE_INTERLEAVE
:
if
(
use_generic
)
ac
->
conv_interleave_generic
(
out
->
data
[
0
],
in
->
data
,
len
,
ac
->
channels
);
else
ac
->
conv_interleave
(
out
->
data
[
0
],
in
->
data
,
len
,
ac
->
channels
);
break
;
case
CONV_FUNC_TYPE_DEINTERLEAVE
:
if
(
use_generic
)
ac
->
conv_deinterleave_generic
(
out
->
data
,
in
->
data
[
0
],
len
,
ac
->
channels
);
else
ac
->
conv_deinterleave
(
out
->
data
,
in
->
data
[
0
],
len
,
ac
->
channels
);
break
;
}
}
out
->
nb_samples
=
in
->
nb_samples
;
...
...
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