|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.spaces.Sequencer | +--quicktime.app.image.DSequenceFromMemory
This class provides a mechanism for decompressing a sequence of images which were previously compressed using the CSequenceToMemory class.
The decompressed sequence is done with a number of default settings: it uses the port given to it by the displayables parent, it uses no matrix and no mask region, it uses ditherCopy as its transfer mode and it does not use an offscreen buffer or image buffer but writes directly to its destination.
quicktime.app.image.CSequenceFromMemory| Field Summary | |
int |
flags
The flags that are used in the redraw call. |
| Fields inherited from class quicktime.app.spaces.Sequencer |
kFirstFrame, kLastFrame, kLoopForwards, kLoopPalindrome, kNoLooping |
| Constructor Summary | |
DSequenceFromMemory(CSequenceToMemory sequenceInMemory)
The Movie Toolbox handles the details of decompressing image sequences in QuickTime movies. |
|
DSequenceFromMemory(EncodedImage data,
ImageDescription description)
This will create an DSequence object from a single piece of data and its description. |
|
DSequenceFromMemory(GraphicsImporter importer)
This will create an DSequence object from a single piece of data and its description. |
|
DSequenceFromMemory(ImageSpec spec)
This will create an DSequence object from any object that implements the ImageSpec interface. |
|
| Method Summary | |
void |
addedTo(java.lang.Object interest)
This method is called by the specified object when the instance of the class that implements this interface is added to the object that is the source of the interest. |
Invalidator |
addedToCompositor(SWCompositor c,
TwoDSprite s)
Returns an object that invalidates a sprite. |
int |
drawCurrentFrame(int inFlags)
Your application calls this method to decompress the current frame. |
Region |
getClip()
Returns a region that defines the current clipping region for the object. |
ImageDescription |
getDescription()
This method should return an ImageDescription that describes the image data that the class contains. |
QDRect |
getDisplayBounds()
QTCanvas calls this method when it needs to ask the client for its boundary. |
GraphicsMode |
getGraphicsMode()
This gets the current GraphicsMode for the compositor. |
QDGraphics |
getGWorld()
QTCanvas calls this method to get the destination QDGraphics of its client. |
EncodedImage |
getImage()
This method returns the actual image data of the current frame or null if there is no image data to return. |
java.awt.Dimension |
getInitialSize()
Deprecated. since QTJava 4.0 |
Matrix |
getMatrix()
This will return the client's current display transformations |
QDDimension |
getOriginalSize()
This method returns the original size before the transformations specified in the returned matrix are applied. |
DSequence |
getSequence()
Returns the CSequence object - this may return null if you haven't called created the sequence. |
void |
redraw(Region invalidRgn)
QTCanvas calls this method when the client should redraw itself. |
void |
removedFrom(java.lang.Object interest)
This method is called by the specified object when the instance of the class that implements this interface is removed from the object that is the source of the interest. |
void |
removedFromCompositor(SWCompositor c)
When a dynamic image class is removed from a SWCompositor this method is called to allow the class to cleanup any of the invalidation processes it had established in the addedToCompositor call. |
void |
setClip(Region reg)
Sets a region that will define the clipping region for the object |
void |
setDisplayBounds(QDRect bounds)
QTCanvas calls this method when it needs to tell the client to adjust its location, width and/or height. |
void |
setGraphicsMode(GraphicsMode mode)
This sets the GraphicsMode for the Compositor when it draws its composited contents to its destination QDGraphics (typically the QTCanvas). |
void |
setGWorld(QDGraphics cgp)
QTCanvas calls this method to give the client the QDGraphics object it should use to do its drawing. |
void |
setLocation(int x,
int y)
A convenience method to set the position of a QTDrawable object. |
void |
setMatrix(Matrix matrix)
This will set the client's current Display Matrix |
int |
size()
Return the number of image data objects (frames) that the object contains. |
java.lang.String |
toString()
Return a string representation of this object |
| Methods inherited from class quicktime.app.spaces.Sequencer |
getCurrentFrame, getLooping, setCurrentFrame, setFrameNext, setFramePrevious, setLooping |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int flags
| Constructor Detail |
public DSequenceFromMemory(GraphicsImporter importer) throws QTException
data - the image data object.description - the ImageDescription object.public DSequenceFromMemory(EncodedImage data, ImageDescription description) throws QTException
data - the image data object.description - the ImageDescription object.public DSequenceFromMemory(CSequenceToMemory sequenceInMemory) throws QTException
sequenceInMemory - a previously created CSequenceToMemory objectpublic DSequenceFromMemory(ImageSpec spec) throws QTException
spec - the ImageSpec object| Method Detail |
public void addedTo(java.lang.Object interest)
addedTo in interface Listenerinterest - the object that is to be the source of interest for the
the object that implements this interface.public void removedFrom(java.lang.Object interest)
removedFrom in interface Listenerinterest - the object that was the source of interest for the
the object that implements this interface.public QDGraphics getGWorld()
getGWorld in interface QTDrawablepublic void setGWorld(QDGraphics cgp) throws QTException
setGWorld in interface QTDrawablecgp - a QDGraphics objectpublic void setMatrix(Matrix matrix) throws StdQTException
setMatrix in interface Transformablematrix - the new Matrixpublic Matrix getMatrix() throws StdQTException
getMatrix in interface Transformablepublic java.awt.Dimension getInitialSize() throws QTException
()public QDDimension getOriginalSize() throws QTException
getOriginalSize in interface Transformablepublic void setDisplayBounds(QDRect bounds) throws StdQTException
setDisplayBounds in interface Drawablebounds - the new size and location.public void setLocation(int x, int y) throws QTException
setLocation in interface QTDrawablex - the new x locationy - the new y locationpublic QDRect getDisplayBounds()
getDisplayBounds in interface Drawablepublic final void redraw(Region invalidRgn) throws StdQTException
redraw in interface DrawableinvalidRgn - the invalidRgn that the client should redrawpublic Region getClip() throws StdQTException
getClip in interface QTDrawablepublic void setClip(Region reg) throws StdQTException
setClip in interface QTDrawablereg - the new clipping regionpublic ImageDescription getDescription() throws QTException
getDescription in interface ImageSpecpublic EncodedImage getImage() throws StdQTException
getImage in interface ImageSpecpublic int size()
size in class Sequencerpublic int drawCurrentFrame(int inFlags) throws StdQTException
inFlags - flags providing further control informationpublic void setGraphicsMode(GraphicsMode mode) throws QTException
setGraphicsMode in interface Compositablequicktime.app.image.CompositablegMode - Specifies the graphics mode.public GraphicsMode getGraphicsMode()
getGraphicsMode in interface Compositablequicktime.app.image.Compositablepublic Invalidator addedToCompositor(SWCompositor c, TwoDSprite s)
The Invalidators provided with objects that implement the DynamicImage interface will execute at the scale and period of the Compositor when they are created.
addedToCompositor in interface DynamicImagec - the Compositor in which the DynamicImage is a members - the TwoDSprite that is presenting the DynamicImage's image in
the Compositor. This is the sprite that must be invalidated.quicktime.app.display.SWCompositorpublic void removedFromCompositor(SWCompositor c)
removedFromCompositor in interface DynamicImagec - the SWCompositor it is being removed frompublic DSequence getSequence()
public java.lang.String toString()
toString in class Sequencer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||