protected abstract class AbstractQuickTimeStream.Track
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<AbstractQuickTimeStream.Chunk> |
chunks
List of chunks.
|
protected Codec |
codec
The codec.
|
protected AbstractQuickTimeStream.Edit[] |
editList
The edit list of the track.
|
protected Format |
format
The format of the media in the track.
|
protected double |
height |
protected Buffer |
inputBuffer |
protected Rational |
inputTime
Start time of the first buffer that was added to the track.
|
protected double[] |
matrix
The transformation matrix of the track.
|
protected java.lang.String |
mediaCompressionType
The compression type of the media.
|
protected java.lang.String |
mediaCompressorName
The compressor name.
|
protected long |
mediaDuration
The duration of the media in this track in media time units.
|
protected long |
mediaTimeScale
The timeScale of the media in the track.
|
protected FormatKeys.MediaType |
mediaType
The media type of the track.
|
protected Buffer |
outputBuffer |
protected long |
sampleCount
The number of samples in this track.
|
protected java.util.ArrayList<AbstractQuickTimeStream.SampleSizeGroup> |
sampleSizes
List of SampleSize entries.
|
protected int |
syncInterval
Interval between sync samples (keyframes).
|
protected java.util.ArrayList<java.lang.Long> |
syncSamples
List of sync samples.
|
protected java.util.ArrayList<AbstractQuickTimeStream.TimeToSampleGroup> |
timeToSamples
List of TimeToSample entries.
|
protected double |
width |
protected Rational |
writeTime
Current write time.
|
Constructor and Description |
---|
Track(FormatKeys.MediaType mediaType) |
Modifier and Type | Method and Description |
---|---|
void |
addChunk(AbstractQuickTimeStream.Chunk chunk,
boolean isSyncSample) |
void |
addSample(AbstractQuickTimeStream.Sample sample,
int sampleDescriptionId,
boolean isSyncSample) |
long |
getSampleCount() |
long |
getTrackDuration(long movieTimeScale)
Gets the track duration in the movie time scale.
|
boolean |
isEmpty() |
protected void |
writeMediaInformationAtoms(AbstractQuickTimeStream.CompositeAtom mdiaAtom) |
protected abstract void |
writeMediaInformationHeaderAtom(AbstractQuickTimeStream.CompositeAtom minfAtom) |
protected abstract void |
writeSampleDescriptionAtom(AbstractQuickTimeStream.CompositeAtom stblAtom) |
protected void |
writeSampleTableAtoms(AbstractQuickTimeStream.CompositeAtom minfAtom) |
protected void |
writeTrackAtoms(int trackIndex,
AbstractQuickTimeStream.CompositeAtom moovAtom,
java.util.Date modificationTime)
FIXME - Move this method into QuickTimeOutputStream.
|
protected final FormatKeys.MediaType mediaType
protected Format format
protected long mediaTimeScale
protected java.lang.String mediaCompressionType
protected java.lang.String mediaCompressorName
protected java.util.ArrayList<AbstractQuickTimeStream.Chunk> chunks
protected java.util.ArrayList<AbstractQuickTimeStream.TimeToSampleGroup> timeToSamples
protected java.util.ArrayList<AbstractQuickTimeStream.SampleSizeGroup> sampleSizes
protected java.util.ArrayList<java.lang.Long> syncSamples
protected long sampleCount
protected long mediaDuration
protected AbstractQuickTimeStream.Edit[] editList
protected int syncInterval
protected Codec codec
protected Buffer outputBuffer
protected Buffer inputBuffer
protected Rational inputTime
protected Rational writeTime
protected double[] matrix
protected double width
protected double height
public Track(FormatKeys.MediaType mediaType)
public void addSample(AbstractQuickTimeStream.Sample sample, int sampleDescriptionId, boolean isSyncSample)
public void addChunk(AbstractQuickTimeStream.Chunk chunk, boolean isSyncSample)
public boolean isEmpty()
public long getSampleCount()
public long getTrackDuration(long movieTimeScale)
movieTimeScale
- The time scale of the movie.protected void writeTrackAtoms(int trackIndex, AbstractQuickTimeStream.CompositeAtom moovAtom, java.util.Date modificationTime) throws java.io.IOException
java.io.IOException
protected void writeMediaInformationAtoms(AbstractQuickTimeStream.CompositeAtom mdiaAtom) throws java.io.IOException
java.io.IOException
protected abstract void writeMediaInformationHeaderAtom(AbstractQuickTimeStream.CompositeAtom minfAtom) throws java.io.IOException
java.io.IOException
protected abstract void writeSampleDescriptionAtom(AbstractQuickTimeStream.CompositeAtom stblAtom) throws java.io.IOException
java.io.IOException
protected void writeSampleTableAtoms(AbstractQuickTimeStream.CompositeAtom minfAtom) throws java.io.IOException
java.io.IOException