java.lang.Object | |||
↳ | org.opencdnunion.media.streamer.encoder.Encoder<I, O> | ||
↳ | org.opencdnunion.media.streamer.encoder.MediaCodecEncoderBase<I, O> | ||
↳ | org.opencdnunion.media.streamer.encoder.MediaCodecAudioEncoder |
MediaCodec Audio encoder.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MediaCodecAudioEncoder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getEncoderType()
Implement by child class, to define what type of encoder this instance is.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | doFrameAvailable(AudioBufFrame frame) | ||||||||||
int | doStart(Object encodeConfig) | ||||||||||
void | doStop() | ||||||||||
AudioPacket | getOutFrame(ByteBuffer buffer, MediaCodec.BufferInfo bufferInfo) | ||||||||||
boolean |
onFrameAvailable(AudioBufFrame frame)
Give child class a chance to handle onFrameAvailable
| ||||||||||
boolean |
updateEncodeFormat(Object src, Object dst)
Update encode format with input frame format.
| ||||||||||
void | updateOutFormat(MediaFormat mediaFormat) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Implement by child class, to define what type of encoder this instance is.
Give child class a chance to handle onFrameAvailable
frame | frame |
---|
Update encode format with input frame format.
src | input frame format |
---|---|
dst | encode format to be updated |