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
cb50329f
Commit
cb50329f
authored
Oct 09, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alacdec: rename 2 functions.
Now they only do stereo interleaving.
parent
c39bddd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
alac.c
libavcodec/alac.c
+10
-14
No files found.
libavcodec/alac.c
View file @
cb50329f
...
...
@@ -330,9 +330,9 @@ static void append_extra_bits(int32_t *buffer[MAX_CHANNELS],
buffer
[
ch
][
i
]
=
(
buffer
[
ch
][
i
]
<<
extra_bits
)
|
extra_bits_buffer
[
ch
][
i
];
}
static
void
reconstruct
_stereo_16
(
int32_t
*
buffer
[
MAX_CHANNELS
],
int16_t
*
buffer_out
,
int
numchannels
,
int
numsamples
)
static
void
interleave
_stereo_16
(
int32_t
*
buffer
[
MAX_CHANNELS
],
int16_t
*
buffer_out
,
int
numchannels
,
int
numsamples
)
{
int
i
;
...
...
@@ -347,9 +347,9 @@ static void reconstruct_stereo_16(int32_t *buffer[MAX_CHANNELS],
}
}
static
void
decorrelat
e_stereo_24
(
int32_t
*
buffer
[
MAX_CHANNELS
],
int32_t
*
buffer_out
,
int
numchannels
,
int
numsamples
)
static
void
interleav
e_stereo_24
(
int32_t
*
buffer
[
MAX_CHANNELS
],
int32_t
*
buffer_out
,
int
numchannels
,
int
numsamples
)
{
int
i
;
...
...
@@ -534,10 +534,8 @@ static int alac_decode_frame(AVCodecContext *avctx,
switch
(
alac
->
setinfo_sample_size
)
{
case
16
:
if
(
channels
==
2
)
{
reconstruct_stereo_16
(
alac
->
outputsamples_buffer
,
(
int16_t
*
)
outbuffer
,
alac
->
numchannels
,
outputsamples
);
interleave_stereo_16
(
alac
->
outputsamples_buffer
,
outbuffer
,
alac
->
numchannels
,
outputsamples
);
}
else
{
int
i
;
for
(
i
=
0
;
i
<
outputsamples
;
i
++
)
{
...
...
@@ -547,10 +545,8 @@ static int alac_decode_frame(AVCodecContext *avctx,
break
;
case
24
:
if
(
channels
==
2
)
{
decorrelate_stereo_24
(
alac
->
outputsamples_buffer
,
outbuffer
,
alac
->
numchannels
,
outputsamples
);
interleave_stereo_24
(
alac
->
outputsamples_buffer
,
outbuffer
,
alac
->
numchannels
,
outputsamples
);
}
else
{
int
i
;
for
(
i
=
0
;
i
<
outputsamples
;
i
++
)
...
...
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