Claims
- 1. In a data processing system, a method of decompressing compressed color data, including a bitmap and encodings of colors, for pixels of a cell, comprising the steps of:
- a) determining whether the color data for the cell is compressed as a solid-color cell;
- b) if the color data for cell is compressed as a solid-color cell, decompressing the color data for the cell by assigning each pixel in the cell a color that is encoded in the compressed color data;
- c) determining whether the color data for the cell is compressed as a two-color cell;
- d) if the color data for the cell is compressed as a two-color cell, decompressing the color data of the cell by assigning each pixel one of two colors encoded by the encodings in the compressed color data, based on a value in the bitmap that is contained in the compressed color data;
- e) determining whether the color data for the cell is compressed as an eight-color cell; and
- f) if the color data for the cell is compressed as an eight-color cell, decompressing the color data for the cell by assigning each pixel in each sub-cell of the cell, one of two colors encoded for the sub-cell in the encodings in the compressed color data according to a value of at least one bit in the bitmap, that is included in the compressed color data.
- 2. A computer-readable storage medium for use in a computer system, holding instructions for performing a method of decompressing compressed color data, including a bitmap and encodings of colors, for pixels of a cell, said method comprising the steps of:
- a) determining whether the color data for the cell is compressed as a solid-color cell;
- b) if the color data for cell is compressed as a solid-color cell, decompressing the color data for the cell by assigning each pixel in the cell a color that is encoded in the compressed color data;
- c) determining whether the color data for the cell is compressed as a two-color cell;
- d) if the color data for the cell is compressed as a two-color cell, decompressing the color data of the cell by assigning each pixel one of two colors encoded by the encodings in the compressed color data, based on a value in the bitmap that is contained in the compressed color data;
- e) determining whether the color data for the cell is compressed as an eight-color cell; and
- f) if the color data for the cell is compressed as an eight-color cell, decompressing the color data for the cell by assigning each pixel in each sub-cell of the cell, one of two colors encoded for the sub-cell in the encodings in the compressed color data according to a value of at least one bit in the bitmap, that is included in the compressed color data.
- 3. The computer-readable storage medium of claim 2 further holding instructions for compressing the color data to produce the compressed color data.
- 4. In a computer system, a method comprising the computer-implemented steps of:
- a) compressing color data for pixels of a first cell of a frame of color data to produce compressed color data that includes a bitmap and encodings of colors;
- b) determining whether the color data for the first cell is compressed as a solid-color cell;
- c) if the color data for the first cell is compressed as a solid-color cell, decompressing the color data for the cell by assigning each pixel in the first cell a color that is encoded in the compressed color data;
- d) determining whether the color data for the first cell is compressed as a two-color cell;
- e) if the color data for the first cell is compressed as a two-color cell, decompressing the color data of the first cell by assigning each pixel one of two colors encoded by the encodings in the compressed color data, based on a value in the bitmap that is contained in the compressed color data;
- f) determining whether the color data for the first cell is compressed as an eight-color cell; and
- g) if the color data for the first cell is compressed as an eight-color cell, decompressing the color data for the first cell by assigning each pixel in each sub-cell of the cell, one of two colors encoded for the sub-cell in the encodings in the compressed color data according to a value of at least one bit in the bitmap, that is included in the compressed color data.
CROSS-REFERENCE TO RELATED APPLICATION
This application is a continuation of U.S. patent application Ser. No. 08/011,317, filed Jan. 29, 1993, now U.S. Pat. No. 5,544,286.
US Referenced Citations (8)
Continuations (1)
|
Number |
Date |
Country |
Parent |
11317 |
Jan 1993 |
|