org.pscode.jmf.protocol
Class ImageSourceStream
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageSourceStream
public ImageSourceStream(int width,
int height,
float frameRate,
byte[][] images)
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)