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_types.h00001 /*****************************************************************************/ 00002 // Copyright 2006 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_types.h#1 $ */ 00010 /* $DateTime: 2008/03/09 14:29:54 $ */ 00011 /* $Change: 431850 $ */ 00012 /* $Author: tknoll $ */ 00013 00014 /*****************************************************************************/ 00015 00016 #ifndef __dng_types__ 00017 #define __dng_types__ 00018 00019 /*****************************************************************************/ 00020 00021 #include "dng_flags.h" 00022 00023 /*****************************************************************************/ 00024 00025 // Standard integer types. 00026 00027 #ifdef _MSC_VER 00028 #include <stddef.h> 00029 #else 00030 #include <stdint.h> 00031 #endif 00032 00033 /*****************************************************************************/ 00034 00035 #ifdef qDNGUseStdInt 00036 00037 typedef int8_t int8; 00038 typedef int16_t int16; 00039 typedef int32_t int32; 00040 typedef int64_t int64; 00041 00042 typedef uint8_t uint8; 00043 typedef uint16_t uint16; 00044 typedef uint32_t uint32; 00045 typedef uint64_t uint64; 00046 00047 #else 00048 00049 typedef signed char int8; 00050 typedef signed short int16; 00051 typedef signed long int32; 00052 typedef signed long long int64; 00053 00054 typedef unsigned char uint8; 00055 typedef unsigned short uint16; 00056 typedef unsigned long uint32; 00057 typedef unsigned long long uint64; 00058 00059 #endif 00060 00061 typedef uintptr_t uintptr; 00062 00063 /*****************************************************************************/ 00064 00065 typedef float real32; 00066 typedef double real64; 00067 00068 /*****************************************************************************/ 00069 00071 00072 #define DNG_CHAR4(a,b,c,d) ((((uint32) a) << 24) |\ 00073 (((uint32) b) << 16) |\ 00074 (((uint32) c) << 8) |\ 00075 (((uint32) d) )) 00076 00077 /*****************************************************************************/ 00078 00079 #include <stdio.h> 00080 #include <stdlib.h> 00081 #include <string.h> 00082 #include <math.h> 00083 #include <time.h> 00084 00085 /*****************************************************************************/ 00086 00087 // Visual Studio now prefers _hypot to hypot 00088 00089 #ifdef _MSC_VER 00090 00091 #ifdef hypot 00092 #undef hypot 00093 #endif 00094 00095 #define hypot _hypot 00096 00097 #endif 00098 00099 /*****************************************************************************/ 00100 00101 #endif 00102 00103 /*****************************************************************************/ | |||
