|
|
|
@ -310,8 +310,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) |
|
|
|
|
return ff_filter_frame(ctx->outputs[0], frame); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static av_cold int query_formats(AVFilterContext *ctx) |
|
|
|
|
{ |
|
|
|
|
static const enum AVPixelFormat pixel_fmts[] = { |
|
|
|
|
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24, |
|
|
|
|
AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA, |
|
|
|
@ -327,9 +325,6 @@ static av_cold int query_formats(AVFilterContext *ctx) |
|
|
|
|
AV_PIX_FMT_NONE |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return ff_set_common_formats_from_list(ctx, pixel_fmts); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static av_cold int config_input(AVFilterLink *inlink) |
|
|
|
|
{ |
|
|
|
|
AVFilterContext *ctx = inlink->dst; |
|
|
|
@ -394,7 +389,7 @@ const AVFilter ff_vf_colorcontrast = { |
|
|
|
|
.priv_class = &colorcontrast_class, |
|
|
|
|
FILTER_INPUTS(colorcontrast_inputs), |
|
|
|
|
FILTER_OUTPUTS(colorcontrast_outputs), |
|
|
|
|
FILTER_QUERY_FUNC(query_formats), |
|
|
|
|
FILTER_PIXFMTS_ARRAY(pixel_fmts), |
|
|
|
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
|
|
|
|
.process_command = ff_filter_process_command, |
|
|
|
|
}; |
|
|
|
|