java.lang.Object
org.monte.media.imgseq.ImageSequenceTrack
- All Implemented Interfaces:
Track
ImageSequenceTrack.- Author:
- Werner Randelshofer
-
Constructor Summary
ConstructorsConstructorDescriptionImageSequenceTrack(File[] files) ImageSequenceTrack(File dir, FileFilter filter) -
Method Summary
Modifier and TypeMethodDescriptionlongGets the format of the track.longGets the read position.longReturns the numbers of samples in this track.longvoidReads a sample from the input stream.voidsetFileDuration(long newValue) voidsetPosition(long pos) Sets the read position.voidsetTimeScale(long newValue)
-
Constructor Details
-
ImageSequenceTrack
- Throws:
IOException
-
ImageSequenceTrack
- Throws:
IOException
-
-
Method Details
-
getFileDuration
public long getFileDuration() -
setFileDuration
public void setFileDuration(long newValue) -
getTimeScale
public long getTimeScale() -
setTimeScale
public void setTimeScale(long newValue) -
getSampleCount
public long getSampleCount()Description copied from interface:TrackReturns the numbers of samples in this track.- Specified by:
getSampleCountin interfaceTrack- Returns:
- sample count
-
setPosition
public void setPosition(long pos) Description copied from interface:TrackSets the read position.- Specified by:
setPositionin interfaceTrack- Parameters:
pos- desired position
-
getPosition
public long getPosition()Description copied from interface:TrackGets the read position.- Specified by:
getPositionin interfaceTrack- Returns:
- the current position
-
read
Description copied from interface:TrackReads a sample from the input stream. If the end of the track is reached, the discard-flag in the buffer is set to true.- Specified by:
readin interfaceTrack- Parameters:
buf- The buffer for the sample.- Throws:
IOException- if an error occurs
-
getFormat
Description copied from interface:TrackGets the format of the track.
-