You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +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:
@@ -111,15 +111,6 @@ static void npptranspose_uninit(AVFilterContext *ctx)
|
|||||||
av_frame_free(&s->tmp_frame);
|
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)
|
static int init_stage(NPPTransposeStageContext *stage, AVBufferRef *device_ctx)
|
||||||
{
|
{
|
||||||
AVBufferRef *out_ref = NULL;
|
AVBufferRef *out_ref = NULL;
|
||||||
@@ -479,6 +470,6 @@ const AVFilter ff_vf_transpose_npp = {
|
|||||||
.priv_class = &npptranspose_class,
|
.priv_class = &npptranspose_class,
|
||||||
FILTER_INPUTS(npptranspose_inputs),
|
FILTER_INPUTS(npptranspose_inputs),
|
||||||
FILTER_OUTPUTS(npptranspose_outputs),
|
FILTER_OUTPUTS(npptranspose_outputs),
|
||||||
FILTER_QUERY_FUNC(npptranspose_query_formats),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA),
|
||||||
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user