mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
avfilter/vf_transpose_npp: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
34d822c82d
commit
b3ab22d88b
@ -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,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user