|
|
@ -143,14 +143,6 @@ static void nppscale_uninit(AVFilterContext *ctx) |
|
|
|
av_frame_free(&s->tmp_frame); |
|
|
|
av_frame_free(&s->tmp_frame); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int nppscale_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 init_stage(NPPScaleStageContext *stage, AVBufferRef *device_ctx) |
|
|
|
static int init_stage(NPPScaleStageContext *stage, AVBufferRef *device_ctx) |
|
|
|
{ |
|
|
|
{ |
|
|
|
AVBufferRef *out_ref = NULL; |
|
|
|
AVBufferRef *out_ref = NULL; |
|
|
@ -601,7 +593,7 @@ const AVFilter ff_vf_scale_npp = { |
|
|
|
FILTER_INPUTS(nppscale_inputs), |
|
|
|
FILTER_INPUTS(nppscale_inputs), |
|
|
|
FILTER_OUTPUTS(nppscale_outputs), |
|
|
|
FILTER_OUTPUTS(nppscale_outputs), |
|
|
|
|
|
|
|
|
|
|
|
FILTER_QUERY_FUNC(nppscale_query_formats), |
|
|
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA), |
|
|
|
|
|
|
|
|
|
|
|
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, |
|
|
|
.flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, |
|
|
|
}; |
|
|
|
}; |
|
|
|