public class ScreenVideo2 extends Object implements IVideoStreamCodec
IVideoStreamCodec.FrameDataFLV_FRAME_KEY| Constructor and Description |
|---|
ScreenVideo2()
Constructs a new ScreenVideo2.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addData(org.apache.mina.core.buffer.IoBuffer data)
Update the state of the codec with the passed data.
|
boolean |
canDropFrames()
Check if the codec supports frame dropping.
|
boolean |
canHandleData(org.apache.mina.core.buffer.IoBuffer data)
Returns true if the codec knows how to handle the passed stream data.
|
org.apache.mina.core.buffer.IoBuffer |
getDecoderConfiguration()
Returns information used to configure the decoder.
|
IVideoStreamCodec.FrameData |
getInterframe(int idx)
Gets data of interframe with the specified index.
|
org.apache.mina.core.buffer.IoBuffer |
getKeyframe()
Returns keyframe data.
|
String |
getName() |
int |
getNumInterframes()
Returns the number of interframes collected from last keyframe.
|
void |
reset()
Reset the codec to its initial state.
|
public String getName()
getName in interface IVideoStreamCodecpublic void reset()
reset in interface IVideoStreamCodecpublic boolean canHandleData(org.apache.mina.core.buffer.IoBuffer data)
canHandleData in interface IVideoStreamCodecdata - some sample data to see if this codec can handle itpublic boolean canDropFrames()
canDropFrames in interface IVideoStreamCodecpublic boolean addData(org.apache.mina.core.buffer.IoBuffer data)
addData in interface IVideoStreamCodecdata - data to tell the codec we're addingpublic org.apache.mina.core.buffer.IoBuffer getKeyframe()
getKeyframe in interface IVideoStreamCodecpublic org.apache.mina.core.buffer.IoBuffer getDecoderConfiguration()
IVideoStreamCodecgetDecoderConfiguration in interface IVideoStreamCodecpublic int getNumInterframes()
getNumInterframes in interface IVideoStreamCodecpublic IVideoStreamCodec.FrameData getInterframe(int idx)
getInterframe in interface IVideoStreamCodecidx - of interframeCopyright © 2005–2016 Red5. All rights reserved.