use dma_buf handle for hw video frames

Zhao, Halley halley.zhao at intel.com
Sun Jan 11 22:24:14 PST 2015


I have one idea to use dma_buf for hw video frames; in this way, video codec and sink can be clearly separated, video codec is simplified as well.
Since dma_buf is Linux kernel concept, different hw codecs can share the unique video sink.

For additional explanation,
We have a core codec library for VAAPI acceleration interface: https://github.com/01org/libyami,
it can export hw video frame as dma_buf handle, then renders it as texture: https://github.com/01org/libyami/blob/master/tests/decodeoutput.cpp#L465

another example is: we added libyami wrapper to ffmpeg for h264 decoder, then an example player can use dma_buf for video rendering: https://github.com/01org/player-ffmpeg-yami

besides opengl context, dri3 protocol supports dma_buf as well, thus legacy video rendering is fine as well.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150112/5fa321e2/attachment.html>


More information about the gstreamer-devel mailing list