# US 2021/0287427 A1 · Methods and apparatus for edge compression anti-aliasing

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

- Number: US 2021/0287427 A1
- Document ID: US20210287427A1
- Status: Published application
- Kind: A1
- Application number: 16/816,150
- Filed: 2020-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Andrew Evan GRUBER; Krishnaiah GUMMIDIPUDI; Pavan Kumar AKKARAJU; Kalyan Kumar BHIRAVABHATLA; Ankit Kumar SINGH; Sharad RAJ
- Web page: https://patentgrep.com/patent/US20210287427A1

## CPC

- G06T 15/503: {Blending, e.g. for anti-aliasing}
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T 15/005: {General purpose rendering architectures}
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T 17/205: {Re-meshing}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

The present disclosure relates to methods and apparatus for graphics processing. The present disclosure can calculate a center-edge distance of a first pixel, the center-edge distance of the first pixel equal to a distance from a first pixel center to one or more edges of a first primitive. Additionally, the present disclosure can store the center-edge distance of the first pixel when the first primitive is visible in a scene. The present disclosure can also determine an amount of overlap between the first pixel and the first primitive. Further, the present disclosure can blend a color of the first pixel with a color of a second pixel based on at least one of the center-edge distance of the first pixel or the amount of overlap between the first pixel and the first primitive.

## Claims

### Claim 1

A method of graphics processing, comprising:
calculating a center-edge distance of a first pixel of a plurality of pixels, the center-edge distance of the first pixel equal to a distance from a center of the first pixel to one or more edges of a first primitive of a plurality of primitives in a scene, wherein at least a portion of the first primitive overlaps the center of the first pixel;
storing the center-edge distance of the first pixel when the first primitive is visible in the scene;
determining an amount of overlap between the first pixel and the first primitive; and
blending a color of the first pixel with a color of a second pixel based on at least one of the center-edge distance of the first pixel or the amount of overlap between the first pixel and the first primitive.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining whether a portion of the first pixel overlaps with at least one auxiliary primitive of the plurality of primitives.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
updating the amount of overlap between the first pixel and the first primitive when the at least one auxiliary primitive forms a mesh with the first primitive.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
calculating a distance from the center of the first pixel to one or more edges of the at least one auxiliary primitive when a portion of the first pixel overlaps with the at least one auxiliary primitive.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
storing the distance from the center of the first pixel to the one or more edges of the at least one auxiliary primitive in an auxiliary buffer when a portion of the first pixel overlaps with the at least one auxiliary primitive.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining whether the depth of the first primitive is less than or greater than the depth of the second primitive.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
determining whether the first primitive is visible in the scene.

### Claim 8 (depends on 1)

The method of claim 1, wherein the center-edge distance of the first pixel is stored in an edge buffer when the first primitive is visible in the scene.

### Claim 9 (depends on 8)

The method of claim 8, wherein the center-edge distance of the first pixel is compressed when stored in the edge buffer.

### Claim 10 (depends on 1)

The method of claim 1, wherein the amount of overlap between the first pixel and the first primitive is equal to a portion of an area of the first pixel that overlaps with the first primitive.

### Claim 11 (depends on 1)

The method of claim 1, wherein the color of the first pixel is blended with the color of the second pixel for a portion of the first pixel that does not overlap with the first primitive.

### Claim 12 (depends on 1)

The method of claim 1, wherein the first pixel is adjacent to the second pixel.

### Claim 13 (depends on 1)

The method of claim 1, wherein the color of the first pixel is equal to a color of the first primitive, and the color of the second pixel is equal to a color of the second primitive.

### Claim 14 (depends on 1)

The method of claim 1, wherein a center-edge distance is calculated for each of the plurality of pixels when one of the plurality of primitives overlaps with the center of the pixel.

### Claim 15 (depends on 1)

The method of claim 1, wherein the one or more edges of the first primitive include at least one of a top edge, a bottom edge, a left edge, and a right edge.

### Claim 16 (depends on 1)

The method of claim 1, wherein the center-edge distance of the first pixel is calculated in a rendering pass.

### Claim 17 (depends on 1)

The method of claim 1, wherein the plurality of primitives include a plurality of sub-pixel primitives.

### Claim 18 (depends on 1)

The method of claim 1, wherein the amount of overlap between the first pixel and the first primitive is determined based on at least one of the center-edge distance of the first pixel or a center-edge distance of the second pixel, wherein the center-edge distance of the second pixel is equal to a distance from a center of the second pixel to one or more edges of a second primitive of the plurality of primitives.

