Home » Archimedes archive » Apps » Acorn Applications Update (1994)(Acorn Computers).adf » !ChangeFSI/FSIuse

!ChangeFSI/FSIuse

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Apps » Acorn Applications Update (1994)(Acorn Computers).adf
Filename: !ChangeFSI/FSIuse
Read OK:
File size: 0A04 bytes
Load address: FFFFFF44
Exec address: A31071A0
File contents
Use: ChangeFSI <in file> <out file> <mode>[cdtp] [<n>:<n> [<n>:<n>]] [options]
Changes source picture to output sprite in specified mode, with suffix:
c
  1 bit modes: use clustered dithering with 4x4 cell
  2 bit modes: use the four colours "black", "cyan", "magenta" and "yellow"
d
  1 bit modes: use clustered dithering with 2x2 cell
  4 bit modes: use 1 bit red, 1 bit green, 1 bit blue
  8 bit modes: 256 level grey scale
t
  1 bit modes: use clustered dithering with 3x3 cell
  4 bit modes: 16 level grey scale
r
  2 bit modes: Roger Wilson's (me) colour matching algorithm
  4 bit modes: Roger Wilson's (me) colour matching algorithm
  8 bit modes: Roger Wilson's (me) colour matching algorithm
-no suffix-
  1 bit modes: b/w dispersed dot dithering
  2 bit modes: 4 level grey scale
  4 bit modes: 8 level grey scale
  8 bit modes: John Bowler's colour matching algorithm
               (defaults to 'r' mode if not VIDC1 compatible)
(see FSIinfo for more information on suffix)
The pixel size is corrected for and the default is output of the same size as
the input. Size ratios are output:input or = for scale to output size.
Mode 'AIM' writes an AIM format output file.
Mode 'p15' writes a p15 file.
Modes 'p1' to 'p6' write PBM files.
-equal    performs histogram equalisation.
-hflip, -vflip    present the picture left/right reversed / upside down.
-rotate   +90 degree rotation of the image.
-rotate-  -90 degree rotation of the image.
-info     gives details of the source image.
-invert   inverts the colour range of the input image.
-noscale  disables automatic pixel size correction.
-nosize   disables automatic pixel size correction for input pixels only.
-range    expands the input's dynamic range to full scale.
-sharpen  digitally sharpens the picture, -sharpen<n> overrides the default
          of 24: range 8(harsh)-31(soft).
-brighten brightens the entire image (caution: may saturate hues to white)
-gamma    applies gamma correction, -gamma<n> overrides the default of 2.2
-nodither prevents the error diffusion dithering.
-black    corrects for black inked spots larger than square pixels, -black<n>
          overrides the default of 32: range 0(not at all)-128(harsh)
-red<r>, -green<r>, -blue<r> allow the red, green, blue weights for monochrome
          luminance to be changed from their CIE defaults of 0.299, 0.587, 0.114.
