gegl r2828 - in trunk: . operations/external



Author: ok
Date: Sat Dec 27 23:16:07 2008
New Revision: 2828
URL: http://svn.gnome.org/viewvc/gegl?rev=2828&view=rev

Log:
* operations/external/exr-load.cpp: Restore exr-load to behave like
before the source op base class no longer dictated caching the full
extent. (EXR supports sparse reading of data; thus the behavior could
be improved quite a bit.)


Modified:
   trunk/ChangeLog
   trunk/operations/external/exr-load.cpp

Modified: trunk/operations/external/exr-load.cpp
==============================================================================
--- trunk/operations/external/exr-load.cpp	(original)
+++ trunk/operations/external/exr-load.cpp	Sat Dec 27 23:16:07 2008
@@ -639,6 +639,12 @@
   return TRUE;
 }
 
+static GeglRectangle
+get_cached_region (GeglOperation       *operation,
+                   const GeglRectangle *roi)
+{
+  return get_bounding_box (operation);
+}
 
 static void
 gegl_chant_class_init (GeglChantClass *klass)
@@ -652,12 +658,13 @@
   source_class->process = process;
   operation_class->get_bounding_box = get_bounding_box;
 
-  operation_class->name        = "exr-load";
+  operation_class->get_cached_region = get_cached_region;
+  operation_class->name        = "gegl:exr-load";
   operation_class->categories  = "hidden";
   operation_class->description = "EXR image loader.";
 
-  gegl_extension_handler_register (".exr", "exr-load");
-  gegl_extension_handler_register (".EXR", "exr-load");
+  gegl_extension_handler_register (".exr", "gegl:exr-load");
+  gegl_extension_handler_register (".EXR", "gegl:exr-load");
 }
 
 #endif



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