您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GEGL_OPERATION_CLASS函数代码示例

51自学网 2021-06-01 20:50:22
  C++
这篇教程C++ GEGL_OPERATION_CLASS函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中GEGL_OPERATION_CLASS函数的典型用法代码示例。如果您正苦于以下问题:C++ GEGL_OPERATION_CLASS函数的具体用法?C++ GEGL_OPERATION_CLASS怎么用?C++ GEGL_OPERATION_CLASS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了GEGL_OPERATION_CLASS函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: gimp_operation_hardlight_mode_class_init

static voidgimp_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;}
开发者ID:Bootz,项目名称:shiny-robot,代码行数:17,


示例2: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass              *operation_class;  GeglOperationPointComposerClass *point_composer_class;  operation_class  = GEGL_OPERATION_CLASS (klass);  point_composer_class     = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);  point_composer_class->process = process;  operation_class->prepare = prepare;  operation_class->name        = "gegl:subtract";  operation_class->categories  = "compositors:math";  operation_class->description =       _("Math operation subtract (c = c - value)");}
开发者ID:joyoseller,项目名称:GEGL-OpenCL,代码行数:17,


示例3: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass *operation_class;  operation_class = GEGL_OPERATION_CLASS (klass);  operation_class->process = process;  operation_class->get_bounding_box = get_bounding_box;  operation_class->detect = detect;  operation_class->no_cache = TRUE;  gegl_operation_class_set_keys (operation_class,       "name",          "gegl:clone",       "description",   _("Clone a buffer"),       "categories",    "core",       NULL);}
开发者ID:AjayRamanathan,项目名称:gegl,代码行数:17,


示例4: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass              *operation_class;  GeglOperationPointComposerClass *point_composer_class;  operation_class      = GEGL_OPERATION_CLASS (klass);  point_composer_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);  point_composer_class->process = process;  operation_class->prepare = prepare;  operation_class->name        = "gegl:average";  operation_class->categories  = "compositors:blend";  operation_class->description =        _("Image blending operation 'average' (<tt>c = (cA + aB)/2</tt>)");}
开发者ID:jcupitt,项目名称:gegl-vips,代码行数:17,


示例5: gimp_operation_anti_erase_mode_class_init

static voidgimp_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;}
开发者ID:AjayRamanathan,项目名称:gimp,代码行数:17,


示例6: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass              *operation_class;  GeglOperationPointComposerClass *point_composer_class;  operation_class      = GEGL_OPERATION_CLASS (klass);  point_composer_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);  point_composer_class->process = process;  operation_class->prepare = prepare;  operation_class->name        = "gegl:svg-multiply";  operation_class->description =        _("SVG blend operation svg-multiply (<tt>d = cA * cB +  cA * (1 - aB) + cB * (1 - aA)</tt>)");  operation_class->categories  = "compositors:svgfilter";}
开发者ID:jcupitt,项目名称:gegl-vips,代码行数:17,


示例7: gegl_op_class_init

static voidgegl_op_class_init (GeglOpClass *klass){  GeglOperationClass *operation_class;  operation_class = GEGL_OPERATION_CLASS (klass);  operation_class->attach = attach;  gegl_operation_class_set_keys (operation_class,                                 "name",        "gegl:high-pass",                                 "title",       _("High Pass Filter"),                                 "categories",  "frequency",                                 "description",                                 _("Enhances fine details."),                                 NULL);}
开发者ID:Distrotech,项目名称:gegl,代码行数:17,


示例8: gegl_operation_get_key

const gchar *gegl_operation_get_key (const gchar *operation_name,                        const gchar *key_name){  GType         type;  GObjectClass *klass;  const gchar  *ret = NULL;  type = gegl_operation_gtype_from_name (operation_name);  if (!type)    {      return NULL;    }  klass  = g_type_class_ref (type);  ret = gegl_operation_class_get_key (GEGL_OPERATION_CLASS (klass), key_name);  g_type_class_unref (klass);  return ret;}
开发者ID:AjayRamanathan,项目名称:gegl,代码行数:17,


示例9: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass            *operation_class;  GeglOperationPointFilterClass *point_filter_class;  operation_class  = GEGL_OPERATION_CLASS (klass);  point_filter_class = GEGL_OPERATION_POINT_FILTER_CLASS (klass);  point_filter_class->process = process;  operation_class->prepare = prepare;  operation_class->name        = "gegl:dt-gamma";  operation_class->categories  = "compositors:math";  operation_class->description =       _("Linear/Gamma conversion curve.");}
开发者ID:AntonSh,项目名称:darktable,代码行数:17,


示例10: gimp_operation_normal_parent_process

