VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak...

8
is identical in both SD and HD digital systems. This issue reviews the assignments of levels and ranges within the 10-bit range of numbers for both Y and C, deals with numbers in both binary and hexadecimal (hex), presents some data observations for common signals, explains conversion from analog to digital and presents data levels for all colors in 100% and 75% color bars for both SD and HD systems. Y Signals 1024 discrete levels. But not all are used for video levels. See Fig. 1.The binary numbers at the very bottom and top of the available range are excluded from use as video levels, and -7.3 -51.1 Excluded VOLUME 3 NUMBER 4 Teleproduction Test is produced by Leader Instruments Corporation, a manufacturer of video, audio and industrial test instruments. Permission is granted to reprint part or all of the contents provided a credit line is included listing the following: Leader Instruments Corporation 6484 Commerce Drive Cypress, CA 90630 1 (800) 645-5104 • www.LeaderUSA.com • e-mail: [email protected]

Transcript of VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak...

Page 1: VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak White 109.5 766.3 Excluded IRE mV 0.0 0.0 Black-7.3 -51.1 Excluded 11 1010 1100 3AC

The system set up to establish video levelsis identical in both SD and HD digital systems.This issue reviews the assignments of levelsand ranges within the 10-bit range of numbersfor both Y and C, deals with numbers in bothbinary and hexadecimal (hex), presents somedata observations for common signals, explainsconversion from analog to digital and presentsdata levels for all colors in 100% and 75% colorbars for both SD and HD systems.

Y Signals

The 10-bit system offers a range of 210 or1024 discrete levels. But not all are used forvideo levels. See Fig. 1.The binary numbers atthe very bottom and top of the available rangeare excluded from use as video levels, and

Fig. 1 Y Signal levels

reserved for use in the preambles (a sort of"heads up") for sync words. The numbers arezero ( 000) and 11 1111 1111 in binary (3FF inhex). Note that the black level converts to 040in hex and peak white converts to 3AC. Keepthese numbers in mind. A range of levels abovepeak white and below black is provided for bothheadroom and "footroom." However the hex val-ues 000 to 003 and 3FC to 3FF are set asidefor sync purposes.

C Signals

The color-difference signals, B-Y and R-Ylabeled Cb and Cr, are scaled to fit the fullspan of 100% (± 350 mV) and placed upon a50% pedestal so that the full range is in positivenumbers. See Fig, 2.

Fig. 2 Chroma Signal levels

100.00 700.0 Peak White109.5 766.3 Excluded

IRE mV

0.0 0.0 Black -7.3 -51.1 Excluded

11 1010 1100 3AC11 1111 1111 3FF BINARY HEX

00 0100 0000 040 00 0000 0000 000

A D

100.00 700.0 Peak White109.5 766.3 Excluded

IRE mV

0.0 0.0 Black -7.3 -51.1 Excluded

11 1010 1100 3AC11 1111 1111 3FF BINARY HEX

00 0100 0000 040 00 0000 0000 000

A D

DIGITAL VIDEO LEVELS

VOLUME 3 NUMBER 4

Teleproduction Test is produced by Leader Instruments Corporation, a manufacturer of video, audio and industrial test instruments. Permission isgranted to reprint part or all of the contents provided a credit line is included listing the following:

Leader Instruments Corporation6484 Commerce Drive Cypress, CA 90630

1 (800) 645-5104 • www.LeaderUSA.com • e-mail: [email protected]

Page 2: VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak White 109.5 766.3 Excluded IRE mV 0.0 0.0 Black-7.3 -51.1 Excluded 11 1010 1100 3AC

Note that the Cb and Cr swings sit on a pedestalat 200 in hex. In addition the peak extendssomewhat higher to 3C0 in comparison to the3AC peak in Y.

Data Displays

Figure 3 shows the serial data display fromthe LV 5100D. The signal is 100% color barsand line-select has been set to line 33 to makesure the line to be observed is in the active pic-ture area. The MODE has been set to LINE

Fig. 3 Serial data display

in which samples are listed in the order in whichthey occur, starting with Cb and continuing withY, Cr, Y'. Cb…The sample address has beenset to 0000 to show the first sample, Cb, afterSAV (Start of Active Video). Since the earlysamples for 100% bars will be for the white barthe chroma values Cb and Cr are zero so thatthe value of the chroma pedestal, 200, willappear for Cb and Cr throughout the white bar.Note that Y starts out at 040 (black) and begins

