1 /* GStreamer video parsers
2 * Copyright (C) 2011 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
3 * Copyright (C) 2009 Tim-Philipp Müller <tim centricular net>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include "gsth263parse.h"
26 #include "gsth264parse.h"
27 #include "gstdiracparse.h"
28 #include "gstmpegvideoparse.h"
29 #include "gstmpeg4videoparse.h"
30 #include "gstpngparse.h"
31 #include "gstjpeg2000parse.h"
32 #include "gstvc1parse.h"
33 #include "gsth265parse.h"
34
35 static gboolean
plugin_init(GstPlugin * plugin)36 plugin_init (GstPlugin * plugin)
37 {
38 gboolean ret = FALSE;
39
40 ret |= gst_element_register (plugin, "h263parse",
41 GST_RANK_PRIMARY + 1, GST_TYPE_H263_PARSE);
42 ret |= gst_element_register (plugin, "h264parse",
43 GST_RANK_PRIMARY + 1, GST_TYPE_H264_PARSE);
44 ret |= gst_element_register (plugin, "diracparse",
45 GST_RANK_NONE, GST_TYPE_DIRAC_PARSE);
46 ret |= gst_element_register (plugin, "mpegvideoparse",
47 GST_RANK_PRIMARY + 1, GST_TYPE_MPEGVIDEO_PARSE);
48 ret |= gst_element_register (plugin, "mpeg4videoparse",
49 GST_RANK_PRIMARY + 1, GST_TYPE_MPEG4VIDEO_PARSE);
50 ret |= gst_element_register (plugin, "pngparse",
51 GST_RANK_PRIMARY, GST_TYPE_PNG_PARSE);
52 ret |= gst_element_register (plugin, "jpeg2000parse",
53 GST_RANK_PRIMARY, GST_TYPE_JPEG2000_PARSE);
54 ret |= gst_element_register (plugin, "h265parse",
55 GST_RANK_SECONDARY, GST_TYPE_H265_PARSE);
56 ret |= gst_element_register (plugin, "vc1parse",
57 GST_RANK_NONE, GST_TYPE_VC1_PARSE);
58
59 return ret;
60 }
61
62
63 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
64 GST_VERSION_MINOR,
65 videoparsersbad,
66 "videoparsers",
67 plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
68