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/workarea/stern/camera_raw/dng_sdk/source/dng_types.h#6 $ */ 00010 /* $DateTime: 2009/03/30 11:55:24 $ */ 00011 /* $Change: 551329 $ */ 00012 /* $Author: stern $ */ 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 #if __LP64__ 00052 typedef signed int int32; 00053 #else 00054 typedef signed long int32; 00055 #endif 00056 typedef signed long long int64; 00057 00058 typedef unsigned char uint8; 00059 typedef unsigned short uint16; 00060 #if __LP64__ 00061 typedef unsigned int uint32; 00062 #else 00063 typedef unsigned long uint32; 00064 #endif 00065 typedef unsigned long long uint64; 00066 00067 #endif 00068 00069 typedef uintptr_t uintptr; 00070 00071 /*****************************************************************************/ 00072 00073 typedef float real32; 00074 typedef double real64; 00075 00076 /*****************************************************************************/ 00077 00079 00080 #define DNG_CHAR4(a,b,c,d) ((((uint32) a) << 24) |\ 00081 (((uint32) b) << 16) |\ 00082 (((uint32) c) << 8) |\ 00083 (((uint32) d) )) 00084 00085 /*****************************************************************************/ 00086 00087 #include <stdio.h> 00088 #include <stdlib.h> 00089 #include <string.h> 00090 #include <math.h> 00091 #include <time.h> 00092 00093 /*****************************************************************************/ 00094 00095 // Visual Studio now prefers _hypot to hypot 00096 00097 #ifdef _MSC_VER 00098 00099 #ifdef hypot 00100 #undef hypot 00101 #endif 00102 00103 #define hypot _hypot 00104 00105 #endif 00106 00107 /*****************************************************************************/ 00108 00109 #endif 00110 00111 /*****************************************************************************/ |