
Prel i m nary -15- November 1997
W9966CF/TF
Video Camera Interface Controller with Compression
7.2.1Base Layer Coding
The base layer coding is used only when the W9966CF/TF is programmed in the Compressed
Transfer Mode. It provides most compression using Winbond
′
s proprietary compression algorithm. A
Base Layer Line Buffer is needed to store data of the previous line for reference. The encoded data
stream is stored in the frame buffer (SRAM) through the Base Layer Stream Buffer and the B-FIFO.
Several lines of the encoded data, stored in the Base Layer Stream Buffer, are needed for the Base
Layer Reconstruction, which reconstructs the original image from the encoded base layer data
stream.
The base layer coded data stream can be in YUV4:2:2 format only. The CR13_2 bit must be
programmed 0.
7.2.2Enhancement Layer Coding
The enhancement layer coding is used either in the Original Transfer Mode or in the Compressed
Transfer Mode. When the W9966CF/TF is programmed in the Original Transfer Mode, the CCD data,
after cropped and down-scaled in the CCD Interface block, is bypassed by the Enhancement Layer
Encoder, then is stored in the frame buffer, where it is to be transmitted to the host system via the
parallel port.
The Original Transfer Mode output data may be in either YUV4:2:2 or YUV4:2:0 format. The output
data stream is in YUV4:2:2 format when the CR13_2 bit is 0, while it is in YUV4:2:0 format when the
CR13_2 bit is 1.
When the W9966CF/TF is programmed in the Compressed Transfer Mode, the Enhancement Layer
Encoding is used to generate an enhancement layer picture to produce an enhancement to the
decoded picture. Because base layer compression introduces artifacts and distortions, the difference
between a reconstructed picture, generated from the Base Layer Reconstruction, and its original from
the Enhancement Layer Line Buffer is a nonzero-valued picture, containing what can be called the
coding error. The coding error picture is quantized to generate the enhancement layer picture, which
is stored in the frame buffer through the E-FIFO, and then is sent to the host system. Three
quantization levels, EyEuEv4:2:2, EyEuEv3:1:1, and EyEuEv2:1:1, are supported and can be
selected by programming the CR13_4-3 bits. EyEuEv4:2:2 level uses 4 bits for Y, 2 bits for U, and 2
bits for V, EyEuEv3:1:1 level uses 3 bits for Y, 1 bit for U, and 1 bit for V, and EyEuEv2:1:1 level
uses 2 bits for Y, 1 bit for U, and 1 bit for V. EyEuEv4:2:2 level has the highest quality but with the
lowest compression ratio, EyEuEv3:1:1 level has a medium quality and a medium compression ratio,
while EyEuEv2:1:1 level has the lowest quality but with the highest compression ratio. A 2-line
Enhancement Layer Line Buffer is needed to generate the enhancement layer data stream.
The enhancement layer coded data stream can be in YUV4:2:2 format only. The CR13_2 bit must be
programmed 0.