diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-08-28 11:00:06 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-08-28 11:00:06 +0200 |
commit | 88bcdf109a449d302bec977997af83e1462bca6c (patch) | |
tree | de4b43f98fdfdb65d60fd6907c7423bd12e8de44 /libavfilter/vf_swapuv.c | |
parent | dc7e5adbc0867956102afc85e2b59b878e5a27ed (diff) | |
download | ffmpeg-88bcdf109a449d302bec977997af83e1462bca6c.tar.gz |
avfilter: hflip,swapuv,vflip: add timeline support
Diffstat (limited to 'libavfilter/vf_swapuv.c')
-rw-r--r-- | libavfilter/vf_swapuv.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavfilter/vf_swapuv.c b/libavfilter/vf_swapuv.c index 1a82ef3cc9..8d62c48c4f 100644 --- a/libavfilter/vf_swapuv.c +++ b/libavfilter/vf_swapuv.c @@ -23,6 +23,7 @@ * swap UV filter */ +#include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/version.h" #include "avfilter.h" @@ -30,6 +31,16 @@ #include "internal.h" #include "video.h" +typedef struct SwapUVContext { + const AVClass *class; +} SwapUVContext; + +static const AVOption swapuv_options[] = { + { NULL } +}; + +AVFILTER_DEFINE_CLASS(swapuv); + static void do_swap(AVFrame *frame) { FFSWAP(uint8_t*, frame->data[1], frame->data[2]); @@ -110,6 +121,9 @@ AVFilter ff_vf_swapuv = { .name = "swapuv", .description = NULL_IF_CONFIG_SMALL("Swap U and V components."), .query_formats = query_formats, + .priv_size = sizeof(SwapUVContext), + .priv_class = &swapuv_class, .inputs = swapuv_inputs, .outputs = swapuv_outputs, + .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |