Blame gst-libs/gst/gl/gstglbasefilter.h

Packit 971217
/*
Packit 971217
 * GStreamer
Packit 971217
 * Copyright (C) 2007 David Schleef <ds@schleef.org>
Packit 971217
 * Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.com>
Packit 971217
 * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com>
Packit 971217
 *
Packit 971217
 * This library is free software; you can redistribute it and/or
Packit 971217
 * modify it under the terms of the GNU Library General Public
Packit 971217
 * License as published by the Free Software Foundation; either
Packit 971217
 * version 2 of the License, or (at your option) any later version.
Packit 971217
 *
Packit 971217
 * This library is distributed in the hope that it will be useful,
Packit 971217
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 971217
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 971217
 * Library General Public License for more details.
Packit 971217
 *
Packit 971217
 * You should have received a copy of the GNU Library General Public
Packit 971217
 * License along with this library; if not, write to the
Packit 971217
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 971217
 * Boston, MA 02110-1301, USA.
Packit 971217
 */
Packit 971217
Packit 971217
#ifndef _GST_GL_BASE_FILTER_H_
Packit 971217
#define _GST_GL_BASE_FILTER_H_
Packit 971217
Packit 971217
#include <gst/base/gstbasetransform.h>
Packit 971217
Packit 971217
#include <gst/gl/gstgl_fwd.h>
Packit 971217
Packit 971217
G_BEGIN_DECLS
Packit 971217
Packit 971217
GST_GL_API
Packit 971217
GType gst_gl_base_filter_get_type(void);
Packit 971217
#define GST_TYPE_GL_BASE_FILTER            (gst_gl_base_filter_get_type())
Packit 971217
#define GST_GL_BASE_FILTER(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_BASE_FILTER,GstGLBaseFilter))
Packit 971217
#define GST_IS_GL_BASE_FILTER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_BASE_FILTER))
Packit 971217
#define GST_GL_BASE_FILTER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass) ,GST_TYPE_GL_BASE_FILTER,GstGLBaseFilterClass))
Packit 971217
#define GST_IS_GL_BASE_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) ,GST_TYPE_GL_BASE_FILTER))
Packit 971217
#define GST_GL_BASE_FILTER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_BASE_FILTER,GstGLBaseFilterClass))
Packit 971217
Packit 971217
/**
Packit 971217
 * GstGLBaseFilter:
Packit 971217
 * @parent: parent #GstBaseTransform
Packit 971217
 * @display: the currently configured #GstGLDisplay
Packit 971217
 * @context: the currently configured #GstGLContext
Packit 971217
 * @in_caps: the currently configured input #GstCaps
Packit 971217
 * @out_caps: the currently configured output #GstCaps
Packit 971217
 */
Packit 971217
struct _GstGLBaseFilter
Packit 971217
{
Packit 971217
  GstBaseTransform   parent;
Packit 971217
Packit 971217
  GstGLDisplay      *display;
Packit 971217
  GstGLContext      *context;
Packit 971217
Packit 971217
  GstCaps           *in_caps;
Packit 971217
  GstCaps           *out_caps;
Packit 971217
Packit 971217
  /* <private> */
Packit 971217
  gpointer           _padding[GST_PADDING];
Packit 971217
Packit 971217
  GstGLBaseFilterPrivate *priv;
Packit 971217
};
Packit 971217
Packit 971217
/**
Packit 971217
 * GstGLBaseFilterClass:
Packit 971217
 * @parent_class: parent class
Packit 971217
 * @supported_gl_api: the logical-OR of #GstGLAPI's supported by this element
Packit 971217
 * @gl_start: called in the GL thread to setup the element GL state.
Packit 971217
 * @gl_stop: called in the GL thread to setup the element GL state.
Packit 971217
 * @gl_set_caps: called in the GL thread when caps are set on @filter.
Packit 971217
 */
Packit 971217
struct _GstGLBaseFilterClass
Packit 971217
{
Packit 971217
  GstBaseTransformClass parent_class;
Packit 971217
  GstGLAPI supported_gl_api;
Packit 971217
Packit 971217
  gboolean (*gl_start)          (GstGLBaseFilter *filter);
Packit 971217
  void     (*gl_stop)           (GstGLBaseFilter *filter);
Packit 971217
  gboolean (*gl_set_caps)       (GstGLBaseFilter *filter, GstCaps * incaps, GstCaps * outcaps);
Packit 971217
Packit 971217
  /* <private> */
Packit 971217
  gpointer _padding[GST_PADDING];
Packit 971217
};
Packit 971217
Packit 971217
G_END_DECLS
Packit 971217
Packit 971217
#endif /* _GST_GL_BASE_FILTER_H_ */