java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.Group
org.monte.media.quicktime.QuickTimeMeta.TimeToSampleGroup
- Enclosing class:
QuickTimeMeta
Groups consecutive samples of the same duration.
-
Field Summary
Fields inherited from class org.monte.media.quicktime.QuickTimeMeta.Group
firstSample, lastSample, maxSampleCount, sampleCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionTimeToSampleGroup(QuickTimeMeta.Sample firstSample) protectedTimeToSampleGroup(QuickTimeMeta.Sample firstSample, QuickTimeMeta.Sample lastSample, long sampleCount) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the duration that all samples in this group share.booleanmaybeAddChunk(QuickTimeMeta.Chunk chunk) Returns true, if the chunk was added to the group.booleanmaybeAddSample(QuickTimeMeta.Sample sample) Returns true, if the sample was added to the group.Methods inherited from class org.monte.media.quicktime.QuickTimeMeta.Group
getSampleCount
-
Constructor Details
-
TimeToSampleGroup
-
TimeToSampleGroup
protected TimeToSampleGroup(QuickTimeMeta.Sample firstSample, QuickTimeMeta.Sample lastSample, long sampleCount) -
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 classQuickTimeMeta.Group
-
maybeAddChunk
Description copied from class:QuickTimeMeta.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 classQuickTimeMeta.Group
-
getSampleDuration
public long getSampleDuration()Returns the duration that all samples in this group share.
-