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
aaac48fb
Commit
aaac48fb
authored
Nov 23, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_normalize: add support for commands
parent
89aa1342
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
filters.texi
doc/filters.texi
+7
-0
vf_normalize.c
libavfilter/vf_normalize.c
+6
-4
No files found.
doc/filters.texi
View file @
aaac48fb
...
...
@@ -13636,6 +13636,13 @@ expensive no-op. Defaults to 1.0 (full strength).
@end table
@subsection Commands
This filter supports same @ref{commands} as options, excluding @var{smoothing} option.
The command accepts the same syntax of the corresponding option.
If the specified expression is not valid, it is kept at its current
value.
@subsection Examples
Stretch video contrast to use the full dynamic range, with no temporal
...
...
libavfilter/vf_normalize.c
View file @
aaac48fb
...
...
@@ -116,13 +116,14 @@ typedef struct NormalizeContext {
#define OFFSET(x) offsetof(NormalizeContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
#define FLAGSR AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static
const
AVOption
normalize_options
[]
=
{
{
"blackpt"
,
"output color to which darkest input color is mapped"
,
OFFSET
(
blackpt
),
AV_OPT_TYPE_COLOR
,
{
.
str
=
"black"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"whitept"
,
"output color to which brightest input color is mapped"
,
OFFSET
(
whitept
),
AV_OPT_TYPE_COLOR
,
{
.
str
=
"white"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"blackpt"
,
"output color to which darkest input color is mapped"
,
OFFSET
(
blackpt
),
AV_OPT_TYPE_COLOR
,
{
.
str
=
"black"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
R
},
{
"whitept"
,
"output color to which brightest input color is mapped"
,
OFFSET
(
whitept
),
AV_OPT_TYPE_COLOR
,
{
.
str
=
"white"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
R
},
{
"smoothing"
,
"amount of temporal smoothing of the input range, to reduce flicker"
,
OFFSET
(
smoothing
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
INT_MAX
/
8
,
FLAGS
},
{
"independence"
,
"proportion of independent to linked channel normalization"
,
OFFSET
(
independence
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.
0
},
0
.
0
,
1
.
0
,
FLAGS
},
{
"strength"
,
"strength of filter, from no effect to full normalization"
,
OFFSET
(
strength
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.
0
},
0
.
0
,
1
.
0
,
FLAGS
},
{
"independence"
,
"proportion of independent to linked channel normalization"
,
OFFSET
(
independence
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.
0
},
0
.
0
,
1
.
0
,
FLAGS
R
},
{
"strength"
,
"strength of filter, from no effect to full normalization"
,
OFFSET
(
strength
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.
0
},
0
.
0
,
1
.
0
,
FLAGS
R
},
{
NULL
}
};
...
...
@@ -388,4 +389,5 @@ AVFilter ff_vf_normalize = {
.
inputs
=
inputs
,
.
outputs
=
outputs
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
,
.
process_command
=
ff_filter_process_command
,
};
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