static GstDebugCategory * ensure_debug_category (void) { static gsize cat_gonce = 0; if (g_once_init_enter (&cat_gonce)) { gsize cat_done; cat_done = (gsize) _gst_debug_category_new ("audio", 0, "audio library"); g_once_init_leave (&cat_gonce, cat_done); } return (GstDebugCategory *) cat_gonce; }
static GstDebugCategory * ensure_debug_category (void) { static gsize cat_gonce = 0; if (g_once_init_enter (&cat_gonce)) { gsize cat_done; cat_done = (gsize) _gst_debug_category_new ("video-info", 0, "video-info structure"); g_once_init_leave (&cat_gonce, cat_done); } return (GstDebugCategory *) cat_gonce; }
static GstDebugCategory * ensure_debug_category (void) { static gsize cat_gonce = 0; if (g_once_init_enter (&cat_gonce)) { gsize cat_done; cat_done = (gsize) _gst_debug_category_new ("codecparsers_mpeg4", 0, "GstMpeg4 codec parsing library"); g_once_init_leave (&cat_gonce, cat_done); } return (GstDebugCategory *) cat_gonce; }
static GstDebugCategory * ensure_debug_category (void) { static gsize cat_gonce = 0; if (g_once_init_enter (&cat_gonce)) { gsize cat_done; cat_done = (gsize) _gst_debug_category_new ("video-composition", 0, "video overlay composition"); g_once_init_leave (&cat_gonce, cat_done); } return (GstDebugCategory *) cat_gonce; }
static GstDebugCategory * ensure_debug_category (void) { static gsize cat_gonce = 0; if (g_once_init_enter (&cat_gonce)) { gsize cat_done; cat_done = (gsize) _gst_debug_category_new ("video-anc", 0, "Ancillary data, VBI and CC utilities"); g_once_init_leave (&cat_gonce, cat_done); } return (GstDebugCategory *) cat_gonce; }
static gboolean plugin_init(GstPlugin *plugin) { #ifndef GST_DISABLE_GST_DEBUG gstdsp_debug = _gst_debug_category_new("dsp", 0, "DSP stuff"); #endif if (!gst_element_register(plugin, "dspdummy", GST_RANK_NONE, GST_DSP_DUMMY_TYPE)) return FALSE; if (!gst_element_register(plugin, "dspvdec", GST_RANK_PRIMARY, GST_DSP_VDEC_TYPE)) return FALSE; if (!gst_element_register(plugin, "dspadec", GST_RANK_SECONDARY, GST_DSP_ADEC_TYPE)) return FALSE; if (!gst_element_register(plugin, "dsph263enc", GST_RANK_PRIMARY, GST_DSP_H263ENC_TYPE)) return FALSE; if (!gst_element_register(plugin, "dspmp4venc", GST_RANK_PRIMARY, GST_DSP_MP4VENC_TYPE)) return FALSE; if (!gst_element_register(plugin, "dspjpegenc", GST_RANK_PRIMARY, GST_DSP_JPEGENC_TYPE)) return FALSE; if (!gst_element_register(plugin, "dsph264enc", GST_RANK_PRIMARY, GST_DSP_H264ENC_TYPE)) return FALSE; if (!gst_element_register(plugin, "dspvpp", GST_RANK_PRIMARY, GST_DSP_VPP_TYPE)) return FALSE; if (!gst_element_register(plugin, "dspipp", GST_RANK_PRIMARY, GST_DSP_IPP_TYPE)) return FALSE; if (!gst_element_register(plugin, "dspaudiocopy", GST_RANK_PRIMARY, GST_DSP_AUDIOPROC_TYPE)) return FALSE; return TRUE; }
static gboolean plugin_init(GstPlugin *plugin) { #ifndef GST_DISABLE_GST_DEBUG gstav_debug = _gst_debug_category_new("av", 0, "libav stuff"); #endif avcodec_register_all(); if (!gst_element_register(plugin, "avadec", GST_RANK_PRIMARY + 1, GST_AV_ADEC_TYPE)) return false; if (!gst_element_register(plugin, "avvdec", GST_RANK_PRIMARY + 1, GST_AV_VDEC_TYPE)) return false; if (!gst_element_register(plugin, "avh263enc", GST_RANK_PRIMARY + 1, GST_AV_H263ENC_TYPE)) return false; if (!gst_element_register(plugin, "avh264enc", GST_RANK_PRIMARY + 1, GST_AV_H264ENC_TYPE)) return false; return true; }