[gimp] app: specify proper BABL format for legacy point filters
- From: Simon Budig <simon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: specify proper BABL format for legacy point filters
- Date: Thu, 29 Mar 2012 01:16:52 +0000 (UTC)
commit 17729bf6af7e0487befab713683f371249d822dc
Author: Simon Budig <simon budig de>
Date: Thu Mar 29 03:16:06 2012 +0200
app: specify proper BABL format for legacy point filters
app/gegl/gimpoperationpointfilter.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/app/gegl/gimpoperationpointfilter.c b/app/gegl/gimpoperationpointfilter.c
index 9bbb55f..b13076a 100644
--- a/app/gegl/gimpoperationpointfilter.c
+++ b/app/gegl/gimpoperationpointfilter.c
@@ -27,7 +27,8 @@
#include "gimpoperationpointfilter.h"
-static void gimp_operation_point_filter_finalize (GObject *object);
+static void gimp_operation_point_filter_finalize (GObject *object);
+static void gimp_operation_point_filter_prepare (GeglOperation *operation);
G_DEFINE_ABSTRACT_TYPE (GimpOperationPointFilter, gimp_operation_point_filter,
@@ -39,9 +40,12 @@ G_DEFINE_ABSTRACT_TYPE (GimpOperationPointFilter, gimp_operation_point_filter,
static void
gimp_operation_point_filter_class_init (GimpOperationPointFilterClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
object_class->finalize = gimp_operation_point_filter_finalize;
+
+ operation_class->prepare = gimp_operation_point_filter_prepare;
}
static void
@@ -104,3 +108,14 @@ gimp_operation_point_filter_set_property (GObject *object,
break;
}
}
+
+static void
+gimp_operation_point_filter_prepare (GeglOperation *operation)
+{
+ const Babl *format;
+
+ format = babl_format ("R'G'B'A float");
+
+ gegl_operation_set_format (operation, "input", format);
+ gegl_operation_set_format (operation, "output", format);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]