Blame sys/xvimage/xvimage.c

Packit 0652a1
/* GStreamer
Packit 0652a1
 * Copyright (C) <2003> Julien Moutte <julien@moutte.net>
Packit 0652a1
 *
Packit 0652a1
 * This library is free software; you can redistribute it and/or
Packit 0652a1
 * modify it under the terms of the GNU Library General Public
Packit 0652a1
 * License as published by the Free Software Foundation; either
Packit 0652a1
 * version 2 of the License, or (at your option) any later version.
Packit 0652a1
 *
Packit 0652a1
 * This library is distributed in the hope that it will be useful,
Packit 0652a1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0652a1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 0652a1
 * Library General Public License for more details.
Packit 0652a1
 *
Packit 0652a1
 * You should have received a copy of the GNU Library General Public
Packit 0652a1
 * License along with this library; if not, write to the
Packit 0652a1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 0652a1
 * Boston, MA 02110-1301, USA.
Packit 0652a1
 */
Packit 0652a1
Packit 0652a1
#ifdef HAVE_CONFIG_H
Packit 0652a1
#include "config.h"
Packit 0652a1
#endif
Packit 0652a1
Packit 0652a1
#include "xvimagesink.h"
Packit 0652a1
Packit 0652a1
GST_DEBUG_CATEGORY (gst_debug_xv_context);
Packit 0652a1
GST_DEBUG_CATEGORY (gst_debug_xv_image_pool);
Packit 0652a1
GST_DEBUG_CATEGORY (gst_debug_xv_image_sink);
Packit 0652a1
Packit 0652a1
static gboolean
Packit 0652a1
plugin_init (GstPlugin * plugin)
Packit 0652a1
{
Packit 0652a1
  if (!gst_element_register (plugin, "xvimagesink",
Packit 0652a1
          GST_RANK_PRIMARY, GST_TYPE_XV_IMAGE_SINK))
Packit 0652a1
    return FALSE;
Packit 0652a1
Packit 0652a1
  GST_DEBUG_CATEGORY_INIT (gst_debug_xv_context, "xcontext", 0,
Packit 0652a1
      "xcontext miniobject");
Packit 0652a1
  GST_DEBUG_CATEGORY_INIT (gst_debug_xv_image_sink, "xvimagesink", 0,
Packit 0652a1
      "xvimagesink element");
Packit 0652a1
  GST_DEBUG_CATEGORY_INIT (gst_debug_xv_image_pool, "xvimagepool", 0,
Packit 0652a1
      "xvimagepool object");
Packit 0652a1
Packit 0652a1
  return TRUE;
Packit 0652a1
}
Packit 0652a1
Packit 0652a1
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Packit 0652a1
    GST_VERSION_MINOR,
Packit 0652a1
    xvimagesink,
Packit 0652a1
    "XFree86 video output plugin using Xv extension",
Packit 0652a1
    plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)