Home » Archimedes archive » Archimedes World » AW-1996-07.adf » !Gamma_Gamma » !Gamma/Doc/ModuleDoc

!Gamma/Doc/ModuleDoc

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 » Archimedes World » AW-1996-07.adf » !Gamma_Gamma
Filename: !Gamma/Doc/ModuleDoc
Read OK:
File size: 0753 bytes
Load address: 0000
Exec address: 0000
File contents
PLEASE READ
===========

"The CompoSupport module included with this application is (c) R. Davison
1995. The author hereby grants permission for the inclusion of this module
in any application either commercial or public domain which may benefit
from its use as long as this message is included in full and the module
is not modified in any way. I would appreciate notification of such use
prior to release.

The author accepts no responsibility or legal liability for any loss
through use or misuse of this software even if the author has been
advised of the possibility of such loss.

Bug reports and suggestions are welcome however.

Programmers: Please contact me prior to release in order to insure that
you have the latest version of the module.

Rob Davison (rdavison@es.co.nz)
Southland, New Zealand"

Brief doc follows

Possible uses for these SWIs

...Colour correction software
...Interactive Gamma/Colour correction preview for Bitmap graphics packages
...Screensavers/Slideshow applications etc.

CompoSupport doc

ModuleName   = CompoSupport ("Foggy")
SWIBlock     = &83480 (Acorn approved)
MessageBlock = &83480      ditto

Star Commands
-------------

*Compo_OLE 0|1
disable/enable osfile traps to Compo Scrap dir.

SWIs
----

Compo_ReadGamma
STATUS: COMPLETE

on entry -
 r0 = ptr to 256 byte buffer to hold red gammas
 r1 = ptr to 256 byte buffer to hold green gammas
 r2 = ptr to 256 byte buffer to hold blue gammas

on exit -
 contents of buffers to hold last gamma tables written using WriteGamma or
 default tables.

Compo_WriteGamma
STATUS: COMPLETE

on entry -
 r0 = ptr to WORD ALIGNED red table
 r1                       green table
 r2                       blue table

on exit -
 contents of buffers written to VIDC20

Other SWIs may�be defined in some future version of the module.

Message_CompoOLE &83480

Message_CompoKillDA_Request &83481



