public class QuickTimeReader extends QuickTimeInputStream implements MovieReader
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 |
|---|---|
static Format |
QUICKTIME |
increationTime, currentTime, mdatAtom, mdatOffset, modificationTime, moovAtom, movieMatrix, movieTimeScale, out, posterTime, preferredRate, preferredVolume, previewDuration, previewTime, selectionDuration, selectionTime, state, streamOffset, tracks| Constructor and Description |
|---|
QuickTimeReader(java.io.File file) |
QuickTimeReader(javax.imageio.stream.ImageInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
findTrack(int fromTrack,
Format format) |
long |
getChunkCount(int track) |
Rational |
getDuration() |
Rational |
getDuration(int track) |
Format |
getFileFormat() |
Format |
getFormat(int track) |
Rational |
getReadTime(int track) |
int |
nextTrack() |
void |
read(int track,
Buffer buffer) |
java.awt.image.BufferedImage |
read(int track,
java.awt.image.BufferedImage img) |
Rational |
sampleToTime(int track,
long sample) |
void |
setMovieReadTime(Rational newValue) |
long |
timeToSample(int track,
Rational seconds) |
close, ensureRealized, getCreationTime, getCurrentTime, getMediaDuration, getMediaTimeScale, getModificationTime, getMovieDuration, getMovieTimeScale, getMovieTransformationMatrix, getPosterTime, getPreferredRate, getPreferredVolume, getPreviewDuration, getPreviewTime, getTrackCount, getTransformationMatrixgetRelativeStreamPosition, intToType, seekRelative, typeToIntclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getTrackCountpublic static final Format QUICKTIME
public QuickTimeReader(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic QuickTimeReader(javax.imageio.stream.ImageInputStream in)
throws java.io.IOException
java.io.IOExceptionpublic long timeToSample(int track,
Rational seconds)
timeToSample in interface MovieReaderpublic Rational sampleToTime(int track, long sample)
sampleToTime in interface MovieReaderpublic Format getFileFormat() throws java.io.IOException
getFileFormat in interface MovieReaderjava.io.IOExceptionpublic Format getFormat(int track) throws java.io.IOException
getFormat in interface MovieReaderjava.io.IOExceptionpublic long getChunkCount(int track)
throws java.io.IOException
getChunkCount in interface MovieReaderjava.io.IOExceptionpublic java.awt.image.BufferedImage read(int track,
java.awt.image.BufferedImage img)
throws java.io.IOException
java.io.IOExceptionpublic void read(int track,
Buffer buffer)
throws java.io.IOException
read in interface MovieReaderjava.io.IOExceptionpublic int nextTrack()
throws java.io.IOException
nextTrack in interface MovieReaderjava.io.IOExceptionpublic void setMovieReadTime(Rational newValue)
setMovieReadTime in interface MovieReaderpublic Rational getReadTime(int track) throws java.io.IOException
getReadTime in interface MovieReaderjava.io.IOExceptionpublic Rational getDuration() throws java.io.IOException
getDuration in interface MovieReaderjava.io.IOExceptionpublic Rational getDuration(int track) throws java.io.IOException
getDuration in interface MovieReaderjava.io.IOExceptionpublic int findTrack(int fromTrack,
Format format)
throws java.io.IOException
findTrack in interface MovieReaderjava.io.IOExceptionCopyright © 2022. All Rights Reserved.