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