MediaCodecHelper

Types

Link copied to clipboard
object Audio
Link copied to clipboard
object Video

Functions

Link copied to clipboard

Get the default encoder that matches format.

fun findEncoder(mimeType: String): String

Get the default encoder for type mimeType.

Link copied to clipboard

Get the codec info for a particular encoder/decoder

Link copied to clipboard
fun getMaxLevel(mimeType: String, profile: Int): Int

Get encoder maximum supported levels for the default encoder.

fun getMaxLevel(mimeType: String, name: String, profile: Int): Int

Get encoder maximum supported levels for the the specified encoder.

Link copied to clipboard

Get the encoders for a particular mime type

Link copied to clipboard

Get encoder supported profile level list for the default encoder.

Get encoder supported profile level list for the specified encoder.

Link copied to clipboard
fun getProfiles(mimeType: String): List<Int>

Get encoder supported profiles list for the default encoder.

fun getProfiles(mimeType: String, name: String): List<Int>

Get encoder supported profiles list for the specified encoder.

Link copied to clipboard

Get the encoders for a particular mime type

Link copied to clipboard
fun isFeatureSupported(mimeType: String, feature: String): Boolean
fun isFeatureSupported(mimeType: String, name: String, feature: String): Boolean

Whether the encoder supports the specified feature.

Link copied to clipboard

Check if format is supported by default encoder.

Link copied to clipboard

Check if codec is hardware accelerated

Link copied to clipboard