home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18880 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  3.2 KB

  1. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: An Open Challenge (it can't be done!)
  5. Message-ID: <1992Dec23.130826.15275@sm.sony.co.jp>
  6. Date: 23 Dec 92 13:08:26 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Hewlett-Packard, Fort Collins, CO, USA
  10. Lines: 72
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Tue, 22 Dec 1992 23:36:11 GMT
  14. Message-Id: <7320056@hpfcso.FC.HP.COM>
  15. Newsgroups: comp.windows.x
  16. References: <78716@hydra.gatech.EDU>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. In comp.windows.x, gt4417a@prism.gatech.EDU (SKELTON,JOEL PHILLIP) writes:
  20.  
  21. > Here's the short form:
  22. >  - 8 bit image in backing pixmap used to update window
  23. >  - Image drawn in 8 bit X window
  24. >  - Want to draw diagonal lines on top of image that can
  25. >    be removed quickly (i.e. replace them with the data they so
  26. >    recently covered)
  27. >  - Can't do server extensions (too many platforms to support)
  28.   
  29. Well, how about a hardware solution ???  :-)
  30.  
  31. There are two levels of hardware solutions I would suggest:
  32.  
  33.     1. This is the really neat but kinda pricey solution.
  34.  
  35.        Some X framebuffers actually support overlay planes 
  36.        which allow rendering of such annotation in a seperate
  37.        set of hardware planes.  The added value of this approach
  38.        is that you will probably get the use a second hardware 
  39.        colormap in the overlays (seperate from the image colormap)
  40.        and such framebuffers also feature 24 bit DirectColor image
  41.        planes.  Checkout the CRX24 display on HP series 700s for 
  42.        starters. You can get one on a 715/33 for under $14K list.
  43.        OK, OK, I said it was kind of pricey :-)
  44.  
  45.     2. The second solution is sort of hardware oriented but much
  46.        more generic.
  47.  
  48.        Get a workstation / X server with a reasonably high pixmap
  49.        to framebuffer transfer rate and just beat the problem into
  50.        submission.  If you can transfer pixmaps at say ~40 Mbytes/sec
  51.        into the framebuffer, a little extra block transferring can be
  52.        acceptable.  Keep a bounding box for the involved area so as
  53.        to minimize the size of the transfer.  If you want to get 
  54.        clever, fill diagonal lines with a series of smallish blocks
  55.        along the line.
  56.  
  57.                 -------    
  58.             |   \  |
  59.             |    \ |
  60.             |     \
  61.             -------\-------
  62.                    |\     |
  63.                    | \    |
  64.                    |  \   |
  65.                 ---\--
  66.                     \    . . .
  67.  
  68. Here's a software solution that can be used, but involves an 
  69. obvious tradeoff which violates your requirements. 
  70. But I have seen folks use it successfully! 
  71.  
  72.     3. Give up 1 bit in your 8 bit framebuffer for annotation.
  73.        (Yes that means 128 of your colors!)
  74.        This allows you to use plane masks to select rendering of
  75.        the annotation and the image.  And clearing the annotation
  76.        will reveal the unmodified image which remains in the lower
  77.        half of the colormap/framebuffer.
  78.        This is basicly a software emulation of a 1 bit overlay plane
  79.        and a 7 bit image plane framebuffer configuration.
  80.  
  81. --
  82. Howard Stroyan                                         
  83. Hewlett-Packard                                        hstroyan@fc.hp.com
  84. User Interface Technology Division                     
  85.