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.

In MPEG-2, DC terms can be<br />

coded with 8, 9, or 10 bits – or, in<br />

4:2:2 profile, 11 bits – of precision.<br />

In MPEG, default quantizer<br />

matrices are standardized, but they<br />

can be overridden by matrices<br />

conveyed in the bitstream.<br />

This example shows that image power is concentrated<br />

into low-frequency transform coefficients – that is,<br />

those coefficients in the upper left-hand corner of the<br />

DCT matrix. No information is lost at this stage. The<br />

DCT is its own inverse, so performing the DCT a second<br />

time would perfectly reconstruct the original samples,<br />

subject only to the roundoff error in the DCT and IDCT.<br />

As expressed in Equation 38.1, the arithmetic of an<br />

8×8 DCT effectively causes the coefficient values to<br />

be multiplied by a factor of 8 relative to the original<br />

sample values. The value 1260 in the [0, 0] entry –<br />

the DC coefficient, or term – is 1 ⁄8 of the sum of the<br />

original sample values. (All of the other coefficients<br />

are referred to as AC.)<br />

The human visual system is not very sensitive to information<br />

at high spatial frequencies. Information at high<br />

spatial frequencies can be discarded, to some degree,<br />

without introducing noticeable impairments. JPEG uses<br />

a quantizer matrix (Q), which codes a step size for each<br />

of the 64 spatial frequencies. In the quantization step of<br />

compression, each transform coefficient is divided by<br />

the corresponding quantizer value (step size) entry in<br />

the Q matrix. The remainder (fraction) after division is<br />

discarded.<br />

It is not the DCT itself, but the discarding of the fraction<br />

after quantization of the transform coefficients,<br />

that makes JPEG lossy!<br />

JPEG has no standard or default quantizer matrix;<br />

however, sample matrices given in a nonnormative<br />

appendix are often used. Typically, there are two<br />

matrices, one for luma and one for color differences.<br />

An example Q matrix is shown in Figure 38.6 overleaf.<br />

Its entries form a radially symmetric version of<br />

Figure 19.5, on page 201. The [0, 0] entry in the quantizer<br />

matrix is relatively small (here, 16), so the DC term<br />

is finely quantized. Further from [0, 0], the entries get<br />

larger, and the quantization becomes more coarse.<br />

Owing to the large step sizes associated with the highorder<br />

coefficients, they can be represented fewer bits.<br />

CHAPTER 38 JPEG AND MOTION-JPEG (M-JPEG) COMPRESSION 453

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

Saved successfully!

Ooh no, something went wrong!