2002-11-18 22:29:38 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* Filter:
|
|
|
|
* Copyright (C) 2000 Donald A. Graft
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2004-01-12 04:15:46 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
2003-11-02 00:21:14 +00:00
|
|
|
#include <config.h>
|
2004-01-12 04:15:46 +00:00
|
|
|
#endif
|
2003-11-02 00:21:14 +00:00
|
|
|
|
2002-11-18 22:29:38 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2004-07-16 10:56:31 +00:00
|
|
|
#include "gstpngdec.h"
|
2002-11-22 22:25:03 +00:00
|
|
|
#include "gstpngenc.h"
|
2002-11-18 22:29:38 +00:00
|
|
|
|
|
|
|
static gboolean
|
2003-11-02 00:21:14 +00:00
|
|
|
plugin_init (GstPlugin * plugin)
|
2002-11-18 22:29:38 +00:00
|
|
|
{
|
2005-10-15 16:48:55 +00:00
|
|
|
if (!gst_element_register (plugin, "pngdec", GST_RANK_PRIMARY,
|
|
|
|
GST_TYPE_PNGDEC))
|
|
|
|
return FALSE;
|
2004-07-16 10:56:31 +00:00
|
|
|
|
2009-05-07 17:10:08 +00:00
|
|
|
if (!gst_element_register (plugin, "pngenc", GST_RANK_PRIMARY,
|
|
|
|
GST_TYPE_PNGENC))
|
2003-11-02 00:21:14 +00:00
|
|
|
return FALSE;
|
2002-11-18 22:29:38 +00:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
2012-04-05 15:36:38 +00:00
|
|
|
png,
|
2005-11-14 02:13:35 +00:00
|
|
|
"PNG plugin library", plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME,
|
|
|
|
GST_PACKAGE_ORIGIN)
|