Language

MediaCodec.LinearBlock.Obtain(Int32, String[]) Method

Definition

Obtain a linear block object no smaller than capacity.

[Android.Runtime.Register("obtain", "(I[Ljava/lang/String;)Landroid/media/MediaCodec$LinearBlock;", "", ApiSince=30)]
public static Android.Media.MediaCodec.LinearBlock? Obtain(int capacity, string[] codecNames);
[<Android.Runtime.Register("obtain", "(I[Ljava/lang/String;)Landroid/media/MediaCodec$LinearBlock;", "", ApiSince=30)>]
static member Obtain : int * string[] -> Android.Media.MediaCodec.LinearBlock

Parameters

capacity
Int32

requested capacity of the linear block in bytes

codecNames
String[]

list of codecs that the client wants to use this linear block without copying. Null entries are ignored. This value cannot be null.

Returns

a linear block object. This value may be null.

Attributes

Remarks

Obtain a linear block object no smaller than capacity. If isCodecCopyFreeCompatible(String) with the same codecNames returned true, the returned LinearBlock object can be queued to the listed codecs without copying. The returned LinearBlock object is always read/write mappable.

Android reference for android.media.MediaCodec.LinearBlock.obtain.

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