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; }
void gst_vdp_init (void) { /* do this so debug categories get created */ gst_vdp_device_get_type (); gst_vdp_output_buffer_get_type (); gst_vdp_video_buffer_get_type (); gst_vdp_video_src_pad_get_type (); gst_vdp_output_src_pad_get_type (); gst_vdp_decoder_get_type (); GST_DEBUG_CATEGORY_INIT (gst_vdp_debug, "vdp", 0, "GstVdp debug category"); }