-
Robert Sprowson authored
Setting bit 1 of r0 in JPEG_FileInfo and JPEG_Info will now return the SOF type of the JPEG in question in bits 3-6 of the info flags in r0 on exit. Took this opportunity to refactor find_image_dims to take a structure pointer rather than lots of individual pointers (CFSI-JPEG ammended to match). Untangled the return codes a bit so it is only necessary to inspect r0 on exit from C to determine the outcome. Values of 1 & 2 are translated in the assembler code into more specific error messages than just "Incomplete or corrupt JPEG". Fix bug where unknown density marker would leave the file open in JPEG_FileInfo. Don't bother ADRL'ing r1 for error messages that don't have a %0 in them. Added all the input & output flag definitions to the exported header file so other callers can use them too. More functionality, fewer bugs, about 200 bytes smaller too. Version 1.35. Tagged as 'SprExtend-1_35'
8f1ed4bb