@@ -135,15 +135,10 @@ static void list_filters(CoreImageContext *ctx)
}
}
-static int query_formats(AVFilterContext *fctx)
-{
- static const enum AVPixelFormat inout_fmts_rgb[] = {
- AV_PIX_FMT_ARGB,
- AV_PIX_FMT_NONE
- };
-
- return ff_set_common_formats_from_list(fctx, inout_fmts_rgb);
-}
+static const enum AVPixelFormat inout_fmts_rgb[] = {
+ AV_PIX_FMT_ARGB,
+ AV_PIX_FMT_NONE
+};
static int apply_filter(CoreImageContext *ctx, AVFilterLink *link, AVFrame *frame)
{
@@ -629,7 +624,7 @@ const AVFilter ff_vf_coreimage = {
.priv_class = &coreimage_class,
FILTER_INPUTS(vf_coreimage_inputs),
FILTER_OUTPUTS(vf_coreimage_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_ARGB),
};
// definitions for coreimagesrc video source
@@ -650,5 +645,5 @@ const AVFilter ff_vsrc_coreimagesrc = {
.priv_class = &coreimagesrc_class,
.inputs = NULL,
FILTER_OUTPUTS(vsrc_coreimagesrc_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_ARGB),
};
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavfilter/vf_coreimage.m | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-)