# US 2015/0103252 A1 · System, method, and computer program product for gamma correction in a video or image processing engine

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0103252 A1
- Document ID: US20150103252A1
- Status: Published application
- Kind: A1
- Application number: 14/055,831
- Filed: 2013-10-16
- Published: 2015-04-16
- Earliest claimed: 2013-10-16
- Assignees: NVIDIA Corporation
- Applicants: NVIDIA Corporation
- Inventors: Narendra Keshav Rane; Mukesh Chand Agarwal; Sandeep Vangipuram; Satinder Kumar
- Web page: https://patentgrep.com/patent/US20150103252A1

## CPC

- G09G 5/06: using colour palettes, e.g. look-up tables
- G09G 5/363: {Graphics controllers}
- H04N 9/69: for modifying the colour signals by gamma correction (controlling camera response for colour signals H04N23/83)
- G09G 5/39: Control of the bit-mapped memory
- G09G 2320/0673: for control of gamma adjustment, e.g. selecting another gamma curve
- G09G 2340/06: Colour space transformation
- G09G 2352/00: Parallel handling of streams of display data
- G09G 2360/08: Power processing, i.e. workload management for processors involved in display operations, such as CPUs or GPUs
- G09G 2360/121: using a cache memory
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A system and method are provided for generating a gamma adjusted value. The method comprises generating a logarithm space representation of an input value by computing a logarithm of the input value, computing a logarithm space gamma-adjusted value by multiplying the logarithm space representation with a current gamma value, and generating the gamma adjusted value by computing an antilogarithm of the logarithm space gamma-adjusted value.

## Claims

### Claim 1

A method, comprising:
generating a logarithm space representation of an input value by computing a logarithm of the input value;
computing a logarithm space gamma-adjusted value by multiplying the logarithm space representation with a current gamma value; and
generating a gamma adjusted value by computing an antilogarithm of the logarithm space gamma-adjusted value.

### Claim 2 (depends on 1)

The method of claim 1, wherein computing the logarithm comprises performing a look-up operation within a logarithm look-up table, indexed to a mantissa of the input value.

### Claim 3 (depends on 2)

The method of claim 2, wherein the logarithm look-up table comprises a read-only look-up table circuit.

### Claim 4 (depends on 1)

The method of claim 1, wherein computing the antilogarithm comprises performing a lock-up operation within one antilogarithm look-up table, indexed by the logarithm space gamma-adjusted value.

### Claim 5 (depends on 1)

The method of claim 1, wherein computing the antilogarithm comprises:
generating two or more partial antilogarithm terms; and
computing a product over the two or more partial antilogarithm terms.

### Claim 6 (depends on 5)

The method of claim 5, wherein generating each one of the two or more partial antilogarithm terms comprises performing a look-up table operation within a corresponding partial antilogarithm look-up table, indexed by at least a corresponding subset of fraction bits from the logarithm space gamma-adjusted value.

### Claim 7 (depends on 5)

The method of claim 5, wherein each one of the two or more partial antilogarithm terms comprises a ten bit integer component and a ten bit fractional component.

### Claim 8 (depends on 1)

The method of claim 1, wherein the input value comprises one color channel from either a red, green, or blue color channel associated with digital video data.

### Claim 9 (depends on 8)

The method of claim 8, wherein the digital video data is encoded with an encoding gamma, and the current gamma value comprises a reciprocal of the encoding gamma.

### Claim 10 (depends on 8)

The method of claim 8, wherein the digital video data comprises linear space color data, and the current gamma value comprises a gamma for a display device configured to display the digital video data.

### Claim 11 (depends on 1)

The method of claim 1, wherein the input value comprises a floating-point representation and the current gamma value comprises a fixed-point representation.

### Claim 12

A circuit, comprising:
a power function circuit, configured to compute a logarithm space gamma-adjusted value based on an input value and a current gamma value; and
an antilogarithm function circuit, configured to generate a gamma adjusted value based on the logarithm space gamma-adjusted value,
wherein the gamma adjusted value comprises an approximation of the input value raised to a power specified by the current gamma value, and
wherein the input value comprises a floating-point representation and the current gamma value comprises a fixed-point representation.

### Claim 13 (depends on 12)

The circuit of claim 12, wherein the input value comprises a mantissa and an exponent, and the power function circuit comprises:
a logarithm lookup table, configured to generate a logarithm value based on the mantissa;
an adder, configured to compute a logarithm space representation of the input value by adding the logarithm value to the exponent; and
a multiplier, configured to compute the logarithm space gamma-adjusted value by multiplying the logarithm space representation by the current gamma value.

### Claim 14 (depends on 12)

The circuit of claim 12, wherein the antilogarithm function comprises:
two or more antilogarithm lookup tables configured to generate corresponding partial antilogarithm terms based the logarithm space gamma-adjusted value; and
one or more multipliers configured to compute a product of partial antilogarithm terms, wherein each of the antilogarithm lookup tables is indexed by at least a corresponding subset of fraction bits from the logarithm space gamma-adjusted value.

### Claim 15

A system, comprising:
a memory system configured to store video data; and
a graphics processor, configured to:
generate a first set of linear space video data from a first video stream comprising the video data, according to a first decoding gamma value;
generate a second set of linear space video data from a second video stream comprising the video data, according to a second decoding gamma value; and
generate a third set of linear space video data based on the first set of linear space video data and the second set of linear space video data,
wherein the first video stream is gamma-encoded by a gamma function circuit according to a first encoding gamma value, and the second video stream is gamma-encoded by the gamma function circuit according to a second encoding gamma value, and
wherein the gamma function circuit is configured to sequentially receive the first encoding gamma value and the second encoding gamma value.

### Claim 16 (depends on 15)

The system of claim 15, wherein the gamma function circuit comprises:
a power function circuit, configured to compute a logarithm space gamma-adjusted value based on an input value and a current gamma value; and
an antilogarithm function circuit, configured to generate a gamma adjusted value based on the logarithm space gamma-adjusted value,
wherein the gamma adjusted value comprises an approximation of the input value raised to a power specified by the current gamma value.

### Claim 17 (depends on 16)

The system of claim 16, wherein the input value comprises a mantissa and an exponent, and the power function circuit comprises:
a logarithm lookup table, configured to generate a logarithm value based on the mantissa;
an adder, configured to compute a logarithm space representation of the input value by adding the logarithm value to the exponent; and
a multiplier, configured to compute the logarithm space gamma-adjusted value by multiplying the logarithm space representation by the current gamma value.

### Claim 18 (depends on 16)

The system of claim 16, wherein the antilogarithm function comprises:
two or more antilogarithm lookup tables configured to generate corresponding partial antilogarithm terms based the logarithm space gamma-adjusted value; and
one or more multipliers configured to compute a product of partial antilogarithm terms,
wherein each of the antilogarithm lookup tables is indexed by a sign bit and a range of mantissa bits comprising the logarithm space gamma-adjusted value.

### Claim 19 (depends on 15)

The system of claim 15, wherein to generate the third set of linear space video data, the graphics processor performs at least one compositing operation on first set of linear space video data and the second set of linear space video data.

### Claim 20 (depends on 15)

The system of claim 15, wherein the first decoding gamma value represents a reciprocal of the first encoding gamma value, and the second decoding gamma value represents a reciprocal of the second encoding gamma value.
