001/*
002 * $RCSfile: CLibPNGMetadataFormatResources.java,v $
003 *
004 * 
005 * Copyright (c) 2005 Sun Microsystems, Inc. All  Rights Reserved.
006 * 
007 * Redistribution and use in source and binary forms, with or without
008 * modification, are permitted provided that the following conditions
009 * are met: 
010 * 
011 * - Redistribution of source code must retain the above copyright 
012 *   notice, this  list of conditions and the following disclaimer.
013 * 
014 * - Redistribution in binary form must reproduce the above copyright
015 *   notice, this list of conditions and the following disclaimer in 
016 *   the documentation and/or other materials provided with the
017 *   distribution.
018 * 
019 * Neither the name of Sun Microsystems, Inc. or the names of 
020 * contributors may be used to endorse or promote products derived 
021 * from this software without specific prior written permission.
022 * 
023 * This software is provided "AS IS," without a warranty of any 
024 * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND 
025 * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, 
026 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
027 * EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL 
028 * NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF 
029 * USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
030 * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR 
031 * ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL,
032 * CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND
033 * REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR
034 * INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
035 * POSSIBILITY OF SUCH DAMAGES. 
036 * 
037 * You acknowledge that this software is not designed or intended for 
038 * use in the design, construction, operation or maintenance of any 
039 * nuclear facility. 
040 *
041 * $Revision: 1.1 $
042 * $Date: 2005/02/11 05:01:39 $
043 * $State: Exp $
044 */
045
046package com.github.jaiimageio.impl.plugins.png;
047
048import java.util.ListResourceBundle;
049
050public class CLibPNGMetadataFormatResources extends ListResourceBundle {
051
052    static final Object[][] contents = {
053        // Node name, followed by description
054        { "IHDR", "The IHDR chunk, containing the header" },
055        { "PLTE", "The PLTE chunk, containing the palette" },
056        { "PLTEEntry", "A palette entry" },
057        { "bKGD", "The bKGD chunk, containing the background color" },
058        { "bKGD_RGB", "An RGB background color, for RGB and RGBAlpha images" },
059        { "bKGD_Grayscale",
060          "A grayscale background color, for Gray and GrayAlpha images" },
061        { "bKGD_Palette", "A background palette index" },
062        { "cHRM", "The cHRM chunk, containing color calibration" },
063        { "gAMA", "The gAMA chunk, containing the image gamma" },
064        { "hIST", "The hIST chunk, containing histogram information " },
065        { "hISTEntry", "A histogram entry" },
066        { "iCCP", "The iCCP chunk, containing an ICC color profile" },
067        { "iTXt", "The iTXt chunk, containing internationalized text" },
068        { "iTXtEntry", "A localized text entry" },
069        { "pHYS",
070          "The pHYS chunk, containing the pixel size and aspect ratio" },
071        { "sBIT", "The sBIT chunk, containing significant bit information" },
072        { "sBIT_Grayscale", "Significant bit information for gray samples" },
073        { "sBIT_GrayAlpha",
074          "Significant bit information for gray and alpha samples" },
075        { "sBIT_RGB", "Significant bit information for RGB samples" },
076        { "sBIT_RGBAlpha", "Significant bit information for RGBA samples" },
077        { "sBIT_Palette",
078          "Significant bit information for RGB palette entries" },
079        { "sPLT", "The sPLT chunk, containing a suggested palette" },
080        { "sPLTEntry", "A suggested palette entry" },
081        { "sRGB", "The sRGB chunk, containing rendering intent information" },
082        { "tEXt", "The tEXt chunk, containing text" },
083        { "tEXtEntry", "A text entry" },
084        { "tIME", "The tIME chunk, containing the image modification time" },
085        { "tRNS", "The tRNS chunk, containing transparency information" },
086        { "tRNS_Grayscale",
087          "A grayscale value that should be considered transparent" },
088        { "tRNS_RGB",
089          "An RGB value that should be considered transparent" },
090        { "tRNS_Palette",
091          "A palette index that should be considered transparent" },
092        { "zTXt", "The zTXt chunk, containing compressed text" },
093        { "zTXtEntry", "A compressed text entry" },
094        { "UnknownChunks", "A set of unknown chunks" },
095        { "UnknownChunk", "Unknown chunk data stored as a byte array" },
096
097        // Node name + "/" + AttributeName, followed by description
098        { "IHDR/width", "The width of the image in pixels" },
099        { "IHDR/height", "The height of the image in pixels" },
100        { "IHDR/bitDepth", "The bit depth of the image samples" },
101        { "IHDR/colorType", "The color type of the image" },
102        { "IHDR/compressionMethod",
103"The compression used for image data, always \"deflate\"" },
104        { "IHDR/filterMethod",
105"The filtering method used for compression, always \"adaptive\"" },
106        { "IHDR/interlaceMethod",
107          "The interlacing method, \"none\" or \"adam7\"" },
108
109        { "PLTEEntry/index", "The index of a palette entry" },
110        { "PLTEEntry/red", "The red value of a palette entry" },
111        { "PLTEEntry/green", "The green value of a palette entry" },
112        { "PLTEEntry/blue", "The blue value of a palette entry" },
113
114        { "bKGD_Grayscale/gray", "A gray value to be used as a background" },
115        { "bKGD_RGB/red", "A red value to be used as a background" },
116        { "bKGD_RGB/green", "A green value to be used as a background" },
117        { "bKGD_RGB/blue", "A blue value to be used as a background" },
118        { "bKGD_Palette/index", "A palette index to be used as a background" },
119
120        { "cHRM/whitePointX",
121              "The CIE x coordinate of the white point, multiplied by 1e5" },
122        { "cHRM/whitePointY",
123              "The CIE y coordinate of the white point, multiplied by 1e5" },
124        { "cHRM/redX",
125              "The CIE x coordinate of the red primary, multiplied by 1e5" },
126        { "cHRM/redY",
127              "The CIE y coordinate of the red primary, multiplied by 1e5" },
128        { "cHRM/greenX",
129              "The CIE x coordinate of the green primary, multiplied by 1e5" },
130        { "cHRM/greenY",
131              "The CIE y coordinate of the green primary, multiplied by 1e5" },
132        { "cHRM/blueX",
133              "The CIE x coordinate of the blue primary, multiplied by 1e5" },
134        { "cHRM/blueY",
135              "The CIE y coordinate of the blue primary, multiplied by 1e5" },
136
137        { "gAMA/value",
138              "The image gamma, multiplied by 1e5" },
139
140        { "hISTEntry/index", "The palette index of this histogram entry" },
141        { "hISTEntry/value", "The frequency of this histogram entry" },
142
143        { "iCCP/profileName", "The name of this ICC profile" },
144        { "iCCP/compressionMethod",
145              "The compression method used to store this ICC profile" },
146
147        { "iTXtEntry/keyword", "The keyword" },
148        { "iTXtEntry/compressionMethod",
149              "The compression method used to store this iTXt entry" },
150        { "iTXtEntry/languageTag",
151              "The ISO tag describing the language of this iTXt entry" },
152        { "iTXtEntry/translatedKeyword",
153              "The translated keyword for iTXt entry" },
154        { "iTXtEntry/text",
155              "The localized text" },
156
157        { "pHYS/pixelsPerUnitXAxis",
158            "The number of horizontal pixels per unit, multiplied by 1e5" },
159        { "pHYS/pixelsPerUnitYAxis",
160            "The number of vertical pixels per unit, multiplied by 1e5" },
161        { "pHYS/unitSpecifier",
162            "The unit specifier for this chunk (i.e., meters)" },
163        
164        { "sBIT_Grayscale/gray",
165            "The number of significant bits of the gray samples" },
166        { "sBIT_GrayAlpha/gray",
167            "The number of significant bits of the gray of gray/alpha samples" },
168        { "sBIT_GrayAlpha/alpha",
169            "The number of significant bits of the alpha of gray/alpha samples" },
170        { "sBIT_RGB/red",
171            "The number of significant bits of the red of RGB samples" },
172        { "sBIT_RGB/green",
173            "The number of significant bits of the green of RGB samples" },
174        { "sBIT_RGB/blue",
175            "The number of significant bits of the blue of RGB samples" },
176        { "sBIT_RGBAlpha/red",
177            "The number of significant bits of the red of RGBA samples" },
178        { "sBIT_RGBAlpha/green",
179            "The number of significant bits of the green of RGBA samples" },
180        { "sBIT_RGBAlpha/blue",
181            "The number of significant bits of the blue of RGBA samples" },
182        { "sBIT_RGBAlpha/alpha",
183            "The number of significant bits of the alpha of RGBA samples" },
184        { "sBIT_Palette/red",
185            "The number of significant bits of the red palette entries" },
186        { "sBIT_Palette/green",
187            "The number of significant bits of the green palette entries" },
188        { "sBIT_Palette/blue",
189            "The number of significant bits of the blue palette entries" },
190
191        { "sPLTEntry/index", "The index of a suggested palette entry" },
192        { "sPLTEntry/red", "The red value of a suggested palette entry" },
193        { "sPLTEntry/green", "The green value of a suggested palette entry" },
194        { "sPLTEntry/blue", "The blue value of a suggested palette entry" },
195        { "sPLTEntry/alpha", "The blue value of a suggested palette entry" },
196
197        { "sRGB/renderingIntent", "The rendering intent" },
198
199        { "tEXtEntry/keyword", "The keyword" },
200        { "tEXtEntry/value", "The text" },
201
202        { "tIME/year", "The year when the image was last modified" },
203        { "tIME/month",
204          "The month when the image was last modified, 1 = January" },
205        { "tIME/day",
206          "The day of the month when the image was last modified" },
207        { "tIME/hour",
208          "The hour when the image was last modified" },
209        { "tIME/minute",
210          "The minute when the image was last modified" },
211        { "tIME/second",
212          "The second when the image was last modified, 60 = leap second" },
213
214        { "tRNS_Grayscale/gray",
215          "The gray value to be considered transparent" },
216        { "tRNS_RGB/red",
217          "The red value to be considered transparent" },
218        { "tRNS_RGB/green",
219          "The green value to be considered transparent" },
220        { "tRNS_RGB/blue",
221          "The blue value to be considered transparent" },
222        { "tRNS_Palette/index",
223          "A palette index to be considered transparent" },
224        { "tRNS_Palette/alpha",
225          "The transparency associated with the palette entry" },
226
227        { "zTXtEntry/keyword", "The keyword" },
228        { "zTXtEntry/compressionMethod", "The compression method" },
229        { "zTXtEntry/text", "The compressed text" },
230
231        { "UnknownChunk/type", "The 4-character type of the unknown chunk" }
232    };
233
234    public CLibPNGMetadataFormatResources() {}
235
236    public Object[][] getContents() {
237        return contents;
238    }
239}