[FFmpeg-devel] [PATCH] avfilter: add fillborders filter
Rostislav Pehlivanov
atomnuker at gmail.com
Sat Nov 18 20:58:36 EET 2017
On 18 November 2017 at 18:53, Paul B Mahol <onemda at gmail.com> wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
> doc/filters.texi | 31 ++++++
> libavfilter/Makefile | 1 +
> libavfilter/allfilters.c | 1 +
> libavfilter/vf_fillborders.c | 232 ++++++++++++++++++++++++++++++
> +++++++++++++
> 4 files changed, 265 insertions(+)
> create mode 100644 libavfilter/vf_fillborders.c
>
> diff --git a/doc/filters.texi b/doc/filters.texi
> index 5d99437871..7a23d8de04 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -8607,6 +8607,37 @@ ffmpeg -i file.ts -vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover
> new.m
> @end example
> @end itemize
>
> + at section fillborders
> +
> +Fill borders of the input video.
> +
> +It accepts the following options:
> +
> + at table @option
> + at item left
> +Number of pixels to fill from left border.
> +
> + at item right
> +Number of pixels to fill from right border.
> +
> + at item top
> +Number of pixels to fill from top border.
> +
> + at item bottom
> +Number of pixels to fill from bottom border.
> +
> + at item mode
> +Set fill mode.
> +
> +It accepts the following values:
> + at table @samp
> + at item smear
> +fill pixels using outermost pixels
> + at item mirror
> +fill pixels using mirroring
> + at end table
> + at end table
> +
> @section floodfill
>
>
MpegvideoEncDSPContext->draw_edges seems to pretty much do that, and it has
SIMD. Could you use it instead?
More information about the ffmpeg-devel
mailing list