CADI.Common.LogicalTarget.JPEG2000.Parameters
Class CODParameters

java.lang.Object
  extended by CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters

public class CODParameters
extends java.lang.Object

This class storages the coding style default (COD) and the coding style component (COC). Further and detailed information, see ISO/IEC 15444-1 section A.6.1 and section A.6.2, respectively.

Version:
1.0 2008/11/07
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
 int[] blockHeights
          Block height (exponent of 2) for each image component.
 int[] blockWidths
          Block width (exponent of 2) for each image component.
 boolean[] MQCFlags
          Style of code-block coding passes.
 int multiComponentTransform
          Multiple component transformation.
 int numLayers
          Number of bytes that the final codestream contains (it could vary a little for the LCTargetNumBytes).
 int[][] precinctHeights
          Same as resolutionPrecinctWidths but for precinct heights.
 int[][] precinctWidths
          Precinct width in the transformed domain for each component and resolution level.
 int progressionOrder
          Progression order used to save the file.
 boolean useEPH
           
 boolean useSOP
          Use of start and end of packet headers.
 int[] WTLevels
          DWT levels to apply for each component.
 int[] WTTypes
          Discrete wavelet transform to be applied for each component.
 
Constructor Summary
CODParameters()
          Constructor.
CODParameters(CODParameters parameters)
          Deep copy constructor.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this COD parameters' fields to the specified output stream.
 void reset()
          Sets the attributes to its initial values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

progressionOrder

public int progressionOrder
Progression order used to save the file.

Valid values are:


numLayers

public int numLayers
Number of bytes that the final codestream contains (it could vary a little for the LCTargetNumBytes).

Only positive values allowed.


multiComponentTransform

public int multiComponentTransform
Multiple component transformation. Allowed values are:

Valid values are:


WTLevels

public int[] WTLevels
DWT levels to apply for each component.

Negative values not allowed.


WTTypes

public int[] WTTypes
Discrete wavelet transform to be applied for each component.

Valid values are:


MQCFlags

public boolean[] MQCFlags
Style of code-block coding passes. Definition in MQDecoder (see source code) Further information, see ISO/IEC 15444-1 section A.6.1 (table A-19).


blockHeights

public int[] blockHeights
Block height (exponent of 2) for each image component.

Values greater than 2.


blockWidths

public int[] blockWidths
Block width (exponent of 2) for each image component.

Values greater than 2.


precinctWidths

public int[][] precinctWidths
Precinct width in the transformed domain for each component and resolution level. Index means [z][rLevel] (rLevel==0 is the LL subband, and 1, 2, ... represents next starting with the little one).

Values equal or greater than BlockWidth.


precinctHeights

public int[][] precinctHeights
Same as resolutionPrecinctWidths but for precinct heights.

Values equal or greater than blockHeight.


useSOP

public boolean useSOP
Use of start and end of packet headers.

In both cases true indicates that the marker is used.


useEPH

public boolean useEPH
Constructor Detail

CODParameters

public CODParameters()
Constructor.


CODParameters

public CODParameters(CODParameters parameters)
Deep copy constructor.

Parameters:
parameters - an object of this class.
Method Detail

reset

public void reset()
Sets the attributes to its initial values.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints this COD parameters' fields to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.


CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) (contact)