Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
литература / Digital_Video_and_HD_Second_Edition_Algorithms_and_Interfaces.pdf
Скачиваний:
0
Добавлен:
13.05.2026
Размер:
38.02 Mб
Скачать

Component video

colour coding for HD

30

Before BT.709 was established, SMPTE 240M-1988 for 1035i30 HD standardized luma coefficients based upon the SMPTE RP 145 primaries. Equipment deployed between about 1988 and 1997 used the 240M parameters, but SMPTE 240M is now obsolete. For details, see the first edition of this book.

In the previous chapter, Component video colour coding for SD, I detailed various component colour coding systems that use the luma coefficients specified in BT.601. Unfortunately, for no good technical reason, BT.709 for HD standardized different luma coefficients. Deployment of HD requires upconversion and downconversion capabilities both at the studio and at consumers’ premises; this situation will persist for a few decades. Owing to this aspect of conversion between HD and SD, if you want to be an HD expert, you have to be an SD expert as well!

Today’s computer imaging systems – for still frames, desktop video, and other applications – typically use the BT.601 parameters, independent of the image’s pixel count (“resolution independence”). In computer systems that perform HD editing, it is highly desirable that all of the content on the same timeline uses the same colour coding, but there’s no simple answer whether BT.601 or BT.709 coding should be used. Generally, it is sensible to retain the BT.601 coefficients.

In this chapter, I assume that you’re familiar with the concepts of Luma and colour differences, described on page 335. I will detail these component sets:

B’-Y’, R’-Y’ components, the basis for PBPR and CBCR

PBPR components, used for analog interfaces

CBCR components, used for digital interfaces

B’-Y’, R’-Y’ components for BT.709 HD

The B’-Y’ component reaches its positive maximum at blue (R’=0, G’=0, B’=1). With BT.709 luma coefficients, the maximum of B’-Y’ = +0.9278 occurs at

369

Figure 30.1 B’-Y’, R’-Y’

components for BT.709 HD

 

+1

R’-Y’ axis

 

 

R

+0.7874

 

 

 

Mg

 

 

 

+0.9278

Yl

 

 

 

-1

0

B+1

B’-Y’ axis

 

G

 

 

 

G

 

 

 

 

Cy

 

 

-1

 

 

Y’=0.0722. The B’-Y’ component reaches its negative maximum at yellow (B’-Y’ =-0.9278). Analogously, the extrema of R’-Y’ occur at red and cyan at values ±0.7874 (see Figure 30.1 above). These are inconvenient values for both digital and analog systems. The 709Y’PBPR and 709Y’CBCR systems to be described both employ versions of [Y’, B’-Y’, R’-Y’] that are scaled to place the extrema of the component values at more convenient values.

To obtain [Y’, B’-Y’, R’-Y’], from R’G’B’, for BT.709 luma coefficients, use this matrix equation:

 

709

 

 

0.2126

0.7152

0.0722

R'

 

 

 

Y'

 

 

B'709Y'

 

 

0.7152

 

 

 

 

= −0.2126

0.9278

G'

Eq 30.1

 

 

709

 

 

0.7874

0.7152

 

 

 

R'

Y'

 

0.0722

B'

 

 

 

 

 

 

 

 

 

 

 

 

PBPR components for BT.709 HD

If two colour difference components are to be formed having excursions identical to luma, then PB and PR colour difference components are used. For BT.709 luma, the equations are these:

709P

=

0.5

 

B'709Y'

=

1

B'709Y'

0.5389

B'709Y'

10.0722

1.8556

B

 

 

 

 

 

 

 

 

 

Eq 30.2

 

0.5

 

R'709Y'

 

1

R'709Y'

0.6350

R'709Y'

709P

=

 

=

10.2126

1.5748

R

 

 

 

 

 

 

 

 

 

370

DIGITAL VIDEO AND HD ALGORITHMS AND INTERFACES

 

+0.5

PR axis

 

 

 

R

Mg

 

 

 

 

 

 

 

Yl

 

 

 

-0.5

0

B

+0.5

PB axis

Figure 30.2 PBPR components

G

Cy

 

 

for BT.709 HD

-0.5

 

 

 

 

 

 

 

These scale factors limit the excursion of each colour difference component to the range ±0.5 with respect to unity luma excursion: 0.0722 in the first expression above is the luma coefficient of blue, and 0.2126 in the second is for red. At an HD analog interface, luma ranges from 0 mV (black) to 700 mV (white), and PB and PR analog components range ±350 mV. Figure 30.2 above shows a plot of the [PB, PR] plane.

Expressed in matrix form, the B’-Y’ and R’-Y’ rows of Equation 30.1 are scaled by 0.50.9278 and 0.50.7874. To encode from R’G’B’ where reference black is zero and reference white is unity:

 

 

709

 

 

 

Y'

Eq 30.3

 

P

 

 

 

B

 

 

 

PR

 

 

 

 

 

 

0.2126

0.7152

0.0722

 

R'

 

 

0.385428

0.5

 

 

 

= −0.114572

 

G'

 

0.5

0.454153

 

 

 

 

 

0.045847

B'

The inverse, decoding matrix is this:

 

 

 

0

1.5748

 

 

709

 

 

R'

1

 

 

Y'

 

G'

= 1

0.187324

0.468124

P

 

Eq 30.4

 

 

 

1.8556

0

 

 

B

 

 

B'

1

 

 

PR

 

 

 

 

 

 

 

 

 

 

 

 

CBCR components for BT.709 HD

709Y’CBCR coding is used in component digital HD equipment. In 8-bit systems, luma has an excursion of 219. Colour differences CB and CR are coded in 8-bit

CHAPTER 30

COMPONENT VIDEO COLOUR CODING FOR HD

371

Figure 30.3 CBCR components for BT.709 HD are shown referenced to 8-bit processing levels. At an 8-bit interface, an offset of +128 is added to each component.

 

+112

CR axis

 

 

R

Mg

 

 

 

 

 

Yl

 

 

-112

0

B

+112 CB axis

 

G

Cy

 

 

 

 

 

-112

 

 

offset binary form, with excursions of ±112. The [CB, CR] plane of HD is plotted in Figure 30.3.

In 8-bit systems, a luma offset of +16 is added at the interface, placing black at code 16 and white at code 235; an offset of +128 is added to CB and CR, yielding a range of 16 through 240 inclusive. (Following the convention of the previous chapter, in the equations to follow I write the offset terms in colour.) HD standards provide for 10-bit components, and 10-bit studio video equipment is commonplace. In a 10-bit interface, the 8-bit interface levels and prohibited codes are maintained; the extra two bits are appended as least-signifi- cant bits to provide increased precision.

To form 709Y’CBCR from [Y’, B’-Y’, R’-Y’] components in the range [0…+1], use these equations:

Eq 30.5

709Y’= 16+ (219 709Y’)

 

 

219

 

 

 

 

 

 

CB = 128

+

112

(B’

 

709Y’)

 

0.9278

 

 

 

 

(R’

 

709Y’)

 

CR = 128

+

112

 

 

0.7874

 

 

 

 

 

 

 

To obtain 709Y’CBCR from R’G’B’ ranging 0 to 1, scale the rows of the matrix in Equation 30.3 by the factors

372

DIGITAL VIDEO AND HD ALGORITHMS AND INTERFACES

Соседние файлы в папке литература