Caching coverage values for rendering text using anti-aliasing techniques
First Claim
1. A method of processing text that will be displayed in a graphical interface of a computing device, the method comprising:
- creating a mapping for the text, the mapping comprising information representing at least one shape of the text and corresponding to a plurality of sub-pixels of a display to be used in displaying the text;
determining initial sub-pixel coverage values for the plurality of sub-pixels using a sub-pixel anti-aliasing technique;
processing the initial sub-pixel coverage values to yield processed sub-pixel coverage values for a plurality of pixels of image data corresponding to the plurality of sub-pixels; and
caching the processed sub-pixel coverage values for subsequent use in rendering the text in the graphical interface in a video memory organized in accordance with a format that includes a red channel from which a graphics processing unit (GPU) of the computing device is natively configured to retrieve red sub-pixel color values, a green channel from which the GPU of the computing device is natively configured to retrieve green sub-pixel color values, and a blue channel from which the GPU of the computing device is natively configured to retrieve blue sub-pixel color values, wherein the caching includes caching the processed sub-pixel coverage values in at least one of the red channel, the blue channel, or the green channel.
2 Assignments
0 Petitions
Accused Products
Abstract
Techniques for calculating sub-pixel coverage values for text to be displayed, so as to enable caching of the sub-pixel coverage values. The sub-pixel coverage values may enable a linear combination of color information for the text with color information for one or more other, overlapping display elements for calculating composite color values to be used in controlling a display. Such composite color values to be used in controlling sub-pixels of a display may be calculated, in some embodiments, without performing a gamma correction process. Also described are techniques for retrieving cached sub-pixel coverage values and combining the values with color information for text and for other, overlapping display elements to calculate composite color values for sub-pixels of a display. At least one graphics processing unit (GPU) may be configured to perform operations using the sub-pixel coverage information and to calculate the composite color values for the sub-pixels.
14 Citations
20 Claims
-
1. A method of processing text that will be displayed in a graphical interface of a computing device, the method comprising:
-
creating a mapping for the text, the mapping comprising information representing at least one shape of the text and corresponding to a plurality of sub-pixels of a display to be used in displaying the text; determining initial sub-pixel coverage values for the plurality of sub-pixels using a sub-pixel anti-aliasing technique; processing the initial sub-pixel coverage values to yield processed sub-pixel coverage values for a plurality of pixels of image data corresponding to the plurality of sub-pixels; and caching the processed sub-pixel coverage values for subsequent use in rendering the text in the graphical interface in a video memory organized in accordance with a format that includes a red channel from which a graphics processing unit (GPU) of the computing device is natively configured to retrieve red sub-pixel color values, a green channel from which the GPU of the computing device is natively configured to retrieve green sub-pixel color values, and a blue channel from which the GPU of the computing device is natively configured to retrieve blue sub-pixel color values, wherein the caching includes caching the processed sub-pixel coverage values in at least one of the red channel, the blue channel, or the green channel. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An apparatus, comprising:
at least one processor programmed to; in response to receiving a request to render text for a display, retrieve from a cache sub-pixel coverage values for the text, the cache having a red channel from which at least one graphics processing unit (GPU) of the apparatus is natively configured to retrieve red sub-pixel color values, a green channel from which the at least one GPU of the apparatus is natively configured to retrieve green sub-pixel color values, and a blue channel from which the at least one GPU of the apparatus is natively configured to retrieve blue sub-pixel color values, wherein the sub-pixel coverage values for the text are stored in at least two of the red, blue, or green channels; configure the at least one GPU to determine composite color values for pixels of the display at which the text is to be displayed, the configuring comprising configuring the at least one GPU to retrieve the sub-pixel coverage values from the at least two of the red, green, or blue channels; receive from the at least one GPU the composite color values for the pixels at which the text is to be displayed; and render, based on the composite color values, an anti-aliased version of the text to the display. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
16. At least one computer-readable storage medium encoded with computer-executable instructions that, when executed by a computer, cause the computer to carry out a method of processing text that will be displayed in a graphical interface of a computing device, the method comprising:
-
creating a mapping for the text, the mapping comprising information representing at least one shape of the text and corresponding to a plurality of sub-pixels of a display to be used in displaying the text; calculating sub-pixel coverage values for the plurality of sub-pixels using a sub-pixel anti-aliasing technique; and caching, in a memory organized in a format that includes a red channel from which graphics processing unit (GPU) of the computing device is natively configured to retrieve red sub-pixel color values, a green channel from which the GPU of the computing device is natively configured to retrieve green sub-pixel color values, and a blue channel from which the GPU of the computing device is natively configured to retrieve blue sub-pixel color values, the sub-pixel coverage values for subsequent use in rendering the text in the graphical interface, wherein the caching includes caching the processed sub-pixel coverage values in at least one of the red channel, the blue channel, or the green channel. - View Dependent Claims (17, 18, 19, 20)
-
Specification