Package-level declarations

Types

Link copied to clipboard
class AudioCodecConfig(val mimeType: String = MediaFormat.MIMETYPE_AUDIO_AAC, val startBitrate: Int, val sampleRate: Int = getDefaultSampleRate(mimeType), val channelConfig: Int = AudioFormat.CHANNEL_IN_STEREO, val byteFormat: Int = AudioFormat.ENCODING_PCM_16BIT, val profile: Int = getDefaultProfile(mimeType), customize: MediaFormatCustomHandler = {}) : CodecConfig

Audio configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.

Link copied to clipboard
sealed class CodecConfig(val mimeType: String, val startBitrate: Int, val profile: Int = 0)

Base configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.

Link copied to clipboard
Link copied to clipboard
interface IEncoder
Link copied to clipboard
Link copied to clipboard
typealias MediaFormatCustomHandler = MediaFormat.(requestFallback: Boolean) -> Unit

Type alias for a function that modifies a MediaFormat. The function takes a Boolean parameter requestFallback which indicates whether to request a fallback format if the preferred one is not supported. When requestFallback is true, the function should adjust the MediaFormat to a more compatible configuration.

Link copied to clipboard

Video configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.

Link copied to clipboard
sealed class VideoProfileLevelColor(val profile: Int, val level: Int, val colorStandard: Int, val dynamicRangeProfile: DynamicRangeProfile)

Video profile level with color information.

Functions

Link copied to clipboard
fun VideoCodecConfig.rotateDegreesFromNaturalOrientation(context: Context, @IntRange(from = 0, to = 359) rotationDegrees: Int): VideoCodecConfig

Rotates video configuration to rotationDegrees from device natural orientation.

Link copied to clipboard

Rotates video configuration to rotation from device natural orientation.