Unified · Split
| @@ -61,8 +61,6 @@ typedef struct DeblockContext { · 60 unmodified lines | ||
| 61 | 61 | int ath, int bth, int gth, int dth, int max); |
| 62 | 62 | } DeblockContext; |
| 63 | 63 | |
| 64 | −static int query_formats(AVFilterContext *ctx) | |
| 65 | −{ | |
| 66 | 64 | static const enum AVPixelFormat pixel_fmts[] = { |
| 67 | 65 | AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, |
| 68 | 66 | AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, |
| @@ -84,8 +82,6 @@ static int query_formats(AVFilterContext *ctx) · 15 unmodified lines | ||
| 84 | 82 | AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16, |
| 85 | 83 | AV_PIX_FMT_NONE |
| 86 | 84 | }; |
| 87 | − return ff_set_common_formats_from_list(ctx, pixel_fmts); | |
| 88 | −} | |
| 89 | 85 | |
| 90 | 86 | #define WEAK_HFILTER(name, type, ldiv) \ |
| 91 | 87 | static void deblockh##name##_weak(uint8_t *dstp, ptrdiff_t dst_linesize, int block, \ |
| @@ -417,7 +413,7 @@ const AVFilter ff_vf_deblock = { · 325 unmodified lines | ||
| 417 | 413 | .priv_class = &deblock_class, |
| 418 | 414 | FILTER_INPUTS(inputs), |
| 419 | 415 | FILTER_OUTPUTS(outputs), |
| 420 | − FILTER_QUERY_FUNC(query_formats), | |
| 416 | + FILTER_PIXFMTS_ARRAY(pixel_fmts), | |
| 421 | 417 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
| 422 | 418 | .process_command = process_command, |
| 423 | 419 | }; |