ilerrors.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: ilerrors.h /main/3 1995/10/23 15:47:31 rswiston $ */
  24. /**---------------------------------------------------------------------
  25. ***
  26. *** file: ilerrors.h
  27. ***
  28. *** description: Public error codes for IL
  29. ***
  30. ***
  31. *** (c)Copyright 1991 Hewlett-Packard Co.
  32. ***
  33. *** RESTRICTED RIGHTS LEGEND
  34. *** Use, duplication, or disclosure by the U.S. Government is subject to
  35. *** restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
  36. *** Technical Data and Computer Software clause in DFARS 252.227-7013.
  37. *** Hewlett-Packard Company
  38. *** 3000 Hanover Street
  39. *** Palo Alto, CA 94304 U.S.A.
  40. *** Rights for non-DOD U.S. Government Departments and Agencies are as set
  41. *** forth in FAR 52.227-19(c)(1,2).
  42. ***
  43. ***-------------------------------------------------------------------*/
  44. #ifndef ILERRORS_H
  45. #define ILERRORS_H
  46. #ifndef IL_H
  47. #include "il.h"
  48. #endif
  49. /* Error codes for the Image Library (IL), of type ilError.
  50. User-defined error codes (e.g. from user pipe elements)
  51. should be negative.
  52. Do "man ilerrors" for a description of the error codes.
  53. NOTE: IL_OK (0) in il.h means "no error".
  54. */
  55. #define IL_ERROR_LAST_STRIP 1
  56. #define IL_ERROR_ELEMENT_AGAIN 2
  57. #define IL_ERROR_ELEMENT_COMPLETE 3
  58. #define IL_ERROR_PAR_NOT_ZERO 4
  59. #define IL_ERROR_VERSION_MISMATCH 5
  60. #define IL_ERROR_BITS_PER_SAMPLE 6
  61. #define IL_ERROR_SAMPLES_PER_PIXEL 7
  62. #define IL_ERROR_LEVELS_PER_SAMPLE 8
  63. #define IL_ERROR_SAMPLE_ORDER 9
  64. #define IL_ERROR_BYTE_ORDER 10
  65. #define IL_ERROR_RESERVED_NOT_ZERO 11
  66. #define IL_ERROR_ROW_BIT_ALIGN 12
  67. #define IL_ERROR_COMPRESSION 13
  68. #define IL_ERROR_IMAGE_TYPE 16
  69. #define IL_ERROR_PIPE_STATE 17
  70. #define IL_ERROR_MALLOC 19
  71. #define IL_ERROR_OBJECT_TYPE 20
  72. #define IL_ERROR_CONTEXT_MISMATCH 21
  73. #define IL_ERROR_CIRCULAR_PIPE 22
  74. #define IL_ERROR_IMAGE_SIZE 23
  75. #define IL_ERROR_PRODUCER_DATA 24
  76. #define IL_ERROR_USER_PIPE_ELEMENT 25
  77. #define IL_ERROR_PIPE_ELEMENT 26
  78. #define IL_ERROR_CANT_CONVERT 27
  79. #define IL_ERROR_X_GET_IMAGE 28
  80. #define IL_ERROR_X_RESOURCE 29
  81. #define IL_ERROR_NOT_IMPLEMENTED 30
  82. #define IL_ERROR_ELEMENT_TYPE 31
  83. #define IL_ERROR_ZERO_SIZE_IMAGE 32
  84. #define IL_ERROR_NULL_RECT_PTR 34
  85. #define IL_ERROR_MAP_IMAGE 35
  86. #define IL_ERROR_EXECUTE_STACK_OVERFLOW 36
  87. #define IL_ERROR_EXECUTE_STACK_UNDERFLOW 37
  88. #define IL_ERROR_X_DRAWABLE 38
  89. #define IL_ERROR_X_COLORMAP_VISUAL 40
  90. #define IL_ERROR_UNSUPPORTED_VISUAL 41
  91. #define IL_ERROR_SCALE_BITONAL_TO_GRAY 42
  92. #define IL_ERROR_INVALID_OPTION 43
  93. #define IL_ERROR_FILE_IO 44
  94. #define IL_ERROR_FILE_NOT_TIFF 45
  95. #define IL_ERROR_FILE_MALFORMED_TAG 46
  96. #define IL_ERROR_FILE_MISSING_TAG 47
  97. #define IL_ERROR_FILE_TAG_VALUE 48
  98. #define IL_ERROR_FILE_TAG_TYPE 49
  99. #define IL_ERROR_FILE_STRIP_TAGS 50
  100. #define IL_ERROR_FILE_WRITE_METHOD 51
  101. #define IL_ERROR_NULL_COMPRESSED_IMAGE 52
  102. #define IL_ERROR_OPTION_DATA 55
  103. #define IL_ERROR_SUBSAMPLE 56
  104. #define IL_ERROR_COMPRESSED_DATA 60
  105. #define IL_ERROR_MALFORMED_FILE_WRITE 61
  106. #define IL_ERROR_YCBCR_DATA 65
  107. #define IL_ERROR_YCBCR_FORMAT 66
  108. #define IL_ERROR_YCBCR_TIFF 67
  109. #define IL_ERROR_CONVERT_COMPRESSION 68
  110. #define IL_ERROR_CONVERT_TO_PALETTE 69
  111. #define IL_ERROR_EFS_IO 70
  112. #define IL_ERROR_EFS_OPEN 71
  113. #define IL_ERROR_EFS_NOT_MINE 72
  114. #define IL_ERROR_EFS_EMPTY_FILE 73
  115. #define IL_ERROR_EFS_EOF 74
  116. #define IL_ERROR_EFS_PRIVATE 75
  117. #define IL_ERROR_EFS_OPEN_MODE 76
  118. #define IL_ERROR_EFS_NO_FILE_TYPE 77
  119. #define IL_ERROR_EFS_FILE_TYPE_INFO 78
  120. #define IL_ERROR_EFS_READ_MODE 79
  121. #define IL_ERROR_EFS_FORMAT_ERROR 80
  122. #define IL_ERROR_EFS_UNSUPPORTED 81
  123. #define IL_ERROR_PIPE_NOT_FED 82
  124. #define IL_ERROR_RAW_MODE 83
  125. #define IL_ERROR_PALETTE_INFO 84
  126. #define IL_ERROR_MALFORMED_IMAGE_WRITE 85
  127. #define IL_ERROR_FEED_PIPE 86
  128. #endif