com.smaxe.uv.media.core
Class IMediaFileReader.TrackSample

java.lang.Object
  extended by com.smaxe.uv.media.core.IMediaFileReader.TrackSample
Enclosing interface:
IMediaFileReader

public static class IMediaFileReader.TrackSample
extends java.lang.Object

TrackSample - track sample.


Field Summary
 int id
          Sample id.
 boolean key
          Is key sample flag.
 int rtime
          Sample time, relative to the previous (in milliseconds)
 long size
          Sample size.
 long timestamp
          Sample timestamp, relative to the track start time (in milliseconds).
 MediaTrackInfo track
          Track info.
 
Constructor Summary
IMediaFileReader.TrackSample(MediaTrackInfo track, int id, int rtime, long timestamp, long size, boolean key)
          Constructor.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

track

public MediaTrackInfo track
Track info.


id

public final int id
Sample id.


rtime

public final int rtime
Sample time, relative to the previous (in milliseconds)


timestamp

public final long timestamp
Sample timestamp, relative to the track start time (in milliseconds).


size

public final long size
Sample size.


key

public final boolean key
Is key sample flag.

Constructor Detail

IMediaFileReader.TrackSample

public IMediaFileReader.TrackSample(MediaTrackInfo track,
                                    int id,
                                    int rtime,
                                    long timestamp,
                                    long size,
                                    boolean key)
Constructor.

Parameters:
track - sample track
id - sample id
rtime - sample relative timestamp (relative to the previous sample)
timestamp - sample timestamp
size - sample size (in bytes)
key - 'key' flag
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object