mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter/vf_scale_qsv: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b3ab22d88b
commit
6c73543623
@ -156,15 +156,6 @@ static av_cold void qsvscale_uninit(AVFilterContext *ctx)
|
|||||||
s->nb_surface_ptrs_out = 0;
|
s->nb_surface_ptrs_out = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int qsvscale_query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
static const enum AVPixelFormat pixel_formats[] = {
|
|
||||||
AV_PIX_FMT_QSV, AV_PIX_FMT_NONE,
|
|
||||||
};
|
|
||||||
|
|
||||||
return ff_set_common_formats_from_list(ctx, pixel_formats);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int init_out_pool(AVFilterContext *ctx,
|
static int init_out_pool(AVFilterContext *ctx,
|
||||||
int out_width, int out_height)
|
int out_width, int out_height)
|
||||||
{
|
{
|
||||||
@ -678,7 +669,7 @@ const AVFilter ff_vf_scale_qsv = {
|
|||||||
FILTER_INPUTS(qsvscale_inputs),
|
FILTER_INPUTS(qsvscale_inputs),
|
||||||
FILTER_OUTPUTS(qsvscale_outputs),
|
FILTER_OUTPUTS(qsvscale_outputs),
|
||||||
|
|
||||||
FILTER_QUERY_FUNC(qsvscale_query_formats),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_QSV),
|
||||||
|
|
||||||
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user