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
44933908
Commit
44933908
authored
Aug 27, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add nb_threads to AVFilterContext
To be used in following commits.
parent
7ba98824
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
avfilter.c
libavfilter/avfilter.c
+2
-0
avfilter.h
libavfilter/avfilter.h
+7
-0
version.h
libavfilter/version.h
+1
-1
No files found.
libavfilter/avfilter.c
View file @
44933908
...
...
@@ -616,6 +616,8 @@ static const AVOption avfilter_options[] = {
{
.
i64
=
AVFILTER_THREAD_SLICE
},
0
,
INT_MAX
,
FLAGS
,
"thread_type"
},
{
"slice"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AVFILTER_THREAD_SLICE
},
.
unit
=
"thread_type"
},
{
"enable"
,
"set enable expression"
,
OFFSET
(
enable_str
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
.
flags
=
FLAGS
},
{
"threads"
,
"Allowed number of threads"
,
OFFSET
(
nb_threads
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
INT_MAX
,
FLAGS
},
{
NULL
},
};
...
...
libavfilter/avfilter.h
View file @
44933908
...
...
@@ -361,6 +361,13 @@ struct AVFilterContext {
* hardware context information.
*/
AVBufferRef
*
hw_device_ctx
;
/**
* Max number of threads allowed in this filter instance.
* If <= 0, its value is ignored.
* Overrides global number of threads set per filter graph.
*/
int
nb_threads
;
};
/**
...
...
libavfilter/version.h
View file @
44933908
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 6
#define LIBAVFILTER_VERSION_MINOR 5
7
#define LIBAVFILTER_VERSION_MINOR 5
8
#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
...
...
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