S.J.Raybould@fulcrum.bt.co.uk (Simon Raybould) (09/18/90)
Can someone tell me what is in the IFF ILBM "SHAM" Chunk ? Presumably 'S', 'H', 'A', 'M' ULONG CkSize Some data ? What does the data contain so that I may display a sliced HAM ? Is it in the RKM's anywhere ? Thanks for any help on this. Sie +-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | British Telecom Fulcrum | name : Simon John Raybould {^.^} | | Fordrough Lane | path : sie@fulcrum.bt.co.uk \~/ | | Birmingham +-----------+--------------------------| | B9 5LD | // | AMIGA B2000HD 3MB 8088BB | | ENGLAND | \X/AMIGA | Lattice C V5.05 | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-+
griffith@eecs.cs.pdx.edu (Michael Griffith) (09/19/90)
I'm sure someone around here has stats, but just in case, I believe it contains the color register values for each line of the display, since it changes the 15 color register values each display line (I believe it leaves the background value alone to avoid a multi-colored border). So you should have some multiple of fifteen. If I remember correctly it would be 15 words per line, so for a non-interlaced picture 15*200 or 3000 words or 6000 bytes, and therefore 12000 bytes for an interlaced picture. I think the colors are stored as words like so: 0x0RGB. So for your program you would need to change your simulated palette (I assume you have it in an array or something) each line to the next 15 colors indicated in the 'SHAM' chunk before you calculate the values for the line itself. P.S.: Now even I'm confused. ;) | Michael Griffith | If I had an opinion it certainly | | griffith@eecs.ee.pdx.edu | wouldn't be the same one as | | ...!tektronix!psueea!eecs!griffith | Portland State University anyways. |