mmal: Use zerocopy ports for opaque mode
commit146fcb56e3beceddfd41e7eea8eec23bbe11c1ff
authorJulian Scheel <julian@jusst.de>
Wed, 3 Jun 2015 07:50:39 +0000 (3 09:50 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 5 Jun 2015 13:35:03 +0000 (5 15:35 +0200)
tree531e61811a75b6465e29c71170a49228654c9afa
parent190ebeb4e5adbf2582924dec02e5791adc8aa534
mmal: Use zerocopy ports for opaque mode

When running in opaque mode the mmal codec, deinterlace and vout must be used
together, so it is known that all pictures in use are allocated by the mmal
vout and contain an associated mmal_buffer_header. This allows us to enable
the zerocopy feature of mmal, which allocates shared memory between GPU and
CPU for holding the buffer payloads. Albeit the payloads are just small opaque
handles that reference the GPU side pictures it saves a little bit of
performance, because less VCHIQ transfers are required.

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