After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 550657 - New element jasperdec
New element jasperdec
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-03 12:46 UTC by Mark Nauwelaerts
Modified: 2008-09-09 17:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Jasperdec plugin (25.43 KB, patch)
2008-09-03 12:48 UTC, Mark Nauwelaerts
reviewed Details | Review
jp2kdec plugin (25.51 KB, patch)
2008-09-07 20:07 UTC, Mark Nauwelaerts
committed Details | Review

Description Mark Nauwelaerts 2008-09-03 12:46:27 UTC
The Jasper library is the reference implementation for JPEG2000 encoder/decoder.
The new plugin in question provides a decoder wrapper for use with e.g. video/mj2 or image/jp2 files.
Comment 1 Mark Nauwelaerts 2008-09-03 12:48:22 UTC
Created attachment 117928 [details] [review]
Jasperdec plugin

* Jasper decoder plugin.
Comment 2 Tim-Philipp Müller 2008-09-05 13:46:02 UTC
This looks great, please commit it.

Some minor suggestions:

 - in _reset(), add a dec->mat=NULL and move the dec->codec_data=NULL
   up directly behind the unref.

 - the plugin name needs to be changed so it doesn't conflict with the
   existing "jasper" plugin from gst-plugins-farsight (maybe jasper-j2k?
   or jasper-jpeg2000? or just jpeg2000dec? or jjpeg2000dec? or ...?)

 - the element name also needs to be changed to something != "jasperdec",
   for the same reason

 - the element GType (structure name passed as first arg to GST_BOILERPLATE)
   also needs to be changed to something != "GstJasperDec", sadly

Comment 3 Tim-Philipp Müller 2008-09-05 14:08:02 UTC
(Err, the plugin name obviously shouldn't have any "dec" in it, only the element name)
Comment 4 Mark Nauwelaerts 2008-09-07 20:07:35 UTC
Created attachment 118249 [details] [review]
jp2kdec plugin

Ok, thanks for the comments.

Attached patch has all required "higher level" elements renamed to jp2k and alike (plugin, element, libtool library, etc), whereas the lower level internals are kept as they were (jasper etc) for historical reasons :)

Unless other remarks, I'll commit that soon.
Comment 5 Mark Nauwelaerts 2008-09-09 17:56:50 UTC
2008-09-09  Mark Nauwelaerts  <mark.nauwelaerts@collabora.co.uk>

	* configure.ac:
	* ext/Makefile.am:
	* ext/jp2k/Makefile.am:
	* ext/jp2k/gstjasperdec.c: (gst_jasper_dec_base_init),
	(gst_jasper_dec_class_init), (gst_jasper_dec_init),
	(gst_jasper_dec_reset), (gst_jasper_dec_sink_setcaps),
	(gst_jasper_dec_negotiate), (gst_jasper_dec_get_picture),
	(gst_jasper_dec_chain), (gst_jasper_dec_set_property),
	(gst_jasper_dec_get_property), (gst_jasper_dec_change_state),
	(plugin_init):
	* ext/jp2k/gstjasperdec.h:
	Add jp2k plugin.  Fixes #550657.