DocumentationOverviewBuilding ASL Documentation Library Wiki Docs Indices Browse Perforce More InfoRelease NotesWiki Site Search License Success Stories Contributors MediaDownloadPerforce Depots SupportASL SourceForge HomeMailing Lists Discussion Forums Report Bugs Suggest Features Contribute to ASL RSSShort-text newsFull-text news File releases Other Adobe ProjectsAdobe AirAdobe GIL Adobe Labs Adobe Media Gallery Adobe XMP Tamarin project (Mozilla Foundation) Other ResourcesBoostRIAForge SGI STL |
dng_tag_values.h00001 /*****************************************************************************/ 00002 // Copyright 2006-2007 Adobe Systems Incorporated 00003 // All Rights Reserved. 00004 // 00005 // NOTICE: Adobe permits you to use, modify, and distribute this file in 00006 // accordance with the terms of the Adobe license agreement accompanying it. 00007 /*****************************************************************************/ 00008 00009 /* $Id: //mondo/workarea/stern/camera_raw/dng_sdk/source/dng_tag_values.h#15 $ */ 00010 /* $DateTime: 2009/05/19 11:15:50 $ */ 00011 /* $Change: 566868 $ */ 00012 /* $Author: stern $ */ 00013 00014 /*****************************************************************************/ 00015 00016 #ifndef __dng_tag_values__ 00017 #define __dng_tag_values__ 00018 00019 /*****************************************************************************/ 00020 00021 // Values for NewSubFileType tag. 00022 00023 enum 00024 { 00025 00026 // The main image data. 00027 00028 sfMainImage = 0, 00029 00030 // Preview image for the primary settings. 00031 00032 sfPreviewImage = 1, 00033 00034 // Preview image for non-primary settings. 00035 00036 sfAltPreviewImage = 0x10001 00037 00038 }; 00039 00040 /******************************************************************************/ 00041 00042 // Values for PhotometricInterpretation tag. 00043 00044 enum 00045 { 00046 00047 piWhiteIsZero = 0, 00048 piBlackIsZero = 1, 00049 piRGB = 2, 00050 piRGBPalette = 3, 00051 piTransparencyMask = 4, 00052 piCMYK = 5, 00053 piYCbCr = 6, 00054 piCIELab = 8, 00055 piICCLab = 9, 00056 00057 piCFA = 32803, // TIFF-EP spec 00058 00059 piLinearRaw = 34892 00060 00061 }; 00062 00063 /******************************************************************************/ 00064 00065 // Values for PlanarConfiguration tag. 00066 00067 enum 00068 { 00069 00070 pcInterleaved = 1, 00071 pcPlanar = 2, 00072 00073 pcRowInterleaved = 100000 // Internal use only 00074 00075 }; 00076 00077 /******************************************************************************/ 00078 00079 // Values for ExtraSamples tag. 00080 00081 enum 00082 { 00083 00084 esUnspecified = 0, 00085 esAssociatedAlpha = 1, 00086 esUnassociatedAlpha = 2 00087 00088 }; 00089 00090 /******************************************************************************/ 00091 00092 // Values for SampleFormat tag. 00093 00094 enum 00095 { 00096 00097 sfUnsignedInteger = 1, 00098 sfSignedInteger = 2, 00099 sfFloatingPoint = 3, 00100 sfUndefined = 4 00101 00102 }; 00103 00104 /******************************************************************************/ 00105 00106 // Values for Compression tag. 00107 00108 enum 00109 { 00110 00111 ccUncompressed = 1, 00112 ccLZW = 5, 00113 ccOldJPEG = 6, 00114 ccJPEG = 7, 00115 ccDeflate = 8, 00116 ccPackBits = 32773, 00117 ccOldDeflate = 32946 00118 00119 }; 00120 00121 /******************************************************************************/ 00122 00123 // Values for Predictor tag. 00124 00125 enum 00126 { 00127 00128 cpNullPredictor = 1, 00129 cpHorizontalDifference = 2 00130 00131 }; 00132 00133 /******************************************************************************/ 00134 00135 // Values for ResolutionUnit tag. 00136 00137 enum 00138 { 00139 00140 ruNone = 1, 00141 ruInch = 2, 00142 ruCM = 3, 00143 ruMM = 4, 00144 ruMicroM = 5 00145 00146 }; 00147 00148 /******************************************************************************/ 00149 00150 // Values for LightSource tag. 00151 00152 enum 00153 { 00154 00155 lsUnknown = 0, 00156 00157 lsDaylight = 1, 00158 lsFluorescent = 2, 00159 lsTungsten = 3, 00160 lsFlash = 4, 00161 lsFineWeather = 9, 00162 lsCloudyWeather = 10, 00163 lsShade = 11, 00164 lsDaylightFluorescent = 12, // D 5700 - 7100K 00165 lsDayWhiteFluorescent = 13, // N 4600 - 5400K 00166 lsCoolWhiteFluorescent = 14, // W 3900 - 4500K 00167 lsWhiteFluorescent = 15, // WW 3200 - 3700K 00168 lsStandardLightA = 17, 00169 lsStandardLightB = 18, 00170 lsStandardLightC = 19, 00171 lsD55 = 20, 00172 lsD65 = 21, 00173 lsD75 = 22, 00174 lsD50 = 23, 00175 lsISOStudioTungsten = 24, 00176 00177 lsOther = 255 00178 00179 }; 00180 00181 /******************************************************************************/ 00182 00183 // Values for ExposureProgram tag. 00184 00185 enum 00186 { 00187 00188 epUnidentified = 0, 00189 epManual = 1, 00190 epProgramNormal = 2, 00191 epAperturePriority = 3, 00192 epShutterPriority = 4, 00193 epProgramCreative = 5, 00194 epProgramAction = 6, 00195 epPortraitMode = 7, 00196 epLandscapeMode = 8 00197 00198 }; 00199 00200 /******************************************************************************/ 00201 00202 // Values for MeteringMode tag. 00203 00204 enum 00205 { 00206 00207 mmUnidentified = 0, 00208 mmAverage = 1, 00209 mmCenterWeightedAverage = 2, 00210 mmSpot = 3, 00211 mmMultiSpot = 4, 00212 mmPattern = 5, 00213 mmPartial = 6, 00214 00215 mmOther = 255 00216 00217 }; 00218 00219 /******************************************************************************/ 00220 00221 // CFA color codes from the TIFF/EP specification. 00222 00223 enum ColorKeyCode 00224 { 00225 00226 colorKeyRed = 0, 00227 colorKeyGreen = 1, 00228 colorKeyBlue = 2, 00229 colorKeyCyan = 3, 00230 colorKeyMagenta = 4, 00231 colorKeyYellow = 5, 00232 colorKeyWhite = 6, 00233 00234 colorKeyMaxEnum = 0xFF 00235 00236 }; 00237 00238 /*****************************************************************************/ 00239 00240 // Values for the ColorimetricReference tag. It specifies the colorimetric 00241 // reference used for images with PhotometricInterpretation values of CFA 00242 // or LinearRaw. 00243 00244 enum 00245 { 00246 00247 // Scene referred (default): 00248 00249 crSceneReferred = 0, 00250 00251 // Output referred using the parameters of the ICC profile PCS. 00252 00253 crICCProfilePCS = 1 00254 00255 }; 00256 00257 /*****************************************************************************/ 00258 00259 // Values for the ProfileEmbedPolicy tag. 00260 00261 enum 00262 { 00263 00264 // Freely embedable and copyable into installations that encounter this 00265 // profile, so long as the profile is only used to process DNG files. 00266 00267 pepAllowCopying = 0, 00268 00269 // Can be embeded in a DNG for portable processing, but cannot be used 00270 // to process other files that the profile is not embedded in. 00271 00272 pepEmbedIfUsed = 1, 00273 00274 // Can only be used if installed on the machine processing the file. 00275 // Note that this only applies to stand-alone profiles. Profiles that 00276 // are already embedded inside a DNG file allowed to remain embedded 00277 // in that DNG, even if the DNG is resaved. 00278 00279 pepEmbedNever = 2, 00280 00281 // No restricts on profile use or embedding. 00282 00283 pepNoRestrictions = 3 00284 00285 }; 00286 00287 /*****************************************************************************/ 00288 00289 // Values for the PreviewColorSpace tag. 00290 00291 enum PreviewColorSpaceEnum 00292 { 00293 00294 previewColorSpace_Unknown = 0, 00295 previewColorSpace_GrayGamma22 = 1, 00296 previewColorSpace_sRGB = 2, 00297 previewColorSpace_AdobeRGB = 3, 00298 previewColorSpace_ProPhotoRGB = 4, 00299 00300 previewColorSpace_LastValid = previewColorSpace_ProPhotoRGB, 00301 00302 previewColorSpace_MaxEnum = 0xFFFFFFFF 00303 00304 }; 00305 00306 /*****************************************************************************/ 00307 00308 // TIFF-style byte order markers. 00309 00310 enum 00311 { 00312 00313 byteOrderII = 0x4949, // 'II' 00314 byteOrderMM = 0x4D4D // 'MM' 00315 00316 }; 00317 00318 /*****************************************************************************/ 00319 00320 // "Magic" numbers. 00321 00322 enum 00323 { 00324 00325 // DNG related. 00326 00327 magicTIFF = 42, // TIFF (and DNG) 00328 magicExtendedProfile = 0x4352, // 'CR' 00329 00330 // Other raw formats - included here so the DNG SDK can parse them. 00331 00332 magicPanasonic = 85, 00333 magicOlympusA = 0x4F52, 00334 magicOlympusB = 0x5352 00335 00336 }; 00337 00338 /*****************************************************************************/ 00339 00340 // DNG Version numbers 00341 00342 enum 00343 { 00344 00345 dngVersion_None = 0, 00346 00347 dngVersion_1_0_0_0 = 0x01000000, 00348 dngVersion_1_1_0_0 = 0x01010000, 00349 dngVersion_1_2_0_0 = 0x01020000, 00350 dngVersion_1_3_0_0 = 0x01030000, 00351 00352 dngVersion_Current = dngVersion_1_3_0_0, 00353 00354 dngVersion_SaveDefault = dngVersion_Current 00355 00356 }; 00357 00358 /*****************************************************************************/ 00359 00360 #endif 00361 00362 /*****************************************************************************/ |