|
|
|
@ -48,7 +48,7 @@ typedef struct ColorLevelsContext { |
|
|
|
|
} ColorLevelsContext; |
|
|
|
|
|
|
|
|
|
#define OFFSET(x) offsetof(ColorLevelsContext, 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 colorlevels_options[] = { |
|
|
|
|
{ "rimin", "set input red black point", OFFSET(range[R].in_min), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -1, 1, FLAGS }, |
|
|
|
|
{ "gimin", "set input green black point", OFFSET(range[G].in_min), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -1, 1, FLAGS }, |
|
|
|
@ -325,4 +325,5 @@ AVFilter ff_vf_colorlevels = { |
|
|
|
|
.inputs = colorlevels_inputs, |
|
|
|
|
.outputs = colorlevels_outputs, |
|
|
|
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
|
|
|
|
.process_command = ff_filter_process_command, |
|
|
|
|
}; |
|
|
|
|