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

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