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;
049import javax.imageio.metadata.IIOMetadataFormat;
050import javax.imageio.metadata.IIOMetadataFormatImpl;
051
052public class CLibPNGMetadataFormatResources extends ListResourceBundle {
053
054    static final Object[][] contents = {
055        // Node name, followed by description
056        { "IHDR", "The IHDR chunk, containing the header" },
057        { "PLTE", "The PLTE chunk, containing the palette" },
058        { "PLTEEntry", "A palette entry" },
059        { "bKGD", "The bKGD chunk, containing the background color" },
060        { "bKGD_RGB", "An RGB background color, for RGB and RGBAlpha images" },
061        { "bKGD_Grayscale",
062          "A grayscale background color, for Gray and GrayAlpha images" },
063        { "bKGD_Palette", "A background palette index" },
064        { "cHRM", "The cHRM chunk, containing color calibration" },
065        { "gAMA", "The gAMA chunk, containing the image gamma" },
066        { "hIST", "The hIST chunk, containing histogram information " },
067        { "hISTEntry", "A histogram entry" },
068        { "iCCP", "The iCCP chunk, containing an ICC color profile" },
069        { "iTXt", "The iTXt chunk, containing internationalized text" },
070        { "iTXtEntry", "A localized text entry" },
071        { "pHYS",
072          "The pHYS chunk, containing the pixel size and aspect ratio" },
073        { "sBIT", "The sBIT chunk, containing significant bit information" },
074        { "sBIT_Grayscale", "Significant bit information for gray samples" },
075        { "sBIT_GrayAlpha",
076          "Significant bit information for gray and alpha samples" },
077        { "sBIT_RGB", "Significant bit information for RGB samples" },
078        { "sBIT_RGBAlpha", "Significant bit information for RGBA samples" },
079        { "sBIT_Palette",
080          "Significant bit information for RGB palette entries" },
081        { "sPLT", "The sPLT chunk, containing a suggested palette" },
082        { "sPLTEntry", "A suggested palette entry" },
083        { "sRGB", "The sRGB chunk, containing rendering intent information" },
084        { "tEXt", "The tEXt chunk, containing text" },
085        { "tEXtEntry", "A text entry" },
086        { "tIME", "The tIME chunk, containing the image modification time" },
087        { "tRNS", "The tRNS chunk, containing transparency information" },
088        { "tRNS_Grayscale",
089          "A grayscale value that should be considered transparent" },
090        { "tRNS_RGB",
091          "An RGB value that should be considered transparent" },
092        { "tRNS_Palette",
093          "A palette index that should be considered transparent" },
094        { "zTXt", "The zTXt chunk, containing compressed text" },
095        { "zTXtEntry", "A compressed text entry" },
096        { "UnknownChunks", "A set of unknown chunks" },
097        { "UnknownChunk", "Unknown chunk data stored as a byte array" },
098
099        // Node name + "/" + AttributeName, followed by description
100        { "IHDR/width", "The width of the image in pixels" },
101        { "IHDR/height", "The height of the image in pixels" },
102        { "IHDR/bitDepth", "The bit depth of the image samples" },
103        { "IHDR/colorType", "The color type of the image" },
104        { "IHDR/compressionMethod",
105"The compression used for image data, always \"deflate\"" },
106        { "IHDR/filterMethod",
107"The filtering method used for compression, always \"adaptive\"" },
108        { "IHDR/interlaceMethod",
109          "The interlacing method, \"none\" or \"adam7\"" },
110
111        { "PLTEEntry/index", "The index of a palette entry" },
112        { "PLTEEntry/red", "The red value of a palette entry" },
113        { "PLTEEntry/green", "The green value of a palette entry" },
114        { "PLTEEntry/blue", "The blue value of a palette entry" },
115
116        { "bKGD_Grayscale/gray", "A gray value to be used as a background" },
117        { "bKGD_RGB/red", "A red value to be used as a background" },
118        { "bKGD_RGB/green", "A green value to be used as a background" },
119        { "bKGD_RGB/blue", "A blue value to be used as a background" },
120        { "bKGD_Palette/index", "A palette index to be used as a background" },
121
122        { "cHRM/whitePointX",
123              "The CIE x coordinate of the white point, multiplied by 1e5" },
124        { "cHRM/whitePointY",
125              "The CIE y coordinate of the white point, multiplied by 1e5" },
126        { "cHRM/redX",
127              "The CIE x coordinate of the red primary, multiplied by 1e5" },
128        { "cHRM/redY",
129              "The CIE y coordinate of the red primary, multiplied by 1e5" },
130        { "cHRM/greenX",
131              "The CIE x coordinate of the green primary, multiplied by 1e5" },
132        { "cHRM/greenY",
133              "The CIE y coordinate of the green primary, multiplied by 1e5" },
134        { "cHRM/blueX",
135              "The CIE x coordinate of the blue primary, multiplied by 1e5" },
136        { "cHRM/blueY",
137              "The CIE y coordinate of the blue primary, multiplied by 1e5" },
138
139        { "gAMA/value",
140              "The image gamma, multiplied by 1e5" },
141
142        { "hISTEntry/index", "The palette index of this histogram entry" },
143        { "hISTEntry/value", "The frequency of this histogram entry" },
144
145        { "iCCP/profileName", "The name of this ICC profile" },
146        { "iCCP/compressionMethod",
147              "The compression method used to store this ICC profile" },
148
149        { "iTXtEntry/keyword", "The keyword" },
150        { "iTXtEntry/compressionMethod",
151              "The compression method used to store this iTXt entry" },
152        { "iTXtEntry/languageTag",
153              "The ISO tag describing the language of this iTXt entry" },
154        { "iTXtEntry/translatedKeyword",
155              "The translated keyword for iTXt entry" },
156        { "iTXtEntry/text",
157              "The localized text" },
158
159        { "pHYS/pixelsPerUnitXAxis",
160            "The number of horizontal pixels per unit, multiplied by 1e5" },
161        { "pHYS/pixelsPerUnitYAxis",
162            "The number of vertical pixels per unit, multiplied by 1e5" },
163        { "pHYS/unitSpecifier",
164            "The unit specifier for this chunk (i.e., meters)" },
165        
166        { "sBIT_Grayscale/gray",
167            "The number of significant bits of the gray samples" },
168        { "sBIT_GrayAlpha/gray",
169            "The number of significant bits of the gray of gray/alpha samples" },
170        { "sBIT_GrayAlpha/alpha",
171            "The number of significant bits of the alpha of gray/alpha samples" },
172        { "sBIT_RGB/red",
173            "The number of significant bits of the red of RGB samples" },
174        { "sBIT_RGB/green",
175            "The number of significant bits of the green of RGB samples" },
176        { "sBIT_RGB/blue",
177            "The number of significant bits of the blue of RGB samples" },
178        { "sBIT_RGBAlpha/red",
179            "The number of significant bits of the red of RGBA samples" },
180        { "sBIT_RGBAlpha/green",
181            "The number of significant bits of the green of RGBA samples" },
182        { "sBIT_RGBAlpha/blue",
183            "The number of significant bits of the blue of RGBA samples" },
184        { "sBIT_RGBAlpha/alpha",
185            "The number of significant bits of the alpha of RGBA samples" },
186        { "sBIT_Palette/red",
187            "The number of significant bits of the red palette entries" },
188        { "sBIT_Palette/green",
189            "The number of significant bits of the green palette entries" },
190        { "sBIT_Palette/blue",
191            "The number of significant bits of the blue palette entries" },
192
193        { "sPLTEntry/index", "The index of a suggested palette entry" },
194        { "sPLTEntry/red", "The red value of a suggested palette entry" },
195        { "sPLTEntry/green", "The green value of a suggested palette entry" },
196        { "sPLTEntry/blue", "The blue value of a suggested palette entry" },
197        { "sPLTEntry/alpha", "The blue value of a suggested palette entry" },
198
199        { "sRGB/renderingIntent", "The rendering intent" },
200
201        { "tEXtEntry/keyword", "The keyword" },
202        { "tEXtEntry/value", "The text" },
203
204        { "tIME/year", "The year when the image was last modified" },
205        { "tIME/month",
206          "The month when the image was last modified, 1 = January" },
207        { "tIME/day",
208          "The day of the month when the image was last modified" },
209        { "tIME/hour",
210          "The hour when the image was last modified" },
211        { "tIME/minute",
212          "The minute when the image was last modified" },
213        { "tIME/second",
214          "The second when the image was last modified, 60 = leap second" },
215
216        { "tRNS_Grayscale/gray",
217          "The gray value to be considered transparent" },
218        { "tRNS_RGB/red",
219          "The red value to be considered transparent" },
220        { "tRNS_RGB/green",
221          "The green value to be considered transparent" },
222        { "tRNS_RGB/blue",
223          "The blue value to be considered transparent" },
224        { "tRNS_Palette/index",
225          "A palette index to be considered transparent" },
226        { "tRNS_Palette/alpha",
227          "The transparency associated with the palette entry" },
228
229        { "zTXtEntry/keyword", "The keyword" },
230        { "zTXtEntry/compressionMethod", "The compression method" },
231        { "zTXtEntry/text", "The compressed text" },
232
233        { "UnknownChunk/type", "The 4-character type of the unknown chunk" }
234    };
235
236    public CLibPNGMetadataFormatResources() {}
237
238    public Object[][] getContents() {
239        return contents;
240    }
241}