### Claim 19 (depends on 1)

The method of claim 1, wherein the amount of overlap between the first pixel and the first primitive is determined based on a depth of the first primitive and a depth of a second primitive of the plurality of primitives.

### Claim 20

An apparatus for graphics processing, comprising:
a memory; and
at least one processor coupled to the memory and configured to:
calculate a center-edge distance of a first pixel of a plurality of pixels, the center-edge distance of the first pixel equal to a distance from a center of the first pixel to one or more edges of a first primitive of a plurality of primitives in a scene, wherein at least a portion of the first primitive overlaps the center of the first pixel;
store the center-edge distance of the first pixel when the first primitive is visible in the scene;
determine an amount of overlap between the first pixel and the first primitive; and
blend a color of the first pixel with a color of a second pixel based on at least one of the center-edge distance of the first pixel or the amount of overlap between the first pixel and the first primitive.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the at least one processor is further configured to:
determine whether a portion of the first pixel overlaps with at least one auxiliary primitive of the plurality of primitives.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein the at least one processor is further configured to:
update the amount of overlap between the first pixel and the first primitive when the at least one auxiliary primitive forms a mesh with the first primitive.

### Claim 23 (depends on 21)

The apparatus of claim 21, wherein the at least one processor is further configured to:
calculate a distance from the center of the first pixel to one or more edges of the at least one auxiliary primitive when a portion of the first pixel overlaps with the at least one auxiliary primitive.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the at least one processor is further configured to:
store the distance from the center of the first pixel to the one or more edges of the at least one auxiliary primitive in an auxiliary buffer when a portion of the first pixel overlaps with the at least one auxiliary primitive.

### Claim 25 (depends on 20)

The apparatus of claim 20, wherein the at least one processor is further configured to:
determine whether the depth of the first primitive is less than or greater than the depth of the second primitive.

### Claim 26 (depends on 20)

The apparatus of claim 20, wherein the at least one processor is further configured to:
determine whether the first primitive is visible in the scene.

### Claim 27 (depends on 20)

The apparatus of claim 20, wherein the center-edge distance of the first pixel is stored in an edge buffer when the first primitive is visible in the scene.

### Claim 28 (depends on 27)

The apparatus of claim 27, wherein the center-edge distance of the first pixel is compressed when stored in the edge buffer.

### Claim 29 (depends on 20)

The apparatus of claim 20, wherein the amount of overlap between the first pixel and the first primitive is equal to a portion of an area of the first pixel that overlaps with the first primitive.

### Claim 30 (depends on 20)

The apparatus of claim 20, wherein the color of the first pixel is blended with the color of the second pixel for a portion of the first pixel that does not overlap with the first primitive.

### Claim 31 (depends on 20)

The apparatus of claim 20, wherein the first pixel is adjacent to the second pixel.

### Claim 32 (depends on 20)

The apparatus of claim 20, wherein the color of the first pixel is equal to a color of the first primitive, and the color of the second pixel is equal to a color of the second primitive.

### Claim 33 (depends on 20)

The apparatus of claim 20, wherein a center-edge distance is calculated for each of the plurality of pixels when one of the plurality of primitives overlaps with the center of the pixel.

### Claim 34 (depends on 20)

The apparatus of claim 20, wherein the one or more edges of the first primitive include at least one of a top edge, a bottom edge, a left edge, and a right edge.

### Claim 35 (depends on 20)

The apparatus of claim 20, wherein the center-edge distance of the first pixel is calculated in a rendering pass.

### Claim 36 (depends on 20)

The apparatus of claim 20, wherein the plurality of primitives include a plurality of sub-pixel primitives.

### Claim 37 (depends on 20)

The apparatus of claim 20, wherein the amount of overlap between the first pixel and the first primitive is determined based on at least one of the center-edge distance of the first pixel or a center-edge distance of the second pixel, wherein the center-edge distance of the second pixel is equal to a distance from a center of the second pixel to one or more edges of a second primitive of the plurality of primitives.

### Claim 38 (depends on 20)

The apparatus of claim 20, wherein the amount of overlap between the first pixel and the first primitive is determined based on a depth of the first primitive and a depth of a second primitive of the plurality of primitives.

### Claim 39

