|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkrut.KRUT_Recording.DataList
public class DataList
DataList is a class used to reload the images from the file they are saved in by the ScreenGrabber, and then supply them to the JpegImagesToMovieMod class. In other words, this is a class for communication between the ScreenGrabber class and the JpegImagesToMovieMod class. It opens the file containing the images from the grabber, and then supplies the JpegImagesToMovieMod with the images one by one, through the readNode method. This class does not take any arguments to it's constructor, but nevertheless, the following things need to be done before the DataList class can be used: The input file containing the data of the images making up every frame must be set using the setInFile(File) method. A user must also provide an integer array containting the size in bytes for every image in the File inFile. Additionally, an integer array containing the numbers of images marked as "missed" must be provided. Finally, a user must provide an integer value of the total number of frames. See the parameter comments for more details.
Field Summary | |
---|---|
int |
donePics
A simple counter of how many unique frames we have sent. |
boolean |
finished
This flag is set to true by the program when all the frames have been delivered. |
java.io.File |
inFile
The input file for the frames. |
java.io.FileInputStream |
inStream
The stream wrapping inFile. |
int[] |
missedFrames
The parameter missedFrames should, before encoding is started, contain an array of the frame number of every frame that is missing from the image file inFile. |
int[] |
picSizes
The parameter picSizes should, before encoding is started, contain an array of the size in bytes of every single image in the image file inFile. |
int |
sentPics
How many frames have been sent in total, including doublets. |
int |
totalPics
This is an integer containing the total number of frames in the picSizes array. |
Method Summary | |
---|---|
byte[] |
readNode()
Read the next frame |
boolean |
setInFile(java.io.File input)
Sets the file containing the frames. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean finished
public int totalPics
public int donePics
public int sentPics
public java.io.FileInputStream inStream
public java.io.File inFile
public int[] picSizes
public int[] missedFrames
Method Detail |
---|
public boolean setInFile(java.io.File input)
input
- A file containg the frames for the movie.
public byte[] readNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |