08.01.2013 Views

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 14.6 Example GOP<br />

I0B1B2P3B4B5P6B7B8 Coded B-pictures in a GOP depend upon P- and<br />

I-pictures; coded P-pictures depend upon earlier<br />

P-pictures and I-pictures. Owing to these interdependencies,<br />

an MPEG sequence cannot be edited, except<br />

at GOP boundaries, unless the sequence is decoded,<br />

edited, and subsequently reencoded. MPEG is very suitable<br />

for distribution, but owing to its inability to be<br />

edited without impairment at arbitrary points, MPEG is<br />

unsuitable for production. In the specialization of<br />

MPEG-2 called I-frame only MPEG-2, every GOP is<br />

a single I-frame. This is conceptually equivalent to<br />

Motion-JPEG, but has the great benefit of an international<br />

standard. (Another variant of MPEG-2, the<br />

simple profile, has no B-pictures.)<br />

I have introduced MPEG as if all elements of a P-picture<br />

and all elements of a B-picture are coded similarly. But<br />

a picture that is generally very well predicted by the<br />

past anchor picture may have a few regions that cannot<br />

effectively be predicted. In MPEG, the image is tiled<br />

into macroblocks of 16×16 luma samples, and the<br />

encoder is given the option to code any particular<br />

macroblock in intra mode – that is, independently of<br />

any prediction. A compact code signals that a macroblock<br />

should be skipped, in which case samples from the<br />

anchor picture are used without modification. Also, in<br />

a B-picture, the encoder can decide on a macroblockby-macroblock<br />

basis to code using forward prediction,<br />

backward prediction, or bidirectional prediction.<br />

Reordering<br />

In a sequence without B-pictures, I- and P-pictures are<br />

encoded and transmitted in the obvious order.<br />

However, when B-pictures are used, the decoder typically<br />

needs to access the past anchor picture and the<br />

future anchor picture to reconstruct a B-picture.<br />

Consider an encoder about to compress the sequence<br />

in Figure 14.6 (where anchor pictures I 0, P 3, and P 6 are<br />

written in boldface). The coded B 1 and B 2 pictures may<br />

be backward predicted from P 3, so the encoder must<br />

buffer the uncompressed B 1 and B 2 pictures until P 3 is<br />

coded: Only when coding of P 3 is complete can coding<br />

of B 1 start. Using B-pictures incurs a penalty in<br />

124 DIGITAL VIDEO AND HDTV ALGORITHMS AND INTERFACES

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

Saved successfully!

Ooh no, something went wrong!