home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / hardware / 26612 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.8 KB

  1. Xref: sparky comp.sys.mac.hardware:26612 comp.graphics:14096
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!agate!ucbvax!mtxinu!taniwha!paul
  3. From: paul@taniwha.UUCP (Paul Campbell)
  4. Newsgroups: comp.sys.mac.hardware,comp.graphics
  5. Subject: Re: Why 32,768??
  6. Message-ID: <1381@taniwha.UUCP>
  7. Date: 18 Jan 93 21:25:44 GMT
  8. References: <freek.727207557@groucho.phil.ruu.nl> <1j9ph5INN322@gap.caltech.edu> <1ja2csINN6po@gap.caltech.edu>
  9. Organization: Taniwha Systems Design
  10. Lines: 36
  11.  
  12. In article <1ja2csINN6po@gap.caltech.edu> madler@cco.caltech.edu (Mark Adler) writes:
  13. >
  14. >Actually, the same analysis I did says that 8+9+7 is better than that.
  15. >And for 12 bits, 4+5+3 is better than 4+4+4.  So why do they use equal
  16. >R, G, and B bits?
  17.  
  18. I think two reasons: because the RAMDACS are 8+8+8 (even true-color systems
  19. these days use RAMDACS for gamma correction etc) - for a RAMDAC you need 
  20.  
  21.      R     G     B
  22.     2  +  2  +  2        entries in your RAM tables
  23.  
  24. If each entry is the same size as your index it's
  25.  
  26.        R      G     B
  27.     R*2  + G*2  + B*2    bits
  28.  
  29. For 8+8+8 it's 2048+2048+2048 = ~6k bits
  30.  
  31. For 8+9+7 its 8*256+9*512+7*128 = ~7.5k bits
  32.     (or a ~25% increase in die size and cost plus the size of
  33.      the DAC goes up with the square of the index)
  34.  
  35. Secondly on many cpus it's much cheaper to assemble bytes to make a 24-bit
  36. pixel than odd sized bits that require shifting and masking - I've seen a
  37. number of software digital video codec that run faster in 24-bit mode than
  38. 16-bit even though it seems that you shouldn't have to move as much data.
  39.  
  40.     Paul
  41.     
  42.  
  43. -- 
  44. Paul Campbell    UUCP: ..!mtxinu!taniwha!paul     AppleLink: CAMPBELL.P
  45. "Finally after much thought he tied a dollar bill to the top of the tree, it
  46. seemed to fit - after all it was the premier capitalist holiday, besides after
  47. the 'fall' of communism a star didn't seem appropriate anymore ..."
  48.