summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Robidoux <nrobidoux@git.gnome.org>2013-01-05 12:56:05 -0500
committerNicolas Robidoux <nrobidoux@git.gnome.org>2013-01-05 12:56:05 -0500
commit2dad395f129536c2937d202a26483f1bd6d4fc3b (patch)
treeaf54abfd11bdb010fa838baf93146c4fc3909d1b
parentfa34652e3143175ca68440fed3ba848b517280c0 (diff)
samplers: slightly larger context_rect for top quality when downsampling
-rw-r--r--gegl/buffer/gegl-sampler-lohalo.c4
-rw-r--r--gegl/buffer/gegl-sampler-nohalo.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index 22224f82..c7f01c41 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -333,7 +333,7 @@ gegl_sampler_lohalo_class_init (GeglSamplerLohaloClass *klass)
/*
* IMPORTANT: LOHALO_OFFSET_0 SHOULD BE AN INTEGER >= 2.
*/
-#define LOHALO_OFFSET_0 (11)
+#define LOHALO_OFFSET_0 (13)
#define LOHALO_SIZE_0 (1+2*LOHALO_OFFSET_0)
/*
@@ -346,7 +346,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 (11)
+#define LOHALO_OFFSET_MIPMAP (13)
#define LOHALO_SIZE_MIPMAP (1+2*LOHALO_OFFSET_MIPMAP)
#define LOHALO_OFFSET_1 LOHALO_OFFSET_MIPMAP
diff --git a/gegl/buffer/gegl-sampler-nohalo.c b/gegl/buffer/gegl-sampler-nohalo.c
index e727de7e..a4ac3734 100644
--- a/gegl/buffer/gegl-sampler-nohalo.c
+++ b/gegl/buffer/gegl-sampler-nohalo.c
@@ -410,7 +410,7 @@ gegl_sampler_nohalo_class_init (GeglSamplerNohaloClass *klass)
/*
* IMPORTANT: NOHALO_OFFSET_0 SHOULD BE AN INTEGER >= 2.
*/
-#define NOHALO_OFFSET_0 (11)
+#define NOHALO_OFFSET_0 (13)
#define NOHALO_SIZE_0 (1+2*NOHALO_OFFSET_0)
/*
@@ -423,7 +423,7 @@ gegl_sampler_nohalo_class_init (GeglSamplerNohaloClass *klass)
* mipmap level's offset should almost never be smaller than half the
* previous level's offset.
*/
-#define NOHALO_OFFSET_MIPMAP (11)
+#define NOHALO_OFFSET_MIPMAP (13)
#define NOHALO_SIZE_MIPMAP (1+2*NOHALO_OFFSET_MIPMAP)
#define NOHALO_OFFSET_1 NOHALO_OFFSET_MIPMAP