[Bug 738013] v4l2allocator: issue with import_userptr() in single-planar API when n_planes > 1

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Oct 31 10:53:01 PDT 2014


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

--- Comment #4 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> 2014-10-31 17:52:57 UTC ---
(In reply to comment #3)
> not contiguous in virtual memory. I try to do the following to check that:
> 
> for (i = 0; i < (n_planes - 1); i++) {
>   gsize diff_data = ((guint8 *) data[i + 1]) - ((guint8 *) data[i]);
>   gsize size = offset[i + 1] - offset[i];

This code may go pretty wrong if offset[i] > offset[i + 1]. Note that
contiguous
isn't enough here. It has to be contiguous and of expected size (no extra line
for padding). If there was extra line, you would have into redoing S_FMT, and
using selection (or crop if first isn't supported).

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