Skip to content
Snippets Groups Projects
Commit d75a07a2 authored by flx42's avatar flx42 Committed by Jean-Baptiste Kempf
Browse files

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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 31bf4b4d
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment