' error codes for all codecs, returned via imageinfo->thumbnail ' note: 2 to 9 are not used, we start at 10 ' ' if negative it's a standard gemdos error code ' if positive it's related the content of the file ' ' ' standard gemdos error codes, these are just here for my reference ' codecs return gemdos error codes where it makes sense LET ec_fwrite&=-10 !fwrite failed, size in/out didn't match, or negative error code LET ec_fread&=-11 !fread failed, size in/out didn't match, or negative error code LET ec_fopen&=-33 !fopen failed, image file not found LET ec_fcreate&=-36 !fcreate failed LET ec_fclose&=-37 !fclose failed LET ec_malloc&=-39 !malloc failed LET ec_mfree&=-40 !mfree failed LET ec_fseek&=-64 !fseek failed, truncated file? ' ' ' error codes related to file content ' these will be used in multiple codecs and maybe new codecs in the future LET ec_comptype&=10 !header -> unsupported compression type LET ec_decomperror&=11 !error during decompression phase LET ec_resolutiontype&=12 !header -> unsupported mode code neo/degas LET ec_imagetype&=13 !header -> unsupported image type LET ec_pixeldepth&=14 !header -> unsupported pixel depth LET ec_colormapdepth&=15 !header -> unsupported color map depth LET ec_colormaptype&=16 !header -> unsupported color map type LET ec_filelength&=17 !incorrect file length LET ec_fileid&=18 !header -> unknown file identifier LET ec_headerlength&=19 !header -> unsupported header length LET ec_widthnegative&=20 !header -> image width < 0 LET ec_heightnegative&=21 !header -> image height < 0 LET ec_internalerror&=22 !non-specific, subfunction failure: png/gif LET ec_colorspace&=23 !header -> unsupported color space LET ec_colormaplength&=24 !header -> unsupported color map length LET ec_masktype&=25 !header -> unsupported mask type LET ec_chunkid&=26 !unsupported chunk identifier: iff LET ec_filetype&=27 !received wrong file type LET ec_framecount&=28 !frame count exceeds limit LET ec_colorcount&=29 !header -> unsupported color count LET ec_bitmaplength&=30 !header -> calc'd length doesn't match LET ec_headerversion&=31 !header -> unsupported version LET ec_heightsmall&=32 !header -> unsupported height, to small: fnt LET ec_complength&=33 !header -> incorrect compressed size: spx LET ec_frametype&=34 !header -> unsupported frame type: seq LET ec_requiresnvdi&=35 !NVDI not installed LET ec_funcnotdefined&=36 !function not implemented ' new error codes will be added to the end of this list as needed