An apparatus for graphics processing, comprising:
means for calculating a center-edge distance of a first pixel of a plurality of pixels, the center-edge distance of the first pixel equal to a distance from a center of the first pixel to one or more edges of a first primitive of a plurality of primitives in a scene, wherein at least a portion of the first primitive overlaps the center of the first pixel;
means for storing the center-edge distance of the first pixel when the first primitive is visible in the scene;
means for determining an amount of overlap between the first pixel and the first primitive; and
means for blending a color of the first pixel with a color of a second pixel based on at least one of the center-edge distance of the first pixel or the amount of overlap between the first pixel and the first primitive.

### Claim 40 (depends on 39)

The apparatus of claim 39, further comprising:
means for determining whether a portion of the first pixel overlaps with at least one auxiliary primitive of the plurality of primitives.

### Claim 41 (depends on 40)

The apparatus of claim 40, further comprising:
means for updating the amount of overlap between the first pixel and the first primitive when the at least one auxiliary primitive forms a mesh with the first primitive.

### Claim 42 (depends on 40)

The apparatus of claim 40, further comprising:
means for calculating a distance from the center of the first pixel to one or more edges of the at least one auxiliary primitive when a portion of the first pixel overlaps with the at least one auxiliary primitive.

### Claim 43 (depends on 42)

The apparatus of claim 42, further comprising:
means for storing the distance from the center of the first pixel to the one or more edges of the at least one auxiliary primitive in an auxiliary buffer when a portion of the first pixel overlaps with the at least one auxiliary primitive.

### Claim 44 (depends on 39)

The apparatus of claim 39, further comprising:
means for determining whether the depth of the first primitive is less than or greater than the depth of the second primitive.

### Claim 45 (depends on 39)

The apparatus of claim 39, further comprising:
means for determining whether the first primitive is visible in the scene.

### Claim 46 (depends on 39)

The apparatus of claim 39, wherein the center-edge distance of the first pixel is stored in an edge buffer when the first primitive is visible in the scene.

### Claim 47 (depends on 46)

The apparatus of claim 46, wherein the center-edge distance of the first pixel is compressed when stored in the edge buffer.

### Claim 48 (depends on 39)

The apparatus of claim 39, wherein the amount of overlap between the first pixel and the first primitive is equal to a portion of an area of the first pixel that overlaps with the first primitive.

### Claim 49 (depends on 39)

The apparatus of claim 39, wherein the color of the first pixel is blended with the color of the second pixel for a portion of the first pixel that does not overlap with the first primitive.

### Claim 50 (depends on 39)

The apparatus of claim 39, wherein the first pixel is adjacent to the second pixel.

### Claim 51 (depends on 39)

The apparatus of claim 39, wherein the color of the first pixel is equal to a color of the first primitive, and the color of the second pixel is equal to a color of the second primitive.

### Claim 52 (depends on 39)

The apparatus of claim 39, wherein a center-edge distance is calculated for each of the plurality of pixels when one of the plurality of primitives overlaps with the center of the pixel.

### Claim 53 (depends on 39)

The apparatus of claim 39, wherein the one or more edges of the first primitive include at least one of a top edge, a bottom edge, a left edge, and a right edge.

### Claim 54 (depends on 39)

The apparatus of claim 39, wherein the center-edge distance of the first pixel is calculated in a rendering pass.

### Claim 55 (depends on 39)

The apparatus of claim 39, wherein the plurality of primitives include a plurality of sub-pixel primitives.

### Claim 56 (depends on 39)

The apparatus of claim 39, wherein the amount of overlap between the first pixel and the first primitive is determined based on at least one of the center-edge distance of the first pixel or a center-edge distance of the second pixel, wherein the center-edge distance of the second pixel is equal to a distance from a center of the second pixel to one or more edges of a second primitive of the plurality of primitives.

### Claim 57 (depends on 39)

The apparatus of claim 39, wherein the amount of overlap between the first pixel and the first primitive is determined based on a depth of the first primitive and a depth of a second primitive of the plurality of primitives.

### Claim 58

A computer-readable medium storing computer executable code for graphics processing, comprising code to:
calculate a center-edge distance of a first pixel of a plurality of pixels, the center-edge distance of the first pixel equal to a distance from a center of the first pixel to one or more edges of a first primitive of a plurality of primitives in a scene, wherein at least a portion of the first primitive overlaps the center of the first pixel;
store the center-edge distance of the first pixel when the first primitive is visible in the scene;
determine an amount of overlap between the first pixel and the first primitive; and
blend a color of the first pixel with a color of a second pixel based on at least one of the center-edge distance of the first pixel or the amount of overlap between the first pixel and the first primitive.
