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

Figure 10.8 Simplified decoder

R

 

 

Y

 

 

 

L*

 

[P]

 

 

 

 

 

 

 

 

 

 

G

 

 

 

 

0.42

 

 

 

 

 

B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the combination of the two has no net effect. Both functions can be dropped from the decoder:

-1 2.4

[P ]

Decoder signal processing simply inverts the encoder matrix. The 2.4-power function is intrinsic to a CRT display; alternative display technologies exhibit comparable mapping from signal value to tristimulus.

Rearranging the decoder requires that the encoder also be rearranged, so as to mirror the decoder and achieve correct end-to-end reproduction of the original RGB tristimulus values:

Figure 10.9 Rearranged encoder

R

 

 

 

 

R’

 

 

Y

-1

 

 

2.4

 

 

 

 

 

G’

 

 

 

 

 

 

G

 

 

 

 

[P]

 

 

 

 

[P ]

 

 

 

 

 

 

0.42

 

B’

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Television engineers who are uneducated in colour science often mistakenly call luma (Y’) by the name luminance and denote it by the unprimed symbol Y. This leads to great confusion, as I explain in Appendix A, on page 567.

Figure 10.9 represents the basic signal flow for all video systems; it will be elaborated in later chapters.

Luma

The rearranged flow diagram of Figure 10.9 is not mathematically equivalent to the arrangement of

Figures 10.1 through 10.4! In Figure 10.9, the encoder’s matrix does not operate on (linear-light) tristimulus signals, and relative luminance is not computed. Instead, a nonlinear quantity – denoted luma and symbolized Y’ – is computed and transmitted. Luma involves an engineering approximation: The system no longer adheres strictly to the principle of constant luminance (though it is often mistakenly claimed to do so).

In the rearranged encoder, we no longer use CIE L* to optimize for perceptual uniformity; instead, we use the inverse of the CRT’s inherent transfer function.

A 0.42-power function accomplishes approximately perceptually uniform coding, and reproduces tristimulus values proportional to those in the original scene.

The following chapter, Picture rendering, explains that the 0.42 value must be altered in a normal scene to

CHAPTER 10

CONSTANT LUMINANCE

111

about 0.5 to accommodate a perceptual effect. The alteration depends upon artistic intent, and upon display and viewing conditions. Ideally, display systems should have adjustments for picture rendering depending upon display and viewing conditions, but they rarely do!

“Leakage” of luminance into chroma

Until now, we have neglected the colour difference components. In the rearranged block diagram of Figure 10.9, colour difference components are “matrixed” from nonlinear (gamma-corrected) R’G’B’:

Figure 10.10 Chroma components

R

 

 

 

 

R’

 

Y’

-1

 

 

2.4

 

 

 

 

 

G’

 

CB

 

 

 

G

 

 

 

 

[P]

[P ]

 

 

 

 

 

 

0.5

 

B’

CR

 

 

 

 

B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In a true constant luminance system, no matter how the colour difference signals are handled, all of the relative luminance is carried by the greyscale component. In the rearranged system, most of the relative luminance is conveyed through the Y’ channel. However, to the extent that Y’ isn’t equal to Y, some relative luminance can be thought of as “leaking” into the colour difference components. If the colour difference components were not subsampled – for example, in a Y’CBCR, 4:4:4 system – this leakage would be inconsequential. However, the colour difference components are formed precisely to enable subsampling! So, we now turn our attention to subsampling.

Figure 10.11 below shows Figure 10.10’s practical block diagram augmented with subsampling filters in the chroma paths. With conventional coding, some of

R

R’

 

Y’

2.4

G’

 

-1

G

[P]

[P ]

 

0.5 B’

 

 

 

 

 

B

 

 

CB

 

 

 

 

 

CR

Figure 10.11 Subsampled chroma components

112

DIGITAL VIDEO AND HD ALGORITHMS AND INTERFACES

