[gimp/gimp-2-8] Revert "app: properly sample lanczos kernel luts"
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Revert "app: properly sample lanczos kernel luts"
- Date: Tue, 28 Apr 2015 05:31:11 +0000 (UTC)
commit 8754a060bdf76d0bd9af4542af5fc3009c4a2f8f
Author: Massimo Valentini <mvalentini src gnome org>
Date: Tue Apr 28 07:18:41 2015 +0200
Revert "app: properly sample lanczos kernel luts"
This reverts commit 7172911becb8f6ce1ded151dd113d727cad0d811.
see Bug 748536 for an explanation.
app/paint-funcs/scale-region.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/paint-funcs/scale-region.c b/app/paint-funcs/scale-region.c
index 3a7c337..e98b8ec 100644
--- a/app/paint-funcs/scale-region.c
+++ b/app/paint-funcs/scale-region.c
@@ -902,7 +902,7 @@ sinc (const gdouble x)
gfloat *
create_lanczos_lookup (void)
{
- const gdouble dx = LANCZOS_MIN;
+ const gdouble dx = LANCZOS_WIDTH / (gdouble) (LANCZOS_SAMPLES - 1);
gfloat *lookup = g_new (gfloat, LANCZOS_SAMPLES);
gdouble x = 0.0;
@@ -921,7 +921,7 @@ create_lanczos_lookup (void)
static gfloat *
create_lanczos3_lookup (void)
{
- const gdouble dx = LANCZOS_MIN;
+ const gdouble dx = 3.0 / (gdouble) (LANCZOS_SAMPLES - 1);
gfloat *lookup = g_new (gfloat, LANCZOS_SAMPLES);
gdouble x = 0.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]