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_flags.hGo to the documentation of this file.00001 /*****************************************************************************/ 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_flags.h#1 $ */ 00010 /* $DateTime: 2008/03/09 14:29:54 $ */ 00011 /* $Change: 431850 $ */ 00012 /* $Author: tknoll $ */ 00013 00020 /*****************************************************************************/ 00021 00022 #ifndef __dng_flags__ 00023 #define __dng_flags__ 00024 00025 /*****************************************************************************/ 00026 00029 00030 // Make sure qMacOS and qWinOS are defined. 00031 00032 #if !defined(qMacOS) || !defined(qWinOS) 00033 #include "RawEnvironment.h" 00034 #endif 00035 00036 #if !defined(qMacOS) || !defined(qWinOS) 00037 #error Unable to figure out platform 00038 #endif 00039 00040 /*****************************************************************************/ 00041 00043 00044 // Figure out if debug build or not. 00045 00046 #ifndef qDNGDebug 00047 00048 #if defined(Debug) 00049 #define qDNGDebug Debug 00050 00051 #elif defined(_DEBUG) 00052 #define qDNGDebug _DEBUG 00053 00054 #else 00055 #define qDNGDebug 0 00056 00057 #endif 00058 #endif 00059 00060 /*****************************************************************************/ 00061 00062 // Figure out byte order. 00063 00066 00067 #ifndef qDNGBigEndian 00068 00069 #if defined(qDNGLittleEndian) 00070 #define qDNGBigEndian !qDNGLittleEndian 00071 00072 #elif defined(__POWERPC__) 00073 #define qDNGBigEndian 1 00074 00075 #elif defined(__INTEL__) 00076 #define qDNGBigEndian 0 00077 00078 #elif defined(_M_IX86) 00079 #define qDNGBigEndian 0 00080 00081 #elif defined(_M_X64) 00082 #define qDNGBigEndian 0 00083 00084 #elif defined(__LITTLE_ENDIAN__) 00085 #define qDNGBigEndian 0 00086 00087 #elif defined(__BIG_ENDIAN__) 00088 #define qDNGBigEndian 1 00089 00090 #else 00091 00092 #ifndef qXCodeRez 00093 #error Unable to figure out byte order. 00094 #endif 00095 00096 #endif 00097 #endif 00098 00099 #ifndef qXCodeRez 00100 00101 #ifndef qDNGLittleEndian 00102 #define qDNGLittleEndian !qDNGBigEndian 00103 #endif 00104 00105 #endif 00106 00107 /*****************************************************************************/ 00108 00110 00111 #ifndef qDNG64Bit 00112 00113 #if qMacOS 00114 00115 #ifdef __LP64__ 00116 #if __LP64__ 00117 #define qDNG64Bit 1 00118 #endif 00119 #endif 00120 00121 #elif qWinOS 00122 00123 #ifdef WIN64 00124 #if WIN64 00125 #define qDNG64Bit 1 00126 #endif 00127 #endif 00128 00129 #endif 00130 00131 #ifndef qDNG64Bit 00132 #define qDNG64Bit 0 00133 #endif 00134 00135 #endif 00136 00137 /*****************************************************************************/ 00138 00140 00141 #ifndef qDNGThreadSafe 00142 #define qDNGThreadSafe (qMacOS || qWinOS) 00143 #endif 00144 00145 /*****************************************************************************/ 00146 00148 00149 #ifndef qDNGValidateTarget 00150 #define qDNGValidateTarget 0 00151 #endif 00152 00153 /*****************************************************************************/ 00154 00156 00157 #ifndef qDNGValidate 00158 #define qDNGValidate qDNGValidateTarget 00159 #endif 00160 00161 /*****************************************************************************/ 00162 00165 00166 #ifndef qDNGPrintMessages 00167 #define qDNGPrintMessages qDNGValidate 00168 #endif 00169 00170 /*****************************************************************************/ 00171 00172 #endif 00173 00174 /*****************************************************************************/ | |||
