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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jan 19 02:59:04 PST 2015


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

Aurélien Zanelli <aurelien.zanelli> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #287859|0                           |1
        is obsolete|                            |

--- Comment #6 from Aurélien Zanelli <aurelien.zanelli at parrot.com> 2015-01-19 10:59:00 UTC ---
Created an attachment (id=294853)
 View: https://bugzilla.gnome.org/attachment.cgi?id=294853
 Review: https://bugzilla.gnome.org/review?bug=738013&attachment=294853

v4l2allocator: fix import_userptr() in single-planar API when n_planes > 1

(In reply to comment #5)
> (note, if you have reach allocator import, it's probably too late for trying to
> adapt the alignment).
Yes, I think so, so in this case, I think we should just return in error, at
least for now.

So, here is a new patch proposal to handle the issue and check that planes are
contiguous and have expected size. To do this I used the following idea:
if planes are contiguous and have expected size so plane 'i' start address +
plane 'i' expected size shall be equal to plane 'i + 1' start address.

I think it's enough to do the job, but please tell me if I'm wrong or if I'm
miss
Please tell me if i missed something.

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