|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.image.CSequenceToMemory
This class provides a mechanism for compressing a sequence of images to memory. The compressed images are maintained internally. Use the DSequenceFromMemory class to decompress a sequence of images from a CSequenceToMemory object.
When compressing a sequence of images you want to keep in memory you would use this class and use the compressFrame call that belongs here. This class will then handle the memory that the compressed image is loaded into. If you call one of the super compressFrame calls then this class does NOT know about the compressed data.
DSequenceFromMemory
Constructor Summary | |
CSequenceToMemory(int numFrames)
Create an instance of this class in order to compress a sequence of frames and store them in memory. |
|
CSequenceToMemory(QDGraphics src,
QDRect srcRect,
int depth,
int cType,
CodecComponent codec,
int spatialQuality,
int temporalQuality,
int keyFrameRate,
ColorTable cTab,
int flags)
Create an instance of this class in order to compress a sequence of frames and store them in memory. |
Method Summary | |
void |
begin(QDGraphics src,
QDRect srcRect,
int colorDepth,
int cType,
CodecComponent codec,
int spatialQuality,
int temporalQuality,
int keyFrameRate,
ColorTable clut,
int flags)
Signals the beginning of the process of compressing a sequence of frames. |
int |
compressFrame(QDGraphics src,
QDRect srcRect,
int flags)
Your application calls this method to compress one of a sequence of frames. |
ImageDescription |
getDescription()
This method should return an ImageDescription that describes the image data that the class contains. |
CSequence |
getSequence()
Returns the CSequence object - this may return null if you haven't called created the sequence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CSequenceToMemory(int numFrames)
numFrames
- the number of Frames that the compression will holdquicktime.std.image.CSequence.begin
public CSequenceToMemory(QDGraphics src, QDRect srcRect, int depth, int cType, CodecComponent codec, int spatialQuality, int temporalQuality, int keyFrameRate, ColorTable cTab, int flags) throws QTException
src
- a QDGraphics containing the PixMap object containing the source data to be compressedsrcRect
- a QDRect defining the portion of the image to compressdepth
- the depth of the color or 0 for the current device's depthcType
- the compressor typecodec
- the compressor identifierspatialQuality
- the desired compressed image qualitytemporalQuality
- the desired sequence temporal qualitykeyFrameRate
- the maximum number of frames allowed between key framescTab
- the ColorTable or null that is used in the compressionflags
- flags providing further control informationMethod Detail |
public void begin(QDGraphics src, QDRect srcRect, int colorDepth, int cType, CodecComponent codec, int spatialQuality, int temporalQuality, int keyFrameRate, ColorTable clut, int flags) throws QTException
src
- a QDGraphics containing the PixMap object containing the source data to be compressedsrcRect
- a QDRect defining the portion of the image to compresscolorDepth
- the depth at which the sequence is likely to be viewedcType
- the compressor typecodec
- the compressor identifierspatialQuality
- the desired compressed image qualitytemporalQuality
- the desired sequence temporal qualitykeyFrameRate
- the maximum number of frames allowed between key framesclut
- a custum color lookup tableflags
- flags providing further control informationpublic int compressFrame(QDGraphics src, QDRect srcRect, int flags) throws QTException
src
- a QDGraphics containing the PixMap that contains the image to be compressedsrcRect
- a QDRect defining the portion of the image to compressflags
- flags providing further control informationpublic ImageDescription getDescription() throws QTException
public CSequence getSequence()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |