Allocate and initialize a MediaCodec context.
This function must be called to free the MediaCodec context initialized with av_mediacodec_default_init().
Convenience function that sets up the MediaCodec context.
Release a MediaCodec buffer and render it to the surface that is associated with the decoder. This function should only be called once on a given buffer, once released the underlying buffer returns to the codec, thus subsequent calls to this function will have no effect.
Release a MediaCodec buffer and render it at the given time to the surface that is associated with the decoder. The timestamp must be within one second of the current java/lang/System#nanoTime() (which is implemented using CLOCK_MONOTONIC on Android). See the Android MediaCodec documentation of android/media/MediaCodec#releaseOutputBuffer(int,long) for more details.
This structure holds a reference to a android/view/Surface object that will be used as output by the decoder.
Opaque structure representing a MediaCodec buffer to render.