org.pscode.jmf.protocol
Class ImageSourceStream

java.lang.Object
  extended by org.pscode.jmf.protocol.ImageSourceStream

public class ImageSourceStream
extends Object

The source stream to go along with ImageDataSource.


Constructor Summary
ImageSourceStream(int width, int height, float frameRate, byte[][] images)
           
 
Method Summary
 boolean endOfStream()
           
 ContentDescriptor getContentDescriptor()
           
 long getContentLength()
           
 Object getControl(String type)
           
 Object[] getControls()
           
 Format getFormat()
          Return the format of each video frame.That will be JPEG.
 void read(Buffer buf)
          This is called from the Processor to read a frame worth of video data.
 boolean willReadBlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSourceStream

public ImageSourceStream(int width,
                         int height,
                         float frameRate,
                         byte[][] images)
Method Detail

willReadBlock

public boolean willReadBlock()

read

public void read(Buffer buf)
This is called from the Processor to read a frame worth of video data.


getFormat

public Format getFormat()
Return the format of each video frame.That will be JPEG.


getContentDescriptor

public ContentDescriptor getContentDescriptor()

getContentLength

public long getContentLength()

endOfStream

public boolean endOfStream()

getControls

public Object[] getControls()

getControl

public Object getControl(String type)