mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avfilter/sharpen_npp: use FILTER_SINGLE_PIXFMT
This commit is contained in:
parent
7529781ba8
commit
1831fa7278
@ -131,15 +131,6 @@ static void nppsharpen_uninit(AVFilterContext* ctx)
|
||||
av_frame_free(&s->tmp_frame);
|
||||
}
|
||||
|
||||
static int nppsharpen_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 nppsharpen_config_props(AVFilterLink* outlink)
|
||||
{
|
||||
AVFilterLink* inlink = outlink->src->inputs[0];
|
||||
@ -274,7 +265,7 @@ const AVFilter ff_vf_sharpen_npp = {
|
||||
|
||||
FILTER_INPUTS(nppsharpen_inputs),
|
||||
FILTER_OUTPUTS(nppsharpen_outputs),
|
||||
FILTER_QUERY_FUNC(nppsharpen_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