00000000  50 4c 45 41 53 45 20 52  45 41 44 0a 3d 3d 3d 3d  |PLEASE READ.====|
00000010  3d 3d 3d 3d 3d 3d 3d 0a  0a 22 54 68 65 20 43 6f  |=======.."The Co|
00000020  6d 70 6f 53 75 70 70 6f  72 74 20 6d 6f 64 75 6c  |mpoSupport modul|
00000030  65 20 69 6e 63 6c 75 64  65 64 20 77 69 74 68 20  |e included with |
00000040  74 68 69 73 20 61 70 70  6c 69 63 61 74 69 6f 6e  |this application|
00000050  20 69 73 20 28 63 29 20  52 2e 20 44 61 76 69 73  | is (c) R. Davis|
00000060  6f 6e 0a 31 39 39 35 2e  20 54 68 65 20 61 75 74  |on.1995. The aut|
00000070  68 6f 72 20 68 65 72 65  62 79 20 67 72 61 6e 74  |hor hereby grant|
00000080  73 20 70 65 72 6d 69 73  73 69 6f 6e 20 66 6f 72  |s permission for|
00000090  20 74 68 65 20 69 6e 63  6c 75 73 69 6f 6e 20 6f  | the inclusion o|
000000a0  66 20 74 68 69 73 20 6d  6f 64 75 6c 65 0a 69 6e  |f this module.in|
000000b0  20 61 6e 79 20 61 70 70  6c 69 63 61 74 69 6f 6e  | any application|
000000c0  20 65 69 74 68 65 72 20  63 6f 6d 6d 65 72 63 69  | either commerci|
000000d0  61 6c 20 6f 72 20 70 75  62 6c 69 63 20 64 6f 6d  |al or public dom|
000000e0  61 69 6e 20 77 68 69 63  68 20 6d 61 79 20 62 65  |ain which may be|
000000f0  6e 65 66 69 74 0a 66 72  6f 6d 20 69 74 73 20 75  |nefit.from its u|
00000100  73 65 20 61 73 20 6c 6f  6e 67 20 61 73 20 74 68  |se as long as th|
00000110  69 73 20 6d 65 73 73 61  67 65 20 69 73 20 69 6e  |is message is in|
00000120  63 6c 75 64 65 64 20 69  6e 20 66 75 6c 6c 20 61  |cluded in full a|
00000130  6e 64 20 74 68 65 20 6d  6f 64 75 6c 65 0a 69 73  |nd the module.is|
00000140  20 6e 6f 74 20 6d 6f 64  69 66 69 65 64 20 69 6e  | not modified in|
00000150  20 61 6e 79 20 77 61 79  2e 20 49 20 77 6f 75 6c  | any way. I woul|
00000160  64 20 61 70 70 72 65 63  69 61 74 65 20 6e 6f 74  |d appreciate not|
00000170  69 66 69 63 61 74 69 6f  6e 20 6f 66 20 73 75 63  |ification of suc|
00000180  68 20 75 73 65 0a 70 72  69 6f 72 20 74 6f 20 72  |h use.prior to r|
00000190  65 6c 65 61 73 65 2e 0a  0a 54 68 65 20 61 75 74  |elease...The aut|
000001a0  68 6f 72 20 61 63 63 65  70 74 73 20 6e 6f 20 72  |hor accepts no r|
000001b0  65 73 70 6f 6e 73 69 62  69 6c 69 74 79 20 6f 72  |esponsibility or|
000001c0  20 6c 65 67 61 6c 20 6c  69 61 62 69 6c 69 74 79  | legal liability|
000001d0  20 66 6f 72 20 61 6e 79  20 6c 6f 73 73 0a 74 68  | for any loss.th|
000001e0  72 6f 75 67 68 20 75 73  65 20 6f 72 20 6d 69 73  |rough use or mis|
000001f0  75 73 65 20 6f 66 20 74  68 69 73 20 73 6f 66 74  |use of this soft|
00000200  77 61 72 65 20 65 76 65  6e 20 69 66 20 74 68 65  |ware even if the|
00000210  20 61 75 74 68 6f 72 20  68 61 73 20 62 65 65 6e  | author has been|
00000220  0a 61 64 76 69 73 65 64  20 6f 66 20 74 68 65 20  |.advised of the |
00000230  70 6f 73 73 69 62 69 6c  69 74 79 20 6f 66 20 73  |possibility of s|
00000240  75 63 68 20 6c 6f 73 73  2e 0a 0a 42 75 67 20 72  |uch loss...Bug r|
00000250  65 70 6f 72 74 73 20 61  6e 64 20 73 75 67 67 65  |eports and sugge|
00000260  73 74 69 6f 6e 73 20 61  72 65 20 77 65 6c 63 6f  |stions are welco|
00000270  6d 65 20 68 6f 77 65 76  65 72 2e 0a 0a 50 72 6f  |me however...Pro|
00000280  67 72 61 6d 6d 65 72 73  3a 20 50 6c 65 61 73 65  |grammers: Please|
00000290  20 63 6f 6e 74 61 63 74  20 6d 65 20 70 72 69 6f  | contact me prio|
000002a0  72 20 74 6f 20 72 65 6c  65 61 73 65 20 69 6e 20  |r to release in |
000002b0  6f 72 64 65 72 20 74 6f  20 69 6e 73 75 72 65 20  |order to insure |
000002c0  74 68 61 74 0a 79 6f 75  20 68 61 76 65 20 74 68  |that.you have th|
000002d0  65 20 6c 61 74 65 73 74  20 76 65 72 73 69 6f 6e  |e latest version|
000002e0  20 6f 66 20 74 68 65 20  6d 6f 64 75 6c 65 2e 0a  | of the module..|
000002f0  0a 52 6f 62 20 44 61 76  69 73 6f 6e 20 28 72 64  |.Rob Davison (rd|
00000300  61 76 69 73 6f 6e 40 65  73 2e 63 6f 2e 6e 7a 29  |avison@es.co.nz)|
00000310  0a 53 6f 75 74 68 6c 61  6e 64 2c 20 4e 65 77 20  |.Southland, New |
00000320  5a 65 61 6c 61 6e 64 22  0a 0a 42 72 69 65 66 20  |Zealand"..Brief |
00000330  64 6f 63 20 66 6f 6c 6c  6f 77 73 0a 0a 50 6f 73  |doc follows..Pos|
00000340  73 69 62 6c 65 20 75 73  65 73 20 66 6f 72 20 74  |sible uses for t|
00000350  68 65 73 65 20 53 57 49  73 0a 0a 2e 2e 2e 43 6f  |hese SWIs.....Co|
00000360  6c 6f 75 72 20 63 6f 72  72 65 63 74 69 6f 6e 20  |lour correction |
00000370  73 6f 66 74 77 61 72 65  0a 2e 2e 2e 49 6e 74 65  |software....Inte|
00000380  72 61 63 74 69 76 65 20  47 61 6d 6d 61 2f 43 6f  |ractive Gamma/Co|
00000390  6c 6f 75 72 20 63 6f 72  72 65 63 74 69 6f 6e 20  |lour correction |
000003a0  70 72 65 76 69 65 77 20  66 6f 72 20 42 69 74 6d  |preview for Bitm|
000003b0  61 70 20 67 72 61 70 68  69 63 73 20 70 61 63 6b  |ap graphics pack|
000003c0  61 67 65 73 0a 2e 2e 2e  53 63 72 65 65 6e 73 61  |ages....Screensa|
000003d0  76 65 72 73 2f 53 6c 69  64 65 73 68 6f 77 20 61  |vers/Slideshow a|
000003e0  70 70 6c 69 63 61 74 69  6f 6e 73 20 65 74 63 2e  |pplications etc.|
000003f0  0a 0a 43 6f 6d 70 6f 53  75 70 70 6f 72 74 20 64  |..CompoSupport d|
00000400  6f 63 0a 0a 4d 6f 64 75  6c 65 4e 61 6d 65 20 20  |oc..ModuleName  |
00000410  20 3d 20 43 6f 6d 70 6f  53 75 70 70 6f 72 74 20  | = CompoSupport |
00000420  28 22 46 6f 67 67 79 22  29 0a 53 57 49 42 6c 6f  |("Foggy").SWIBlo|
00000430  63 6b 20 20 20 20 20 3d  20 26 38 33 34 38 30 20  |ck     = &83480 |
00000440  28 41 63 6f 72 6e 20 61  70 70 72 6f 76 65 64 29  |(Acorn approved)|
00000450  0a 4d 65 73 73 61 67 65  42 6c 6f 63 6b 20 3d 20  |.MessageBlock = |
00000460  26 38 33 34 38 30 20 20  20 20 20 20 64 69 74 74  |&83480      ditt|
00000470  6f 0a 0a 53 74 61 72 20  43 6f 6d 6d 61 6e 64 73  |o..Star Commands|
00000480  0a 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 0a 0a  |.-------------..|
00000490  2a 43 6f 6d 70 6f 5f 4f  4c 45 20 30 7c 31 0a 64  |*Compo_OLE 0|1.d|
000004a0  69 73 61 62 6c 65 2f 65  6e 61 62 6c 65 20 6f 73  |isable/enable os|
000004b0  66 69 6c 65 20 74 72 61  70 73 20 74 6f 20 43 6f  |file traps to Co|
000004c0  6d 70 6f 20 53 63 72 61  70 20 64 69 72 2e 0a 0a  |mpo Scrap dir...|
000004d0  53 57 49 73 0a 2d 2d 2d  2d 0a 0a 43 6f 6d 70 6f  |SWIs.----..Compo|
000004e0  5f 52 65 61 64 47 61 6d  6d 61 0a 53 54 41 54 55  |_ReadGamma.STATU|
000004f0  53 3a 20 43 4f 4d 50 4c  45 54 45 0a 0a 6f 6e 20  |S: COMPLETE..on |
00000500  65 6e 74 72 79 20 2d 0a  20 72 30 20 3d 20 70 74  |entry -. r0 = pt|
00000510  72 20 74 6f 20 32 35 36  20 62 79 74 65 20 62 75  |r to 256 byte bu|
00000520  66 66 65 72 20 74 6f 20  68 6f 6c 64 20 72 65 64  |ffer to hold red|
00000530  20 67 61 6d 6d 61 73 0a  20 72 31 20 3d 20 70 74  | gammas. r1 = pt|
00000540  72 20 74 6f 20 32 35 36  20 62 79 74 65 20 62 75  |r to 256 byte bu|
00000550  66 66 65 72 20 74 6f 20  68 6f 6c 64 20 67 72 65  |ffer to hold gre|
00000560  65 6e 20 67 61 6d 6d 61  73 0a 20 72 32 20 3d 20  |en gammas. r2 = |
00000570  70 74 72 20 74 6f 20 32  35 36 20 62 79 74 65 20  |ptr to 256 byte |
00000580  62 75 66 66 65 72 20 74  6f 20 68 6f 6c 64 20 62  |buffer to hold b|
00000590  6c 75 65 20 67 61 6d 6d  61 73 0a 0a 6f 6e 20 65  |lue gammas..on e|
000005a0  78 69 74 20 2d 0a 20 63  6f 6e 74 65 6e 74 73 20  |xit -. contents |
000005b0  6f 66 20 62 75 66 66 65  72 73 20 74 6f 20 68 6f  |of buffers to ho|
000005c0  6c 64 20 6c 61 73 74 20  67 61 6d 6d 61 20 74 61  |ld last gamma ta|
000005d0  62 6c 65 73 20 77 72 69  74 74 65 6e 20 75 73 69  |bles written usi|
000005e0  6e 67 20 57 72 69 74 65  47 61 6d 6d 61 20 6f 72  |ng WriteGamma or|
000005f0  0a 20 64 65 66 61 75 6c  74 20 74 61 62 6c 65 73  |. default tables|
00000600  2e 0a 0a 43 6f 6d 70 6f  5f 57 72 69 74 65 47 61  |...Compo_WriteGa|
00000610  6d 6d 61 0a 53 54 41 54  55 53 3a 20 43 4f 4d 50  |mma.STATUS: COMP|
00000620  4c 45 54 45 0a 0a 6f 6e  20 65 6e 74 72 79 20 2d  |LETE..on entry -|
00000630  0a 20 72 30 20 3d 20 70  74 72 20 74 6f 20 57 4f  |. r0 = ptr to WO|
00000640  52 44 20 41 4c 49 47 4e  45 44 20 72 65 64 20 74  |RD ALIGNED red t|
00000650  61 62 6c 65 0a 20 72 31  20 20 20 20 20 20 20 20  |able. r1        |
00000660  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 67  |               g|
00000670  72 65 65 6e 20 74 61 62  6c 65 0a 20 72 32 20 20  |reen table. r2  |
00000680  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000690  20 20 20 20 20 62 6c 75  65 20 74 61 62 6c 65 0a  |     blue table.|
000006a0  0a 6f 6e 20 65 78 69 74  20 2d 0a 20 63 6f 6e 74  |.on exit -. cont|
000006b0  65 6e 74 73 20 6f 66 20  62 75 66 66 65 72 73 20  |ents of buffers |
000006c0  77 72 69 74 74 65 6e 20  74 6f 20 56 49 44 43 32  |written to VIDC2|
000006d0  30 0a 0a 4f 74 68 65 72  20 53 57 49 73 20 6d 61  |0..Other SWIs ma|
000006e0  79 a0 62 65 20 64 65 66  69 6e 65 64 20 69 6e 20  |y.be defined in |
000006f0  73 6f 6d 65 20 66 75 74  75 72 65 20 76 65 72 73  |some future vers|
00000700  69 6f 6e 20 6f 66 20 74  68 65 20 6d 6f 64 75 6c  |ion of the modul|
00000710  65 2e 0a 0a 4d 65 73 73  61 67 65 5f 43 6f 6d 70  |e...Message_Comp|
00000720  6f 4f 4c 45 20 26 38 33  34 38 30 0a 0a 4d 65 73  |oOLE &83480..Mes|
00000730  73 61 67 65 5f 43 6f 6d  70 6f 4b 69 6c 6c 44 41  |sage_CompoKillDA|
00000740  5f 52 65 71 75 65 73 74  20 26 38 33 34 38 31 0a  |_Request &83481.|
00000750  0a 0a 0a                                          |...|
00000753