Class AbstractQuickTimeStream.TimeToSampleGroup
java.lang.Object
org.monte.media.quicktime.AbstractQuickTimeStream.Group
org.monte.media.quicktime.AbstractQuickTimeStream.TimeToSampleGroup
- Enclosing class:
AbstractQuickTimeStream
protected static class AbstractQuickTimeStream.TimeToSampleGroup
extends AbstractQuickTimeStream.Group
Groups consecutive smples of the same duration.
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class org.monte.media.quicktime.AbstractQuickTimeStream.Group
firstSample, lastSample, maxSampleCount, sampleCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the duration that all samples in this group share.booleanReturns true, if the chunk was added to the group.booleanReturns true, if the sample was added to the group.Methods inherited from class org.monte.media.quicktime.AbstractQuickTimeStream.Group
getSampleCount
-
Constructor Details
-
TimeToSampleGroup
-
TimeToSampleGroup
-
-
Method Details
-
maybeAddSample
Returns true, if the sample 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 TimeToSampleGroup, if it has the same duration as previously added samples, and if the capacity of the group is not exceeded.
- Overrides:
maybeAddSamplein classAbstractQuickTimeStream.Group
-
maybeAddChunk
Description copied from class:AbstractQuickTimeStream.GroupReturns 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.
- Overrides:
maybeAddChunkin classAbstractQuickTimeStream.Group
-
getSampleDuration
public long getSampleDuration()Returns the duration that all samples in this group share.
-