public class TrackHeaderBox extends FullBox
Constructor and Description |
---|
TrackHeaderBox() |
Modifier and Type | Method and Description |
---|---|
void |
decode(MP4InputStream in)
Decodes the given input stream by reading this box and all of its
children (if any).
|
int |
getAlternateGroup()
The alternate group is an integer that specifies a group or collection
of tracks.
|
long |
getCreationTime()
The creation time is an integer that declares the creation time of the
presentation in seconds since midnight, Jan. 1, 1904, in UTC time.
|
long |
getDuration()
The duration is an integer that indicates the duration of this track (in
the timescale indicated in the Movie Header Box).
|
double |
getHeight()
The height specifies the track's visual presentation height as a floating
point value.
|
int |
getLayer()
The layer specifies the front-to-back ordering of video tracks; tracks
with lower numbers are closer to the viewer. 0 is the normal value, and
-1 would be in front of track 0, and so on.
|
double[] |
getMatrix() |
long |
getModificationTime()
The modification time is an integer that declares the most recent time
the presentation was modified in seconds since midnight, Jan. 1, 1904,
in UTC time.
|
int |
getTrackID()
The track ID is an integer that uniquely identifies this track over the
entire life-time of this presentation.
|
double |
getVolume()
The volume is a floating point number that indicates the preferred
playback volume: 0.0 is mute, 1.0 is normal volume.
|
double |
getWidth()
The width specifies the track's visual presentation width as a floating
point values.
|
boolean |
isTrackEnabled()
A flag indicating that the track is enabled.
|
boolean |
isTrackInMovie()
A flag indicating that the track is used in the presentation.
|
boolean |
isTrackInPreview()
A flag indicating that the track is used when previewing the
presentation.
|
getChild, getChildren, getChildren, getLeft, getName, getOffset, getParent, getSize, getType, hasChild, hasChildren, readChildren, readChildren, setParams, toString
public void decode(MP4InputStream in) throws java.io.IOException
BoxImpl
public boolean isTrackEnabled()
public boolean isTrackInMovie()
public boolean isTrackInPreview()
public long getCreationTime()
public long getModificationTime()
public int getTrackID()
public long getDuration()
public int getLayer()
public int getAlternateGroup()
public double getVolume()
public double getWidth()
public double getHeight()
public double[] getMatrix()