Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
82ab49dc
Commit
82ab49dc
authored
16 years ago
by
Vitor Sessak
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetics: s/LPC_type/LPC_TYPE/
Originally committed as revision 15202 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9990e426
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/lpc.h
+9
-9
9 additions, 9 deletions
libavcodec/lpc.h
with
9 additions
and
9 deletions
libavcodec/lpc.h
+
9
−
9
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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment