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

Owing to the dependence of the optimum end-to-end power function upon viewing conditions, there here ought to be a user control for rendering intent – perhaps even replacing brightness and contrast – but there isn’t!

the display primaries must be the same as – or at least very similar to – the interchange primaries.

The transfer functions of the decoder (or the CRT) are intertwined with gamma correction. As explained on page 115, an end-to-end power function having an exponent of about 1.2 is appropriate for typical television acquired at studio lighting levels and viewed at 100 nt in a dim surround. The encoder of Figure 28.8 imposes a 0.5-power function; the decoder of

Figure 28.9 imposes a 2.4-power function. The product of these implements the end-to-end power function. If the native EOCF of a display device differs from that of a CRT, then decoding should include a transfer function that is the composition of a 2.4-power function and the inverse transfer function of the display device.

When viewing a rather bright display (say 320 nt) in an average surround (say 20%), a 1.1 end-to-end power is appropriate; a 2.2-power EOCF (like that of sRGB) is appropriate. When viewing in a dark (0%) surround,

a 1.3 end-to-end power is appropriate; a 2.6-power EOCF (like that of digital cinema) is appropriate.

If the display primaries match the interchange primaries, the decoder’s 3× 3 tristimulus matrix is not needed. If a display has primaries not too different from the interchange primaries, then it may be possible to compensate the primaries by applying a 3× 3 matrix in the nonlinear domain. But if the primaries are quite different, it will be necessary to apply the transform between primaries in the tristimulus domain; see Transforms among RGB systems, on page 309.

 

 

 

 

640

 

 

 

 

 

 

 

 

 

 

 

 

601Y’CBCR

720

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1920

 

 

 

 

 

 

 

480

 

 

SD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

709Y’CBCR

HD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1080

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 28.10 Luma/colour difference flavors

SD and HD luma chaos

Although the concepts of Y’PBPR and Y’CBCR coding are identical in SD and HD, the BT.709 standard established a new set of luma coefficients for HD. That set differs dramatically from the luma coefficients for SD specified in BT.601. There are now two flavors of Y’CBCR coding, as suggested by Figure 28.10 in the margin;

I denote the flavors 601Y’CBCR for SD, and 709Y’CBCR for HD. Similarly, there are two flavors of Y’PBPR for analog systems, 601Y’PBPR for SD, and 709Y’PBPR for HD.

In my view, it is extremely unfortunate that different coding was adopted: Image coding and decoding now depend on whether the picture is small (conventional

350

DIGITAL VIDEO AND HD ALGORITHMS AND INTERFACES

It’s sensible to use the term colourbar test signal (or pattern) instead of colourbar test image, because the signal is standardized, not the image.

System

Luma

EOCF

Primary

coefficients

chromaticities

 

 

 

 

SD 480i

BT.601

unspecified

SMPTE RP 145

SD 576i

BT.601

unspecified

EBUTech. 3213

HD 720p,

BT.709

BT.1886

BT.709

1080i,

 

 

 

1080p

 

 

 

 

 

 

 

Table 28.1 luma coefficients, EOCF, and primary chromaticities for video decoding and display circa 2011 are summarized. Encoding in all systems should be accomplished through forming R’G’B’ values that yield the intended image appearance in the reference display and viewing conditions. For SD, there is no effective standard for either the reference EOCF or the viewing conditions. For HD, BT.1886 standardizes the reference EOCF, but not the viewing conditions.

video, SD) or large (HD); that dependence erodes the highly useful concept of resolution-independent production in the Y’CBCR 4:2:2 and 4:2:0 domains. In my opinion, HD should have been standardized with the BT.601 luma coefficients. With things as they stand, the smorgasbord of colour-encoding parameters makes accurate image interchange extremely difficult. The situation is likely to get worse with time, not better.

Table 28.1 above summarizes the standards for primary chromaticities, transfer functions, and luma coefficients that are either implicit or explicit in several SD and HD standards. When video is converted among these standards, appropriate processing should be performed in order to preserve the intended colour.

