Blame docs/gegl-plugin.h.html

Packit Service 2781ba
Packit Service 2781ba
<HTML>
Packit Service 2781ba
<HEAD>
Packit Service 2781ba
<TITLE>Enscript Output</TITLE>
Packit Service 2781ba
</HEAD>
Packit Service 2781ba
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#1F00FF" ALINK="#FF0000" VLINK="#9900DD">
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba

../gegl/gegl-plugin.h

Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#B22222">/* This file is the public operation GEGL API, this API will change to much
Packit Service 2781ba
 * larger degrees than the api provided by gegl.h
Packit Service 2781ba
 *
Packit Service 2781ba
 * GEGL is free software; you can redistribute it and/or
Packit Service 2781ba
 * modify it under the terms of the GNU Lesser General Public
Packit Service 2781ba
 * License as published by the Free Software Foundation; either
Packit Service 2781ba
 * version 3 of the License, or (at your option) any later version.
Packit Service 2781ba
 *
Packit Service 2781ba
 * GEGL is distributed in the hope that it will be useful,
Packit Service 2781ba
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 2781ba
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 2781ba
 * Lesser General Public License for more details.
Packit Service 2781ba
 *
Packit Service 2781ba
 * You should have received a copy of the GNU Lesser General Public
Packit Service 2781ba
 * License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
Packit Service 2781ba
 *
Packit Service 2781ba
 * 2000-2008 Øyvind Kolås.
Packit Service 2781ba
 */</FONT>
Packit Service 2781ba
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">ifndef</FONT> <FONT COLOR="#B8860B">__GEGL_PLUGIN_H__</FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">define</FONT> <FONT COLOR="#B8860B">__GEGL_PLUGIN_H__</FONT>
Packit Service 2781ba
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">ifdef</FONT> <FONT COLOR="#B8860B">HAVE_CONFIG_H</FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F">"config.h"</FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">endif</FONT>
Packit Service 2781ba
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><string.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><glib-object.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><gegl.h></FONT>
Packit Service 2781ba
Packit Service 2781ba
G_BEGIN_DECLS
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#B22222">/* Extra types needed when coding operations */</FONT>
Packit Service 2781ba
<FONT COLOR="#228B22">typedef</FONT> <FONT COLOR="#228B22">struct</FONT> _GeglOperation        GeglOperation;
Packit Service 2781ba
<FONT COLOR="#228B22">typedef</FONT> <FONT COLOR="#228B22">struct</FONT> _GeglOperationContext GeglOperationContext;
Packit Service 2781ba
<FONT COLOR="#228B22">typedef</FONT> <FONT COLOR="#228B22">struct</FONT> _GeglPad              GeglPad;
Packit Service 2781ba
<FONT COLOR="#228B22">typedef</FONT> <FONT COLOR="#228B22">struct</FONT> _GeglConnection       GeglConnection;
Packit Service 2781ba
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><gegl-matrix.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><gegl-utils.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><gegl-buffer.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><gegl-paramspecs.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><gmodule.h></FONT>
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#228B22">typedef</FONT> <FONT COLOR="#228B22">struct</FONT> _GeglModule     GeglModule;
Packit Service 2781ba
<FONT COLOR="#228B22">typedef</FONT> <FONT COLOR="#228B22">struct</FONT> _GeglModuleInfo GeglModuleInfo;
Packit Service 2781ba
<FONT COLOR="#228B22">typedef</FONT> <FONT COLOR="#228B22">struct</FONT> _GeglModuleDB   GeglModuleDB;
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#B22222">/***
Packit Service 2781ba
 * Writing GEGL operations
Packit Service 2781ba
 *
Packit Service 2781ba
 */</FONT>
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#B22222">/*#include <geglmodule.h>*/</FONT>
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#B22222">/*  increment the ABI version each time one of the following changes:
Packit Service 2781ba
 *
Packit Service 2781ba
 *  - the libgeglmodule implementation (if the change affects modules).
