v4l2allocator: let bufferpool calculate image size when importing userptr
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Fri, 23 Jan 2015 09:15:46 +0000 (10:15 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Wed, 25 Feb 2015 19:24:49 +0000 (14:24 -0500)
commitac3cb8817e042bbed3d86d8f1cd1c45e49015a2c
treebf1535a9ebc68f49a3695bb7145832e86e8315eb
parent61a5e5af95717800fcdaedaebb5ba84f6c997d4b
v4l2allocator: let bufferpool calculate image size when importing userptr

Offset are relative to the buffer and there is no guarantee substracting
them will give us the plane size. So we let bufferpool make the math as
it is more aware of video info than allocator and pass a size array to
allocator import function.

Pointed out by Nicolas Dufresne <nicolas.dufresne@collabora.com>

https://bugzilla.gnome.org/show_bug.cgi?id=738013
sys/v4l2/gstv4l2allocator.c
sys/v4l2/gstv4l2allocator.h
sys/v4l2/gstv4l2bufferpool.c