[Bug 731400] pnmdec: PNMDecoder gives sticky event warning

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jun 10 06:47:43 PDT 2014


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

Thiago Sousa Santos <thiagossantos> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thiagossantos at gmail.com

--- Comment #5 from Thiago Sousa Santos <thiagossantos at gmail.com> 2014-06-10 13:47:40 UTC ---
(In reply to comment #4)
> Thanks for the reply. 
> 
> Need bit of clarification regarding parsing,
> PPM if its stored as raw data then its possible to know how many input bytes
> are to be read (w * h) for gray and (w * h * 3) for RGB, but if its in ascii
> then input number of bytes is not possible to calculate as data will be stored
> as number between 0 to 255. 0 takes 1 byte and value above 99 takes 3 bytes.
> So to overcome this problem the current parser parses ascii converts data to
> raw, stores it in buffer. Now from size of that buffer we can know how many
> pixels are read.
> I am not very clear on how to know the number of bytes to read after reading
> header (Point 2). Is there any way I get a notification saying end of stream
> (or data) using which I can read till end of data and then call _add_to_frame
> with this ? Is this a better way than the current approach ?

Let me re-review the patch on the light of these details.

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