jfract V1.0a

org.jfract.util
Class MovieBuilder.ImageSourceStream

java.lang.Object
  |
  +--org.jfract.util.MovieBuilder.ImageSourceStream
All Implemented Interfaces:
javax.media.Controls, javax.media.protocol.Controls, javax.media.protocol.PullBufferStream, javax.media.protocol.SourceStream
Enclosing class:
MovieBuilder

class MovieBuilder.ImageSourceStream
extends java.lang.Object
implements javax.media.protocol.PullBufferStream

The source stream to go along with ImageDataSource.


Field Summary
(package private)  boolean ended
           
(package private)  javax.media.format.VideoFormat format
           
(package private)  int height
           
(package private)  java.util.Vector images
           
(package private)  int nextImage
           
(package private)  int width
           
 
Fields inherited from interface javax.media.protocol.SourceStream
LENGTH_UNKNOWN
 
Constructor Summary
MovieBuilder.ImageSourceStream(int width, int height, int frameRate, java.util.Vector images)
           
 
Method Summary
 boolean endOfStream()
           
 javax.media.protocol.ContentDescriptor getContentDescriptor()
           
 long getContentLength()
           
 java.lang.Object getControl(java.lang.String type)
           
 java.lang.Object[] getControls()
           
 javax.media.Format getFormat()
          Return the format of each video frame.
 void read(javax.media.Buffer buf)
          This is called from the Processor to read a frame worth of video data.
 boolean willReadBlock()
          We should never need to block assuming data are read from files.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

images

java.util.Vector images

width

int width

height

int height

format

javax.media.format.VideoFormat format

nextImage

int nextImage

ended

boolean ended
Constructor Detail

MovieBuilder.ImageSourceStream

public MovieBuilder.ImageSourceStream(int width,
                                      int height,
                                      int frameRate,
                                      java.util.Vector images)
Method Detail

willReadBlock

public boolean willReadBlock()
We should never need to block assuming data are read from files.
Specified by:
willReadBlock in interface javax.media.protocol.PullBufferStream

read

public void read(javax.media.Buffer buf)
          throws java.io.IOException
This is called from the Processor to read a frame worth of video data.
Specified by:
read in interface javax.media.protocol.PullBufferStream

getFormat

public javax.media.Format getFormat()
Return the format of each video frame. That will be JPEG.
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

jfract V1.0a

Generee le 27.09.2002 08:21:59 PM