The colourbar test signal is standardized in the R’G’B’ domain, without any reference to primaries, transfer function, or luma coefficients. The colours of the bars depend upon which primary chromaticities are in use; the luma and colour difference levels of the bars depend upon which luma coefficients are in use. When colour conversions and standards conversions are properly performed, the colours and levels of the colourbar test signal will change!

CHAPTER 28

LUMA AND COLOUR DIFFERENCES

351

Luma/colour difference component sets

These colour difference component sets, all based upon B’-Y’ and R’-Y’, are in use:

Y’PBPR coding is used in component analog video; PB and PR are scaled to have excursion nominally identical to that of luma. Y’PBPR can be potentially based upon either BT.601 (for SD) or BT.709 (for HD). In 480i29.97

SD, three different analog interface standards are in use: EBU N10 “SMPTE,” Sony, and Panasonic.

Y’CBCR coding is used for component digital video; CB and CR are scaled to have excursion 224219 that of luma. A “full-range” variant is used in JPEG/JFIF. Y’CBCR

can be potentially based upon BT.601 or BT.709 luma coefficients.

In Chapter 5, NTSC and PAL Chroma modulation, of Composite NTSC and PAL: Legacy Video Systems, I detail two additional component sets, now obsolete, whose proper use was limited to composite SD NTSC and PAL:

Y’UV components are only applicable to composite NTSC and PAL systems. B’-Y’ and R’-Y’ are scaled so as to limit the excursion of the composite (luma plus modulated chroma) signal. Y’UV coding is always based upon BT.601 luma coefficients.

Y’IQ components were historically used in composite NTSC systems from 1953 to about 1970. UV components were rotated 33°, and axis-exchanged, to enable wideband-I transmission. This obsolete technique has not been practiced since about 1970. Y’IQ coding was always based upon the luma coefficients now documented in BT.601.

The bewildering set of scale factors and luma coefficients in use is set out in Table 28.2A opposite for analog SD, Table 28.2B overleaf for digital SD and computing systems, and Table 28.2C for analog and digital HD. The following two chapters detail component colour coding for SD and HD, respectively.

352

DIGITAL VIDEO AND HD ALGORITHMS AND INTERFACES

System

Notation

Colour difference scaling

 

 

 

 

1 Component analog video, 480i

601Y’

P P ,

The EBU N10 standard calls for 7:3 picture-

(EIA/CEA-770 and “SMPTE”) and

700

145

B R

to-sync ratio, 700 mV luma excursion with

576i EBU N10; also, 480i

601Y’

P P

zero setup. PB and PR components are

Panasonic M-II, zero setup

700

EBU B R

scaled individually to range ±350 mV, an

(Japan)a

 

 

 

excursion identical to luma.

2 Component analog video, 480i

601

 

 

Sony de facto standards call for 10:4

Sony, 7.5% setupa

661Y’145PBPR

picture-to-sync ratio, 7.5% setup, and

 

 

 

 

black-to-white luma excursion of

 

 

 

 

approximately 661 mV. PB and PR

 

 

 

 

components are scaled individually to

 

 

 

 

range 4⁄ times ±350 mV, that is,

 

 

 

 

3

 

 

 

 

±46623 mV.

3 Component analog video, 480i

601

 

 

Sony de facto standards call for 10:4

Sony, zero setup (Japan)a

714Y’145PBPR

picture-to-sync ratio, zero setup, and

 

 

 

 

black-to-white luma excursion of

 

 

 

 

approximately 714 mV. PB and PR

 

 

 

 

components are scaled individually to

 

 

 

 

range 4⁄ times ±350 mV, that is,

 

 

 

 

3

 

 

 

 

±46623 mV.

4 Component analog video, 480i

601

 

 

Panasonic de facto standards call for 7:3

Panasonic, 7.5% setupa

647Y’145PBPR

picture-to-sync ratio, 7.5% setup, and

 

 

 

 

