Copyright 2013-01-06 Werner Randelshofer

org.monte.media
Interface Track

All Known Implementing Classes:
ANIMTrack, ImageSequenceTrack, SEQTrack

public interface Track

A Track refers to media data that can be interpreted in a time coordinate system.

A track is the output of a Demultiplexer.

Version:
1.0 2011-02-20 Created.
Author:
Werner Randelshofer

Method Summary
 long getPosition()
          Gets the read position.
 long getSampleCount()
          Returns the numbers of samples in this track.
 void read(Buffer buf)
          Reads a sample from the input stream.
 void setPosition(long pos)
          Sets the read position.
 

Method Detail

getSampleCount

long getSampleCount()
Returns the numbers of samples in this track.


setPosition

void setPosition(long pos)
Sets the read position.


getPosition

long getPosition()
Gets the read position.


read

void read(Buffer buf)
          throws java.io.IOException
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.

Parameters:
buf - The buffer for the sample.
Throws:
java.io.IOException

Copyright 2013-01-06 Werner Randelshofer