Unified · Split
| @@ -145,15 +145,6 @@ static av_cold void cudascale_uninit(AVFilterContext *ctx) · 144 unmodified lines | ||
| 145 | 145 | av_frame_free(&s->tmp_frame); |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | −static int cudascale_query_formats(AVFilterContext *ctx) | |
| 149 | −{ | |
| 150 | − static const enum AVPixelFormat pixel_formats[] = { | |
| 151 | − AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE, | |
| 152 | − }; | |
| 153 | − | |
| 154 | − return ff_set_common_formats_from_list(ctx, pixel_formats); | |
| 155 | −} | |
| 156 | − | |
| 157 | 148 | static av_cold int init_hwframe_ctx(CUDAScaleContext *s, AVBufferRef *device_ctx, int width, int height) |
| 158 | 149 | { |
| 159 | 150 | AVBufferRef *out_ref = NULL; |
| @@ -648,7 +639,7 @@ const AVFilter ff_vf_scale_cuda = { · 488 unmodified lines | ||
| 648 | 639 | FILTER_INPUTS(cudascale_inputs), |
| 649 | 640 | FILTER_OUTPUTS(cudascale_outputs), |
| 650 | 641 | |
| 651 | − FILTER_QUERY_FUNC(cudascale_query_formats), | |
| 642 | + FILTER_SINGLE_PIXFMT(AV_PIX_FMT_CUDA), | |
| 652 | 643 | |
| 653 | 644 | .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, |
| 654 | 645 | }; |