Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
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
Hide 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,
...
@@ -46,22 +46,22 @@ int ff_lpc_calc_coefs(DSPContext *s,
int
omethod
,
int
max_shift
,
int
zero_shift
);
int
omethod
,
int
max_shift
,
int
zero_shift
);
#ifdef LPC_USE_DOUBLE
#ifdef LPC_USE_DOUBLE
#define LPC_
type
double
#define LPC_
TYPE
double
#else
#else
#define LPC_
type
float
#define LPC_
TYPE
float
#endif
#endif
/**
/**
* Levinson-Durbin recursion.
* Levinson-Durbin recursion.
* Produces LPC coefficients from autocorrelation data.
* Produces LPC coefficients from autocorrelation data.
*/
*/
static
inline
int
compute_lpc_coefs
(
const
LPC_
type
*
autoc
,
int
max_order
,
static
inline
int
compute_lpc_coefs
(
const
LPC_
TYPE
*
autoc
,
int
max_order
,
LPC_
type
*
lpc
,
int
lpc_stride
,
int
fail
,
LPC_
TYPE
*
lpc
,
int
lpc_stride
,
int
fail
,
int
normalize
)
int
normalize
)
{
{
int
i
,
j
;
int
i
,
j
;
LPC_
type
err
;
LPC_
TYPE
err
;
LPC_
type
*
lpc_last
=
lpc
;
LPC_
TYPE
*
lpc_last
=
lpc
;
if
(
normalize
)
if
(
normalize
)
err
=
*
autoc
++
;
err
=
*
autoc
++
;
...
@@ -70,7 +70,7 @@ static inline int compute_lpc_coefs(const LPC_type *autoc, int max_order,
...
@@ -70,7 +70,7 @@ static inline int compute_lpc_coefs(const LPC_type *autoc, int max_order,
return
-
1
;
return
-
1
;
for
(
i
=
0
;
i
<
max_order
;
i
++
)
{
for
(
i
=
0
;
i
<
max_order
;
i
++
)
{
LPC_
type
r
=
-
autoc
[
i
];
LPC_
TYPE
r
=
-
autoc
[
i
];
if
(
normalize
)
{
if
(
normalize
)
{
for
(
j
=
0
;
j
<
i
;
j
++
)
for
(
j
=
0
;
j
<
i
;
j
++
)
...
@@ -83,8 +83,8 @@ static inline int compute_lpc_coefs(const LPC_type *autoc, int max_order,
...
@@ -83,8 +83,8 @@ static inline int compute_lpc_coefs(const LPC_type *autoc, int max_order,
lpc
[
i
]
=
r
;
lpc
[
i
]
=
r
;
for
(
j
=
0
;
j
<
(
i
+
1
)
>>
1
;
j
++
)
{
for
(
j
=
0
;
j
<
(
i
+
1
)
>>
1
;
j
++
)
{
LPC_
type
f
=
lpc_last
[
j
];
LPC_
TYPE
f
=
lpc_last
[
j
];
LPC_
type
b
=
lpc_last
[
i
-
1
-
j
];
LPC_
TYPE
b
=
lpc_last
[
i
-
1
-
j
];
lpc
[
j
]
=
f
+
r
*
b
;
lpc
[
j
]
=
f
+
r
*
b
;
lpc
[
i
-
1
-
j
]
=
b
+
r
*
f
;
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