Class QuickTimeMeta.Edit

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

public static class QuickTimeMeta.Edit extends Object
An Edit define the portions of the media that are to be used to build up a track for a movie. The edits themselves are stored in an edit list table, which consists of time offset and duration values for each segment.

In the absence of an edit list, the presentation of the track starts immediately. An empty edit is used to offset the start time of a track.

Author:
Werner Randelshofer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    A 32-bit fixed-point number (16.16) that specifies the relative rate at which to play the media corresponding to this edit segment.
    long
    A 32-bit integer containing the start time within the media of this edit segment (in media time scale units).
    long
    A 32-bit integer that specifies the duration of this edit segment in units of the movie's time scale.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Edit(long trackDuration, int mediaTime, double mediaRate)
    Creates an edit.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • trackDuration

      public long trackDuration
      A 32-bit integer that specifies the duration of this edit segment in units of the movie's time scale.
    • mediaTime

      public long mediaTime
      A 32-bit integer containing the start time within the media of this edit segment (in media time scale units). If this field is set to -1, it is an empty edit. The last edit in a track should never be an empty edit. Any differece between the movie's duration and the track's duration is expressed as an implicit empty edit.
    • mediaRate

      public double mediaRate
      A 32-bit fixed-point number (16.16) that specifies the relative rate at which to play the media corresponding to this edit segment. This rate value cannot be 0 or negative.
  • Constructor Details

    • Edit

      public Edit(long trackDuration, int mediaTime, double mediaRate)
      Creates an edit.
      Parameters:
      trackDuration - Duration of this edit in the movie's timescale.
      mediaTime - Start time of this edit in the media's timescale. Specify -1 for an empty edit. The last edit in a track should never be an empty edit.
      mediaRate - The relative rate at which to play this edit.
  • Method Details