|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.QTObject | +--quicktime.util.QTPointerRef | +--quicktime.util.QTPointer | +--quicktime.util.RawEncodedImage
RawEncodedImages keep the encoded image data as a pointer to some block of memory. This is a totally opaque representation of the encoded image - it does not provide any means of directly manipulating the encoded data.
| Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
| Fields inherited from interface quicktime.util.EncodedImage |
kRowBytesUnknown |
| Constructor Summary | |
RawEncodedImage(byte[] bytes)
This will return a RawEncodedImage object from a byte array. |
|
RawEncodedImage(int[] ints)
This will return a RawEncodedImage object from an int array. |
|
RawEncodedImage(int[] ints,
int rowBytes)
This will return a RawEncodedImage object from an int array. |
|
RawEncodedImage(int size,
boolean clear)
Allocate the specified amount of bytes for containing encoded image data. |
|
RawEncodedImage(int size,
boolean clear,
int rowBytes)
Allocate the specified amount of bytes for containing encoded image data. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a copy of this object |
static RawEncodedImage |
fromPixMap(PixMap pm)
Returns the actual Pixel data itself. |
static RawEncodedImage |
fromQTHandle(QTHandleRef hdl)
This will return a RawEncodedImage object from a handle. |
static RawEncodedImage |
fromQTPointer(QTPointerRef ptr)
This will return a RawEncodedImage object from a pointer. |
static RawEncodedImage |
fromSprite(Sprite s)
This method gets the image data property of this sprite. |
byte |
getByte(int offset)
Returns the byte at the specified offset |
int |
getInt(int offset)
Returns the int at the specified offset |
int |
getRowBytes()
Returns either kRowBytesUnknown or the number of bytes per row that the encoded image data is comprised of. |
short |
getShort(int offset)
Returns the short at the specified offset |
void |
setByte(int offset,
byte value)
Sets the byte at the specified offset |
void |
setInt(int offset,
int value)
Sets the int at the specified offset |
void |
setInts(int offset,
int[] value)
Sets an array of ints at the specified offset |
void |
setRowBytes(int rowBytes)
Sets the row bytes of the encoded image data |
void |
setShort(int offset,
short value)
Sets the short at the specified offset |
| Methods inherited from class quicktime.util.QTPointer |
concatenate, fromEncodedImage, fromGraphicsExporter, fromSCData, setSize |
| Methods inherited from class quicktime.util.QTPointerRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, getBytes, getSize, toString |
| Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface quicktime.util.EncodedImage |
getSize |
| Constructor Detail |
public RawEncodedImage(byte[] bytes) throws QTException
public RawEncodedImage(int[] ints) throws QTException
ints - the int array containing the image datapublic RawEncodedImage(int[] ints, int rowBytes) throws QTException
ints - the int array containing the image datarowBytes - the row bytes of the image datapublic RawEncodedImage(int size, boolean clear) throws QTException
size - the size of the pointer to create.clear - clear the pointer upon creation.public RawEncodedImage(int size, boolean clear, int rowBytes) throws QTException
size - the size of the pointer to create.clear - clear the pointer upon creation.rowBytes - the rowbytes of the encoded image.| Method Detail |
public static RawEncodedImage fromQTPointer(QTPointerRef ptr)
public static RawEncodedImage fromQTHandle(QTHandleRef hdl)
public static RawEncodedImage fromPixMap(PixMap pm)
pm - the PixMapPixMap.getPixelData()public static RawEncodedImage fromSprite(Sprite s) throws StdQTException
Sprite.getImageData()public java.lang.Object clone()
clone in class QTPointerpublic byte getByte(int offset)
getByte in interface EncodedImageoffset - The offset is specified in bytes into the encoded image object.public void setByte(int offset, byte value)
offset - The offset is specified in bytes into the encoded image object.value - the new value.public short getShort(int offset)
getShort in interface EncodedImageoffset - The offset is specified in bytes into the encoded image object.public void setShort(int offset, short value)
offset - The offset is specified in bytes into the encoded image object.value - the new value.public int getInt(int offset)
getInt in interface EncodedImageoffset - The offset is specified in bytes into the encoded image object.public void setInt(int offset, int value)
offset - The offset is specified in bytes into the encoded image object.value - the new value.public void setInts(int offset, int[] value)
offset - The offset is specified in bytes into the encoded image object.value - an array of intspublic int getRowBytes()
getRowBytes in interface EncodedImagepublic void setRowBytes(int rowBytes)
rowBytes - the rowBytes of the encoded image data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||