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
4457f75c
Commit
4457f75c
authored
Apr 15, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add maskedthreshold filter
parent
9987f6d0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
323 additions
and
1 deletion
+323
-1
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+21
-0
Makefile
libavfilter/Makefile
+1
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+1
-1
vf_maskedthreshold.c
libavfilter/vf_maskedthreshold.c
+298
-0
No files found.
Changelog
View file @
4457f75c
...
...
@@ -60,6 +60,7 @@ version <next>:
- Expanded styling support for 3GPP Timed Text Subtitles (movtext)
- WebP parser
- tmedian filter
- maskedthreshold filter
version 4.2:
...
...
doc/filters.texi
View file @
4457f75c
...
...
@@ -13258,6 +13258,27 @@ copied from first stream.
By default value 0xf, all planes will be processed.
@end table
@section maskedthreshold
Pick pixels comparing absolute difference of two video streams with fixed
threshold.
If absolute difference between pixel component of first and second video
stream is equal or lower than user supplied threshold than pixel component
from first video stream is picked, otherwise pixel component from second
video stream is picked.
This filter accepts the following options:
@table @option
@item threshold
Set threshold used when picking pixels from absolute difference from two input
video streams.
@item planes
Set which planes will be processed as bitmap, unprocessed planes will be
copied from second stream.
By default value 0xf, all planes will be processed.
@end table
@section maskfun
Create mask from input video.
...
...
libavfilter/Makefile
View file @
4457f75c
...
...
@@ -302,6 +302,7 @@ 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_MASKEDTHRESHOLD_FILTER)
+=
vf_maskedthreshold.o
framesync.o
OBJS-$(CONFIG_MASKFUN_FILTER)
+=
vf_maskfun.o
OBJS-$(CONFIG_MCDEINT_FILTER)
+=
vf_mcdeint.o
OBJS-$(CONFIG_MEDIAN_FILTER)
+=
vf_median.o
...
...
libavfilter/allfilters.c
View file @
4457f75c
...
...
@@ -287,6 +287,7 @@ extern AVFilter ff_vf_maskedclamp;
extern
AVFilter
ff_vf_maskedmax
;
extern
AVFilter
ff_vf_maskedmerge
;
extern
AVFilter
ff_vf_maskedmin
;
extern
AVFilter
ff_vf_maskedthreshold
;
extern
AVFilter
ff_vf_maskfun
;
extern
AVFilter
ff_vf_mcdeint
;
extern
AVFilter
ff_vf_median
;
...
...
libavfilter/version.h
View file @
4457f75c
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 7
8
#define LIBAVFILTER_VERSION_MINOR 7
9
#define LIBAVFILTER_VERSION_MICRO 100
...
...
libavfilter/vf_maskedthreshold.c
0 → 100644
View file @
4457f75c
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