java.lang.Object
org.monte.media.quicktime.AbstractQuickTimeStream.Group
- Direct Known Subclasses:
AbstractQuickTimeStream.Chunk,AbstractQuickTimeStream.SampleSizeGroup,AbstractQuickTimeStream.TimeToSampleGroup
- Enclosing class:
AbstractQuickTimeStream
Groups consecutive samples with same characteristics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractQuickTimeStream.Sampleprotected AbstractQuickTimeStream.Sampleprotected static final longprotected long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedGroup(AbstractQuickTimeStream.Sample firstSample) protectedGroup(AbstractQuickTimeStream.Sample firstSample, AbstractQuickTimeStream.Sample lastSample, long sampleCount) -
Method Summary
Modifier and TypeMethodDescriptionlongprotected booleanReturns true, if the chunk was added to the group.protected booleanReturns true, if the samples was added to the group.
-
Field Details
-
firstSample
-
lastSample
-
sampleCount
protected long sampleCount -
maxSampleCount
protected static final long maxSampleCount- See Also:
-
-
Constructor Details
-
Group
-
Group
protected Group(AbstractQuickTimeStream.Sample firstSample, AbstractQuickTimeStream.Sample lastSample, long sampleCount) -
Group
-
-
Method Details
-
maybeAddSample
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
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()
-