home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!cass.ma02.bull.com!mips2!news.bbn.com!olivea!charnel!rat!ucselx!crash!rtillery
- From: rtillery@crash.cts.com (Rick Tillery)
- Newsgroups: comp.sys.amiga.graphics
- Subject: Re: Sliced HAM and Dynamic HAM
- Message-ID: <1992Nov18.134902.20595@crash>
- Date: 18 Nov 92 21:49:02 GMT
- References: <Bxt9wx.Jpv@dcs.ed.ac.uk> <1992Nov16.225121.16422@athena.mit.edu> <BxuwrI.Gn6@dcs.ed.ac.uk>
- Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
- Lines: 45
-
- In article <BxuwrI.Gn6@dcs.ed.ac.uk> jaxh@dcs.ed.ac.uk (Jon Hanson) writes:
- >In article <1992Nov16.225121.16422@athena.mit.edu>, yoav@athena.mit.edu (Yoav O. Yerushalmi) writes:
- >> In article <Bxt9wx.Jpv@dcs.ed.ac.uk>, jaxh@dcs.ed.ac.uk (Jon Hanson) writes:
- >> |> I'm in the middle of writing a general purpose, overscan IFF file viewer , and I want
- >> |> to support the aforementioned image types.
- >> |> Does anyone know the formats of these image types ? If they are IFF is there just
- >> |> an extra block for the extra data ?
- >>
- >> Well, this isn't exactly an explanation at all, but I don't think the data for
- >> Dynamic ham and ham could be that different, because dynamic ham pictures can be
- >> loaded as ham pictures by normal programs. I definitely know that the method of
- >> display is different, because the copper is used to redefine the base colors
- >> after every certain scanline, could that help you decypher a Dham image??
- >> I realise this is probably not much help, but I hope you succeed... Good luck
- >
- >Any good IFF loader would merely ignore any unrecognised blocks - thus it would ignore
- >the copper list data - say a COPP block, and just read the HAM picture as normal. Of
- >course the HAM picture won't look quite as good because the base colours on each
- >scan-line should be wrong.
- >I want to be able to interpret the copper list data and use it to display the picture.
- >Surely someone knows that the format is. I might try and write an IFF disassembler
- >which just breaks IFF files into separate blocks which I can then examine and find
- >the info out for myself.
- >
-
- The format of SHAM contains a SHAM chunk (Sliced HAM) that contains the
- 16 color base palette for each NON-INTERLACED scan lines (the palette can
- only change on every other interlaced scan line) stored in 2 bytes as
- 0RGB (4 bits per gun).
-
- Dynamic HAM and Dynamic Hi-Res have CTBL (Color TaBLe) chunk that has the
- 16 color base palette for EACH line stored in exactly the same way (dynamic
- picture CAN have the palette different on each scan line). There is also a
- DYCP chunk that I haven't figured out yet, but it is only 8 bytes long (not
- including header and length).
-
- Hope this helps.
-
- __________________________________________________________________
- | |
- | Rick Tillery ( RTillery@crash.cts.com RTillery@cup.portal.com ) |
- | The displaced Razorback! |
- | Amiga - The underdog computer with a superhero's power. |
- | N.I.N.J.A.J.I.S. - "I refuse to donate an aloft fornication."-RT |
- |__________________________________________________________________|
-