|
|||||||||
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.CSequence
This class is used for compressing a sequence of images.
CDSequence
,
DSequence
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
CSequence(QDGraphics src,
QDRect srcRect,
int cType,
CodecComponent codec,
int spatialQuality,
int temporalQuality,
int keyFrameRate,
int flags)
Creating an instance of this class signals the beginning of the process of compressing a sequence of frames. |
|
CSequence(QDGraphics src,
QDRect srcRect,
int colorDepth,
int cType,
CodecComponent codec,
int spatialQuality,
int temporalQuality,
int keyFrameRate,
ColorTable clut,
int flags)
Creating an instance of this class signals the beginning of the process of compressing a sequence of frames. |
Method Summary | |
CompressedFrameInfo |
compressFrame(QDGraphics src,
QDRect srcRect,
int flags,
ByteEncodedImage data)
Your application calls this method to compress one of a sequence of frames. |
CompressedFrameInfo |
compressFrame(QDGraphics src,
QDRect srcRect,
int flags,
EncodedImage data)
Your application calls this method to compress one of a sequence of frames. |
CompressedFrameInfo |
compressFrame(QDGraphics src,
QDRect srcRect,
int flags,
IntEncodedImage data)
Your application calls this method to compress one of a sequence of frames. |
CompressedFrameInfo |
compressFrame(QDGraphics src,
QDRect srcRect,
int flags,
RawEncodedImage data)
Your application calls this method to compress one of a sequence of frames. |
DataRateParams |
getDataRateParams()
This method obtains the data rate parameters previously set with the setCDataRateParams method. |
int |
getFrameNumber()
This method returns the current frame number of this sequence. |
int |
getKeyFrameRate()
This method lets you determine the current key frame rate of a sequence. |
int |
getMaxCompressionSize(QDGraphics src)
This method allows your application to determine the maximum size an image will be after compression for a given compression sequence. |
QDGraphics |
prevBuffer()
This method determines the location of the previous image buffer allocated by the compressor. |
void |
setDataRateParams(DataRateParams params)
This method allows the application to set data rate parameters, which communicate information to compressors that can constrain compressed data in a particular sequence to a specific data rate. |
void |
setFrameNumber(int frameNumber)
This method informs the compressor in use for this sequence that frames are being compressed out of order. |
void |
setKeyFrameRate(int keyFrameRate)
This method allows you to adjust the key frame rate for the current sequence. |
void |
setPreferredPacketSize(int preferredPacketSize)
Sets the preferred packet size for a sequence. |
void |
setPrev(QDGraphics prev,
QDRect prevRect)
This method allows the application to set the pixel map and boundary rectangle used by the previous frame in temporal compression. |
void |
setQuality(int spatialQuality,
int temporalQuality)
This method allows you to adjust the spatial or temporal quality for the current sequence. |
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 CSequence(QDGraphics src, QDRect srcRect, int cType, CodecComponent codec, int spatialQuality, int temporalQuality, int keyFrameRate, int flags) throws QTException
src
- a QDGraphics object containing the PixMap which is the source data to be compressed. This may NOT be null.srcRect
- a QDRect defining the portion of the image to compresscType
- the compressor typecodec
- the compressor identifierspatialQuality
- the desired compressed image qualitytemporalQuality
- the desired sequence temporal qualitykeyFrameRate
- the maximum number of frames allowed between key framesflags
- flags providing further control informationpublic CSequence(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 object containing the PixMap which is the source data to be compressed. This may NOT be null.srcRect
- 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 informationMethod Detail |
public CompressedFrameInfo compressFrame(QDGraphics src, QDRect srcRect, int flags, EncodedImage data) throws StdQTException, QDException
src
- a QDGraphics that contains the PixMap object containing the source data to be compressed. This may NOT be null.srcRect
- a QDRect defining the portion of the image to compressflags
- flags providing further control informationdata
- an EncodedImage object to hold the compressed image data. It is
your program's responsibility to make sure that this object can
receive at least as much data as indicated by the
getMaxCompressionSize method.public CompressedFrameInfo compressFrame(QDGraphics src, QDRect srcRect, int flags, IntEncodedImage data) throws StdQTException
src
- a QDGraphics that contains the PixMap object containing the source data to be compressed. This may NOT be null.srcRect
- a QDRect defining the portion of the image to compressflags
- flags providing further control informationdata
- an EncodedImage object to hold the compressed image data. It is
your program's responsibility to make sure that this object can
receive at least as much data as indicated by the
getMaxCompressionSize method.public CompressedFrameInfo compressFrame(QDGraphics src, QDRect srcRect, int flags, ByteEncodedImage data) throws StdQTException
src
- a QDGraphics that contains the PixMap object containing the source data to be compressed. This may NOT be null.srcRect
- a QDRect defining the portion of the image to compressflags
- flags providing further control informationdata
- an EncodedImage object to hold the compressed image data. It is
your program's responsibility to make sure that this object can
receive at least as much data as indicated by the
getMaxCompressionSize method.public CompressedFrameInfo compressFrame(QDGraphics src, QDRect srcRect, int flags, RawEncodedImage data) throws StdQTException
src
- a QDGraphics that contains the PixMap object containing the source data to be compressed. This may NOT be null.srcRect
- a QDRect defining the portion of the image to compressflags
- flags providing further control informationdata
- an EncodedImage object to hold the compressed image data. It is
your program's responsibility to make sure that this object can
receive at least as much data as indicated by the
getMaxCompressionSize method.public int getMaxCompressionSize(QDGraphics src) throws StdQTException
src
- a QDGraphics that contains the PixMap which is the source image compression data. This may NOT be null.public void setQuality(int spatialQuality, int temporalQuality) throws StdQTException
spatialQuality
- the desired compressed image qualitytemporalQuality
- the desired sequence temporal qualitypublic void setKeyFrameRate(int keyFrameRate) throws StdQTException
keyFrameRate
- the maximum number of frames allowed between key framespublic int getKeyFrameRate() throws StdQTException
public void setFrameNumber(int frameNumber) throws StdQTException
frameNumber
- the frame number of the frame that is being compressed
out of sequencepublic int getFrameNumber() throws StdQTException
public void setPrev(QDGraphics prev, QDRect prevRect) throws StdQTException
prev
- a QDGraphics that contains the PixMap defining the new previous image. This may NOT be null.prevRect
- a QDRect defining the portion of the previous image to use for
temporal compression. May be to nullpublic QDGraphics prevBuffer() throws StdQTException
public void setDataRateParams(DataRateParams params) throws StdQTException
params
- a DataRateParams objectDataRateParams
public DataRateParams getDataRateParams() throws StdQTException
public void setPreferredPacketSize(int preferredPacketSize) throws StdQTException
preferredPacketSize
- the preferred packet size in bytes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |