Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
3250231a
Commit
3250231a
authored
Jul 26, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add edgedetect filter.
parent
12d2bbf3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
2 deletions
+34
-2
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+27
-0
Makefile
libavfilter/Makefile
+1
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+2
-2
vf_edgedetect.c
libavfilter/vf_edgedetect.c
+0
-0
lavfi-regression.sh
tests/lavfi-regression.sh
+1
-0
edgedetect
tests/ref/lavfi/edgedetect
+1
-0
No files found.
Changelog
View file @
3250231a
...
...
@@ -47,6 +47,7 @@ version next:
- hue filter
- ICO muxer
- SubRip encoder and decoder without embedded timing
- edge detection filter
version 0.11:
...
...
doc/filters.texi
View file @
3250231a
...
...
@@ -1929,6 +1929,33 @@ For more information about libfreetype, check:
For more information about fontconfig, check:
@url{http://freedesktop.org/software/fontconfig/fontconfig-user.html}.
@section edgedetect
Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
This filter accepts the following optional named parameters:
@table @option
@item low, high
Set low and high threshold values used by the Canny thresholding
algorithm.
The high threshold selects the "strong" edge pixels, which are then
connected through 8-connectivity with the "weak" edge pixels selected
by the low threshold.
@var{low} and @var{high} threshold values must be choosen in the range
[0,1], and @var{low} should be lesser or equal to @var{high}.
Default value for @var{low} is @code{20/255}, and default value for @var{high}
is @code{50/255}.
@end table
Example:
@example
edgedetect=low=0.1:high=0.4
@end example
@section fade
Apply fade-in/out effect to input video.
...
...
libavfilter/Makefile
View file @
3250231a
...
...
@@ -90,6 +90,7 @@ OBJS-$(CONFIG_DELOGO_FILTER) += vf_delogo.o
OBJS-$(CONFIG_DESHAKE_FILTER)
+=
vf_deshake.o
OBJS-$(CONFIG_DRAWBOX_FILTER)
+=
vf_drawbox.o
OBJS-$(CONFIG_DRAWTEXT_FILTER)
+=
vf_drawtext.o
OBJS-$(CONFIG_EDGEDETECT_FILTER)
+=
vf_edgedetect.o
OBJS-$(CONFIG_FADE_FILTER)
+=
vf_fade.o
OBJS-$(CONFIG_FIELDORDER_FILTER)
+=
vf_fieldorder.o
OBJS-$(CONFIG_FIFO_FILTER)
+=
fifo.o
...
...
libavfilter/allfilters.c
View file @
3250231a
...
...
@@ -81,6 +81,7 @@ void avfilter_register_all(void)
REGISTER_FILTER
(
DESHAKE
,
deshake
,
vf
);
REGISTER_FILTER
(
DRAWBOX
,
drawbox
,
vf
);
REGISTER_FILTER
(
DRAWTEXT
,
drawtext
,
vf
);
REGISTER_FILTER
(
EDGEDETECT
,
edgedetect
,
vf
);
REGISTER_FILTER
(
FADE
,
fade
,
vf
);
REGISTER_FILTER
(
FIELDORDER
,
fieldorder
,
vf
);
REGISTER_FILTER
(
FIFO
,
fifo
,
vf
);
...
...
libavfilter/version.h
View file @
3250231a
...
...
@@ -29,8 +29,8 @@
#include "libavutil/avutil.h"
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MINOR
9
#define LIBAVFILTER_VERSION_MICRO 10
2
#define LIBAVFILTER_VERSION_MINOR
10
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
...
...
libavfilter/vf_edgedetect.c
0 → 100644
View file @
3250231a
This diff is collapsed.
Click to expand it.
tests/lavfi-regression.sh
View file @
3250231a
...
...
@@ -42,6 +42,7 @@ do_lavfi "crop_scale" "crop=iw-100:ih-100:100:100,scale=400:-1"
do_lavfi
"crop_scale_vflip"
"null,null,crop=iw-200:ih-200:200:200,crop=iw-20:ih-20:20:20,scale=200:200,scale=250:250,vflip,vflip,null,scale=200:200,crop=iw-100:ih-100:100:100,vflip,scale=200:200,null,vflip,crop=iw-100:ih-100:100:100,null"
do_lavfi
"crop_vflip"
"crop=iw-100:ih-100:100:100,vflip"
do_lavfi
"drawbox"
"drawbox=224:24:88:72:#FF8010@0.5"
do_lavfi
"edgedetect"
"edgedetect"
do_lavfi
"fade"
"fade=in:5:15,fade=out:30:15"
do_lavfi
"null"
"null"
do_lavfi
"overlay"
"split[m],scale=88:72,pad=96:80:4:4[o2];[m]fifo[o1],[o1][o2]overlay=240:16"
...
...
tests/ref/lavfi/edgedetect
0 → 100644
View file @
3250231a
edgedetect 16bce636eef1a82e18837d176f4187c1
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