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