-max<n>   maximum size of output image before output to disc.
Modes S16 and S32 write 16 and 32 bit per pixel sprites, with X and Y pixels
per inch specified as comma seperated values (e.g. S16,90,90)
00000000  55 73 65 3a 20 43 68 61  6e 67 65 46 53 49 20 3c  |Use: ChangeFSI <|
00000010  69 6e 20 66 69 6c 65 3e  20 3c 6f 75 74 20 66 69  |in file> <out fi|
00000020  6c 65 3e 20 3c 6d 6f 64  65 3e 5b 63 64 74 70 5d  |le> <mode>[cdtp]|
00000030  20 5b 3c 6e 3e 3a 3c 6e  3e 20 5b 3c 6e 3e 3a 3c  | [<n>:<n> [<n>:<|
00000040  6e 3e 5d 5d 20 5b 6f 70  74 69 6f 6e 73 5d 0a 43  |n>]] [options].C|
00000050  68 61 6e 67 65 73 20 73  6f 75 72 63 65 20 70 69  |hanges source pi|
00000060  63 74 75 72 65 20 74 6f  20 6f 75 74 70 75 74 20  |cture to output |
00000070  73 70 72 69 74 65 20 69  6e 20 73 70 65 63 69 66  |sprite in specif|
00000080  69 65 64 20 6d 6f 64 65  2c 20 77 69 74 68 20 73  |ied mode, with s|
00000090  75 66 66 69 78 3a 0a 63  0a 20 20 31 20 62 69 74  |uffix:.c.  1 bit|
000000a0  20 6d 6f 64 65 73 3a 20  75 73 65 20 63 6c 75 73  | modes: use clus|
000000b0  74 65 72 65 64 20 64 69  74 68 65 72 69 6e 67 20  |tered dithering |
000000c0  77 69 74 68 20 34 78 34  20 63 65 6c 6c 0a 20 20  |with 4x4 cell.  |
000000d0  32 20 62 69 74 20 6d 6f  64 65 73 3a 20 75 73 65  |2 bit modes: use|
000000e0  20 74 68 65 20 66 6f 75  72 20 63 6f 6c 6f 75 72  | the four colour|
000000f0  73 20 22 62 6c 61 63 6b  22 2c 20 22 63 79 61 6e  |s "black", "cyan|
00000100  22 2c 20 22 6d 61 67 65  6e 74 61 22 20 61 6e 64  |", "magenta" and|
00000110  20 22 79 65 6c 6c 6f 77  22 0a 64 0a 20 20 31 20  | "yellow".d.  1 |
00000120  62 69 74 20 6d 6f 64 65  73 3a 20 75 73 65 20 63  |bit modes: use c|
00000130  6c 75 73 74 65 72 65 64  20 64 69 74 68 65 72 69  |lustered ditheri|
00000140  6e 67 20 77 69 74 68 20  32 78 32 20 63 65 6c 6c  |ng with 2x2 cell|
00000150  0a 20 20 34 20 62 69 74  20 6d 6f 64 65 73 3a 20  |.  4 bit modes: |
00000160  75 73 65 20 31 20 62 69  74 20 72 65 64 2c 20 31  |use 1 bit red, 1|
00000170  20 62 69 74 20 67 72 65  65 6e 2c 20 31 20 62 69  | bit green, 1 bi|
00000180  74 20 62 6c 75 65 0a 20  20 38 20 62 69 74 20 6d  |t blue.  8 bit m|
00000190  6f 64 65 73 3a 20 32 35  36 20 6c 65 76 65 6c 20  |odes: 256 level |
000001a0  67 72 65 79 20 73 63 61  6c 65 0a 74 0a 20 20 31  |grey scale.t.  1|
000001b0  20 62 69 74 20 6d 6f 64  65 73 3a 20 75 73 65 20  | bit modes: use |
000001c0  63 6c 75 73 74 65 72 65  64 20 64 69 74 68 65 72  |clustered dither|
000001d0  69 6e 67 20 77 69 74 68  20 33 78 33 20 63 65 6c  |ing with 3x3 cel|
000001e0  6c 0a 20 20 34 20 62 69  74 20 6d 6f 64 65 73 3a  |l.  4 bit modes:|
000001f0  20 31 36 20 6c 65 76 65  6c 20 67 72 65 79 20 73  | 16 level grey s|
00000200  63 61 6c 65 0a 72 0a 20  20 32 20 62 69 74 20 6d  |cale.r.  2 bit m|
00000210  6f 64 65 73 3a 20 52 6f  67 65 72 20 57 69 6c 73  |odes: Roger Wils|
00000220  6f 6e 27 73 20 28 6d 65  29 20 63 6f 6c 6f 75 72  |on's (me) colour|
00000230  20 6d 61 74 63 68 69 6e  67 20 61 6c 67 6f 72 69  | matching algori|
00000240  74 68 6d 0a 20 20 34 20  62 69 74 20 6d 6f 64 65  |thm.  4 bit mode|
00000250  73 3a 20 52 6f 67 65 72  20 57 69 6c 73 6f 6e 27  |s: Roger Wilson'|
00000260  73 20 28 6d 65 29 20 63  6f 6c 6f 75 72 20 6d 61  |s (me) colour ma|
00000270  74 63 68 69 6e 67 20 61  6c 67 6f 72 69 74 68 6d  |tching algorithm|
00000280  0a 20 20 38 20 62 69 74  20 6d 6f 64 65 73 3a 20  |.  8 bit modes: |
00000290  52 6f 67 65 72 20 57 69  6c 73 6f 6e 27 73 20 28  |Roger Wilson's (|
000002a0  6d 65 29 20 63 6f 6c 6f  75 72 20 6d 61 74 63 68  |me) colour match|
000002b0  69 6e 67 20 61 6c 67 6f  72 69 74 68 6d 0a 2d 6e  |ing algorithm.-n|
000002c0  6f 20 73 75 66 66 69 78  2d 0a 20 20 31 20 62 69  |o suffix-.  1 bi|
000002d0  74 20 6d 6f 64 65 73 3a  20 62 2f 77 20 64 69 73  |t modes: b/w dis|
000002e0  70 65 72 73 65 64 20 64  6f 74 20 64 69 74 68 65  |persed dot dithe|
000002f0  72 69 6e 67 0a 20 20 32  20 62 69 74 20 6d 6f 64  |ring.  2 bit mod|
00000300  65 73 3a 20 34 20 6c 65  76 65 6c 20 67 72 65 79  |es: 4 level grey|
00000310  20 73 63 61 6c 65 0a 20  20 34 20 62 69 74 20 6d  | scale.  4 bit m|
00000320  6f 64 65 73 3a 20 38 20  6c 65 76 65 6c 20 67 72  |odes: 8 level gr|
00000330  65 79 20 73 63 61 6c 65  0a 20 20 38 20 62 69 74  |ey scale.  8 bit|
00000340  20 6d 6f 64 65 73 3a 20  4a 6f 68 6e 20 42 6f 77  | modes: John Bow|
00000350  6c 65 72 27 73 20 63 6f  6c 6f 75 72 20 6d 61 74  |ler's colour mat|
00000360  63 68 69 6e 67 20 61 6c  67 6f 72 69 74 68 6d 0a  |ching algorithm.|
00000370  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 28  |               (|
00000380  64 65 66 61 75 6c 74 73  20 74 6f 20 27 72 27 20  |defaults to 'r' |
00000390  6d 6f 64 65 20 69 66 20  6e 6f 74 20 56 49 44 43  |mode if not VIDC|
000003a0  31 20 63 6f 6d 70 61 74  69 62 6c 65 29 0a 28 73  |1 compatible).(s|
000003b0  65 65 20 46 53 49 69 6e  66 6f 20 66 6f 72 20 6d  |ee FSIinfo for m|
000003c0  6f 72 65 20 69 6e 66 6f  72 6d 61 74 69 6f 6e 20  |ore information |
000003d0  6f 6e 20 73 75 66 66 69  78 29 0a 54 68 65 20 70  |on suffix).The p|
000003e0  69 78 65 6c 20 73 69 7a  65 20 69 73 20 63 6f 72  |ixel size is cor|
000003f0  72 65 63 74 65 64 20 66  6f 72 20 61 6e 64 20 74  |rected for and t|
00000400  68 65 20 64 65 66 61 75  6c 74 20 69 73 20 6f 75  |he default is ou|
00000410  74 70 75 74 20 6f 66 20  74 68 65 20 73 61 6d 65  |tput of the same|
00000420  20 73 69 7a 65 20 61 73  0a 74 68 65 20 69 6e 70  | size as.the inp|
00000430  75 74 2e 20 53 69 7a 65  20 72 61 74 69 6f 73 20  |ut. Size ratios |
00000440  61 72 65 20 6f 75 74 70  75 74 3a 69 6e 70 75 74  |are output:input|
00000450  20 6f 72 20 3d 20 66 6f  72 20 73 63 61 6c 65 20  | or = for scale |
00000460  74 6f 20 6f 75 74 70 75  74 20 73 69 7a 65 2e 0a  |to output size..|
00000470  4d 6f 64 65 20 27 41 49  4d 27 20 77 72 69 74 65  |Mode 'AIM' write|
00000480  73 20 61 6e 20 41 49 4d  20 66 6f 72 6d 61 74 20  |s an AIM format |
00000490  6f 75 74 70 75 74 20 66  69 6c 65 2e 0a 4d 6f 64  |output file..Mod|
000004a0  65 20 27 70 31 35 27 20  77 72 69 74 65 73 20 61  |e 'p15' writes a|
000004b0  20 70 31 35 20 66 69 6c  65 2e 0a 4d 6f 64 65 73  | p15 file..Modes|
000004c0  20 27 70 31 27 20 74 6f  20 27 70 36 27 20 77 72  | 'p1' to 'p6' wr|
000004d0  69 74 65 20 50 42 4d 20  66 69 6c 65 73 2e 0a 2d  |ite PBM files..-|
000004e0  65 71 75 61 6c 20 20 20  20 70 65 72 66 6f 72 6d  |equal    perform|
000004f0  73 20 68 69 73 74 6f 67  72 61 6d 20 65 71 75 61  |s histogram equa|
00000500  6c 69 73 61 74 69 6f 6e  2e 0a 2d 68 66 6c 69 70  |lisation..-hflip|
00000510  2c 20 2d 76 66 6c 69 70  20 20 20 20 70 72 65 73  |, -vflip    pres|
00000520  65 6e 74 20 74 68 65 20  70 69 63 74 75 72 65 20  |ent the picture |
00000530  6c 65 66 74 2f 72 69 67  68 74 20 72 65 76 65 72  |left/right rever|
00000540  73 65 64 20 2f 20 75 70  73 69 64 65 20 64 6f 77  |sed / upside dow|
00000550  6e 2e 0a 2d 72 6f 74 61  74 65 20 20 20 2b 39 30  |n..-rotate   +90|
00000560  20 64 65 67 72 65 65 20  72 6f 74 61 74 69 6f 6e  | degree rotation|
00000570  20 6f 66 20 74 68 65 20  69 6d 61 67 65 2e 0a 2d  | of the image..-|
00000580  72 6f 74 61 74 65 2d 20  20 2d 39 30 20 64 65 67  |rotate-  -90 deg|
00000590  72 65 65 20 72 6f 74 61  74 69 6f 6e 20 6f 66 20  |ree rotation of |
000005a0  74 68 65 20 69 6d 61 67  65 2e 0a 2d 69 6e 66 6f  |the image..-info|
000005b0  20 20 20 20 20 67 69 76  65 73 20 64 65 74 61 69  |     gives detai|
000005c0  6c 73 20 6f 66 20 74 68  65 20 73 6f 75 72 63 65  |ls of the source|
000005d0  20 69 6d 61 67 65 2e 0a  2d 69 6e 76 65 72 74 20  | image..-invert |
000005e0  20 20 69 6e 76 65 72 74  73 20 74 68 65 20 63 6f  |  inverts the co|
000005f0  6c 6f 75 72 20 72 61 6e  67 65 20 6f 66 20 74 68  |lour range of th|
00000600  65 20 69 6e 70 75 74 20  69 6d 61 67 65 2e 0a 2d  |e input image..-|
00000610  6e 6f 73 63 61 6c 65 20  20 64 69 73 61 62 6c 65  |noscale  disable|
00000620  73 20 61 75 74 6f 6d 61  74 69 63 20 70 69 78 65  |s automatic pixe|
00000630  6c 20 73 69 7a 65 20 63  6f 72 72 65 63 74 69 6f  |l size correctio|
00000640  6e 2e 0a 2d 6e 6f 73 69  7a 65 20 20 20 64 69 73  |n..-nosize   dis|
00000650  61 62 6c 65 73 20 61 75  74 6f 6d 61 74 69 63 20  |ables automatic |
00000660  70 69 78 65 6c 20 73 69  7a 65 20 63 6f 72 72 65  |pixel size corre|
00000670  63 74 69 6f 6e 20 66 6f  72 20 69 6e 70 75 74 20  |ction for input |
00000680  70 69 78 65 6c 73 20 6f  6e 6c 79 2e 0a 2d 72 61  |pixels only..-ra|
00000690  6e 67 65 20 20 20 20 65  78 70 61 6e 64 73 20 74  |nge    expands t|
000006a0  68 65 20 69 6e 70 75 74  27 73 20 64 79 6e 61 6d  |he input's dynam|
000006b0  69 63 20 72 61 6e 67 65  20 74 6f 20 66 75 6c 6c  |ic range to full|
000006c0  20 73 63 61 6c 65 2e 0a  2d 73 68 61 72 70 65 6e  | scale..-sharpen|
000006d0  20 20 64 69 67 69 74 61  6c 6c 79 20 73 68 61 72  |  digitally shar|
000006e0  70 65 6e 73 20 74 68 65  20 70 69 63 74 75 72 65  |pens the picture|
000006f0  2c 20 2d 73 68 61 72 70  65 6e 3c 6e 3e 20 6f 76  |, -sharpen<n> ov|
00000700  65 72 72 69 64 65 73 20  74 68 65 20 64 65 66 61  |errides the defa|
00000710  75 6c 74 0a 20 20 20 20  20 20 20 20 20 20 6f 66  |ult.          of|
00000720  20 32 34 3a 20 72 61 6e  67 65 20 38 28 68 61 72  | 24: range 8(har|
00000730  73 68 29 2d 33 31 28 73  6f 66 74 29 2e 0a 2d 62  |sh)-31(soft)..-b|
00000740  72 69 67 68 74 65 6e 20  62 72 69 67 68 74 65 6e  |righten brighten|
00000750  73 20 74 68 65 20 65 6e  74 69 72 65 20 69 6d 61  |s the entire ima|
00000760  67 65 20 28 63 61 75 74  69 6f 6e 3a 20 6d 61 79  |ge (caution: may|
00000770  20 73 61 74 75 72 61 74  65 20 68 75 65 73 20 74  | saturate hues t|
00000780  6f 20 77 68 69 74 65 29  0a 2d 67 61 6d 6d 61 20  |o white).-gamma |
00000790  20 20 20 61 70 70 6c 69  65 73 20 67 61 6d 6d 61  |   applies gamma|
000007a0  20 63 6f 72 72 65 63 74  69 6f 6e 2c 20 2d 67 61  | correction, -ga|
000007b0  6d 6d 61 3c 6e 3e 20 6f  76 65 72 72 69 64 65 73  |mma<n> overrides|
000007c0  20 74 68 65 20 64 65 66  61 75 6c 74 20 6f 66 20  | the default of |
000007d0  32 2e 32 0a 2d 6e 6f 64  69 74 68 65 72 20 70 72  |2.2.-nodither pr|
000007e0  65 76 65 6e 74 73 20 74  68 65 20 65 72 72 6f 72  |events the error|
000007f0  20 64 69 66 66 75 73 69  6f 6e 20 64 69 74 68 65  | diffusion dithe|
00000800  72 69 6e 67 2e 0a 2d 62  6c 61 63 6b 20 20 20 20  |ring..-black    |
00000810  63 6f 72 72 65 63 74 73  20 66 6f 72 20 62 6c 61  |corrects for bla|
00000820  63 6b 20 69 6e 6b 65 64  20 73 70 6f 74 73 20 6c  |ck inked spots l|
00000830  61 72 67 65 72 20 74 68  61 6e 20 73 71 75 61 72  |arger than squar|
00000840  65 20 70 69 78 65 6c 73  2c 20 2d 62 6c 61 63 6b  |e pixels, -black|
00000850  3c 6e 3e 0a 20 20 20 20  20 20 20 20 20 20 6f 76  |<n>.          ov|
00000860  65 72 72 69 64 65 73 20  74 68 65 20 64 65 66 61  |errides the defa|
00000870  75 6c 74 20 6f 66 20 33  32 3a 20 72 61 6e 67 65  |ult of 32: range|
00000880  20 30 28 6e 6f 74 20 61  74 20 61 6c 6c 29 2d 31  | 0(not at all)-1|
00000890  32 38 28 68 61 72 73 68  29 0a 2d 72 65 64 3c 72  |28(harsh).-red<r|
000008a0  3e 2c 20 2d 67 72 65 65  6e 3c 72 3e 2c 20 2d 62  |>, -green<r>, -b|
000008b0  6c 75 65 3c 72 3e 20 61  6c 6c 6f 77 20 74 68 65  |lue<r> allow the|
000008c0  20 72 65 64 2c 20 67 72  65 65 6e 2c 20 62 6c 75  | red, green, blu|
000008d0  65 20 77 65 69 67 68 74  73 20 66 6f 72 20 6d 6f  |e weights for mo|
000008e0  6e 6f 63 68 72 6f 6d 65  0a 20 20 20 20 20 20 20  |nochrome.       |
000008f0  20 20 20 6c 75 6d 69 6e  61 6e 63 65 20 74 6f 20  |   luminance to |
00000900  62 65 20 63 68 61 6e 67  65 64 20 66 72 6f 6d 20  |be changed from |
00000910  74 68 65 69 72 20 43 49  45 20 64 65 66 61 75 6c  |their CIE defaul|
00000920  74 73 20 6f 66 20 30 2e  32 39 39 2c 20 30 2e 35  |ts of 0.299, 0.5|
00000930  38 37 2c 20 30 2e 31 31  34 2e 0a 2d 6d 61 78 3c  |87, 0.114..-max<|
00000940  6e 3e 20 20 20 6d 61 78  69 6d 75 6d 20 73 69 7a  |n>   maximum siz|
00000950  65 20 6f 66 20 6f 75 74  70 75 74 20 69 6d 61 67  |e of output imag|
00000960  65 20 62 65 66 6f 72 65  20 6f 75 74 70 75 74 20  |e before output |
00000970  74 6f 20 64 69 73 63 2e  0a 4d 6f 64 65 73 20 53  |to disc..Modes S|
00000980  31 36 20 61 6e 64 20 53  33 32 20 77 72 69 74 65  |16 and S32 write|
00000990  20 31 36 20 61 6e 64 20  33 32 20 62 69 74 20 70  | 16 and 32 bit p|
000009a0  65 72 20 70 69 78 65 6c  20 73 70 72 69 74 65 73  |er pixel sprites|
000009b0  2c 20 77 69 74 68 20 58  20 61 6e 64 20 59 20 70  |, with X and Y p|
000009c0  69 78 65 6c 73 0a 70 65  72 20 69 6e 63 68 20 73  |ixels.per inch s|
000009d0  70 65 63 69 66 69 65 64  20 61 73 20 63 6f 6d 6d  |pecified as comm|
000009e0  61 20 73 65 70 65 72 61  74 65 64 20 76 61 6c 75  |a seperated valu|
000009f0  65 73 20 28 65 2e 67 2e  20 53 31 36 2c 39 30 2c  |es (e.g. S16,90,|
00000a00  39 30 29 0a                                       |90).|
00000a04