|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.std.image.CDSequence | +--quicktime.std.image.DSequence
This class is used for decompressing a sequence of images. The Movie Toolbox handles the details of decompressing image sequences in QuickTime movies. If you need to decompress other sequences, your application can use this class.
CDSequence
,
CSequence
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
DSequence(ImageDescription desc,
EncodedImage data,
QDGraphics port,
QDRect srcRect,
Matrix matrix,
Region mask,
int flags,
int accuracy,
CodecComponent codec)
This constructor allows you to pass a compressed sample so the codec can perform preflighting before the first decompressFrame call. |
|
DSequence(ImageDescription desc,
QDGraphics port,
QDRect srcRect,
Matrix matrix,
Region mask,
int flags,
int accuracy,
CodecComponent codec)
Creating an instance of this class signals the beginning of the process of decompressing a sequence of frames. |
Method Summary | |
int |
decompressFrame(ByteEncodedImage data,
int inFlags)
Your application calls this method to decompress one of a sequence of frames. |
int |
decompressFrame(EncodedImage data,
int inFlags)
Your application calls this method to decompress one of a sequence of frames. |
int |
decompressFrame(IntEncodedImage data,
int inFlags)
Your application calls this method to decompress one of a sequence of frames. |
int |
decompressFrame(RawEncodedImage data,
int inFlags)
Your application calls this method to decompress one of a sequence of frames. |
int |
decompressFrameS(ByteEncodedImage data,
int inFlags)
Your application calls this method to decompress one of a sequence of frames. |
int |
decompressFrameS(EncodedImage data,
int inFlags)
Your application calls this method to decompress one of a sequence of frames. |
int |
decompressFrameS(IntEncodedImage data,
int inFlags)
Your application calls this method to decompress one of a sequence of frames. |
int |
decompressFrameS(RawEncodedImage data,
int inFlags)
Your application calls this method to decompress one of a sequence of frames. |
int |
decompressFrameWhen(ByteEncodedImage data,
int inFlags,
ICMFrameTime frameTime)
Queues a frame for decompression and specifies the time at which decompression will begin. |
int |
decompressFrameWhen(EncodedImage data,
int inFlags,
ICMFrameTime frameTime)
Queues a frame for decompression and specifies the time at which decompression will begin. |
int |
decompressFrameWhen(IntEncodedImage data,
int inFlags,
ICMFrameTime frameTime)
Queues a frame for decompression and specifies the time at which decompression will begin. |
int |
decompressFrameWhen(RawEncodedImage data,
int inFlags,
ICMFrameTime frameTime)
Queues a frame for decompression and specifies the time at which decompression will begin. |
void |
flush()
Stops a decompression sequence, aborting processing of any queued frames. |
QDGraphics |
getImageBuffer()
This method helps you determine the location of the offscreen image buffer allocated by the decompressor. |
Matrix |
getMatrix()
This method returns the matrix associated with the sequence |
QDGraphics |
getScreenBuffer()
This method enables you to determine the location of the offscreen buffer allocated by the decompressor. |
boolean |
hitTestData(EncodedImage data,
QDPoint where,
int hitFlags)
The HitTestDSequenceData function allows the calling application to perform hit testing on compressed data. |
void |
invalidate(Region invalRgn)
Notifies the Image Compression Manager that the destination port for the given image decompression sequence has been invalidated. |
boolean |
ptInData(EncodedImage data,
QDPoint where)
Tests to see if an image contains data at a given point. |
void |
setAccuracy(int accuracy)
This method adjusts the decompression accuracy for this sequence. |
void |
setFlags(int flags,
int flagsMask)
This method sets the flags of the image sequence |
void |
setGraphicsMode(GraphicsMode mode)
This method sets the mode used when drawing the decompressed image. |
void |
setMask(Region mask)
This method assigns a clipping region to the sequence. |
void |
setMatrix(Matrix matrix)
This method assigns a mapping matrix to the sequence. |
void |
setMatte(PixMap matte,
QDRect matteRect)
This method assigns a blend matte to the sequence. |
void |
setSrcRect(QDRect srcRect)
This method defines the portion of the image to decompress. |
void |
setTimeCode(TimeCodeDef timeCodeFormat,
TimeCodeTime timeCodeTime)
Sets the timecode value for the frame that is about to be decompressed. |
void |
setTransferMode(int mode,
QDColor opColor)
This method sets the mode used when drawing the decompressed image. |
void |
shieldCursor()
Hides the cursor during decompression operations. |
Methods inherited from class quicktime.std.image.CDSequence |
busy, equivalentImageDescription, getDescription, setTimeBase |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DSequence(ImageDescription desc, QDGraphics port, QDRect srcRect, Matrix matrix, Region mask, int flags, int accuracy, CodecComponent codec) throws QTException
desc
- an ImageDescription object which describes the compressed dataport
- a QDGraphics for the destination image. This may NOT be null.srcRect
- a QDRect defining the portion of the image to decompress, or null to use
the rectangle defined in the ImageDescription associated with this sequencematrix
- a Matrix that specifies how to transform the image during decompressionmask
- a RgnHandle which defines a clipping region in the destination
coordinate system, or nullflags
- flags providing further control informationaccuracy
- the accuracy desired in the decompressed imagecodec
- a Decompressor identifierpublic DSequence(ImageDescription desc, EncodedImage data, QDGraphics port, QDRect srcRect, Matrix matrix, Region mask, int flags, int accuracy, CodecComponent codec) throws QTException
desc
- an ImageDescription object which describes the compressed datadata
- encoded image dataport
- a QDGraphics for the destination image. This may NOT be null.srcRect
- a QDRect defining the portion of the image to decompress, or null to use
the rectangle defined in the ImageDescription associated with this sequencematrix
- a Matrix that specifies how to transform the image during decompressionmask
- a RgnHandle which defines a clipping region in the destination
coordinate system, or nullflags
- flags providing further control informationaccuracy
- the accuracy desired in the decompressed imagecodec
- a Decompressor identifierMethod Detail |
public int decompressFrameS(EncodedImage data, int inFlags) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationpublic int decompressFrameS(ByteEncodedImage data, int inFlags) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationpublic int decompressFrameS(IntEncodedImage data, int inFlags) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationpublic int decompressFrameS(RawEncodedImage data, int inFlags) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationpublic int decompressFrame(EncodedImage data, int inFlags) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationpublic int decompressFrame(ByteEncodedImage data, int inFlags) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationpublic int decompressFrame(IntEncodedImage data, int inFlags) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationpublic int decompressFrame(RawEncodedImage data, int inFlags) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationpublic int decompressFrameWhen(ByteEncodedImage data, int inFlags, ICMFrameTime frameTime) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationframeTime
- an ICMFrameTime object that contains the frame's time information,
including the time at which the frame should be displayed, its
duration, and the movie's playback rate.public int decompressFrameWhen(IntEncodedImage data, int inFlags, ICMFrameTime frameTime) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationframeTime
- an ICMFrameTime object that contains the frame's time information,
including the time at which the frame should be displayed, its
duration, and the movie's playback rate.public int decompressFrameWhen(RawEncodedImage data, int inFlags, ICMFrameTime frameTime) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationframeTime
- an ICMFrameTime object that contains the frame's time information,
including the time at which the frame should be displayed, its
duration, and the movie's playback rate.public int decompressFrameWhen(EncodedImage data, int inFlags, ICMFrameTime frameTime) throws StdQTException
data
- encoded image datainFlags
- flags providing further control informationframeTime
- an ICMFrameTime object that contains the frame's time information,
including the time at which the frame should be displayed, its
duration, and the movie's playback rate.public void setGraphicsMode(GraphicsMode mode) throws StdQTException
mode
- the transfer mode to use when drawing the decompressed imagepublic void setTransferMode(int mode, QDColor opColor) throws StdQTException
mode
- the transfer mode to use when drawing the decompressed imageopColor
- an QDColor object to be used in addPin, subPin, blend and
transparent operations. If null, the opColor is left unchanged.public void setSrcRect(QDRect srcRect) throws StdQTException
srcRect
- a QDRect object defining the portion of the object to decompresspublic void setMatrix(Matrix matrix) throws StdQTException
matrix
- a Matrix object that specifies how to transform the image during
decompressionpublic Matrix getMatrix() throws StdQTException
public void setFlags(int flags, int flagsMask) throws StdQTException
flags
- the flags associated with the sequenceflagsMask
- the masks to use for filtering out unwanted flagspublic void setMask(Region mask) throws StdQTException
mask
- a Region object which is applied to the desitnation image. If null
then masking is stopped.public void setMatte(PixMap matte, QDRect matteRect) throws StdQTException
matte
- a PixMap object which contains a blend mattematteRect
- a QDRect object which defines the boundary of the mattepublic void setAccuracy(int accuracy) throws StdQTException
accuracy
- the accuracy desired in the decompressed imagepublic QDGraphics getImageBuffer() throws StdQTException
public QDGraphics getScreenBuffer() throws StdQTException
public boolean ptInData(EncodedImage data, QDPoint where) throws StdQTException
data
- encoded image datawhere
- a Point object, (0,0) is upper left corner of the imagepublic boolean hitTestData(EncodedImage data, QDPoint where, int hitFlags) throws StdQTException
data
- compressed data in the format specified by the description of the DSequence.where
- A QuickDraw Point (0,0) based at the top-left corner of the image.hitFlags
- indicates the hit-testing behaviour that is soughtpublic void flush() throws StdQTException
public void invalidate(Region invalRgn) throws StdQTException
invalRgn
- a Region describing the invalid portion of the imagepublic void shieldCursor() throws StdQTException
public void setTimeCode(TimeCodeDef timeCodeFormat, TimeCodeTime timeCodeTime) throws StdQTException
You
- provide the appropriate timecode definition information for the next frame to be decompressed.You
- provide the appropriate time value for the next frame in the current sequence.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |