From 4d43a0c99788f4f2028d680d122e11d265a0ea10 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Dec 2015 18:37:03 +0100 Subject: filter_kernels: use more precise parameters for robidoux filters See #2637. --- video/out/filter_kernels.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index d39e5ba4c5..db82c16283 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -372,10 +372,16 @@ const struct filter_kernel mp_filter_kernels[] = { {{"bcspline", 2, cubic_bc, .params = {0.5, 0.5} }}, {{"catmull_rom", 2, cubic_bc, .params = {0.0, 0.5} }}, {{"mitchell", 2, cubic_bc, .params = {1.0/3.0, 1.0/3.0} }}, - {{"robidoux", 2, cubic_bc, .params = {0.3782, 0.3109} }}, - {{"robidouxsharp", 2, cubic_bc, .params = {0.2620, 0.3690} }}, - {{"ewa_robidoux", 2, cubic_bc, .params = {0.3782, 0.3109}}, .polar = true}, - {{"ewa_robidouxsharp", 2, cubic_bc, .params = {0.2620, 0.3690}}, .polar = true}, + {{"robidoux", 2, cubic_bc, .params = {12 / (19 + 9 * M_SQRT2), + 113 / (58 + 216 * M_SQRT2)} }}, + {{"robidouxsharp", 2, cubic_bc, .params = {6 / (13 + 7 * M_SQRT2), + 7 / (2 + 12 * M_SQRT2)} }}, + {{"ewa_robidoux", 2, cubic_bc, .params = {12 / (19 + 9 * M_SQRT2), + 113 / (58 + 216 * M_SQRT2)}}, + .polar = true}, + {{"ewa_robidouxsharp", 2,cubic_bc, .params = {6 / (13 + 7 * M_SQRT2), + 7 / (2 + 12 * M_SQRT2)}}, + .polar = true}, // Miscellaneous filters {{"box", 1, box, .resizable = true}}, {{"nearest", 0.5, box}}, -- cgit v1.2.3