2010-04-22 10:52:42 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
2011-03-27 17:40:48 +00:00
|
|
|
#include <config.h>
|
2010-04-22 10:52:42 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2012-09-20 17:03:11 +00:00
|
|
|
#include "gstvdpdevice.h"
|
|
|
|
#include "gstvdpvideomemory.h"
|
|
|
|
#include "gstvdpoutputbuffer.h"
|
|
|
|
#include "gstvdpdecoder.h"
|
2010-04-22 10:52:42 +00:00
|
|
|
|
2010-06-09 13:43:43 +00:00
|
|
|
#include "mpeg/gstvdpmpegdec.h"
|
2012-09-20 17:03:11 +00:00
|
|
|
/* #include "h264/gstvdph264dec.h" */
|
2010-07-14 09:03:35 +00:00
|
|
|
#include "mpeg4/gstvdpmpeg4dec.h"
|
2010-04-22 10:52:42 +00:00
|
|
|
#include "gstvdpvideopostprocess.h"
|
|
|
|
#include "gstvdpsink.h"
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
vdpau_init (GstPlugin * vdpau_plugin)
|
|
|
|
{
|
2012-09-20 17:03:11 +00:00
|
|
|
gboolean ret;
|
|
|
|
|
|
|
|
/* do this so debug categories get created */
|
|
|
|
gst_vdp_device_get_type ();
|
|
|
|
gst_vdp_decoder_get_type ();
|
|
|
|
gst_vdp_video_memory_init ();
|
2010-04-22 10:52:42 +00:00
|
|
|
|
|
|
|
/* Before giving these elements a rank again, make sure they pass at
|
|
|
|
* least the generic/states test when there's no device available */
|
2012-09-20 17:03:11 +00:00
|
|
|
ret = gst_element_register (vdpau_plugin, "vdpaumpegdec",
|
2010-04-22 10:52:42 +00:00
|
|
|
GST_RANK_NONE, GST_TYPE_VDP_MPEG_DEC);
|
2012-09-20 17:03:11 +00:00
|
|
|
/* ret &= gst_element_register (vdpau_plugin, "vdpauh264dec", */
|
|
|
|
/* GST_RANK_NONE, GST_TYPE_VDP_H264_DEC); */
|
|
|
|
/* gst_element_register (vdpau_plugin, "vdpaumpeg4dec", */
|
|
|
|
/* GST_RANK_NONE, GST_TYPE_VDP_MPEG4_DEC); */
|
|
|
|
/* gst_element_register (vdpau_plugin, "vdpauvideopostprocess", */
|
|
|
|
/* GST_RANK_NONE, GST_TYPE_VDP_VIDEO_POST_PROCESS); */
|
|
|
|
/* gst_element_register (vdpau_plugin, "vdpausink", */
|
|
|
|
/* GST_RANK_NONE, GST_TYPE_VDP_SINK); */
|
|
|
|
|
|
|
|
return ret;
|
2010-04-22 10:52:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
2012-04-05 16:02:56 +00:00
|
|
|
vdpau,
|
2010-04-22 10:52:42 +00:00
|
|
|
"Various elements utilizing VDPAU",
|
|
|
|
vdpau_init, VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")
|