1 /* Old and broken stuff we do not enable by default 2 * 3 * 30/6/09 4 * - from vips.h 5 */ 6 7 /* 8 9 This file is part of VIPS. 10 11 VIPS is free software; you can redistribute it and/or modify 12 it under the terms of the GNU Lesser General Public License as published by 13 the Free Software Foundation; either version 2 of the License, or 14 (at your option) any later version. 15 16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU Lesser General Public License for more details. 20 21 You should have received a copy of the GNU Lesser General Public License 22 along with this program; if not, write to the Free Software 23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 24 02110-1301 USA 25 26 */ 27 28 /* 29 30 These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk 31 32 */ 33 34 #ifndef IM_DEPRECATED_H 35 #define IM_DEPRECATED_H 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif /*__cplusplus*/ 40 41 /* On win32, need to override the wingdi defs for these. Yuk! 42 */ 43 #ifdef HAVE_WINDOWS_H 44 #ifdef RGB 45 #undef RGB 46 #endif 47 #ifdef CMYK 48 #undef CMYK 49 #endif 50 #endif /*HAVE_WINDOWS_H*/ 51 52 /* Bits per Band */ 53 #define BBBYTE 8 54 #define BBSHORT 16 55 #define BBINT 32 56 #define BBFLOAT 32 57 #define BBCOMPLEX 64 /* complex consisting of two floats */ 58 #define BBDOUBLE 64 59 #define BBDPCOMPLEX 128 /* complex consisting of two doubles */ 60 61 /* picture Type */ 62 #define MULTIBAND 0 63 #define B_W 1 64 #define LUMINACE 2 65 #define XRAY 3 66 #define IR 4 67 #define YUV 5 68 #define RED_ONLY 6 /* red channel only */ 69 #define GREEN_ONLY 7 /* green channel only */ 70 #define BLUE_ONLY 8 /* blue channel only */ 71 #define POWER_SPECTRUM 9 72 #define HISTOGRAM 10 73 #define FOURIER 24 74 75 /* Colour spaces. 76 */ 77 #define LUT 11 78 #define XYZ 12 79 #define LAB 13 80 #define CMC 14 81 #define CMYK 15 82 #define LABQ 16 83 #define RGB 17 84 #define UCS 18 85 #define LCH 19 86 #define LABS 21 87 #define sRGB 22 88 #define YXY 23 89 90 /* BandFmt 91 */ 92 #define FMTNOTSET -1 93 #define FMTUCHAR 0 /* pels interpreted as unsigned chars */ 94 #define FMTCHAR 1 /* pels interpreted as signed chars */ 95 #define FMTUSHORT 2 /* pels interpreted as unsigned shorts */ 96 #define FMTSHORT 3 /* pels interpreted as signed shorts */ 97 #define FMTUINT 4 /* pels interpreted as unsigned ints */ 98 #define FMTINT 5 /* pels interpreted as signed ints */ 99 #define FMTFLOAT 6 /* pels interpreted as floats */ 100 #define FMTCOMPLEX 7 /* pels interpreted as complex (2 float each) */ 101 #define FMTDOUBLE 8 /* pels interpreted as unsigned double */ 102 #define FMTDPCOMPLEX 9 /* pels interpreted as complex (2 double each)*/ 103 104 /* Coding type 105 */ 106 #define NOCODING 0 107 #define COLQUANT 1 108 #define LABPACK 2 109 #define LABPACK_COMPRESSED 3 110 #define RGB_COMPRESSED 4 111 #define LUM_COMPRESSED 5 112 113 /* Compression type 114 */ 115 #define NO_COMPRESSION 0 116 #define TCSF_COMPRESSION 1 117 #define JPEG_COMPRESSION 2 118 119 #define esize(I) IM_IMAGE_SIZEOF_ELEMENT(I) 120 #define psize(I) IM_IMAGE_SIZEOF_PEL(I) 121 #define lsize(I) IM_IMAGE_SIZEOF_LINE(I) 122 #define niele(I) IM_IMAGE_N_ELEMENTS(I) 123 124 #define lskip(B) IM_REGION_LSKIP(B) 125 #define nele(B) IM_REGION_N_ELEMENTS(B) 126 #define rsize(B) IM_REGION_SIZEOF_LINE(B) 127 128 #define addr(B,X,Y) IM_REGION_ADDR(B,X,Y) 129 130 #ifndef MAX 131 #define MAX(A,B) IM_MAX(A, B) 132 #define MIN(A,B) IM_MIN(A, B) 133 #endif /*MAX*/ 134 135 #define CLIP(A,V,B) IM_CLIP(A, V, B) 136 #define NEW(IM,A) IM_NEW(IM,A) 137 #define NUMBER(R) IM_NUMBER(R) 138 #define ARRAY(IM,N,T) IM_ARRAY(IM,N,T) 139 140 #define RINT( R ) IM_RINT( R ) 141 142 #define CLIP_UCHAR( V, SEQ ) IM_CLIP_UCHAR( V, SEQ ) 143 #define CLIP_USHORT( V, SEQ ) IM_CLIP_USHORT( V, SEQ ) 144 #define CLIP_CHAR( V, SEQ ) IM_CLIP_CHAR( V, SEQ ) 145 #define CLIP_SHORT( V, SEQ ) IM_CLIP_SHORT( V, SEQ ) 146 #define CLIP_NONE( V, SEQ ) IM_CLIP_NONE( V, SEQ ) 147 148 #define right(R) IM_RECT_RIGHT(R) 149 #define bottom(R) IM_RECT_BOTTOM(R) 150 151 #ifdef __cplusplus 152 } 153 #endif /*__cplusplus*/ 154 155 #endif /*IM_DEPRECATED_H*/ 156