|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.PixelUtil
public class PixelUtil
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
PixelUtil()
|
|
PixelUtil(InstancePointer p)
This constructor is public for internal useage only! |
protected |
PixelUtil(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
PixelUtil(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
static void |
bulkPixelConversion(IPixelBox src,
IPixelBox dst)
Convert pixels from one format to another. |
static void |
bulkPixelConversion(VoidPointer src,
PixelFormat srcFormat,
VoidPointer dest,
PixelFormat dstFormat,
long count)
Convert consecutive pixels from one format to another. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
static java.lang.String |
getBNFExpressionOfPixelFormats(boolean accessibleOnly)
Gets the BNF expression of the pixel-formats. |
static int |
getComponentCount(PixelFormat fmt)
Returns the component count for a certain pixel format. |
static PixelComponentType |
getComponentType(PixelFormat fmt)
Returns the component type for a certain pixel format. |
static long |
getFlags(PixelFormat format)
Returns the property flags for this pixel format |
static PixelFormat |
getFormatForBitDepths(PixelFormat fmt,
int integerBits,
int floatBits)
Returns the similar format but acoording with given bit depths. |
static PixelFormat |
getFormatFromName(java.lang.String name,
boolean accessibleOnly,
boolean caseSensitive)
Gets the format from given name. |
static java.lang.String |
getFormatName(PixelFormat srcformat)
Gets the name of an image format |
static int |
getMemorySize(int width,
int height,
int depth,
PixelFormat format)
Returns the size in memory of a region with the given extents and pixel format with consecutive memory layout. |
static int |
getNumElemBits(PixelFormat format)
Returns the size in bits of an element of the given pixel format. |
static int |
getNumElemBytes(PixelFormat format)
Returns the size in bytes of an element of the given pixel format. |
static boolean |
hasAlpha(PixelFormat format)
Shortcut method to determine if the format has an alpha component |
static boolean |
isAccessible(PixelFormat srcformat)
Returns wether the format can be packed or unpacked with the and functions. |
static boolean |
isCompressed(PixelFormat format)
Shortcut method to determine if the format is compressed |
static boolean |
isDepth(PixelFormat format)
Shortcut method to determine if the format is a depth format. |
static boolean |
isFloatingPoint(PixelFormat format)
Shortcut method to determine if the format is floating point |
static boolean |
isLuminance(PixelFormat format)
Shortcut method to determine if the format is a luminance format. |
static boolean |
isNativeEndian(PixelFormat format)
Shortcut method to determine if the format is in native endian format. |
static boolean |
isValidExtent(int width,
int height,
int depth,
PixelFormat format)
Return wether a certain image extent is valid for this image format. |
static void |
packColour(float r,
float g,
float b,
float a,
PixelFormat pf,
VoidPointer dest)
Pack a colour value to memory |
static void |
packColour(IColourValue colour,
PixelFormat pf,
VoidPointer dest)
Pack a colour value to memory |
static void |
packColour(short r,
short g,
short b,
short a,
PixelFormat pf,
VoidPointer dest)
Pack a colour value to memory |
static void |
unpackColour(FloatPointer r,
FloatPointer g,
FloatPointer b,
FloatPointer a,
PixelFormat pf,
VoidPointer src)
Unpack a colour value from memory |
static void |
unpackColour(IColourValue colour,
PixelFormat pf,
VoidPointer src)
Unpack a colour value from memory |
static void |
unpackColour(ShortPointer r,
ShortPointer g,
ShortPointer b,
ShortPointer a,
PixelFormat pf,
VoidPointer src)
Unpack a colour value from memory |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public PixelUtil(InstancePointer p)
protected PixelUtil(InstancePointer p,
boolean remote)
public PixelUtil(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public PixelUtil()
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic static int getNumElemBytes(PixelFormat format)
public static int getNumElemBits(PixelFormat format)
public static int getMemorySize(int width,
int height,
int depth,
PixelFormat format)
public static long getFlags(PixelFormat format)
public static boolean hasAlpha(PixelFormat format)
public static boolean isFloatingPoint(PixelFormat format)
public static boolean isCompressed(PixelFormat format)
public static boolean isDepth(PixelFormat format)
public static boolean isNativeEndian(PixelFormat format)
public static boolean isLuminance(PixelFormat format)
public static boolean isValidExtent(int width,
int height,
int depth,
PixelFormat format)
public static java.lang.String getFormatName(PixelFormat srcformat)
public static boolean isAccessible(PixelFormat srcformat)
public static PixelComponentType getComponentType(PixelFormat fmt)
public static int getComponentCount(PixelFormat fmt)
public static PixelFormat getFormatFromName(java.lang.String name,
boolean accessibleOnly,
boolean caseSensitive)
public static java.lang.String getBNFExpressionOfPixelFormats(boolean accessibleOnly)
public static PixelFormat getFormatForBitDepths(PixelFormat fmt,
int integerBits,
int floatBits)
public static void packColour(IColourValue colour,
PixelFormat pf,
VoidPointer dest)
public static void packColour(short r,
short g,
short b,
short a,
PixelFormat pf,
VoidPointer dest)
public static void packColour(float r,
float g,
float b,
float a,
PixelFormat pf,
VoidPointer dest)
public static void unpackColour(IColourValue colour,
PixelFormat pf,
VoidPointer src)
public static void unpackColour(ShortPointer r,
ShortPointer g,
ShortPointer b,
ShortPointer a,
PixelFormat pf,
VoidPointer src)
public static void unpackColour(FloatPointer r,
FloatPointer g,
FloatPointer b,
FloatPointer a,
PixelFormat pf,
VoidPointer src)
public static void bulkPixelConversion(VoidPointer src,
PixelFormat srcFormat,
VoidPointer dest,
PixelFormat dstFormat,
long count)
public static void bulkPixelConversion(IPixelBox src,
IPixelBox dst)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||