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 javax.imageio.stream.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(java.io.File file)
Creates a new instance.
|
QuickTimeInputStream(javax.imageio.stream.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.
|
java.util.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.
|
java.util.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, typeToInt
public QuickTimeInputStream(java.io.File file) throws java.io.IOException
file
- the input filejava.io.IOException
public QuickTimeInputStream(javax.imageio.stream.ImageInputStream in) throws java.io.IOException
in
- the input stream.java.io.IOException
public int getTrackCount() throws java.io.IOException
java.io.IOException
public long getMovieDuration() throws java.io.IOException
java.io.IOException
public java.util.Date getCreationTime() throws java.io.IOException
java.io.IOException
public java.util.Date getModificationTime() throws java.io.IOException
java.io.IOException
public double getPreferredRate() throws java.io.IOException
java.io.IOException
public double getPreferredVolume() throws java.io.IOException
java.io.IOException
public long getCurrentTime() throws java.io.IOException
java.io.IOException
public long getPosterTime() throws java.io.IOException
java.io.IOException
public long getPreviewDuration() throws java.io.IOException
java.io.IOException
public long getPreviewTime() throws java.io.IOException
java.io.IOException
public double[] getMovieTransformationMatrix() throws java.io.IOException
java.io.IOException
public long getMovieTimeScale() throws java.io.IOException
The movie time scale is used for editing tracks. Such as for specifying the start time of a track.
java.io.IOException
public long getMediaTimeScale(int track) throws java.io.IOException
The media time scale is used for specifying the duration of samples in a track.
track
- Track index.java.io.IOException
public long getMediaDuration(int track) throws java.io.IOException
track
- Track index.java.io.IOException
public double[] getTransformationMatrix(int track) throws java.io.IOException
track
- The track number.java.io.IOException
protected void ensureRealized() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException