summaryrefslogtreecommitdiffstats
path: root/sys/vdpau/gstvdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vdpau/gstvdp.c')
-rw-r--r--sys/vdpau/gstvdp.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/vdpau/gstvdp.c b/sys/vdpau/gstvdp.c
new file mode 100644
index 00000000..5c524968
--- /dev/null
+++ b/sys/vdpau/gstvdp.c
@@ -0,0 +1,29 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
+#include <gst/gst.h>
+
+#include "gstvdpmpegdec.h"
+#include "gstvdpvideoyuv.h"
+#include "gstvdpyuvvideo.h"
+
+static gboolean
+vdpau_init (GstPlugin * vdpau_plugin)
+{
+ gst_element_register (vdpau_plugin, "vdpaumpegdec",
+ GST_RANK_PRIMARY - 1, GST_TYPE_VDP_MPEG_DEC);
+ gst_element_register (vdpau_plugin, "vdpauvideoyuv",
+ GST_RANK_PRIMARY, GST_TYPE_VDP_VIDEO_YUV);
+ gst_element_register (vdpau_plugin, "vdpauyuvvideo",
+ GST_RANK_PRIMARY, GST_TYPE_VDP_YUV_VIDEO);
+
+ return TRUE;
+}
+
+GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "vdpau",
+ "Various elements utilizing VDPAU",
+ vdpau_init, VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")