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
84ccc317
Commit
84ccc317
authored
Nov 10, 2014
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/flacdsp: separate decoder and encoder dsp initialization
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
39dfe680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
flacdsp_init.c
libavcodec/x86/flacdsp_init.c
+11
-4
No files found.
libavcodec/x86/flacdsp_init.c
View file @
84ccc317
...
...
@@ -35,15 +35,22 @@ av_cold void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt,
#if HAVE_YASM
int
cpu_flags
=
av_get_cpu_flags
();
#if CONFIG_FLAC_DECODER
if
(
EXTERNAL_SSE4
(
cpu_flags
))
{
if
(
bps
>
16
&&
CONFIG_FLAC_DECODER
)
if
(
bps
>
16
)
c
->
lpc
=
ff_flac_lpc_32_sse4
;
if
(
bps
==
16
&&
CONFIG_FLAC_ENCODER
&&
CONFIG_GPL
)
c
->
lpc_encode
=
ff_flac_enc_lpc_16_sse4
;
}
if
(
EXTERNAL_XOP
(
cpu_flags
))
{
if
(
bps
>
16
&&
CONFIG_FLAC_DECODER
)
if
(
bps
>
16
)
c
->
lpc
=
ff_flac_lpc_32_xop
;
}
#endif
#if CONFIG_FLAC_ENCODER
if
(
EXTERNAL_SSE4
(
cpu_flags
))
{
if
(
CONFIG_GPL
&&
bps
==
16
)
c
->
lpc_encode
=
ff_flac_enc_lpc_16_sse4
;
}
#endif
#endif
/* HAVE_YASM */
}
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