Class QuickTimeMeta
java.lang.Object
org.monte.media.beans.AbstractBean
org.monte.media.av.AbstractMovie
org.monte.media.quicktime.QuickTimeMeta
- All Implemented Interfaces:
Serializable,Movie
QuickTimeMeta holds the meta-data contained in a QuickTime movie.- Author:
- Werner Randelshofer
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGroups consecutive samples with the same sample description Id and with adjacent offsets in the movie file.static classAnDataReferencereferences the media data.static classAnEditdefine the portions of the media that are to be used to build up a track for a movie.protected static classGroups consecutive samples with same characteristics.protected static classRepresents a media.protected static classQuickTime stores media data in media samples.protected static classRepresents a sample description.protected static classGroups consecutive samples of the same size.protected static classGroups consecutive samples into a chunk.protected static classGroups consecutive samples of the same duration.protected static classRepresents a track.protected static classQuickTime plays media in tracks which reference media samples. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe compression method used for compressing the compressed movie data atom cmvd.protected DateCreation time of the movie.protected longThe time value for current time position within the movie.protected longThe duration of the movie in time scale units (derived value).protected FormatThe file format.static final Locale[]protected double[]The transformation matrix [a,b,u;c,d,v;x,y,w] for mapping 2d points of this movie to the screen.protected DateModification time of the movie.longlongprotected longThe ID to use for the next track added to this movie (derived value).protected longThe time value of the time of the movie poster.protected doubleThe preferred rate at which to play this movie.protected doubleThe preferred volume of this movie’s sound.protected longThe duration of the movie preview in movie time scale units.protected longThe time value in the movie at which the preview begins.protected longThe duration of the current selection in movie time scale units.protected longThe time value for the start time of the current selection.protected longThe time scale of the movie.protected ArrayList<QuickTimeMeta.Track> The list of tracks in the movie.protected intprotected intprotected intFields inherited from class org.monte.media.beans.AbstractBean
propertySupportFields inherited from interface org.monte.media.av.Movie
INSERTION_POINT_PROPERTY, SELECTION_END_PROPERTY, SELECTION_START_PROPERTY, URI_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()Clears this movie.longReturns the total duration of the movie in seconds.getFormat(int track) longlongdoubledoublelonglonglonglonglongintdouble[]sampleToTime(int track, long sample) voidsetCreationTime(Date creationTime) voidsetCurrentTime(long currentTime) voidsetModificationTime(Date modificationTime) voidsetNextTrackId(long nextTrackId) voidsetPosterTime(long posterTime) voidsetPreferredRate(double preferredRate) voidsetPreferredVolume(double preferredVolume) voidsetPreviewDuration(long previewDuration) voidsetPreviewTime(long previewTime) voidsetSelectionDuration(long selectionDuration) voidsetSelectionTime(long selectionTime) voidsetTimeScale(long movieTimeScale) longtimeToSample(int track, Rational seconds) Returns the frame number for the specified time in seconds.toString()Methods inherited from class org.monte.media.av.AbstractMovie
getInsertionPoint, getSelectionEnd, getSelectionStart, getURI, setInsertionPoint, setSelectionEnd, setSelectionStart, setURIMethods inherited from class org.monte.media.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.monte.media.av.Movie
addPropertyChangeListener, removePropertyChangeListener
-
Field Details
-
LANGUAGE_CODES
-
compressionMethod
The compression method used for compressing the compressed movie data atom cmvd. -
movieDataStreamPosition
public long movieDataStreamPosition -
movieDataSize
public long movieDataSize -
fileFormat
The file format. -
brand
-
versionYear
protected int versionYear -
versionMonth
protected int versionMonth -
versionMinor
protected int versionMinor -
compatibleBrands
-
creationTime
Creation time of the movie. -
modificationTime
Modification time of the movie. -
timeScale
protected long timeScaleThe time scale of the movie. A time value that indicates the time scale for this media—that is, the number of time units that pass per second in its time coordinate system. -
duration
protected long durationThe duration of the movie in time scale units (derived value). The value of this field corresponds to the duration of the longest track in the movie. -
preferredRate
protected double preferredRateThe preferred rate at which to play this movie. A value of 1.0 indicates normal rate. -
preferredVolume
protected double preferredVolumeThe preferred volume of this movie’s sound. A value of 1.0 indicates full volume. -
matrix
protected double[] matrixThe transformation matrix [a,b,u;c,d,v;x,y,w] for mapping 2d points of this movie to the screen.[a b u; [x y 1] * c d v; = [x' y' 1] x y w] -
previewTime
protected long previewTimeThe time value in the movie at which the preview begins. -
previewDuration
protected long previewDurationThe duration of the movie preview in movie time scale units. -
posterTime
protected long posterTimeThe time value of the time of the movie poster. -
selectionTime
protected long selectionTimeThe time value for the start time of the current selection. -
selectionDuration
protected long selectionDurationThe duration of the current selection in movie time scale units. -
currentTime
protected long currentTimeThe time value for current time position within the movie. -
nextTrackId
protected long nextTrackIdThe ID to use for the next track added to this movie (derived value). The value of this field corresponds to the number of tracks. -
tracks
The list of tracks in the movie.
-
-
Constructor Details
-
QuickTimeMeta
public QuickTimeMeta()
-
-
Method Details
-
getCreationTime
-
setCreationTime
-
getModificationTime
-
setModificationTime
-
getTimeScale
public long getTimeScale() -
setTimeScale
public void setTimeScale(long movieTimeScale) -
getPreferredRate
public double getPreferredRate() -
setPreferredRate
public void setPreferredRate(double preferredRate) -
getPreferredVolume
public double getPreferredVolume() -
setPreferredVolume
public void setPreferredVolume(double preferredVolume) -
getPreviewTime
public long getPreviewTime() -
setPreviewTime
public void setPreviewTime(long previewTime) -
getPreviewDuration
public long getPreviewDuration() -
setPreviewDuration
public void setPreviewDuration(long previewDuration) -
getPosterTime
public long getPosterTime() -
setPosterTime
public void setPosterTime(long posterTime) -
getSelectionTime
public long getSelectionTime() -
setSelectionTime
public void setSelectionTime(long selectionTime) -
getSelectionDuration
public long getSelectionDuration() -
setSelectionDuration
public void setSelectionDuration(long selectionDuration) -
getCurrentTime
public long getCurrentTime() -
setCurrentTime
public void setCurrentTime(long currentTime) -
getNextTrackId
public long getNextTrackId() -
setNextTrackId
public void setNextTrackId(long nextTrackId) -
getDuration
-
timeToSample
-
sampleToTime
-
getTrackCount
public int getTrackCount() -
getFormat
-
getFileFormat
-
getReader
-
clear
protected void clear()Clears this movie. -
getTransformationMatrix
public double[] getTransformationMatrix() -
toString
-