Defines | Functions | Variables

jerror.h File Reference

This graph shows which files directly or indirectly include this file:

Defines

#define JMESSAGE(code, string)
#define JMAKE_ENUM_LIST
#define JERROR_H
#define ERREXIT(cinfo, code)
#define ERREXIT1(cinfo, code, p1)
#define ERREXIT2(cinfo, code, p1, p2)
#define ERREXIT3(cinfo, code, p1, p2, p3)
#define ERREXIT4(cinfo, code, p1, p2, p3, p4)
#define ERREXITS(cinfo, code, str)
#define MAKESTMT(stuff)   do { stuff } while (0)
#define WARNMS(cinfo, code)
#define WARNMS1(cinfo, code, p1)
#define WARNMS2(cinfo, code, p1, p2)
#define TRACEMS(cinfo, lvl, code)
#define TRACEMS1(cinfo, lvl, code, p1)
#define TRACEMS2(cinfo, lvl, code, p1, p2)
#define TRACEMS3(cinfo, lvl, code, p1, p2, p3)
#define TRACEMS4(cinfo, lvl, code, p1, p2, p3, p4)
#define TRACEMS5(cinfo, lvl, code, p1, p2, p3, p4, p5)
#define TRACEMS8(cinfo, lvl, code, p1, p2, p3, p4, p5, p6, p7, p8)
#define TRACEMSS(cinfo, lvl, code, str)

Functions

 JMESSAGE (JMSG_NOMESSAGE,"Bogus message code %d") JMESSAGE(JERR_ARITH_NOTIMPL
there are legal restrictions
on arithmetic coding 
JMESSAGE (JERR_BAD_LIB_VERSION,"Wrong JPEG library version: library is %d, caller expects %d") JMESSAGE(JERR_BAD_PROGRESSION
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u 
JMESSAGE (JERR_MISMATCHED_QUANT_TABLE,"Cannot transcode due to multiple use of quantization table %d") JMESSAGE(JERR_QUANT_COMPONENTS
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components 
JMESSAGE (JERR_TFILE_WRITE,"Write failed on temporary file --- out of disk space?") JMESSAGE(JTRC_16BIT_TABLES
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components Adobe
APP14 transform d 
JMESSAGE (JTRC_JFIF_BADTHUMBNAILSIZE,"Warning: thumbnail image size does not match data length %u") JMESSAGE(JTRC_JFIF_EXTENSION
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components Adobe
APP14 transform d JFIF
extension length u 
JMESSAGE (JTRC_SMOOTH_NOTIMPL,"Smoothing not supported with nonstandard sampling ratios") JMESSAGE(JTRC_THUMB_JPEG
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components Adobe
APP14 transform d JFIF
extension length u JFIF
extension length u 
JMESSAGE (JTRC_THUMB_PALETTE,"JFIF extension marker: palette thumbnail image, length %u") JMESSAGE(JTRC_THUMB_RGB
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components Adobe
APP14 transform d JFIF
extension length u JFIF
extension length u JFIF
extension length u 
JMESSAGE (JTRC_UNKNOWN_IDS,"Unrecognized component IDs %d %d %d, assuming YCbCr") JMESSAGE(JWRN_BOGUS_PROGRESSION
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components Adobe
APP14 transform d JFIF
extension length u JFIF
extension length u JFIF
extension length u
Inconsistent progression
sequence for component d
coefficient d 
JMESSAGE (JWRN_EXTRANEOUS_DATA,"Corrupt JPEG data: %u extraneous bytes before marker 0x%02x") JMESSAGE(JWRN_MUST_RESYNC

Variables

 Sorry
there are legal restrictions
on arithmetic coding Invalid
progressive parameters 
Ss
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components 
Caution
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components Adobe
APP14 
marker
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components Adobe
APP14 
flags
there are legal restrictions
on arithmetic coding Invalid
progressive parameters caller
expects u Cannot quantize more
than d color components Adobe
APP14 transform d JFIF
extension length u JFIF
extension length u JFIF
extension length u
Inconsistent progression
sequence for component d
coefficient d Corrupt JPEG 
data

Define Documentation

#define ERREXIT (   cinfo,
  code 
)
Value:
((cinfo)->err->msg_code = (code), \
   (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
#define ERREXIT1 (   cinfo,
  code,
  p1 
)
Value:
((cinfo)->err->msg_code = (code), \
   (cinfo)->err->msg_parm.i[0] = (p1), \
   (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
#define ERREXIT2 (   cinfo,
  code,
  p1,
  p2 
)
Value:
((cinfo)->err->msg_code = (code), \
   (cinfo)->err->msg_parm.i[0] = (p1), \
   (cinfo)->err->msg_parm.i[1] = (p2), \
   (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
#define ERREXIT3 (   cinfo,
  code,
  p1,
  p2,
  p3 
)
Value:
((cinfo)->err->msg_code = (code), \
   (cinfo)->err->msg_parm.i[0] = (p1), \
   (cinfo)->err->msg_parm.i[1] = (p2), \
   (cinfo)->err->msg_parm.i[2] = (p3), \
   (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
#define ERREXIT4 (   cinfo,
  code,
  p1,
  p2,
  p3,
  p4 
)
Value:
((cinfo)->err->msg_code = (code), \
   (cinfo)->err->msg_parm.i[0] = (p1), \
   (cinfo)->err->msg_parm.i[1] = (p2), \
   (cinfo)->err->msg_parm.i[2] = (p3), \
   (cinfo)->err->msg_parm.i[3] = (p4), \
   (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
#define ERREXITS (   cinfo,
  code,
  str 
)
Value:
((cinfo)->err->msg_code = (code), \
   strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
   (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
#define JERROR_H
#define JMAKE_ENUM_LIST
#define JMESSAGE (   code,
  string 
)
#define MAKESTMT (   stuff  )     do { stuff } while (0)
#define TRACEMS (   cinfo,
  lvl,
  code 
)
Value:
((cinfo)->err->msg_code = (code), \
   (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)))
#define TRACEMS1 (   cinfo,
  lvl,
  code,
  p1 
)
Value:
((cinfo)->err->msg_code = (code), \
   (cinfo)->err->msg_parm.i[0] = (p1), \
   (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)))
#define TRACEMS2 (   cinfo,
  lvl,
  code,
  p1,
  p2 
)
Value:
((cinfo)->err->msg_code = (code), \
   (cinfo)->err->msg_parm.i[0] = (p1), \
   (cinfo)->err->msg_parm.i[1] = (p2), \
   (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)))
#define TRACEMS3 (   cinfo,
  lvl,
  code,
  p1,
  p2,
  p3 
)
Value:
MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
           _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); \
           (cinfo)->err->msg_code = (code); \
           (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
#define TRACEMS4 (   cinfo,
  lvl,
  code,
  p1,
  p2,
  p3,
  p4 
)
Value:
MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
           _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
           (cinfo)->err->msg_code = (code); \
           (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
#define TRACEMS5 (   cinfo,
  lvl,
  code,
  p1,
  p2,
  p3,
  p4,
  p5 
)
Value:
MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
           _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
           _mp[4] = (p5); \
           (cinfo)->err->msg_code = (code); \
           (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
#define TRACEMS8 (   cinfo,
  lvl,
  code,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  p7,
  p8 
)
Value:
MAKESTMT(int * _mp = (cinfo)->err->msg_parm.i; \
           _mp[0] = (p1); _mp[1] = (p2); _mp[2] = (p3); _mp[3] = (p4); \
           _mp[4] = (p5); _mp[5] = (p6); _mp[6] = (p7); _mp[7] = (p8); \
           (cinfo)->err->msg_code = (code); \
           (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)); )
#define TRACEMSS (   cinfo,
  lvl,
  code,
  str 
)
Value:
((cinfo)->err->msg_code = (code), \
   strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
   (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), (lvl)))
#define WARNMS (   cinfo,
  code 
)
Value:
((cinfo)->err->msg_code = (code), \
   (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1))
#define WARNMS1 (   cinfo,
  code,
  p1 
)
Value:
((cinfo)->err->msg_code = (code), \
   (cinfo)->err->msg_parm.i[0] = (p1), \
   (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1))
#define WARNMS2 (   cinfo,
  code,
  p1,
  p2 
)
Value:
((cinfo)->err->msg_code = (code), \
   (cinfo)->err->msg_parm.i[0] = (p1), \
   (cinfo)->err->msg_parm.i[1] = (p2), \
   (*(cinfo)->err->emit_message) ((j_common_ptr) (cinfo), -1))

