Exemplo n.º 1
0
static void
gimp_operation_dissolve_mode_class_init (GimpOperationDissolveModeClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_composer_class;
  GRand                            *gr;
  gint                              i;

  operation_class      = GEGL_OPERATION_CLASS (klass);
  point_composer_class = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);

  gegl_operation_class_set_keys (operation_class,
                                 "name",        "gimp:dissolve-mode",
                                 "description", "GIMP dissolve mode operation",
                                 "categories",  "compositors",
                                 NULL);

  operation_class->prepare      = gimp_operation_dissolve_mode_prepare;
  point_composer_class->process = gimp_operation_dissolve_mode_process;

  /* generate a table of random seeds */
  gr = g_rand_new_with_seed (314159265);
  for (i = 0; i < RANDOM_TABLE_SIZE; i++)
    random_table[i] = g_rand_int (gr);

  g_rand_free (gr);
}
Exemplo n.º 2
0
static void
gimp_operation_value_mode_class_init (GimpOperationValueModeClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  point_class     = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);

  gegl_operation_class_set_keys (operation_class,
                                 "name",        "gimp:value-mode",
                                 "description", "GIMP value mode operation",
                                 NULL);

  point_class->process = gimp_operation_value_mode_process;
}
static void
gimp_operation_lighten_only_mode_class_init (GimpOperationLightenOnlyModeClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  point_class     = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);

  gegl_operation_class_set_keys (operation_class,
                                 "name",        "gimp:lighten-only-mode",
                                 "description", "GIMP lighten only mode operation",
                                 NULL);

  point_class->process = gimp_operation_lighten_only_mode_process;
}
Exemplo n.º 4
0
static void
gegl_chant_class_init (GeglChantClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_composer3_class;

  operation_class       = GEGL_OPERATION_CLASS (klass);
  point_composer3_class = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);
  operation_class->prepare = prepare;

  point_composer3_class->process = process;

  operation_class->name        = "gegl:remap";
  operation_class->description =
        _("stretch components of pixels individually based on luminance envelopes");
  operation_class->categories  = "compositors:porter-duff";
}
static void
gimp_operation_hardlight_mode_class_init (GimpOperationHardlightModeClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  point_class     = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);

  gegl_operation_class_set_keys (operation_class,
                                 "name",        "gimp:hardlight-mode",
                                 "description", "GIMP hardlight mode operation",
                                 NULL);

  operation_class->prepare = gimp_operation_hardlight_mode_prepare;
  point_class->process     = gimp_operation_hardlight_mode_process;
}
static void
gimp_operation_anti_erase_mode_class_init (GimpOperationAntiEraseModeClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  point_class     = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);

  gegl_operation_class_set_keys (operation_class,
                                 "name",        "gimp:anti-erase-mode",
                                 "description", "GIMP anti erase mode operation",
                                 NULL);

  operation_class->prepare = gimp_operation_anti_erase_mode_prepare;
  point_class->process     = gimp_operation_anti_erase_mode_process;
}
static void
gimp_operation_grain_merge_mode_class_init (GimpOperationGrainMergeModeClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  point_class     = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);

  gegl_operation_class_set_keys (operation_class,
                                 "name",        "gimp:grain-merge-mode",
                                 "description", "GIMP grain merge mode operation",
                                 NULL);

  operation_class->prepare = gimp_operation_grain_merge_mode_prepare;
  point_class->process     = gimp_operation_grain_merge_mode_process;
}
static void
gimp_operation_lch_chroma_mode_class_init (GimpOperationLchChromaModeClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  point_class     = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);

  operation_class->want_in_place = FALSE;

  gegl_operation_class_set_keys (operation_class,
                                 "name",        "gimp:lch-chroma-mode",
                                 "description", "GIMP LCH chroma mode operation",
                                 NULL);

  point_class->process = gimp_operation_lch_chroma_mode_process;
}
static void
gimp_operation_softlight_mode_class_init (GimpOperationSoftlightModeClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_class;

  operation_class = GEGL_OPERATION_CLASS (klass);
  point_class     = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);

  gegl_operation_class_set_keys (operation_class,
                                 "name",        "gimp:softlight-mode",
                                 "description", "GIMP softlight mode operation",
                                 "reference-image", "soft-light-mode.png",
                                 "reference-composition", reference_xml,
                                 NULL);

  point_class->process = gimp_operation_softlight_mode_process;
}
Exemplo n.º 10
0
static void
gegl_op_class_init (GeglOpClass *klass)
{
  GeglOperationClass               *operation_class;
  GeglOperationPointComposer3Class *point_composer3_class;

  operation_class       = GEGL_OPERATION_CLASS (klass);
  point_composer3_class = GEGL_OPERATION_POINT_COMPOSER3_CLASS (klass);
  operation_class->prepare = prepare;

  point_composer3_class->process = process;

  gegl_operation_class_set_keys (operation_class,
    "name"       , "gegl:remap",
    "description",
          _("stretch components of pixels individually based on luminance envelopes"),
    "categories" , "compositors",
    NULL);
}