[Bug 766236] rtp j2k payload/depayload messes up colours in sample pattern
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri May 27 12:09:53 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766236
--- Comment #57 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
pngparse would be a good template, it does not contain much parsing code anyway
and basically does the same:
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/videoparsers/gstpngparse.c
It's parsing the stream for some properties to be put into the caps,
specifically the width/height, while keeping over the framerate from the input
for example. You want something similar, just for JPEG2000. It should also
extract width/height from the stream, and additionally the colorspace and
sampling as discussed.
Also see
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/jp2kdecimator ,
it contains code for parsing JPEG2000 streams (and probably much more of the
stream than you actually need).
On top of that, we should look at the existing muxers/demuxers (+ other
elements that handle JPEG2000) for checking if they can provide (or use) this
information.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list