MetricsConstants
class MetricsConstants
kotlin.Any | |
↳ | android.media.MediaCodec.MetricsConstants |
Summary
Constants | |
---|---|
static String |
Key to extract the codec being used from the |
static String |
Key to extract the flag indicating whether the codec is running as an encoder or decoder from the |
static String |
Key to extract the height (in pixels) of the video track from the |
static String |
Key to extract the MIME type from the |
static String |
Key to extract what the codec mode from the |
static String |
The value returned for the key |
static String |
The value returned for the key |
static String |
Key to extract the rotation (in degrees) to properly orient the video from the |
static String |
Key to extract the flag indicating whether the codec is running in secure (DRM) mode from the |
static String |
Key to extract the width (in pixels) of the video track from the |
Constants
CODEC
static val CODEC: String
Key to extract the codec being used from the MediaCodec.getMetrics
return value. The value is a String.
Value: "android.media.mediacodec.codec"
ENCODER
static val ENCODER: String
Key to extract the flag indicating whether the codec is running as an encoder or decoder from the MediaCodec.getMetrics
return value. The value is an integer. A 0 indicates decoder; 1 indicates encoder.
Value: "android.media.mediacodec.encoder"
HEIGHT
static val HEIGHT: String
Key to extract the height (in pixels) of the video track from the MediaCodec.getMetrics
return value. The value is an integer.
Value: "android.media.mediacodec.height"
MIME_TYPE
static val MIME_TYPE: String
Key to extract the MIME type from the MediaCodec.getMetrics
return value. The value is a String.
Value: "android.media.mediacodec.mime"
MODE
static val MODE: String
Key to extract what the codec mode from the MediaCodec.getMetrics
return value. The value is a String. Values will be one of the constants MODE_AUDIO
or MODE_VIDEO
.
Value: "android.media.mediacodec.mode"
MODE_AUDIO
static val MODE_AUDIO: String
The value returned for the key MODE
when the codec is a audio codec.
Value: "audio"
MODE_VIDEO
static val MODE_VIDEO: String
The value returned for the key MODE
when the codec is a video codec.
Value: "video"
ROTATION
static val ROTATION: String
Key to extract the rotation (in degrees) to properly orient the video from the MediaCodec.getMetrics
return. The value is a integer.
Value: "android.media.mediacodec.rotation"
SECURE
static val SECURE: String
Key to extract the flag indicating whether the codec is running in secure (DRM) mode from the MediaCodec.getMetrics
return value. The value is an integer.
Value: "android.media.mediacodec.secure"
WIDTH
static val WIDTH: String
Key to extract the width (in pixels) of the video track from the MediaCodec.getMetrics
return value. The value is an integer.
Value: "android.media.mediacodec.width"