protected static class AbstractQuickTimeStream.TimeToSampleGroup extends AbstractQuickTimeStream.Group
firstSample, lastSample, maxSampleCount, sampleCount
Constructor and Description |
---|
TimeToSampleGroup(AbstractQuickTimeStream.Group group) |
TimeToSampleGroup(AbstractQuickTimeStream.Sample firstSample) |
Modifier and Type | Method and Description |
---|---|
long |
getSampleDuration()
Returns the duration that all samples in this group share.
|
boolean |
maybeAddChunk(AbstractQuickTimeStream.Chunk chunk)
Returns true, if the chunk was added to the group.
|
boolean |
maybeAddSample(AbstractQuickTimeStream.Sample sample)
Returns true, if the sample was added to the group.
|
getSampleCount
public TimeToSampleGroup(AbstractQuickTimeStream.Sample firstSample)
public TimeToSampleGroup(AbstractQuickTimeStream.Group group)
public boolean maybeAddSample(AbstractQuickTimeStream.Sample sample)
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.
maybeAddSample
in class AbstractQuickTimeStream.Group
public boolean maybeAddChunk(AbstractQuickTimeStream.Chunk chunk)
AbstractQuickTimeStream.Group
A chunk can only be added to a group, if the capacity of the group is not exceeded.
maybeAddChunk
in class AbstractQuickTimeStream.Group
public long getSampleDuration()