Fig. 4 Y reaches 3AC at address 0019.

rising at address (0005). By advancing the sam-ple address you will see that Y reaches 3AC ataddress (0019). See Fig. 4. What you haveobserved in data is the rise time of the whitebar.

An alternative data display is obtained byselecting the COMPONENT <MODE>. (TouchF-2 to the right of the screen.) Here the data isrearranged to appear in columns of Y, Cb andCr. Look at Fig. 5. Of the 1440 active samplesper line half (720) are Y. These are shown inpairs for Y and Y' in the left columns, and the

Fig. 5 Component data display

addresses range from 0000 to 0719. The chro-ma addresses are co-sited with the Y samples.Note that the chroma addresses are half of theaddress for Y. This particular snapshot for datais near the end of the transition from the whiteto the yellow bar. Y has reached 348, the cor-rect Y value for yellow in 100% bars, but theslower rise time of Cb and Cr have kept Cb andCr from reaching 040 and 249 at address 0049.

The next four pages present values for100% and 75% color bars for both SD and HDsystems. Levels for decoded signals are givenin % (IRE), millivolts and Hex. The differencebetween SD and HD values is the result of col-orimetry differences between the two systems.SD values are based on the SMPTE formula forY in use in the NTSC system:

Y = 29.9%R + 58.7%G + 11.4%B

Y for HD systems is calculated using theformula given in SMPTE RP-177 and 274M:

Y = 21.26%R + 71.52%G + 7.22%B

Note the increase in green and the reduction ofred and blue.

Page 3: VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak White 109.5 766.3 Excluded IRE mV 0.0 0.0 Black-7.3 -51.1 Excluded 11 1010 1100 3AC

WHT YEL CYAN GRN MAG RED BLU BLK

Y

100.00700.03AC

%mVHEX

92.78649.536D 78.74

551.22F2

71.52500.62B2

28.40199.413A

21.26148.80FA

7.2250.507F

0.000.0040

Cb

Cr

50.00350.0200

0.000.0040

61.46430.2267

11.4680.20A7

88.54619.8359

38.54269.8199

100.00700.03C0

50.00350.0200

50.00350.0200

54.58382.1229

0.000.0040

4.5832.1069

95.42667.9397

100.00700.03C0

45.42317.91CE

50.00350.0200

Bar-CenterAddress

0123 0364 0602 0841 1079 1318 1557 1786

gpm1/02

Levels in % (IRE), millivolts and HEX for 100% color bars in accordance withSMPTE RP-177 and 274M based on the formula Y= 21.26%R+71.52%G+7.22%B.

HD 100% COLOR BARS

Page 4: VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak White 109.5 766.3 Excluded IRE mV 0.0 0.0 Black-7.3 -51.1 Excluded 11 1010 1100 3AC

WHT YEL CYAN GRN MAG RED BLU BLK

100.00700.03AC

%mV

HEX

69.56487.12A2

59.06413.4245

53.64375.5216

21.36149.50FB

15.95111.70CC

5.4237.906F

0.000.0040

50.00350.0200

12.519.40B0

58.59410.124D

21.09147.60FD

78.91552.4303

41.4289.81B3

87.50612.5350

50.00350.0200

50.00350.0200

53.45374.221F

12.5087.50B0

15.94111.60CF

84.06558.4331

87.50612.5350

46.60326.21E1

50.00350.0200

Y

Cb

Cr

Bar-CenterAddress 0123 0364 0602 0841 1079 1318 1557 1786

gpm1/02

Levels in % (IRE), millivolts and HEX for 75% color bars in accordance withSMPTE RP-177 and 274M based on the formula Y = 21.26%R+71.52%G+7.22%B.

HD 75% COLOR BARS

Page 5: VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak White 109.5 766.3 Excluded IRE mV 0.0 0.0 Black-7.3 -51.1 Excluded 11 1010 1100 3AC

WHT YEL CYAN GRN MAG RED BLU BLK

100.0700.03AC

%mV

HEX

50.0350.0200

0.00.0040

66.9468.3297

16.9118.30D7

83.1581.7329

33.1231.7169

100.0700.03C0

50.0350.0200

50.0350.0200

58.1406.7249 0.0

0.0040

8.156.7089

91.9643.3377

100.0700.03C0 41.9

