Share via


MediaCodec.LinearBlock.IsCodecCopyFreeCompatible(String[]) Method

Definition

Returns true if it is possible to allocate a linear block that can be passed to all listed codecs as input buffers without copying the content.

[Android.Runtime.Register("isCodecCopyFreeCompatible", "([Ljava/lang/String;)Z", "", ApiSince=30)]
public static bool IsCodecCopyFreeCompatible (string[] codecNames);
[<Android.Runtime.Register("isCodecCopyFreeCompatible", "([Ljava/lang/String;)Z", "", ApiSince=30)>]
static member IsCodecCopyFreeCompatible : string[] -> bool

Parameters

codecNames
String[]

list of codecs that the client wants to use a linear block without copying. Null entries are ignored.

Returns

Attributes

Remarks

Returns true if it is possible to allocate a linear block that can be passed to all listed codecs as input buffers without copying the content.

Note that even if this function returns true, #obtain may still throw due to invalid arguments or allocation failure.

Java documentation for android.media.MediaCodec.LinearBlock.isCodecCopyFreeCompatible(java.lang.String[]).

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