All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.util.RawEncodedImage
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.util.QTPointerRef
|
+----quicktime.util.QTPointer
|
+----quicktime.util.RawEncodedImage
- public final class RawEncodedImage
- extends QTPointer
- implements QuickTimeLib, EncodedImage
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.
-
RawEncodedImage(byte[])
- This will return a RawEncodedImage object from a byte array.
-
RawEncodedImage(int, boolean)
- Allocate the specified amount of bytes for containing encoded image data.
-
RawEncodedImage(int, boolean, int)
- Allocate the specified amount of bytes for containing encoded image data.
-
RawEncodedImage(int[])
- This will return a RawEncodedImage object from an int array.
-
RawEncodedImage(int[], int)
- This will return a RawEncodedImage object from an int array.
-
clone()
- Returns a copy of this object
-
fromPixMap(PixMap)
- Returns the actual Pixel data itself.
-
fromQTHandle(QTHandleRef)
- This will return a RawEncodedImage object from a handle.
-
fromQTPointer(QTPointerRef)
- This will return a RawEncodedImage object from a pointer.
-
fromSprite(Sprite)
- This method gets the image data property of this sprite.
-
getByte(int)
- Returns the byte at the specified offset
-
getInt(int)
- Returns the int at the specified offset
-
getRowBytes()
- Returns either kRowBytesUnknown or the number of bytes per row
that the encoded image data is comprised of.
-
getShort(int)
- Returns the short at the specified offset
-
setByte(int, byte)
- Sets the byte at the specified offset
-
setInt(int, int)
- Sets the int at the specified offset
-
setInts(int, int[])
- Sets an array of ints at the specified offset
-
setShort(int, short)
- Sets the short at the specified offset
RawEncodedImage
public RawEncodedImage(byte bytes[]) throws QTException
- This will return a RawEncodedImage object from a byte array. It will copy
the bytes.
RawEncodedImage
public RawEncodedImage(int ints[]) throws QTException
- This will return a RawEncodedImage object from an int array. It will copy
the ints.
RawEncodedImage
public RawEncodedImage(int ints[],
int rowBytes) throws QTException
- This will return a RawEncodedImage object from an int array. It will copy
the ints.
RawEncodedImage
public RawEncodedImage(int size,
boolean clear) throws QTException
- Allocate the specified amount of bytes for containing encoded image data.
- Parameters:
- size - the size of the pointer to create.
- clear - clear the pointer upon creation.
RawEncodedImage
public RawEncodedImage(int size,
boolean clear,
int rowBytes) throws QTException
- Allocate the specified amount of bytes for containing encoded image data.
- Parameters:
- size - the size of the pointer to create.
- clear - clear the pointer upon creation.
fromQTPointer
public static RawEncodedImage fromQTPointer(QTPointerRef ptr)
- This will return a RawEncodedImage object from a pointer. It will not copy
the pointer but will reference the same data.
fromQTHandle
public static RawEncodedImage fromQTHandle(QTHandleRef hdl)
- This will return a RawEncodedImage object from a handle. It will not copy
the handle but will reference the same data.
fromPixMap
public static RawEncodedImage fromPixMap(PixMap pm)
- Returns the actual Pixel data itself. This can then be passed around in ICM calls
that deal with pixel data.
QuickTime::GetPixBaseAddr()
- Parameters:
- pm - the PixMap
- Returns:
- the pixels
- See Also:
- getPixelData
fromSprite
public static RawEncodedImage fromSprite(Sprite s) throws StdQTException
- This method gets the image data property of this sprite.
QuickTime::GetSpriteProperty ()
- Returns:
- the image data.
- See Also:
- getImageData
clone
public Object clone()
- Returns a copy of this object
- Overrides:
- clone in class QTPointer
getByte
public byte getByte(int offset)
- Returns the byte at the specified offset
- Parameters:
- offset - The offset is specified in bytes into the encoded image object.
- Returns:
- a byte
setByte
public void setByte(int offset,
byte value)
- Sets the byte at the specified offset
- Parameters:
- offset - The offset is specified in bytes into the encoded image object.
- value - the new value.
getShort
public short getShort(int offset)
- Returns the short at the specified offset
- Parameters:
- offset - The offset is specified in bytes into the encoded image object.
- Returns:
- a short
setShort
public void setShort(int offset,
short value)
- Sets the short at the specified offset
- Parameters:
- offset - The offset is specified in bytes into the encoded image object.
- value - the new value.
getInt
public int getInt(int offset)
- Returns the int at the specified offset
- Parameters:
- offset - The offset is specified in bytes into the encoded image object.
- Returns:
- an int
setInt
public void setInt(int offset,
int value)
- Sets the int at the specified offset
- Parameters:
- offset - The offset is specified in bytes into the encoded image object.
- value - the new value.
setInts
public void setInts(int offset,
int value[])
- Sets an array of ints at the specified offset
- Parameters:
- offset - The offset is specified in bytes into the encoded image object.
- value - an array of ints
getRowBytes
public int getRowBytes()
- Returns either kRowBytesUnknown or the number of bytes per row
that the encoded image data is comprised of. This number will
at least be as big as width*pixelSize, and maybe larger.
- Returns:
- an int
All Packages Class Hierarchy This Package Previous Next Index