Lines Matching refs:err
73 (*cinfo->err->output_message) (cinfo); in error_exit()
103 (*cinfo->err->format_message) (cinfo, buffer); in output_message()
130 struct jpeg_error_mgr * err = cinfo->err; in emit_message() local
137 if (err->num_warnings == 0 || err->trace_level >= 3) in emit_message()
138 (*err->output_message) (cinfo); in emit_message()
140 err->num_warnings++; in emit_message()
143 if (err->trace_level >= msg_level) in emit_message()
144 (*err->output_message) (cinfo); in emit_message()
159 struct jpeg_error_mgr * err = cinfo->err; in format_message() local
160 int msg_code = err->msg_code; in format_message()
167 if (msg_code > 0 && msg_code <= err->last_jpeg_message) { in format_message()
168 msgtext = err->jpeg_message_table[msg_code]; in format_message()
169 } else if (err->addon_message_table != NULL && in format_message()
170 msg_code >= err->first_addon_message && in format_message()
171 msg_code <= err->last_addon_message) { in format_message()
172 msgtext = err->addon_message_table[msg_code - err->first_addon_message]; in format_message()
177 err->msg_parm.i[0] = msg_code; in format_message()
178 msgtext = err->jpeg_message_table[0]; in format_message()
193 sprintf(buffer, msgtext, err->msg_parm.s); in format_message()
196 err->msg_parm.i[0], err->msg_parm.i[1], in format_message()
197 err->msg_parm.i[2], err->msg_parm.i[3], in format_message()
198 err->msg_parm.i[4], err->msg_parm.i[5], in format_message()
199 err->msg_parm.i[6], err->msg_parm.i[7]); in format_message()
214 cinfo->err->num_warnings = 0; in reset_error_mgr()
216 cinfo->err->msg_code = 0; /* may be useful as a flag for "no error" */ in reset_error_mgr()
231 jpeg_std_error (struct jpeg_error_mgr * err) in jpeg_std_error() argument
233 err->error_exit = error_exit; in jpeg_std_error()
234 err->emit_message = emit_message; in jpeg_std_error()
235 err->output_message = output_message; in jpeg_std_error()
236 err->format_message = format_message; in jpeg_std_error()
237 err->reset_error_mgr = reset_error_mgr; in jpeg_std_error()
239 err->trace_level = 0; /* default = no tracing */ in jpeg_std_error()
240 err->num_warnings = 0; /* no warnings emitted yet */ in jpeg_std_error()
241 err->msg_code = 0; /* may be useful as a flag for "no error" */ in jpeg_std_error()
244 err->jpeg_message_table = jpeg_std_message_table; in jpeg_std_error()
245 err->last_jpeg_message = (int) JMSG_LASTMSGCODE - 1; in jpeg_std_error()
247 err->addon_message_table = NULL; in jpeg_std_error()
248 err->first_addon_message = 0; /* for safety */ in jpeg_std_error()
249 err->last_addon_message = 0; in jpeg_std_error()
251 return err; in jpeg_std_error()