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
7a6c288c
Commit
7a6c288c
authored
Sep 02, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/tests/swscale: add cpuflags option
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
b5cf307d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
swscale.c
libswscale/tests/swscale.c
+9
-0
No files found.
libswscale/tests/swscale.c
View file @
7a6c288c
...
...
@@ -25,6 +25,7 @@
#include <stdarg.h>
#undef HAVE_AV_CONFIG_H
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/avutil.h"
...
...
@@ -382,6 +383,14 @@ int main(int argc, char **argv)
fprintf
(
stderr
,
"could not open '%s'
\n
"
,
argv
[
i
+
1
]);
goto
error
;
}
}
else
if
(
!
strcmp
(
argv
[
i
],
"-cpuflags"
))
{
unsigned
flags
=
av_get_cpu_flags
();
int
ret
=
av_parse_cpu_caps
(
&
flags
,
argv
[
i
+
1
]);
if
(
ret
<
0
)
{
fprintf
(
stderr
,
"invalid cpu flags %s
\n
"
,
argv
[
i
+
1
]);
return
ret
;
}
av_force_cpu_flags
(
flags
);
}
else
if
(
!
strcmp
(
argv
[
i
],
"-src"
))
{
srcFormat
=
av_get_pix_fmt
(
argv
[
i
+
1
]);
if
(
srcFormat
==
AV_PIX_FMT_NONE
)
{
...
...
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