• Robert Sprowson's avatar
    Paper and fill some JPEG cracks. · 06d6b99e
    Robert Sprowson authored
    The exit_c function was repeatedly being called with the line number argument and error code the wrong way round and since only bits 0-2 of the error code are inspected on exit any fatal exits from the ported JPEG library code would either report the wrong error or fail silently (depending on the line number) - example a 12 bits per sample JPEG would be rendered without fault into a screen full of random memory garbage.
    Assembling/compiling with the 'jpeg' switch off didn't work, fixed, and also now zeros out the SWI decode values in the module header.
    Moved include of 'yuvtabs.s' into the colour conversion code.
    Deleted panic_exit, it did nothing useful but trace a value then exit, so it now just calls exit() like everyone else.
    Removed excess call to find_image_dims(), this was needed just to get the workspace requirements when the JPEG had already been sized up by asm_find_image_dims() earlier. Side effect of removing the pilot JPEG code earlier is that this call can no...
    06d6b99e
VersionASM 1 KB
;
; This file is automatically maintained by srccommit, do not edit manually.
; Last processed by srccommit version: 1.1.
;
                        GBLS    Module_MajorVersion
                        GBLA    Module_Version
                        GBLS    Module_MinorVersion
                        GBLS    Module_Date
                        GBLS    Module_FullVersion
                        GBLS    Module_ApplicationDate
                        GBLS    Module_HelpVersion
                        GBLS    Module_ComponentName
                        GBLS    Module_ComponentPath
Module_MajorVersion     SETS    "1.32"
Module_Version          SETA    132
Module_MinorVersion     SETS    ""
Module_Date             SETS    "13 Oct 2010"
Module_ApplicationDate  SETS    "13-Oct-10"
Module_ComponentName    SETS    "SprExtend"
Module_ComponentPath    SETS    "mixed/RiscOS/Sources/Video/Render/SprExtend"
Module_FullVersion      SETS    "1.32"
Module_HelpVersion      SETS    "1.32 (13 Oct 2010)"
                        END