Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML>
<HEAD>
<TITLE>Enscript Output</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#1F00FF" ALINK="#FF0000" VLINK="#9900DD">
<A NAME="top">
<A NAME="file1">
<H1>../gegl/operation/gegl-operation-point-composer.h</H1>

<PRE>
<I><FONT COLOR="#B22222">/* This file is part of GEGL
 *
 * GEGL is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * GEGL is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with GEGL; if not, see &lt;http://www.gnu.org/licenses/&gt;.
 *
 * Copyright 2006 Øyvind Kolås
 */</FONT></I>

<I><FONT COLOR="#B22222">/* GeglOperationPointComposer
 * A baseclass for composer functions where the output pixels' values depends only on
 * the values of the single corresponding input and aux pixels.
 */</FONT></I>

#<B><FONT COLOR="#5F9EA0">ifndef</FONT></B> <FONT COLOR="#B8860B">__GEGL_OPERATION_POINT_COMPOSER_H__</FONT>
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <FONT COLOR="#B8860B">__GEGL_OPERATION_POINT_COMPOSER_H__</FONT>

#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&quot;gegl-operation-composer.h&quot;</FONT></B>

#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&quot;opencl/gegl-cl.h&quot;</FONT></B>

G_BEGIN_DECLS

#<B><FONT COLOR="#5F9EA0">define</FONT></B> <FONT COLOR="#B8860B">GEGL_TYPE_OPERATION_POINT_COMPOSER</FONT>            (gegl_operation_point_composer_get_type ())
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_OPERATION_POINT_COMPOSER</FONT></B>(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_OPERATION_POINT_COMPOSER, GeglOperationPointComposer))
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_OPERATION_POINT_COMPOSER_CLASS</FONT></B>(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GEGL_TYPE_OPERATION_POINT_COMPOSER, GeglOperationPointComposerClass))
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_IS_OPERATION_POINT_COMPOSER</FONT></B>(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_OPERATION_POINT_COMPOSER))
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_IS_OPERATION_POINT_COMPOSER_CLASS</FONT></B>(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GEGL_TYPE_OPERATION_POINT_COMPOSER))
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_OPERATION_POINT_COMPOSER_GET_CLASS</FONT></B>(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GEGL_TYPE_OPERATION_POINT_COMPOSER, GeglOperationPointComposerClass))

<B><FONT COLOR="#228B22">typedef</FONT></B> <B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationPointComposer  GeglOperationPointComposer;
<B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationPointComposer
{
  GeglOperationComposer parent_instance;

  <I><FONT COLOR="#B22222">/*&lt; private &gt;*/</FONT></I>
};

<B><FONT COLOR="#228B22">typedef</FONT></B> <B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationPointComposerClass GeglOperationPointComposerClass;
<B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationPointComposerClass
{
  GeglOperationComposerClass parent_class;

  gboolean (* process) (GeglOperation       *self,      <I><FONT COLOR="#B22222">/* for parameters      */</FONT></I>
                        <B><FONT COLOR="#228B22">void</FONT></B>                *in,
                        <B><FONT COLOR="#228B22">void</FONT></B>                *aux,
                        <B><FONT COLOR="#228B22">void</FONT></B>                *out,
                        glong                samples, <I><FONT COLOR="#B22222">/* number of samples   */</FONT></I>
                        <B><FONT COLOR="#228B22">const</FONT></B> GeglRectangle *roi,     <I><FONT COLOR="#B22222">/* rectangular region in output buffer */</FONT></I>
                        gint                 level);

  cl_int   (* cl_process) (GeglOperation       *self,
                           cl_mem               in_tex,
                           cl_mem               aux_tex,
                           cl_mem               out_tex,
                           size_t               global_worksize,
                           <B><FONT COLOR="#228B22">const</FONT></B> GeglRectangle *roi,
                           gint                 level);
  gpointer                 pad[4];
};

GType <B><FONT COLOR="#0000FF">gegl_operation_point_composer_get_type</FONT></B> (<B><FONT COLOR="#228B22">void</FONT></B>) G_GNUC_CONST;

G_END_DECLS

#<B><FONT COLOR="#5F9EA0">endif</FONT></B>
</PRE>
<HR>
<ADDRESS>Generated by <A HREF="http://www.iki.fi/~mtr/genscript/">GNU Enscript 1.6.5.90</A>.</ADDRESS>
</BODY>
</HTML>