mmal: Use zerocopy ports for opaque mode

Multimedia / VLC - Julian Scheel [jusst.de] - 5 June 2015 08:35 UTC

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.

146fcb5 mmal: Use zerocopy ports for opaque mode
modules/hw/mmal/codec.c | 13 +++++++++++++
modules/hw/mmal/deinterlace.c | 31 ++++++++++++++++++++++++++++++-
modules/hw/mmal/vout.c | 12 ++++++++++++
3 files changed, 55 insertions(+), 1 deletion(-)

Upstream: git.videolan.org


  • Share