[gstreamer-bugs] [Bug 583047] [jpegdec] optimise buffer handling when parsing frames
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu May 27 07:35:51 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=583047
GStreamer | gst-plugins-good | git
--- Comment #9 from Arnout Vandecappelle <arnout at mind.be> 2010-05-27 14:35:47 UTC ---
(In reply to comment #8)
> though one copy is likely (and unavoidably?) still present at _take time.
Not unavoidable. libjpeg is optimized for scatter-gather operation. It
processes all the available data, and calls fill_input_buffer when it needs
more data. I'm not entirely sure what the interface is, but I think you can
just update jsrc.pub.next_input_byte and jsrc.pub.bytes_in_buffer from within
that function. If you use gst_adapter_available_fast(), you can make sure the
_peek never does any copying.
--
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