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 10.4 Interstitial chroma<br />

filter for JPEG/JFIF averages<br />

samples over a 2×2 block.<br />

Shading represents the spatial<br />

extent of luma samples. The<br />

black dot indicates the effective<br />

subsampled chroma position,<br />

equidistant from the four luma<br />

samples. The outline represents<br />

the spatial extent of the result.<br />

1 ⁄4<br />

1 ⁄8<br />

1 ⁄8<br />

1 ⁄4 1 ⁄4<br />

1 ⁄4 1 ⁄4<br />

1 ⁄ 2 1 ⁄4<br />

Figure 10.5 Cosited chroma<br />

filter for Rec. 601, 4:2:2<br />

causes each filtered chroma<br />

sample to be positioned<br />

coincident – cosited – with an<br />

even-numbered luma sample.<br />

1 ⁄4<br />

1 ⁄4<br />

1 ⁄8<br />

1 ⁄8<br />

Figure 10.6 Cosited chroma<br />

filter for MPEG-2, 4:2:0<br />

produces a filtered result<br />

sample that is cosited horizontally,<br />

but sited interstitially in<br />

the vertical dimension.<br />

Chroma subsampling filters<br />

In chroma subsampling, the encoder discards selected<br />

color difference samples after filtering. A decoder<br />

approximates the missing samples by interpolation.<br />

To perform 4:2:0 subsampling with minimum computation,<br />

some systems simply average C B over a 2×2 block,<br />

and average C R over the same 2×2 block, as sketched in<br />

Figure 10.4 in the margin. To interpolate the missing<br />

chroma samples prior to conversion back to R’G’B’,<br />

low-end systems simply replicate the subsampled C B<br />

and C R values throughout the 2×2 quad. This technique<br />

is ubiquitous in JPEG/JFIF stillframes in<br />

computing, and is used in M-JPEG, H.261, and<br />

MPEG-1. This simple averaging process causes subsampled<br />

chroma to take an effective horizontal position<br />

halfway between two luma samples, what I call interstitial<br />

siting, not the cosited position standardized for<br />

studio video.<br />

A simple way to perform 4:2:2 subsampling with horizontal<br />

cositing as required by Rec. 601 is to use weights<br />

of [ 1⁄ 4 , 1⁄ 2 , 1⁄ 4 ], as sketched in Figure 10.5. 4:2:2<br />

subsampling has the advantage of no interaction with<br />

interlaced scanning.<br />

A cosited horizontal filter can be combined with<br />

[ 1⁄ 2 , 1⁄ 2 ] vertical averaging, as sketched in Figure 10.6,<br />

to implement 4:2:0 as used in MPEG-2.<br />

Simple averaging filters like those of Figures 10.4, 10.5,<br />

and 10.6 have acceptable performance for stillframes,<br />

where any alias components that are generated remain<br />

stationary, or for desktop-quality video. However, in<br />

a moving image, an alias component introduced by<br />

poor filtering is liable to move at a rate different from<br />

the associated scene elements, and thereby produce<br />

a highly objectionable artifact. High-end digital video<br />

equipment uses sophisticated subsampling filters,<br />

where the subsampled C B and C R of a 2×1 pair in 4:2:2<br />

(or of a 2×2 quad in 4:2:0) take contributions from<br />

several surrounding samples. The relationship of filter<br />

weights, frequency response, and filter performance will<br />

be detailed in Filtering and sampling, on page 141.<br />

CHAPTER 10 INTRODUCTION TO LUMA AND CHROMA 93

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

Saved successfully!

Ooh no, something went wrong!