|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jj2000.j2k.image.DataBlk
|
+--jj2000.j2k.image.DataBlkFloat
This is an implementation of the DataBlk interface for 32 bit floating point data (float).
The methods in this class are declared final, so that they can be inlined by inlining compilers.
DataBlk| Field Summary | |
float[] |
data
The array where the data is stored |
| Fields inherited from class jj2000.j2k.image.DataBlk |
h, offset, progressive, scanw, TYPE_BYTE, TYPE_FLOAT, TYPE_INT, TYPE_SHORT, ulx, uly, w |
| Constructor Summary | |
DataBlkFloat()
Creates a DataBlkFloat with 0 dimensions and no data array (i.e. |
|
DataBlkFloat(DataBlkFloat src)
Copy constructor. |
|
DataBlkFloat(int ulx,
int uly,
int w,
int h)
Creates a DataBlkFloat with the specified dimensions and position. |
|
| Method Summary | |
java.lang.Object |
getData()
Returns the array containing the data, or null if there is no data array. |
float[] |
getDataFloat()
Returns the array containing the data, or null if there is no data array. |
int |
getDataType()
Returns the identifier of this data type, TYPE_FLOAT, as defined in DataBlk. |
void |
setData(java.lang.Object arr)
Sets the data array to the specified one. |
void |
setDataFloat(float[] arr)
Sets the data array to the specified one. |
java.lang.String |
toString()
Returns a string of informations about the DataBlkInt. |
| Methods inherited from class jj2000.j2k.image.DataBlk |
getSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public float[] data
| Constructor Detail |
public DataBlkFloat()
public DataBlkFloat(int ulx,
int uly,
int w,
int h)
ulx - The horizontal coordinate of the upper-left corner of the
blockuly - The vertical coordinate of the upper-left corner of the
blockw - The width of the block (in pixels)h - The height of the block (in pixels)public DataBlkFloat(DataBlkFloat src)
| Method Detail |
public final int getDataType()
getDataType in class DataBlkDataBlk.TYPE_FLOATpublic final java.lang.Object getData()
getData in class DataBlkDataBlk.getDataType()public final float[] getDataFloat()
public final void setData(java.lang.Object arr)
setData in class DataBlkarr - The data array to use. Must be a float array.DataBlk.getDataType()public final void setDataFloat(float[] arr)
arr - The data array to use.public java.lang.String toString()
toString in class DataBlk
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||