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/workarea/stern/camera_raw/dng_sdk/source/dng_flags.h#17 $ */ 00010 /* $DateTime: 2009/06/20 16:06:12 $ */ 00011 /* $Change: 578501 $ */ 00012 /* $Author: stern $ */ 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 00044 00045 // Figure out if debug build or not. 00046 00047 #ifndef qDNGDebug 00048 00049 #if defined(Debug) 00050 #define qDNGDebug Debug 00051 00052 #elif defined(_DEBUG) 00053 #define qDNGDebug _DEBUG 00054 00055 #else 00056 #define qDNGDebug 0 00057 00058 #endif 00059 #endif 00060 00061 /*****************************************************************************/ 00062 00063 // Figure out byte order. 00064 00067 00068 #ifndef qDNGBigEndian 00069 00070 #if defined(qDNGLittleEndian) 00071 #define qDNGBigEndian !qDNGLittleEndian 00072 00073 #elif defined(__POWERPC__) 00074 #define qDNGBigEndian 1 00075 00076 #elif defined(__INTEL__) 00077 #define qDNGBigEndian 0 00078 00079 #elif defined(_M_IX86) 00080 #define qDNGBigEndian 0 00081 00082 #elif defined(_M_X64) 00083 #define qDNGBigEndian 0 00084 00085 #elif defined(__LITTLE_ENDIAN__) 00086 #define qDNGBigEndian 0 00087 00088 #elif defined(__BIG_ENDIAN__) 00089 #define qDNGBigEndian 1 00090 00091 #else 00092 00093 #ifndef qXCodeRez 00094 #error Unable to figure out byte order. 00095 #endif 00096 00097 #endif 00098 #endif 00099 00100 #ifndef qXCodeRez 00101 00102 #ifndef qDNGLittleEndian 00103 #define qDNGLittleEndian !qDNGBigEndian 00104 #endif 00105 00106 #endif 00107 00108 /*****************************************************************************/ 00109 00111 00112 #ifndef qDNG64Bit 00113 00114 #if qMacOS 00115 00116 #ifdef __LP64__ 00117 #if __LP64__ 00118 #define qDNG64Bit 1 00119 #endif 00120 #endif 00121 00122 #elif qWinOS 00123 00124 #ifdef WIN64 00125 #if WIN64 00126 #define qDNG64Bit 1 00127 #endif 00128 #endif 00129 00130 #endif 00131 00132 #ifndef qDNG64Bit 00133 #define qDNG64Bit 0 00134 #endif 00135 00136 #endif 00137 00138 /*****************************************************************************/ 00139 00141 00142 #ifndef qDNGThreadSafe 00143 #define qDNGThreadSafe (qMacOS || qWinOS) 00144 #endif 00145 00146 /*****************************************************************************/ 00147 00149 00150 #ifndef qDNGValidateTarget 00151 #define qDNGValidateTarget 0 00152 #endif 00153 00154 /*****************************************************************************/ 00155 00157 00158 #ifndef qDNGValidate 00159 #define qDNGValidate qDNGValidateTarget 00160 #endif 00161 00162 /*****************************************************************************/ 00163 00166 00167 #ifndef qDNGPrintMessages 00168 #define qDNGPrintMessages qDNGValidate 00169 #endif 00170 00171 /*****************************************************************************/ 00172 00173 #endif 00174 00175 /*****************************************************************************/ |