# US 2008/0303846 A1 · Assymetric two-pass graphics scaling

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

- Number: US 2008/0303846 A1
- Document ID: US20080303846A1
- Status: Published application
- Kind: A1
- Application number: 11/811,195
- Filed: 2007-06-07
- Published: 2008-12-11
- Earliest claimed: 2007-06-07
- Assignees: Apple Inc.
- Inventors: Loren Brichter; Alexander King-Chung Kan; Michael James Elliott Swift
- Web page: https://patentgrep.com/patent/US20080303846A1

## CPC

- G09G 5/363: {Graphics controllers}
- G06F 3/14: Digital output to display device {; Cooperation and interconnection of the display device with other functional units}
- G09G 5/001: {Arbitration of resources in a display system, e.g. control of access to frame buffer by video controller and/or main processor}
- G09G 2340/0407: Resolution change, inclusive of the use of different resolutions for different screen areas
- 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)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and an apparatus for determining an up scale factor and a down scale factor according to a scale factor received from a graphics application program interface (API) to scale a graphics data in a graphics processing unit (GPU) are described. The up scale factor and the down scale factor may be precisely stored in the GPU based on a fixed number of bits. An actual scale factor which can be precisely stored in the GPU corresponding to the scale factor may differ from the scale factor with a difference. Graphics commands may be sent to the GPU to scale the graphics data according to the up scale factor and the down scale factor separately. A combined scale factor corresponding to a combination of the up scale factor and the down scale factor may differ from the scale factor less then the difference between the actual scale factor and the scale factor

## Claims

### Claim 1

A computer implemented method comprising:
in response to a graphics command received from a graphics API including a scale factor to scale a graphics data in a graphics processing unit (GPU), determining an actual scale factor corresponding to the scale factor, wherein the actual scale factor can be precisely stored arithmetically in the GPU, the actual scale factor having a difference compared with the scale factor;
determining an up scale factor larger than the scale factor, wherein the up scale factor can be precisely stored arithmetically in the GPU; and
sending up scaling commands to the GPU to scale the graphics data into a temporary graphics data according to the up scale factor.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining the up scale factor is based on limitations of hardware resources associated with the GPU and a size of the graphics data.

### Claim 3 (depends on 2)

The method of claim 2, wherein the hardware resources include a register having a fixed number of bits to precisely store the actual scale factor arithmetically in the GPU.

### Claim 4 (depends on 3)

The method of claim 3, wherein there is a difference between the scale factor and the actual scale factor, and wherein no number which can be precisely represented by the register differs from the scale factor less than the difference.

### Claim 5 (depends on 3)

The method of claim 3, wherein the up scale factor can be precisely stored arithmetically in the register based on the fixed number of bits.

### Claim 6 (depends on 3)

The method of claim 3, wherein the hardware resources include a graphics operating memory which stores the temporary graphics data.

### Claim 7 (depends on 6)

The method of claim 6, wherein the limitations include the fixed number of bits and a size of the graphics operating memory, wherein a size of the temporary graphics data is less than the size of the graphics operation memory.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
determining a down scale factor based on the scale factor and the up scale factor according to the fixed number of bits, wherein the down scale factor can be precisely stored in the register arithmetically and wherein a combined scale factor corresponds to a combination of the up scale factor and the down scale factor, the combined scale factor differing from the scale factor less than the difference; and
sending down scaling commands to the GPU to scale the temporary graphics data according to the down scale factor.

### Claim 9 (depends on 8)

The method of claim 8, wherein the combined scale factor is based on a multiplication of the up scale factor and the down scale factor.

### Claim 10 (depends on 8)

The method of claim 8, wherein the up scale factor and the down scale factor are determined based on a binary search scheme according to the scale factor and the fixed number of bits.

### Claim 11

A machine-readable medium having instruction stored therein which, when executed on a system, cause the system to perform a method for processing graphics data, comprising:
in response to a graphics command received from a graphics API including a scale factor to scale a graphics data in a graphics processing unit (GPU), determining an actual scale factor corresponding to the scale factor, wherein the actual scale factor can be precisely stored arithmetically in the GPU, the actual scale factor having a difference compared with the scale factor;
determining an up scale factor larger than the scale factor, wherein the up scale factor can be precisely stored arithmetically in the GPU; and
sending up scaling commands to the GPU to scale the graphics data into a temporary graphics data according to the up scale factor.

### Claim 12 (depends on 11)

The machine-readable medium of claim 11, wherein the determining the up scale factor is based on limitations of hardware resources associated with the GPU and a size of the graphics data.

### Claim 13 (depends on 12)

The machine-readable medium of claim 12, wherein the hardware resources include a register having a fixed number of bits to precisely store the actual scale factor arithmetically in the GPU.

### Claim 14 (depends on 13)

The machine-readable medium of claim 13, wherein there is a difference between the scale factor and the actual scale factor, and wherein no number which can be precisely represented by the register differs from the scale factor less than the difference.

### Claim 15 (depends on 13)

The machine-readable medium of claim 13, wherein the up scale factor can be precisely stored arithmetically in the register based on the fixed number of bits.

### Claim 16 (depends on 13)

The machine-readable medium of claim 13, wherein the hardware resources include a graphics operating memory which stores the temporary graphics data.

### Claim 17 (depends on 16)

The machine-readable medium of claim 16, wherein the limitations include the fixed number of bits and a size of the graphics operating memory, wherein a size of the temporary graphics data is less than the size of the graphics operation memory.

### Claim 18 (depends on 17)

The machine-readable medium of claim 17, further comprising:
determining a down scale factor based on the scale factor and the up scale factor according to the fixed number of bits, wherein the down scale factor can be precisely stored in the register arithmetically and wherein a combined scale factor corresponds to a combination of the up scale factor and the down scale factor, the combined scale factor differing from the scale factor less than the difference; and
sending down scaling commands to the GPU to scale the temporary graphics data according to the down scale factor.

### Claim 19 (depends on 18)

The machine-readable medium of claim 18, wherein the combined scale factor is based on a multiplication of the up scale factor and the down scale factor.

### Claim 20 (depends on 18)

The machine-readable medium of claim 18, wherein the up scale factor and the down scale factor are determined based on a binary search scheme according to the scale factor and the fixed number of bits.

### Claim 21

An apparatus for processing graphics data, comprising:
in response to a graphics command received from a graphics API including a scale factor to scale a graphics data in a graphics processing unit (GPU), means for determining an actual scale factor corresponding to the scale factor,
wherein the actual scale factor can be precisely stored arithmetically in the GPU, the actual scale factor having a difference compared with the scale factor;
means for determining an up scale factor larger than the scale factor, wherein the up scale factor can be precisely stored arithmetically in the GPU; and
means for sending up scaling commands to the GPU to scale the graphics data into a temporary graphics data according to the up scale factor.

### Claim 22

A data processing system, comprising:
a processor; and
a memory for storing instructions, which when executed by the processor, cause the processor to:
in response to a graphics command received from a graphics API including a scale factor to scale a graphics data in a graphics processing unit (GPU), determine an actual scale factor corresponding to the scale factor, wherein the actual scale factor can be precisely stored arithmetically in the GPU, the actual scale factor having a difference compared with the scale factor;
determine an up scale factor larger than the scale factor, wherein the up scale factor can be precisely stored arithmetically in the GPU; and
send up scaling commands to the GPU to scale the graphics data into a temporary graphics data according to the up scale factor.
