Imagecon.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program; if not, write to the Free Software Foundation, Inc.,
  16. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. //
  20. // IMAGECON.H
  21. //
  22. // Created on 09/28/95 BRH
  23. // Implemented on 09/28/95 BRH
  24. //
  25. // 09/28/95 BRH Standard conversion functions for the standard
  26. // image types. The two main standards are 8 and 24
  27. // bit images. The standard converters are explained
  28. // in the .cpp file before each conversion function.
  29. //
  30. // 10/30/96 JMI Added a message indicating this was obsoleted as it doesn't
  31. // seem to do anything.
  32. //
  33. // 11/01/96 JMI Enhanced message referred to on 10/30/96.
  34. //
  35. ///////////////////////////////////////////////////////////////////////////////
  36. // This header is no longer used.
  37. #pragma message ( __FILE__ " : Do not include this header. It is no longer used." )
  38. #ifndef IMAGECON_H
  39. #define IMAGECON_H
  40. #include "System.h"
  41. // If PATHS_IN_INCLUDES macro is defined, we can utilize relative
  42. // paths to a header file. In this case we generally go off of our
  43. // RSPiX root directory. System.h MUST be included before this macro
  44. // is evaluated. System.h is the header that, based on the current
  45. // platform (or more so in this case on the compiler), defines
  46. // PATHS_IN_INCLUDES. Blue.h includes system.h so you can include that
  47. // instead.
  48. // Green include files
  49. #ifdef PATHS_IN_INCLUDES
  50. #include "GREEN/Image/Image.h"
  51. #else
  52. #include "Image.h"
  53. #endif // PATHS_IN_INCLUDES
  54. // Orange include files
  55. //#include "dynalink/dynalink.h"
  56. class CImage; // forward declaration
  57. // Conversion from extended to standard function typedef.
  58. ////typedef short (*CONVFROMFUNC)(CImage* pImage);
  59. // Conversion to extended from standard function typedef.
  60. ////typedef short (*CONVTOFUNC)(CImage* pImage);
  61. // To use the dynamic linking, we will provide macros to make it easy
  62. // for the implementer of a new type conversion to link their function.
  63. // These macros invoke the LINKELATE macro to allocate a static CDynaLink that
  64. // is used to link in the conversion function.
  65. // There is a specific use of From and To in this header. Think of it
  66. // in terms of the preposition you use when saying, "Convert [from|to]
  67. // extended."
  68. // Use this to link a new Image Convertor that converts _FROM_ an extended
  69. // format to a standard.
  70. // Place at file scope with your image convertor function and its type enum.
  71. // Example:
  72. // LINK_IMAGECONV_FROM(ConvertFromBMP8, BMP8);
  73. /*
  74. #define LINK_IMAGECONV_FROM(pUserFromFunc, lUserFromFuncIndex) \
  75. LINKLATE(CONVFROMFUNC, CImage, MAX_IMAGE_FROMCONVERTORS, \
  76. pUserFromFunc, lUserFromFuncIndex)
  77. */
  78. // Use this to link a new Image Convertor that converts _TO_ an extended
  79. // format from a standard.
  80. // Place at file scope with your image convertor function and its type enum.
  81. // Example:
  82. // LINK_IMAGECONV_TO(ConvertToBMP8, BMP8);
  83. /*
  84. #define LINK_IMAGECONV_TO(pUserToFunc, lUserToFuncIndex) \
  85. LINKLATE(CONVTOFUNC, CImage, MAX_IMAGE_TOCONVERTORS, \
  86. pUserToFunc, lUserToFuncIndex)
  87. */
  88. ///////////////////////////////////////////////////////////////////////////////
  89. // Internal Image use:
  90. ///////////////////////////////////////////////////////////////////////////////
  91. // Use this to get a "to" function.
  92. /*
  93. #define GETTOFUNC(lIndex) \
  94. GETLINKFUNC(CONVTOFUNC, CImage, MAX_IMAGE_TOCONVERTORS, lIndex)
  95. // Use this to get a "from" function.
  96. #define GETFROMFUNC(lIndex) \
  97. GETLINKFUNC(CONVFROMFUNC, CImage, MAX_IMAGE_FROMCONVERTORS, lIndex)
  98. */
  99. #endif //IMAGECON_H
  100. ///////////////////////////////////////////////////////////////////////////////
  101. // EOF
  102. ///////////////////////////////////////////////////////////////////////////////