Blame gegl/operation/gegl-operation-temporal.h

Packit Service 2781ba
/* This file is part of GEGL
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
 * Copyright 2008 Øyvind Kolås
Packit Service 2781ba
 */
Packit Service 2781ba
Packit Service 2781ba
/* GeglOperationTemporal
Packit Service 2781ba
 * Base class for operations that want access to previous frames in a video sequence,
Packit Service 2781ba
 * it contains API to configure the amounts of frames to store as well as getting a
Packit Service 2781ba
 * GeglBuffer pointing to any of the previously stored frames.
Packit Service 2781ba
 */
Packit Service 2781ba
Packit Service 2781ba
#ifndef __GEGL_OPERATION_TEMPORAL_H__
Packit Service 2781ba
#define __GEGL_OPERATION_TEMPORAL_H__
Packit Service 2781ba
Packit Service 2781ba
#include "gegl-operation-filter.h"
Packit Service 2781ba
Packit Service 2781ba
G_BEGIN_DECLS
Packit Service 2781ba
Packit Service 2781ba
#define GEGL_TYPE_OPERATION_TEMPORAL            (gegl_operation_temporal_get_type ())
Packit Service 2781ba
#define GEGL_OPERATION_TEMPORAL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_OPERATION_TEMPORAL, GeglOperationTemporal))
Packit Service 2781ba
#define GEGL_OPERATION_TEMPORAL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GEGL_TYPE_OPERATION_TEMPORAL, GeglOperationTemporalClass))
Packit Service 2781ba
#define GEGL_IS_OPERATION_TEMPORAL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_OPERATION_TEMPORAL))
Packit Service 2781ba
#define GEGL_IS_OPERATION_TEMPORAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GEGL_TYPE_OPERATION_TEMPORAL))
Packit Service 2781ba
#define GEGL_OPERATION_TEMPORAL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GEGL_TYPE_OPERATION_TEMPORAL, GeglOperationTemporalClass))
Packit Service 2781ba
Packit Service 2781ba
typedef struct _GeglOperationTemporal         GeglOperationTemporal;
Packit Service 2781ba
typedef struct _GeglOperationTemporalPrivate  GeglOperationTemporalPrivate;
Packit Service 2781ba
struct _GeglOperationTemporal
Packit Service 2781ba
{
Packit Service 2781ba
  GeglOperationFilter parent_instance;
Packit Service 2781ba
  GeglOperationTemporalPrivate *priv;
Packit Service 2781ba
};
Packit Service 2781ba
Packit Service 2781ba
typedef struct _GeglOperationTemporalClass GeglOperationTemporalClass;
Packit Service 2781ba
struct _GeglOperationTemporalClass
Packit Service 2781ba
{
Packit Service 2781ba
  GeglOperationFilterClass parent_class;
Packit Service 2781ba
  gboolean (* process) (GeglOperation       *self,
Packit Service 2781ba
                        GeglBuffer          *input,
Packit Service 2781ba
                        GeglBuffer          *output,
Packit Service 2781ba
                        const GeglRectangle *roi,
Packit Service 2781ba
                        gint                 level);
Packit Service 2781ba
  gpointer              pad[4];
Packit Service 2781ba
};
Packit Service 2781ba
Packit Service 2781ba
GType gegl_operation_temporal_get_type (void) G_GNUC_CONST;
Packit Service 2781ba
Packit Service 2781ba
void gegl_operation_temporal_set_history_length (GeglOperation *op,
Packit Service 2781ba
                                                 gint           history_length);
Packit Service 2781ba
Packit Service 2781ba
guint gegl_operation_temporal_get_history_length (GeglOperation *op);
Packit Service 2781ba
Packit Service 2781ba
/* you need to unref the buffer when you're done with it */
Packit Service 2781ba
GeglBuffer *gegl_operation_temporal_get_frame (GeglOperation *op,
Packit Service 2781ba
                                               gint           frame);
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
G_END_DECLS
Packit Service 2781ba
Packit Service 2781ba
#endif