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
1c189fc5
Commit
1c189fc5
authored
Jan 21, 2011
by
Justin Ruggles
Committed by
Mans Rullgard
Jan 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics related to LPC changes.
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
77a78e9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
lpc.c
libavcodec/lpc.c
+5
-4
lpc_mmx.c
libavcodec/x86/lpc_mmx.c
+5
-4
No files found.
libavcodec/lpc.c
View file @
1c189fc5
...
...
@@ -28,7 +28,8 @@
/**
* Apply Welch window function to audio block
*/
static
void
apply_welch_window_c
(
const
int32_t
*
data
,
int
len
,
double
*
w_data
)
static
void
lpc_apply_welch_window_c
(
const
int32_t
*
data
,
int
len
,
double
*
w_data
)
{
int
i
,
n2
;
double
w
;
...
...
@@ -255,7 +256,7 @@ av_cold int ff_lpc_init(LPCContext *s, int blocksize, int max_order,
s
->
windowed_samples
=
NULL
;
}
s
->
lpc_apply_welch_window
=
apply_welch_window_c
;
s
->
lpc_apply_welch_window
=
lpc_
apply_welch_window_c
;
s
->
lpc_compute_autocorr
=
lpc_compute_autocorr_c
;
if
(
HAVE_MMX
)
...
...
libavcodec/x86/lpc_mmx.c
View file @
1c189fc5
...
...
@@ -23,7 +23,8 @@
#include "libavutil/cpu.h"
#include "libavcodec/lpc.h"
static
void
apply_welch_window_sse2
(
const
int32_t
*
data
,
int
len
,
double
*
w_data
)
static
void
lpc_apply_welch_window_sse2
(
const
int32_t
*
data
,
int
len
,
double
*
w_data
)
{
double
c
=
2
.
0
/
(
len
-
1
.
0
);
int
n2
=
len
>>
1
;
...
...
@@ -140,7 +141,7 @@ av_cold void ff_lpc_init_x86(LPCContext *c)
int
mm_flags
=
av_get_cpu_flags
();
if
(
mm_flags
&
(
AV_CPU_FLAG_SSE2
|
AV_CPU_FLAG_SSE2SLOW
))
{
c
->
lpc_apply_welch_window
=
apply_welch_window_sse2
;
c
->
lpc_apply_welch_window
=
lpc_
apply_welch_window_sse2
;
c
->
lpc_compute_autocorr
=
lpc_compute_autocorr_sse2
;
}
}
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