Свойство | Тип | Описание | |
---|---|---|---|
computed | ComputedComponents | ||
csMap | |||
dataFloat | float[][] | ||
dataInt | int[][] | ||
eol | System.String | ||
fixedPtBitsArray | int[] | ||
inFloat | CSJ2K.j2k.image.DataBlkFloat[] | ||
inInt | CSJ2K.j2k.image.DataBlkInt[] | ||
maxValueArray | int[] | ||
ncomps | int | ||
pl | CSJ2K.j2k.util.ParameterList | ||
shiftValueArray | int[] | ||
src | BlkImgDataSrc | ||
srcBlk | CSJ2K.j2k.image.DataBlk[] | ||
workDataFloat | float[][] | ||
workDataInt | int[][] | ||
workFloat | DataBlkFloat[] | ||
workInt | DataBlkInt[] |
Метод | Описание | |
---|---|---|
close ( ) : void |
Closes the underlying file or network connection from where the image data is being read.
|
|
createInstance ( BlkImgDataSrc src, |
Factory method for creating instances of this class.
|
|
getCompData ( CSJ2K.j2k.image.DataBlk out_Renamed, int c ) : CSJ2K.j2k.image.DataBlk |
Returns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a copy of the internal data, therefore the returned data can be modified "in place". The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' of the returned data is 0, and the 'scanw' is the same as the block's width. See the 'DataBlk' class. This method, in general, is less efficient than the 'getInternCompData()' method since, in general, it copies the data. However if the array of returned data is to be modified by the caller then this method is preferable. If the data array in 'blk' is 'null', then a new one is created. If the data array is not 'null' then it is reused, and it must be large enough to contain the block's data. Otherwise an 'ArrayStoreException' or an 'IndexOutOfBoundsException' is thrown by the Java system. The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data.
|
|
getFixedPoint ( int c ) : int |
Returns the number of bits, referred to as the "range bits", corresponding to the nominal range of the data in the specified component. If this number is b then for unsigned data the nominal range is between 0 and 2^b-1, and for signed data it is between -2^(b-1) and 2^(b-1)-1. For floating point data this value is not applicable.
|
|
getInternCompData ( CSJ2K.j2k.image.DataBlk out_Renamed, int c ) : CSJ2K.j2k.image.DataBlk |
Returns, in the blk argument, a block of image data containing the specifed rectangular area, in the specified component. The data is returned, as a reference to the internal data, if any, instead of as a copy, therefore the returned data should not be modified. The rectangular area to return is specified by the 'ulx', 'uly', 'w' and 'h' members of the 'blk' argument, relative to the current tile. These members are not modified by this method. The 'offset' and 'scanw' of the returned data can be arbitrary. See the 'DataBlk' class. This method, in general, is more efficient than the 'getCompData()' method since it may not copy the data. However if the array of returned data is to be modified by the caller then the other method is probably preferable. If possible, the data in the returned 'DataBlk' should be the internal data itself, instead of a copy, in order to increase the data transfer efficiency. However, this depends on the particular implementation (it may be more convenient to just return a copy of the data). This is the reason why the returned data should not be modified. If the data array in blk is null, then a new one is created if necessary. The implementation of this interface may choose to return the same array or a new one, depending on what is more efficient. Therefore, the data array in blk prior to the method call should not be considered to contain the returned data, a new array may have been created. Instead, get the array from blk after the method has returned. The returned data may have its 'progressive' attribute set. In this case the returned data is only an approximation of the "final" data.
|
|
isOrigSigned ( int c ) : bool |
Returns true if the data read was originally signed in the specified component, false if not.
|
Метод | Описание | |
---|---|---|
ColorSpaceMapper ( BlkImgDataSrc src, |
Ctor which creates an ICCProfile for the image and initializes all data objects (input, working, and output).
|
|
copyGeometry ( CSJ2K.j2k.image.DataBlk tgt, CSJ2K.j2k.image.DataBlk src ) : void |
Copy the DataBlk geometry from source to target DataBlk and assure that the target has an appropriate data buffer.
|
Метод | Описание | |
---|---|---|
InitBlock ( ) : void | ||
initialize ( ) : void |
General utility used by ctors
|
protected ColorSpaceMapper ( BlkImgDataSrc src, |
||
src | BlkImgDataSrc | -- Source of image data /// |
csMap | ||
Результат | System |
protected static copyGeometry ( CSJ2K.j2k.image.DataBlk tgt, CSJ2K.j2k.image.DataBlk src ) : void | ||
tgt | CSJ2K.j2k.image.DataBlk | has its geometry set. /// |
src | CSJ2K.j2k.image.DataBlk | used to get the new geometric parameters. /// |
Результат | void |
public static createInstance ( BlkImgDataSrc src, |
||
src | BlkImgDataSrc | -- source of image data /// |
csMap | -- provides colorspace info /// | |
Результат | BlkImgDataSrc |
public getCompData ( CSJ2K.j2k.image.DataBlk out_Renamed, int c ) : CSJ2K.j2k.image.DataBlk | ||
out_Renamed | CSJ2K.j2k.image.DataBlk | |
c | int | The index of the component from which to get the data. /// /// |
Результат | CSJ2K.j2k.image.DataBlk |
public getFixedPoint ( int c ) : int | ||
c | int | The index of the component. /// /// |
Результат | int |
public getInternCompData ( CSJ2K.j2k.image.DataBlk out_Renamed, int c ) : CSJ2K.j2k.image.DataBlk | ||
out_Renamed | CSJ2K.j2k.image.DataBlk | |
c | int | The index of the component from which to get the data. /// /// |
Результат | CSJ2K.j2k.image.DataBlk |
public isOrigSigned ( int c ) : bool | ||
c | int | The index of the component, from 0 to C-1. /// /// |
Результат | bool |
protected DataBlkFloat[],CSJ2K.j2k.image inFloat | ||
Результат | CSJ2K.j2k.image.DataBlkFloat[] |
protected DataBlkInt[],CSJ2K.j2k.image inInt | ||
Результат | CSJ2K.j2k.image.DataBlkInt[] |
protected ParameterList,CSJ2K.j2k.util pl | ||
Результат | CSJ2K.j2k.util.ParameterList |
protected DataBlk[],CSJ2K.j2k.image srcBlk | ||
Результат | CSJ2K.j2k.image.DataBlk[] |