Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

idima-ido.h

Go to the documentation of this file.
00001 /************************************************************************* 00002 * $Id: idima-ido.h,v 1.1 2005/09/09 08:22:32 bellet Exp $ 00003 ************************************************************************** 00004 This software is governed by the CeCILL license under French law and 00005 abiding by the rules of distribution of free software. You can use, 00006 modify and/ or redistribute the software under the terms of the CeCILL 00007 license as circulated by CEA, CNRS and INRIA at the following URL 00008 "http://www.cecill.info". 00009 00010 As a counterpart to the access to the source code and rights to copy, 00011 modify and redistribute granted by the license, users are provided only 00012 with a limited warranty and the software's author, the holder of the 00013 economic rights, and the successive licensors have only limited 00014 liability. 00015 00016 In this respect, the user's attention is drawn to the risks associated 00017 with loading, using, modifying and/or developing or reproducing the 00018 software by the user in light of its specific status of free software, 00019 that may mean that it is complicated to manipulate, and that also 00020 therefore means that it is reserved for developers and experienced 00021 professionals having in-depth computer knowledge. Users are therefore 00022 encouraged to load and test the software's suitability as regards their 00023 requirements in conditions enabling the security of their systems and/or 00024 data to be ensured and, more generally, to use and operate it in the 00025 same conditions as regards security. 00026 00027 The fact that you are presently reading this means that you have had 00028 knowledge of the CeCILL license and that you accept its terms. 00029 00030 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00031 l'Image). All rights reserved. See License.txt for details. 00032 00033 Version 1.0 05/09/2005 00034 *************************************************************************/ 00035 00036 /************************************************************************* 00037 * 00038 * Description : Declarations diverses permettant d'utiliser le type IMAGE 00039 * de la bibliotheque LIBIDO 00040 * 00041 **************************************************************************/ 00042 00043 00044 00045 #ifndef __IDIMA_IDO_H__ 00046 #define __IDIMA_IDO_H__ 00047 00048 00049 00050 /* Types d'images 2d */ 00051 00052 #define IMA_CHAR (IMA | TY_CHAR) 00053 #define IMA_UCHAR (IMA | TY_UCHAR) 00054 #define IMA_SHORT (IMA | TY_SHORT) 00055 #define IMA_USHORT (IMA | TY_USHORT) 00056 #define IMA_LONG (IMA | TY_LONG) 00057 #define IMA_ULONG (IMA | TY_ULONG) 00058 #define IMA_FLOAT (IMA | TY_FLOAT) 00059 #define IMA_DOUBLE (IMA | TY_DOUBLE) 00060 #define IMA_COMPLEX (IMA | TY_COMPLEX) 00061 #define IMA_RGB (IMA | TY_RGB) 00062 #define IMA_RGBA (IMA | TY_RGBA) 00063 #define IMA_COMPLEX_DOUBLE (IMA | TY_COMPLEX_DOUBLE) 00064 #define IMA_COMPLEX_FLOAT (IMA | TY_COMPLEX_FLOAT ) 00065 #define IMA_COMPLEX_CHAR (IMA | TY_COMPLEX_CHAR ) 00066 #define IMA_COMPLEX_UCHAR (IMA | TY_COMPLEX_UCHAR ) 00067 #define IMA_COMPLEX_SHORT (IMA | TY_COMPLEX_SHORT ) 00068 #define IMA_COMPLEX_USHORT (IMA | TY_COMPLEX_USHORT) 00069 #define IMA_COMPLEX_LONG (IMA | TY_COMPLEX_LONG ) 00070 #define IMA_COMPLEX_ULONG (IMA | TY_COMPLEX_ULONG ) 00071 #define IMA_BIT (IMA | TY_BIT ) 00072 #define IMA_POINTER (IMA | TY_POINTER) 00073 #define IMA_COLOR (IMA | TY_COLOR) 00074 00075 00076 /* structure IMAGE */ 00077 00078 typedef void ** PPIMAGE ; 00079 typedef char ** PPIMAGE_CHAR ; 00080 typedef unsigned char ** PPIMAGE_UCHAR ; 00081 typedef float ** PPIMAGE_FLOAT ; 00082 typedef double ** PPIMAGE_DOUBLE ; 00083 typedef COMPLEX ** PPIMAGE_COMPLEX ; 00084 typedef RGB ** PPIMAGE_RGB ; 00085 typedef RGBA ** PPIMAGE_RGBA ; 00086 typedef short ** PPIMAGE_SHORT ; 00087 typedef unsigned short ** PPIMAGE_USHORT ; 00088 typedef long ** PPIMAGE_LONG ; 00089 typedef unsigned long ** PPIMAGE_ULONG ; 00090 typedef COMPLEX_DOUBLE ** PPIMAGE_COMPLEX_DOUBLE ; 00091 typedef COMPLEX_FLOAT ** PPIMAGE_COMPLEX_FLOAT ; 00092 typedef COMPLEX_CHAR ** PPIMAGE_COMPLEX_CHAR ; 00093 typedef COMPLEX_UCHAR ** PPIMAGE_COMPLEX_UCHAR ; 00094 typedef COMPLEX_SHORT ** PPIMAGE_COMPLEX_SHORT ; 00095 typedef COMPLEX_USHORT ** PPIMAGE_COMPLEX_USHORT ; 00096 typedef COMPLEX_LONG ** PPIMAGE_COMPLEX_LONG ; 00097 typedef COMPLEX_ULONG ** PPIMAGE_COMPLEX_ULONG ; 00098 typedef PPIMAGE_UCHAR PPIMAGE_BIT ; 00099 typedef void *** PPIMAGE_POINTER; 00100 typedef COLOR ** PPIMAGE_COLOR; 00101 00102 00103 typedef struct { 00104 int UsedNbY; 00105 int UsedNbX; 00106 int subObject; 00107 int DimY; 00108 int DimX; 00109 int Numero; 00110 char *_message,*_fichier; 00111 int BitsPerPixel; /* nombre de bits reellement utilises */ 00112 int Type; /* IMPERATIVEMENT DERNIER DE LA STRUCTURE */ 00113 00114 } PRIVATE_IMAGE; 00115 00116 #define _IdImaPrivate(ima) (((PRIVATE_IMAGE*)(ima) )-1) 00117 00118 00119 // PRIVATE_IMAGE accessors 00120 int IdImaUsedNbY (void *); 00121 int IdImaGetUsedNbY (void *); // Alias of IdImaUsedNbY 00122 int IdImaUsedNbX (void *); 00123 int IdImaGetUsedNbX (void *); // Alias of IdImaUsedNbX 00124 int IdImaDimY (void *); 00125 int IdImaDimX (void *); 00126 int IdImaBitsPerPixel (void *); 00127 int IdImaType (void *); 00128 00129 void IdImaSetUsedNbY (void *, int); 00130 void IdImaSetUsedNbX (void *, int); 00131 void IdImaSetDimY (void *, int); 00132 void IdImaSetDimX (void *, int); 00133 void IdImaSetBitsPerPixel (void *, int); 00134 void IdImaSetType (void *, int); 00135 00136 00137 #endif

Generated on Wed Oct 19 09:28:33 2005 for SIMRI3D by doxygen 1.3.7