home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 18034 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  3.1 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!actrix!templar!jbickers
  2. Newsgroups: comp.sys.amiga.programmer
  3. Subject: Re: Chunky Pixels vs. Bitplanes (was: Chunky Chip Set...)
  4. Message-ID: <jbickers.0mem@templar.actrix.gen.nz>
  5. From: jbickers@templar.actrix.gen.nz (John Bickers)
  6. Date: 2 Jan 93 11:33:59 PST
  7. References: <1992Dec30.115759.22097@mpifr-bonn.mpg.de> <doiron.0ka3@starpt.UUCP> 
  8.  <1992Dec31.011428.2926@mpifr-bonn.mpg.de> <C03uC5.15o@unix.portal.com> 
  9.  <1992Dec31.174137.10865@mpifr-bonn.mpg.de> <jbickers.0mdl@templar.actrix.gen.nz> <1993Jan1.142652.20451@mpifr-bonn.mpg.de>
  10. Organization: TAP
  11. Lines: 56
  12.  
  13. Quoted from <1993Jan1.142652.20451@mpifr-bonn.mpg.de> by mlelstv@speckled.mpifr-bonn.mpg.de (Michael van Elst):
  14. > In <jbickers.0mdl@templar.actrix.gen.nz> jbickers@templar.actrix.gen.nz (John Bickers) writes:
  15.  
  16. > >    So do you concede that 8-bit chunky pixels are indeed faster than
  17. > >    8-bit planar pixels for CPU-driven drawing operations?
  18. > *sigh*. They are slightly faster for area operations and significantly
  19. > faster for non-horizontal line drawing. But I was not talking about
  20.  
  21.     Well, that's the key thing. As for the rest (< 8 planes), the
  22.     differences are not so clear-cut. On the one hand you have to
  23.     shift and mask so much for bitplanes, on the other you waste bits
  24.     for chunky pixels, or end up stuffing several pixels into each
  25.     byte, which approaches having planes (exactly equivalent for 1-bit
  26.     pixels, eh?).
  27.  
  28.     You also lose all the marvellous things you can do with the
  29.     bitplane pointers, but if such pointers aren't documented in the
  30.     future it doesn't matter, eh? :)
  31.  
  32. > >    Can you present your algorithm for bitmap scaling that performs as
  33. > >    well as a chunky-pixel based algorithm?
  34. > It uses a 256k table (64k longwords) or less when I have a processor that can
  35. > do several instructions during video memory accesses. Why would that slow down 
  36. > the algorithm ?
  37.  
  38.     This is a nice approach, though it gets more complicated when you
  39.     want to scale by some factor other than 2 or 4. For each end of
  40.     the horizontal lines you are scaling, you also need to mask off
  41.     the source and destination areas, if any, that shouldn't be
  42.     affected. You may also have to shift the results if the source and
  43.     destination are not aligned with each other.
  44.  
  45. > >    Me. A digital dissolve is basically filling an area by writing
  46. > >    single pixels.
  47. > Hmm. I thought it was a mapping operation.
  48.  
  49.     Well, call it what you will but it's still filling an area by
  50.     writing single pixels.
  51.  
  52. > >    Horizontal wipes do indeed fill the screen with vertical lines.
  53. > True.. Now, who talks about special cases :) BTW, you do not want to
  54. > make a horizontal wipe arbitrarily fast. It could become invisible :)
  55.  
  56.     Heh. I would like to be able to complete a vertical rectangle
  57.     within one frame though. You can do it quite nicely by copying in
  58.     8-pixel wide strips, until you get a case where you need to mask
  59.     and shift.
  60.  
  61. > Michael van Elst
  62. --
  63. *** John Bickers, TAP.                   jbickers@templar.actrix.gen.nz ***
  64. ***    "Radioactivity - It's in the air, for you and me" - Kraftwerk    ***
  65.