| java.lang.Object | |||
| ↳ | org.opencdnunion.media.streamer.encoder.Encoder<I, O> | ||
| ↳ | org.opencdnunion.media.streamer.encoder.MediaCodecEncoderBase<I, O> | ||
| ↳ | org.opencdnunion.media.streamer.encoder.MediaCodecSurfaceEncoder | ||
MediaCodec encoder with surface as input source.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.opencdnunion.media.streamer.encoder.Encoder
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.opencdnunion.media.streamer.encoder.MediaCodecEncoderBase
| |||||||||||
From class
org.opencdnunion.media.streamer.encoder.Encoder
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MediaCodecSurfaceEncoder(GLRender glRender) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int |
getEncoderType()
Implement by child class, to define what type of encoder this instance is.
| ||||||||||
| void | release() | ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void | doFormatChanged(Object format) | ||||||||||
| int | doFrameAvailable(ImgTexFrame frame) | ||||||||||
| void | doFrameDropped(ImgTexFrame frame) | ||||||||||
| int | doStart(Object encodeConfig) | ||||||||||
| void | doStop() | ||||||||||
| ImgPacket | getOutFrame(ByteBuffer buffer, MediaCodec.BufferInfo bufferInfo) | ||||||||||
| boolean |
onFrameAvailable(ImgTexFrame 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.opencdnunion.media.streamer.encoder.MediaCodecEncoderBase
| |||||||||||
From class
org.opencdnunion.media.streamer.encoder.Encoder
| |||||||||||
From class
java.lang.Object
| |||||||||||
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 |