static void gegl_op_class_init(GeglOpClass *klass) { GeglOperationClass *operation_class; GeglOperationSinkClass *sink_class; operation_class = GEGL_OPERATION_CLASS(klass); sink_class = GEGL_OPERATION_SINK_CLASS(klass); sink_class->needs_full = TRUE; sink_class->process = process; gegl_operation_class_set_keys(operation_class, "name", "gegl:tiff-save", "title", _("TIFF File Saver"), "categories", "output", "description", _("TIFF image saver using libtiff"), NULL); gegl_operation_handlers_register_saver( ".tiff", "gegl:tiff-save"); gegl_operation_handlers_register_saver( ".tif", "gegl:tiff-save"); }
static void gegl_op_class_init (GeglOpClass *klass) { GeglOperationClass *operation_class; GeglOperationSinkClass *sink_class; operation_class = GEGL_OPERATION_CLASS (klass); sink_class = GEGL_OPERATION_SINK_CLASS (klass); sink_class->process = process; sink_class->needs_full = TRUE; gegl_operation_class_set_keys (operation_class, "name", "gegl:npy-save", "title", _("NumPy File Saver"), "categories", "output", "description", _("NumPy (Numerical Python) image saver"), NULL); gegl_operation_handlers_register_saver ( ".npy", "gegl:npy-save"); }