1. 29 Sep, 2010 1 commit
    • Robert Sprowson's avatar
      Remove pilot JPEG code. · 1a4e51bd
      Robert Sprowson authored
      During the original development (referred to in the docs as Sprite Extend 2) JPEG data was briefly wrapped inside a sprite file before the JPEG_ swis were introduced. Within SpriteExtend some code still remained to fake a mode 20 sprite header with the JPEG output sized adjusted as though it was 4bpp, then later undo the faking by checking for a mode 20 sprite with is_it_jpeg set.
      This version removes all of the code looking out for pilot JPEGs, and rationalises the fake sprite header to just report the true X/Y size.
      Fix bug where r4 would be corrupted on exit from JPEG_PlotScaled if an error occurred, and generally rationalised the exit cases a bit more sensibly.
      Made the JPEG_ swi despatch a bit more simple to follow.
      Corrected a comment in the NSM_bpptable.
      Deleted unused 'ecfspace' from the workspace.
      Hid the 'macroword' from the C code as it's now an assembler only value.
      Cut the initial comments from c/putscaled and placed in Docs.
      Cut the debug tracing code (a notable %age) from c/putscaled and placed in tracing support file.
      Simplified the entry to putscaled_compiler() now we don't have to look out for pilot format JPEGs within sprites any more.
      Sprinkled in some block comments to make navigating the c/putscaled file a bit easier.
      
      Version 1.30. Tagged as 'SprExtend-1_30'
      1a4e51bd
  2. 19 Sep, 2010 1 commit
    • Robert Sprowson's avatar
      Panel beat with hammer of sanity. · 19fec5e3
      Robert Sprowson authored
      Deleted c.SpriteOp to untangle it from c.rojpeg to draw boundary around JPEG code.
      Moved all the OS_SpriteOp code out of SprExtend into a new file SprOp, so the main file just contains the usual macros/includes/module heading.
      Added new 'debugso' switch for debugging SpriteOps, was previously using 'debuggs' which is supposed to be for JPEG leading to reams of confusing debug.
      TestForMaskAtDepth was rejecting 8bpp sprites with masks due to testing against log2bpp (4) instead of sprite type (5).
      NSM_bpptable re-encoded in bytes rather than words, accesses ammended accordingly.
      Took fresh copy of swiv2 from RISCOS_Lib revision 4.7.
      SpriteV interception made a bit simpler (& faster).
      Fixes to validate sprite (SpriteOp 17):
       Was looking at the wrong bits of the mode word to test for old mode words.
       Added new test for DPI values being non zero.
       Algorithm more closely follows PRM.
      
      Version 1.27. Tagged as 'SprExtend-1_27'
      19fec5e3
  3. 01 Sep, 2010 1 commit
    • Robert Sprowson's avatar
      Clean up pass. · ff031992
      Robert Sprowson authored
      Trim 200+ lines of changes dating back to 1987, combine with non duplicates in the 'BlackLog'.
      Use 'offsetof' macro in genjhdr to avoid warnings about uninitialised variables, rename from makejhdr so all the utils are clearly demarked.
      Add throwback to MkCFSI-j.
      Replace reason codes passed to SWIs with textual equivalents from the respective header files.
      Speed up SWI despatch a bit by making the first few debug instructions depend on 'debuggs'.
      Qualify all of the debug switches with the global 'debug' one.
      Eliminate single use of 'pullx' macro.
      Make do_branch() take an unsigned opcode so 50% of the branches don't result in implied cast warnings.
      Added an UNUSED() macro to reduce a few of the legitimate warnings (the remainder are either in the original JPEG code or ones that it is worth checking the logic of.
      Unixify one last filename.
      
      Version 1.24. Tagged as 'SprExtend-1_24'
      ff031992
  4. 12 May, 2000 1 commit
  5. 05 Nov, 1996 1 commit