|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.util.QTHandleRef | +--quicktime.std.movies.media.SampleDescription | +--quicktime.std.image.ImageDescription
This class corresponds to the image description handle. refer to ImageDescription in QuickTime
Field Summary | |
static int |
kNativeSize
This is the size (the number of bytes) that are required for this class |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
ImageDescription(int format)
Create an ImageDescription structure |
|
ImageDescription(PixMap pixmap)
Create an ImageDescription from a PixMap. |
Method Summary | |
void |
addExtension(int idType,
QTHandle extension)
Add the extended data of the image. |
java.lang.Object |
clone()
Implementation of Cloneable Interface. |
int |
countExtensionType(int idType)
Counts the number of extensions of a given type. |
static ImageDescription |
forEffect(int effectType)
Create an ImageDescription for an Effect Type. |
static ImageDescription |
fromGraphicsExporter(GraphicsExporter ge)
Determines the image description information. |
static ImageDescription |
fromGraphicsExporterCompressor(GraphicsExporter ge,
AtomContainer ac)
Returns the image description information. |
static ImageDescription |
fromGraphicsImporter(GraphicsImporter gi)
Determines the image description information. |
static QTImage |
fromImageCompressionDialog(ImageCompressionDialog icd,
QDGraphics src,
QDRect srcRect)
Compresses a frame that is sourced by a PixMap from the supplied QDGraphics, returning the compressed data and an image description. |
static ImageDescription |
fromSprite(Sprite s)
This method gets the image description property of this sprite. |
QDRect |
getBounds()
Return a QDRect that describes the width and height of the Image the description describes. |
int |
getClutID()
Return ID number of the color table for image. |
ColorTable |
getCTable()
Get the custom color table for an image. |
int |
getCType()
Return the compressor creator type. |
int |
getDataSize()
Return the size of the compressed image. |
int |
getDepth()
Return pixel depth of source image. |
static EndianDescriptor |
getEndianDescriptor()
Returns the EndianDescriptor for this class. |
int |
getExtension(int idType,
int index)
Obtain the extended data for an image. |
int |
getFrameCount()
Return number of frames in image data. |
int |
getHeight()
Return the height of the source image. |
float |
getHRes()
Return the horizontal resolution of the source image. |
int |
getIdSize()
Return the total size of this structure. |
static ImageDescription |
getJavaDefaultPixelDescription(int width,
int height)
Create an ImageDescription structure that describes the default Java pixel format. |
java.lang.String |
getName()
Return name of the compression algorithm. |
int |
getNextExtensionType()
Returns the next extension type. |
int |
getRevisionLevel()
Return the revision level. |
int |
getSpatialQuality()
Return the Spatial Quality. |
int |
getTemporalQuality()
Return the temporal Quality. |
int |
getVendor()
Return the vendor. |
int |
getVersion()
Return the version of compressed data. |
float |
getVRes()
Return the vertical resolution of the source image. |
int |
getWidth()
Return the width of the source image. |
QDGraphics |
newGWorld(int flags)
Creates an offscreen QDGraphics object from the width, height, depth, and color table of a specified image description structure. |
void |
removeExtension(int idType,
int index)
Removes a specified extension from an ImageDescription. |
void |
setClutID(int clutID)
Set the id number of the color table. |
void |
setCTable(ColorTable cTable)
Update the custom color table for an image. |
void |
setCType(int cType)
Set the compressor creator type. |
void |
setDataSize(int dataSize)
Set the data size. |
void |
setDepth(int depth)
Set the pixel depth. |
void |
setFrameCount(int frameCount)
Set the frame count. |
void |
setHeight(int height)
Set height of source image in pixels. |
void |
setHRes(float hRes)
Set horizontal resolution. |
void |
setName(java.lang.String name)
Set the name of the compression algorithm. |
void |
setRevisionLevel(int revision)
Set the revision level. |
void |
setSpatialQuality(int spatialQuality)
Set spatial quality. |
void |
setTemporalQuality(int temporalQuality)
Set temporal quality. |
void |
setVendor(int vendor)
Set the vendor. |
void |
setVersion(int version)
Set the version. |
void |
setVRes(float vRes)
Set vertical resolution. |
void |
setWidth(int width)
Set width of source image in pixels. |
java.lang.String |
toString()
Returns the String representation of this Image Description. |
Methods inherited from class quicktime.std.movies.media.SampleDescription |
fromMovieImporter, getDataFormat, getDataRefIndex, getSize, setDataFormat, setDataRefIndex, setSize |
Methods inherited from class quicktime.util.QTHandleRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, fromCompressionDialogState, fromSCSequence, getBytes, inMemory, isLocked, lock, lockHigh, moveHigh, toQTPointer, toQTPointer, unlock |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kNativeSize
Constructor Detail |
public ImageDescription(int format) throws QTException
format
- the dataFormatpublic ImageDescription(PixMap pixmap) throws QTException
pixmap
- the PixMap from which the imageDescription will be madeMethod Detail |
public static EndianDescriptor getEndianDescriptor()
public static ImageDescription fromGraphicsExporter(GraphicsExporter ge) throws StdQTException
GraphicsExporter.getInputImageDescription()
public static ImageDescription fromGraphicsExporterCompressor(GraphicsExporter ge, AtomContainer ac) throws StdQTException
GraphicsExporter.doUseCompressor(quicktime.std.movies.AtomContainer)
public static ImageDescription fromGraphicsImporter(GraphicsImporter gi) throws StdQTException
GraphicsImporter.getImageDescription()
public static ImageDescription fromSprite(Sprite s) throws StdQTException
Sprite.getImageDescription()
public static QTImage fromImageCompressionDialog(ImageCompressionDialog icd, QDGraphics src, QDRect srcRect) throws QTException
src
- the source PixMap.srcRect
- you can specify to compress just a part of the pix map by specifying
a rectangle - or pass in null to compress the entire pix map.ImageCompressionDialog.compressImage(quicktime.qd.QDGraphics, quicktime.qd.QDRect)
public static ImageDescription getJavaDefaultPixelDescription(int width, int height) throws QTException
width
- width of the imageheight
- height of imagepublic static ImageDescription forEffect(int effectType) throws QTException
effectType
- the effectType for which the imageDescription will be madepublic java.lang.Object clone()
clone
in class SampleDescription
public void setCTable(ColorTable cTable) throws StdQTException
cTable
- a color table.public ColorTable getCTable() throws QTException
public int countExtensionType(int idType) throws StdQTException
idType
- A four-byte signature indentifying the type of data being counted from the ImageDescription.public int getNextExtensionType() throws StdQTException
public void addExtension(int idType, QTHandle extension) throws StdQTException
idType
- A four-byte signature indentifying the type of data being added to the ImageDescription.extension
- The handle containing the extension data.public void removeExtension(int idType, int index) throws StdQTException
idType
- A four-byte signature indentifying the type of data being removed from the ImageDescription.index
- The index (from 1 to the count as returned by countExtensionType) of the extension to remove..public int getExtension(int idType, int index) throws StdQTException
idType
- specifies the extension's type value.index
- specifies the extension's index value.public QDGraphics newGWorld(int flags) throws QTException
flags
- holding graphics world flags.public int getIdSize()
public int getCType()
public int getVersion()
public int getRevisionLevel()
public int getVendor()
public int getTemporalQuality()
public int getSpatialQuality()
public int getWidth()
public int getHeight()
public QDRect getBounds()
public float getHRes()
public float getVRes()
public int getDataSize()
public int getFrameCount()
public java.lang.String getName() throws UtilException
public int getDepth()
public int getClutID()
public void setCType(int cType)
cType
- a compressor type.public void setVersion(int version)
version
- a version number.public void setRevisionLevel(int revision)
revision
- a revision number.public void setVendor(int vendor)
vendor
- a developer of the compressor.public void setTemporalQuality(int temporalQuality)
temporalQuality
- a degree of temporal compression.public void setSpatialQuality(int spatialQuality)
a
- degree of spatial compression.public void setWidth(int width)
width
- the width of the source image in pixels.public void setHeight(int height)
height
- the height of the source image in pixels.public void setHRes(float hRes)
hRes
- the horizontal resolution of the source image.public void setVRes(float vRes)
vRes
- the vertical resolution of the source image.public void setDataSize(int dataSize)
dataSize
- the size of the compressed image.public void setFrameCount(int frameCount)
frameCount
- the number of frames in the image data.public void setName(java.lang.String name) throws UtilException
name
- indicates the compression algorithm.public void setDepth(int depth)
depth
- is the pixel depth specified for the compressed image.public void setClutID(int clutID)
clutID
- contains the ID of the color table for the compressed image.public java.lang.String toString()
toString
in class SampleDescription
quicktime.std.movies.media.SampleDescription
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |