/* gstreamermm - a C++ wrapper for gstreamer
 *
 * Copyright 2008 The gstreamermm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gstreamermm/videosink.h>
#include <gstreamermm/interface.h>
#include <gstreamermm/navigation.h>
#include <gstreamermm/xoverlay.h>
#include <gstreamermm/colorbalance.h>
#include <gstreamermm/propertyprobe.h>
_DEFS(gstreamermm,gst)

namespace Gst
{


/** Gst::XvImageSink - xvimagesink plugin.
 * Please include <gstreamermm/xvimagesink.h> to use.  Please note that, though
 * using the underlying GObject is fine, using its C <B>type</B> is not
 * guaranteed to be API stable across releases because it is not guaranteed to
 * always remain the same.  Also, not all plug-ins are available on all systems
 * and the ones that aren't available are not included in the build.
 *
 * @ingroup GstPlugins
 */
class XvImageSink
: public Gst::VideoSink, public Gst::Interface, public Gst::Navigation, public Gst::XOverlay, public Gst::ColorBalance, public Gst::PropertyProbe
{
  _CLASS_GOBJECT(XvImageSink, GstXvImageSink, GST_XV_IMAGE_SINK, Gst::VideoSink, GstVideoSink)
  _IMPLEMENTS_INTERFACE(Gst::Interface)
  _IMPLEMENTS_INTERFACE(Gst::Navigation)
  _IMPLEMENTS_INTERFACE(Gst::XOverlay)
  _IMPLEMENTS_INTERFACE(Gst::ColorBalance)
  _IMPLEMENTS_INTERFACE(Gst::PropertyProbe)

  _IS_GSTREAMERMM_PLUGIN

protected:
  XvImageSink();
  XvImageSink(const Glib::ustring& name);

public:
/** Creates a new xvimagesink plugin with a unique name.
 */
  _WRAP_CREATE()

/** Creates a new xvimagesink plugin with the given name.
 */
  _WRAP_CREATE(const Glib::ustring& name)

  _WRAP_PROPERTY("contrast", int)
  _WRAP_PROPERTY("brightness", int)
  _WRAP_PROPERTY("hue", int)
  _WRAP_PROPERTY("saturation", int)
  _WRAP_PROPERTY("display", Glib::ustring)
  _WRAP_PROPERTY("synchronous", bool)
  _WRAP_PROPERTY("pixel-aspect-ratio", Glib::ustring)
  _WRAP_PROPERTY("force-aspect-ratio", bool)
  _WRAP_PROPERTY("handle-events", bool)
  _WRAP_PROPERTY("device", Glib::ustring)
  _WRAP_PROPERTY("device-name", Glib::ustring)
  _WRAP_PROPERTY("handle-expose", bool)
  _WRAP_PROPERTY("double-buffer", bool)
  _WRAP_PROPERTY("autopaint-colorkey", bool)
  _WRAP_PROPERTY("colorkey", int)
  _WRAP_PROPERTY("draw-borders", bool)

};

} //namespace Gst
