Optional color space conversion
First Claim
1. A graphics system for performing color space conversion, comprising:
- a shader pipeline configured to receive fragment data and produce shaded color data;
a raster operation unit configured to receive the shaded color data and perform raster operations to produce processed color data; and
a linear to nonlinear color conversion unit configured to receive the shaded color data or the processed color data and produce color data represented in a nonlinear color space, by;
selecting one or more color components of the shaded color data or processed color data for conversion to a color component in a nonlinear color space, wherein each of the selected color components include a sign, an exponent, and a mantissa,for each color component selected, generating a corresponding color component in a nonlinear color space by;
generating an index to a look-up table based on a portion of the exponent of the selected color component,based on the index, extracting from the look-up table a first color component represented in the nonlinear color space, andclamping the first color component based on the sign and the portion of the exponent of the selected color component to produce a second color component represented in the nonlinear color space,wherein the shader pipeline, the raster operation unit, and the linear to nonlinear color conversion unit are included in a graphics processor.
0 Assignments
0 Petitions
Accused Products
Abstract
An apparatus and method for converting color data from one color space to another color space. A driver determines that a set of shader program instructions perform a color conversion function and the set of shader program instructions are replaced with either a single shader program instruction or a flag is set within an existing shader program instruction to specify that output color data is represented in a nonlinear color format. The output color data is converted to the nonlinear color format prior to being stored in a frame buffer. Nonlinear color data read from the frame buffer is converted to a linear color format prior to shading, blending, or raster operations.
-
Citations
10 Claims
-
1. A graphics system for performing color space conversion, comprising:
-
a shader pipeline configured to receive fragment data and produce shaded color data; a raster operation unit configured to receive the shaded color data and perform raster operations to produce processed color data; and a linear to nonlinear color conversion unit configured to receive the shaded color data or the processed color data and produce color data represented in a nonlinear color space, by; selecting one or more color components of the shaded color data or processed color data for conversion to a color component in a nonlinear color space, wherein each of the selected color components include a sign, an exponent, and a mantissa, for each color component selected, generating a corresponding color component in a nonlinear color space by; generating an index to a look-up table based on a portion of the exponent of the selected color component, based on the index, extracting from the look-up table a first color component represented in the nonlinear color space, and clamping the first color component based on the sign and the portion of the exponent of the selected color component to produce a second color component represented in the nonlinear color space, wherein the shader pipeline, the raster operation unit, and the linear to nonlinear color conversion unit are included in a graphics processor. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
Specification