Figure 10.12 Y’ and CB/CR waveforms at the greenmagenta transition of SD colourbars are shown, following idealized 4:2:2 chroma subsampling. The luma waveform is plotted in grey; CB and CR share the same waveform, plotted in magenta. The transition rate (rise time) of the CB and CR components is half that of luma.

Figure 10.13 Luminance waveform at the green-magenta transition of colourbars is shown in the solid line. The dashed line reflects luminance in a hypothetical true constantluminance system.

 

 

1.0

 

 

 

 

0.8

 

 

 

 

0.6

 

 

 

 

0.4

 

 

 

 

0.2

 

 

-1.0

-0.5

 

0.5

1.0

 

 

-0.2

 

 

 

 

-0.4

 

 

 

 

1.0

 

 

 

 

0.8

 

 

 

 

0.6

 

 

 

 

0.4

 

 

 

 

0.2

 

 

-1.0

-0.5

0.0

0.5

1.0

Figure 10.14 Failure to adhere to constant luminance is evident in the dark band in the green-magenta transition of colourbars. The dark band is found upon displaying any colourbar signal that has been subject to chroma subsampling.

the relative luminance traverses the chroma pathways. Figure 10.12 above shows the idealized Y’CBCR waveforms at the green-magenta transition of colourbars, with 4:2:2 chroma subsampling. Figure 10.13 shows, in the solid line, the luminance that results after conventional decoding. Subsampling not only removes detail from the colour components, it removes detail from the “leaked” relative luminance. We have to ask, “What’s lost?” The departure from theory is apparent in the dark band appearing between the green and magenta colour bars of the standard video test pattern, depicted in Figure 10.14 in the margin.

With conventional video coding, in areas where luminance detail is present in saturated colours, relative luminance is incorrectly reproduced: relative luminance is reproduced too dark, and saturation is reduced. This inaccurate conveyance of high-frequency

CHAPTER 10

CONSTANT LUMINANCE

113

Livingston, Donald C. (1954), “Reproduction of luminance detail by NTSC color television systems,” in Proc. IRE 42 (1): 228–234.

luminance is the price that must be paid for lack of strict adherence to the principle of constant luminance. Such “Livingston” errors are perceptible by experts, but they are very rarely noticeable – let alone objectionable – in normal imagery.

To summarize signal encoding in video systems: First, a nonlinear transfer function, gamma correction, comparable to a square root, is applied to each of the linear R, G, and B tristimulus values to form R’, G’, and B’. Then, a suitably weighted sum of the nonlinear components is computed to form the luma signal (Y’). Luma approximates the lightness response of vision. Colour difference components blue minus luma (B’-Y’) and red minus luma (R’-Y’) are formed. (Luma, B’-Y’, and R’-Y’ can be computed from R’, G’, and B’ simultaneously, through a 3× 3 matrix.) The colour difference components are then subsampled (filtered), using one of several schemes – including 4:2:2, 4:1:1, and 4:2:0 – to be described starting on page 124.

This chapter has outlined how, in the development of NTSC, an engineering approximation to constant luminance was adopted rather than “true” constant luminance. This engineering decision has served spectacularly well, and has been carried into component video systems (SD and HD), and into modern compression systems such as JPEG, MPEG, and H.264.

Since about 2000, the majority of television receivers have incorporated digital signal processing that obviates the engineering argument made in 1950: The two nonlinear functions of Figure 10.6 could today be easily be implemented by lookup tables. Some purists believe that in the modern age we should abolish the approximation, and adopt the correct theoretical approach. However, the video infrastructure of SD and HD is built on Figure 10.9 (or with chroma subsampling,

Figure 10.11). It seems unreasonable to change the block diagram of video, and impose a huge conversion burden, unless substantial benefit can be shown.

I appreciate the theoretical argument; however, I am unaware of any significant benefit that would result from such a change, so I argue that we should not change the block diagram of video.

114

DIGITAL VIDEO AND HD ALGORITHMS AND INTERFACES

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