コード例 #1
0
ファイル: png-save.c プロジェクト: joyoseller/GEGL-OpenCL
static void
gegl_chant_class_init (GeglChantClass *klass)
{
  GeglOperationClass     *operation_class;
  GeglOperationSinkClass *sink_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  sink_class      = GEGL_OPERATION_SINK_CLASS (klass);

  sink_class->process    = gegl_png_save_process;
  sink_class->needs_full = TRUE;

  operation_class->name        = "gegl:png-save";
  operation_class->categories  = "output";
  operation_class->description =
        _("PNG image saver (passes the buffer through, saves as a side-effect.)");

  gegl_extension_handler_register_saver (".png", "gegl:png-save");
}
コード例 #2
0
ファイル: gegl-buffer-save-op.c プロジェクト: Distrotech/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    = gegl_buffer_save_op_process;
  sink_class->needs_full = TRUE;

  gegl_operation_class_set_keys (operation_class,
    "name"       , "gegl:gegl-buffer-save",
    "categories" , "hidden",
    "description", _("GeglBuffer file writer."),
    NULL);

  gegl_extension_handler_register_saver (".gegl", "gegl:gegl-buffer-save");
}
コード例 #3
0
ファイル: jpg-save.c プロジェクト: ChristianBusch/gegl
static void
gegl_chant_class_init (GeglChantClass *klass)
{
  GeglOperationClass     *operation_class;
  GeglOperationSinkClass *sink_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  sink_class      = GEGL_OPERATION_SINK_CLASS (klass);

  sink_class->process    = gegl_jpg_save_process;
  sink_class->needs_full = TRUE;

  gegl_operation_class_set_keys (operation_class,
    "name"        , "gegl:jpg-save",
    "categories"  , "output",
    "description" ,
    _("JPEG image saver (passes the buffer through, saves as a side-effect)"),
    NULL);

  gegl_extension_handler_register_saver (".jpg", "gegl:jpg-save");
}
コード例 #4
0
ファイル: jpg-save.c プロジェクト: don-mccomb/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    = gegl_jpg_save_process;
  sink_class->needs_full = TRUE;

  gegl_operation_class_set_keys (operation_class,
    "name",         "gegl:jpg-save",
    "title",        _("JPEG File Saver"),
    "categories", "output",
    "description",
    _("JPEG image saver, using libjpeg"),
    NULL);

  gegl_extension_handler_register_saver (".jpg", "gegl:jpg-save");
}