Java Doc for J2KImageWriteParam.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » com » sun » media » imageio » plugins » jpeg2000 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » com.sun.media.imageio.plugins.jpeg2000 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.imageio.ImageWriteParam
   com.sun.media.imageio.plugins.jpeg2000.J2KImageWriteParam

J2KImageWriteParam
public class J2KImageWriteParam extends ImageWriteParam (Code)
A subclass of ImageWriteParam for writing images in the JPEG 2000 format.

JPEG 2000 plugin supports to losslessly or lossy compress gray-scale, RGB, and RGBA images with byte, unsigned short or short data type. It also supports losslessly compress bilevel, and 8-bit color indexed images. The result data is in the of JP2 format -- JPEG 2000 Part 1 or baseline format.

The parameters for encoding JPEG 2000 are listed in the following table:

JPEG 2000 Plugin Decoding Parameters
Parameter Name Description
numDecompositionLevels The number of decomposition levels to generate. This value must be in the range 0 ≤ numDecompositionLevels ≤ 32 . The default value is 5. Note that the number of resolution levels is numDecompositionLevels + 1. The number of decomposition levels is constant across all components and all tiles.
encodingRate The bitrate in bits-per-pixel for encoding. Should be set when lossy compression scheme is used. With the default value Double.MAX_VALUE, a lossless compression will be done.
lossless Indicates using the lossless scheme or not. It is equivalent to use reversible quantization and 5x3 integer wavelet filters. The default is true.
componentTransformation Specifies to utilize the component transformation on some tiles. If the wavelet transform is reversible (w5x3 filter), the Reversible Component Transformation (RCT) is applied. If not reversible (w9x7 filter), the Irreversible Component Transformation (ICT) is used.
filters Specifies which wavelet filters to use for the specified tile-components. JPEG 2000 part I only supports w5x3 and w9x7 filters.
codeBlockSize Specifies the maximum code-block size to use for tile-component. The maximum width and height is 1024, however the block size (i.e. width x height) must not exceed 4096. The minimum width and height is 4. The default values are (64, 64).
progressionType Specifies which type of progression should be used when generating the codestream.

The format is ont of the progression types defined below:

res : Resolution-Layer-Component-Position

layer: Layer-Resolution-Component-Position

res-pos: Resolution-Position-Component-Layer

pos-comp: Position-Component-Resolution-Layer

comp-pos: Component-Position-Resolution-Layer

SOP Specifies whether start of packet (SOP) markers should be used. true enables, false disables it. The default value is false.
EPH Specifies whether end of packet header (EPH) markers should be used. true enables, false disables it. The default value is false.
writeCodeStreamOnly Specifies whether write only the jpeg2000 code stream, i.e, no any box is written. The default value is false.



Field Summary
final public static  StringFILTER_53
     The filter for lossless compression.
final public static  StringFILTER_97
     The filter for lossy compression.

Constructor Summary
public  J2KImageWriteParam(Locale locale)
     Constructor which sets the Locale.
public  J2KImageWriteParam()
     Constructs a J2KImageWriteParam object with default values for all parameters.

Method Summary
public  int[]getCodeBlockSize()
     Gets codeBlockSize.
public  booleangetComponentTransformation()
     Gets componentTransformation.
public  booleangetEPH()
     Gets EPH.
public  doublegetEncodingRate()
     Gets encodingRate.
public  StringgetFilter()
     Gets filters.
public  booleangetLossless()
     Gets lossless.
public  intgetNumDecompositionLevels()
     Gets numDecompositionLevels.
public  StringgetProgressionType()
     Gets progressionType.
public  booleangetSOP()
     Gets SOP.
public  booleangetWriteCodeStreamOnly()
     Gets writeCodeStreamOnly.
public  voidsetCodeBlockSize(int[] value)
     Sets codeBlockSize.
public  voidsetComponentTransformation(boolean value)
     Sets componentTransformation.
public  voidsetEPH(boolean value)
     Sets EPH.
public  voidsetEncodingRate(double rate)
     Sets encodingRate.
public  voidsetFilter(String value)
     Sets filter.
public  voidsetLossless(boolean lossless)
     Sets lossless.
