1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

avfilter/vf_bbox: add support for commands

This commit is contained in:
Paul B Mahol 2021-01-17 12:22:28 +01:00
parent 4f81e24c34
commit eb0f532c98
2 changed files with 6 additions and 1 deletions

View File

@ -7144,6 +7144,10 @@ The filter accepts the following option:
Set the minimal luminance value. Default is @code{16}. Set the minimal luminance value. Default is @code{16}.
@end table @end table
@subsection Commands
This filter supports the all above options as @ref{commands}.
@section bilateral @section bilateral
Apply bilateral filter, spatial smoothing while preserving edges. Apply bilateral filter, spatial smoothing while preserving edges.

View File

@ -37,7 +37,7 @@ typedef struct BBoxContext {
} BBoxContext; } BBoxContext;
#define OFFSET(x) offsetof(BBoxContext, x) #define OFFSET(x) offsetof(BBoxContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption bbox_options[] = { static const AVOption bbox_options[] = {
{ "min_val", "set minimum luminance value for bounding box", OFFSET(min_val), AV_OPT_TYPE_INT, { .i64 = 16 }, 0, UINT16_MAX, FLAGS }, { "min_val", "set minimum luminance value for bounding box", OFFSET(min_val), AV_OPT_TYPE_INT, { .i64 = 16 }, 0, UINT16_MAX, FLAGS },
@ -162,4 +162,5 @@ AVFilter ff_vf_bbox = {
.inputs = bbox_inputs, .inputs = bbox_inputs,
.outputs = bbox_outputs, .outputs = bbox_outputs,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
.process_command = ff_filter_process_command,
}; };