VideoCodec

class VideoCodec(applicationContext: Context) : Codec

The VideoCodec class provides methods for encode or decode for video.

Constructors

Link copied to clipboard
constructor(applicationContext: Context)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Setting(codec: VideoCodec? = null) : Codec.Setting

Properties

Link copied to clipboard

Specifies the bitrate for a video output.

Link copied to clipboard
open override var codec: MediaCodec?

The android.media.MediaCodec instance.

Link copied to clipboard

Specifies the frame rate of a video format in frames/sec.

Link copied to clipboard
var height: Int

Specifies the height resolution for a video output.

Link copied to clipboard

Specifies the IFrameInterval for a video output.

Link copied to clipboard
open override var inputMimeType: String

Specifies the input mime type.

Link copied to clipboard
open override val isRunning: AtomicBoolean

Indicates whether the receiver is running.

Link copied to clipboard

The listener of which callback method.

Link copied to clipboard
var mode: Int

Specifies the mode of encoding or decoding.

Link copied to clipboard

Specifies the external android.media.MediaCodec options.

Link copied to clipboard
open override var outputMimeType: String

Specifies the output mime type.

Link copied to clipboard

The pixel transform instance.

Link copied to clipboard

Specifies the profile for a video output.

Link copied to clipboard

The surface for a video media codec.

Link copied to clipboard
var width: Int

Specifies the width resolution for a video output.

Functions

Link copied to clipboard
open override fun configure(codec: MediaCodec)
Link copied to clipboard
open fun dispose()
Link copied to clipboard
Link copied to clipboard
open override fun onError(codec: MediaCodec, e: MediaCodec.CodecException)
Link copied to clipboard
open override fun onInputBufferAvailable(codec: MediaCodec, index: Int)
Link copied to clipboard
open override fun onOutputBufferAvailable(codec: MediaCodec, index: Int, info: MediaCodec.BufferInfo)
Link copied to clipboard
open override fun onOutputFormatChanged(codec: MediaCodec, format: MediaFormat)
Link copied to clipboard
override fun startRunning()

Tells the receiver to start running.

Link copied to clipboard
override fun stopRunning()

Tells the receiver to stop running.