×

Method and system for segment encoded graphic data compression

  • US 5,748,904 A
  • Filed: 09/13/1996
  • Issued: 05/05/1998
  • Est. Priority Date: 09/13/1996
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of compressing graphic data in a graphic system having a frame buffer partitioned into an uncompressed frame buffer and a compressed frame buffer, comprising the steps of:

  • a. dividing said graphic data stored in said uncompressed frame buffer into a plurality of uncompressed segments each having a plurality of pixels;

    b. preparing a compression status flag buffer having a plurality of status flags being set to zero, each of said status flags indicating the compression status of one of said uncompressed segments;

    c. reading and compressing the plurality of pixels of an uncompressed segment pixel by pixel using a plurality of compression methods for forming a compressed segment including a header and a plurality of code-words for said uncompressed segment, said compressed segment being generated by the steps of;

    d. formatting said header for the storage of a length code and a plurality of method codes;

    e. reading pixels from said uncompressed segment and determining the number of pixels that can be encoded in a code-word for each of said compression methods;

    f. selecting and saving the code-word of the compression method that encodes the largest number of pixels into said code-word;

    g. identifying the selected compression method with a method code and recording said method code in said header orderly;

    h. repeating steps d., e., f. and g. until all pixels of said uncompressed segment have been encoded;

    i. and forming said compressed segment by counting the total number of all saved code-words, recording said total number in said length code and appending all saved code-words orderly to said header;

    j. determining the total number of bytes in said compressed segment and comparing the total number of bytes with a pre-defined limit;

    k. writing said compressed segment to said compressed frame buffer and setting the corresponding status flag to 1 if the total number in step j. is smaller than said limit;

    l. and repeating steps c., j. and k. until all uncompressed segments have been processed;

    wherein when said graphic data after compression are sent for display, the compression status of each segment is determined by its corresponding status flag, the compressed segment are decompressed if the corresponding status flag is set, and each code-word is decompressed by a decompression method corresponding to the compression method code stored in the header of the compressed segment.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×