static gbooleangimp_operation_normal_parent_process (GeglOperation        *operation,                                      GeglOperationContext *context,                                      const gchar          *output_prop,                                      const GeglRectangle  *result,                                      gint                  level){  const GeglRectangle *in_extent  = NULL;  const GeglRectangle *aux_extent = NULL;  GObject             *input;  GObject             *aux;  /* get the raw values this does not increase the reference count */  input = gegl_operation_context_get_object (context, "input");  aux   = gegl_operation_context_get_object (context, "aux");  /* pass the input/aux buffers directly through if they are not   * overlapping   */  if (input)    in_extent = gegl_buffer_get_abyss (GEGL_BUFFER (input));  if (! input ||      (aux && ! gegl_rectangle_intersect (NULL, in_extent, result)))    {      gegl_operation_context_set_object (context, "output", aux);      return TRUE;    }  if (aux)    aux_extent = gegl_buffer_get_abyss (GEGL_BUFFER (aux));  if (! aux ||      (input && ! gegl_rectangle_intersect (NULL, aux_extent, result)))    {      gegl_operation_context_set_object (context, "output", input);      return TRUE;    }  /* chain up, which will create the needed buffers for our actual   * process function   */  return GEGL_OPERATION_CLASS (parent_class)->process (operation, context,                                                       output_prop, result,                                                       level);}
开发者ID:DevMaggio,项目名称:gimp,代码行数:46,


示例11: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass            *operation_class;  GeglOperationPointFilterClass *point_filter_class;  operation_class    = GEGL_OPERATION_CLASS (klass);  point_filter_class = GEGL_OPERATION_POINT_FILTER_CLASS (klass);  point_filter_class->process = process;  gegl_operation_class_set_keys (operation_class,    "name"        , "gegl:unpremul",    "categories"  , "color",    "description" , "Unpremultiplies a buffer that contains pre-multiplied colors (but is marked as not having it)",    NULL);}
开发者ID:AjayRamanathan,项目名称:gegl,代码行数:17,


示例12: gimp_operation_grain_merge_mode_class_init

static voidgimp_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;}
开发者ID:Bootz,项目名称:shiny-robot,代码行数:17,


示例13: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass              *operation_class;  GeglOperationPointComposerClass *point_composer_class;  operation_class      = GEGL_OPERATION_CLASS (klass);  point_composer_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);  point_composer_class->process = process;  operation_class->prepare      = prepare;  operation_class->name        = "gegl:weighted-blend";  operation_class->categories  = "compositors:blend";  operation_class->description =    _("blend two images using alpha values as weights");}
开发者ID:jcupitt,项目名称:gegl-vips,代码行数:17,


示例14: operation_process

/* Fast paths */static gboolean operation_process (GeglOperation        *operation,                                   GeglOperationContext *context,                                   const gchar          *output_prop,                                   const GeglRectangle  *result,                                   gint                  level){  GeglOperationClass  *operation_class;  gpointer input, aux;  operation_class = GEGL_OPERATION_CLASS (gegl_chant_parent_class);  /* get the raw values this does not increase the reference count */  input = gegl_operation_context_get_object (context, "input");  aux = gegl_operation_context_get_object (context, "aux");  /* pass the input/aux buffers directly through if they are alone*/  {    const GeglRectangle *in_extent = NULL;    const GeglRectangle *aux_extent = NULL;    if (input)      in_extent = gegl_buffer_get_abyss (input);    if ((!input ||        (aux && !gegl_rectangle_intersect (NULL, in_extent, result))))      {         gegl_operation_context_take_object (context, "output",                                             g_object_ref (aux));         return TRUE;      }    if (aux)      aux_extent = gegl_buffer_get_abyss (aux);    if (!aux ||        (input && !gegl_rectangle_intersect (NULL, aux_extent, result)))      {        gegl_operation_context_take_object (context, "output",                                            g_object_ref (input));        return TRUE;      }  }  /* chain up, which will create the needed buffers for our actual   * process function   */  return operation_class->process (operation, context, output_prop, result, level);}
开发者ID:bantu,项目名称:gegl,代码行数:46,


示例15: gegl_op_class_init

static voidgegl_op_class_init (GeglOpClass *klass){  GeglOperationClass       *operation_class;  GeglOperationFilterClass *filter_class;  operation_class = GEGL_OPERATION_CLASS (klass);  filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);  filter_class->process = process;  operation_class->prepare = prepare;  gegl_operation_class_set_keys (operation_class,    "name"    , "gegl:kuwahara",    "categories"  , "misc",    "description" , _("Edge preserving blur"),    NULL);}
开发者ID:don-mccomb,项目名称:gegl,代码行数:18,


示例16: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass            *operation_class;  GeglOperationPointFilterClass *point_filter_class;  operation_class    = GEGL_OPERATION_CLASS (klass);  point_filter_class = GEGL_OPERATION_POINT_FILTER_CLASS (klass);  operation_class->prepare    = prepare;  point_filter_class->process = process;  gegl_operation_class_set_keys (operation_class,    "name",        "gegl:noise-cie-lch",    "categories",  "noise",    "description", _("Randomize lightness, chroma and hue independently"),    NULL);}
开发者ID:ChristianBusch,项目名称:gegl,代码行数:18,


示例17: gimp_operation_softlight_mode_class_init

static voidgimp_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;}
开发者ID:ChristianBusch,项目名称:gimp,代码行数:18,


