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
185142a5
Commit
185142a5
authored
Oct 10, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmtconvert: check compile-time x86 instruction set flags
parent
708ab7dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fmtconvert_mmx.c
libavcodec/x86/fmtconvert_mmx.c
+4
-4
No files found.
libavcodec/x86/fmtconvert_mmx.c
View file @
185142a5
...
...
@@ -208,19 +208,19 @@ void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx)
#if HAVE_YASM
c
->
float_interleave
=
float_interleave_mmx
;
if
(
mm_flags
&
AV_CPU_FLAG_3DNOW
)
{
if
(
HAVE_AMD3DNOW
&&
mm_flags
&
AV_CPU_FLAG_3DNOW
)
{
if
(
!
(
avctx
->
flags
&
CODEC_FLAG_BITEXACT
)){
c
->
float_to_int16
=
ff_float_to_int16_3dnow
;
c
->
float_to_int16_interleave
=
float_to_int16_interleave_3dnow
;
}
}
if
(
mm_flags
&
AV_CPU_FLAG_3DNOWEXT
)
{
if
(
HAVE_AMD3DNOWEXT
&&
mm_flags
&
AV_CPU_FLAG_3DNOWEXT
)
{
if
(
!
(
avctx
->
flags
&
CODEC_FLAG_BITEXACT
)){
c
->
float_to_int16_interleave
=
float_to_int16_interleave_3dn2
;
}
}
#endif
if
(
mm_flags
&
AV_CPU_FLAG_SSE
)
{
if
(
HAVE_SSE
&&
mm_flags
&
AV_CPU_FLAG_SSE
)
{
c
->
int32_to_float_fmul_scalar
=
int32_to_float_fmul_scalar_sse
;
#if HAVE_YASM
c
->
float_to_int16
=
ff_float_to_int16_sse
;
...
...
@@ -228,7 +228,7 @@ void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx)
c
->
float_interleave
=
float_interleave_sse
;
#endif
}
if
(
mm_flags
&
AV_CPU_FLAG_SSE2
)
{
if
(
HAVE_SSE
&&
mm_flags
&
AV_CPU_FLAG_SSE2
)
{
c
->
int32_to_float_fmul_scalar
=
int32_to_float_fmul_scalar_sse2
;
#if HAVE_YASM
c
->
float_to_int16
=
ff_float_to_int16_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