다음을 통해 공유


MediaCodec.LinearBlock.Recycle Method

Definition

Mark this block as ready to be recycled by the framework once it is no longer in use.

[Android.Runtime.Register("recycle", "()V", "", ApiSince=30)]
public void Recycle ();
[<Android.Runtime.Register("recycle", "()V", "", ApiSince=30)>]
member this.Recycle : unit -> unit
Attributes

Remarks

Mark this block as ready to be recycled by the framework once it is no longer in use. All operations to this object after this call will cause exceptions, as well as attempt to access the previously mapped memory region. Caller should clear all references to this object after this call.

To avoid excessive memory consumption, it is recommended that callers recycle buffers as soon as they no longer need the buffers

Java documentation for android.media.MediaCodec.LinearBlock.recycle().

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