Commit 2cc56741 authored by Paul B Mahol's avatar Paul B Mahol

avfilter: add floodfill filter

parent c4749104
......@@ -31,6 +31,7 @@ version <next>:
- Dolby E decoder and SMPTE 337M demuxer
- unpremultiply video filter
- tlut2 video filter
- floodfill video filter
version 3.3:
- CrystalHD decoder moved to new decode API
......
......@@ -8404,6 +8404,43 @@ ffmpeg -i file.ts -vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover new.m
@end example
@end itemize
@section floodfill
Flood area with values of same pixel components with another values.
It accepts the following options:
@table @option
@item x
Set pixel x coordinate.
@item y
Set pixel y coordinate.
@item s0
Set source #0 component value.
@item s1
Set source #1 component value.
@item s2
Set source #2 component value.
@item s3
Set source #3 component value.
@item d0
Set destination #0 component value.
@item d1
Set destination #1 component value.
@item d2
Set destination #2 component value.
@item d3
Set destination #3 component value.
@end table
@anchor{format}
@section format
......
......@@ -186,6 +186,7 @@ OBJS-$(CONFIG_FIELDHINT_FILTER) += vf_fieldhint.o
OBJS-$(CONFIG_FIELDMATCH_FILTER) += vf_fieldmatch.o
OBJS-$(CONFIG_FIELDORDER_FILTER) += vf_fieldorder.o
OBJS-$(CONFIG_FIND_RECT_FILTER) += vf_find_rect.o lavfutils.o
OBJS-$(CONFIG_FLOODFILL_FILTER) += vf_floodfill.o
OBJS-$(CONFIG_FORMAT_FILTER) += vf_format.o
OBJS-$(CONFIG_FPS_FILTER) += vf_fps.o
OBJS-$(CONFIG_FRAMEPACK_FILTER) += vf_framepack.o
......
......@@ -198,6 +198,7 @@ static void register_all(void)
REGISTER_FILTER(FIELDMATCH, fieldmatch, vf);
REGISTER_FILTER(FIELDORDER, fieldorder, vf);
REGISTER_FILTER(FIND_RECT, find_rect, vf);
REGISTER_FILTER(FLOODFILL, floodfill, vf);
REGISTER_FILTER(FORMAT, format, vf);
REGISTER_FILTER(FPS, fps, vf);
REGISTER_FILTER(FRAMEPACK, framepack, vf);
......
......@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 6
#define LIBAVFILTER_VERSION_MINOR 97
#define LIBAVFILTER_VERSION_MINOR 98
#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment