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
06e34be8
Commit
06e34be8
authored
Mar 30, 2009
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlpdec: whitespace cosmetics.
Originally committed as revision 18234 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a44b9f95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
mlpdec.c
libavcodec/mlpdec.c
+6
-12
No files found.
libavcodec/mlpdec.c
View file @
06e34be8
...
...
@@ -661,10 +661,8 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr,
int
index
=
MAX_BLOCKSIZE
;
int
i
;
memcpy
(
&
firbuf
[
index
],
fir
->
state
,
MAX_FIR_ORDER
*
sizeof
(
int32_t
));
memcpy
(
&
iirbuf
[
index
],
iir
->
state
,
MAX_IIR_ORDER
*
sizeof
(
int32_t
));
memcpy
(
&
firbuf
[
index
],
fir
->
state
,
MAX_FIR_ORDER
*
sizeof
(
int32_t
));
memcpy
(
&
iirbuf
[
index
],
iir
->
state
,
MAX_IIR_ORDER
*
sizeof
(
int32_t
));
for
(
i
=
0
;
i
<
s
->
blocksize
;
i
++
)
{
int32_t
residual
=
m
->
sample_buffer
[
i
+
s
->
blockpos
][
channel
];
...
...
@@ -675,11 +673,9 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr,
/* TODO: Move this code to DSPContext? */
for
(
order
=
0
;
order
<
fir
->
order
;
order
++
)
accum
+=
(
int64_t
)
firbuf
[
index
+
order
]
*
fir
->
coeff
[
order
];
accum
+=
(
int64_t
)
firbuf
[
index
+
order
]
*
fir
->
coeff
[
order
];
for
(
order
=
0
;
order
<
iir
->
order
;
order
++
)
accum
+=
(
int64_t
)
iirbuf
[
index
+
order
]
*
iir
->
coeff
[
order
];
accum
+=
(
int64_t
)
iirbuf
[
index
+
order
]
*
iir
->
coeff
[
order
];
accum
=
accum
>>
filter_shift
;
result
=
(
accum
+
residual
)
&
mask
;
...
...
@@ -692,10 +688,8 @@ static void filter_channel(MLPDecodeContext *m, unsigned int substr,
m
->
sample_buffer
[
i
+
s
->
blockpos
][
channel
]
=
result
;
}
memcpy
(
fir
->
state
,
&
firbuf
[
index
],
MAX_FIR_ORDER
*
sizeof
(
int32_t
));
memcpy
(
iir
->
state
,
&
iirbuf
[
index
],
MAX_IIR_ORDER
*
sizeof
(
int32_t
));
memcpy
(
fir
->
state
,
&
firbuf
[
index
],
MAX_FIR_ORDER
*
sizeof
(
int32_t
));
memcpy
(
iir
->
state
,
&
iirbuf
[
index
],
MAX_IIR_ORDER
*
sizeof
(
int32_t
));
}
/** Read a block of PCM residual data (or actual if no filtering active). */
...
...
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