Class QuickTimeMeta.Track

java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.Track
Enclosing class:
QuickTimeMeta

protected static class QuickTimeMeta.Track extends Object
Represents a track.
Author:
Werner Randelshofer
  • 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

      public ArrayList<QuickTimeMeta.TrackSample> trackSamplesList
    • readIndex

      public int readIndex
    • mediaType

      protected FormatKeys.MediaType mediaType
      The media type of the track.
    • encoding

      protected String encoding
      The fourcc type of the track.
    • format

      protected Format 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

      protected Date creationTime
      Creation time of the track.
    • modificationTime

      protected Date modificationTime
      Modification time of the track.
    • trackId

      protected int trackId
      The id of the track. The value 0 cannot be used.
    • duration

      protected long duration
      The 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 layer
      The track layer. Tracks with lower layers are displayed in front of tracks with higher layers.
    • alternateGroup

      protected int alternateGroup
      An 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 volume
      The audio volume of the track. 1.0 means normal volume.
    • matrix

      protected double[] matrix
      The transformation matrix of the track.
    • width

      protected double width
      The track dimension.
    • height

      protected double height
      The track dimension.
    • editList

      protected ArrayList<QuickTimeMeta.Edit> editList
      The edit list of the track.
    • media

      public QuickTimeMeta.Media 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

      public void buildSamplesTable(long movieTimeScale) throws IOException
      Builds the samples table for this track.
      Throws:
      IOException
    • buildTrackSamplesTable

      public void buildTrackSamplesTable(long movieTimeScale) throws IOException
      Throws:
      IOException
    • buildMediaSamplesTable

      public void buildMediaSamplesTable(long movieTimeScale) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object