Function av_mediacodec_render_buffer_at_time
pub unsafe extern "C" fn av_mediacodec_render_buffer_at_time(
buffer: *mut MediaCodecBuffer,
time: i64,
) -> i32
Expand description
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.
@param buffer the buffer to render @param time timestamp in nanoseconds of when to render the buffer @return 0 on success, < 0 otherwise