Android.Media.MediaCodec.GetOutputImage Method
Returns a read-only Image object for a dequeued output buffer index that contains the raw video frame.

Syntax

[Android.Runtime.Register("getOutputImage", "(I)Landroid/media/Image;", "")]
public Image GetOutputImage (int index)

Parameters

index
The index of a client-owned output buffer previously returned from a call to MediaCodec.DequeueOutputBuffer(.BufferInfo, System.Int64), or received via an onOutputBufferAvailable callback.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif not in the Executing state.
!:NoType:android/media/MediaCodec$CodecException;Href=../../../reference/android/media/MediaCodec.CodecException.htmlupon codec error.

Remarks

Returns a read-only Image object for a dequeued output buffer index that contains the raw video frame. After calling this method, any ByteBuffer or Image object previously returned for the same output index MUST no longer be used.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16