Class AbstractAVIStream.Sample
java.lang.Object
org.monte.media.avi.AbstractAVIStream.Sample
- Enclosing class:
AbstractAVIStream
AVI stores media data in sample chunks. A sample chunk may contain one or
more media samples. A media sample is a single element in a sequence of
time-ordered data.
- Author:
- Werner Randelshofer
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of media samples in the sample chunk.Palette change sample.booleanWhether the sample is a sync-sample.longData length of the sample chunk in bytes.longByte offset of the sample chunk relative to the startTime of the AVI file.longThe timestamp of the first sample in the chunk. -
Constructor Summary
ConstructorsConstructorDescriptionSample(int chunkId, int duration, long offset, long length, boolean isSync) Creates a new sample. -
Method Summary
-
Field Details
-
offset
public long offsetByte offset of the sample chunk relative to the startTime of the AVI file. -
length
public long lengthData length of the sample chunk in bytes. -
duration
public int durationThe number of media samples in the sample chunk. -
isKeyframe
public boolean isKeyframeWhether the sample is a sync-sample. -
timeStamp
public long timeStampThe timestamp of the first sample in the chunk. -
header
Palette change sample.
-
-
Constructor Details
-
Sample
public Sample(int chunkId, int duration, long offset, long length, boolean isSync) Creates a new sample.- Parameters:
duration- The number of media samples contained in the sample chunk.offset- The offset in the AVI stream.length- The length in the AVI stream.
-