CADI.Common.LogicalTarget.JPEG2000.Parameters
Class SIZParameters

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

public class SIZParameters
extends java.lang.Object

This class storages the image and tile size parameters (SIZ). Further and detailed information, see ISO/IEC 15444-1 section A.5.1

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

Field Summary
 int[] precision
          Number of bits per sample used for each component.
 int Rsiz
          Denotes capabilities that a decoder needs to properly decode the codestream NOTE: It would be better defined if it is considered like a enumeration.
 boolean[] signed
          Indicates whether components are signed (positive and negative values) or not.
 int XOsize
          Horizontal offset.
 int[] XRsiz
          Horitzontal separation of sample of ith component with respect to the reference grid.
 int xSize
          Image width.
 int XTOsize
          Horizontal offset Tile Horitzontal offset from the origin of the reference grid to the left side of the first tile
 int XTsize
          Horizontal tile size.
 int YOsize
          Vertical offset.
 int[] YRsiz
          Vertical separation of sample of ith component with respect to the reference grid.
 int ySize
          Image height.
 int YTOsize
          Vertical offset Tile Vertical offset from the origin of the reference grid to the top side of the first tile
 int YTsize
          Vertical tile size.
 int zSize
          Number of image components.
 
Constructor Summary
SIZParameters()
          Constructor.
SIZParameters(SIZParameters parameters)
          Deep copy constructor.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this SIZ 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

Rsiz

public int Rsiz
Denotes capabilities that a decoder needs to properly decode the codestream

NOTE: It would be better defined if it is considered like a enumeration. Therefore, the attribute name could be 'capabilities' as is defined in the standard, and it would contain only the required capabilities. It would avoid to used masks to extract capabilities.


xSize

public int xSize
Image width.

Negative values are not allowed for this field.


ySize

public int ySize
Image height.

Negative values are not allowed for this field.


XOsize

public int XOsize
Horizontal offset.

Horitzontal offset from origin of the reference grid to the left side of the image area


YOsize

public int YOsize
Vertical offset.

Vertical offset from origin of the reference grid to the left side of the image area


XTsize

public int XTsize
Horizontal tile size.

Width of one reference tile with respect ot the reference grid.


YTsize

public int YTsize
Vertical tile size.

Height of one reference tile with respect ot the reference grid.


XTOsize

public int XTOsize
Horizontal offset Tile

Horitzontal offset from the origin of the reference grid to the left side of the first tile


YTOsize

public int YTOsize
Vertical offset Tile

Vertical offset from the origin of the reference grid to the top side of the first tile


zSize

public int zSize
Number of image components.

Negative values are not allowed for this field.


precision

public int[] precision
Number of bits per sample used for each component.

Only positive values allowed.


signed

public boolean[] signed
Indicates whether components are signed (positive and negative values) or not.

True if signed, false otherwise.


XRsiz

public int[] XRsiz
Horitzontal separation of sample of ith component with respect to the reference grid. There is one occurence of this parameter for each compoenent.

Only positive values shorter than 255 are allowed.


YRsiz

public int[] YRsiz
Vertical separation of sample of ith component with respect to the reference grid. There is one occurence of this parameter for each compoenent.

Only positive values shorter than 255 are allowed.

Constructor Detail

SIZParameters

public SIZParameters()
Constructor.


SIZParameters

public SIZParameters(SIZParameters parameters)
Deep copy constructor.

Parameters:
parameters -
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 SIZ 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)