protected static class AbstractQuickTimeStream.SampleSizeGroup extends AbstractQuickTimeStream.Group
firstSample, lastSample, maxSampleCount, sampleCount
Constructor and Description |
---|
SampleSizeGroup(AbstractQuickTimeStream.Group group) |
SampleSizeGroup(AbstractQuickTimeStream.Sample firstSample) |
Modifier and Type | Method and Description |
---|---|
long |
getSampleLength()
Returns the length 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 SampleSizeGroup(AbstractQuickTimeStream.Sample firstSample)
public SampleSizeGroup(AbstractQuickTimeStream.Group group)
public boolean maybeAddSample(AbstractQuickTimeStream.Sample sample)
A sample can only be added to a SampleSizeGroup, if it has the same size 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 getSampleLength()