public  voidsetNumDecompositionLevels(int numDecompositionLevels)
     Sets numDecompositionLevels.
public  voidsetProgressionType(String value)
     Sets progressionType.
public  voidsetSOP(boolean value)
     Sets SOP.
public  voidsetWriteCodeStreamOnly(boolean value)
     Sets writeCodeStreamOnly.

Field Detail
FILTER_53
final public static String FILTER_53(Code)
The filter for lossless compression.



FILTER_97
final public static String FILTER_97(Code)
The filter for lossy compression.




Constructor Detail
J2KImageWriteParam
public J2KImageWriteParam(Locale locale)(Code)
Constructor which sets the Locale.
Parameters:
  locale - a Locale to be used to localizecompression type names and quality descriptions, ornull.



J2KImageWriteParam
public J2KImageWriteParam()(Code)
Constructs a J2KImageWriteParam object with default values for all parameters.




Method Detail
getCodeBlockSize
public int[] getCodeBlockSize()(Code)
Gets codeBlockSize. the maximum code-block size to use per tile-component.
See Also:   J2KImageWriteParam.setCodeBlockSize(int[])



getComponentTransformation
public boolean getComponentTransformation()(Code)
Gets componentTransformation. whether to utilize the component transformation.
See Also:   J2KImageWriteParam.setComponentTransformation(boolean)



getEPH
public boolean getEPH()(Code)
Gets EPH. whether end of packet header (EPH) markers should be used.
See Also:   J2KImageWriteParam.setEPH(boolean)



getEncodingRate
public double getEncodingRate()(Code)
Gets encodingRate. the encoding rate in bits-per-pixel.
See Also:   J2KImageWriteParam.setEncodingRate(double)



getFilter
public String getFilter()(Code)
Gets filters. which wavelet filters to use for the specifiedtile-components.
See Also:   J2KImageWriteParam.setFilter(String)



getLossless
public boolean getLossless()(Code)
Gets lossless. whether the compression scheme is lossless.
See Also:   J2KImageWriteParam.setLossless(boolean)



getNumDecompositionLevels
public int getNumDecompositionLevels()(Code)
Gets numDecompositionLevels. the number of decomposition levels.
See Also:   J2KImageWriteParam.setNumDecompositionLevels



getProgressionType
public String getProgressionType()(Code)
Gets progressionType. which type of progression should be used when generatingthe codestream.
See Also:   J2KImageWriteParam.setProgressionType(String)



getSOP
public boolean getSOP()(Code)
Gets SOP. whether start of packet (SOP) markers should be used.
See Also:   J2KImageWriteParam.setSOP(boolean)



getWriteCodeStreamOnly
public boolean getWriteCodeStreamOnly()(Code)
Gets writeCodeStreamOnly. whether the jpeg2000 code stream only or the jp2 formatwill be written into the output.
See Also:   J2KImageWriteParam.setWriteCodeStreamOnly(boolean)



setCodeBlockSize
public void setCodeBlockSize(int[] value)(Code)
Sets codeBlockSize.
Parameters:
  value - the maximum code-block size to use per tile-component.
See Also:   J2KImageWriteParam.getCodeBlockSize()



setComponentTransformation
public void setComponentTransformation(boolean value)(Code)
Sets componentTransformation.
Parameters:
  value - whether to utilize the component transformation.
See Also:   J2KImageWriteParam.getComponentTransformation()



setEPH
public void setEPH(boolean value)(Code)
Sets EPH.
Parameters:
  value - whether end of packet header (EPH) markers should be used.
See Also:   J2KImageWriteParam.getEPH()



setEncodingRate
public void setEncodingRate(double rate)(Code)
Sets encodingRate.
Parameters:
  rate - the encoding rate in bits-per-pixel.
See Also:   J2KImageWriteParam.getEncodingRate()



setFilter
public void setFilter(String value)(Code)
Sets filter.
Parameters:
  value - which wavelet filters to use for the specifiedtile-components.
See Also:   J2KImageWriteParam.getFilter()



setLossless
public void setLossless(boolean lossless)(Code)
Sets lossless.
Parameters:
  lossless - whether the compression scheme is lossless.
See Also:   J2KImageWriteParam.getLossless()



