08.01.2013 Views

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Eq 26.5<br />

Eq 26.6<br />

Eq 26.7<br />

To form 709Y’C B C R from [Y’, B’-Y’, R’-Y’] components in<br />

the range [0…+1], use these equations:<br />

709 709<br />

219Y’<br />

= 16 + ( 219⋅<br />

Y’ )<br />

112 709<br />

CB= 128+<br />

B’−Y’ 0. 9278<br />

112 709<br />

CR= 128+<br />

R’−Y’ 0. 7874<br />

( )<br />

( )<br />

To obtain 709 Y’C BC R from R’G’B’ ranging 0 to 1, scale<br />

the rows of the matrix in Equation 26.3 by the factors<br />

[219, 224, 224], corresponding to the excursions of<br />

each of the components:<br />

⎡709<br />

219Y’<br />

⎤ ⎡ 16 ⎤ ⎡ 46. 559 156. 629 15. 812⎤<br />

⎡R’<br />

⎤<br />

⎢ ⎥ ⎢ ⎥ ⎢<br />

⎥ ⎢ ⎥<br />

⎢ CB<br />

⎥ =<br />

⎢<br />

128<br />

⎥<br />

+<br />

⎢<br />

−25. 664 −86.<br />

336 112<br />

⎥<br />

•<br />

⎢<br />

G’<br />

⎥<br />

⎢<br />

C<br />

⎥<br />

R 128 112 101. 730 10. 270 B’<br />

⎣⎢<br />

⎦⎥<br />

⎣<br />

⎢<br />

⎦<br />

⎥<br />

⎣<br />

⎢ − − ⎦<br />

⎥<br />

⎣<br />

⎢<br />

⎦<br />

⎥<br />

Summing the first row of the matrix yields 219, the<br />

luma excursion from black to white. The two entries of<br />

112 reflect the positive C B C R extrema at blue and red.<br />

To recover R’G’B’ in the range [0…+1] from 709Y’C B C R ,<br />

use the inverse of Equation 26.6:<br />

⎡R’<br />

⎤ ⎡<br />

⎤<br />

⎛ ⎡709<br />

0. 00456621 0 0. 00703036 Y’<br />

⎤ ⎡ ⎤<br />

⎞<br />

⎢ ⎥ ⎢<br />

⎥ ⎢219<br />

16<br />

⎜ ⎥ ⎢ ⎥⎟<br />

⎢<br />

G’<br />

⎥<br />

=<br />

⎢<br />

0. 00456621 −0. 00083627 −0.<br />

00208984<br />

⎥<br />

• ⎜ ⎢ CB<br />

⎥ −<br />

⎢<br />

128<br />

⎥⎟<br />

⎣<br />

⎢B’<br />

⎦<br />

⎥<br />

⎣<br />

⎢0.<br />

00456621 0. 00828393 0 ⎦<br />

⎥ ⎜ ⎢<br />

C<br />

⎥<br />

⎣⎢<br />

⎦⎥<br />

⎣<br />

⎢128<br />

⎦<br />

⎥⎟<br />

⎝ R ⎠<br />

The 709 Y’C BC R components are integers in 8 bits; reconstructed<br />

R’G’B’ is scaled to the range [0…+1].<br />

Figure 24.2 (on page 285) illustrated that when R’G’B’<br />

components are transformed to luma and color differences,<br />

the unit R’G’B’ cube occupies only a small fraction<br />

of the volume of the enclosing cube. In digital<br />

video, only about 1 ⁄4 of Y’C BC R codewords correspond<br />

to R’G’B’ values between zero and unity. Certain signalprocessing<br />

operations (such as filtering) may produce<br />

Y’C BC R codewords that lie outside the RGB-legal cube.<br />

These codewords cause no difficulty in the Y’C BC R<br />

domain, but potentially present a problem when<br />

decoded to R’G’B’. Generally, R’G’B’ values are clipped<br />

between 0 and 1.<br />

CHAPTER 26 COMPONENT VIDEO COLOR CODING FOR HDTV 317

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!