diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-08-28 12:00:06 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-08-28 12:00:06 +0300 |
commit | 88bcdf109a449d302bec977997af83e1462bca6c (patch) | |
tree | de4b43f98fdfdb65d60fd6907c7423bd12e8de44 /libavfilter/vf_hflip.c | |
parent | dc7e5adbc0867956102afc85e2b59b878e5a27ed (diff) |
avfilter: hflip,swapuv,vflip: add timeline support
Diffstat (limited to 'libavfilter/vf_hflip.c')
-rw-r--r-- | libavfilter/vf_hflip.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libavfilter/vf_hflip.c b/libavfilter/vf_hflip.c index 6f922847e7..3e502e3261 100644 --- a/libavfilter/vf_hflip.c +++ b/libavfilter/vf_hflip.c @@ -26,6 +26,7 @@ #include <string.h> +#include "libavutil/opt.h" #include "avfilter.h" #include "formats.h" #include "internal.h" @@ -36,11 +37,18 @@ #include "libavutil/imgutils.h" typedef struct FlipContext { + const AVClass *class; int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes int planewidth[4]; ///< width of each plane int planeheight[4]; ///< height of each plane } FlipContext; +static const AVOption hflip_options[] = { + { NULL } +}; + +AVFILTER_DEFINE_CLASS(hflip); + static int query_formats(AVFilterContext *ctx) { AVFilterFormats *pix_fmts = NULL; @@ -194,8 +202,9 @@ AVFilter ff_vf_hflip = { .name = "hflip", .description = NULL_IF_CONFIG_SMALL("Horizontally flip the input video."), .priv_size = sizeof(FlipContext), + .priv_class = &hflip_class, .query_formats = query_formats, .inputs = avfilter_vf_hflip_inputs, .outputs = avfilter_vf_hflip_outputs, - .flags = AVFILTER_FLAG_SLICE_THREADS, + .flags = AVFILTER_FLAG_SLICE_THREADS | AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |