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
f166951d
Commit
f166951d
authored
Oct 20, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add maskedmin/maskedmax filters
parent
262eef6b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
397 additions
and
1 deletion
+397
-1
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+32
-0
Makefile
libavfilter/Makefile
+2
-0
allfilters.c
libavfilter/allfilters.c
+2
-0
version.h
libavfilter/version.h
+1
-1
vf_maskedminmax.c
libavfilter/vf_maskedminmax.c
+359
-0
No files found.
Changelog
View file @
f166951d
...
...
@@ -17,6 +17,7 @@ version <next>:
- anlms filter
- arnndn filter
- bilateral filter
- maskedmin and maskedmax filters
version 4.2:
...
...
doc/filters.texi
View file @
f166951d
...
...
@@ -12672,6 +12672,22 @@ copied from first stream.
By
default
value
0xf
,
all
planes
will
be
processed
.
@
end
table
@
section
maskedmax
Merge
the
second
and
third
input
stream
into
output
stream
using
absolute
differences
between
second
input
stream
and
first
input
stream
and
absolute
difference
between
third
input
stream
and
first
input
stream
.
The
picked
value
will
be
from
second
input
stream
if
second
absolute
difference
is
greater
than
first
one
or
from
third
input
stream
otherwise
.
This
filter
accepts
the
following
options
:
@
table
@
option
@
item
planes
Set
which
planes
will
be
processed
as
bitmap
,
unprocessed
planes
will
be
copied
from
first
stream
.
By
default
value
0xf
,
all
planes
will
be
processed
.
@
end
table
@
section
maskedmerge
Merge
the
first
input
stream
with
the
second
input
stream
using
per
pixel
...
...
@@ -12691,6 +12707,22 @@ copied from first stream.
By default value 0xf, all planes will be processed.
@end table
@section maskedmin
Merge the second and third input stream into output stream using absolute differences
between second input stream and first input stream and absolute difference between
third input stream and first input stream. The picked value will be from second input
stream if second absolute difference is less than first one or from third input stream
otherwise.
This filter accepts the following options:
@table @option
@item planes
Set which planes will be processed as bitmap, unprocessed planes will be
copied from first stream.
By default value 0xf, all planes will be processed.
@end table
@section maskfun
Create mask from input video.
...
...
libavfilter/Makefile
View file @
f166951d
...
...
@@ -292,7 +292,9 @@ OBJS-$(CONFIG_LUT3D_FILTER) += vf_lut3d.o
OBJS-$(CONFIG_LUTRGB_FILTER)
+=
vf_lut.o
OBJS-$(CONFIG_LUTYUV_FILTER)
+=
vf_lut.o
OBJS-$(CONFIG_MASKEDCLAMP_FILTER)
+=
vf_maskedclamp.o
framesync.o
OBJS-$(CONFIG_MASKEDMAX_FILTER)
+=
vf_maskedminmax.o
framesync.o
OBJS-$(CONFIG_MASKEDMERGE_FILTER)
+=
vf_maskedmerge.o
framesync.o
OBJS-$(CONFIG_MASKEDMIN_FILTER)
+=
vf_maskedminmax.o
framesync.o
OBJS-$(CONFIG_MASKFUN_FILTER)
+=
vf_maskfun.o
OBJS-$(CONFIG_MCDEINT_FILTER)
+=
vf_mcdeint.o
OBJS-$(CONFIG_MERGEPLANES_FILTER)
+=
vf_mergeplanes.o
framesync.o
...
...
libavfilter/allfilters.c
View file @
f166951d
...
...
@@ -277,7 +277,9 @@ extern AVFilter ff_vf_lut3d;
extern
AVFilter
ff_vf_lutrgb
;
extern
AVFilter
ff_vf_lutyuv
;
extern
AVFilter
ff_vf_maskedclamp
;
extern
AVFilter
ff_vf_maskedmax
;
extern
AVFilter
ff_vf_maskedmerge
;
extern
AVFilter
ff_vf_maskedmin
;
extern
AVFilter
ff_vf_maskfun
;
extern
AVFilter
ff_vf_mcdeint
;
extern
AVFilter
ff_vf_mergeplanes
;
...
...
libavfilter/version.h
View file @
f166951d
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 6
4
#define LIBAVFILTER_VERSION_MINOR 6
5
#define LIBAVFILTER_VERSION_MICRO 100
...
...
libavfilter/vf_maskedminmax.c
0 → 100644
View file @
f166951d
This diff is collapsed.
Click to expand it.
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