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
953b1c7b
Commit
953b1c7b
authored
Oct 08, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_amplify: add support for commands
parent
7fcb8416
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
vf_amplify.c
libavfilter/vf_amplify.c
+8
-6
No files found.
libavfilter/vf_amplify.c
View file @
953b1c7b
...
...
@@ -268,15 +268,16 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
#define OFFSET(x) offsetof(AmplifyContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
#define VFT AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM
static
const
AVOption
amplify_options
[]
=
{
{
"radius"
,
"set radius"
,
OFFSET
(
radius
),
AV_OPT_TYPE_INT
,
{.
i64
=
2
},
1
,
63
,
.
flags
=
FLAGS
},
{
"factor"
,
"set factor"
,
OFFSET
(
factor
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
2
},
0
,
UINT16_MAX
,
.
flags
=
FLAGS
},
{
"threshold"
,
"set threshold"
,
OFFSET
(
threshold
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
10
},
0
,
UINT16_MAX
,
.
flags
=
FLAGS
},
{
"tolerance"
,
"set tolerance"
,
OFFSET
(
tolerance
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
},
0
,
UINT16_MAX
,
.
flags
=
FLAGS
},
{
"low"
,
"set low limit for amplification"
,
OFFSET
(
llimit
),
AV_OPT_TYPE_INT
,
{.
i64
=
UINT16_MAX
},
0
,
UINT16_MAX
,
.
flags
=
FLAGS
},
{
"high"
,
"set high limit for amplification"
,
OFFSET
(
hlimit
),
AV_OPT_TYPE_INT
,
{.
i64
=
UINT16_MAX
},
0
,
UINT16_MAX
,
.
flags
=
FLAGS
},
{
"planes"
,
"set what planes to filter"
,
OFFSET
(
planes
),
AV_OPT_TYPE_FLAGS
,
{.
i64
=
7
},
0
,
15
,
FLAGS
},
{
"factor"
,
"set factor"
,
OFFSET
(
factor
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
2
},
0
,
UINT16_MAX
,
.
flags
=
VFT
},
{
"threshold"
,
"set threshold"
,
OFFSET
(
threshold
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
10
},
0
,
UINT16_MAX
,
.
flags
=
VFT
},
{
"tolerance"
,
"set tolerance"
,
OFFSET
(
tolerance
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
},
0
,
UINT16_MAX
,
.
flags
=
VFT
},
{
"low"
,
"set low limit for amplification"
,
OFFSET
(
llimit
),
AV_OPT_TYPE_INT
,
{.
i64
=
UINT16_MAX
},
0
,
UINT16_MAX
,
.
flags
=
VFT
},
{
"high"
,
"set high limit for amplification"
,
OFFSET
(
hlimit
),
AV_OPT_TYPE_INT
,
{.
i64
=
UINT16_MAX
},
0
,
UINT16_MAX
,
.
flags
=
VFT
},
{
"planes"
,
"set what planes to filter"
,
OFFSET
(
planes
),
AV_OPT_TYPE_FLAGS
,
{.
i64
=
7
},
0
,
15
,
VFT
},
{
NULL
},
};
...
...
@@ -311,4 +312,5 @@ AVFilter ff_vf_amplify = {
.
init
=
init
,
.
uninit
=
uninit
,
.
flags
=
AVFILTER_FLAG_SLICE_THREADS
,
.
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