/* Register of all the elements of the plugin */ static gboolean TIPlugin_init (GstPlugin * plugin) { gboolean ret; GST_DEBUG_CATEGORY_INIT (tiplugin, "ti", 0, "TI plugin for CodecEngine debugging"); /* Init the CMEM allocator */ gst_cmem_allocator_initialize (); /* Init the CMEM meta data */ gst_cmem_meta_register (); /* Initialize the codec engine run time */ CERuntime_init (); /* Register the encoders */ ret = gst_element_register (plugin, "ceenc_h264", GST_RANK_PRIMARY, GST_TYPE_CE_H264_ENCODER); if (!ret) { g_warning ("Failed to register h264 encoder element"); } ret = gst_element_register (plugin, "ceenc_mpeg4", GST_RANK_PRIMARY, GST_TYPE_CE_MPEG4_ENCODER); if (!ret) { g_warning ("Failed to register mpeg4 encoder element"); } return ret; }
/* Register of all the elements of the plugin */ static gboolean TIPlugin_init (GstPlugin * plugin) { gboolean ret; GST_DEBUG_CATEGORY_INIT (tiplugin, "ti", 0, "TI plugin for CodecEngine debugging"); gst_cmem_allocator_initialize (); ret = gst_element_register (plugin, "ceenc_h264", GST_RANK_PRIMARY, GST_TYPE_CE_H264_ENCODER); if (!ret) { g_warning ("Failed to register h264 encoder element"); } return ret; }