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
82ab49dc
Commit
82ab49dc
authored
Sep 04, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics: s/LPC_type/LPC_TYPE/
Originally committed as revision 15202 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9990e426
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
lpc.h
libavcodec/lpc.h
+9
-9
No files found.
libavcodec/lpc.h
View file @
82ab49dc
...
...
@@ -46,22 +46,22 @@ int ff_lpc_calc_coefs(DSPContext *s,
int
omethod
,
int
max_shift
,
int
zero_shift
);
#ifdef LPC_USE_DOUBLE
#define LPC_
type
double
#define LPC_
TYPE
double
#else
#define LPC_
type
float
#define LPC_
TYPE
float
#endif
/**
* Levinson-Durbin recursion.
* Produces LPC coefficients from autocorrelation data.
*/
static
inline
int
compute_lpc_coefs
(
const
LPC_
type
*
autoc
,
int
max_order
,
LPC_
type
*
lpc
,
int
lpc_stride
,
int
fail
,
static
inline
int
compute_lpc_coefs
(
const
LPC_
TYPE
*
autoc
,
int
max_order
,
LPC_
TYPE
*
lpc
,
int
lpc_stride
,
int
fail
,
int
normalize
)
{
int
i
,
j
;
LPC_
type
err
;
LPC_
type
*
lpc_last
=
lpc
;
LPC_
TYPE
err
;
LPC_
TYPE
*
lpc_last
=
lpc
;
if
(
normalize
)
err
=
*
autoc
++
;
...
...
@@ -70,7 +70,7 @@ static inline int compute_lpc_coefs(const LPC_type *autoc, int max_order,
return
-
1
;
for
(
i
=
0
;
i
<
max_order
;
i
++
)
{
LPC_
type
r
=
-
autoc
[
i
];
LPC_
TYPE
r
=
-
autoc
[
i
];
if
(
normalize
)
{
for
(
j
=
0
;
j
<
i
;
j
++
)
...
...
@@ -83,8 +83,8 @@ static inline int compute_lpc_coefs(const LPC_type *autoc, int max_order,
lpc
[
i
]
=
r
;
for
(
j
=
0
;
j
<
(
i
+
1
)
>>
1
;
j
++
)
{
LPC_
type
f
=
lpc_last
[
j
];
LPC_
type
b
=
lpc_last
[
i
-
1
-
j
];
LPC_
TYPE
f
=
lpc_last
[
j
];
LPC_
TYPE
b
=
lpc_last
[
i
-
1
-
j
];
lpc
[
j
]
=
f
+
r
*
b
;
lpc
[
i
-
1
-
j
]
=
b
+
r
*
f
;
}
...
...
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