|
|
@ -67,8 +67,6 @@ static const AVOption mestimate_options[] = { |
|
|
|
|
|
|
|
|
|
|
|
AVFILTER_DEFINE_CLASS(mestimate); |
|
|
|
AVFILTER_DEFINE_CLASS(mestimate); |
|
|
|
|
|
|
|
|
|
|
|
static int query_formats(AVFilterContext *ctx) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
static const enum AVPixelFormat pix_fmts[] = { |
|
|
|
static const enum AVPixelFormat pix_fmts[] = { |
|
|
|
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, |
|
|
|
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, |
|
|
|
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, |
|
|
|
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, |
|
|
@ -81,9 +79,6 @@ static int query_formats(AVFilterContext *ctx) |
|
|
|
AV_PIX_FMT_NONE |
|
|
|
AV_PIX_FMT_NONE |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return ff_set_common_formats_from_list(ctx, pix_fmts); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int config_input(AVFilterLink *inlink) |
|
|
|
static int config_input(AVFilterLink *inlink) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MEContext *s = inlink->dst->priv; |
|
|
|
MEContext *s = inlink->dst->priv; |
|
|
@ -370,5 +365,5 @@ const AVFilter ff_vf_mestimate = { |
|
|
|
.uninit = uninit, |
|
|
|
.uninit = uninit, |
|
|
|
FILTER_INPUTS(mestimate_inputs), |
|
|
|
FILTER_INPUTS(mestimate_inputs), |
|
|
|
FILTER_OUTPUTS(mestimate_outputs), |
|
|
|
FILTER_OUTPUTS(mestimate_outputs), |
|
|
|
FILTER_QUERY_FUNC(query_formats), |
|
|
|
FILTER_PIXFMTS_ARRAY(pix_fmts), |
|
|
|
}; |
|
|
|
}; |
|
|
|