public interface IVideoStreamCodec
| Modifier and Type | Interface and Description |
|---|---|
static class |
IVideoStreamCodec.FrameData
Holder for video frame data.
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
FLV_FRAME_KEY
FLV frame marker constant
|
| 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 |
addData(org.apache.mina.core.buffer.IoBuffer data,
int timestamp)
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 index)
Gets data of interframe with the specified index.
|
org.apache.mina.core.buffer.IoBuffer |
getKeyframe()
Returns keyframe data.
|
IVideoStreamCodec.FrameData[] |
getKeyframes()
Returns all the keyframe data.
|
String |
getName() |
int |
getNumInterframes()
Returns the number of interframes collected from last keyframe.
|
void |
reset()
Reset the codec to its initial state.
|
static final byte FLV_FRAME_KEY
String getName()
void reset()
boolean canDropFrames()
boolean canHandleData(org.apache.mina.core.buffer.IoBuffer data)
data - some sample data to see if this codec can handle itboolean addData(org.apache.mina.core.buffer.IoBuffer data)
data - data to tell the codec we're addingboolean addData(org.apache.mina.core.buffer.IoBuffer data,
int timestamp)
data - data to tell the codec we're addingtimestamp - time associated with the dataorg.apache.mina.core.buffer.IoBuffer getKeyframe()
IVideoStreamCodec.FrameData[] getKeyframes()
org.apache.mina.core.buffer.IoBuffer getDecoderConfiguration()
int getNumInterframes()
IVideoStreamCodec.FrameData getInterframe(int index)
index - of interframeCopyright © 2005–2017 Red5. All rights reserved.