Android.Media.MediaCodec.GetInputImage Method
Returns a writable Image object for a dequeued input buffer index to contain the raw input video frame.

Syntax

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

Parameters

index
The index of a client-owned input buffer previously returned from a call to MediaCodec.DequeueInputBuffer(long), or received via an onInputBufferAvailable 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 writable Image object for a dequeued input buffer index to contain the raw input video frame. After calling this method any ByteBuffer or Image object previously returned for the same input 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