Path: utzoo!utgpu!attcan!uunet!super!udel!princeton!njin!rutgers!apple!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga.tech Subject: Re: IFF form for 2D drawings (again) Summary: Minor nit Message-ID: <6778@well.UUCP> Date: 9 Aug 88 08:50:47 GMT References: <11640003@hpfcdc.HP.COM> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: ~rPa_{~~cif~t(i~c ~r_{^?Belw3t(~rl~ Lines: 34 Quote: "I feel like such an idiot." -- Riker "Quite right. So you should." -- Picard In article <11640003@hpfcdc.HP.COM> cunniff@hpfcdc.HP.COM (Ross Cunniff) writes: >CMAP (0x434D4150) /* Color map */ > > struct CMAPstruct { > LONG ID; > LONG Size; /* 2 + 3*NumColor + NumColor%2 */ >>>> SHORT NumColor; /* Typically 256 */ > UBYTE ColorMap[NumColor][3]; > UBYTE PAD[NumColor%1];/* Padding to make Size even */ > }; > I object to this, largely on principle. Although this flavor of CMAP chunk will only appear in a DR2D FORM, we already have a well-known and -advertised (and -coded-for) CMAP chunk for ILBM FORMs. I would suggest using the ILBM CMAP chuck format instead, since using your own could very well lead to some degree of confusion, particularly if you ever decide to import ILBMs into your drawings in some way (perhaps as a fill pattern?). Also, I think you have the semantics of IFF a bit wrong. "Size" is the size of the chunk, sans pad byte. IFF will enforce the pad byte for you. Therefore, it's unnecessary to specify it in your chunk specification. Also, IFF enforces the ID and ChunkSize stuff, so that needn't be in your chunk specification, either. Stu Ferguson and I have been studying IFF for some time now (which is why I'm picking at your semantics), in an effort to beat it into submission. I think we're winning.... _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU \_ -_ Recumbent Bikes: UUCP: pacbell > !{well,unicom}!ewhac O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack") "Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor