摘要 |
<p>The present invention is a method and apparatus for compressing and decompressing data. In particular, the present invention provides a method for compressing color video data for storage on a CD-ROM for later playback on a computer system. The present invention uses an asymmetrical compression-decompression scheme that provides color compression, temporal compression, and spatial compression. In the preferred embodiment of the invention, the color compression is accomplished in three stages. In the first stage, the colors are sampled from the source data (200). This generates a histogram that contains the colors of the source material. Next, these colors are quantized into the target colors (201, 203). In the third step of the color compression, the actual colors on the film are mapped to the quantized colors. The temporal compression step specifies a target display rate. Only those pixels that have changed significantly from frame to frame are updated. A bit mask is generated for each frame and is used to target those pixels that will be updated for each frame. The spatial compression step is used to further reduce storage requirements by dividing data into pixel "tiles" (208). The CD-ROM stores an index into the table so that when data is required only the index need be provided, not the tile.</p> |