black-to-white luma excursion of

 

 

 

 

approximately 647.5 mV. PB and PR

 

 

 

 

components are scaled individually to

 

 

 

 

range 3740 times ±350 mV, that is,

 

 

 

 

±323.75 mV.

5 Composite analog NTSC, PAL

various, typ.

U and V are scaled to meet a joint

video (incl. S-video)

601Y’

UV,

constraint: Scaling is such that peak

 

700

EBU

composite video – luma plus modulated

 

601Y’

 

 

IQ,

chroma – is limited to 43 of the blanking-

 

714

145

 

to-white excursion. Rotation and exchange

 

761041Y’145UV

 

of axes (e.g., I and Q) cannot be

 

 

 

 

distinguished after analog encoding. There

is no standard component interface.

Table 28.2A Colour difference systems for analog SD. The EBU N10 levels indicated in the shaded (first) row are sensible but unpopular. Designers of 480i SD studio equipment were forced to implement configuration settings for three interface “standards”: EBU N10 (“SMPTE”), Sony, and Panasonic.

aThe component analog interface for consumer equipment (such as DVD players) is properly

scaled Y’PBPR, according to EIA/CEA-770.2 (cited on page 454). Some consumer equipment

was engineered and deployed with incorrect Y’PBPR scaling. Certain consumer devices have rear-panel connectors labelled Y, B-Y, R-Y, or YUV; these designations are plainly wrong.

CHAPTER 28

LUMA AND COLOUR DIFFERENCES

353

System

Notation

Colour difference scaling

 

 

 

6 Component digital video: 4:2:0,

601

BT.601 calls for luma range 0…219, offset

4:1:1, BT.601 4:2:2

219Y’145CBCR

+16 at the interface. C

and C are scaled

(incl. M-JPEG, MPEG, DVD,

 

 

 

B

R

 

individually to range ±112, an excursion

DVC)

 

224219 of luma, offset +128 at the

 

 

interface. Codes 0 and 255 are prohibited.

7 Component digital stillframe

601

There is no comprehensive standard. Luma

JPEG (incl. JFIF 1.02), typical

255Y’709CBCR

reference range is typically 0 through 255.

desktop publishing and the web.

 

CB and CR are typically scaled individually

Transfer functions vary; see the

 

to a “full-swing” of ±128, an excursion

marginal note on page 335.

 

256

255

that of luma. C

and C codes +128

 

 

 

B

R

are clipped; fully saturated blue and fully saturated red cannot be represented.

Table 28.2B Colour difference systems for digital SD and computing. The scaling indicated in the first row is recommended. For details of obsolete SD systems, see the table Colour difference systems for analog composite SD and digital 4fSC SD, in Chapter 14 of Composite NTSC and PAL: Legacy Video Systems. (Row numbering here is discontinuous so as to mesh with that table.)

 

System

Notation

 

Colour difference scaling

 

 

 

 

 

 

11

Component analog HD

709

 

7:3 picture-to-sync ratio, 700 mV luma

 

 

700Y’709PBPR

excursion with zero setup. P

and P

 

 

 

 

B

R

 

 

 

 

components are scaled individually to

 

 

 

 

range ±350 mV, an excursion identical to

 

 

 

 

luma.

 

12

Component digital HD

709

 

BT.709 calls for luma range 0…219, offset

 

(BT.709/BT.1886)

219Y’709CBCR

+16 at the interface. C and C are scaled

 

 

 

 

B

R

 

 

 

 

individually to range ±112, an excursion

 

 

 

 

224219 of luma, offset +128 at the

 

 

 

 

interface. Codes 0 and 255 are prohibited.

13

Component digital HD (xvYCC)

xvYCCY’

C C

xvYCC Y’CBCR is identical to BT.709

 

 

2219 709

B R

Y’C C , except that some codewords

B R

outside the R’G’B’ unit cube represent wide-gamut colours.

Table 28.2C Colour difference systems for HD. The luma coefficient set for HD differs significantly from that of SD.

