Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
025ae145
Commit
025ae145
authored
Oct 18, 2021
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_fftdnoiz: add command options support
parent
374f2ac3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
vf_fftdnoiz.c
libavfilter/vf_fftdnoiz.c
+5
-3
No files found.
libavfilter/vf_fftdnoiz.c
View file @
025ae145
...
...
@@ -73,11 +73,12 @@ typedef struct FFTdnoizContext {
#define OFFSET(x) offsetof(FFTdnoizContext, x)
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
#define TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static
const
AVOption
fftdnoiz_options
[]
=
{
{
"sigma"
,
"set denoise strength"
,
OFFSET
(
sigma
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
30
,
.
flags
=
FLAGS
},
OFFSET
(
sigma
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
30
,
.
flags
=
T
FLAGS
},
{
"amount"
,
"set amount of denoising"
,
OFFSET
(
amount
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
.
01
,
1
,
.
flags
=
FLAGS
},
OFFSET
(
amount
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
.
01
,
1
,
.
flags
=
T
FLAGS
},
{
"block"
,
"set block log2(size)"
,
OFFSET
(
block_bits
),
AV_OPT_TYPE_INT
,
{.
i64
=
4
},
3
,
6
,
.
flags
=
FLAGS
},
{
"overlap"
,
"set block overlap"
,
...
...
@@ -87,7 +88,7 @@ static const AVOption fftdnoiz_options[] = {
{
"next"
,
"set number of next frames for temporal denoising"
,
OFFSET
(
nb_next
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
1
,
.
flags
=
FLAGS
},
{
"planes"
,
"set planes to filter"
,
OFFSET
(
planesf
),
AV_OPT_TYPE_INT
,
{.
i64
=
7
},
0
,
15
,
.
flags
=
FLAGS
},
OFFSET
(
planesf
),
AV_OPT_TYPE_INT
,
{.
i64
=
7
},
0
,
15
,
.
flags
=
T
FLAGS
},
{
NULL
}
};
...
...
@@ -758,4 +759,5 @@ const AVFilter ff_vf_fftdnoiz = {
.
priv_class
=
&
fftdnoiz_class
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
|
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