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
5ad38d93
Commit
5ad38d93
authored
Jun 02, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpudetect: add av_force_cpu_flags()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
9e66b64c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
avutil.h
libavutil/avutil.h
+1
-1
cpu.c
libavutil/cpu.c
+7
-2
cpu.h
libavutil/cpu.h
+7
-0
No files found.
libavutil/avutil.h
View file @
5ad38d93
...
...
@@ -40,7 +40,7 @@
#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
#define LIBAVUTIL_VERSION_MAJOR 51
#define LIBAVUTIL_VERSION_MINOR
3
#define LIBAVUTIL_VERSION_MINOR
4
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
libavutil/cpu.c
View file @
5ad38d93
...
...
@@ -19,10 +19,15 @@
#include "cpu.h"
#include "config.h"
static
int
flags
,
checked
;
void
av_force_cpu_flags
(
int
arg
){
flags
=
arg
;
checked
=
1
;
}
int
av_get_cpu_flags
(
void
)
{
static
int
flags
,
checked
;
if
(
checked
)
return
flags
;
...
...
libavutil/cpu.h
View file @
5ad38d93
...
...
@@ -46,6 +46,13 @@
*/
int
av_get_cpu_flags
(
void
);
/**
* Disables cpu detection and forces the specified flags.
*/
void
av_force_cpu_flags
(
int
flags
);
/* The following CPU-specific functions shall not be called directly. */
int
ff_get_cpu_flags_arm
(
void
);
int
ff_get_cpu_flags_ppc
(
void
);
...
...
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