public class SYccColorSpaceMapper extends ColorSpaceMapper
jj2000.j2k.colorspace.ColorSpaceColorSpaceMapper.ComputedComponents| Modifier and Type | Field and Description |
|---|---|
protected static float |
Matrix00
Matrix component for ycc transform.
|
protected static float |
Matrix01
Matrix component for ycc transform.
|
protected static float |
Matrix02
Matrix component for ycc transform.
|
protected static float |
Matrix10
Matrix component for ycc transform.
|
protected static float |
Matrix11
Matrix component for ycc transform.
|
protected static float |
Matrix12
Matrix component for ycc transform.
|
protected static float |
Matrix20
Matrix component for ycc transform.
|
protected static float |
Matrix21
Matrix component for ycc transform.
|
protected static float |
Matrix22
Matrix component for ycc transform.
|
computed, csMap, dataFloat, dataInt, eol, fixedPtBitsArray, inFloat, inInt, maxValueArray, ncomps, OPT_PREFIX, pl, shiftValueArray, src, srcBlk, workDataFloat, workDataInt, workFloat, workIntimgdatasrc, tIdx| Modifier | Constructor and Description |
|---|---|
protected |
SYccColorSpaceMapper(BlkImgDataSrc src,
ColorSpace csMap)
Ctor which creates an ICCProfile for the image and initializes
all data objects (input, working, and output).
|
| Modifier and Type | Method and Description |
|---|---|
static BlkImgDataSrc |
createInstance(BlkImgDataSrc src,
ColorSpace csMap)
Factory method for creating instances of this class.
|
DataBlk |
getCompData(DataBlk outblk,
int c)
Returns, in the blk argument, a block of image data containing the
specifed rectangular area, in the specified component.
|
DataBlk |
getInternCompData(DataBlk out,
int c)
Returns, in the blk argument, a block of image data containing the
specifed rectangular area, in the specified component.
|
String |
toString()
Return a suitable String representation of the class instance.
|
copyGeometry, getFixedPoint, getParameterInfo, setInternalBuffergetCompImgHeight, getCompImgWidth, getCompSubsX, getCompSubsY, getCompULX, getCompULY, getImgHeight, getImgULX, getImgULY, getImgWidth, getNomRangeBits, getNomTileHeight, getNomTileWidth, getNumComps, getNumTiles, getNumTiles, getTile, getTileCompHeight, getTileCompWidth, getTileHeight, getTileIdx, getTilePartULX, getTilePartULY, getTileWidth, nextTile, setTileclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCompImgHeight, getCompImgWidth, getCompSubsX, getCompSubsY, getCompULX, getCompULY, getImgHeight, getImgULX, getImgULY, getImgWidth, getNomRangeBits, getNomTileHeight, getNomTileWidth, getNumComps, getNumTiles, getNumTiles, getTile, getTileCompHeight, getTileCompWidth, getTileHeight, getTileIdx, getTilePartULX, getTilePartULY, getTileWidth, nextTile, setTileprotected static float Matrix00
protected static float Matrix01
protected static float Matrix02
protected static float Matrix10
protected static float Matrix11
protected static float Matrix12
protected static float Matrix20
protected static float Matrix21
protected static float Matrix22
protected SYccColorSpaceMapper(BlkImgDataSrc src, ColorSpace csMap) throws ColorSpaceException
src - -- Source of image datacsm - -- provides colorspace infoColorSpaceExceptionpublic static BlkImgDataSrc createInstance(BlkImgDataSrc src, ColorSpace csMap) throws ColorSpaceException
src - -- source of image datacsMap - -- provides colorspace infoColorSpaceExceptionpublic DataBlk getCompData(DataBlk outblk, int c)
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.
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 has its 'progressive' attribute set to that of the input data.
getCompData in interface BlkImgDataSrcgetCompData in class ColorSpaceMapperblk - Its coordinates and dimensions specify the area to
return. If it contains a non-null data array, then it must have the
correct dimensions. If it contains a null data array a new one is
created. The fields in this object are modified to return the data.c - The index of the component from which to get the data. Only 0
and 3 are valid.getInternCompData(jj2000.j2k.image.DataBlk, int)public DataBlk getInternCompData(DataBlk out, int c)
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.
getInternCompData in interface BlkImgDataSrcgetInternCompData in class ColorSpaceMapperblk - Its coordinates and dimensions specify the area to return,
relative to the current tile. Some fields in this object are modified
to return the data.c - The index of the component from which to get the data.getCompData(jj2000.j2k.image.DataBlk, int)Copyright © 2015. All rights reserved.