# BaseEncoder

abstract class BaseEncoder : EncoderCallback

Created by pedro on 18/09/19.

#### Inheritors

VideoEncoder
AudioEncoder

## Constructors

BaseEncoder
Link copied to clipboard
constructor()

## Functions

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