gegl r1839 - in trunk: . operations/io operations/workshop



Author: kcozens
Date: Sat Jan 12 07:59:23 2008
New Revision: 1839
URL: http://svn.gnome.org/viewvc/gegl?rev=1839&view=rev

Log:
2008-01-12  Kevin Cozens  <kcozens cvs gnome org>

	* operations/io/ff-load.c: Added video to GEGL_CHANT_CATEGORIES.

	* operations/workshop/demosaic-simple.c: Use prepare() to set
	format for output buffer.


Modified:
   trunk/ChangeLog
   trunk/operations/io/ff-load.c
   trunk/operations/workshop/demosaic-simple.c

Modified: trunk/operations/io/ff-load.c
==============================================================================
--- trunk/operations/io/ff-load.c	(original)
+++ trunk/operations/io/ff-load.c	Sat Jan 12 07:59:23 2008
@@ -27,7 +27,7 @@
 #define GEGL_CHANT_DESCRIPTION    "FFmpeg video frame importer."
 
 #define GEGL_CHANT_SELF           "ff-load.c"
-#define GEGL_CHANT_CATEGORIES     "video"
+#define GEGL_CHANT_CATEGORIES     "input:video"
 #define GEGL_CHANT_INIT
 #define GEGL_CHANT_CLASS_INIT
 #include "gegl-chant.h"
@@ -400,7 +400,7 @@
   return  TRUE;
 }
 
-static GeglRectangle 
+static GeglRectangle
 get_defined_region (GeglOperation *operation)
 {
   GeglRectangle result = {0,0,320,200};

Modified: trunk/operations/workshop/demosaic-simple.c
==============================================================================
--- trunk/operations/workshop/demosaic-simple.c	(original)
+++ trunk/operations/workshop/demosaic-simple.c	Sat Jan 12 07:59:23 2008
@@ -27,6 +27,7 @@
 #define GEGL_CHANT_CATEGORIES      "blur"
 
 #define GEGL_CHANT_AREA_FILTER
+#define GEGL_CHANT_PREPARE
 
 #include "gegl-chant.h"
 
@@ -35,6 +36,11 @@
           GeglBuffer *src,
           GeglBuffer *dst);
 
+static void prepare (GeglOperation *operation)
+{
+  gegl_operation_set_format (operation, "output", babl_format ("RGBA float"));
+}
+
 static gboolean
 process (GeglOperation       *operation,
          GeglBuffer          *input,
@@ -53,7 +59,6 @@
 
 
       temp_in = gegl_buffer_create_sub_buffer (input, &compute);
-      output = gegl_buffer_new (&compute, babl_format ("RGBA float"));
 
       demosaic (self, temp_in, output);
       g_object_unref (temp_in);



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