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
21f4fc2e
Commit
21f4fc2e
authored
Apr 06, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_mp: fix x86 cpu caps
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
11774169
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
vf_mp.c
libavfilter/vf_mp.c
+13
-0
No files found.
libavfilter/vf_mp.c
View file @
21f4fc2e
...
...
@@ -630,9 +630,22 @@ static int vf_default_query_format(struct vf_instance *vf, unsigned int fmt){
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
MPContext
*
m
=
ctx
->
priv
;
int
cpu_flags
=
av_get_cpu_flags
();
char
name
[
256
];
int
i
;
ff_gCpuCaps
.
hasMMX
=
cpu_flags
&
AV_CPU_FLAG_MMX
;
ff_gCpuCaps
.
hasMMX2
=
cpu_flags
&
AV_CPU_FLAG_MMX2
;
ff_gCpuCaps
.
hasSSE
=
cpu_flags
&
AV_CPU_FLAG_SSE
;
ff_gCpuCaps
.
hasSSE2
=
cpu_flags
&
AV_CPU_FLAG_SSE2
;
ff_gCpuCaps
.
hasSSE3
=
cpu_flags
&
AV_CPU_FLAG_SSE3
;
ff_gCpuCaps
.
hasSSSE3
=
cpu_flags
&
AV_CPU_FLAG_SSSE3
;
ff_gCpuCaps
.
hasSSE4
=
cpu_flags
&
AV_CPU_FLAG_SSE4
;
ff_gCpuCaps
.
hasSSE42
=
cpu_flags
&
AV_CPU_FLAG_SSE42
;
ff_gCpuCaps
.
hasAVX
=
cpu_flags
&
AV_CPU_FLAG_AVX
;
ff_gCpuCaps
.
has3DNow
=
cpu_flags
&
AV_CPU_FLAG_3DNOW
;
ff_gCpuCaps
.
has3DNowExt
=
cpu_flags
&
AV_CPU_FLAG_3DNOWEXT
;
m
->
avfctx
=
ctx
;
if
(
!
args
||
1
!=
sscanf
(
args
,
"%255[^:=]"
,
name
)){
...
...
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