home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / multimed / 2267 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.7 KB

  1. From: fitzhugh@hplred.HP.COM (Andrew Fitzhugh)
  2. Date: Wed, 29 Jul 1992 23:01:56 GMT
  3. Subject: Re: Convert 4:1:1 YUV data to RGB
  4. Message-ID: <116780001@hplred.HP.COM>
  5. Organization: Hewlett Packard Labs, Palo Alto CA
  6. Path: sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!hplred!fitzhugh
  7. Newsgroups: comp.multimedia
  8. References: <1992Jul23.211649.28491@cs.cornell.edu>
  9. Lines: 40
  10.  
  11. / hplred:comp.multimedia / pej@hpfcso.FC.HP.COM (Phil Jensen) /  6:04 am  Jul 27, 1992 /
  12. > In comp.multimedia, soam@freyja.cs.cornell.edu (Soam Acharya) writes:
  13. > > Can anyone point me towards a reference that explains how to convert
  14. > > 4:1:1 subsampled YUV data to RGB? 
  15. > > 
  16. > Call your local Signetics Rep and ask for the Phillips Video Data Handbook.
  17. > This contains specs on the parts that are on your board. Look at the SAA7192
  18. > Digital Colour Space Converter. This is a YUV to RGB converter. Included are 
  19. > equations for the YUV to RGB conversion.
  20.  
  21. Actually, the Signetics book gives the equations for YCbCr (normalized
  22. YUV, so they're essentially the same).  I just happened to be typing
  23. in these numbers so I can save you some time:
  24.  
  25. |R|   | 1.000  0.000  1.000 | |Y|
  26. |G| = | 1.000 -0.186 -0.508 | |U|
  27. |B|   | 1.000  1.000  0.000 | |V|
  28.  
  29. |Y|   | 0.299  0.587  0.114 | |R|
  30. |U| = |-0.299 -0.587  0.866 | |G|
  31. |V|   | 0.701 -0.587 -0.114 | |B|
  32.  
  33. And if you want to use YCbCr,
  34.  
  35. |Y |   |     Y     |
  36. |Cb| = | 0.564 * U |
  37. |Cr|   | 0.713 * V |
  38.  
  39. Benson's "Television Engineering Handbook" (ISBN 0-07-004779-0),
  40. though poorly organized and containing plenty of typos, contains all
  41. kinds of stuff like this.  It's a better general reference than the
  42. Sig.  data book, but it's far from free (~$100, I think).
  43.  
  44. Andrew Fitzhugh
  45. Computational Color Reproduction
  46. HP Laboratories
  47.  
  48.  
  49.  
  50.