COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
cderror.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define JMAKE_ENUM_LIST
 
#define JMESSAGE(code, string)   code ,
 

Enumerations

enum  ADDON_MESSAGE_CODE {
  JMSG_FIRSTADDONCODE =1000, JERR_TGA_NOTCOMP, JERR_BAD_CMAP_FILE, JERR_TOO_MANY_COLORS,
  JERR_UNGETC_FAILED, JERR_UNKNOWN_FORMAT, JERR_UNSUPPORTED_FORMAT, JMSG_LASTADDONCODE
}
 

Macro Definition Documentation

#define JMAKE_ENUM_LIST
#define JMESSAGE (   code,
  string 
)    code ,

Enumeration Type Documentation

Enumerator
JMSG_FIRSTADDONCODE 
JERR_TGA_NOTCOMP 
JERR_BAD_CMAP_FILE 
JERR_TOO_MANY_COLORS 
JERR_UNGETC_FAILED 
JERR_UNKNOWN_FORMAT 
JERR_UNSUPPORTED_FORMAT 
JMSG_LASTADDONCODE 
33  {
34 
35 #define JMESSAGE(code,string) code ,
36 
37 #endif /* JMAKE_ENUM_LIST */
38 
39 JMESSAGE(JMSG_FIRSTADDONCODE=1000, NULL) /* Must be first entry! */
40 
41 #ifdef BMP_SUPPORTED
42 JMESSAGE(JERR_BMP_BADCMAP, "Unsupported BMP colormap format")
43 JMESSAGE(JERR_BMP_BADDEPTH, "Only 8- and 24-bit BMP files are supported")
44 JMESSAGE(JERR_BMP_BADHEADER, "Invalid BMP file: bad header length")
45 JMESSAGE(JERR_BMP_BADPLANES, "Invalid BMP file: biPlanes not equal to 1")
46 JMESSAGE(JERR_BMP_COLORSPACE, "BMP output must be grayscale or RGB")
47 JMESSAGE(JERR_BMP_COMPRESSED, "Sorry, compressed BMPs not yet supported")
48 JMESSAGE(JERR_BMP_NOT, "Not a BMP file - does not start with BM")
49 JMESSAGE(JTRC_BMP, "%ux%u 24-bit BMP image")
50 JMESSAGE(JTRC_BMP_MAPPED, "%ux%u 8-bit colormapped BMP image")
51 JMESSAGE(JTRC_BMP_OS2, "%ux%u 24-bit OS2 BMP image")
52 JMESSAGE(JTRC_BMP_OS2_MAPPED, "%ux%u 8-bit colormapped OS2 BMP image")
53 #endif /* BMP_SUPPORTED */
54 
55 #ifdef GIF_SUPPORTED
56 JMESSAGE(JERR_GIF_BUG, "GIF output got confused")
57 JMESSAGE(JERR_GIF_CODESIZE, "Bogus GIF codesize %d")
58 JMESSAGE(JERR_GIF_COLORSPACE, "GIF output must be grayscale or RGB")
59 JMESSAGE(JERR_GIF_IMAGENOTFOUND, "Too few images in GIF file")
60 JMESSAGE(JERR_GIF_NOT, "Not a GIF file")
61 JMESSAGE(JTRC_GIF, "%ux%ux%d GIF image")
62 JMESSAGE(JTRC_GIF_BADVERSION,
63  "Warning: unexpected GIF version number '%c%c%c'")
64 JMESSAGE(JTRC_GIF_EXTENSION, "Ignoring GIF extension block of type 0x%02x")
65 JMESSAGE(JTRC_GIF_NONSQUARE, "Caution: nonsquare pixels in input")
66 JMESSAGE(JWRN_GIF_BADDATA, "Corrupt data in GIF file")
67 JMESSAGE(JWRN_GIF_CHAR, "Bogus char 0x%02x in GIF file, ignoring")
68 JMESSAGE(JWRN_GIF_ENDCODE, "Premature end of GIF image")
69 JMESSAGE(JWRN_GIF_NOMOREDATA, "Ran out of GIF bits")
70 #endif /* GIF_SUPPORTED */
71 
72 #ifdef PPM_SUPPORTED
73 JMESSAGE(JERR_PPM_COLORSPACE, "PPM output must be grayscale or RGB")
74 JMESSAGE(JERR_PPM_NONNUMERIC, "Nonnumeric data in PPM file")
75 JMESSAGE(JERR_PPM_NOT, "Not a PPM/PGM file")
76 JMESSAGE(JTRC_PGM, "%ux%u PGM image")
77 JMESSAGE(JTRC_PGM_TEXT, "%ux%u text PGM image")
78 JMESSAGE(JTRC_PPM, "%ux%u PPM image")
79 JMESSAGE(JTRC_PPM_TEXT, "%ux%u text PPM image")
80 #endif /* PPM_SUPPORTED */
81 
82 #ifdef RLE_SUPPORTED
83 JMESSAGE(JERR_RLE_BADERROR, "Bogus error code from RLE library")
84 JMESSAGE(JERR_RLE_COLORSPACE, "RLE output must be grayscale or RGB")
85 JMESSAGE(JERR_RLE_DIMENSIONS, "Image dimensions (%ux%u) too large for RLE")
86 JMESSAGE(JERR_RLE_EMPTY, "Empty RLE file")
87 JMESSAGE(JERR_RLE_EOF, "Premature EOF in RLE header")
88 JMESSAGE(JERR_RLE_MEM, "Insufficient memory for RLE header")
89 JMESSAGE(JERR_RLE_NOT, "Not an RLE file")
90 JMESSAGE(JERR_RLE_TOOMANYCHANNELS, "Cannot handle %d output channels for RLE")
91 JMESSAGE(JERR_RLE_UNSUPPORTED, "Cannot handle this RLE setup")
92 JMESSAGE(JTRC_RLE, "%ux%u full-color RLE file")
93 JMESSAGE(JTRC_RLE_FULLMAP, "%ux%u full-color RLE file with map of length %d")
94 JMESSAGE(JTRC_RLE_GRAY, "%ux%u grayscale RLE file")
95 JMESSAGE(JTRC_RLE_MAPGRAY, "%ux%u grayscale RLE file with map of length %d")
96 JMESSAGE(JTRC_RLE_MAPPED, "%ux%u colormapped RLE file with map of length %d")
97 #endif /* RLE_SUPPORTED */
98 
99 #ifdef TARGA_SUPPORTED
100 JMESSAGE(JERR_TGA_BADCMAP, "Unsupported Targa colormap format")
101 JMESSAGE(JERR_TGA_BADPARMS, "Invalid or unsupported Targa file")
102 JMESSAGE(JERR_TGA_COLORSPACE, "Targa output must be grayscale or RGB")
103 JMESSAGE(JTRC_TGA, "%ux%u RGB Targa image")
104 JMESSAGE(JTRC_TGA_GRAY, "%ux%u grayscale Targa image")
105 JMESSAGE(JTRC_TGA_MAPPED, "%ux%u colormapped Targa image")
106 #else
107 JMESSAGE(JERR_TGA_NOTCOMP, "Targa support was not compiled")
108 #endif /* TARGA_SUPPORTED */
109 
111  "Color map file is invalid or of unsupported format")
113  "Output file format cannot handle %d colormap entries")
115 #ifdef TARGA_SUPPORTED
117  "Unrecognized input file format --- perhaps you need -targa")
118 #else
119 JMESSAGE(JERR_UNKNOWN_FORMAT, "Unrecognized input file format")
120 #endif
121 JMESSAGE(JERR_UNSUPPORTED_FORMAT, "Unsupported output file format")
122 
123 #ifdef JMAKE_ENUM_LIST
124 
Definition: cderror.h:107
uint8_t image[110000000]
Definition: gige_snap.cpp:38
Definition: cderror.h:121
Definition: cderror.h:125
string output
Definition: agent-2-0.cpp:56
Definition: cderror.h:113
void setup()
Definition: rw_test.cpp:120
Definition: cderror.h:119
#define JMESSAGE(code, string)
Definition: cderror.h:35
Definition: cderror.h:111
x
Definition: inputfile.py:6
gige_handle * handle
Definition: kpc9612p_recv.cpp:33
Definition: eci2kep_test.cpp:33
png_uint_32 length
Definition: png.c:2173
Definition: cderror.h:39
bool failed
Definition: json11.cpp:363
Definition: cderror.h:114
ADDON_MESSAGE_CODE
Definition: cderror.h:33