|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Bitwise
public class Bitwise
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Bitwise()
|
|
Bitwise(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Bitwise(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Bitwise(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
static long |
firstPO2From(long n)
Returns the closest power-of-two number greater or equal to value. |
static long |
fixedToFixed(long value,
long n,
long p)
Convert N bit colour channel value to P bits. |
static float |
fixedToFloat(long value,
long bits)
Fixed point to float |
static long |
floatToFixed(float value,
long bits)
Convert floating point colour channel value between 0.0 and 1.0 (otherwise clamped) to integer of a certain number of bits. |
static int |
floatToHalf(float i)
Convert a float32 to a float16 (NV_half_float) Courtesy of OpenEXR |
static int |
floatToHalfI(long i)
Converts float in uint32 format to a a half in uint16 format |
static float |
halfToFloat(int y)
Convert a float16 (NV_half_float) to a float32 Courtesy of OpenEXR |
static long |
halfToFloatI(int y)
Converts a half in uint16 format to a float in uint32 format |
static long |
intRead(VoidPointer src,
int n)
Read a n*8 bits integer value to memory in native endian. |
static void |
intWrite(VoidPointer dest,
int n,
long value)
Write a n*8 bits integer value to memory in native endian. |
static long |
mostSignificantBitSet(long value)
Returns the most significant bit set in a value. |
| 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 Bitwise(InstancePointer p)
protected Bitwise(InstancePointer p,
boolean remote)
public Bitwise(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Bitwise()
| 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 long mostSignificantBitSet(long value)
public static long firstPO2From(long n)
public static long fixedToFixed(long value,
long n,
long p)
public static long floatToFixed(float value,
long bits)
public static float fixedToFloat(long value,
long bits)
public static void intWrite(VoidPointer dest,
int n,
long value)
public static long intRead(VoidPointer src,
int n)
public static int floatToHalf(float i)
public static int floatToHalfI(long i)
public static float halfToFloat(int y)
public static long halfToFloatI(int y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||