MediaCodec.GetInputBuffer(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a java.nio.Buffer#clear cleared
, writable ByteBuffer
object for a dequeued input buffer index to contain the input data.
[Android.Runtime.Register("getInputBuffer", "(I)Ljava/nio/ByteBuffer;", "")]
public Java.Nio.ByteBuffer? GetInputBuffer (int index);
[<Android.Runtime.Register("getInputBuffer", "(I)Ljava/nio/ByteBuffer;", "")>]
member this.GetInputBuffer : int -> Java.Nio.ByteBuffer
Parameters
- index
- Int32
The index of a client-owned input buffer previously
returned from a call to #dequeueInputBuffer
,
or received via an onInputBufferAvailable callback.
Returns
the input buffer, or null if the index is not a dequeued input buffer, or if the codec is configured for surface input.
- Attributes
Exceptions
if not in the Executing state.
upon codec error.
Remarks
Returns a java.nio.Buffer#clear cleared
, writable ByteBuffer object for a dequeued input buffer index to contain the input data.
After calling this method any ByteBuffer or Image object previously returned for the same input index MUST no longer be used.
Java documentation for android.media.MediaCodec.getInputBuffer(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.