[gstreamer-bugs] [Bug 164870] PNM [en,de]coder

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Sep 13 02:11:00 PDT 2009


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

Sebastian Dröge <slomo> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #34 from Sebastian Dröge <slomo at circular-chaos.org> 2009-09-13 09:10:54 UTC ---
Thanks, I'll go through all this patch later :)

(In reply to comment #32)
> Created an attachment (id=143072)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=143072) [details]
> Partial fix
> 
> Changed output format for decoder: PNM is RGB. As ximagesink doesn't accept
> RGB, I added ffmpegcolorspace in the example pipeline. However, things still
> don't work: For an image of width=313 x height=110 (x 3 = size=103290), the
> following warning is displayed: WARNING **: ffmpegcsp0: size 103290 is not a
> multiple of unit size 103400. I have really no idea where the number 103400 (=
> 103290 + 110) stems from. Any guesses?

Yes, our RGB (not xRGB right? i.e. 3 bytes per pixel, first byte is red) has a
rowstride the is rounded up to the next integer multiply of 4.

So the correct size for GStreamer RGB would be:
GST_ROUND_UP_4(width * 3) * height. Because your width was 313 it would be (313
* 3 + 1) * 110 == 103400. GStreamer doesn't support random rowstrides (yet) so
you have to convert that internally.

And you should do this for the encoder and decoder of course, otherwise you're
created PNM files are broken for non-GStreamer use.

-- 
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