MediaCodec.LinearBlock.IsCodecCopyFreeCompatible(String[]) 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 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.
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.