001: /*
002: * $RCSfile: J2KMetadataFormatResources.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:35 $
043: * $State: Exp $
044: */
045: package com.sun.media.imageioimpl.plugins.jpeg2000;
046:
047: import java.util.*;
048:
049: public class J2KMetadataFormatResources extends ListResourceBundle {
050: static final Object[][] contents = {
051: // Node name, followed by description
052: { "JPEG2000SignatureBox", "The JPEG 2000 signature box." },
053: { "JPEG2000FileTypeBox", "The JPEG 2000 file type box." },
054: { "OtherBoxes",
055: "All the boxes other than the signature or file type box." },
056: { "HeaderCStream",
057: "The super box conatins the header and code stream box." },
058: { "JPEG2000IntellectualPropertyRightsBox",
059: "The JPEG 2000 intellectual property rights box." },
060: { "JPEG2000XMLBox", "The JPEG 2000 XML box." },
061: { "JPEG2000UUIDBox", "The JPEG 2000 UUID box." },
062: { "JPEG2000UUIDInfoBox",
063: "The JPEG 2000 UUID information box." },
064: { "JPEG2000HeaderSuperBox",
065: "The JPEG 2000 header super box." },
066: { "JPEG2000CodeStreamBox", "The JPEG 2000 code stream box." },
067: { "JPEG2000HeaderBox", "The JPEG 2000 header box." },
068: { "OptionalBoxes",
069: "The optional boxes in the header super box." },
070: { "JPEG2000BitsPerComponentBox",
071: "The JPEG2000 bits per component box." },
072: { "JPEG2000ColorSpecificationBox",
073: "The JPEG 2000 color specification box." },
074: { "JPEG2000PaletteBox", "The JPEG 2000 palette box." },
075: { "JPEG2000ComponentMappingBox",
076: "The JPEG 2000 component mapping box." },
077: { "JPEG2000ChannelDefinitionBox",
078: "The JPEG 2000 channel definition box." },
079: { "JPEG2000ResolutionBox", "The JPEG 2000 resolution box." },
080: { "JPEG2000CaptureResolutionBox",
081: "The JPEG 2000 capture resolution box" },
082: { "JPEG2000DefaultDisplayResolutionBox",
083: "The JPEG 2000 default display resolution box" },
084: { "JPEG2000UUIDListBox", "The JPEG 2000 UUID list box." },
085: { "JPEG2000DataEntryURLBox",
086: "The JPEG 2000 data entry URL box." },
087:
088: // Elements in JPEG2000FileTypeBox
089: { "Brand",
090: "The brand of JPEG 2000 file. For JP2 file, it is \"jp2 \"" },
091: { "MinorVersion",
092: "The minor version of JPEG 2000 file. For JP2 file, it is 0" },
093: { "CompatibilityList",
094: "The compatibility list. For non-JP2 file, at least one is \"jp2 \"" },
095:
096: // Elements of JPEG2000HeaderBox
097: { "Width", "The width of the image." },
098: { "Height", "The height of the image." },
099: { "NumComponents",
100: "The number of image components in this image file." },
101: {
102: "BitDepth",
103: "Bit depths for all the image components or for each of the component if it is a array." },
104: { "CompressionType",
105: "The compression type. Always be 7 for JP2 file." },
106: { "UnknownColorspace",
107: "Whether the color space is known or not." },
108: { "IntellectualProperty",
109: "Whether intellectual property in included in this image." },
110:
111: { "Method",
112: "The method to define the color space. 1 by ECS; 2 by profile." },
113: { "Precedence", "Precedence. Be 0 for JP2 file." },
114: { "ApproximationAccuracy",
115: "Approximation accuracy. Be 0 for JP2 file" },
116: { "EnumeratedColorSpace",
117: "Enumerated color space. 16: sRGB. 17: Gray" },
118: { "ICCProfile",
119: "The ICC profile used to define the color space" },
120:
121: { "NumberEntries", "The number of palette entries." },
122: { "NumberColors", "The number of color components." },
123: { "BitDepth",
124: "The bit depths for the output components after LUT." },
125: { "LUT", "The LUT for the palette." },
126: { "LUTRow", " A row of the LUT." },
127:
128: { "Component", "A component in the component mapping box." },
129: { "ComponentType",
130: "The type of one component: itself or lut column." },
131: { "ComponentAssociation",
132: "The LUT column used to define this component." },
133:
134: { "NumberOfDefinition",
135: "The number of definitions in channel definition box." },
136: { "Definitions", "Defines one channel." },
137: { "ChannelNumber", "The channel number." },
138: { "ChannelType",
139: "The channel type: color, alpha, premultiplied alpha." },
140: { "ChannelAssociation",
141: "The association of this channel to the color space." },
142:
143: { "VerticalResolutionNumerator",
144: "The vertical resolution numerator." },
145: { "VerticalResolutionDenominator",
146: "The vertical resolution denominator." },
147: { "HorizontalResolutionNumerator",
148: "The horizontal resolution numerator." },
149: { "HorizontalResolutionDenominator",
150: "The horizontal resolution denominator." },
151: { "VerticalResolutionExponent",
152: "The vertical resolution exponent." },
153: { "HorizontalResolutionExponent",
154: "The horizontal resolution exponent." },
155:
156: { "CodeStream", "The data of the code stream." },
157: { "Content", "The intellectual property rights or XML." },
158:
159: { "UUID", "The UUID." },
160: { "Data", "The data of the UUID." },
161: { "NumberUUID", "The number of UUID in the UUID list box." },
162:
163: { "Version", "The version. Always be 0 for JP2 file." },
164: { "Flags", "The flags. Always be 0 for JP2 file." },
165: { "URL", "The URL" },
166:
167: // Node name + "/" + AttributeName, followed by description
168: { "JPEG2000SignatureBox/Length",
169: "The length of the signature box. Always be 12." },
170: { "JPEG2000SignatureBox/Type",
171: "The type of the signature box. Always be \"jP \"" },
172: { "JPEG2000SignatureBox/Signature",
173: "The content of the signature box. Always be 0D0A870A." },
174:
175: { "JPEG2000FileTypeBox/Length",
176: "The length of the file type box." },
177: { "JPEG2000FileTypeBox/Type",
178: "The type of the file type box. Always be \"ftpy\"" },
179: { "JPEG2000FileTypeBox/ExtraLength",
180: "The extra length of the file type box. Optional. Set when Length = 1" },
181:
182: { "JPEG2000HeaderSuperBox/Length",
183: "The length of the header super box." },
184: { "JPEG2000HeaderSuperBox/Type",
185: "The type of the header super box. Always be \"jp2h\"" },
186: { "JPEG2000HeaderSuperBox/ExtraLength",
187: "The extra length of the header super box. Optional. Set when Length = 1" },
188:
189: { "JPEG2000HeaderBox/Length",
190: "The length of the header box." },
191: { "JPEG2000HeaderBox/Type",
192: "The type of the header box. Always be \"ihdr\"" },
193: { "JPEG2000HeaderBox/ExtraLength",
194: "The extra length of the header box. Optional. Set when Length = 1" },
195:
196: { "JPEG2000BitsPerComponentBox/Length",
197: "The length of the bits per component box." },
198: { "JPEG2000BitsPerComponentBox/Type",
199: "The type of the bits per component box. Always be \"bpcc\"" },
200: {
201: "JPEG2000BitsPerComponentBox/ExtraLength",
202: "The extra length of the bits per component box. Optional. Set when Length = 1" },
203:
204: { "JPEG2000ColorSpecificationBox/Length",
205: "The length of the bits per component box." },
206: { "JPEG2000ColorSpecificationBox/Type",
207: "The type of the bits per component box. Always be \"colr\"" },
208: {
209: "JPEG2000ColorSpecificationBox/ExtraLength",
210: "The extra length of the bits per component box. Optional. Set when Length = 1" },
211:
212: { "JPEG2000PaletteBox/Length",
213: "The length of the palette box." },
214: { "JPEG2000PaletteBox/Type",
215: "The type of the palette box. Always be \"pclr\"" },
216: { "JPEG2000PaletteBox/ExtraLength",
217: "The extra length of the palette box. Optional. Set when Length = 1" },
218:
219: { "JPEG2000ComponentMappingBox/Length",
220: "The length of the component mapping box." },
221: { "JPEG2000ComponentMappingBox/Type",
222: "The type of the component mapping box. Always be \"cmap\"" },
223: {
224: "JPEG2000ComponentMappingBox/ExtraLength",
225: "The extra length of the component mapping box. Optional. Set when Length = 1" },
226:
227: { "JPEG2000ChannelDefinitionBox/Length",
228: "The length of the channel definition box." },
229: { "JPEG2000ChannelDefinitionBox/Type",
230: "The type of the channel definition box. Always be \"cdef\"" },
231: {
232: "JPEG2000ChannelDefinitionBox/ExtraLength",
233: "The extra length of the channel definition box. Optional. Set when Length = 1" },
234:
235: { "JPEG2000ResolutionBox/Length",
236: "The length of the resolution box." },
237: { "JPEG2000ResolutionBox/Type",
238: "The type of the resolution box. Always be \"res \"" },
239: { "JPEG2000ResolutionBox/ExtraLength",
240: "The extra length of the resolution box. Optional. Set when Length = 1" },
241:
242: { "JPEG2000CaptureResolutionBox/Length",
243: "The length of the capture resolution box." },
244: { "JPEG2000CaptureResolutionBox/Type",
245: "The type of the capture resolution box. Always be \"resc\"" },
246: {
247: "JPEG2000CaptureResolutionBox/ExtraLength",
248: "The extra length of the capture resolution box. Optional. Set when Length = 1" },
249:
250: { "JPEG2000DefaultDisplayResolutionBox/Length",
251: "The length of the default display resolution box." },
252: { "JPEG2000DefaultDisplayResolutionBox/Type",
253: "The type of the default display resolution box. Always be \"resd\"" },
254: {
255: "JPEG2000DefaultDisplayResolutionBox/ExtraLength",
256: "The extra length of the default display resolution box. Optional. Set when Length = 1" },
257:
258: { "JPEG2000CodeStreamBox/Length",
259: "The length of the code stream box." },
260: { "JPEG2000CodeStreamBox/Type",
261: "The type of the code stream box. Always be \"jp2c\"" },
262: { "JPEG2000CodeStreamBox/ExtraLength",
263: "The extra length of the code stream box. Optional. Set when Length = 1" },
264:
265: { "JPEG2000IntellectualPropertyRightsBox/Length",
266: "The length of the intellectual property rights box." },
267: { "JPEG2000IntellectualPropertyRightsBox/Type",
268: "The type of the intellectual property rights box. Always be \"jp2i\"" },
269: {
270: "JPEG2000IntellectualPropertyRightsBox/ExtraLength",
271: "The extra length of the intellectual property rights box. Optional. Set when Length = 1" },
272:
273: { "JPEG2000XMLBox/Length", "The length of the XML box." },
274: { "JPEG2000XMLBox/Type",
275: "The type of the XML box. Always be \"xml \"" },
276: { "JPEG2000XMLBox/ExtraLength",
277: "The extra length of the XML box. Optional. Set when Length = 1" },
278:
279: { "JPEG2000UUIDBox/Length", "The length of the UUID box." },
280: { "JPEG2000UUIDBox/Type",
281: "The type of the UUID box. Always be \"uuid\"" },
282: { "JPEG2000UUIDBox/ExtraLength",
283: "The extra length of the UUID box. Optional. Set when Length = 1" },
284:
285: { "JPEG2000UUIDInfoBox/Length",
286: "The length of the UUID information box." },
287: { "JPEG2000UUIDInfoBox/Type",
288: "The type of the UUID information box. Always be \"uinf\"" },
289: { "JPEG2000UUIDInfoBox/ExtraLength",
290: "The extra length of the UUID information box. Optional. Set when Length = 1" },
291:
292: { "JPEG2000UUIDListBox/Length",
293: "The length of the UUID list box." },
294: { "JPEG2000UUIDListBox/Type",
295: "The type of the UUID list box. Always be \"ulst\"" },
296: { "JPEG2000UUIDListBox/ExtraLength",
297: "The extra length of the UUID list box. Optional. Set when Length = 1" },
298:
299: { "JPEG2000DataEntryURLBox/Length",
300: "The length of the data entry URL box." },
301: { "JPEG2000DataEntryURLBox/Type",
302: "The type of the data entry URL box. Always be \"ulst\"" },
303: { "JPEG2000DataEntryURLBox/ExtraLength",
304: "The extra length of the data entry URL box. Optional. Set when Length = 1" }, };
305:
306: public J2KMetadataFormatResources() {
307: }
308:
309: protected Object[][] getContents() {
310: return contents;
311: }
312: }
|