[gegl] lohalo: add mipmap level 1 info to init



commit 5c47341d4703f23a4f3f9dd93193636286613025
Author: Nicolas Robidoux <nicolas robidoux gmail com>
Date:   Thu Jun 30 07:58:06 2011 -0400

    lohalo: add mipmap level 1 info to init

 gegl/buffer/gegl-sampler-lohalo.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index 81e2be7..b23aeec 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -315,8 +315,8 @@ gegl_sampler_lohalo_class_init (GeglSamplerLohaloClass *klass)
 #define LOHALO_SIZE_1 ( 1 + 2 * LOHALO_OFFSET_1 )
 
 /*
- * ADAM: THE WAY I (NICOLAS) SET UP JACOBIAN-ADAPTIVITY, LEVEL 0
- * SHOULD ALWAYS BE "ON." NOT THE HIGHER LEVELS.
+ * Lohalo always uses some mipmap level 0 values, but not always
+ * higher mipmap values.
  */
 static void
 gegl_sampler_lohalo_init (GeglSamplerLohalo *self)
@@ -325,6 +325,10 @@ gegl_sampler_lohalo_init (GeglSamplerLohalo *self)
   GEGL_SAMPLER (self)->context_rect[0].y = -LOHALO_OFFSET;
   GEGL_SAMPLER (self)->context_rect[0].width  = LOHALO_SIZE;
   GEGL_SAMPLER (self)->context_rect[0].height = LOHALO_SIZE;
+  GEGL_SAMPLER (self)->context_rect[1].x = -LOHALO_OFFSET_1;
+  GEGL_SAMPLER (self)->context_rect[1].y = -LOHALO_OFFSET_1;
+  GEGL_SAMPLER (self)->context_rect[1].width  = LOHALO_SIZE_1;
+  GEGL_SAMPLER (self)->context_rect[1].height = LOHALO_SIZE_1;
   GEGL_SAMPLER (self)->interpolate_format = babl_format ("RaGaBaA float");
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]