deprecated.h 3.8 KB

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