Commit 6da43921 authored by Paul B Mahol's avatar Paul B Mahol

avfilter: add rgbashift filter

parent cfd42122
......@@ -5,6 +5,7 @@ version <next>:
- tpad filter
- AV1 decoding support through libdav1d
- dedot filter
- chromashift and rgbashift filters
version 4.1:
......
......@@ -14311,6 +14311,31 @@ trim=end=5,reverse
@end example
@end itemize
@section rgbashift
Shift R/G/B/A pixels horizontally and/or vertically.
The filter accepts the following options:
@table @option
@item rh
Set amount to shift red horizontally.
@item rv
Set amount to shift red vertically.
@item gh
Set amount to shift green horizontally.
@item gv
Set amount to shift green vertically.
@item bh
Set amount to shift blue horizontally.
@item bv
Set amount to shift blue vertically.
@item ah
Set amount to shift alpha horizontally.
@item av
Set amount to shift alpha vertically.
@item edge
Set edge mode, can be @var{smear}, default, or @var{warp}.
@end table
@section roberts
Apply roberts cross operator to input video stream.
......
......@@ -330,6 +330,7 @@ OBJS-$(CONFIG_REMOVEGRAIN_FILTER) += vf_removegrain.o
OBJS-$(CONFIG_REMOVELOGO_FILTER) += bbox.o lswsutils.o lavfutils.o vf_removelogo.o
OBJS-$(CONFIG_REPEATFIELDS_FILTER) += vf_repeatfields.o
OBJS-$(CONFIG_REVERSE_FILTER) += f_reverse.o
OBJS-$(CONFIG_RGBASHIFT_FILTER) += vf_chromashift.o
OBJS-$(CONFIG_ROBERTS_FILTER) += vf_convolution.o
OBJS-$(CONFIG_ROBERTS_OPENCL_FILTER) += vf_convolution_opencl.o opencl.o \
opencl/convolution.o
......
......@@ -314,6 +314,7 @@ extern AVFilter ff_vf_removegrain;
extern AVFilter ff_vf_removelogo;
extern AVFilter ff_vf_repeatfields;
extern AVFilter ff_vf_reverse;
extern AVFilter ff_vf_rgbashift;
extern AVFilter ff_vf_roberts;
extern AVFilter ff_vf_roberts_opencl;
extern AVFilter ff_vf_rotate;
......
......@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 44
#define LIBAVFILTER_VERSION_MINOR 45
#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