|
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
public class AbstractQuickTimeStream
This is the base class for low-level QuickTime stream IO.
FIXME - Separation between AbstractQuickTimeStream and QuickTimeOutputStream is not clean. Move write methods in the track classes down to QuickTimeOutputStream.
| Nested Class Summary | |
|---|---|
protected class |
AbstractQuickTimeStream.Atom
Atom base class. |
protected class |
AbstractQuickTimeStream.AudioTrack
|
protected static class |
AbstractQuickTimeStream.Chunk
Groups consecutive samples with the same sample description Id and with adjacent offsets in the movie file. |
protected class |
AbstractQuickTimeStream.CompositeAtom
A CompositeAtom contains an ordered list of Atoms. |
protected class |
AbstractQuickTimeStream.DataAtom
Data Atom. |
static class |
AbstractQuickTimeStream.Edit
An Edit define the portions of the media that are to be used to
build up a track for a movie. |
protected static class |
AbstractQuickTimeStream.Group
Groups consecutive samples with same characteristics. |
protected static class |
AbstractQuickTimeStream.Sample
QuickTime stores media data in samples. |
protected static class |
AbstractQuickTimeStream.SampleSizeGroup
Groups consecutive samples of the same size. |
protected static class |
AbstractQuickTimeStream.States
The states of the movie output stream. |
protected static class |
AbstractQuickTimeStream.TimeToSampleGroup
Groups consecutive smples of the same duration. |
protected class |
AbstractQuickTimeStream.Track
Represents a track. |
protected class |
AbstractQuickTimeStream.VideoTrack
|
protected class |
AbstractQuickTimeStream.WideDataAtom
WideDataAtom can grow larger then 4 gigabytes. |
| Field Summary | |
|---|---|
protected java.util.Date |
creationTime
Creation time of the movie. |
protected AbstractQuickTimeStream.WideDataAtom |
mdatAtom
This atom holds the media data. |
protected long |
mdatOffset
Offset for the mdat atom. |
protected java.util.Date |
modificationTime
Modification time of the movie. |
protected AbstractQuickTimeStream.CompositeAtom |
moovAtom
This atom holds the moovie header. |
protected double[] |
movieMatrix
The transformation matrix for the entire movie. |
protected long |
movieTimeScale
The timeScale of the movie. |
protected javax.imageio.stream.ImageOutputStream |
out
Underlying output stream. |
protected AbstractQuickTimeStream.States |
state
The current state of the movie output stream. |
protected long |
streamOffset
The offset in the underlying ImageOutputStream. |
protected java.util.ArrayList<AbstractQuickTimeStream.Track> |
tracks
The list of tracks in the movie. |
| Constructor Summary | |
|---|---|
AbstractQuickTimeStream()
|
|
| Method Summary | |
|---|---|
protected long |
getRelativeStreamPosition()
Gets the position relative to the beginning of the QuickTime stream. |
protected static java.lang.String |
intToType(int id)
|
protected void |
seekRelative(long newPosition)
Seeks relative to the beginning of the QuickTime stream. |
protected static int |
typeToInt(java.lang.String str)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.imageio.stream.ImageOutputStream out
protected long streamOffset
protected AbstractQuickTimeStream.WideDataAtom mdatAtom
protected long mdatOffset
protected AbstractQuickTimeStream.CompositeAtom moovAtom
protected java.util.Date creationTime
protected java.util.Date modificationTime
protected long movieTimeScale
protected java.util.ArrayList<AbstractQuickTimeStream.Track> tracks
protected double[] movieMatrix
protected AbstractQuickTimeStream.States state
| Constructor Detail |
|---|
public AbstractQuickTimeStream()
| Method Detail |
|---|
protected long getRelativeStreamPosition()
throws java.io.IOException
Usually this value is equal to the stream position of the underlying ImageOutputStream, but can be larger if the underlying stream already contained data.
java.io.IOException
protected void seekRelative(long newPosition)
throws java.io.IOException
Usually this equal to seeking in the underlying ImageOutputStream, but can be different if the underlying stream already contained data.
java.io.IOExceptionprotected static int typeToInt(java.lang.String str)
protected static java.lang.String intToType(int id)
|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||