示例18: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass       *operation_class;  GeglOperationFilterClass *filter_class;  operation_class = GEGL_OPERATION_CLASS (klass);  filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);  filter_class->process    = process;  operation_class->prepare = prepare;  operation_class->categories  = "blur";  operation_class->name        = "gegl:gaussian-blur";  operation_class->description =        _("Performs an averaging of neighbouring pixels with the "          "normal distribution as weighting.");}
开发者ID:jcupitt,项目名称:gegl-vips,代码行数:18,


示例19: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass       *operation_class;  GeglOperationFilterClass *filter_class;  operation_class = GEGL_OPERATION_CLASS (klass);  filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);  filter_class->process    = process;  operation_class->prepare = prepare;  gegl_operation_class_set_keys (operation_class,    "categories" , "distort",    "name"       , "gegl:ripple",    "description", _("Transform the buffer with a ripple pattern"),    NULL);}
开发者ID:AjayRamanathan,项目名称:gegl,代码行数:18,


示例20: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass       *operation_class;  GeglOperationFilterClass *filter_class;  operation_class = GEGL_OPERATION_CLASS (klass);  filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);  filter_class->process = process;  operation_class->prepare = prepare;  operation_class->name        = "gegl:box-percentile";  operation_class->categories  = "misc";  operation_class->description =        _("Sets the target pixel to the color corresponding to a given percentile "          "when colors are sorted by luminance.");}
开发者ID:jcupitt,项目名称:gegl-vips,代码行数:18,


示例21: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass            *operation_class;  GeglOperationPointFilterClass *point_filter_class;  operation_class    = GEGL_OPERATION_CLASS (klass);  point_filter_class = GEGL_OPERATION_POINT_FILTER_CLASS (klass);  operation_class->prepare = prepare;  point_filter_class->process = process;  gegl_operation_class_set_keys (operation_class,    "name"        , "gegl:max-rgb",    "categories"  , "color",    "description" , _("Reduce image to pure red, green, and blue"),    NULL);}
开发者ID:kleopatra999,项目名称:gegl-global-matting,代码行数:18,


示例22: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass       *operation_class;  GeglOperationFilterClass *filter_class;  operation_class = GEGL_OPERATION_CLASS (klass);  filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);  filter_class->process                    = process;  operation_class->prepare                 = prepare;  operation_class->get_bounding_box        = get_bounding_box;  operation_class->get_required_for_output = get_required_for_output;  operation_class->categories  = "enhance";  operation_class->name        = "gegl:deinterlace";  operation_class->description = _("Performs deinterlace on the image.");}
开发者ID:joyoseller,项目名称:GEGL-OpenCL,代码行数:18,


示例23: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass       *operation_class;  GeglOperationFilterClass *filter_class;  operation_class = GEGL_OPERATION_CLASS (klass);  filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);  operation_class->prepare = prepare;  filter_class->process    = process;  gegl_operation_class_set_keys (operation_class,    "name",        "gegl:waves",    "categories",  "distort",    "description", _("Distort the image with waves"),    NULL);}
开发者ID:ChristianBusch,项目名称:gegl,代码行数:18,


示例24: gimp_operation_lch_chroma_mode_class_init

static voidgimp_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;}
开发者ID:AdamGrzonkowski,项目名称:gimp-1,代码行数:18,


示例25: gegl_chant_class_init

static voidgegl_chant_class_init (GeglChantClass *klass){  GeglOperationClass              *operation_class;  GeglOperationPointComposerClass *point_composer_class;  operation_class      = GEGL_OPERATION_CLASS (klass);  point_composer_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);  point_composer_class->process = process;  operation_class->prepare = prepare;  operation_class->compat_name = "gegl:overlay";  operation_class->name        = "svg:overlay";  operation_class->description =        _("SVG blend operation overlay (<tt>if 2 * cB > aB: d = 2 * cA * cB + cA * (1 - aB) + cB * (1 - aA) otherwise: d = aA * aB - 2 * (aB - cB) * (aA - cA) + cA * (1 - aB) + cB * (1 - aA)</tt>)");  operation_class->categories  = "compositors:svgfilter";}
开发者ID:joyoseller,项目名称:GEGL-OpenCL,代码行数:18,


示例26: gegl_op_class_init

static voidgegl_op_class_init (GeglOpClass *klass){  GeglOperationClass            *operation_class;  GeglOperationPointFilterClass *filter_class;  operation_class = GEGL_OPERATION_CLASS (klass);  filter_class    = GEGL_OPERATION_POINT_FILTER_CLASS (klass);  operation_class->prepare = prepare;  filter_class->process    = process;  gegl_operation_class_set_keys (operation_class,    "categories",   "color",    "name",         "gegl:color-rotate",    "description",  _("Replace a range of colors with another"),    NULL);}
开发者ID:Distrotech,项目名称:gegl,代码行数:18,



注:本文中的GEGL_OPERATION_CLASS函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ GEGL_PROPERTIES函数代码示例
C++ GEGL_OPERATION_AREA_FILTER函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。