コード例 #1
0
gboolean gegl_operation_sink_needs_full (GeglOperation *operation)
{
  GeglOperationSinkClass *klass;

  klass  = GEGL_OPERATION_SINK_CLASS (G_OBJECT_GET_CLASS (operation));
  return klass->needs_full;
}
コード例 #2
0
ファイル: write-buffer.c プロジェクト: jcupitt/gegl-vips
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 = process;
    sink_class->needs_full = FALSE;

    operation_class->name        = "gegl:write-buffer";
    operation_class->categories  = "programming:output";
    operation_class->description = _("A GEGL buffer destination surface.");
}
コード例 #3
0
ファイル: sdl-display.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 = process;
  sink_class->needs_full = TRUE;

  operation_class->name        = "gegl:sdl-display";
  operation_class->categories  = "display";
  operation_class->description =
        _("Displays the input buffer in an SDL window (restricted to one"
          " display op/process, due to SDL implementation issues).");
}
コード例 #4
0
ファイル: save-pixbuf.c プロジェクト: AjayRamanathan/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 = process;
  sink_class->needs_full = TRUE;

  gegl_operation_class_set_keys (operation_class,
    "name"        , "gegl:save-pixbuf",
    "categories"  , "programming:output",
    "description" , _("Save output into a GdkPixbuf."),
    NULL);

}
コード例 #5
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");
}
コード例 #6
0
ファイル: ff-save.c プロジェクト: OpenCL/GEGL-OpenCL-old
static void
gegl_op_class_init (GeglOpClass *klass)
{
  GeglOperationClass     *operation_class;
  GeglOperationSinkClass *sink_class;

  G_OBJECT_CLASS (klass)->finalize = finalize;

  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:ff-save",
    "categories"  , "output:video",
    "description" , _("FFmpeg video output sink"),
    NULL);
}
コード例 #7
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");
}
コード例 #8
0
ファイル: write-buffer.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 = process;
  sink_class->needs_full = FALSE;

  G_OBJECT_CLASS (klass)->dispose = dispose;

  gegl_operation_class_set_keys (operation_class,
    "name"       , "gegl:write-buffer",
    "categories" , "programming:output",
    "description", _("A GEGL buffer destination surface."),
    NULL);
}
コード例 #9
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");
}
コード例 #10
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");
}
コード例 #11
0
static void
gegl_chant_class_init (GeglChantClass *klass)
{
  GeglOperationClass       *operation_class;
  GeglOperationSinkClass *sink_class;
  
  // cast
  operation_class = GEGL_OPERATION_CLASS (klass);
  sink_class    = GEGL_OPERATION_SINK_CLASS (klass);

  // make object method attributes refer to reimplemented virtual (or default) methods
  sink_class->process = process;
  sink_class->needs_full = FALSE;

  operation_class->name        = "gegl:gimp-sink";
  operation_class->compat_name = "gegl:save-drawable";
  operation_class->categories  = "programming:output";
  operation_class->description =
        _("Sink to a GIMP Drawable, for use by GIMP plug-ins.");

  /* operation_class->no_cache = TRUE; */
}
コード例 #12
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");
}
コード例 #13
0
ファイル: sdl-display.c プロジェクト: ChristianBusch/gegl
static void
gegl_chant_class_init (GeglChantClass *klass)
{
  GObjectClass           *object_class;
  GeglOperationClass     *operation_class;
  GeglOperationSinkClass *sink_class;

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

  object_class->finalize = finalize;

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

  gegl_operation_class_set_keys (operation_class,
    "name"        , "gegl:sdl-display",
    "categories"  , "display",
    "description" ,
        _("Displays the input buffer in an SDL window (restricted to one"
          " display op/process, due to SDL implementation issues)."),
        NULL);
}
コード例 #14
0
ファイル: cogl-texture.c プロジェクト: kamilprusko/playground
static void
gegl_op_class_init (GeglOpClass *klass)
{
    GObjectClass           *object_class;
    GeglOperationClass     *operation_class;
    GeglOperationSinkClass *sink_class;

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

    object_class->finalize = finalize;

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

    gegl_operation_class_set_keys (operation_class,
        "name",         "example:cogl-texture",
        "title",        _("Cogl Texture"),
        "categories",   "display",
        "description",
            _("Node preperaing content for display with clutter."),
            NULL);
}
コード例 #15
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");
}