293.31B7

50.0350.0200

Bar-CenterAddress 0097 0279 0451 0625 0803 0985 1157 1335

Y

Cb

Cr

gpm1/02

Levels in % (IRE), millivolts and HEX for 100% color bars for SD (601) signals based on the formulaY = 29.9%R + 58.7%G + 11.4%B.

88.6620.2348 70.1

490.72A6 58.7

410.9242

41.3289.11AA

29.9209.3146 11.4

79.80A4

0.00.0040

SD 100% COLOR BARS

Page 6: VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak White 109.5 766.3 Excluded IRE mV 0.0 0.0 Black-7.3 -51.1 Excluded 11 1010 1100 3AC

WHT YEL CYAN GRN MAG RED BLU BLK

100.0700.03AC

%mVHEX

Y66.5465.5286 52.6

368.220D

44.0308.01C2

30.9216.814F

22.4157.0104 8.6

59.908B

0.00.0040

Cb

50.0350.0200

12.587.50B0

62.6438.2271

25.2176.4121

74.9524.32DF

37.4261.818F

87.5612.5350

50.0350.0200

50.0350.0200

56.1392.7237

12.587.50B0

18.6130.20E7

81.5570.5319

87.5612.5350

43.9307.31C9

50.0350.0200

Cr

Bar-CenterAddress 0097 0279 0451 0625 0803 0985 1157 1335

Levels in % (IRE), mill ivolts and HEX for 75% color bars for SD (601) signals based on the formulaY = 29.9%R + 58.7%G + 11.4%B.

SD 75% COLOR BARS

Page 7: VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak White 109.5 766.3 Excluded IRE mV 0.0 0.0 Black-7.3 -51.1 Excluded 11 1010 1100 3AC

HD Data

HD data is shown in a fashion similar toSD. The levels used are the same, i.e. 40 isblack in hex for Y and 3AC is equivalent to100%. The normal span of color signals rangesfrom 40 to 3C0. Look back at Figs.1 and 2, andthe drawings on the previous pages. There aresome differences in presentation, however. SeeFig. 6 which shows data for a 1080i 59.94 sig-nal in the SERIAL form on the LV 5152DA(called LINE in the LV 5100D).

Fig. 6 Serial HD data on the LV 5152DA

The first thing you will notice is that thereappears to be twice as many addresses. Thereare eight SAV addresses instead of the four yousee in SD. The reason is that Y and C are car-ried by separate cables in the parallel outputfeeds of the A/D converter. These are joined atthe input to the serializer so we see SAV sig-nals for both Y and C. (This is also the reasonthat the final serial data rate is 1.483 Mbs.) Thesample frequency for Y and C is 74.17 Mbs.These are joined at the serializer to become148.34 Mbs. The 10-bit serializer multiplies by10 to yield the 1.483-Gbs serial signal.

Number Crunching

What follows is a simplified illustration ofhow the numbers on the previous pages arearrived at. Levels in %, mV and hex for the yel-low bar in HD 100% bars are worked out. Thestarting point is the HD Y formula:

Y = 0.2126R + 0.7152G + 0.0722B

Considering yellow from a perfect source of100% signals R and G are at 100%. B is atzero. Taking the above fractions for R and G weget Y for the yellow bar to be 21.26 + 71.52 =92.78%. Multiplying 700mV by 0.9278 yields649.46 rounded to 649.5.

To find the hex value we have to considerthe range in decimal values from black to 100%white. Black is 040 in hex which coverts to 064in decimal. This conversion is done easily onthe WINDOWS® calculator. Go to ACCES-SORIES then CALCULATOR on your PC.When the calculator page appears hit VIEWand select SCIENTIFIC. Here you can selectHEX and enter 40. Then select DEC and read64. The same procedure for peak white: 3AC inhex, yields 940. Thus in decimal the range fromblack to peak white is 940-64 = 876. Now we'lltake 0.9278 of 876 to find the value aboveblack in decimal to be 813. Add this to the blacklevel at 64 to find the total decimal value of 877.Enter this number in DEC on your PC calculatorand hit HEX to read 36D.

