Class AbstractAVIStream.Sample

java.lang.Object
org.monte.media.avi.AbstractAVIStream.Sample
Enclosing class:
AbstractAVIStream

protected static class AbstractAVIStream.Sample extends Object
AVI stores media data in sample chunks. A sample chunk may contain one or more media samples. A media sample is a single element in a sequence of time-ordered data.
  • Field Details

    • offset

      public long offset
      Byte offset of the sample chunk relative to the startTime of the AVI file.
    • length

      public long length
      Data length of the sample chunk.
    • duration

      public int duration
      The number of media samples in the sample chunk.
    • isKeyframe

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

      public long timeStamp
  • Constructor Details

    • Sample

      public Sample(int chunkId, int duration, long offset, long length, boolean isSync)
      Creates a new sample.
      Parameters:
      duration - The number of media samples contained in the sample chunk.
      offset - The offset in the AVI stream.
      length - The length in the AVI stream.