|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.monte.media.quicktime.AbstractQuickTimeStream
org.monte.media.quicktime.QuickTimeInputStream
public class QuickTimeInputStream
Provides low-level support for reading encoded audio and video samples from a QuickTime file.
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
protected javax.imageio.stream.ImageInputStream |
in
The image input stream. |
| Fields inherited from class org.monte.media.quicktime.AbstractQuickTimeStream |
|---|
creationTime, mdatAtom, mdatOffset, modificationTime, moovAtom, movieMatrix, movieTimeScale, out, state, streamOffset, tracks |
| Constructor Summary | |
|---|---|
QuickTimeInputStream(java.io.File file)
Creates a new instance. |
|
QuickTimeInputStream(javax.imageio.stream.ImageInputStream in)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
close()
|
protected void |
ensureRealized()
Ensures that all meta-data has been read from the file. |
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. |
long |
getMovieDuration()
|
long |
getMovieTimeScale()
Returns the time scale of the movie. |
int |
getTrackCount()
|
| Methods inherited from class org.monte.media.quicktime.AbstractQuickTimeStream |
|---|
getRelativeStreamPosition, intToType, seekRelative, typeToInt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final javax.imageio.stream.ImageInputStream in
| Constructor Detail |
|---|
public QuickTimeInputStream(java.io.File file)
throws java.io.IOException
file - the input file
java.io.IOException
public QuickTimeInputStream(javax.imageio.stream.ImageInputStream in)
throws java.io.IOException
in - the input stream.
java.io.IOException| Method Detail |
|---|
public int getTrackCount()
throws java.io.IOException
java.io.IOException
public long getMovieDuration()
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#setMovieTimeScale(long)
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
protected void ensureRealized()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||