uchicago.src.sim.gui
Class BufferSourceStream
java.lang.Object
uchicago.src.sim.gui.BufferSourceStream
- All Implemented Interfaces:
- javax.media.Controls, javax.media.protocol.PullBufferStream, javax.media.protocol.SourceStream
public class BufferSourceStream
- extends java.lang.Object
- implements javax.media.protocol.PullBufferStream
A DataSourceStream for turning JMF Buffers into movies. The JMF Buffers
are created by DisplaySurface. See the Java Media Framework documentation
for more details on BufferStreams etc.
- Version:
- $Revision: 1.4 $ $Date: 2004/11/03 19:50:59 $
- Author:
- Nick Collier
| Fields inherited from interface javax.media.protocol.SourceStream |
LENGTH_UNKNOWN |
|
Constructor Summary |
BufferSourceStream(int width,
int height,
int frameRate,
javax.media.format.RGBFormat aFormat)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferSourceStream
public BufferSourceStream(int width,
int height,
int frameRate,
javax.media.format.RGBFormat aFormat)
addBuffer
public void addBuffer(javax.media.Buffer buf)
waitForDone
public void waitForDone()
willReadBlock
public boolean willReadBlock()
- Specified by:
willReadBlock in interface javax.media.protocol.PullBufferStream
read
public void read(javax.media.Buffer buf)
- Specified by:
read in interface javax.media.protocol.PullBufferStream
getFormat
public javax.media.Format getFormat()
- Specified by:
getFormat in interface javax.media.protocol.PullBufferStream
getContentDescriptor
public javax.media.protocol.ContentDescriptor getContentDescriptor()
- Specified by:
getContentDescriptor in interface javax.media.protocol.SourceStream
getContentLength
public long getContentLength()
- Specified by:
getContentLength in interface javax.media.protocol.SourceStream
endOfStream
public boolean endOfStream()
- Specified by:
endOfStream in interface javax.media.protocol.SourceStream
getControls
public java.lang.Object[] getControls()
- Specified by:
getControls in interface javax.media.Controls
getControl
public java.lang.Object getControl(java.lang.String type)
- Specified by:
getControl in interface javax.media.Controls