BaseEncoder

abstract class BaseEncoder : EncoderCallback

Created by pedro on 18/09/19.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun forceCodecType(codecType: CodecUtil.CodecType)
Link copied to clipboard
abstract fun formatChanged(mediaCodec: MediaCodec, mediaFormat: MediaFormat)
Link copied to clipboard
open fun getType(): String
Link copied to clipboard
open fun inputAvailable(@NonNull mediaCodec: MediaCodec, inBufferIndex: Int)
Link copied to clipboard
open fun isRunning(): Boolean
Link copied to clipboard
open fun outputAvailable(@NonNull mediaCodec: MediaCodec, outBufferIndex: Int, @NonNull bufferInfo: MediaCodec.BufferInfo)
Link copied to clipboard
abstract fun reset(): Boolean
Link copied to clipboard
open fun restart()
Link copied to clipboard
open fun setEncoderErrorCallback(encoderErrorCallback: EncoderErrorCallback)
Link copied to clipboard
open fun setTimestampMode(timestampMode: TimestampMode)
Link copied to clipboard
open fun setType(type: String)
Link copied to clipboard
open fun start()
abstract fun start(resetTs: Boolean)
open fun start(startTs: Long)
Link copied to clipboard
open fun stop()
open fun stop(resetTs: Boolean)