Accelerating color conversion using a temporary palette cache
First Claim
1. In an electronic device, a method, comprising the steps of:
- providing color data for a group of pixels, wherein, for each pixel in the group of pixels, the color data corresponds to a color representation in an initial palette at an indexed position;
converting the color data for the group of pixels by using a converted color palette and for each pixel in the group of pixels substituting the color representations in the converted color palette at the indexed position for the color data.
6 Assignments
0 Petitions
Accused Products
Abstract
A method and device for accelerating a color conversion process that converts input image data corresponding to a first color space to output image data corresponding to an output color space. A temporary cache stores color information in an array, and performs a conversion calculation for each individual color combination. If a pixel corresponds to a new color combination, the pixel information is stored in a new index of the array. If the pixel repeats a previously processed color, the pixel information is stored in the same index of the array as the previously processed pixel. A color conversion calculation is performed after all pixels within a block of pixels are mapped to the temporary array.
12 Citations
27 Claims
-
1. In an electronic device, a method, comprising the steps of:
-
providing color data for a group of pixels, wherein, for each pixel in the group of pixels, the color data corresponds to a color representation in an initial palette at an indexed position;
converting the color data for the group of pixels by using a converted color palette and for each pixel in the group of pixels substituting the color representations in the converted color palette at the indexed position for the color data. - View Dependent Claims (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 19)
-
-
2. The method of claim I further comprising the step of using a host function to determine the indexed position in the initial color palette for each of the pixels in the group of pixels.
-
13. In an electronic device, a method, comprising the steps of:
-
providing a set of color data for pixels, said color data encoding colors for the pixels in a first color space;
providing a first color palette for the first color space, wherein the first color palette holds representations of colors in the first color space in respective positions and wherein each of the positions has an associated index;
for each of the pixels, determining an index for the pixel of a selected one of the positions in the first color palette for given areas of the representations of colors that correspond to the color data for the pixel;
converting the first color palette into a second color palette for a second color space, wherein each position in the second color palette holds a representation of a color in the second color space that corresponds to a representation of the color in the first color space at a like position in the first palette; and
converting the set of color data to encode colors in the second color space, for each pixel, by substituting the representation of color in the second palette at the position of the index for the pixel for the color data of the pixel.
-
-
18. A device for converting color representations of a set of pixels, comprising:
-
a storage facility for storing a first palette for a first color space; and
a conversion facility for converting the set of pixels to representations in a second color space, said conversion facility converting the first palette for the second color space and using representations in the second palette to convert the set of pixels.
-
-
20. An improved method of converting a group of pixels from a first color space to a second color space, comprising
mapping color image data in the first color space to indices of an initial color palette array, wherein each index of the initial color palette array corresponds to a unique color combination in the first color space, converted the color image data mapped in the initial color palette array to an converted color palette array comprised of color image data in the second color space, reconstructing the group of pixels in the output color space.
Specification