354

DIGITAL VIDEO AND HD ALGORITHMS AND INTERFACES

Part 3

Practical matters

29Component video colour coding for SD 357

30Component video colour coding for HD 369

31Video signal processing 377

32Frame, field, line, and sample rates 389

33Timecode 399

342-3 pulldown 405

35Deinterlacing 413

36Colourbars 419

This page intentionally left blank

Video uses the symbols U and V to represent certain colour difference components. The CIE defines the pairs [u, v], [u’, v’], and [u*, v*]. All of these pairs represent chromatic or chroma information, but they are all numerically and functionally different. Video [U, V] components are neither directly based upon, nor superseded by, any of the CIE colour spaces.

Component video

colour coding for SD

29

Various scale factors are applied to the basic colour difference components B’-Y’ and R’-Y’ for different applications. In the previous chapter, I introduced luma and colour difference coding; in this chapter, I will detail the following coding systems:

B’-Y’, R’-Y’ components form the numerical basis for all the other component sets; otherwise, they are not directly used.

PBPR components are used for component analog video (including analog interfaces in devices such as

DVD players and set-top boxes).

CBCR components as defined in BT.601 and BT.709 are used for component digital video, including studio

video, DV, MPEG, and H.264.

•“Full-swing” (or “full-range”) CBCR components are used in JPEG/JFIF.

UV components are used for composite NTSC or PAL, as described in UV components, in Chapter 5 of

Composite NTSC and PAL: Legacy Video Systems.

IQ components were historically used for composite NTSC until about 1970, as described in Chapter 4, NTSC Y’IQ system, of Composite NTSC and PAL: Legacy Video Systems.

Y’UV and Y’IQ are intermediate quantities toward the formation of composite NTSC, PAL, and S-video. Neither Y’UV nor Y’IQ has a standard component interface, and neither is appropriate when the components are kept separate. Unfortunately, the Y’UV nomenclature has come to be used rather loosely, and some people use Y’UV to denote any scaling of B’-Y’ and R’-Y’.

357

For a discussion of primary chromaticities, see page 290.

The coding systems described in this chapter can be applied to various RGB primary sets – EBU 3213, SMPTE RP 145 (or potentially even BT.709). BT.601 does not specify primary chromaticities: SMPTE RP 145 primaries are implicit in 480i SD, and EBU 3213 primaries are implicit in 576i SD. However, virtually all of modern consumer receivers interpret content – whether SD or HD – according to BT.709 primaries. As I write, program content created in North America is mastered with SMPTE primaries (contrary to the spirit and letter of ITU-R, SMPTE, and ATSC standards) and content created in Europe is mastered to EBU primaries. However, all of this content is displayed in the consumer domain using BT.709 primaries. We look forward to the day when content creators actually master using the BT.709 colour space.

The equations for [Y’, B’-Y’, R’-Y’], Y’PBPR, and Y’CBCR can be based upon either the BT.601 luma coefficients of SD or the BT.709 coefficients of HD. The equations and figures of this chapter are based upon the BT.601 coefficients. Unfortunately, the luma coefficients that have been standardized for HD are different from those of BT.601. Concerning the HD luma coefficients, see BT.709 luma on page 346; for details of HD colour difference components, see the following chapter, Component video colour coding for HD, on page 369.

Chroma components are properly ordered B’-Y’ then R’-Y’; or PB then PR; or CB then CR. Blue associates with U, and red with V; U and V are ordered alphabetically. The subscripts in CBCR and PBPR are often written in lowercase. In my opinion, this compromises readability, so I write them in uppercase. The B in CB serves as a tag, not a variable, so I set it in Roman type (that is, upright, not italic). Authors with great attention to detail sometimes “prime” CBCR and PBPR to indicate their nonlinear origin, but no standard or deployed image coding system has employed linear-light colour differences, nor would that be sensible for perceptual reasons, so I omit the primes.

358

DIGITAL VIDEO AND HD ALGORITHMS AND INTERFACES

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