The color difference signals are a little moreinvolved because the Cb and Cr swingsexceed 100% and we have to add in that 50%pedestal. Consider Cb (B-Y). The blue signal isat zero so B-Y becomes 0-92.78 or -92.78. TheB signal for the blue bar is 100 - 7.22 = +92.78.This yields a p-p swing for B-Y of 185.66%.This would clearly overload a system set up fora span of 100%. To remedy this situation a"Squash" factor of 100/185.66 or 0.5389 isapplied to B-Y. Applying the squash factor to thecalculated B-Y for the yellow bar yields -92.78 x 0.53891 =- 50.00.Now to add that 50% pedestal to find the value

of Cb (B-Y) for the blue bar to be zero, which(as you have learned) is 040 in hex.

If you look at the HD 100% color bar sig-nals for Cb on the previous pages you will seethat it swings to zero at the yellow bar and to100% at the blue bar. Similarly Cr (R-Y) has itspeak excursion at the cyan and red bars. If weredo for R-Y what we just did for B-Y we wouldfind that the p-p swing between cyan and red is157.48% p-p requiring a squash factor of 0.635to bring Cr into the 100% limit.

Getting back to Cr for the yellow bar we seethat the red signal for yellow is at 100% makingR-Y 100%- 92.78= 7.22. Applying the Crsquash factor of 0.635 yields 4.58. Adding the50% pedestal brings Cr level for the yellow barto 54.58%. In millivolts this is 700 x 0.5458 or382.1 mV. Now for the hex value: The totalchroma excursion is from 040 to 3C0.Converting this to decimal the range becomes064 to 960 for a number span of 896. Now 896x 0.5458 = 489 + the 64 at black yields 553 asthe decimal level for Cr at the yellow bar.Converting to hex via the PC calculator yields229.

Those "squash" factors developed aboveare found in all current color systems. The fac-tors are 0.492 for B-Y and 0.877 for R-Y in the

Page 8: VOLUME 3 NUMBER 4 DIGITAL VIDEO LEVELS · 2014. 4. 15. · 00 0000 0000 000 AD 100.00 700.0 Peak White 109.5 766.3 Excluded IRE mV 0.0 0.0 Black-7.3 -51.1 Excluded 11 1010 1100 3AC

NTSC system. The effect of the squash factorsmust be reversed when converting back to GBRfrom Y, B-Y and R-Y. For example, Cb in HDmust be amplified by 1/0.5389 = 1.8556.Similarly Cr must be amplified by 1/0.635 =1.5748. In effect B-Y is almost doubled and R-Yalso given a big boost in the recovery of GBR.G-Y, it turns out receives very little boost. (Everwonder why chroma noise always looks pur-ple?)

Data in the Blanking Intervals

A very useful feature of the data display isthe ability to show embedded audio and specialcodes. Let's look at two examples. The first is inthe SD format and is the EDH (Error Detection& Handling) codes. If EDH is present in the sig-nal (enabled in the generator) the EDH LED onthe front panel of the LV 5100D or DE will glow.This signal is placed on line 9 and 272, and thepreamble starts at address 1689. Figure 7shows the setup using the LINE (serial) datadisplay with line 9 selected and address 1688 atthe top.

Fig. 7 EDH Codes

The preamble is 000, 3FF, 3FF at address-es 1689-1691. This is followed by a data blockID (1F4), a Block Number (200) and a DataCount (110) at addresses 1692, 1693 and 1694

respectively. The next three, at addresses 1695-1697 are the CRC data words for the active picture area of the field. For test signals, likecolor bars, these numbers will not change with data updates. However, the data words ataddresses 1698-1700 form the FF (full field)CRCs, and these will be seen to change with each data update if embedded audio has beenswitched on at the generator. (The test tonesare not synched to video.

A signal worth looking for in the HD formatis the control signal for embedded audio. Thisappears on line 9 in the 1080i 59.94 format.The control signal is embedded in the Y signalwhile the audio data is placed in Cr and Cb.Figure 8 shows the control signal and start ofembedded audio in Cb and Cr in the COMPO-NENT data display of the LV 5152DA.

Fig. 8 Audio Control Signal

Compare this COMPONENT display withthe SERIAL display shown in Fig. 6. Note thatthe four EAV signals appear in sequence for Y,but also appear in Cb and Cr. The audio controlpulse has some value as a timing referencewhen dealing with timing errors that exceed aline duration. (See Teleproduction Test Volume3 Number 3.

BULK RATEU.S. POSTAGE

PAIDCypress, CA

Permit No. 276

LEADER INSTRUMENTS CORPORATION6484 Commerce DriveCypress, CA 90630