gldownload: import DMABufs from downstream pool
- if downstream provides us with a pool that can allocate DMA buffers, gldownload wraps it into a GL buffer pool that uses glEGLImageTargetTexture2DOES() to import dmabuf into textures
- upstream GL elements can allocate from that pool
- gldownload unwraps DMA buffers from incoming GL buffers and passes them downstream
To test:
gst-launch-1.0 -v gltestsrc ! gldownload ! kmssink
(DMABuf enabled)
gst-launch-1.0 -v gltestsrc ! gldownload ! video/x-raw ! kmssink
(force disable DMABuf)
Edited by Jakub Adam