A method and apparatus are disclosed for symmetrically compressing and decompressing
video information in real time by coupling block and wavelet techniques. In the
compression pipeline, the image is divided into blocks comprising 2k2k
pixels (in the preferred embodiment, k=1). The average color of each block
is computed. The system computes an average luminance for each block and differential
luminances of each pixel of the plurality of pixels of each block. A first plurality
of frequency details of each block are determined by Haar transforming the differential
luminances. The system computes an average color difference between each block
and the preceding block, and quantizes the average color difference and the first
plurality of frequency details using Lloyd-Max quantization. In an alternate embodiment,
skip codes are generated for blocks having the same quantized average color difference
and second plurality of frequency details. The quantized average color difference
and a second plurality of frequency details are encoded using variable length codes.
The system employs lookup tables to decompress the compressed image and to format
output pixels. The output of the compression pipeline containing variable length
codes is decoded into fixed-length codes, which are then decoded using a first
lookup table into three device-independent components that represent each block.
The three components index a second lookup table containing precomputed RGB values
that include precomputed display dependent formatting to produce the output image.
In the alternate embodiment, skip codes contained in the output of the variable
length decoder are decoded.