Blame tests/examples/gl/gtk/3dvideo/mviewwidget.h

Packit 971217
/*
Packit 971217
 * GStreamer
Packit 971217
 * Copyright (C) 2014-2015 Jan Schmidt <jan@centricular.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
#include <string.h>
Packit 971217
Packit 971217
#include <gst/gst.h>
Packit 971217
#include <gtk/gtk.h>
Packit 971217
#include <gdk/gdk.h>
Packit 971217
#include <gst/video/video-info.h>
Packit 971217
#include <gst/gl/gstglviewconvert.h>
Packit 971217
Packit 971217
G_BEGIN_DECLS
Packit 971217
Packit 971217
#define GST_TYPE_MVIEW_WIDGET (gst_mview_widget_get_type())
Packit 971217
#define GST_MVIEW_WIDGET(obj) \
Packit 971217
        (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MVIEW_WIDGET, GstMViewWidget))
Packit 971217
#define GST_MVIEW_WIDGET_CLASS(klass) \
Packit 971217
        (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MVIEW_WIDGET, GstMViewWidgetClass))
Packit 971217
#define GST_IS_MVIEW_WIDGET(obj) \
Packit 971217
        (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MVIEW_WIDGET))
Packit 971217
#define GST_IS_MVIEW_WIDGET_CLASS(klass) \
Packit 971217
        (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MVIEW_WIDGET))
Packit 971217
#define GST_MVIEW_WIDGET_GET_CLASS(obj) \
Packit 971217
        (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_MVIEW_WIDGET,GstMViewWidgetClass))
Packit 971217
Packit 971217
typedef struct _GstMViewWidget GstMViewWidget;
Packit 971217
typedef struct _GstMViewWidgetClass GstMViewWidgetClass;
Packit 971217
Packit 971217
struct _GstMViewWidget {
Packit 971217
  GtkGrid parent;
Packit 971217
Packit 971217
  gboolean is_output;
Packit 971217
Packit 971217
  GtkWidget *mode_selector;
Packit 971217
Packit 971217
  GstVideoMultiviewMode mode;
Packit 971217
  GstVideoMultiviewFlags flags;
Packit 971217
  GstGLStereoDownmix downmix_mode;
Packit 971217
Packit 971217
  /* Array of toggle buttons for flags */
Packit 971217
  GtkWidget *lflip;
Packit 971217
  GtkWidget *lflop;
Packit 971217
  GtkWidget *rflip;
Packit 971217
  GtkWidget *rflop;
Packit 971217
  GtkWidget *half_aspect;
Packit 971217
  GtkWidget *right_first;
Packit 971217
Packit 971217
  GtkWidget *downmix_combo;
Packit 971217
Packit 971217
  gboolean synching;
Packit 971217
};
Packit 971217
Packit 971217
struct _GstMViewWidgetClass {
Packit 971217
  GtkGridClass parent;
Packit 971217
};
Packit 971217
Packit 971217
GType gst_mview_widget_get_type (void);
Packit 971217
GtkWidget *gst_mview_widget_new (gboolean is_output);
Packit 971217
Packit 971217
G_END_DECLS