mirror of https://git.ffmpeg.org/ffmpeg.git
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);
|
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)
|
static int nppsharpen_config_props(AVFilterLink* outlink)
|
||||||
{
|
{
|
||||||
AVFilterLink* inlink = outlink->src->inputs[0];
|
AVFilterLink* inlink = outlink->src->inputs[0];
|
||||||
|
@ -274,7 +265,7 @@ const AVFilter ff_vf_sharpen_npp = {
|
||||||
|
|
||||||
FILTER_INPUTS(nppsharpen_inputs),
|
FILTER_INPUTS(nppsharpen_inputs),
|
||||||
FILTER_OUTPUTS(nppsharpen_outputs),
|
FILTER_OUTPUTS(nppsharpen_outputs),
|
||||||
FILTER_QUERY_FUNC(nppsharpen_query_formats),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA),
|
||||||
|
|
||||||
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue