mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-09 10:59:39 +00:00
e3c71c65fe
New base class for vdpau decoders * mpeg2 ported and activated * h264 ported but deactivated * Uses GstMpegVideo meta
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
#ifdef HAVE_CONFIG_H
|
|
#include <config.h>
|
|
#endif
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include "gstvdpdevice.h"
|
|
#include "gstvdpvideomemory.h"
|
|
#include "gstvdpoutputbuffer.h"
|
|
#include "gstvdpdecoder.h"
|
|
|
|
#include "mpeg/gstvdpmpegdec.h"
|
|
/* #include "h264/gstvdph264dec.h" */
|
|
#include "mpeg4/gstvdpmpeg4dec.h"
|
|
#include "gstvdpvideopostprocess.h"
|
|
#include "gstvdpsink.h"
|
|
|
|
static gboolean
|
|
vdpau_init (GstPlugin * vdpau_plugin)
|
|
{
|
|
gboolean ret;
|
|
|
|
/* do this so debug categories get created */
|
|
gst_vdp_device_get_type ();
|
|
gst_vdp_decoder_get_type ();
|
|
gst_vdp_video_memory_init ();
|
|
|
|
/* Before giving these elements a rank again, make sure they pass at
|
|
* least the generic/states test when there's no device available */
|
|
ret = gst_element_register (vdpau_plugin, "vdpaumpegdec",
|
|
GST_RANK_NONE, GST_TYPE_VDP_MPEG_DEC);
|
|
/* 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;
|
|
}
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
GST_VERSION_MINOR,
|
|
vdpau,
|
|
"Various elements utilizing VDPAU",
|
|
vdpau_init, VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")
|