Packit Service 2781ba
 *  - GeglOperation or one of it's base classes changes. (XXX:-
Packit Service 2781ba
 *    should be extended so a range of abi versions are accepted.
Packit Service 2781ba
 */</FONT>
Packit Service 2781ba
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">define</FONT> <FONT COLOR="#B8860B">GEGL_MODULE_ABI_VERSION</FONT> 0x000A
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#228B22">struct</FONT> _GeglModuleInfo
Packit Service 2781ba
{
Packit Service 2781ba
  guint32  abi_version;
Packit Service 2781ba
};
Packit Service 2781ba
Packit Service 2781ba
GType <FONT COLOR="#0000FF">gegl_module_register_type</FONT> (GTypeModule     *module,
Packit Service 2781ba
                                 GType            parent_type,
Packit Service 2781ba
                                 <FONT COLOR="#228B22">const</FONT> gchar     *type_name,
Packit Service 2781ba
                                 <FONT COLOR="#228B22">const</FONT> GTypeInfo *type_info,
Packit Service 2781ba
                                 GTypeFlags       flags);
Packit Service 2781ba
Packit Service 2781ba
gint            <FONT COLOR="#0000FF">gegl_operation_context_get_level</FONT>  (GeglOperationContext *self);
Packit Service 2781ba
GeglBuffer     *<FONT COLOR="#0000FF">gegl_operation_context_get_source</FONT> (GeglOperationContext *self,
Packit Service 2781ba
                                                   <FONT COLOR="#228B22">const</FONT> gchar          *padname);
Packit Service 2781ba
GeglBuffer     *<FONT COLOR="#0000FF">gegl_operation_context_get_target</FONT> (GeglOperationContext *self,
Packit Service 2781ba
                                                   <FONT COLOR="#228B22">const</FONT> gchar          *padname);
Packit Service 2781ba
<FONT COLOR="#228B22">void</FONT>            <FONT COLOR="#0000FF">gegl_operation_context_set_object</FONT> (GeglOperationContext *context,
Packit Service 2781ba
                                                   <FONT COLOR="#228B22">const</FONT> gchar          *padname,
Packit Service 2781ba
                                                   GObject              *data);
Packit Service 2781ba
<FONT COLOR="#228B22">void</FONT>            <FONT COLOR="#0000FF">gegl_operation_context_take_object</FONT>(GeglOperationContext *context,
Packit Service 2781ba
                                                   <FONT COLOR="#228B22">const</FONT> gchar          *padname,
Packit Service 2781ba
                                                   GObject              *data);
Packit Service 2781ba
GObject        *<FONT COLOR="#0000FF">gegl_operation_context_get_object</FONT> (GeglOperationContext *context,
Packit Service 2781ba
                                                   <FONT COLOR="#228B22">const</FONT> gchar          *padname);
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#228B22">void</FONT>            <FONT COLOR="#0000FF">gegl_extension_handler_register</FONT>    (<FONT COLOR="#228B22">const</FONT> gchar         *extension,
Packit Service 2781ba
                                                    <FONT COLOR="#228B22">const</FONT> gchar         *handler);
Packit Service 2781ba
<FONT COLOR="#228B22">void</FONT>            gegl_extension_handler_register_saver
Packit Service 2781ba
                                                   (<FONT COLOR="#228B22">const</FONT> gchar         *extension,
Packit Service 2781ba
                                                    <FONT COLOR="#228B22">const</FONT> gchar         *handler);
Packit Service 2781ba
<FONT COLOR="#228B22">const</FONT> gchar   * <FONT COLOR="#0000FF">gegl_extension_handler_get</FONT>         (<FONT COLOR="#228B22">const</FONT> gchar         *extension);
Packit Service 2781ba
<FONT COLOR="#228B22">const</FONT> gchar   * <FONT COLOR="#0000FF">gegl_extension_handler_get_saver</FONT>   (<FONT COLOR="#228B22">const</FONT> gchar         *extension);
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#B22222">/* code template utility, updates the jacobian matrix using
Packit Service 2781ba
 * a user defined mapping function for displacement, example
