[gegl/samplers-api-rework] buffer: removed unusued sampler_set_scale



commit caa58b394363d8090124225ece2b2802086dfa98
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Sun Jul 3 17:42:43 2011 +0100

    buffer: removed unusued sampler_set_scale

 gegl/buffer/gegl-buffer.h |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer.h b/gegl/buffer/gegl-buffer.h
index 95ec36d..9b3bb84 100644
--- a/gegl/buffer/gegl-buffer.h
+++ b/gegl/buffer/gegl-buffer.h
@@ -375,16 +375,23 @@ GeglSamplerType gegl_sampler_type_from_string (const gchar *string);
  * @format: format we want data back in
  * @interpolation: resampling method to create a sampler for.
  *
- * Create a new sampler.
+ * Create a new sampler, when you are done with the sampler, g_object_unref
+ * it.
  */
 GeglSampler *
 gegl_buffer_sampler_new (GeglBuffer       *buffer,
                          Babl             *format,
                          GeglSamplerType   sampler_type);
 
-void  gegl_sampler_set_scale   (GeglSampler *self,
-                                GeglMatrix2 *scale);
-void  gegl_sampler_get         (GeglSampler *self,
+/**
+ * gegl_sampler_get:
+ * @sampler: a GeglSampler gotten from gegl_buffer_sampler_new
+ * @x: x coordinate to sample
+ * @y: y coordinate to sample
+ * @scale: matrix representing extent of sampling area in source buffer.
+ * @output: memory location for output data.
+ */
+void  gegl_sampler_get         (GeglSampler *sampler,
                                 gdouble      x,
                                 gdouble      y,
                                 GeglMatrix2 *scale,



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