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-temporal.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 2008 Øyvind Kolås
 */</FONT></I>

<I><FONT COLOR="#B22222">/* GeglOperationTemporal
 * Base class for operations that want access to previous frames in a video sequence,
 * it contains API to configure the amounts of frames to store as well as getting a
 * GeglBuffer pointing to any of the previously stored frames.
 */</FONT></I>

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

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

G_BEGIN_DECLS

#<B><FONT COLOR="#5F9EA0">define</FONT></B> <FONT COLOR="#B8860B">GEGL_TYPE_OPERATION_TEMPORAL</FONT>            (gegl_operation_temporal_get_type ())
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_OPERATION_TEMPORAL</FONT></B>(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_OPERATION_TEMPORAL, GeglOperationTemporal))
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_OPERATION_TEMPORAL_CLASS</FONT></B>(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GEGL_TYPE_OPERATION_TEMPORAL, GeglOperationTemporalClass))
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_IS_OPERATION_TEMPORAL</FONT></B>(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_OPERATION_TEMPORAL))
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_IS_OPERATION_TEMPORAL_CLASS</FONT></B>(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GEGL_TYPE_OPERATION_TEMPORAL))
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <B><FONT COLOR="#0000FF">GEGL_OPERATION_TEMPORAL_GET_CLASS</FONT></B>(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GEGL_TYPE_OPERATION_TEMPORAL, GeglOperationTemporalClass))

<B><FONT COLOR="#228B22">typedef</FONT></B> <B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationTemporal         GeglOperationTemporal;
<B><FONT COLOR="#228B22">typedef</FONT></B> <B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationTemporalPrivate  GeglOperationTemporalPrivate;
<B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationTemporal
{
  GeglOperationFilter parent_instance;
  GeglOperationTemporalPrivate *priv;
};

<B><FONT COLOR="#228B22">typedef</FONT></B> <B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationTemporalClass GeglOperationTemporalClass;
<B><FONT COLOR="#228B22">struct</FONT></B> _GeglOperationTemporalClass
{
  GeglOperationFilterClass parent_class;
  gboolean (* process) (GeglOperation       *self,
                        GeglBuffer          *input,
                        GeglBuffer          *output,
                        <B><FONT COLOR="#228B22">const</FONT></B> GeglRectangle *roi,
                        gint                 level);
  gpointer              pad[4];
};

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

<B><FONT COLOR="#228B22">void</FONT></B> <B><FONT COLOR="#0000FF">gegl_operation_temporal_set_history_length</FONT></B> (GeglOperation *op,
                                                 gint           history_length);

guint <B><FONT COLOR="#0000FF">gegl_operation_temporal_get_history_length</FONT></B> (GeglOperation *op);

<I><FONT COLOR="#B22222">/* you need to unref the buffer when you're done with it */</FONT></I>
GeglBuffer *<B><FONT COLOR="#0000FF">gegl_operation_temporal_get_frame</FONT></B> (GeglOperation *op,
                                               gint           frame);


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>