java.lang.Object | ||
↳ | org.opencdnunion.media.streamer.encoder.Encoder<I, O> | |
↳ | org.opencdnunion.media.streamer.encoder.MediaCodecEncoderBase<I, O> |
![]() |
MediaCodec encoder module base.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected MediaCodec.BufferInfo | mBufferInfo | ||||||||||
protected MediaCodec | mEncoder | ||||||||||
protected boolean | mForceEos | ||||||||||
protected Object | mOutConfig |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MediaCodecEncoderBase() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
signalEndOfStream()
This method should be called before the last input packet is queued
Some devices don't honor MediaCodec#signalEndOfInputStream
e.g: Google Glass
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | doAdjustBitrate(int targetBitrate) | ||||||||||
void | drainEncoder(boolean endOfStream) | ||||||||||
void | fillEncoder(ByteBuffer buffer, long ptsUs) | ||||||||||
abstract O | getOutFrame(ByteBuffer buffer, MediaCodec.BufferInfo bufferInfo) | ||||||||||
abstract void | updateOutFormat(MediaFormat mediaFormat) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
This method should be called before the last input packet is queued Some devices don't honor MediaCodec#signalEndOfInputStream e.g: Google Glass