' jpegd structure offsets: %=long &=word
LET inpointer_&=0             !% JPEG image pointer
LET outpointer_&=4            !% Output buffer/filename pointer (see OutFlag)
LET insize_&=8                !% JPEG image size (bytes)
LET outsize_&=12              !% Output image size (bytes)
LET incomponents_&=16         !& JPEG image components number (1->4)
LET outcomponents_&=18        !& Output components number (1->4)
LET outpixelsize_&=20         !& Output pixel size (1->4)
LET outflag_&=22              !& 0 (RAM output) / -1 (Disk output)
LET xloopcounter_&=24         !& Number of MCUs per row
LET yloopcounter_&=26         !& Number of MCUs per column
LET createoutputptr_&=28      !% Pointer to user routine / 0
LET writeoutputptr_&=32       !% Pointer to user routine / 0
LET closeoutputptr_&=36       !% Pointer to user routine / 0
LET sigtermoutputptr_&=40     !% Pointer to user routine / 0
LET comp1gammaptr_&=44        !% Component 1 gamma table  / 0
LET comp2gammaptr_&=48        !% Component 2 gamma table  / 0
LET comp3gammaptr_&=52        !% Component 3 gamma table  / 0
LET comp4gammaptr_&=56        !% Component 4 gamma table  / 0
LET userroutineptr_&=60       !% Pointer to user routine (called during decompression) / 0
LET outtmppointer_&=64        !% Current OutPointer / Temporary disk buffer pointer (see OutFlag)
LET mcuscounter_&=68          !& Number of MCUs not decoded
LET outtmpheight_&=70         !& Number of lines in OutTmpPointer
LET userlong1_&=72            !% Free, available for user
LET userlong2_&=76            !% Free, available for user
LET outhandle_&=80            !& 0 / Output file handle (see OutFlag)
LET mfdbaddress_&=82          !%
LET mfdbpixelwidth_&=86       !&
LET mfdbpixelheight_&=88      !&
LET mfdbwordsize_&=90         !&
LET mfdbformatflag_&=92       !&
LET mfdbbitplanes_&=94        !&
LET mfdbreserved1_&=96        !&
LET mfdbreserved2_&=98        !&
LET mfdbreserved3_&=100       !&
'
' jpegd error codes (from view.i):
LET noerror_&=0               !File correctly uncompressed
LET unknownformat_&=1         !File is not JFIF (Error)
LET invalidmarker_&=2         !Reserved CCITT Marker Found (Error)
LET sof1marker_&=3            !Mode not handled by the decoder (Error)
LET sof2marker_&=4            !Mode not handled by the decoder (Error)
LET sof3marker_&=5            !Mode not handled by the decoder (Error)
LET sof5marker_&=6            !Mode not handled by the decoder (Error)
LET sof6marker_&=7            !Mode not handled by the decoder (Error)
LET sof7marker_&=8            !Mode not handled by the decoder (Error)
LET sof9marker_&=10           !Mode not handled by the decoder (Error)
LET sof10marker_&=11          !Mode not handled by the decoder (Error)
LET sof11marker_&=12          !Mode not handled by the decoder (Error)
LET sof13marker_&=13          !Mode not handled by the decoder (Error)
LET sof14marker_&=14          !Mode not handled by the decoder (Error)
LET sof15marker_&=15          !Mode not handled by the decoder (Error)
LET rstmmarker_&=16           !Unexpected RSTm found (Error)
LET baddhtmarker_&=17         !Buggy DHT Marker (Error)
LET dacmarker_&=18            !Marker not handled by the decoder (Error)
LET baddqtmarker_&=19         !Buggy DQT Marker (Error)
LET dnlmarker_&=20            !Marker not handled by the decoder (Error)
LET baddrimarker_&=21         !Invalid DRI Header Size (Error)
LET dhpmarker_&=22            !Marker not handled by the decoder (Error)
LET expmarker_&=23            !Marker not handled by the decoder (Error)
LET badsubsampling_&=24       !Invalid components subsampling (Error)
LET notenoughmemory_&=25      !Not enough memory... (Error)
LET decoderbusy_&=26          !Decoder is busy (Error)
LET dspbusy_&=27              !Can't lock the DSP (Error)
LET dsploderror_&=28          !Can't find .LOD File (Error)
LET badsofnmarker_&=29        !Buggy SOFn marker (Error)
LET badsosmarker_&=30         !Buggy SOS marker (Error)
LET huffmanerror_&=31         !Buggy Huffman Stream (Error)
LET badpixelformat_&=32       !Invalid Output Pixel Format (Error)
LET diskfull_&=33             !Hard/Floppy Disk Full (Error)
LET missingmarker_&=34        !Marker expected but not found (Error)
LET imagetruncated_&=35       !More bytes Needed (Error)
LET extrabytes_&=36           !Dummy Bytes after EOI Marker (Warning)
LET baddnlmarker_&=37         !Unexpected or Invalid DNL found (Error)
LET nodnlmarker_&=38          !No DNL Marker found (Error)
LET userabort_&=39            !User Routine signaled 'Abort'
LET dspmemoryerror_&=40       !Not Enough DSP RAM (Error)
LET norstmmarker_&=41         !RSTm Marker expected but not found
LET badrstmmarker_&=42        !Invalid RSTm Marker Number
LET driverclosed_&=43         !Driver is Already Closed.
LET endofimage_&=44           !Stop Decoding (Internal Message, Should Never Appear)
' end of error codes