Packit Service 2781ba
 * with an identity transform (note that for the identity
Packit Service 2781ba
 * transform this is massive computational overhead that can
Packit Service 2781ba
 * be skipped by passing NULL to the sampler.
Packit Service 2781ba
 *
Packit Service 2781ba
 * #define gegl_unmap(x,y,dx,dy) { dx=x; dy=y; }
Packit Service 2781ba
 *
Packit Service 2781ba
 * gegl_sampler_compute_scale (scale, x, y);
Packit Service 2781ba
 * gegl_unmap(x,y,sample_x,sample_y);
Packit Service 2781ba
 * gegl_buffer_sample (buffer, sample_x, sample_y, scale, dest, format,
Packit Service 2781ba
 *                     GEGL_SAMPLER_LOHALO);
Packit Service 2781ba
 *
Packit Service 2781ba
 * #undef gegl_unmap      // IMPORTANT undefine map macro
Packit Service 2781ba
 */</FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">define</FONT> <FONT COLOR="#0000FF">gegl_sampler_compute_scale</FONT>(matrix, x, y) \
Packit Service 2781ba
{                                       \
Packit Service 2781ba
  float ax, ay, bx, by;                 \
Packit Service 2781ba
  gegl_unmap(x + 0.5, y, ax, ay);       \
Packit Service 2781ba
  gegl_unmap(x - 0.5, y, bx, by);       \
Packit Service 2781ba
  matrix.coeff[0][0] = ax - bx;         \
Packit Service 2781ba
  matrix.coeff[1][0] = ay - by;         \
Packit Service 2781ba
  gegl_unmap(x, y + 0.5, ax, ay);       \
Packit Service 2781ba
  gegl_unmap(x, y - 0.5, bx, by);       \
Packit Service 2781ba
  matrix.coeff[0][1] = ax - bx;         \
Packit Service 2781ba
  matrix.coeff[1][1] = ay - by;         \
Packit Service 2781ba
}
Packit Service 2781ba
Packit Service 2781ba
<FONT COLOR="#228B22">typedef</FONT> <FONT COLOR="#228B22">struct</FONT>
Packit Service 2781ba
{
Packit Service 2781ba
  GObject       parent_instance;
Packit Service 2781ba
  <FONT COLOR="#228B22">void</FONT> (* get) (GeglSampler *self,
Packit Service 2781ba
                gdouble      x,
Packit Service 2781ba
                gdouble      y,
Packit Service 2781ba
                GeglMatrix2 *scale,
Packit Service 2781ba
                <FONT COLOR="#228B22">void</FONT>        *output);
Packit Service 2781ba
} SamplerMock;
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">define</FONT> <FONT COLOR="#0000FF">gegl_sampler_get</FONT>(sampler,x,y,scale,dest) \
Packit Service 2781ba
  ((SamplerMock*)(sampler))->get((sampler),(x),(y),(scale),(dest))
Packit Service 2781ba
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><glib-object.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><babl/babl.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-filter.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-area-filter.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-point-filter.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-composer.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-composer3.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-point-composer.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-point-composer3.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-point-render.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-temporal.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-source.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-sink.h></FONT>
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><operation/gegl-operation-meta.h></FONT>
Packit Service 2781ba
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">include</FONT> <FONT COLOR="#BC8F8F"><gegl-lookup.h></FONT>
Packit Service 2781ba
Packit Service 2781ba
G_END_DECLS
Packit Service 2781ba
#<FONT COLOR="#5F9EA0">endif</FONT>  <FONT COLOR="#B22222">/* __GEGL_PLUGIN_H__ */</FONT>
Packit Service 2781ba
Packit Service 2781ba

Packit Service 2781ba
<ADDRESS>Generated by GNU Enscript 1.6.5.90.</ADDRESS>
Packit Service 2781ba
</BODY>
Packit Service 2781ba
</HTML>