Enable zero-copy support for gstreamer video decoders
commitaa1ec5c910b6420b4e99100b10549593d8ad260a
authorVikram Fugro <vikram.fugro@gmail.com>
Thu, 4 Feb 2016 04:47:07 +0000 (4 10:17 +0530)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 5 Feb 2016 15:17:32 +0000 (5 16:17 +0100)
tree5b63d6945571ebfe6e448fb3809a366417e6b7e2
parentc4a18376352482bf332ebf44684fd5c2ede1e132
Enable zero-copy support for gstreamer video decoders

Implements the interface to provide the VLC pictures
from vout mapped to GstBuffers, along with per video
plane stride/offsets info, to the upstream gstreamer
video decoder. If the stride/offsets info of the vlc
pictures (created by vout) matches the video decoder's
expectations, the decoder will directly decode into
the vout allocated pictures, enabling zero-copy. Else
it will continue to use it's own bufferpool

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/Makefile.am
modules/codec/gstreamer/gstdecode.c
modules/codec/gstreamer/gstvlcpictureplaneallocator.c [new file with mode: 0644]
modules/codec/gstreamer/gstvlcpictureplaneallocator.h [new file with mode: 0644]
modules/codec/gstreamer/gstvlcvideopool.c [new file with mode: 0644]
modules/codec/gstreamer/gstvlcvideopool.h [new file with mode: 0644]
modules/codec/gstreamer/gstvlcvideosink.c [new file with mode: 0644]
modules/codec/gstreamer/gstvlcvideosink.h [new file with mode: 0644]