MediaCodecConfigFlags Enum
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.
Enumerates values returned by the ConfigureFlagEncode, Encode, and None members and taken as a parameter of the F:Android.Media.MediaCodec.Configure member.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum MediaCodecConfigFlags
[<System.Flags>]
type MediaCodecConfigFlags =
- Inheritance
-
MediaCodecConfigFlags
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| None | 0 | Specifies a zero mask with no codec-configuration option bits set. |
| Encode | 1 | If this codec is to be used as an encoder, pass this flag. |
| UseBlockModel | 2 | Use this flag with MediaCodec.LinearBlock or HardwareBuffer. When this flag is set, the following methods throw MediaCodec.IncompatibleWithBlockModelException: GetInputBuffer(Int32), GetInputImage(Int32), GetInputBuffers(), GetOutputBuffer(Int32), GetOutputImage(Int32), GetOutputBuffers(), QueueInputBuffer(Int32, Int32, Int32, Int64, MediaCodecBufferFlags), QueueSecureInputBuffer(Int32, Int32, MediaCodec+CryptoInfo, Int64, MediaCodecBufferFlags), DequeueInputBuffer(Int64) and DequeueOutputBuffer(MediaCodec+BufferInfo, Int64). Android reference for 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. |
| UseCryptoAsync | 4 | Use this flag only on a secure decoder. The codec decrypts on a separate thread and must operate asynchronously. Crypto errors are passed to OnCryptoError(MediaCodec, MediaCodec+CryptoException). Override that callback to handle the error; its default implementation throws an IllegalStateException. The exception passed to the callback may contain CryptoInfo. Android reference for 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. |
| DetachedSurface | 8 | Configure the codec with a detached output surface. This flag is only defined for a video decoder. MediaCodec configured with this flag will be in Surface mode even though the surface parameter is null. Android reference for 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. |
Remarks
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.