diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 16:25:56 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 19:58:09 +0300 |
commit | 29ffdd7848854817eb0374cbe5639a393417d759 (patch) | |
tree | 15467335853131bbf2dd39adc057fe12d599aa8c | |
parent | b02929b70c49dc5cdc4abe559daef6eafa0090ed (diff) |
avfilter/vf_coreimage: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_coreimage.m | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/libavfilter/vf_coreimage.m b/libavfilter/vf_coreimage.m index 4e1f89ee71..5b025c2388 100644 --- a/libavfilter/vf_coreimage.m +++ b/libavfilter/vf_coreimage.m @@ -135,16 +135,6 @@ 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 int apply_filter(CoreImageContext *ctx, AVFilterLink *link, AVFrame *frame) { int i; @@ -629,7 +619,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 +640,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), }; |