US 11,055,903 B2  
Antialiasing graphic processing method, system, storage medium and apparatus  
Ping Wang, Shanghai (CN); Yongjun Chen, Shanghai (CN); Huiming Zhang, Shanghai (CN); and Mike Cai, Shanghai (CN)  
Assigned to VeriSilicon Microelectronics (Shanghai) Co., Ltd., Shanghai (CN); and VeriSilicon Holdings Co., Ltd., Grand Cayman (KY)  
Filed by VeriSilicon Microelectronics (Shanghai) Co., Ltd., Shanghai (CN); and VeriSilicon Holdings Co., Ltd., Cayman Islands (GB)  
Filed on Feb. 10, 2020, as Appl. No. 16/683,264.  
Prior Publication US 2020/0160592 A1, May 21, 2020  
Int. Cl. G06T 5/00 (2006.01); G06T 15/40 (2011.01); G06T 15/04 (2011.01) 
CPC G06T 15/40 (2013.01) [G06T 5/002 (2013.01); G06T 15/04 (2013.01)]  11 Claims 
1. An edge antialiasing 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.
