|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.util.QTByteObject
|
+--quicktime.util.ByteEncodedImage
ByteEncodedImages keep the encoded image data as an array of bytes.
| Field Summary |
| Fields inherited from interface quicktime.util.EncodedImage |
kRowBytesUnknown |
| Fields inherited from interface quicktime.jdirect.PrimitivesLib |
JDirect_MacOSX, libraryInstance |
| Constructor Summary | |
ByteEncodedImage(int size)
Creates a new ByteEncodedImage of specified size. |
|
ByteEncodedImage(int size,
int rowBytes)
Creates a new ByteEncodedImage of specified size with the specified rowBytes |
|
ByteEncodedImage(RawEncodedImage ptr)
Creates a ByteEncodedImage from raw data. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a copy of the current object |
static ByteEncodedImage |
fromByteArray(byte[] ar)
This will make a ByteEncodedImage from an array of bytes. |
static ByteEncodedImage |
fromByteArray(byte[] ar,
int rowBytes)
This will make a ByteEncodedImage from an array of bytes. |
byte |
getByte(int offset)
Returns the byte at the specified offset The offset is specified in bytes into the encoded image object. |
int |
getInt(int offset)
Returns the int at the specified offset The offset is specified in bytes into the encoded image object. |
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 The offset is specified in bytes into the encoded image object. |
| Methods inherited from class quicktime.util.QTByteObject |
equals, fromArray, getBytes, getSize, toString |
| 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 ByteEncodedImage(RawEncodedImage ptr)
public ByteEncodedImage(int size)
public ByteEncodedImage(int size,
int rowBytes)
| Method Detail |
public static ByteEncodedImage fromByteArray(byte[] ar)
public static ByteEncodedImage fromByteArray(byte[] ar,
int rowBytes)
public java.lang.Object clone()
clone in class java.lang.Objectpublic byte getByte(int offset)
getByte in interface EncodedImagepublic short getShort(int offset)
getShort in interface EncodedImagepublic int getInt(int offset)
getInt in interface EncodedImagepublic int getRowBytes()
getRowBytes in interface EncodedImage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||