Class QuickTimeMeta.Group

java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.Group
Direct Known Subclasses:
QuickTimeMeta.Chunk, QuickTimeMeta.SampleSizeGroup, QuickTimeMeta.TimeToSampleGroup
Enclosing class:
QuickTimeMeta

protected abstract static class QuickTimeMeta.Group extends Object
Groups consecutive samples with same characteristics.
Author:
Werner Randelshofer
  • Field Details

  • Constructor Details

  • Method Details

    • maybeAddSample

      protected boolean maybeAddSample(QuickTimeMeta.MediaSample sample)
      Returns true, if the samples was added to the group. If false is returned, the sample must be added to a new group.

      A sample can only be added to a group, if the capacity of the group is not exceeded.

    • maybeAddChunk

      protected boolean maybeAddChunk(QuickTimeMeta.Chunk chunk)
      Returns true, if the chunk was added to the group. If false is returned, the chunk must be added to a new group.

      A chunk can only be added to a group, if the capacity of the group is not exceeded.

    • getSampleCount

      public long getSampleCount()