From dc3c718b376dfdc2f3d0da9e7fee5efe0ca6840f Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 24 Feb 2015 01:35:14 +0100 Subject: filter_kernels: add robidoux and robidouxsharp These are EWA-based versions of the keys B/C splines, of which mitchell is already a member. They are slightly softer and slightly sharper than mitchell, respectively. Very easy to define in terms of things we already have. --- video/out/filter_kernels.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index e5c7f877fd..75b7b50b0d 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -326,6 +326,8 @@ const struct filter_kernel mp_filter_kernels[] = { {"catmull_rom", 2, cubic_bc, .params = {0.0, 0.5} }, {"mitchell", 2, cubic_bc, .params = {1.0/3.0, 1.0/3.0} }, {"hermite", 1, cubic_bc, .params = {0.0, 0.0} }, + {"robidoux", 2, cubic_bc, .params = {0.3782, 0.3109}, .polar = true}, + {"robidouxsharp", 2, cubic_bc, .params = {0.2620, 0.3690}, .polar = true}, {"spline16", 2, spline16}, {"spline36", 3, spline36}, {"spline64", 4, spline64}, -- cgit v1.2.3