Class ImageSequenceTrack

java.lang.Object
org.monte.media.imgseq.ImageSequenceTrack
All Implemented Interfaces:
Track

public class ImageSequenceTrack extends Object implements Track
ImageSequenceTrack.
Author:
Werner Randelshofer
  • Constructor Details

  • 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: Track
      Returns the numbers of samples in this track.
      Specified by:
      getSampleCount in interface Track
      Returns:
      sample count
    • setPosition

      public void setPosition(long pos)
      Description copied from interface: Track
      Sets the read position.
      Specified by:
      setPosition in interface Track
      Parameters:
      pos - desired position
    • getPosition

      public long getPosition()
      Description copied from interface: Track
      Gets the read position.
      Specified by:
      getPosition in interface Track
      Returns:
      the current position
    • read

      public void read(Buffer buf) throws IOException
      Description copied from interface: Track
      Reads 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:
      read in interface Track
      Parameters:
      buf - The buffer for the sample.
      Throws:
      IOException - if an error occurs
    • getFormat

      public Format getFormat()
      Description copied from interface: Track
      Gets the format of the track.
      Specified by:
      getFormat in interface Track
      Returns:
      the format of the track