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.

For a more elaborate description,<br />

and the quantization tables, see<br />

Symes, cited on page 496.<br />

This scheme is described as threepass;<br />

however, the first pass is trivial.<br />

tion is merely a binary shift. The lookup and assembly<br />

of VLE-coded bitstream need not be performed at this<br />

stage; it suffices for now to accumulate the bit count.<br />

The final QNO for the segment is the one that produces<br />

the largest number of bits not exceeding the capacity of<br />

the segment – for DV25, 500 bits for luma AC coefficients<br />

(including four 4-bit EOBs), and 340 bits for<br />

chroma AC coefficients (including two 4-bit EOBs).<br />

Once the segment’s QNO is determined, VLE coding<br />

takes place, and the CMs of the segment are assembled.<br />

Each CM starts with one byte containing its QNO<br />

and error concealment status (STA) bits. Each block<br />

includes its DC coefficient, its mode (8-8-DCT or<br />

2-4-8-DCT), and its class. Finally, the VLE-coded AC<br />

coefficients are distributed in a deterministic three-pass<br />

algorithm – first to the associated block, then to unused<br />

space in other blocks of the same CM (if space is available),<br />

and finally to unused space in other CMs of the<br />

segment. QNO has been chosen such that sufficient<br />

space for all coefficients is guaranteed to be available:<br />

Every bit of every coefficient will be stored somewhere<br />

within the segment.<br />

Each CM comprises 77 bytes, including by a 1-byte<br />

header. In DV25, a CM includes four coded luma blocks<br />

and two coded chroma blocks:<br />

• A coded luma block totals 14 bytes, and includes a<br />

9-bit DC term, one mode bit, and a 2-bit class number.<br />

One hundred bits are available for AC coefficients.<br />

• A coded chroma block totals 10 bytes, and includes<br />

a 9-bit DC term, one mode bit, and a 2-bit class<br />

number. Sixty-eight bits are available for AC<br />

coefficients.<br />

For 4:2:2 subsampling in DV50, a CM has four blocks,<br />

not six; space that in 4:1:1 or 4:2:0 would be allocated<br />

to luma blocks is available for overflow data. For 3:1:0<br />

subsampling (used in SDL, to be described in<br />

a moment), a CM has eight blocks, not six: Each luma<br />

block has 10 bytes; each chroma block has 8 bytes.<br />

CHAPTER 39 DV COMPRESSION 467

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

Saved successfully!

Ooh no, something went wrong!