ffmpeg.libavcodec.mediacodec

Undocumented in source.

Members

Aliases

AVMediaCodecBuffer
alias AVMediaCodecBuffer = MediaCodecBuffer
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

av_mediacodec_alloc_context
AVMediaCodecContext* av_mediacodec_alloc_context()

Allocate and initialize a MediaCodec context.

av_mediacodec_default_free
void av_mediacodec_default_free(AVCodecContext* avctx)

This function must be called to free the MediaCodec context initialized with av_mediacodec_default_init().

av_mediacodec_default_init
int av_mediacodec_default_init(AVCodecContext* avctx, AVMediaCodecContext* ctx, void* surface)

Convenience function that sets up the MediaCodec context.

av_mediacodec_release_buffer
int av_mediacodec_release_buffer(AVMediaCodecBuffer* buffer, int render)

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.

av_mediacodec_render_buffer_at_time
int av_mediacodec_render_buffer_at_time(AVMediaCodecBuffer* buffer, long time)

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.

Structs

AVMediaCodecContext
struct AVMediaCodecContext

This structure holds a reference to a android/view/Surface object that will be used as output by the decoder.

MediaCodecBuffer
struct MediaCodecBuffer

Opaque structure representing a MediaCodec buffer to render.

Meta