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
ab4afcb8
Commit
ab4afcb8
authored
Apr 11, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/blackdetect: switch to an AVOptions-based system.
parent
7eb1ea2a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
19 deletions
+1
-19
filters.texi
doc/filters.texi
+1
-3
avfilter.c
libavfilter/avfilter.c
+0
-1
vf_blackdetect.c
libavfilter/vf_blackdetect.c
+0
-15
No files found.
doc/filters.texi
View file @
ab4afcb8
...
...
@@ -1865,9 +1865,7 @@ duration of the detected black interval expressed in seconds.
In order to display the output lines, you need to set the loglevel at
least to the AV_LOG_INFO value.
This filter accepts a list of options in the form of
@var{key}=@var{value} pairs separated by ":". A description of the
accepted options follows.
The filter accepts the following options:
@table @option
@item black_min_duration, d
...
...
libavfilter/avfilter.c
View file @
ab4afcb8
...
...
@@ -682,7 +682,6 @@ static const char *const filters_left_to_update[] = {
"astreamsync"
,
"atempo"
,
"bbox"
,
"blackdetect"
,
"buffer"
,
"flite"
,
"hue"
,
...
...
libavfilter/vf_blackdetect.c
View file @
ab4afcb8
...
...
@@ -82,20 +82,6 @@ static int query_formats(AVFilterContext *ctx)
return
0
;
}
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
int
ret
;
BlackDetectContext
*
blackdetect
=
ctx
->
priv
;
blackdetect
->
class
=
&
blackdetect_class
;
av_opt_set_defaults
(
blackdetect
);
if
((
ret
=
av_set_options_string
(
blackdetect
,
args
,
"="
,
":"
))
<
0
)
return
ret
;
return
0
;
}
static
int
config_input
(
AVFilterLink
*
inlink
)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
...
...
@@ -211,7 +197,6 @@ AVFilter avfilter_vf_blackdetect = {
.
name
=
"blackdetect"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Detect video intervals that are (almost) black."
),
.
priv_size
=
sizeof
(
BlackDetectContext
),
.
init
=
init
,
.
query_formats
=
query_formats
,
.
inputs
=
blackdetect_inputs
,
.
outputs
=
blackdetect_outputs
,
...
...
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