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>
Showing
- modules/codec/Makefile.am 4 additions, 1 deletionmodules/codec/Makefile.am
- modules/codec/gstreamer/gstdecode.c 243 additions, 249 deletionsmodules/codec/gstreamer/gstdecode.c
- modules/codec/gstreamer/gstvlcpictureplaneallocator.c 320 additions, 0 deletionsmodules/codec/gstreamer/gstvlcpictureplaneallocator.c
- modules/codec/gstreamer/gstvlcpictureplaneallocator.h 91 additions, 0 deletionsmodules/codec/gstreamer/gstvlcpictureplaneallocator.h
- modules/codec/gstreamer/gstvlcvideopool.c 239 additions, 0 deletionsmodules/codec/gstreamer/gstvlcvideopool.c
- modules/codec/gstreamer/gstvlcvideopool.h 68 additions, 0 deletionsmodules/codec/gstreamer/gstvlcvideopool.h
- modules/codec/gstreamer/gstvlcvideosink.c 326 additions, 0 deletionsmodules/codec/gstreamer/gstvlcvideosink.c
- modules/codec/gstreamer/gstvlcvideosink.h 84 additions, 0 deletionsmodules/codec/gstreamer/gstvlcvideosink.h
Loading
Please register or sign in to comment