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
141d80de
Commit
141d80de
authored
Aug 29, 2015
by
Rostislav Pehlivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lpc: rename ff_lpc_calc_levinsion to ff_lpc_calc_levinson
Signed-off-by:
Rostislav Pehlivanov
<
atomnuker@gmail.com
>
parent
e924967f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
aacenc_tns.c
libavcodec/aacenc_tns.c
+2
-2
lpc.c
libavcodec/lpc.c
+3
-3
lpc.h
libavcodec/lpc.h
+3
-3
No files found.
libavcodec/aacenc_tns.c
View file @
141d80de
...
...
@@ -210,8 +210,8 @@ void ff_aac_search_for_tns(AACEncContext *s, SingleChannelElement *sce)
coef_len
=
1024
-
coef_start
;
/* LPC */
order
=
ff_lpc_calc_levins
i
on
(
&
s
->
lpc
,
&
sce
->
coeffs
[
coef_start
],
coef_len
,
coefs
,
0
,
tns_max_order
,
ORDER_METHOD_LOG
);
order
=
ff_lpc_calc_levinson
(
&
s
->
lpc
,
&
sce
->
coeffs
[
coef_start
],
coef_len
,
coefs
,
0
,
tns_max_order
,
ORDER_METHOD_LOG
);
if
(
energy
>
threshold
)
{
int
direction
=
0
;
...
...
libavcodec/lpc.c
View file @
141d80de
...
...
@@ -277,9 +277,9 @@ int ff_lpc_calc_coefs(LPCContext *s,
* @param lpc_type LPC method for determining coefficients,
* see #FFLPCType for details
*/
int
ff_lpc_calc_levins
i
on
(
LPCContext
*
s
,
const
float
*
samples
,
int
len
,
double
lpc
[][
MAX_LPC_ORDER
],
int
min_order
,
int
max_order
,
int
omethod
)
int
ff_lpc_calc_levinson
(
LPCContext
*
s
,
const
float
*
samples
,
int
len
,
double
lpc
[][
MAX_LPC_ORDER
],
int
min_order
,
int
max_order
,
int
omethod
)
{
double
ref
[
MAX_LPC_ORDER
]
=
{
0
};
double
autoc
[
MAX_LPC_ORDER
+
1
];
...
...
libavcodec/lpc.h
View file @
141d80de
...
...
@@ -100,9 +100,9 @@ int ff_lpc_calc_coefs(LPCContext *s,
int
ff_lpc_calc_ref_coefs
(
LPCContext
*
s
,
const
int32_t
*
samples
,
int
order
,
double
*
ref
);
int
ff_lpc_calc_levins
i
on
(
LPCContext
*
s
,
const
float
*
samples
,
int
len
,
double
lpc
[][
MAX_LPC_ORDER
],
int
min_order
,
int
max_order
,
int
omethod
);
int
ff_lpc_calc_levinson
(
LPCContext
*
s
,
const
float
*
samples
,
int
len
,
double
lpc
[][
MAX_LPC_ORDER
],
int
min_order
,
int
max_order
,
int
omethod
);
/**
* Initialize LPCContext.
...
...
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