mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_thumbnail_cuda: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
dc57da3b1a
commit
5237a29d05
@ -412,15 +412,6 @@ static int config_props(AVFilterLink *inlink)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVPixelFormat pix_fmts[] = {
|
||||
AV_PIX_FMT_CUDA,
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
||||
}
|
||||
|
||||
static const AVFilterPad thumbnail_cuda_inputs[] = {
|
||||
{
|
||||
.name = "default",
|
||||
@ -446,7 +437,7 @@ const AVFilter ff_vf_thumbnail_cuda = {
|
||||
.uninit = uninit,
|
||||
FILTER_INPUTS(thumbnail_cuda_inputs),
|
||||
FILTER_OUTPUTS(thumbnail_cuda_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA),
|
||||
.priv_class = &thumbnail_cuda_class,
|
||||
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user