forked from FFmpeg/FFmpeg
avfilter/vf_deinterlace_qsv: Store format in filter, remove query func
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f41708eb3a
commit
3b0926457f
1 changed files with 1 additions and 10 deletions
|
@ -103,15 +103,6 @@ static av_cold void qsvdeint_uninit(AVFilterContext *ctx)
|
||||||
s->nb_surface_ptrs = 0;
|
s->nb_surface_ptrs = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int qsvdeint_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 mfxStatus frame_alloc(mfxHDL pthis, mfxFrameAllocRequest *req,
|
static mfxStatus frame_alloc(mfxHDL pthis, mfxFrameAllocRequest *req,
|
||||||
mfxFrameAllocResponse *resp)
|
mfxFrameAllocResponse *resp)
|
||||||
{
|
{
|
||||||
|
@ -604,7 +595,7 @@ const AVFilter ff_vf_deinterlace_qsv = {
|
||||||
|
|
||||||
FILTER_INPUTS(qsvdeint_inputs),
|
FILTER_INPUTS(qsvdeint_inputs),
|
||||||
FILTER_OUTPUTS(qsvdeint_outputs),
|
FILTER_OUTPUTS(qsvdeint_outputs),
|
||||||
FILTER_QUERY_FUNC(qsvdeint_query_formats),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_QSV),
|
||||||
|
|
||||||
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue