1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
4  * Filter:
5  * Copyright (C) 2000 Donald A. Graft
6  *
7  * This library is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10  * Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU Library General Public
13  * License along with this library; if not, write to the
14  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
15  * Boston, MA 02110-1301, USA.
16  *
17  */
18 
19 #ifdef HAVE_CONFIG_H
20 #include <config.h>
21 #endif
22 
23 #include <string.h>
24 #include <gst/gst.h>
25 
26 #include "gstpngdec.h"
27 #include "gstpngenc.h"
28 
29 static gboolean
plugin_init(GstPlugin * plugin)30 plugin_init (GstPlugin * plugin)
31 {
32   if (!gst_element_register (plugin, "pngdec", GST_RANK_PRIMARY,
33           GST_TYPE_PNGDEC))
34     return FALSE;
35 
36   if (!gst_element_register (plugin, "pngenc", GST_RANK_PRIMARY,
37           GST_TYPE_PNGENC))
38     return FALSE;
39 
40   return TRUE;
41 }
42 
43 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
44     GST_VERSION_MINOR,
45     png,
46     "PNG plugin library", plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME,
47     GST_PACKAGE_ORIGIN)
48