16 #ifdef USE_WINDOWS_MESSAGEBOX 21 #define EXIT_FAILURE 1 33 #ifdef NEED_SHORT_EXTERNAL_NAMES 34 #define jpeg_std_message_table jMsgTable 37 #define JMESSAGE(code,string) string , 62 (*cinfo->err->output_message) (cinfo);
67 fprintf(stderr,
"[jpeg::error_exit] critical error\n");
93 (*cinfo->err->format_message) (cinfo,
buffer);
95 #ifdef USE_WINDOWS_MESSAGEBOX 97 MessageBox(GetActiveWindow(),
buffer,
"JPEG Library Error",
98 MB_OK | MB_ICONERROR);
128 (*err->output_message) (cinfo);
134 (*err->output_message) (cinfo);
151 const char * msgtext = NULL;
166 if (msgtext == NULL) {
174 while ((ch = *msgptr++) !=
'\0') {
176 if (*msgptr ==
's') isstring =
TRUE;
204 cinfo->err->num_warnings = 0;
206 cinfo->err->msg_code = 0;
229 err->trace_level = 0;
230 err->num_warnings = 0;
235 err->last_jpeg_message = (int) JMSG_LASTMSGCODE - 1;
237 err->addon_message_table = NULL;
238 err->first_addon_message = 0;
239 err->last_addon_message = 0;
reset_error_mgr(j_common_ptr cinfo)
output_message(j_common_ptr cinfo)
char s[JMSG_STR_PARM_MAX]
format_message(j_common_ptr cinfo, char *buffer)
jpeg_destroy(j_common_ptr cinfo)
const char *const * addon_message_table
const char *const jpeg_std_message_table[]
int BASE_IMPEXP fprintf(FILE *fil, const char *format,...) MRPT_NO_THROWS MRPT_printf_format_check(2
An OS-independent version of fprintf.
union jpeg_error_mgr::@79 msg_parm
error_exit(j_common_ptr cinfo)
const char *const * jpeg_message_table
jpeg_std_error(struct jpeg_error_mgr *err)
int BASE_IMPEXP sprintf(char *buf, size_t bufSize, const char *format,...) MRPT_NO_THROWS MRPT_printf_format_check(3
An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compiler...
emit_message(j_common_ptr cinfo, int msg_level)