Class QuickTimeMeta.MediaSample

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

protected static class QuickTimeMeta.MediaSample extends Object
QuickTime stores media data in media samples. A media sample is a single element in a sequence of time-ordered data. Information about samples is stored in the mdat atom.

Please note that MediaSample objects are created on demand. This helps to save memory, because a highly multiplexed audio track may consist of many samples per second. As a consequence multiple instances of MediaSample objects may represent the same data sample in the movie.

Author:
Werner Randelshofer
  • Field Details

    • timeStamp

      public long timeStamp
      The timestamp of the first sample in the chunk in media timescale units. The value -1 is used if the timestamp is unknown.
    • isKeyframe

      public boolean isKeyframe
      Whether the sample is a sync-sample.
  • Constructor Details

    • MediaSample

      public MediaSample(long duration, long offset, long length)
      Creates a new sample.