Graphics processing
US-2019188896-A1 · Jun 20, 2019 · US
US11055903B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-11055903-B2 |
| Application number | US-202016683264-A |
| Country | US |
| Kind code | B2 |
| Filing date | Feb 10, 2020 |
| Priority date | Nov 14, 2018 |
| Publication date | Jul 6, 2021 |
| Grant date | Jul 6, 2021 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
The present disclosure provides an edge anti-aliasing graphic processing method, system, storage medium and apparatus. The method includes: obtaining four sampling points by double sampling a pixel horizontally and vertically and performing rasterization to the pixel, determining whether the four sampling points are covered by a triangle; performing a depth value test on the pixel, and determining whether the four sampling points of the pixel are all covered by the triangle; performing final color processing on the pixel, determining whether the four sampling points are covered by the triangle, if the four sampling points are all covered by the triangle, copying a color of the pixel center point to the four sampling points, if not all the four sampling points are covered by the triangle, mixing colors of the four sampling points of the pixel.
Opening claim text (preview).
We claim: 1. An edge anti-aliasing graphic processing method, comprising: obtaining four sampling points by double sampling a pixel horizontally and vertically and performing rasterization to the pixel, determining whether the four sampling points are covered by a triangle, if the four sampling points are all covered by the triangle, calculating a depth value of a pixel center point, copying the depth value of the pixel center point to the four sampling points, and setting a pixel flag bit of the pixel as a first value, if not all the four sampling points are covered by the triangle, calculating depth values of the four sampling points, and setting a pixel flag bit of the pixel as a second value; performing a depth value test on the pixel, and determining whether the four sampling points of the pixel are all covered by the triangle, if the four sampling points are all covered by the triangle, comparing center depth values of the pixel according to a first preset rule, and replacing the depth values of the four sampling points with the compared center depth values, if not all the four sampling points are covered by the triangle, comparing the depth value of each sampling point according to a second preset rule, storing the depth values of the compared four sampling points to a buffer, and finally writing to an external memory; and performing final color processing on the pixel, determining whether the four sampling points are all covered by the triangle, if the four sampling points are all covered by the triangle, copying a color of the pixel center point to the four sampling points, if not all the four sampling points are covered by the triangle, mixing colors of the four sampling points of the pixel. 2. The edge anti-aliasing graphic processing method according to claim 1 , wherein after performing the depth value test on the pixel, the method further comprises: performing color calculation on the pixel, and performing programmable coloring processing on the pixel. 3. The edge anti-aliasing graphic processing method according to claim 1 , further comprising: converting data into a format corresponding to a display and transmitting to an external memory. 4. The edge anti-aliasing graphic processing method according to claim 1 , wherein before performing final color processing on the pixel, the method further comprises: performing texture mapping. 5. The edge anti-aliasing graphic processing method according to claim 1 , wherein before performing final color processing on the pixel, the method further comprises: performing the depth value test on the pixel, determining whether the four sampling points are covered by the triangle, if the four sampling points are all covered by the triangle, comparing center depth values of the pixel according to a first preset rule, and replacing the depth values of the four sampling points with the compared center depth values, if not all the four sampling points are covered by the triangle, comparing the depth value of each sampling point according to a second preset rule, storing the depth values of the compared four sampling points to a buffer, and finally writing to an external memory. 6. The edge anti-aliasing graphic processing method according to claim 1 , wherein when performing the depth value test, if the depth value is not stored in the buffer, reading data from the external memory, if a pixel flag bit of a pixel block which includes the pixel is the first value, decompressing the pixel block and returning data of 64B or 32B according to a number of bits of the pixel block, and expanding the data into 256B or 128B to store the data to the buffer, if the pixel flag bit of the pixel block is not the first value, decompressing the pixel block and returning data of 256B or 128B according to the number of the bits of the pixel block. 7. The edge anti-aliasing graphic processing method according to claim 6 , wherein a state of the pixel block is represented by a hexadecimal digit; 0 represents that compression of 4 times sample pixel fails; 1 represents a clear value of the 4 times sample pixel; 2, 4, 6, 8, 0xA, 0xC, and 0xE represent 7 compression results of the 4 times sample pixel; 3 represents a compression result of a double pixel of 32B; 5 represents that compression of the pixel fails; and 0xF represents a clear value of the pixel. 8. An edge anti-aliasing graphic processing system, comprising: a depth calculation module, a depth value test module, and a pixel processing module; wherein the depth calculation module is configured to obtain four sampling points by double sampling a pixel horizontally and vertically and performing rasterization to the pixel, and determine whether the four sampling points are covered by a triangle, if the four sampling points are all covered by the triangle, calculating a depth value of a pixel center point, copying the depth value of the pixel center point to the four sampling points, and setting a pixel flag bit of the pixel as a first value, if not all the four sampling points are covered by the triangle, calculating depth values of the four sampling points, and setting a pixel flag bit of the pixel as a second value; the depth value test module is configured to perform a depth value test on the pixel, and determine whether the four sampling points of the pixel are all covered by the triangle, if the four sampling points are covered by the triangle, comparing center depth values of the pixel according to a first preset rule, and replacing the depth values of the four sampling points with the compared center depth values, if not all the four sampling points are covered by the triangle, comparing the depth value of each sampling point according to a second preset rule, storing the depth values of the compared four sampling points to a buffer; and the pixel processing module is configured to perform final color processing on the pixel, and determine whether the four sampling points are covered by the triangle, if the four sampling points are all covered by the triangle, copying a color of the pixel center point to the four sampling points, if not all the four sampling points are covered by the triangle, mixing colors of the four sampling points of the pixel. 9. The edge anti-aliasing graphic processing system according to claim 8 , further comprising: a color calculation module, a programmable coloring processing module, a display format conversion module, and a storage access control module; wherein the color calculation module is configured to perform color calculation on the pixel; the programmable coloring processing module is configured to perform programmable coloring processing on the pixel; the display format conversion module is configured to convert data into a format corresponding to a display; the storage access control module is configured to cache the depth value and finally store to an external memory. 10. A non-transitory computer readable storage medium, storing a computer program, wherein the computer program is executed by a processor to implement the edge anti-aliasing graphic processing method according to claim 1 . 11. An edge anti-aliasing graphic processing apparatus, comprising: a processor and a memory; the memory is configured to store a computer program; the processor is coupled with the memory, for executing the computer program stored by the memory, to cause the edge anti-aliasing graphic processing apparatus to perform an edge anti-aliasing graphic processing method, wherein the method comprises: obtaining four sampling points by double sampling a pixel horizontally and vertically and performing rasterization to the pixel, determining whether
Shading · CPC title
Blending, e.g. for anti-aliasing · CPC title
Texture mapping · CPC title
General purpose rendering architectures · CPC title
Filling planar surfaces by adding surface attributes, e.g. adding colours or textures · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.