コード例 #1
0
ファイル: tiff-save.c プロジェクト: kleopatra999/gegl
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");
}
コード例 #2
0
ファイル: npy-save.c プロジェクト: jonnor/gegl
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");
}