protected static class AbstractQuickTimeStream.TimeToSampleGroup extends AbstractQuickTimeStream.Group
firstSample, lastSample, maxSampleCount, sampleCount| Constructor and Description |
|---|
AbstractQuickTimeStream.TimeToSampleGroup(AbstractQuickTimeStream.Group group) |
AbstractQuickTimeStream.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.
|
getSampleCountpublic AbstractQuickTimeStream.TimeToSampleGroup(AbstractQuickTimeStream.Sample firstSample)
public AbstractQuickTimeStream.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.Grouppublic boolean maybeAddChunk(AbstractQuickTimeStream.Chunk chunk)
AbstractQuickTimeStream.GroupA chunk can only be added to a group, if the capacity of the group is not exceeded.
maybeAddChunk in class AbstractQuickTimeStream.Grouppublic long getSampleDuration()
Copyright © 2014. All Rights Reserved.