mmal/vout: Use fixed binding of mmal buffer to picture
commit88f9688b96667c9d261707755347dd3ff66b1606
authorJulian Scheel <julian@jusst.de>
Wed, 3 Jun 2015 07:50:26 +0000 (3 09:50 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 5 Jun 2015 13:35:01 +0000 (5 15:35 +0200)
treec531df3875241a12ee6fe5afdaf7cfdc65fb2ef9
parente14240974014231afe552657f49971af84550761
mmal/vout: Use fixed binding of mmal buffer to picture

Instead of dynamically allocating a mmal buffer from the mmal buffer pool use
a fixed binding, where the same mmal buffer is used for the whole pictures
lifecycle. This avoids some overhead on picture allocation and simplifies the
code. As the mmal buffer pool is allocated in exactly the same size as the vlc
picture pool there is no drawback doing it this way.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/hw/mmal/mmal_picture.c
modules/hw/mmal/mmal_picture.h
modules/hw/mmal/vout.c