[gstreamer-bugs] [Bug 627413] jifmux causes broken jpeg images at least with some rgb pixel format

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Aug 20 02:19:33 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=627413
  GStreamer | gst-plugins-bad | unspecified

--- Comment #6 from Filippo Argiolas <fargiolas at gnome.org> 2010-08-20 09:19:31 UTC ---
After some more googling (see e.g.
http://freedesktop.org/wiki/Software/libjpeg, Special Markers section), it
seems that the key to get a correct colorspace is the presence of APP0 and
APP14 markers.
APP14 is written by libjpeg when colorspace is RGB. APP0 when colorspace is
YCbCr or grayscale.
With jifmux APP0 is always written no matter what the colorspace is (I guess
it's needed by JFIF format). APP14 is preserved too but APP0 seems to have
precedence at least in the decoder used by eog (I guess libjpeg). Even putting
APP14 first doesn't change anything, while commenting out the line that adds
APP0 from gstjifmux.c gives correct colors.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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