org.red5.server.stream.codec
Class SorensonVideo

java.lang.Object
  extended by org.red5.server.stream.codec.SorensonVideo
All Implemented Interfaces:
IVideoStreamCodec

public class SorensonVideo
extends Object
implements IVideoStreamCodec

Red5 video codec for the sorenson video format. VERY simple implementation, just stores last keyframe.

Author:
The Red5 Project (red5@osflash.org), Joachim Bauch (jojo@struktur.de)

Constructor Summary
SorensonVideo()
          Constructs a new SorensonVideo.
 
Method Summary
 boolean addData(org.apache.mina.common.ByteBuffer 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.common.ByteBuffer data)
          Returns true if the codec knows how to handle the passed stream data.
 org.apache.mina.common.ByteBuffer getKeyframe()
          Return the data for a keyframe.
 String getName()
          Return the name of the video codec.
 void reset()
          Reset the codec to its initial state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SorensonVideo

public SorensonVideo()
Constructs a new SorensonVideo.

Method Detail

getName

public String getName()
Return the name of the video codec.

Specified by:
getName in interface IVideoStreamCodec
Returns:

canDropFrames

public boolean canDropFrames()
Check if the codec supports frame dropping.

Specified by:
canDropFrames in interface IVideoStreamCodec
Returns:

reset

public void reset()
Reset the codec to its initial state.

Specified by:
reset in interface IVideoStreamCodec

canHandleData

public boolean canHandleData(org.apache.mina.common.ByteBuffer data)
Returns true if the codec knows how to handle the passed stream data.

Specified by:
canHandleData in interface IVideoStreamCodec
Returns:

addData

public boolean addData(org.apache.mina.common.ByteBuffer data)
Update the state of the codec with the passed data.

Specified by:
addData in interface IVideoStreamCodec
Returns:

getKeyframe

public org.apache.mina.common.ByteBuffer getKeyframe()
Return the data for a keyframe.

Specified by:
getKeyframe in interface IVideoStreamCodec
Returns:


Copyright © 2006-2007 the Red5 project.