avfilter/vf_displace: add support for commands

This commit is contained in:
Paul B Mahol 2023-06-18 11:05:38 +02:00
parent 54dc06e09e
commit 8e21f32fe7

View File

@ -49,7 +49,7 @@ typedef struct DisplaceContext {
} DisplaceContext; } DisplaceContext;
#define OFFSET(x) offsetof(DisplaceContext, x) #define OFFSET(x) offsetof(DisplaceContext, x)
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption displace_options[] = { static const AVOption displace_options[] = {
{ "edge", "set edge mode", OFFSET(edge), AV_OPT_TYPE_INT, {.i64=EDGE_SMEAR}, 0, EDGE_NB-1, FLAGS, "edge" }, { "edge", "set edge mode", OFFSET(edge), AV_OPT_TYPE_INT, {.i64=EDGE_SMEAR}, 0, EDGE_NB-1, FLAGS, "edge" },
@ -422,4 +422,5 @@ const AVFilter ff_vf_displace = {
.priv_class = &displace_class, .priv_class = &displace_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
AVFILTER_FLAG_SLICE_THREADS, AVFILTER_FLAG_SLICE_THREADS,
.process_command = ff_filter_process_command,
}; };