[gegl] lohalo: sensible speed/quality compromise
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] lohalo: sensible speed/quality compromise
- Date: Sat, 22 Dec 2012 23:37:02 +0000 (UTC)
commit 80a017460f8ed6dfe1830cc9bc8433bcc2d3f75a
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Sat Dec 22 18:36:54 2012 -0500
lohalo: sensible speed/quality compromise
gegl/buffer/gegl-sampler-lohalo.c | 4 ++--
gegl/buffer/gegl-sampler.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index 52897b9..6ff883a 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -390,7 +390,7 @@ gegl_sampler_lohalo_class_init (GeglSamplerLohaloClass *klass)
/*
* IMPORTANT: LOHALO_OFFSET_0 SHOULD BE AN INTEGER >= 2.
*/
-#define LOHALO_OFFSET_0 (13)
+#define LOHALO_OFFSET_0 (8)
#define LOHALO_SIZE_0 (1+2*LOHALO_OFFSET_0)
/*
@@ -403,7 +403,7 @@ gegl_sampler_lohalo_class_init (GeglSamplerLohaloClass *klass)
* mipmap level's offset should almost never be smaller than half the
* previous level's offset.
*/
-#define LOHALO_OFFSET_MIPMAP (13)
+#define LOHALO_OFFSET_MIPMAP (8)
#define LOHALO_SIZE_MIPMAP (1+2*LOHALO_OFFSET_MIPMAP)
#define LOHALO_OFFSET_1 LOHALO_OFFSET_MIPMAP
diff --git a/gegl/buffer/gegl-sampler.c b/gegl/buffer/gegl-sampler.c
index 528c60e..75c07d3 100644
--- a/gegl/buffer/gegl-sampler.c
+++ b/gegl/buffer/gegl-sampler.c
@@ -273,7 +273,7 @@ gegl_sampler_get_ptr (GeglSampler *const sampler,
fetch_rectangle.height = maximum_height;
fetch_rectangle.x =
x + sampler->context_rect[0].x -
- (maximum_width - sampler->context_rect[0].width ) / (gint) 16;
+ (maximum_width - sampler->context_rect[0].width ) / (gint) 2;
fetch_rectangle.y =
y + sampler->context_rect[0].y -
(maximum_height - sampler->context_rect[0].height) / (gint) 2;
@@ -346,7 +346,7 @@ gegl_sampler_get_from_buffer (GeglSampler *const sampler,
fetch_rectangle.width = maximum_width;
fetch_rectangle.height = maximum_height;
fetch_rectangle.x = x -
- (maximum_width - sampler->context_rect[0].width ) / (gint) 16;
+ (maximum_width - sampler->context_rect[0].width ) / (gint) 2;
fetch_rectangle.y = y -
(maximum_height - sampler->context_rect[0].height) / (gint) 2;
@@ -427,7 +427,7 @@ gegl_sampler_get_from_mipmap (GeglSampler *const sampler,
fetch_rectangle.height = maximum_height;
fetch_rectangle.x =
x + sampler->context_rect[level].x -
- (maximum_width - sampler->context_rect[level].width ) / (gint) 16;
+ (maximum_width - sampler->context_rect[level].width ) / (gint) 2;
fetch_rectangle.y =
y + sampler->context_rect[level].y -
(maximum_height - sampler->context_rect[level].height) / (gint) 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]