Array containing information for all the code-blocks:
1st dim: component index.
2nd dim: resolution level index.
3rd dim: subband index.
4th/5th dim: code-block index (vert.
cbLength -
Variable in class jj2000.j2k.codestream.reader.PktInfo
The length of the code-block in this packet (in bytes)
cblk -
Variable in class jj2000.j2k.codestream.PrecInfo
Code-blocks belonging to this precinct in each subbands of the
resolution level
This interface defines a source of quantized wavelet coefficients and
methods to transfer them in a code-block by code-block basis, fro the
decoder side.
5D Array containing all the coded code-blocks:
1st index: tile index
2nd index: component index
3rd index: resolution level index
4th index: subband index
5th index: code-block index
Checks if the parameters which names do not start with any of the
prefixes in 'prfxs' in this ParameterList are all in the list of valid
parameter names 'plist'.
Creates and returns the entropy decoder corresponding to the
information read from the codestream header and with the special
additional parameters from the parameter list.
Creates a EntropyCoder object for the appropriate entropy coding
parameters in the parameter list 'pl', and having 'src' as the source
of quantized data.
Creates a Quantizer object for the appropriate type of quantization
specified in the options in the parameter list 'pl', and having 'src'
as the source of data to be quantized.
Creates a PostCompRateAllocator object for the appropriate rate
allocation parameters in the parameter list 'pl', having 'src' as the
source of entropy coded data, 'rate' as the target bitrate and 'bw' as
the bit stream writer object.
Creates and returns the ROIDeScaler corresponding to the information
read from the codestream header and with the special additional
parameters from the parameter list.
The horizontal coordinates of the upper-left corner of the active
tile, with respect to the canvas origin, in the component hi-res grid,
for each component.
The vertical coordinates of the upper-left corner of the active tile,
with respect to the canvas origin, in the component hi-res grid, for
each component.
Instantiates a decoder object, with the ParameterList object given as
argument and a component where to display the image if no output file
is specified.
This class provides Enumerated ColorSpace API for the jj2000.j2k imaging chain
by implementing the BlkImgDataSrc interface, in particular the getCompData
and getInternCompData methods.
This class manages common facilities for multi-threaded
environments, It can register different facilities for each thread,
and also a default one, so that they can be referred by static
methods, while possibly having different ones for different
threads.
This class reads the bit stream (with the help of HeaderDecoder for tile
headers and PktDecoder for packets header and body) and retrives location
of all code-block's codewords.
Constructs a new 'ForwCompTransfSpec' for the specified number of
components and tiles, the wavelet filters type and the parameter of the
option 'Mct'.
Returns the code-block height:
for the specified tile/component
for the specified tile
for the specified component
default value
The value returned depends on the value of the variable 'type' which
can take the following values :
SPEC_DEF -> Default value is returned.
Returns the code-block width :
for the specified tile/component
for the specified tile
for the specified component
default value
The value returned depends on the value of the variable 'type' which
can take the following values :
SPEC_DEF -> Default value is returned.
Returns, in the blk argument, a block of image data containing the
specifed rectangular area, in the specified component, using the
'transfer type' specified in the block given as argument.
Returns the horizontal coordinate of the image origin, the top-left
corner, in the canvas system, on the reference grid at the specified
resolution level.
Returns the horizontal coordinate of the image origin, the top-left
corner, in the canvas system, on the reference grid at the specified
resolution level.
Returns the horizontal coordinate of the image origin, the top-left
corner, in the canvas system, on the reference grid at the specified
resolution level.
Returns the vertical coordinate of the image origin, the top-left
corner, in the canvas system, on the reference grid at the specified
resolution level.
Returns the vertical coordinate of the image origin, the top-left
corner, in the canvas system, on the reference grid at the specified
resolution level.
Returns the vertical coordinate of the image origin, the top-left
corner, in the canvas system, on the reference grid at the specified
resolution level.
Returns, in the blk argument, a block of image data containing the
specifed rectangular area, in the specified component, using the
'transfer type' defined in the block given as argument.
Return a DataBlk containing the requested component
upsampled by the scale factor applied to the particular
scaling direction
Returns, in the blk argument, a block of image data containing the
specifed rectangular area, in the specified component.
Returns the number of bits, referred to as the "range bits",
corresponding to the nominal range of the data in the specified
component and in the current tile.
Returns the preferred size for this component, which is the image
display size, if known, the previous image display size, if any, or
the size specified at the constructor.
Returns the wall time spent by this compressor for component 'c'
since the last call to this method (or the creation of this
compressor if not yet called).
This class reads main and tile-part headers from the codestream given a
RandomAccessIO instance located at the beginning of the codestream (i.e
just before the SOC marker) or at the beginning of a tile-part (i.e.
This class provides ICC Profiling API for the jj2000.j2k imaging chain
by implementing the BlkImgDataSrc interface, in particular the getCompData
and getInternCompData methods.
This class implements an image viewer that can display an image larger than
the actual display area, and presents scrollbars to scroll the viewable
area.
lbbuf -
Variable in class jj2000.j2k.codestream.writer.PktEncoder
The body buffer of the last encoded packet
lblen -
Variable in class jj2000.j2k.codestream.writer.PktEncoder
The body length of the last encoded packet
lblock -
Variable in class jj2000.j2k.codestream.writer.PktEncoder
The base number of bits for sending code-block length information
(referred as Lblock in the JPEG 2000 standard).
lblock -
Variable in class jj2000.j2k.codestream.reader.PktDecoder
Lblock value used to read code size information in each packet head:
1st dim: component index.
2nd dim: resolution level index.
3rd dim: subband index.
4th/5th dim: code-block index (vert.
Construct a 3 component transform based on an input RestricedICCProfile
This transform will pass the input throught a floating point lut (LookUpTableFP),
apply a matrix to the output and finally pass the intermediate buffer through
a 8-bit lut (LookUpTable8).
Constructs a 'ModuleSpec' object, initializing all the components and
tiles to the 'SPEC_DEF' spec type, for the specified number of
components and tiles.
Constructs a 'ModuleSpec' object, initializing all the components and
tiles to the 'SPEC_DEF' spec val type, for the specified number of
components and tiles.
This interface defines methods to access image attributes (width, height,
number of components, etc.) of multiresolution images, such as those
resulting from an inverse wavelet transform.
Returns the index of the last character of the next word, plus 1, or
IS_NEWLINE if a newline character is encountered before the next word,
or IS_EOS if the end of the string is ecnounterd before the next
word.
Returns the position of the first character in the next word, starting
from 'from', if a newline is encountered first then the index of the
newline character plus 1 is returned.
The quantization step for non-reversible systems, normalized to a
dynamic range of 1, for each resolution level and subband, as derived
from the exponent-mantissa representation in the codestream.
The horizontal offsets of the upper-left corner of the current tile
(not active tile) with respect to the canvas origin, in the component
hi-res grid, for each component.
The vertical offsets of the upper-left corner of the current tile (not
active tile) with respect to the canvas origin, in the component hi-res
grid, for each component.
This method parses the codestream for SOT, SOP and EPH markers and
removes header header bits signalling SOP and EPH markers if packed
packet headers are used
Registers the given ImageConsumer object as a consumer and starts an
immediate reconstruction of the image data which will then be delivered
to this consumer and any other consumer which may have already been
registered with the producer.
This interface define the constants that identify the possible options for
the entropy coder, as well some fixed parameters of the JPEG 2000 entropy
coder.
The contribution to the MSE or WMSE error that would result in the
image if there was an error of exactly one quantization step size in
the sample of the subband.
Creates the top-level node and the entire subband tree, with the
top-level dimensions, the number of decompositions, and the
decomposition tree as specified.
This class represents a subband in a bidirectional tree structure that
describes the subband decomposition for a wavelet transform, specifically
for the analysis side.
Creates the top-level node and the entire subband tree, with the
top-level dimensions, the number of decompositions, and the
decomposition tree as specified.
This class represents a subband in a tree structure that describes the
subband decomposition for a wavelet transform, specifically for the
syhthesis side.
Creates the top-level node and the entire subband tree, with the
top-level dimensions, the number of decompositions, and the
decomposition tree as specified.
This function flushes the remaining encoded bits and makes sure that
enough information is written to the bit stream to be able to finish
decoding, and then it reinitializes the internal state of the MQ coder
but without modifying the context states.
Tag tree used to read bit-depth information in packet's head:
1st dim: component index.
2nd dim: resolution level index.
3rd dim: precinct index.
4th dim: subband index.
ulcx -
Variable in class jj2000.j2k.wavelet.Subband
The horizontal coordinate of the upper-left corner of the subband, with
respect to the canvas origin, in the component's grid and subband's
decomposition level.
ulcy -
Variable in class jj2000.j2k.wavelet.Subband
The vertical coordinate of the upper-left corner of the subband, with
respect to the canvas origin, in the component's grid and subband's
decomposition level.
Writes a packet body to the bit stream and returns the number of bytes
used by this body .If in simulation mode then no data is written to the
bit stream but the number of bytes is calculated.
ID for the PACKET (as defined in JPEG 2000) wavelet tree
decomposition (2 levels of decomposition in the high bands and
some specified number for the lowest LL band): 0x01.
ID for the SPACL (as defined in JPEG 2000) wavelet tree
decomposition (1 level of decomposition in the high bands and
some specified number for the lowest LL band): 0x02.
This class holds the decomposition type to be used in each part of the
image; the default one, the component specific ones, the tile default ones
and the component-tile specific ones.
Constructs a 'WTFilterSpec' object, initializing all the components and
tiles to the 'FILTER_SPEC_MAIN_DEF' spec type, for the specified number
of components and tiles.