Function Documentation

JMESSAGE ( JMSG_NOMESSAGE  ,
"Bogus message code %d  
)
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components Adobe APP14 transform d JFIF extension length u JFIF extension length u JFIF extension length u Inconsistent progression sequence for component d coefficient d JMESSAGE ( JWRN_EXTRANEOUS_DATA  ,
"Corrupt JPEG data: %u extraneous bytes before marker 0x%02x"   
)
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components Adobe APP14 transform d JFIF extension length u JFIF extension length u JFIF extension length u JMESSAGE ( JTRC_UNKNOWN_IDS  ,
"Unrecognized component IDs %d %d d,
assuming YCbCr"   
)
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components Adobe APP14 transform d JFIF extension length u JFIF extension length u JMESSAGE ( JTRC_THUMB_PALETTE  ,
"JFIF extension marker: palette thumbnail   image,
length%u"   
)
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components Adobe APP14 transform d JFIF extension length u JMESSAGE ( JTRC_SMOOTH_NOTIMPL  ,
"Smoothing not supported with nonstandard sampling ratios"   
)
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components Adobe APP14 transform d JMESSAGE ( JTRC_JFIF_BADTHUMBNAILSIZE  ,
"Warning: thumbnail image size does not match data length %u"   
)
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components JMESSAGE ( JERR_TFILE_WRITE  ,
"Write failed on temporary file --- out of disk space?"   
)
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u JMESSAGE ( JERR_MISMATCHED_QUANT_TABLE  ,
"Cannot transcode due to multiple use of quantization table %d  
)
there are legal restrictions on arithmetic coding JMESSAGE ( JERR_BAD_LIB_VERSION  ,
"Wrong JPEG library version: library is %  d,
caller expects%d  
)

Variable Documentation

there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components Caution
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components Adobe APP14 flags
int marker
there are legal restrictions on arithmetic coding Invalid progressive parameters Ss
Initial value:
")



JMESSAGE(JERR_BAD_STRUCT_SIZE,
         "JPEG parameter struct mismatch: library thinks size is %u