[gegl/samplers] mipmap level 1 progress
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/samplers] mipmap level 1 progress
- Date: Wed, 22 Jun 2011 21:28:10 +0000 (UTC)
commit c3fefc6739223b6355ea156b284ee3ccee4f1e25
Author: Nicolas Robidoux <nicolas robidoux gmail com>
Date: Wed Jun 22 17:28:06 2011 -0400
mipmap level 1 progress
gegl/buffer/gegl-sampler-lohalo.c | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index 506ca14..71d8012 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -2098,11 +2098,25 @@ gegl_sampler_lohalo_get ( GeglSampler* restrict self,
*/
/*
- * Find the nearest mipmap anchor pixel location:
+ * Nearest mipmap anchor pixel location:
*/
- gint const ix_1 = LOHALO_FLOORED_DIVISION_BY_2(ix_0);
- gint const iy_1 = LOHALO_FLOORED_DIVISION_BY_2(iy_0);
+ const gint ix_1 = LOHALO_FLOORED_DIVISION_BY_2(ix_0);
+ const gint iy_1 = LOHALO_FLOORED_DIVISION_BY_2(iy_0);
+ /*
+ * ADAM: THE POINTER GET NEEDS TO BE HERE.
+ */
+
+ /*
+ * Position of the sampling location in the coordinate
+ * system defined by the mipmap "pixel locations" relative
+ * to the level 1 anchor pixel location:
+ */
+ const gfloat x_1 =
+ (gfloat) ( ix_0 - 2 * ix_1 ) + (gfloat) 0.5 + x_0;
+ const gfloat y_1 =
+ (gfloat) ( iy_0 - 2 * iy_1 ) + (gfloat) 0.5 + y_0;
+
/* gint I = */
/* do */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]