Compartir a través de


MediaCodec.GetOutputBuffers Method

Definition

Caution

deprecated

Retrieve the set of output buffers.

[Android.Runtime.Register("getOutputBuffers", "()[Ljava/nio/ByteBuffer;", "")]
[System.Obsolete("deprecated")]
public Java.Nio.ByteBuffer[] GetOutputBuffers ();
[<Android.Runtime.Register("getOutputBuffers", "()[Ljava/nio/ByteBuffer;", "")>]
[<System.Obsolete("deprecated")>]
member this.GetOutputBuffers : unit -> Java.Nio.ByteBuffer[]

Returns

Attributes

Exceptions

if not in the Executing state, or codec is configured in asynchronous mode.

upon codec error.

Remarks

Retrieve the set of output buffers. Call this after start() returns and whenever dequeueOutputBuffer signals an output buffer change by returning #INFO_OUTPUT_BUFFERS_CHANGED. After calling this method, any ByteBuffers previously returned by an earlier call to this method MUST no longer be used.

This member is deprecated. Use the new #getOutputBuffer method instead each time an output buffer is dequeued. This method is not supported if codec is configured in asynchronous mode.

<b>Note:</b> As of API 21, the position and limit of output buffers that are dequeued will be set to the valid data range.

<em>Do not use this method if using an output surface.</em>

Java documentation for android.media.MediaCodec.getOutputBuffers().

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.

Applies to