summaryrefslogtreecommitdiffstats
path: root/ext/jp2k/gstjasperdec.c
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2008-11-13 21:44:15 +0000
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2008-11-13 21:44:15 +0000
commitc8f450341998b95766fb9eb2caf9c08b7d9428c7 (patch)
tree0aafcfc11c6039754d4a29f3fd94aab7e67bb4bb /ext/jp2k/gstjasperdec.c
parentde900d75f4568dc81d9b270a09ad891966f227cd (diff)
downloadgst-plugins-bad-c8f450341998b95766fb9eb2caf9c08b7d9428c7.tar.gz
gst-plugins-bad-c8f450341998b95766fb9eb2caf9c08b7d9428c7.tar.bz2
gst-plugins-bad-c8f450341998b95766fb9eb2caf9c08b7d9428c7.zip
ext/jp2k/: Add jp2kenc to jp2k plugin.
Original commit message from CVS: * ext/jp2k/Makefile.am: * ext/jp2k/gstjasperdec.c: (gst_jasper_dec_class_init), (gst_jasper_dec_change_state): * ext/jp2k/gstjasperenc.c: (gst_jasper_enc_base_init), (gst_jasper_enc_class_init), (gst_jasper_enc_init), (gst_jasper_enc_reset), (gst_jasper_enc_set_src_caps), (gst_jasper_enc_init_encoder), (gst_jasper_enc_sink_setcaps), (gst_jasper_enc_get_data), (gst_jasper_enc_chain), (gst_jasper_enc_set_property), (gst_jasper_enc_get_property), (gst_jasper_enc_change_state): * ext/jp2k/gstjasperenc.h: * ext/jp2k/gstjp2k.c: (plugin_init): Add jp2kenc to jp2k plugin.
Diffstat (limited to 'ext/jp2k/gstjasperdec.c')
-rw-r--r--ext/jp2k/gstjasperdec.c31
1 files changed, 3 insertions, 28 deletions
diff --git a/ext/jp2k/gstjasperdec.c b/ext/jp2k/gstjasperdec.c
index 267bb5dc..22d8a4ff 100644
--- a/ext/jp2k/gstjasperdec.c
+++ b/ext/jp2k/gstjasperdec.c
@@ -114,6 +114,9 @@ gst_jasper_dec_class_init (GstJasperDecClass * klass)
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
+ GST_DEBUG_CATEGORY_INIT (gst_jasper_dec_debug, "jp2kdec", 0,
+ "Jasper JPEG2000 decoder");
+
gobject_class->set_property = gst_jasper_dec_set_property;
gobject_class->get_property = gst_jasper_dec_get_property;
@@ -676,31 +679,3 @@ fail_init:
return GST_STATE_CHANGE_FAILURE;
}
}
-
-/* entry point to initialize the plug-in
- * initialize the plug-in itself
- * register the element factories and pad templates
- * register the features
- */
-static gboolean
-plugin_init (GstPlugin * plugin)
-{
- GST_DEBUG_CATEGORY_INIT (gst_jasper_dec_debug, "jp2kdec", 0,
- "Jasper JPEG2000 decoder");
-
- if (!gst_element_register (plugin, "jp2kdec", GST_RANK_MARGINAL,
- GST_TYPE_JASPER_DEC))
- return FALSE;
-
- /* plugin initialisation succeeded */
- return TRUE;
-}
-
-
-/* this is the structure that gst-register looks for
- * so keep the name plugin_desc, or you cannot get your plug-in registered */
-GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
- GST_VERSION_MINOR,
- "jp2k",
- "Jasper-based JPEG2000 image decoder",
- plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)