setNumDecompositionLevels
public void setNumDecompositionLevels(int numDecompositionLevels)(Code)
Sets numDecompositionLevels.
Parameters:
  numDecompositionLevels - the number of decomposition levels.
throws:
  IllegalArgumentException - if numDecompositionLevelsis negative or greater than 32.
See Also:   J2KImageWriteParam.getNumDecompositionLevels



setProgressionType
public void setProgressionType(String value)(Code)
Sets progressionType.
Parameters:
  value - which type of progression should be used when generatingthe codestream.
See Also:   J2KImageWriteParam.getProgressionType()



setSOP
public void setSOP(boolean value)(Code)
Sets SOP.
Parameters:
  value - whether start of packet (SOP) markers should be used.
See Also:   J2KImageWriteParam.getSOP()



setWriteCodeStreamOnly
public void setWriteCodeStreamOnly(boolean value)(Code)
Sets writeCodeStreamOnly.
Parameters:
  value - Whether the jpeg2000 code stream only or the jp2 formatwill be written into the output.
See Also:   J2KImageWriteParam.getWriteCodeStreamOnly()



Fields inherited from javax.imageio.ImageWriteParam
final public static int MODE_COPY_FROM_METADATA(Code)(Java Doc)
final public static int MODE_DEFAULT(Code)(Java Doc)
final public static int MODE_DISABLED(Code)(Java Doc)
final public static int MODE_EXPLICIT(Code)(Java Doc)
protected boolean canOffsetTiles(Code)(Java Doc)
protected boolean canWriteCompressed(Code)(Java Doc)
protected boolean canWriteProgressive(Code)(Java Doc)
protected boolean canWriteTiles(Code)(Java Doc)
protected int compressionMode(Code)(Java Doc)
protected float compressionQuality(Code)(Java Doc)
protected String compressionType(Code)(Java Doc)
protected String[] compressionTypes(Code)(Java Doc)
protected Locale locale(Code)(Java Doc)
protected Dimension[] preferredTileSizes(Code)(Java Doc)
protected int progressiveMode(Code)(Java Doc)
protected int tileGridXOffset(Code)(Java Doc)
protected int tileGridYOffset(Code)(Java Doc)
protected int tileHeight(Code)(Java Doc)
protected int tileWidth(Code)(Java Doc)
protected int tilingMode(Code)(Java Doc)
protected boolean tilingSet(Code)(Java Doc)

Methods inherited from javax.imageio.ImageWriteParam
public boolean canOffsetTiles()(Code)(Java Doc)
public boolean canWriteCompressed()(Code)(Java Doc)
public boolean canWriteProgressive()(Code)(Java Doc)
public boolean canWriteTiles()(Code)(Java Doc)
public float getBitRate(float quality)(Code)(Java Doc)
public int getCompressionMode()(Code)(Java Doc)
public float getCompressionQuality()(Code)(Java Doc)
public String[] getCompressionQualityDescriptions()(Code)(Java Doc)
public float[] getCompressionQualityValues()(Code)(Java Doc)
public String getCompressionType()(Code)(Java Doc)
public String[] getCompressionTypes()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public String getLocalizedCompressionTypeName()(Code)(Java Doc)
public Dimension[] getPreferredTileSizes()(Code)(Java Doc)
public int getProgressiveMode()(Code)(Java Doc)
public int getTileGridXOffset()(Code)(Java Doc)
public int getTileGridYOffset()(Code)(Java Doc)
public int getTileHeight()(Code)(Java Doc)
public int getTileWidth()(Code)(Java Doc)
public int getTilingMode()(Code)(Java Doc)
public boolean isCompressionLossless()(Code)(Java Doc)
public void setCompressionMode(int mode)(Code)(Java Doc)
public void setCompressionQuality(float quality)(Code)(Java Doc)
public void setCompressionType(String compressionType)(Code)(Java Doc)
public void setProgressiveMode(int mode)(Code)(Java Doc)
public void setTiling(int tileWidth, int tileHeight, int tileGridXOffset, int tileGridYOffset)(Code)(Java Doc)
public void setTilingMode(int mode)(Code)(Java Doc)
public void unsetCompression()(Code)(Java Doc)
public void unsetTiling()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.