Class QuickTimeMeta.Track
java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.Track
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intAn identifier which specifies a collection of tracks that contain alternate data for one other.protected DateCreation time of the track.protected longThe duration of the track given in the movie time scale (derived value).protected ArrayList<QuickTimeMeta.Edit> The edit list of the track.protected StringThe fourcc type of the track.protected FormatThe format of the media in the track.protected int// Enumeration for track header flags set { TrackEnable = 0x1, // enabled track TrackInMovie = 0x2, // track in playback TrackInPreview = 0x4, // track in preview TrackInPoster = 0x8 // track in poster } TrackHeaderFlags;protected doubleThe track dimension.protected intThe track layer.protected double[]The transformation matrix of the track.The media of the track.protected FormatKeys.MediaTypeThe media type of the track.protected DateModification time of the track.intprotected intThe id of the track.Table of samples in this track.protected doubleThe audio volume of the track.protected doubleThe track dimension. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildMediaSamplesTable(long movieTimeScale) voidbuildSamplesTable(long movieTimeScale) Builds the samples table for this track.voidbuildTrackSamplesTable(long movieTimeScale) longgetTrackDuration(long movieTimeScale) Gets the track duration in the movie timescale.booleanbooleanbooleanbooleanvoidsetEnabled(boolean newValue) voidsetInMovie(boolean newValue) voidsetInPoster(boolean newValue) voidsetInPreview(boolean newValue) toString()
-
Field Details
-
trackSampleMap
Table of samples in this track.This value is derived from the media data in this track, and from the edit list of this track.
This value is set to null to indicate that it must be recomputed.
- Map.key
- absolute movie time of a track sample
- Map.value
- track sample
-
trackSamplesList
-
readIndex
public int readIndex -
mediaType
The media type of the track. -
encoding
The fourcc type of the track. -
format
The format of the media in the track. -
headerFlags
protected int headerFlags// Enumeration for track header flags set { TrackEnable = 0x1, // enabled track TrackInMovie = 0x2, // track in playback TrackInPreview = 0x4, // track in preview TrackInPoster = 0x8 // track in poster } TrackHeaderFlags; -
creationTime
Creation time of the track. -
modificationTime
Modification time of the track. -
trackId
protected int trackIdThe id of the track. The value 0 cannot be used. -
duration
protected long durationThe duration of the track given in the movie time scale (derived value). The value is equal to the sum of all track edits. If there are no edits, then the value is the sum of all sample durations converted into the movie time scale. -
layer
protected int layerThe track layer. Tracks with lower layers are displayed in front of tracks with higher layers. -
alternateGroup
protected int alternateGroupAn identifier which specifies a collection of tracks that contain alternate data for one other. Only one track of an alternate group is displayed based on selection criteria such as quality, language or computer capabilities. -
volume
protected double volumeThe audio volume of the track. 1.0 means normal volume. -
matrix
protected double[] matrixThe transformation matrix of the track. -
width
protected double widthThe track dimension. -
height
protected double heightThe track dimension. -
editList
The edit list of the track. -
media
The media of the track.
-
-
Constructor Details
-
Track
protected Track()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean newValue) -
isEnabled
public boolean isEnabled() -
setInMovie
public void setInMovie(boolean newValue) -
isInMovie
public boolean isInMovie() -
setInPreview
public void setInPreview(boolean newValue) -
isInPreview
public boolean isInPreview() -
setInPoster
public void setInPoster(boolean newValue) -
isInPoster
public boolean isInPoster() -
getTrackDuration
public long getTrackDuration(long movieTimeScale) Gets the track duration in the movie timescale.- Parameters:
movieTimeScale- The timescale of the movie.
-
buildSamplesTable
Builds the samples table for this track.- Throws:
IOException
-
buildTrackSamplesTable
- Throws:
IOException
-
buildMediaSamplesTable
- Throws:
IOException
-
toString
-