×

Method and system for managing color specification using attachable palettes and palettes that refer to other palettes

  • US 6,008,816 A
  • Filed: 04/25/1996
  • Issued: 12/28/1999
  • Est. Priority Date: 04/25/1996
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer including a processor, system memory, and a display controller, a method for managing color palettes, the method comprising:

  • creating a first palette having n entries representing colors that are a subset of a color space comprising k colors;

    creating a second palette having m entries representing colors that are a subset of the color space, where n, m, and k are integers, m is less than k, and n is less than m;

    associating the second palette with a primary surface comprising an array of indices to the second palette that are read by the display controller and converted to a display image, wherein the second palette includes plural numbered entries, and wherein an index to the second palette is a number of one of said plural numbered entries of the second palette;

    copying the entries in the second palette to a color table in the display controller;

    storing indices to the second palette in the first palette, wherein the colors represented in the first palette are a subset of the colors represented in the second palette, and whereby an entry in the first palette has the same format as an index to the second palette;

    associating the first palette with a first pixmap, where the first pixmap comprises an array of pixels values that are indices into the first palette;

    transferring at least part of the first pixmap to a specified location in the primary surface;

    during the transferring step, converting pixel values in the part of the first pixmap being transferred to indices into the second palette by using the pixel values in the first pixmap as indices to look up entries in the first palette that store indices to the second palette and replacing the pixel values from the first pixmap with the indices to the second palette obtained from the entries of the first palette; and

    during the transferring step, storing converted pixel values into the specified location in the primary surface.

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