{"id":138,"date":"2007-05-12T16:03:21","date_gmt":"2007-05-12T14:03:21","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/jpeg-errorcodes-etc\/"},"modified":"2007-05-12T16:03:24","modified_gmt":"2007-05-12T14:03:24","slug":"jpeg-errorcodes-etc","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/jpeg-errorcodes-etc\/","title":{"rendered":"JPEG Errorcodes etc."},"content":{"rendered":"<p>PEG JPG Errorcodes Fehlermeldungen Abfangen Trapping<\/p>\n<p><b>JPEG-Errorcodes:<\/b><br \/>\n#36 : m:=m+&#8217;Output file write error &#8212; out of disk space?&#8217;;<br \/>\n#51 = JERR_NO_QUANT_TABLE: Quantization table 0x%02x was not defined<br \/>\n#52 : File is not a JPEG-File (for example if you try to read a GIF as a JPG)<br \/>\n#53 = JERR_OUT_OF_MEMORY: Insufficient memory (case %d)<br \/>\n#60 : JPEG file is incomplete<br \/>\n#67 : JPEG file is incomplete (like #60 &#8211; don&#8217;t know where the difference)<\/p>\n<p>\u00a0How to trap a JPEG-Error?<\/p>\n<p>[code lang=&#8221;delphi&#8221;]Image1.picture.loadfromfile(FileName);<br \/>\nif Image1.picture.graphic is TJpegImage then begin<br \/>\n    try<br \/>\n      TJPEGImage(Image1.picture.graphic).dibneeded;<br \/>\n    except<br \/>\n      on E:Exception do<br \/>\n        if (E.message=&#8217;JPEG error #67&#8242;) then begin<br \/>\n            showmessage(&#8216;Incomplete JPEG&#8217;)<br \/>\n        end;<br \/>\n    end;<br \/>\nend;<br \/>\n[\/code]<\/p>\n<p>hier noch eine komplette Liste von Fehlermeldungen die ich im Web gefunden habe:<br \/>\n<!--more--><br \/>\n[code lang=&#8221;delphi&#8221;]  0  cstrJMSG_NOMESSAGE               &#8216;Bogus message code %d&#8217;; (* Must be first entry! *)<br \/>\n  1  cstrJERR_ARITH_NOTIMPL           &#8216;Sorry, there are legal restrictions on arithmetic coding&#8217;<br \/>\n  2  cstrJERR_BAD_ALIGN_TYPE          &#8216;ALIGN_TYPE is wrong, please fix&#8217;<br \/>\n  3  cstrJERR_BAD_ALLOC_CHUNK         &#8216;MAX_ALLOC_CHUNK is wrong, please fix&#8217;<br \/>\n  4  cstrJERR_BAD_BUFFER_MODE         &#8216;Bogus buffer control mode&#8217;<br \/>\n  5  cstrJERR_BAD_COMPONENT_ID        &#8216;Invalid component ID %d in SOS&#8217;<br \/>\n  6  cstrJERR_BAD_DCTSIZE             &#8216;IDCT output block size %d not supported&#8217;<br \/>\n  7  cstrJERR_BAD_IN_COLORSPACE       &#8216;Bogus input colorspace&#8217;<br \/>\n  8  cstrJERR_BAD_J_COLORSPACE        &#8216;Bogus JPEG colorspace&#8217;<br \/>\n  9  cstrJERR_BAD_LENGTH              &#8216;Bogus marker length&#8217;<br \/>\n 10  cstrJERR_BAD_LIB_VERSION         &#8216;Wrong JPEG library version: library is %d, caller expects %d&#8217;<br \/>\n 11  cstrJERR_BAD_MCU_SIZE            &#8216;Sampling factors too large for interleaved scan&#8217;<br \/>\n 12  cstrJERR_BAD_POOL_ID             &#8216;Invalid memory pool code %d&#8217;<br \/>\n 13  cstrJERR_BAD_PRECISION           &#8216;Unsupported JPEG data precision %d&#8217;<br \/>\n 14  cstrJERR_BAD_PROGRESSION         &#8216;Invalid progressive parameters Ss=%d Se=%d Ah=%d Al=%d&#8217;<br \/>\n 15  cstrJERR_BAD_PROG_SCRIPT         &#8216;Invalid progressive parameters at scan script entry %d&#8217;<br \/>\n 16  cstrJERR_BAD_SAMPLING            &#8216;Bogus sampling factors&#8217;<br \/>\n 17  cstrJERR_BAD_SCAN_SCRIPT         &#8216;Invalid scan script at entry %d&#8217;<br \/>\n 18  cstrJERR_BAD_STATE               &#8216;Improper call to JPEG library in state %d&#8217;<br \/>\n 19  cstrJERR_BAD_STRUCT_SIZE         &#8216;JPEG parameter struct mismatch: library thinks size is %u, caller expects %u&#8217;<br \/>\n 20  cstrJERR_BAD_VIRTUAL_ACCESS      &#8216;Bogus virtual array access&#8217;<br \/>\n 21  cstrJERR_BUFFER_SIZE             &#8216;Buffer passed to JPEG library is too small&#8217;<br \/>\n 22  cstrJERR_CANT_SUSPEND            &#8216;Suspension not allowed here&#8217;<br \/>\n 23  cstrJERR_CCIR601_NOTIMPL         &#8216;CCIR601 sampling not implemented yet&#8217;<br \/>\n 24  cstrJERR_COMPONENT_COUNT         &#8216;Too many color components: %d, max %d&#8217;<br \/>\n 25  cstrJERR_CONVERSION_NOTIMPL      &#8216;Unsupported color conversion request&#8217;<br \/>\n 26  cstrJERR_DAC_INDEX               &#8216;Bogus DAC index %d&#8217;<br \/>\n 27  cstrJERR_DAC_VALUE               &#8216;Bogus DAC value 0x%x&#8217;<br \/>\n 28  cstrJERR_DHT_COUNTS              &#8216;Bogus DHT counts&#8217;<br \/>\n 29  cstrJERR_DHT_INDEX               &#8216;Bogus DHT index %d&#8217;<br \/>\n 30  cstrJERR_DQT_INDEX               &#8216;Bogus DQT index %d&#8217;<br \/>\n 31  cstrJERR_EMPTY_IMAGE             &#8216;Empty JPEG image (DNL not supported)&#8217;<br \/>\n 32  cstrJERR_EMS_READ                &#8216;Read from EMS failed&#8217;<br \/>\n 33  cstrJERR_EMS_WRITE               &#8216;Write to EMS failed&#8217;<br \/>\n 34  cstrJERR_EOI_EXPECTED            &#8216;Didn&#8221;t expect more than one scan&#8217;<br \/>\n 35  cstrJERR_FILE_READ               &#8216;Input file read error&#8217;<br \/>\n 36  cstrJERR_FILE_WRITE              &#8216;Output file write error &#8212; out of disk space?&#8217;<br \/>\n 37  cstrJERR_FRACT_SAMPLE_NOTIMPL    &#8216;Fractional sampling not implemented yet&#8217;<br \/>\n 38  cstrJERR_HUFF_CLEN_OVERFLOW      &#8216;Huffman code size table overflow&#8217;<br \/>\n 39  cstrJERR_HUFF_MISSING_CODE       &#8216;Missing Huffman code table entry&#8217;<br \/>\n 40  cstrJERR_IMAGE_TOO_BIG           &#8216;Maximum supported image dimension is %u pixels&#8217;<br \/>\n 41  cstrJERR_INPUT_EMPTY             &#8216;Empty input file&#8217;<br \/>\n 42  cstrJERR_INPUT_EOF               &#8216;Premature end of input file&#8217;<br \/>\n 43  cstrJERR_MISMATCHED_QUANT_TABLE  &#8216;Cannot transcode due to multiple use of quantization table %d&#8217;<br \/>\n 44  cstrJERR_MISSING_DATA            &#8216;Scan script does not transmit all data&#8217;<br \/>\n 45  cstrJERR_MODE_CHANGE             &#8216;Invalid color quantization mode change&#8217;<br \/>\n 46  cstrJERR_NOTIMPL                 &#8216;Not implemented yet&#8217;<br \/>\n 47  cstrJERR_NOT_COMPILED            &#8216;Requested feature was omitted at compile time&#8217;<br \/>\n 48  cstrJERR_NO_BACKING_STORE        &#8216;Backing store not supported&#8217;<br \/>\n 49  cstrJERR_NO_HUFF_TABLE           &#8216;Huffman table 0x%02x was not defined&#8217;<br \/>\n 50  cstrJERR_NO_IMAGE                &#8216;JPEG datastream contains no image&#8217;<br \/>\n 51  cstrJERR_NO_QUANT_TABLE          &#8216;Quantization table 0x%02x was not defined&#8217;<br \/>\n 52  cstrJERR_NO_SOI                  &#8216;Not a JPEG file: starts with 0x%02x 0x%02x&#8217;<br \/>\n 53  cstrJERR_OUT_OF_MEMORY           &#8216;Insufficient memory (case %d)&#8217;<br \/>\n 54  cstrJERR_QUANT_COMPONENTS        &#8216;Cannot quantize more than %d color components&#8217;<br \/>\n 55  cstrJERR_QUANT_FEW_COLORS        &#8216;Cannot quantize to fewer than %d colors&#8217;<br \/>\n 56  cstrJERR_QUANT_MANY_COLORS       &#8216;Cannot quantize to more than %d colors&#8217;<br \/>\n 57  cstrJERR_SOF_DUPLICATE           &#8216;Invalid JPEG file structure: two SOF markers&#8217;<br \/>\n 58  cstrJERR_SOF_NO_SOS              &#8216;Invalid JPEG file structure: missing SOS marker&#8217;<br \/>\n 59  cstrJERR_SOF_UNSUPPORTED         &#8216;Unsupported JPEG process: SOF type 0x%02x&#8217;<br \/>\n 60  cstrJERR_SOI_DUPLICATE           &#8216;Invalid JPEG file structure: two SOI markers&#8217;<br \/>\n 61  cstrJERR_SOS_NO_SOF              &#8216;Invalid JPEG file structure: SOS before SOF&#8217;<br \/>\n 62  cstrJERR_TFILE_CREATE            &#8216;Failed to create temporary file %s&#8217;<br \/>\n 63  cstrJERR_TFILE_READ              &#8216;Read failed on temporary file&#8217;<br \/>\n 64  cstrJERR_TFILE_SEEK              &#8216;Seek failed on temporary file&#8217;<br \/>\n 65  cstrJERR_TFILE_WRITE             &#8216;Write failed on temporary file &#8212; out of disk space?&#8217;<br \/>\n 66  cstrJERR_TOO_LITTLE_DATA         &#8216;Application transferred too few scanlines&#8217;<br \/>\n 67  cstrJERR_UNKNOWN_MARKER          &#8216;Unsupported marker type 0x%02x&#8217;<br \/>\n 68  cstrJERR_VIRTUAL_BUG             &#8216;Virtual array controller messed up&#8217;<br \/>\n 69  cstrJERR_WIDTH_OVERFLOW          &#8216;Image too wide for this implementation&#8217;<br \/>\n 70  cstrJERR_XMS_READ                &#8216;Read from XMS failed&#8217;<br \/>\n 71  cstrJERR_XMS_WRITE               &#8216;Write to XMS failed&#8217;<br \/>\n 72  cstrJMSG_COPYRIGHT               cstrJCOPYRIGHT<br \/>\n 73  cstrJMSG_VERSION                 cstrJVERSION<br \/>\n 74  cstrJTRC_16BIT_TABLES            &#8216;Caution: quantization tables are too coarse for baseline JPEG&#8217;<br \/>\n 75  cstrJTRC_ADOBE                   &#8216;Adobe APP14 marker: version %d, flags 0x%04x 0x%04x, transform %d&#8217;<br \/>\n 76  cstrJTRC_APP0                    &#8216;Unknown APP0 marker (not JFIF), length %u&#8217;<br \/>\n 77  cstrJTRC_APP14                   &#8216;Unknown APP14 marker (not Adobe), length %u&#8217;<br \/>\n 78  cstrJTRC_DAC                     &#8216;Define Arithmetic Table 0x%02x: 0x%02x&#8217;<br \/>\n 79  cstrJTRC_DHT                     &#8216;Define Huffman Table 0x%02x&#8217;<br \/>\n 80  cstrJTRC_DQT                     &#8216;Define Quantization Table %d  precision %d&#8217;<br \/>\n 81  cstrJTRC_DRI                     &#8216;Define Restart Interval %u&#8217;<br \/>\n 82  cstrJTRC_EMS_CLOSE               &#8216;Freed EMS handle %u&#8217;<br \/>\n 83  cstrJTRC_EMS_OPEN                &#8216;Obtained EMS handle %u&#8217;<br \/>\n 84  cstrJTRC_EOI                     &#8216;End Of Image&#8217;<br \/>\n 85  cstrJTRC_HUFFBITS                &#8216;        %3d %3d %3d %3d %3d %3d %3d %3d&#8217;<br \/>\n 86  cstrJTRC_JFIF                    &#8216;JFIF APP0 marker, density %dx%d  %d&#8217;<br \/>\n 87  cstrJTRC_JFIF_BADTHUMBNAILSIZE   &#8216;Warning: thumbnail image size does not match data length %u&#8217;<br \/>\n 88  cstrJTRC_JFIF_MINOR              &#8216;Unknown JFIF minor revision number %d.%02d&#8217;<br \/>\n 89  cstrJTRC_JFIF_THUMBNAIL          &#8216;    with %d x %d thumbnail image&#8217;<br \/>\n 90  cstrJTRC_MISC_MARKER             &#8216;Skipping marker 0x%02x, length %u&#8217;<br \/>\n 91  cstrJTRC_PARMLESS_MARKER         &#8216;Unexpected marker 0x%02x&#8217;<br \/>\n 92  cstrJTRC_QUANTVALS               &#8216;        %4u %4u %4u %4u %4u %4u %4u %4u&#8217;<br \/>\n 93  cstrJTRC_QUANT_3_NCOLORS         &#8216;Quantizing to %d = %d*%d*%d colors&#8217;<br \/>\n 94  cstrJTRC_QUANT_NCOLORS           &#8216;Quantizing to %d colors&#8217;<br \/>\n 95  cstrJTRC_QUANT_SELECTED          &#8216;Selected %d colors for quantization&#8217;<br \/>\n 96  cstrJTRC_RECOVERY_ACTION         &#8216;At marker 0x%02x, recovery action %d&#8217;<br \/>\n 97  cstrJTRC_RST                     &#8216;RST%d&#8217;<br \/>\n 98  cstrJTRC_SMOOTH_NOTIMPL          &#8216;Smoothing not supported with nonstandard sampling ratios&#8217;<br \/>\n 99  cstrJTRC_SOF                     &#8216;Start Of Frame 0x%02x: width=%u, height=%u, components=%d&#8217;<br \/>\n100  cstrJTRC_SOF_COMPONENT           &#8216;    Component %d: %dhx%dv q=%d&#8217;<br \/>\n101  cstrJTRC_SOI                     &#8216;Start of Image&#8217;<br \/>\n102  cstrJTRC_SOS                     &#8216;Start Of Scan: %d components&#8217;<br \/>\n103  cstrJTRC_SOS_COMPONENT           &#8216;    Component %d: dc=%d ac=%d&#8217;<br \/>\n104  cstrJTRC_SOS_PARAMS              &#8216;  Ss=%d, Se=%d, Ah=%d, Al=%d&#8217;<br \/>\n105  cstrJTRC_TFILE_CLOSE             &#8216;Closed temporary file %s&#8217;<br \/>\n106  cstrJTRC_TFILE_OPEN              &#8216;Opened temporary file %s&#8217;<br \/>\n107  cstrJTRC_UNKNOWN_IDS             &#8216;Unrecognized component IDs %d %d %d, assuming YCbCr&#8217;<br \/>\n108  cstrJTRC_XMS_CLOSE               &#8216;Freed XMS handle %u&#8217;<br \/>\n109  cstrJTRC_XMS_OPEN                &#8216;Obtained XMS handle %u&#8217;<br \/>\n110  cstrJWRN_ADOBE_XFORM             &#8216;Unknown Adobe color transform code %d&#8217;<br \/>\n111  cstrJWRN_BOGUS_PROGRESSION       &#8216;Inconsistent progression sequence for component %d coefficient %d&#8217;<br \/>\n112  cstrJWRN_EXTRANEOUS_DATA         &#8216;Corrupt JPEG data: %u extraneous bytes before marker 0x%02x&#8217;<br \/>\n113  cstrJWRN_HIT_MARKER              &#8216;Corrupt JPEG data: premature end of data segment&#8217;<br \/>\n114  cstrJWRN_HUFF_BAD_CODE           &#8216;Corrupt JPEG data: bad Huffman code&#8217;<br \/>\n115  cstrJWRN_JFIF_MAJOR              &#8216;Warning: unknown JFIF revision number %d.%02d&#8217;<br \/>\n116  cstrJWRN_JPEG_EOF                &#8216;Premature end of JPEG file&#8217;<br \/>\n117  cstrJWRN_MUST_RESYNC             &#8216;Corrupt JPEG data: found marker 0x%02x instead of RST%d&#8217;<br \/>\n118  cstrJWRN_NOT_SEQUENTIAL          &#8216;Invalid SOS parameters for sequential JPEG&#8217;<br \/>\n119  cstrJWRN_TOO_MUCH_DATA           &#8216;Application transferred too many scanlines&#8217;<br \/>\n[\/code]<\/p>\n<p>Source:  http:\/\/community.borland.com\/article\/0,1410,20433,00.html<\/p>\n<p>[tags]Delphi, Graphic[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PEG JPG Errorcodes Fehlermeldungen Abfangen Trapping JPEG-Errorcodes: #36 : m:=m+&#8217;Output file write error &#8212; out of disk space?&#8217;; #51 = JERR_NO_QUANT_TABLE: Quantization table&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,101],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-2e","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/138"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}