summaryrefslogtreecommitdiff
path: root/libavfilter/vf_transpose_npp.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 22:46:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:28 +0200
commitb3ab22d88bd1d8f0d1296d6fbc538f3e168ace80 (patch)
tree8fdbdd424c3685a018cad4ba2cdccd4d5a89a64c /libavfilter/vf_transpose_npp.c
parent34d822c82d78659d7217c9873d119746ed4b8202 (diff)
avfilter/vf_transpose_npp: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_transpose_npp.c')
-rw-r--r--libavfilter/vf_transpose_npp.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_transpose_npp.c b/libavfilter/vf_transpose_npp.c
index b05c07f29d..047c200096 100644
--- a/libavfilter/vf_transpose_npp.c
+++ b/libavfilter/vf_transpose_npp.c
@@ -111,15 +111,6 @@ static void npptranspose_uninit(AVFilterContext *ctx)
av_frame_free(&s->tmp_frame);
}
-static int npptranspose_query_formats(AVFilterContext *ctx)
-{
- static const enum AVPixelFormat pixel_formats[] = {
- AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,
- };
-
- return ff_set_common_formats_from_list(ctx, pixel_formats);
-}
-
static int init_stage(NPPTransposeStageContext *stage, AVBufferRef *device_ctx)
{
AVBufferRef *out_ref = NULL;
@@ -479,6 +470,6 @@ const AVFilter ff_vf_transpose_npp = {
.priv_class = &npptranspose_class,
FILTER_INPUTS(npptranspose_inputs),
FILTER_OUTPUTS(npptranspose_outputs),
- FILTER_QUERY_FUNC(npptranspose_query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA),
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
};