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.

An MPEG bitstream must be constructed such that the<br />

decoder’s buffer doesn’t overflow: If it did, bits would<br />

be lost. The bitstream must also be constructed so that<br />

the buffer doesn’t underflow: If it did, a picture to be<br />

displayed would not be available at the required time.<br />

Buffer management in MPEG-2 is based upon an idealized<br />

model of the decoder’s buffer: All of the bits associated<br />

with each picture are deemed to be extracted<br />

from the decoder’s buffer at a certain precisely defined<br />

instant in time with respect to the bitstream. Every<br />

encoder implements a video buffering verifier (VBV) that<br />

tracks the state of this idealized buffer. Each picture<br />

header contains a VBV delay field that declares the fullness<br />

of the buffer at the start of that picture. After<br />

channel acquisition, a decoder waits for the specified<br />

amount of time before starting decoding. (If the<br />

decoder did not wait, buffer underflow could result.)<br />

Bitstream syntax<br />

The end product of MPEG-2 video compression is a bitstream<br />

partitioned into what MPEG calls a syntactic<br />

hierarchy having six layers: sequence, GOP, picture, slice,<br />

macroblock, and block. Except for the video sequence<br />

layer, which has a sequence end element, each syntactic<br />

element has a header and no trailer. The sequence,<br />

GOP, picture, and slice elements each begin with<br />

a 24-bit start code prefix of 23 zero-bits followed by<br />

a one-bit. A start code establishes byte alignment, and<br />

may be preceded by an arbitrary number of zerostuffing<br />

bits. All other datastream elements are<br />

constructed so as to avoid the possibility of 23 or more<br />

consecutive zero bits.<br />

Video sequence layer The top layer of the MPEG syntax is the video sequence.<br />

The sequence header specifies high-level parameters<br />

such as bit rate, picture rate, picture size, picture aspect<br />

ratio, profile, level, progressive/interlace, and chroma<br />

format. The VBV buffer size parameter declares the<br />

maximum buffer size required within the sequence. The<br />

sequence header may specify quantizer matrices. At the<br />

encoder’s discretion, the sequence header may be<br />

retransmitted intermittently or periodically throughout<br />

CHAPTER 40 MPEG-2 VIDEO COMPRESSION 493

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

Saved successfully!

Ooh no, something went wrong!