Class QuickTimeMeta.MediaSample
java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.MediaSample
- Enclosing class:
QuickTimeMeta
QuickTime stores media data in media samples. A media sample is a single
element in a sequence of time-ordered data. Information about samples is
stored in the mdat atom.
Please note that MediaSample objects are created on demand. This helps
to save memory, because a highly multiplexed audio track may consist of
many samples per second. As a consequence multiple instances of
MediaSample objects may represent the same data sample in the movie.
- Author:
- Werner Randelshofer
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether the sample is a sync-sample.longThe timestamp of the first sample in the chunk in media timescale units. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timeStamp
public long timeStampThe timestamp of the first sample in the chunk in media timescale units. The value -1 is used if the timestamp is unknown. -
isKeyframe
public boolean isKeyframeWhether the sample is a sync-sample.
-
-
Constructor Details
-
MediaSample
public MediaSample(long duration, long offset, long length) Creates a new sample.
-