summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-26 18:37:03 +0100
committerwm4 <wm4@nowhere>2015-12-26 18:37:03 +0100
commit4d43a0c99788f4f2028d680d122e11d265a0ea10 (patch)
treed63c442c4b484b2b0da90587d4d7d17f50b9549e
parentb637d6366cfe858accba02c9e50046a6acb81493 (diff)
downloadmpv-4d43a0c99788f4f2028d680d122e11d265a0ea10.tar.bz2
mpv-4d43a0c99788f4f2028d680d122e11d265a0ea10.tar.xz
filter_kernels: use more precise parameters for robidoux filters
See #2637.
-rw-r--r--video/out/filter_kernels.c14
1 files 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}},