Blame gst-libs/gst/video/videoorientation.h

Packit 971217
/* GStreamer
Packit 971217
 * Copyright (C) 2006 Nokia 
Packit 971217
 *
Packit 971217
 * videoorientation.h: video flipping and centering interface
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_VIDEO_ORIENTATION_H__
Packit 971217
#define __GST_VIDEO_ORIENTATION_H__
Packit 971217
Packit 971217
#include <gst/gst.h>
Packit 971217
#include <gst/video/video-prelude.h>
Packit 971217
Packit 971217
G_BEGIN_DECLS
Packit 971217
Packit 971217
#define GST_TYPE_VIDEO_ORIENTATION \
Packit 971217
  (gst_video_orientation_get_type ())
Packit 971217
#define GST_VIDEO_ORIENTATION(obj) \
Packit 971217
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VIDEO_ORIENTATION, GstVideoOrientation))
Packit 971217
#define GST_IS_VIDEO_ORIENTATION(obj) \
Packit 971217
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VIDEO_ORIENTATION))
Packit 971217
#define GST_VIDEO_ORIENTATION_GET_INTERFACE(inst) \
Packit 971217
  (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_VIDEO_ORIENTATION, GstVideoOrientationInterface))
Packit 971217
Packit 971217
/**
Packit 971217
 * GstVideoOrientation:
Packit 971217
 *
Packit 971217
 * Opaque #GstVideoOrientation data structure.
Packit 971217
 */
Packit 971217
typedef struct _GstVideoOrientation GstVideoOrientation;
Packit 971217
typedef struct _GstVideoOrientationInterface GstVideoOrientationInterface;
Packit 971217
Packit 971217
/**
Packit 971217
 * GstVideoOrientationInterface:
Packit 971217
 * @iface: parent interface type.
Packit 971217
 * @get_hflip: virtual method to get horizontal flipping state
Packit 971217
 * @get_vflip: virtual method to get vertical flipping state
Packit 971217
 * @get_hcenter: virtual method to get horizontal centering state
Packit 971217
 * @get_vcenter: virtual method to get vertical centering state
Packit 971217
 * @set_hflip: virtual method to set horizontal flipping state
Packit 971217
 * @set_vflip: virtual method to set vertical flipping state
Packit 971217
 * @set_hcenter: virtual method to set horizontal centering state
Packit 971217
 * @set_vcenter: virtual method to set vertical centering state
Packit 971217
 *
Packit 971217
 * #GstVideoOrientationInterface interface.
Packit 971217
 */
Packit 971217
struct _GstVideoOrientationInterface {
Packit 971217
  GTypeInterface iface;
Packit 971217
Packit 971217
  /* FIXME 0.11: fix awkward API? add some kind of get_supported flags thing
Packit 971217
   * and then just return booleans/int from all vfuncs requiring the caller
Packit 971217
   * to check the flags first */
Packit 971217
Packit 971217
  /* virtual functions */
Packit 971217
  gboolean (* get_hflip)   (GstVideoOrientation *video_orientation, gboolean *flip);
Packit 971217
  gboolean (* get_vflip)   (GstVideoOrientation *video_orientation, gboolean *flip);
Packit 971217
  gboolean (* get_hcenter) (GstVideoOrientation *video_orientation, gint *center);
Packit 971217
  gboolean (* get_vcenter) (GstVideoOrientation *video_orientation, gint *center);
Packit 971217
Packit 971217
  gboolean (* set_hflip)   (GstVideoOrientation *video_orientation, gboolean flip);
Packit 971217
  gboolean (* set_vflip)   (GstVideoOrientation *video_orientation, gboolean flip);
Packit 971217
  gboolean (* set_hcenter) (GstVideoOrientation *video_orientation, gint center);
Packit 971217
  gboolean (* set_vcenter) (GstVideoOrientation *video_orientation, gint center);
Packit 971217
};
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
GType           gst_video_orientation_get_type              (void);
Packit 971217
Packit 971217
/* virtual class function wrappers */
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean gst_video_orientation_get_hflip (GstVideoOrientation *video_orientation, gboolean *flip);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean gst_video_orientation_get_vflip (GstVideoOrientation *video_orientation, gboolean *flip);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean gst_video_orientation_get_hcenter (GstVideoOrientation *video_orientation, gint *center);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean gst_video_orientation_get_vcenter (GstVideoOrientation *video_orientation, gint *center);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean gst_video_orientation_set_hflip (GstVideoOrientation *video_orientation, gboolean flip);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean gst_video_orientation_set_vflip (GstVideoOrientation *video_orientation, gboolean flip);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean gst_video_orientation_set_hcenter (GstVideoOrientation *video_orientation, gint center);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean gst_video_orientation_set_vcenter (GstVideoOrientation *video_orientation, gint center);
Packit 971217
Packit 971217
G_END_DECLS
Packit 971217
Packit 971217
#endif /* __GST_VIDEO_ORIENTATION_H__ */