Blame gst/monoscope/gstmonoscope.h

Packit 8ff292
/* GStreamer monoscope visualisation element
Packit 8ff292
 * Copyright (C) <2002> Richard Boulton <richard@tartarus.org>
Packit 8ff292
 * Copyright (C) <2006> Tim-Philipp Müller <tim centricular net>
Packit 8ff292
 * Copyright (C) <2006> Wim Taymans <wim at fluendo dot com>
Packit 8ff292
 *
Packit 8ff292
 * This library is free software; you can redistribute it and/or
Packit 8ff292
 * modify it under the terms of the GNU Library General Public
Packit 8ff292
 * License as published by the Free Software Foundation; either
Packit 8ff292
 * version 2 of the License, or (at your option) any later version.
Packit 8ff292
 *
Packit 8ff292
 * This library is distributed in the hope that it will be useful,
Packit 8ff292
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8ff292
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 8ff292
 * Library General Public License for more details.
Packit 8ff292
 *
Packit 8ff292
 * You should have received a copy of the GNU Library General Public
Packit 8ff292
 * License along with this library; if not, write to the
Packit 8ff292
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 8ff292
 * Boston, MA 02110-1301, USA.
Packit 8ff292
 */
Packit 8ff292
Packit 8ff292
#ifndef __GST_MONOSCOPE__
Packit 8ff292
#define __GST_MONOSCOPE__
Packit 8ff292
Packit 8ff292
G_BEGIN_DECLS
Packit 8ff292
Packit 8ff292
#include <gst/gst.h>
Packit 8ff292
#include <gst/base/gstadapter.h>
Packit 8ff292
Packit 8ff292
#define GST_TYPE_MONOSCOPE            (gst_monoscope_get_type())
Packit 8ff292
#define GST_MONOSCOPE(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MONOSCOPE,GstMonoscope))
Packit 8ff292
#define GST_MONOSCOPE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MONOSCOPE,GstMonoscopeClass))
Packit 8ff292
#define GST_IS_MONOSCOPE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MONOSCOPE))
Packit 8ff292
#define GST_IS_MONOSCOPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MONOSCOPE))
Packit 8ff292
Packit 8ff292
typedef struct _GstMonoscope GstMonoscope;
Packit 8ff292
typedef struct _GstMonoscopeClass GstMonoscopeClass;
Packit 8ff292
Packit 8ff292
struct _GstMonoscope
Packit 8ff292
{
Packit 8ff292
  GstElement element;
Packit 8ff292
Packit 8ff292
  /* pads */
Packit 8ff292
  GstPad      *sinkpad;
Packit 8ff292
  GstPad      *srcpad;
Packit 8ff292
Packit 8ff292
  GstAdapter  *adapter;
Packit 8ff292
Packit 8ff292
  guint64      next_ts;             /* expected timestamp of the next frame */
Packit 8ff292
  guint64      frame_duration;      /* video frame duration    */
Packit 8ff292
  gint         rate;                /* sample rate             */
Packit 8ff292
  guint        bps;                 /* bytes per sample        */
Packit 8ff292
  guint        spf;                 /* samples per video frame */
Packit 8ff292
  GstBufferPool *pool;
Packit 8ff292
Packit 8ff292
  GstSegment   segment;
Packit 8ff292
  gboolean     segment_pending;
Packit 8ff292
Packit 8ff292
  /* QoS stuff *//* with LOCK */
Packit 8ff292
  gdouble      proportion;
Packit 8ff292
  GstClockTime earliest_time;
Packit 8ff292
Packit 8ff292
  /* video state */
Packit 8ff292
  gint         fps_num;
Packit 8ff292
  gint         fps_denom;
Packit 8ff292
  gint         width;
Packit 8ff292
  gint         height;
Packit 8ff292
  guint        outsize;
Packit 8ff292
Packit 8ff292
  /* visualisation state */
Packit 8ff292
  struct monoscope_state *visstate;
Packit 8ff292
};
Packit 8ff292
Packit 8ff292
struct _GstMonoscopeClass
Packit 8ff292
{
Packit 8ff292
  GstElementClass parent_class;
Packit 8ff292
};
Packit 8ff292
Packit 8ff292
GType gst_monoscope_get_type (void);
Packit 8ff292
Packit 8ff292
G_END_DECLS
Packit 8ff292
Packit 8ff292
#endif /* __GST_MONOSCOPE__ */
Packit 8ff292