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.


Constructor Index

 o RawEncodedImage(byte[])
This will return a RawEncodedImage object from a byte array.
 o RawEncodedImage(int, boolean)
Allocate the specified amount of bytes for containing encoded image data.
 o RawEncodedImage(int, boolean, int)
Allocate the specified amount of bytes for containing encoded image data.
 o RawEncodedImage(int[])
This will return a RawEncodedImage object from an int array.
 o RawEncodedImage(int[], int)
This will return a RawEncodedImage object from an int array.

Method Index

 o clone()
Returns a copy of this object
 o fromPixMap(PixMap)
Returns the actual Pixel data itself.
 o fromQTHandle(QTHandleRef)
This will return a RawEncodedImage object from a handle.
 o fromQTPointer(QTPointerRef)
This will return a RawEncodedImage object from a pointer.
 o fromSprite(Sprite)
This method gets the image data property of this sprite.
 o getByte(int)
Returns the byte at the specified offset
 o getInt(int)
Returns the int at the specified offset
 o getRowBytes()
Returns either kRowBytesUnknown or the number of bytes per row that the encoded image data is comprised of.
 o getShort(int)
Returns the short at the specified offset
 o setByte(int, byte)
Sets the byte at the specified offset
 o setInt(int, int)
Sets the int at the specified offset
 o setInts(int, int[])
Sets an array of ints at the specified offset
 o setShort(int, short)
Sets the short at the specified offset

Constructors

 o RawEncodedImage
 public RawEncodedImage(byte bytes[]) throws QTException
This will return a RawEncodedImage object from a byte array. It will copy the bytes.

 o RawEncodedImage
 public RawEncodedImage(int ints[]) throws QTException
This will return a RawEncodedImage object from an int array. It will copy the ints.

 o RawEncodedImage
 public RawEncodedImage(int ints[],
                        int rowBytes) throws QTException
This will return a RawEncodedImage object from an int array. It will copy the ints.

 o 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.
 o 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.

Methods

 o 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.

 o 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.

 o 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
 o 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
 o clone
 public Object clone()
Returns a copy of this object

Overrides:
clone in class QTPointer
 o 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
 o 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.
 o 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
 o 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.
 o 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
 o 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.
 o 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
 o 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