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/dng_sdk_1_2/dng_sdk/source/dng_tag_values.h#1 $ */ 00010 /* $DateTime: 2008/03/09 14:29:54 $ */ 00011 /* $Change: 431850 $ */ 00012 /* $Author: tknoll $ */ 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 00118 }; 00119 00120 /******************************************************************************/ 00121 00122 // Values for Predictor tag. 00123 00124 enum 00125 { 00126 00127 cpNullPredictor = 1, 00128 cpHorizontalDifference = 2 00129 00130 }; 00131 00132 /******************************************************************************/ 00133 00134 // Values for ResolutionUnit tag. 00135 00136 enum 00137 { 00138 00139 ruNone = 1, 00140 ruInch = 2, 00141 ruCM = 3, 00142 ruMM = 4, 00143 ruMicroM = 5 00144 00145 }; 00146 00147 /******************************************************************************/ 00148 00149 // Values for LightSource tag. 00150 00151 enum 00152 { 00153 00154 lsUnknown = 0, 00155 00156 lsDaylight = 1, 00157 lsFluorescent = 2, 00158 lsTungsten = 3, 00159 lsFlash = 4, 00160 lsFineWeather = 9, 00161 lsCloudyWeather = 10, 00162 lsShade = 11, 00163 lsDaylightFluorescent = 12, // D 5700 - 7100K 00164 lsDayWhiteFluorescent = 13, // N 4600 - 5400K 00165 lsCoolWhiteFluorescent = 14, // W 3900 - 4500K 00166 lsWhiteFluorescent = 15, // WW 3200 - 3700K 00167 lsStandardLightA = 17, 00168 lsStandardLightB = 18, 00169 lsStandardLightC = 19, 00170 lsD55 = 20, 00171 lsD65 = 21, 00172 lsD75 = 22, 00173 lsD50 = 23, 00174 lsISOStudioTungsten = 24, 00175 00176 lsOther = 255 00177 00178 }; 00179 00180 /******************************************************************************/ 00181 00182 // Values for ExposureProgram tag. 00183 00184 enum 00185 { 00186 00187 epUnidentified = 0, 00188 epManual = 1, 00189 epProgramNormal = 2, 00190 epAperturePriority = 3, 00191 epShutterPriority = 4, 00192 epProgramCreative = 5, 00193 epProgramAction = 6, 00194 epPortraitMode = 7, 00195 epLandscapeMode = 8 00196 00197 }; 00198 00199 /******************************************************************************/ 00200 00201 // Values for MeteringMode tag. 00202 00203 enum 00204 { 00205 00206 mmUnidentified = 0, 00207 mmAverage = 1, 00208 mmCenterWeightedAverage = 2, 00209 mmSpot = 3, 00210 mmMultiSpot = 4, 00211 mmPattern = 5, 00212 mmPartial = 6, 00213 00214 mmOther = 255 00215 00216 }; 00217 00218 /******************************************************************************/ 00219 00220 // CFA color codes from the TIFF/EP specification. 00221 00222 enum ColorKeyCode 00223 { 00224 00225 colorKeyRed = 0, 00226 colorKeyGreen = 1, 00227 colorKeyBlue = 2, 00228 colorKeyCyan = 3, 00229 colorKeyMagenta = 4, 00230 colorKeyYellow = 5, 00231 colorKeyWhite = 6, 00232 00233 colorKeyMaxEnum = 0xFF 00234 00235 }; 00236 00237 /*****************************************************************************/ 00238 00239 // Values for the ColorimetricReference tag. It specifies the colorimetric 00240 // reference used for images with PhotometricInterpretation values of CFA 00241 // or LinearRaw. 00242 00243 enum 00244 { 00245 00246 // Scene referred (default): 00247 00248 crSceneReferred = 0, 00249 00250 // Output referred using the parameters of the ICC profile PCS. 00251 00252 crICCProfilePCS = 1 00253 00254 }; 00255 00256 /*****************************************************************************/ 00257 00258 // Values for the ProfileEmbedPolicy tag. 00259 00260 enum 00261 { 00262 00263 // Freely embedable and copyable into installations that encounter this 00264 // profile, so long as the profile is only used to process DNG files. 00265 00266 pepAllowCopying = 0, 00267 00268 // Can be embeded in a DNG for portable processing, but cannot be used 00269 // to process other files that the profile is not embedded in. 00270 00271 pepEmbedIfUsed = 1, 00272 00273 // Can only be used if installed on the machine processing the file. 00274 // Note that this only applies to stand-alone profiles. Profiles that 00275 // are already embedded inside a DNG file allowed to remain embedded 00276 // in that DNG, even if the DNG is resaved. 00277 00278 pepEmbedNever = 2, 00279 00280 // No restricts on profile use or embedding. 00281 00282 pepNoRestrictions = 3 00283 00284 }; 00285 00286 /*****************************************************************************/ 00287 00288 // Values for the PreviewColorSpace tag. 00289 00290 enum PreviewColorSpaceEnum 00291 { 00292 00293 previewColorSpace_Unknown = 0, 00294 previewColorSpace_GrayGamma22 = 1, 00295 previewColorSpace_sRGB = 2, 00296 previewColorSpace_AdobeRGB = 3, 00297 previewColorSpace_ProPhotoRGB = 4, 00298 00299 previewColorSpace_LastValid = previewColorSpace_ProPhotoRGB, 00300 00301 previewColorSpace_MaxEnum = 0xFFFFFFFF 00302 00303 }; 00304 00305 /*****************************************************************************/ 00306 00307 // TIFF-style byte order markers. 00308 00309 enum 00310 { 00311 00312 byteOrderII = 0x4949, // 'II' 00313 byteOrderMM = 0x4D4D // 'MM' 00314 00315 }; 00316 00317 /*****************************************************************************/ 00318 00319 // "Magic" numbers. 00320 00321 enum 00322 { 00323 00324 // DNG related. 00325 00326 magicTIFF = 42, // TIFF (and DNG) 00327 magicExtendedProfile = 0x4352, // 'CR' 00328 00329 // Other raw formats - included here so the DNG SDK can parse them. 00330 00331 magicPanasonic = 85, 00332 magicOlympusA = 0x4F52, 00333 magicOlympusB = 0x5352 00334 00335 }; 00336 00337 /*****************************************************************************/ 00338 00339 #endif 00340 00341 /*****************************************************************************/ | |||
