home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18032 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  2.3 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!linac!uchinews!uchinews!a-giles
  2. From: a-giles@uchicago.edu (Aaron Giles)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: QuickTime and Fast Dithering
  5. Message-ID: <A-GILES.92Nov5092453@opal1.uchicago.edu>
  6. Date: 5 Nov 92 15:24:53 GMT
  7. Article-I.D.: opal1.A-GILES.92Nov5092453
  8. References: <40577@sdcc12.ucsd.edu>
  9. Sender: news@uchinews.uchicago.edu (News System)
  10. Reply-To: a-giles@uchicago.edu
  11. Followup-To: comp.sys.mac.programmer
  12. Organization: University of Chicago High Energy Physics
  13. Lines: 36
  14. In-Reply-To: sakelley@euclid.ucsd.edu's message of 5 Nov 92 01:26:34 GMT
  15.  
  16.  
  17.  Scott> Here's the problem I'm having: by default, QuickTime is
  18.  Scott> displaying everything using it's "fast dither" algorithm. This
  19.  Scott> is fine for video clips, but for still images (JPEG), we'd
  20.  Scott> like to do a little better.  According to the QT 1.0
  21.  Scott> developer's guide, page 3-20:
  22.  
  23.  Scott>    "Apple decompressors use fast dithering when copying from
  24.  Scott> image band buffers to 8-bit destinations. If the accuracy for
  25.  Scott> decompression is above normal, then the decompressors use true
  26.  Scott> error diffusion rather than fast dithering."
  27.  
  28.  Scott> Does this imply that QT will ALWAYS use fast dithering to an
  29.  Scott> 8-bit destination, or is it possible to bump up the "accuracy"
  30.  Scott> setting for playback to get better results? If so, how can I
  31.  Scott> set this accuracy setting?
  32.  
  33. (Note that I don't have the docs with me, so the exact names I specify
  34. may be wrong, but this should give you the general idea.)  
  35.  
  36. You can bump up this accuracy by passing codecHighQuality for the
  37. accuracy parameter in the FDecompressImage() call.  If you're drawing
  38. PICT files, you'll need to set up a StdPix bottleneck and call
  39. GetCompressedPixMapInfo() on the PixMap you're passed to get all the
  40. parameters you need for the FDecompressImage() call.  Then just call
  41. FDecompressImage(), manually setting the accuracy to codecHighQuality
  42. or something greater (codecMaxQuality should work as well).
  43.  
  44. Note that you can also *suppress* dithering of compressed PICT files
  45. in this way, by forcing the dither flag on or off.  This is the only
  46. way to suppress dithering in QT1.0.  QT1.5 supports an extension of
  47. the ditherFlag in DrawTrimmedPicture(), which essentially does just
  48. what I've explained, only internally.
  49.  
  50. Aaron
  51. a-giles@uchicago.edu
  52.