/
plugin.c
73 lines (58 loc) · 1.91 KB
/
plugin.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* Copyright (C) 2009-2010 Felipe Contreras
*
* Author: Felipe Contreras <felipe.contreras@gmail.com>
*
* This file may be used under the terms of the GNU Lesser General Public
* License version 2.1, a copy of which is found in LICENSE included in the
* packaging of this file.
*/
#include "plugin.h"
#include "gstdspdummy.h"
#include "gstdspvdec.h"
#include "gstdspadec.h"
#include "gstdsph263enc.h"
#include "gstdspmp4venc.h"
#include "gstdspjpegenc.h"
#include "gstdsph264enc.h"
#include "gstdspvpp.h"
#include "gstdspipp.h"
GstDebugCategory *gstdsp_debug;
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;
return TRUE;
}
GstPluginDesc gst_plugin_desc = {
.major_version = 0,
.minor_version = 10,
.name = "dsp",
.description = (gchar *) "Texas Instruments DSP elements",
.plugin_init = plugin_init,
.version = VERSION,
.license = "LGPL",
.source = "gst-dsp",
.package = "none",
.origin = "none",
};