[gegl] really really add a third (fourth if counted from 0) mipmap level
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] really really add a third (fourth if counted from 0) mipmap level
- Date: Fri, 14 Dec 2012 04:04:56 +0000 (UTC)
commit 64c54c1defea156cf268cbe651341187e7b29e89
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Thu Dec 13 23:04:51 2012 -0500
really really add a third (fourth if counted from 0) mipmap level
gegl/buffer/gegl-sampler-lohalo.c | 10 +++++-----
gegl/buffer/gegl-sampler.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index 7e6b462..f562142 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -331,7 +331,7 @@ gegl_sampler_lohalo_class_init (GeglSamplerLohaloClass *klass)
* They are maxed out: It appears that there is little overall speed
* benefit to keeping them small.
*/
-#define LOHALO_OFFSET_1 (31)
+#define LOHALO_OFFSET_1 (14)
#define LOHALO_SIZE_1 ( 1 + 2 * LOHALO_OFFSET_1 )
#define LOHALO_OFFSET_2 (31)
@@ -362,10 +362,10 @@ gegl_sampler_lohalo_init (GeglSamplerLohalo *self)
GEGL_SAMPLER (self)->context_rect[2].width = LOHALO_SIZE_2;
GEGL_SAMPLER (self)->context_rect[2].height = LOHALO_SIZE_2;
- GEGL_SAMPLER (self)->context_rect[2].x = -LOHALO_OFFSET_3;
- GEGL_SAMPLER (self)->context_rect[2].y = -LOHALO_OFFSET_3;
- GEGL_SAMPLER (self)->context_rect[2].width = LOHALO_SIZE_3;
- GEGL_SAMPLER (self)->context_rect[2].height = LOHALO_SIZE_3;
+ GEGL_SAMPLER (self)->context_rect[3].x = -LOHALO_OFFSET_3;
+ GEGL_SAMPLER (self)->context_rect[3].y = -LOHALO_OFFSET_3;
+ GEGL_SAMPLER (self)->context_rect[3].width = LOHALO_SIZE_3;
+ GEGL_SAMPLER (self)->context_rect[3].height = LOHALO_SIZE_3;
GEGL_SAMPLER (self)->interpolate_format = babl_format ("RaGaBaA float");
}
diff --git a/gegl/buffer/gegl-sampler.h b/gegl/buffer/gegl-sampler.h
index 49fff3c..72563be 100644
--- a/gegl/buffer/gegl-sampler.h
+++ b/gegl/buffer/gegl-sampler.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
#define GEGL_IS_SAMPLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_SAMPLER))
#define GEGL_IS_SAMPLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_SAMPLER))
#define GEGL_SAMPLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_SAMPLER, GeglSamplerClass))
-#define GEGL_SAMPLER_MIPMAP_LEVELS 3
+#define GEGL_SAMPLER_MIPMAP_LEVELS 4
typedef struct _GeglSamplerClass GeglSamplerClass;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]