]> git.sesse.net Git - vlc/commit
mediacodec: implementation of MediaCodec GPU direct rendering
authorFelix Abecassis <felix.abecassis@gmail.com>
Fri, 17 Jan 2014 10:46:49 +0000 (11:46 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Jan 2014 11:59:13 +0000 (12:59 +0100)
commitd75a07a202fabab74cee6574092ad0c94380e32e
tree68fdc82eb7eb075bb49e3f928c400277b8d94060
parent31bf4b4de5c5c00f660fa3ab5dfd27729fddb669
mediacodec: implementation of MediaCodec GPU direct rendering

Based on the work by Martin Storsjö.

The decoder stores opaque buffers in the p_sys member of the picture
and the vout uses a callback from the decoder to render these
buffers. When the decoder flushes or closes, all the currently in
flight pictures (filled by the decoder but not displayed yet) need to
be invalidated. A mutex is required in order to prevent the vout from using
destroyed MediaCodec buffers.

In order to avoid a deadlock when exiting the decoder, a maximum number of polling
attempts was added in order to avoid blocking the decoder indefinitely if the vout
is not releasing output buffers anymore.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
NEWS
configure.ac
modules/MODULES_LIST
modules/codec/Makefile.am
modules/codec/omxil/android_mediacodec.c
modules/codec/omxil/android_opaque.c [new file with mode: 0644]
modules/codec/omxil/android_opaque.h [new file with mode: 0644]
modules/video_output/Modules.am
modules/video_output/android/opaque.c [new file with mode: 0644]
modules/video_output/android/surface.c
po/POTFILES.in