home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!mcsun!Germany.EU.net!mpifr-bonn.mpg.de!specklec.mpifr-bonn.mpg.de!mlelstv
- From: mlelstv@specklec.mpifr-bonn.mpg.de (Michael van Elst)
- Subject: Re: Chunky Pixels vs. Bitplanes (was: Chunky Chip Set...)
- Message-ID: <1992Dec29.010853.12840@mpifr-bonn.mpg.de>
- Sender: news@mpifr-bonn.mpg.de
- Nntp-Posting-Host: specklec
- Organization: Max-Planck-Institut f"ur Radioastronomie
- References: <Karsten_Weiss.0n2o@ibase.stgt.sub.org> <1hbngoINNglt@uwm.edu> <1992Dec28.000531.26783@mpifr-bonn.mpg.de> <doiron.0k4a@starpt.UUCP>
- Date: Tue, 29 Dec 1992 01:08:53 GMT
- Lines: 47
-
- In <doiron.0k4a@starpt.UUCP> doiron@starpt.UUCP (Glenn Doiron) writes:
- > 32-point line,
- > 2 pixels thick: 512 reads 512 writes 64 writes
- > (Why are bitplanes better for this? Seems like an additional 960 memory
- > accesses to me.)
-
- It would be still 256 reads 256 writes unless the line spans over a word
- boundary. More, shallow lines will need less reads and writes.
-
- However, your line drawing routine will need cycles itself. So unless
- your rendering is done in hardware the difference gets smaller.
-
- > 32x32 blit: 1536 reads 512 writes 1024 reads, up to 1024 writes
- > or up to 2304 reads 768 writes
- > (second case if either source or dest. non-aligned)
- > (including transparency/masking)
-
- 32x32 blit is 512 reads/writes. more for non-aligned objects. chunky
- needs 512 reads/writes and a little more for non-aligned objects.
- (Both do word accesses).
-
- > Scaling: 32x32 image, blow up to 64x64
- > convert to chunky: 8192 reads no-op
- > do mathematical xforms do mathematical xforms
- > convert to bitplane: 32768 reads no-op
-
- That's easy. 'blow up' is a table lookup which can be done on each bitplane
- independently. No need to convert from and to chunky. If you use a selected
- colormap then you get filtering/dithering of the image for free.
- BTW, that's the same speed for chunky/bitplanes.
-
- >OK, now tell me which one will be slower? I'm not even factoring in the
- >ridiculous amount of bit-shifting and masking involved in all these
- >operations for AGA (excluding the 32x32 blit... blitter was assumed).
-
- Chunky wins slightly in most operations IF you use a 256 color image.
- It looses with a depth != 8. BTW, 32x32 blit is tiny, what about 50x50
- or 156x200 ? And since we were talking about 'image processing'. Most tools
- have some sort of GUI which eats some of the 256 colors. The easiest
- way is to go down to 128 colors. Bitplanes will then be faster for 12.5%.
-
- Regards,
- --
- Michael van Elst
- UUCP: universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
- Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
- "A potential Snark may lurk in every tree."
-