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.

Figure 25.3 CBCR components<br />

for SDTV are shown<br />

in their mathematical form.<br />

The range outside<br />

[-112 … +112] is available<br />

for undershoot and overshoot.<br />

At an 8-bit inter-<br />

+112<br />

R<br />

face, an offset of +128 is<br />

added to each color differ-<br />

Yl<br />

ence component. -112 0<br />

The numerical values used in this<br />

equation, and in those to follow,<br />

are based on the Rec. 601 luma<br />

coefficients. The coefficients for<br />

HDTV are, unfortunately, different.<br />

See Rec. 601 luma, on page 291.<br />

G<br />

-112<br />

C R axis<br />

For signal-processing arithmetic operations such as gain<br />

adjustment, Y’, C B , and C R must be zero for black: The<br />

interface offsets must be removed. For 8-bit luma arithmetic,<br />

it is convenient to place reference black at<br />

code 0 and reference white at code 219. Color difference<br />

signals are most conveniently handled in two’s<br />

complement form, scaled so that reference color difference<br />

signals (at pure yellow, cyan, red, and blue) are<br />

±112. Figure 25.3 above shows the C BC R color difference<br />

plane scaled in this manner, without offsets.<br />

As far as I am concerned, the offsets should be treated<br />

as an interface feature. Most descriptions of Y’C B C R ,<br />

though – including SMPTE and ITU standards – take the<br />

Y’C B C R notation to include the offset. In the equations<br />

to follow, I include the offset terms in gray. If your goal<br />

is to compute abstract, mathematical quantities suitable<br />

for signal processing, omit the offsets. If you are<br />

concerned with the interface, include them.<br />

These equations form Rec. 601 Y’CBCR components<br />

from [Y’, B’-Y’, R’-Y’] components ranging [0 … +1]:<br />

601 601<br />

219Y’<br />

= 16 + ( 219⋅<br />

Y’ )<br />

112 601<br />

CB= 128+<br />

B’ Y’<br />

0 886 ( − )<br />

Eq 25.5<br />

.<br />

112 601<br />

CR= 128+<br />

( R’ − Y’<br />

0. 701 )<br />

CHAPTER 25 COMPONENT VIDEO COLOR CODING FOR SDTV 307<br />

Cy<br />

Mg<br />

B<br />

+112 CB axis

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

Saved successfully!

Ooh no, something went wrong!