public class QuickTimeInputStream extends AbstractQuickTimeStream
AbstractQuickTimeStream.Atom, AbstractQuickTimeStream.AudioTrack, AbstractQuickTimeStream.Chunk, AbstractQuickTimeStream.CompositeAtom, AbstractQuickTimeStream.DataAtom, AbstractQuickTimeStream.Edit, AbstractQuickTimeStream.Group, AbstractQuickTimeStream.Sample, AbstractQuickTimeStream.SampleSizeGroup, AbstractQuickTimeStream.States, AbstractQuickTimeStream.TimeToSampleGroup, AbstractQuickTimeStream.Track, AbstractQuickTimeStream.VideoTrack, AbstractQuickTimeStream.WideDataAtom| Modifier and Type | Field and Description |
|---|---|
protected ImageInputStream |
in
The image input stream.
|
creationTime, currentTime, mdatAtom, mdatOffset, modificationTime, moovAtom, movieMatrix, movieTimeScale, out, posterTime, preferredRate, preferredVolume, previewDuration, previewTime, selectionDuration, selectionTime, state, streamOffset, tracks| Constructor and Description |
|---|
QuickTimeInputStream(File file)
Creates a new instance.
|
QuickTimeInputStream(ImageInputStream in)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
ensureRealized()
Ensures that all meta-data has been read from the file.
|
Date |
getCreationTime()
Gets the creation time of the movie.
|
long |
getCurrentTime()
Gets the time value for current time position within the movie.
|
long |
getMediaDuration(int track)
Returns the media duration of a track in the media's time scale.
|
long |
getMediaTimeScale(int track)
Returns the time scale of the media in a track.
|
Date |
getModificationTime()
Gets the modification time of the movie.
|
long |
getMovieDuration() |
long |
getMovieTimeScale()
Returns the time scale of the movie.
|
double[] |
getMovieTransformationMatrix()
Gets the transformation matrix of the entire movie.
|
long |
getPosterTime()
Gets the time value of the time of the movie poster.
|
double |
getPreferredRate()
Gets the preferred rate at which to play this movie.
|
double |
getPreferredVolume()
Gets the preferred volume of this movie’s sound.
|
long |
getPreviewDuration()
Gets the duration of the movie preview in movie time scale units.
|
long |
getPreviewTime()
Gets the time value in the movie at which the preview begins.
|
int |
getTrackCount() |
double[] |
getTransformationMatrix(int track)
Gets the transformation matrix of the specified track.
|
getRelativeStreamPosition, intToType, seekRelative, typeToIntprotected final ImageInputStream in
public QuickTimeInputStream(File file) throws IOException
file - the input fileIOExceptionpublic QuickTimeInputStream(ImageInputStream in) throws IOException
in - the input stream.IOExceptionpublic int getTrackCount()
throws IOException
IOExceptionpublic long getMovieDuration()
throws IOException
IOExceptionpublic Date getCreationTime() throws IOException
IOExceptionpublic Date getModificationTime() throws IOException
IOExceptionpublic double getPreferredRate()
throws IOException
IOExceptionpublic double getPreferredVolume()
throws IOException
IOExceptionpublic long getCurrentTime()
throws IOException
IOExceptionpublic long getPosterTime()
throws IOException
IOExceptionpublic long getPreviewDuration()
throws IOException
IOExceptionpublic long getPreviewTime()
throws IOException
IOExceptionpublic double[] getMovieTransformationMatrix()
throws IOException
IOExceptionpublic long getMovieTimeScale()
throws IOException
The movie time scale is used for editing tracks. Such as for specifying the start time of a track.
IOExceptionpublic long getMediaTimeScale(int track)
throws IOException
The media time scale is used for specifying the duration of samples in a track.
track - Track index.IOExceptionpublic long getMediaDuration(int track)
throws IOException
track - Track index.IOExceptionpublic double[] getTransformationMatrix(int track)
throws IOException
track - The track number.IOExceptionprotected void ensureRealized()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.