Color processing method and system for parallelly synthesizing a plurality of pixel colors, and electronic device

By processing and allocating pixel processors and color channels in parallel, the problem of high computational complexity in real-time pixel synthesis with high resolution and high frame rate in the existing technology is solved, and efficient pixel color calculation and storage space optimization are achieved.

WO2024221225A1PCT designated stage expired Publication Date: 2024-10-31ZHUO YONGHONG
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/090611
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When the existing technology handles real-time pixel synthesis with high resolution and high frame rate, the calculation amount is large and cannot meet the requirements of real-time calculation, especially when the number of graphics elements is large.

Method used

The method of parallel synthesis of multiple pixel colors is used to read and process the pixel primitive list in parallel, generate a primitive processing allocation table, allocate primitive processors and color channels, count and synthesize primitive color information, and generate image data.

Benefits of technology

It reduces the storage space occupied, significantly improves the color calculation speed of primitives, and meets the needs of real-time calculation and high-resolution and high-frame-rate display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023090611_31102024_PF_FP_ABST
    Figure CN2023090611_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a color processing method for parallelly synthesizing a plurality of pixel colors, an apparatus and an electronic device. The method comprises: parallelly reading a plurality of pixel primitive lists, obtaining statistics of a set consisting of pixels having the same pixel primitive list and continuous positions, and generating a primitive processing allocation table; then reading the primitive processing allocation table to parallelly generate primitive color information of the plurality of pixels, and, according to a generation sequence, arranging the primitive color information generated in a same primitive processing group so as to form a color group table; parallelly reading a plurality of color group tables to obtain statistics of color values, and parallelly generating pixel primitive color lists of the plurality of pixels; and finally parallelly reading the plurality of pixel primitive color lists, and parallelly synthesizing colors of the plurality of pixels, generating image data and outputting same. A graphic processing apparatus of the present invention can greatly increase primitive color computation speeds without the need of more storage space, and can meet the requirements for real-time computation and the requirements for real-time pixel synthesis drive screen display having high resolution and high frame rates.
Need to check novelty before this filing date? Find Prior Art

Description

Color processing method and system for parallel synthesis of multiple pixel colors and electronic device Technical Field

[0001] The present invention relates to the field of graphics processing technology, and in particular to a color processing method and system and electronic equipment for synthesizing multiple pixel colors in parallel. Background Art

[0002] "Pixel-by-pixel real-time synthesis technology" refers to a graphics processing system (GPU) that, based on the application's graphics drawing instructions, sequentially processes the pixels of the current image to be drawn, reads the source data of each primitive at the current pixel, performs real-time pixel synthesis, generates image data, and sends it to the display device in real time for display, rather than temporarily storing it in a frame buffer and sending it to the display device after a frame is rendered. The primitive source data refers to the source data of the primitive at the current pixel to be drawn, including color and transparency values. For details, please refer to another PCT international patent application, "Bitmap Primitive-Based Graphics Processing System, Method, and GPU" (International Application No. PCT / CN2022 / 10458). Frame buffer memory (also known as frame buffer or video memory) is a direct image of the screen display, also known as a bit map or raster. Each storage unit in the frame buffer corresponds to a pixel on the screen, and the entire frame buffer corresponds to a frame of image.

[0003] Using "real-time pixel-by-pixel synthesis" technology to process computer graphics can reduce hardware costs and eliminate the need for frame buffer memory. However, if the graphics to be displayed contain a large number of primitives, calculating the color values ​​of each primitive superimposed on each pixel in the graphics is a computationally intensive task. Processing only one pixel at a time cannot meet the real-time computing requirements and the demand for high-resolution, high-frame-rate, real-time pixel synthesis-driven screen displays. Technical issues

[0004] The technical problem to be solved by the present invention is to provide a color processing method and system and an electronic device for synthesizing multiple pixel colors in parallel, which does not require a lot of storage space and can greatly improve the speed of primitive color calculation, meet the requirements of real-time calculation, and the demand for high-resolution, high-frame-rate real-time pixel synthesis drive screen display. Technical Solutions

[0005] According to one embodiment, a color processing method for synthesizing multiple pixel colors in parallel includes: reading the pixel primitive list of each pixel of the current to-be-drawn group in parallel, parsing the position coordinates of each pixel and the basic information of each primitive in the pixel primitive list, counting one or more sets consisting of pixels with the same pixel primitive list and continuous positions, generating a primitive processing allocation table that records the coordinates of the starting pixel in the set, the number of primitives, the number of pixels, the unique identifier of each primitive sorted in sequence by primitive level, the identifier of the primitive processor assigned to each primitive, and the channel number matched by each pixel; wherein the current to-be-drawn group includes multiple consecutive pixels belonging to the same pixel row; the pixel primitive list includes at least the unique identifier of the primitive; the basic information of the primitive includes at least the unique identifier of the primitive, the clipping area, the level and the format; the channel number is used to identify the color configured as the synthesized pixel color Color channel; read the primitive processing allocation table and generate primitive color information of multiple pixels in parallel, and the primitive color information generated in the same primitive processing group is arranged in the generation order to form a color group table; wherein, the primitive color information includes at least the channel number, layer number, pixel coordinates, color value, and layer maximum mark; the layer number refers to the number formed by arranging all the primitives of the pixel in hierarchical order; the layer maximum mark is used to mark the primitive as the primitive with the largest level among all the primitives of the pixel; there are at least two primitive processing groups, and each group is composed of at least two primitive processors; read multiple color group tables in parallel, count the color values ​​of all the primitives of the pixel, and generate pixel primitive color lists of multiple pixels in parallel; wherein, the pixel primitive color list includes at least pixel coordinates, color value and layer maximum mark; read multiple pixel primitive color lists in parallel, synthesize the colors of multiple pixels in parallel, generate image data and output.

[0006] According to one embodiment, a color processing system for synthesizing multiple pixel colors in parallel includes a color processor, multiple primitive processors, multiple processing group FIFO registers, multiple color channels and multiple color shaders; the color processor reads the pixel primitive list of each pixel of the current group to be drawn in parallel, parses the position coordinates of each pixel and the basic information of each primitive in the pixel primitive list, counts one or more sets consisting of pixels with the same pixel primitive list and continuous positions, and generates a primitive processing allocation table that records the coordinates of the starting pixel in the set, the number of primitives, the number of pixels, the unique identifier of each primitive sorted in sequence by primitive level, the identifier of the primitive processor assigned to each primitive, and the channel number matched by each pixel; wherein the current group to be drawn includes multiple consecutive pixels belonging to the same pixel row; the pixel primitive list includes at least the unique identifier of the primitive; the basic information of the primitive includes at least the unique identifier of the primitive, the clipping area, the level and the format; the channel number is used to identify the pixel configured to be synthesized Color channel of color; multiple primitive processors, reading the primitive processing allocation table and generating primitive color information of multiple pixels in parallel; wherein the primitive color information includes at least channel number, layer sequence number, pixel coordinates, color value, and layer maximum mark; the layer sequence number refers to the sequence number formed by arranging all the primitives of the pixel in hierarchical order; the layer maximum mark is used to mark the primitive as the primitive with the largest level among all the primitives of the pixel; multiple processing group FIFO registers arrange the primitive color information generated in the same primitive processing group in the order of generation to form a color group table; wherein there are at least two groups of primitive processing groups, each group consists of at least two primitive processors; multiple color channels, reading multiple color group tables in parallel, counting the color values ​​of all the primitives of the pixel, and generating pixel primitive color lists of multiple pixels in parallel; wherein the pixel primitive color list includes at least pixel coordinates, color value and layer maximum mark; multiple color shaders, reading multiple pixel primitive color lists in parallel, synthesizing the colors of multiple pixels in parallel, generating image data and outputting it.

[0007] According to one embodiment, an electronic device includes a processor, a memory, a graphics processing device connected to the processor and the memory, and a display device connected to the graphics processing device; the graphics processing device includes the above-mentioned color processing system for parallel synthesis of multiple pixel colors, and a primitive list processing unit and a pixel color cache connected to the color processing system for parallel synthesis of multiple pixel primitives; the primitive list processing unit generates a pixel primitive list; the pixel color cache caches and outputs the image data; and the display device receives and displays the image data. Beneficial effects

[0008] The color processing method and system for synthesizing multiple pixel colors in parallel and the electronic device of the present invention do not occupy much storage space and can greatly improve the speed of pixel color generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] FIG1 is a structural block diagram of a graphics processing apparatus and an electronic device according to some embodiments.

[0010] FIG. 2 is a block diagram of a color processing system for synthesizing multiple pixel primitives in parallel according to some embodiments.

[0011] FIG3 is a schematic diagram of a display interface in which three graphic elements in different formats are superimposed on each other according to an embodiment.

[0012] FIG4 is a structural block diagram of a color processing system for synthesizing multiple pixel primitives in parallel according to an embodiment.

[0013] FIG. 5 is a list of pixel primitives of the current to-be-drawn group in FIG. 3 .

[0014] FIG. 6 is a primitive processing allocation table generated according to the pixel primitive list of FIG. 2 , according to an embodiment.

[0015] FIG. 7 is a diagram showing an embodiment of a color group table formed by the primitive processing group G1 based on the primitive color information formed by the primitive processing allocation table of FIG. 6 and the processing group FIFO register F1.

[0016] FIG8 is a diagram showing an embodiment of a color group table formed by the primitive processing group G2 based on the primitive color information formed by the primitive processing allocation table of FIG6 and the processing group FIFO register F2.

[0017] FIG9 is a diagram showing an embodiment of a color group table formed by the primitive processing group G3 based on the primitive color information formed by the primitive processing allocation table of FIG6 and the processing group FIFO register F3.

[0018] FIG. 10 is a diagram showing an embodiment of a color group table formed by the primitive processing group G4 based on the primitive color information formed by the primitive processing allocation table of FIG. 6 and the processing group FIFO register F4.

[0019] FIG. 11 is a pixel primitive color list formed by color channel PC1 and color channel PC2 according to the color group table of FIG. 7-8 in an embodiment.

[0020] FIG. 12 is a pixel primitive color list formed by color channel PC3 and color channel PC4 according to the color group table of FIG. 9-10 in one embodiment.

[0021] FIG. 13 is a block diagram illustrating steps of a color processing method for synthesizing multiple pixel colors in parallel according to some embodiments. Best Mode for Carrying Out the Invention

[0022] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments recorded herein are only used to illustrate and explain the present invention and are not intended to limit the present invention.

[0023] It should be noted that "graphics" as used in this application refers to any information that can be presented on an electronic device, including the display interface of an application. "Graphics primitives" refer to different types of graphical elements on a graphic, such as text in various glyphs, symbols and icons of various shapes, and colorful or monochromatic background images. A "graphic" consists of one or more "graphic primitives."

[0024] Graphics primitives can be categorized and layered according to agreed-upon rules. For example, images and text can be categorized as solid color primitives, ARGB primitives, linear gradient primitives, glyph primitives, and so on. Layers at different overlay levels can be categorized as window-layer primitives at the bottom layer, control-layer primitives at the middle layer, and bitmap-layer primitives at the top layer. For more details, please refer to another PCT international patent application, "Graphics Processing System, Method, and GPU Based on Bitmap Primitives" (International Application No. PCT / CN2022 / 10458).

[0025] The graphic element at the current pixel to be drawn may include multiple graphic elements in different formats (for example, one image graphic element superimposed on one text graphic element), and they are superimposed and displayed through predefined layers to form a semi-transparent mixed effect.

[0026] In this application, the graphics processing device adopts point-by-point real-time pixel synthesis technology and real-time generation of pixel primitive list technology, which does not take up much storage space and can greatly improve the primitive sorting calculation speed, meeting the real-time requirements for reading primitive source data when performing real-time pixel synthesis, and reducing the capacity of the cache, thereby reducing the system hardware cost.

[0027] Electronic devices process graphics using a graphics processing device to generate image data, which is then presented on a display device. These electronic devices may include personal computers, computer workstations, mobile phones, portable gaming devices, music and video players, portable smart wearable devices (e.g., smart bracelets, smart watches, smart glasses), portable smart translation devices, automotive electronic instrument panel displays, automotive electronic control system displays, or other types of devices that process and display graphic data.

[0028] Display devices may include liquid crystal displays (LCDs), plasma display panels, light-emitting diode (LED) array displays, cathode ray tube (CRT) displays, nanocrystal displays, electronic paper, and projection equipment. Display devices may be integrated into electronic devices or be standalone devices connected to electronic devices via cables or wireless communication interfaces.

[0029] As shown in FIG1 , the electronic device includes a processor 200, a memory 300, a graphics processing device 100 connected to the processor 200 and the memory 300, and a display device 400 connected to the graphics processing device 100. The graphics processing device 100 includes a primitive list processing unit 110, a color processing system 120, and a pixel color buffer 130.

[0030] The processor 200 can be a general-purpose or dedicated processor (CPU) for controlling electronic devices, and can execute various software programs, such as operating system programs (e.g., computer operating systems or embedded operating systems), various application programs (e.g., browsers, emails, media players, GUI applications (Graphical User Interface, graphical user interface). The CPU can also obtain data to be refreshed and displayed through human-computer interaction input devices (e.g., keyboards, buttons, touch screens, microphones), or various sensors (e.g., vehicle speed sensors, fuel level sensors, wiper sensors), or communication modules (e.g., Bluetooth communication modules, WIFI communication modules, GPRS communication modules), or other input devices coupled to the image display device via a data interface. Various software applications running on the CPU can call graphics APIs (Application Program Interfaces), execute GPU drivers, issue pixel synthesis commands to the GPU, and start the GPU to generate image data for the display device 400 to form an image.

[0031] The memory 300 may be used to store application program data, source data of graphics elements to be displayed, etc. The memory 300 may be a non-volatile memory, such as a flash memory (SpiFlash or NandFlash), an erasable programmable RAM (EPROM), an electrically erasable programmable ROM (EEPROM), etc.

[0032] The graphics processing device 100 can receive a frame start signal from a display controller or other external display control module. After completing initialization, it reads the source data of the graphics primitives to be displayed, performs real-time pixel synthesis point by point, generates image data, and drives the display device 400 for display. The graphics processing device 100 can be a processor dedicated to processing graphics data, such as a GPU.

[0033] As shown in FIG. 2 , the graphics processing device 100 includes a primitive list processing unit 110 , a color processing system 120 , and a pixel color buffer 130 .

[0034] The processor 200 starts the graphics processing device 100 to execute the graphics rendering program through the GPU driver. The primitive list processing unit 110 calculates the primitive list of the group of pixels to be drawn according to the graphics rendering program, each time using a group of consecutive pixels to be drawn belonging to the same pixel row as a unit, and generates a pixel primitive list. The group of pixels to be drawn can be called the current group to be drawn, and the pixel primitive list includes at least the unique identifiers of all primitives contained in each pixel point in the current group to be drawn. In this embodiment, the unique identifiers of the primitives in the pixel primitive list are sorted from low to high according to the hierarchy of the primitives, with the lower hierarchy being in front and the higher hierarchy being in the back. Sorting the unique identifiers of the primitives from high to low according to the hierarchy of the primitives does not affect the implementation of the present invention.

[0035] The basic information for each element includes at least its unique identifier, clipping region, level, and format. The clipping region is the smallest rectangular area occupied by the element within the effective display area. The level refers to the level at which elements are displayed as overlays.

[0036] The color processing system 120 includes a color processor 121, a plurality of primitive processors P1-Pn, a plurality of processing group FIFO registers F1-Fm, a plurality of color channels PC1-PCm and a plurality of color shaders PX1-PXm, where n and m are natural numbers greater than 1.

[0037] The color processor 121 reads the pixel primitive list of each pixel in the current group to be drawn in parallel, parses the position coordinates of each pixel and the basic information of each primitive in the pixel primitive list, counts one or more sets of pixels with the same pixel primitive list and continuous positions, and then generates a primitive processing allocation table. This primitive processing allocation table records the starting pixel coordinates, the number of primitives, the number of pixels, the unique identifier of each primitive in each set, sorted by primitive level, the identifier of the primitive processor assigned to each primitive, and the channel number matched to each pixel. The channel number is used to identify the color channel configured to synthesize the pixel color.

[0038] Multiple primitive processors P1-Pn read the primitive processing allocation table and generate primitive color information for multiple pixels in parallel. Primitive color information includes at least the channel number, layer number, pixel coordinates, color value, and layer maximum flag. The layer number is the hierarchical sequence of all primitives in a pixel. The layer maximum flag indicates that the primitive has the largest layer among all primitives in the pixel.

[0039] Multiple processing group FIFO registers F1-Fm arrange the primitive color information generated in the same primitive processing group in the order of generation to form a color group table. There are at least two primitive processing groups Gm, each consisting of at least two primitive processors Pn.

[0040] Multiple color channels PC1-PCm read multiple color group tables in parallel, calculate the color values ​​of all pixel primitives, and generate pixel primitive color lists for multiple pixels in parallel. A pixel primitive color list includes at least pixel coordinates, color values, and a layer maximum flag. Multiple color shaders PX1-PXm read multiple pixel primitive color lists in parallel, synthesize the colors of multiple pixels in parallel, generate image data, and output it.

[0041] The pixel color buffer 130 buffers and outputs image data to the display device 400 .

[0042] The display device 400 receives and displays image data.

[0043] In one embodiment, the color processor 121 is connected to the primitive list processing unit 110 via the GPU bus 122, multiple primitive processing groups G1-Gm are connected to the color processor 121 via the GPU bus 122, and multiple processing group FIFO registers F1-Fm are connected to the color channels PC1-PCm via the channel data bus 123.

[0044] In one embodiment, color channels PC1-PCm include comparators CA1-CAm and channel FIFO registers CF1-CFm. The comparators CA1-Cam read the primitive color information from multiple color group tables in parallel, compare and determine the channel number and pixel coordinates of each primitive color information, and write the primitive color information with the same channel number and pixel coordinates into the corresponding table entry in the same pixel primitive color list according to the layer sequence number.

[0045] Channel FIFO registers CF1-CFm temporarily store the pixel primitive color list and send it to the color shader.

[0046] The following describes various components and modules of some embodiments of the present invention through specific examples, but these examples are not intended to limit the present invention.

[0047] As shown in Figures 3 and 4, the active display area overlays three primitives of different formats: JPG primitive 01, text primitive 07, and solid color primitive 05. There are four primitive processing groups, G1-G4, each consisting of three different primitive processors: a first primitive processor for processing JPG primitives, a second primitive processor for processing text primitives, and a third primitive processor for processing solid color primitives. The primitive processor types are categorized based on the primitive format. There are four processing group FIFO registers, F1-F4, and four color channel registers, PC01-PC04, including comparator parsers CA1-CA4 and channel FIFO registers CF1-CF4. Each color channel group can process a maximum of 260 pixels. The color shader has four PX1-PX4 registers.

[0048] The current to-be-drawn group 140 includes 80 pixels in total, and the starting pixel coordinates XY are (1, 320). As shown in FIG5 , the pixel primitive list group 900 of the current to-be-drawn group 140 includes pixel primitive lists 901 - 980 of 80 pixels in total.

[0049] The color processor 121 reads the pixel primitive lists 901-980 of these 80 pixels in parallel, and based on the pixel primitive list 901 of the first pixel to the pixel primitive list 920 of the twentieth pixel, only including primitive 01, counts the set A, the starting pixel coordinate XY is (1,320), and then generates the primitive processing allocation table 501.

[0050] In one embodiment, the color processor generates a primitive processing allocation table based on the format of each primitive in the set, the current state of the primitive processor and the current state of the color channel, and assigns a matching primitive processor identifier to each primitive in the set, and assigns a matching channel number of the color channel to each pixel in the set.

[0051] In one embodiment, the color processor preferentially assigns pixels in the set that do not exceed the maximum pixel processing quantity of a single color channel to the same channel number.

[0052] Specifically, in this example, based on the fact that set A only includes primitive 01 in JPG format and that the first primitive processor G1P1 of primitive processing group G1 is currently idle and capable of processing JPG primitives, color processor 121 assigns primitive processor G1PI to primitive 01. Furthermore, based on the fact that the READY signal of color channel PC01 is active, indicating that it is currently available for allocation, and that the maximum number of pixels to be processed for color channel PC01 is 260, color processor 121 assigns color channel PC01 to all pixels in set A and then generates primitive processing allocation table 501.

[0053] Table 501 records the starting pixel coordinates XY (1,320), the number of primitives PN is 1, the number of pixels PXN is 20, the unique identifier IDX1 of primitive 01 is 01, the primitive processor identifier PID1 assigned to primitive 01 is G1P1, and the channel number PCID of the color channel assigned to pixels (1,320) to (20,320) is PC01.

[0054] In one embodiment, the color processor preferentially assigns primitives within the same set to identifiers of primitive processors in different primitive processing groups whose types match the format of the primitives.

[0055] Specifically, in this example, the color processor 121 calculates a set B based on pixel primitive lists 921 for the 21st pixel to 940 for the 40th pixel, all of which include primitives 01 and 05. The starting pixel coordinates XY are (21, 320). The color processor 121 preferentially assigns primitive 01 in JPG format to the first primitive processor G2P1 in primitive processing group G2. The color processor 121 assigns primitive 05 in text format to the second primitive processor G1P2 in primitive processing group G1. All pixels in set B are assigned color channel PC02, and then generates a primitive processing assignment table 502.

[0056] Table 502 records the starting pixel coordinates XY (21,320), the number of primitives PN is 2, the number of pixels PXN is 20, the unique identifier IDX1 of primitive 01 is 01, the primitive processor identifier PID1 assigned to primitive 01 is G2P1, the unique identifier IDX2 of primitive 05 is 05, the primitive processor identifier PID2 assigned to primitive 05 is G1P2, and the channel number PCID of the color channel assigned to pixels (21,320) to (40,320) is PC02.

[0057] In one embodiment, the color processor preferentially assigns matching primitive processor identifiers to primitives with high priorities based on a preset priority, wherein the priority is divided based on the format of the primitives.

[0058] In this example, the preset priority is that JPG format primitives are higher than text format primitives, and text format primitives are higher than solid color format primitives. The color processor 121 preferentially assigns a primitive processor to JPG format primitive 01 in each set, then to text format primitive 05, and finally to solid color format primitive 07.

[0059] The color processor 121 continues to count the set C based on the pixel primitive list 941 of the 41st pixel to the pixel primitive list 960 of the 60th pixel, all of which include primitive 01, primitive 05 and primitive 07, with the starting pixel coordinate XY being (41, 320), and then generates the primitive processing allocation table 503 based on the basic information of primitive 01, primitive 05 and primitive 07, and the working status of the current primitive processor and color channel.

[0060] Table 503 records the starting pixel coordinates XY (41,320), the number of primitives PN is 3, the number of pixels PXN is 20, the unique identifier IDX1 of primitive 01 is 01, the primitive processor identifier PID1 assigned to primitive 01 is G3P1, the unique identifier IDX2 of primitive 05 is 05, the primitive processor identifier PID2 assigned to primitive 05 is G3P2, the unique identifier IDX3 of primitive 07 is 07, the primitive processor identifier PID3 assigned to primitive 07 is G4P3, and the channel number PCID of the color channel assigned to pixels (41,320) to (60,320) is PC03.

[0061] The color processor 121 then continues to count the set D based on the pixel primitive list 961 of the 61st pixel to the pixel primitive list 980 of the 80th pixel, all of which include primitive 01 and primitive 05, with the starting pixel coordinate XY being (61, 320). Then, based on the basic information of primitive 01 and primitive 05, and the working status of the current primitive processor and color channel, the primitive processing allocation table 504 is generated.

[0062] Table 504 records the starting pixel coordinate XY (61,320), the number of primitives PN is 2, the number of pixels PXN is 20, the unique identifier IDX1 of primitive 01 is 01, the primitive processor identifier PID1 assigned to primitive 01 is G4P1, the unique identifier IDX2 of primitive 05 is 05, the primitive processor identifier PID2 assigned to primitive 05 is G4P2, and the channel number PCID of the color channel assigned to pixels (61,320) to (80,320) is PC04.

[0063] In one embodiment, the color processor sends basic information of the primitive to a matching primitive processor and configures the state of the primitive processor to be a working state.

[0064] Specifically, in this example, after generating the primitive processing allocation table 501 for set A, the color processor 121 broadcasts the table 501 to the primitive processing groups G1-G4, and then continues to generate primitive processing allocation tables 502-504 for set B, set C and set D in turn, and broadcasts them to primitive processing groups G1-G4 in turn.

[0065] After receiving table 501, primitive processing groups G1-G4 interpret the primitive processor identifier (PID) as G1P1. The first primitive processor G1P1 in primitive processing group G1 then caches table 501 and receives the basic information for primitive 01 from color processor 121. After color processor 121 sends the basic information for primitive 01 to primitive processor G1P1, it sets the state of first primitive processor G1P1 to active. Then, color processor 121 broadcasts table 502 to primitive processing groups G1-G4.

[0066] In one embodiment, multiple primitive processors parse the primitive processing allocation table, and the primitive processor matching the primitive processor identifier generates the color value of each pixel in sequence starting from the starting pixel based on the primitive's unique identifier, the coordinates of the starting pixel, and the number of pixels.

[0067] Specifically, in this example, after receiving table 501, primitive processing groups G1-G4 parse the primitive processor identifier PID as G1P1. The first primitive processor G1P1 then caches table 501 and receives basic information about primitive 01 from color processor 121. Starting from the starting pixel (1,320) of set A, the first primitive processor G1P1 generates the color values ​​ARGB (9B9A) and XY coordinates of 20 pixels one by one, and combines these values ​​with the channel number PC01, the layer maximum flag M, and the layer sequence number L to form primitive color information 611 for the 20 groups of pixels of primitive 01. See the example in FIG7 .

[0068] In one embodiment, the primitive processor generates a layer sequence number for the primitive based on the position of the primitive's unique identifier in the primitive processing allocation table; and generates a maximum layer mark for the primitive based on whether the primitive's unique identifier is in the front or back position.

[0069] Specifically, in this example, the second primitive processor G1P2 receives the basic information of primitive 05 and table 502, then generates the ARGB (5F5E) color values ​​and XY coordinates of each pixel for 20 pixels, starting from the starting pixel (21,320) of set B. In table 502, primitive 05 is ranked second and last, following primitive 01. Based on the principle of sorting layers from low to high, and the principle of numbering layers starting from 0, the second primitive processor G1P2 generates a layer number L of 1 for primitive 05, and sets the maximum layer flag to 1, indicating that it is valid.

[0070] In addition, those skilled in the art may also change the hierarchical sorting rule to sorting in descending order, and change the numbering rule of the layer sequence number to start from 1 or 2 or other numbers, which will not affect the implementation of the present invention.

[0071] Then, the second primitive processor G1P2 combines the color value ARGB of each pixel with the channel number PC02, the layer maximum mark M and the layer sequence number L to form primitive color information 612 of 20 groups of pixels of primitive 05, see the example of FIG. 7 .

[0072] The first primitive processor G2P1 also receives table 502 and the basic information for primitive 01. Starting from the starting pixel (21,320) of set B, it generates the color values ​​ARGB (9B9A) and XY coordinates for each of the 20 pixels. Given that primitive 01 is the first pixel in table 502, that layers are ordered from low to high, and that layer numbers are numbered starting at 0, the first primitive processor G2P1 generates a layer number L of 0 for primitive 01, and sets the layer maximum flag to 0. Combined with the color values ​​ARGB (9B9A) and channel number PC02, primitive color information 621 for the 20 groups of pixels in primitive 01 is generated. See the example in Figure 8.

[0073] Each time primitive processors G1P1-G1P3 of primitive processing group G1 generate a piece of primitive color information 611-613, they send it to processing group FIFO register F1, forming a color group table 615 arranged in the order of generation. Processing group FIFO register F1 sends the records in color group table 615 to color channels PC01-PC04 one by one in the order in which they are generated, as shown in the example of FIG7 .

[0074] Similarly, each time primitive processors G2P1-G2P3 of primitive processing group G2 generate a piece of primitive color information 621-623, they send it to processing group FIFO register F2, forming a color group table 625 arranged in the order of generation. Processing group FIFO register F2 sends each record in color group table 625 to color channels PC01-PC04 in first-in, first-out order, as shown in the example of FIG8 .

[0075] As shown in the example of Figures 9-10, the color processor continues to broadcast the primitive processing allocation table 503 to primitive processing groups G1-G4. Then, the first primitive processor G3P1 and the second primitive processor G3P2 of primitive processing group G3 receive the basic information of primitive 01 and primitive 05, respectively, and table 503. The third primitive processor G4P3 of primitive processing group G4 receives the basic information of primitive 07 and table 503.

[0076] The first primitive processor G3P1 generates primitive color information 631 , the second primitive processor G3P2 generates primitive color information 632 , and the third primitive processor G4P3 generates primitive color information 643 , see the examples of FIG. 9-10 .

[0077] Each time primitive processors G3P1-G3P3 of primitive processing group G3 generate a piece of primitive color information 631-633, they send it to processing group FIFO register F3, forming a color group table 635 arranged in the order of generation. Processing group FIFO register F3 sends each record in color group table 635 to color channels PC01-PC04 in first-in, first-out order.

[0078] The color processor continues to broadcast the primitive processing allocation table 504 for set D to primitive processing groups G1-G4. The first primitive processor G4P1 and the second primitive processor G4P2 of primitive processing group G4 receive the basic information of primitives 01 and 05, respectively, and table 504. The first primitive processor G4P1 generates primitive color information 641, and the second primitive processor G4P2 generates primitive color information 642.

[0079] Each time primitive processors G4P1-G4P3 of primitive processing group G4 generate a piece of primitive color information 641-643, they send it to processing group FIFO register F4, forming a color group table 645 arranged in the order of generation. Processing group FIFO register F4 sends each record in color group table 645 to color channels PC01-PC04 in first-in, first-out order.

[0080] Color channels PC01-PC04 read these color group tables in parallel, count the color values ​​of all primitives of each pixel, and generate pixel primitive color lists of multiple pixels in parallel.

[0081] In one embodiment, the color channel writes the primitive color information with the same channel number and the same pixel coordinates in the primitive color information into the corresponding position table entry in the same pixel primitive color list according to the layer sequence number; a group of pixel primitive color lists of adjacent pixels with the same channel number form a group of pixel primitive color lists, which are generated by one color channel.

[0082] In one embodiment, after a color channel generates a set of pixel primitive color lists, the current state of the color channel is configured as an allocable state.

[0083] As shown in the example in Figure 11, after color channels PC01-PC04 receive the primitive color information from processing group FIFO registers F1-F4, color channel PC01's comparator CA1 writes the primitive color information for primitive 01, whose channel number is PC01 and whose pixel coordinates are (1,320) into pixel primitive color list 701. Color channel PC01 then sets its START signal to 1, indicating that it is currently active. After successfully writing this record, it sets the record valid flag R to 1, indicating that it is valid. Pixel primitive color list 701 is then written into channel FIFO register CF1. Comparator CA1 then sequentially writes the primitive color information for primitive 01, whose channel number is PC01 and whose pixel coordinates are (2,320) to (20,320), into pixel primitive color lists 702-720, setting the record valid flag R to 1 in turn, and then writes these records into channel FIFO register CF1. After the above tables 701 - 720 are generated, a group table 71 is formed, and the color channel PC01 configures the current state as an allocable state.

[0084] Comparison parser CA2 for color channel PC02 writes the color information for primitives 01 and 05, whose channel number is PC02 and whose XY coordinates are (21, 320), into pixel primitive color list 721. Color channel PC02 sets the START signal to 1, indicating the current active state. After successful writing, it sets the valid flag R for each record to 1, and then writes pixel primitive color list 721 into channel FIFO register CF2. Comparison parser CA2 then sequentially writes the color information for primitives 01 and 05, whose channel number is PC02 and whose XY coordinates are (22, 320) to (40, 320), into pixel primitive color lists 722-740, setting the valid flag R to 1, and then writes these records into channel FIFO register CF2. After these tables 721-740 are generated, group table 72 is formed, and color channel PC02 then configures its current state to be allocatable.

[0085] As shown in Figure 12, the comparator CA3 of color channel PC03 writes the pixel color information for primitives 01, 05, and 07, whose channel number is PC03 and whose XY coordinates are (41, 320), into pixel primitive color list 741. Color channel PC03 then sets the START signal to 1, indicating the current active state. After the write is successful, the valid flag R for each record is set to 1, and pixel primitive color list 741 is written into channel FIFO register CF3. Comparator CA3 then sequentially writes the pixel color information for primitives 01, 05, and 07, whose channel number is PC03 and whose XY coordinates are (42, 320) to (60, 320), into pixel primitive color lists 742-760, setting the valid flag R to 1, and then writing the records into channel FIFO register CF3. After these tables 741-760 are generated, group table 73 is formed, and color channel PC03 then configures the current state to be allocatable.

[0086] Comparison parser CA4 for color channel PC04 writes the color information for primitives 01 and 05, whose channel number is PC04 and whose XY coordinates are (61, 320), into pixel primitive color list 761. Color channel PC04 sets the START signal to 1, indicating the current active state. After successful writing, it sets the valid flag R for each record to 1, and then writes pixel primitive color list 761 into channel FIFO register CF4. Comparison parser CA4 then sequentially writes the color information for primitives 01 and 05, whose channel number is PC04 and whose XY coordinates are (62, 320) to (80, 320), into pixel primitive color lists 762-780, setting the valid flag R to 1, and then writing these records into channel FIFO register CF4. These tables 761-780 form group table 74, and color channel PC04 then configures the current state to be allocatable.

[0087] In one embodiment, the color channel determines that the pixel primitive color list includes records of primitives with the maximum layer mark as valid, and records of all primitives with layer numbers less than the primitives with the maximum layer mark as valid, and then outputs the pixel primitive color list.

[0088] In this example, color channel PC01 generates pixel primitive list 701. It determines that the record valid flag R of primitive 01, whose layer maximum flag M is 1, is 1, and that only primitive 01 exists. Therefore, color channel PC01 outputs pixel primitive list 701 to color shader PX1. Similarly, pixel primitive lists 702-720 are also output to color shader PX1 after confirming that all record valid flags R are 1.

[0089] Color channel PC02 generates pixel primitive list 721. It determines that the record valid flag R of primitive 05, whose layer maximum flag M is 1, is 1, and that the record valid flag R of primitive 01, whose layer sequence number L is smaller than primitive 05, is also 1. Then, color channel PC02 outputs pixel primitive list 721 to color shader PX2. Similarly, pixel primitive lists 722-740 are also output to color shader PX2 after confirming that all record valid flags R are 1.

[0090] Color channel PC03 generates pixel primitive list 741 and determines that the record valid flag R of primitive 07, whose layer maximum flag M is 1, is 1. Furthermore, the record valid flag R of primitives 01 and 05, whose layer sequence numbers L are smaller than primitive 07, is also 1. Color channel PC03 then outputs pixel primitive list 741 to color shader PX3. Similarly, pixel primitive lists 742-760 are also output to color shader PX3 after confirming that all record valid flags R are 1.

[0091] Color channel PC04 generates pixel primitive list 761. It determines that the record valid flag R of primitive 05, whose layer maximum flag M is 1, is 1, and that the record valid flag R of primitive 01, whose layer sequence number L is smaller than primitive 05, is also 1. Then, color channel PC03 outputs pixel primitive list 761 to color shader PX4. Similarly, pixel primitive lists 762-780 are also output to color shader PX4 after confirming that all record valid flags R are 1.

[0092] The color shaders PX1 - PX4 read the pixel primitive color lists in parallel, synthesize the color values ​​of multiple pixels in parallel, generate image data, and output it to the pixel color buffer 130 .

[0093] In one embodiment, after the color shader synthesizes the color value of the pixel, the current state of the color shader is configured to be an idle state.

[0094] In one embodiment, after determining that the color shader to which the multiple color channels are connected is in an idle state, the pixel primitive color list is output to the color shader.

[0095] Specifically, color shader PX1 reads pixel primitive color list 701, synthesizes a color value (9B9A) for a pixel (1,320), and outputs it to pixel color buffer 130. It then sets the current state to idle, waiting to receive the next pixel primitive color list. Color channel PC01 determines that color shader PX1 is idle and then sends pixel primitive color list 702.

[0096] Similarly, after reading the pixel primitive color list 702 , the color shader PX1 still synthesizes a color value (9B9A) of a pixel (2, 320) until the pixel color value of the pixel primitive color list 720 is synthesized.

[0097] After reading pixel primitive color list 721, color shader PX2 uses the two input color values ​​(9B9A and 5F5E) at pixel position (21,320) to perform a composite. It then outputs the composited pixel color value to pixel color buffer 130 and sets the current state to idle, waiting to receive the next pixel primitive color list. Color channel PC02 determines that color shader PX2 is idle and then sends pixel primitive color list 722.

[0098] Similarly, after reading the pixel primitive color list 722 , the color shader PX2 still uses the two input color values ​​(9B9A and 5F5E) of the pixel position (22,320) for synthesis and outputs them to the pixel color buffer 130 until the pixel color value of the pixel primitive color list 740 is synthesized.

[0099] After reading pixel primitive color list 741, color shader PX3 performs a composite operation using the three input color values ​​(9B9A, 5F5E, and 3D3C) at pixel position (41,320). It then outputs the composited pixel color value to pixel color buffer 130 and sets the current state to idle, awaiting the next pixel primitive color list. Color channel PC03 determines that color shader PX3 is idle before sending pixel primitive color list 742.

[0100] Similarly, after the color shader PX3 reads the pixel primitive color list 742, it uses the three input color values ​​(9B9A, 5F5E and 3D3C) of the pixel position (22,320) to synthesize and output to the pixel color buffer 130 until the pixel color value of the pixel primitive color list 760 is synthesized.

[0101] After reading pixel primitive color list 761, color shader PX4 uses the two input color values ​​(9B9A and 5F5E) at pixel location (61,320) to perform a composite. It then outputs the composited pixel color value to pixel color buffer 130 and sets the current state to idle, awaiting the next pixel primitive color list. Color channel PC04 determines that color shader PX4 is idle before sending pixel primitive color list 762.

[0102] Similarly, after the color shader PX4 reads the pixel primitive color list 762, it uses the two input color values ​​(9B9A and 5F5E) of the pixel position (62,320) to synthesize and output to the pixel color buffer 130 until the pixel color value of the pixel primitive color list 780 is synthesized.

[0103] The pixel color buffer 130 buffers the pixel color values ​​sent in parallel by the color channels PC01 - PC04 and then sends them to the display device 400 .

[0104] As shown in the example of FIG. 13 , the color processing method for synthesizing multiple pixel colors in parallel in this embodiment includes steps S1 - S4 .

[0105] Step S1: Read the pixel primitive list of each pixel of the current group to be drawn in parallel, parse the position coordinates of each pixel and the basic information of each primitive in the pixel primitive list, count one or more sets of pixels with the same pixel primitive list and continuous positions, and generate a primitive processing allocation table that records the coordinates of the starting pixel in the set, the number of primitives, the number of pixels, the unique identifier of each primitive sorted in sequence by primitive level, the identifier of the primitive processor assigned to each primitive, and the channel number matched by each pixel.

[0106] Among them, the current group to be drawn includes multiple consecutive pixels belonging to the same pixel row; the pixel primitive list includes at least the unique identifier of the primitive; the basic information of the primitive includes at least the unique identifier of the primitive, the clipping area, the level and the format; the channel number is used to identify the color channel configured as the synthetic pixel color.

[0107] Step S2: Reading the primitive processing allocation table to generate primitive color information of multiple pixels in parallel, and arranging the primitive color information generated in the same primitive processing group in the order of generation to form a color group table.

[0108] Among them, the primitive color information includes at least the channel number, layer number, pixel coordinates, color value, and layer maximum mark; the layer number refers to the sequence number formed by arranging all the primitives of the pixel in hierarchical order; the layer maximum mark is used to mark that the primitive is the primitive with the largest level among all the primitives of the pixel; there are at least two primitive processing groups, and each group consists of at least two primitive processors.

[0109] Step S3: Read multiple color group tables in parallel, count the color values ​​of all the primitives of the pixels, and generate pixel primitive color lists of multiple pixels in parallel.

[0110] The pixel primitive color list at least includes pixel coordinates, color values, and layer maximum flags.

[0111] The maximum mark of the layer is used to mark that the element is the largest element in the hierarchy among all elements of the pixel.

[0112] Step S4: Read multiple pixel primitive color lists in parallel, synthesize the colors of multiple pixels in parallel, generate image data and output it.

[0113] In one embodiment, generating a primitive processing allocation table further includes:

[0114] Based on the format of each primitive in the set, the current state of the primitive processor and the current state of the color channel, the identifier of the matching primitive processor is assigned to each primitive in the set, and the channel number of the matching color channel is assigned to each pixel in the set, and a primitive processing allocation table is generated.

[0115] In one embodiment, assigning a matching primitive processor identifier to each primitive in the set in parallel further includes:

[0116] Prioritize assigning primitives within the same set to primitive processor identifiers in different primitive processing groups whose types match the primitive formats; the types are divided according to the primitive formats.

[0117] In one embodiment, assigning a channel number of a matching color channel to each pixel in the set in parallel further comprises:

[0118] Pixels in the set that do not exceed the maximum number of pixels processed for a single color channel are preferentially assigned the same channel number.

[0119] In one embodiment, based on the format of the primitive for each pixel in the set, the current state of the primitive processor, and the current state of the color channel, further includes:

[0120] Determine if there is an idle primitive processor that matches the format of the primitive.

[0121] In one embodiment, after generating the primitive processing allocation table, the method further includes:

[0122] Send the basic information of the primitive to the matching primitive processor and configure the state of the primitive processor to be in working state.

[0123] In one embodiment, based on the format of the primitive for each pixel in the set, the current state of the primitive processor, and the current state of the color channel, further includes:

[0124] Make sure there are color channels that are currently assignable.

[0125] In one embodiment, assigning an identifier of a matching primitive processor to each pixel in the set in parallel further comprises:

[0126] Based on the preset priority, the identifier of the matching primitive processor is assigned to the primitive with the highest priority first; the priority is divided according to the format of the primitive.

[0127] In one embodiment, reading the primitive processing allocation table and generating primitive color information of a plurality of pixels in parallel further includes:

[0128] The primitive processing allocation table is parsed, and the primitive processor that matches the primitive processor identifier generates the color value of each pixel in sequence starting from the starting pixel according to the unique identifier of the primitive, the coordinates of the starting pixel and the number of pixels.

[0129] In one embodiment, reading the primitive processing allocation table and generating primitive color information of a plurality of pixels in parallel further includes:

[0130] Generate the layer number of the element according to the position of the unique identifier of the element in the element processing allocation table; generate the maximum layer mark of the element according to whether the unique identifier of the element is in the first or last position.

[0131] In one embodiment, generating pixel primitive color lists for a plurality of pixels in parallel further comprises:

[0132] The primitive color information with the same channel number and the same pixel coordinates in the primitive color information is written into the corresponding position table entry in the same pixel primitive color list according to the layer sequence number; the pixel primitive color lists of a group of adjacent pixels with the same channel number form a group of pixel primitive color lists, which are generated by one color channel.

[0133] In one embodiment, after generating pixel primitive color lists for a plurality of pixels in parallel, the method further includes:

[0134] Determine that the pixel primitive color list includes records of primitives with the maximum layer mark as valid and records of all primitives with layer numbers smaller than the primitives with the maximum layer mark as valid, and then output the pixel primitive color list.

[0135] In one embodiment, after generating pixel primitive color lists for a plurality of pixels in parallel, the method further includes:

[0136] After generating a set of pixel primitive color lists, configure the current state of the color channel to be assignable.

[0137] In one embodiment, after synthesizing the color values ​​of multiple pixels in parallel, the method further includes:

[0138] Configures the current state of the color shader to be idle.

[0139] After each color shader synthesizes the color value of a pixel, it configures the current state to the idle state to tell the color channel to send the color value of the next pixel.

[0140] In one embodiment, after generating pixel primitive color lists for a plurality of pixels in parallel, the method further includes:

[0141] After confirming that the connected color shader is in an idle state, the pixel primitive color list is output to the color shader.

[0142] The above preferred embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only disclosed to enable those skilled in the art to make or implement them, and are not intended to limit the scope of protection of the present invention. Any obvious modifications, equivalent replacements and improvements made on the basis of the principles defined in the present invention should be included in the scope of protection of the present invention. The scope of rights claimed by the present invention should not be limited to the above embodiments, but should be the widest possible scope consistent with the principles and technical features defined in the claims of the present invention.

Claims

1. A color processing method for synthesizing multiple pixel colors in parallel, It is characterized in that include: Read the pixel primitive list of each pixel of the current group to be drawn in parallel, parse the position coordinates of each pixel and the basic information of each primitive in the pixel primitive list, count one or more sets of pixels with the same pixel primitive list and continuous positions, and generate a primitive processing allocation table recording the coordinates of the starting pixel in the set, the number of primitives, the number of pixels, the unique identifier of each primitive sorted in sequence by primitive level, the identifier of the primitive processor assigned to each primitive, and the channel number matched by each pixel; wherein the current group to be drawn includes multiple continuous pixels belonging to the same pixel row; the pixel primitive list includes at least the unique identifier of the primitive; the basic information of the primitive includes at least the unique identifier of the primitive, the clipping area, the level and the format; the channel number is used to identify the color channel configured as the synthesized pixel color; The primitive processing allocation table is read to generate primitive color information of multiple pixels in parallel, and the primitive color information generated in the same primitive processing group is arranged in a generation order to form a color group table; wherein the primitive color information at least includes a channel number, a layer sequence number, a pixel coordinate, a color value, and a layer maximum mark; the layer sequence number refers to a sequence number formed by arranging all the primitives of the pixel in a hierarchical order; the layer maximum mark is used to mark the primitive as the primitive with the largest level among all the primitives of the pixel; the primitive processing group has at least two groups, and each group is composed of at least two primitive processors; Reading a plurality of the color group tables in parallel, counting the color values ​​of all the primitives of the pixels, and generating a pixel primitive color list of a plurality of pixels in parallel; wherein the pixel primitive color list at least includes pixel coordinates, color values ​​and layer maximum marks; The plurality of pixel primitive color lists are read in parallel, the colors of the plurality of pixels are synthesized in parallel, and image data is generated and output.

2. The color processing method for synthesizing multiple pixel colors in parallel as claimed in claim 1, It is characterized in that The generating the primitive processing allocation table further comprises: According to the format of each primitive in the set, the current state of the primitive processor and the current state of the color channel, the identifier of a matching primitive processor is assigned to each primitive in the set, and the channel number of a matching color channel is assigned to each pixel in the set, thereby generating the primitive processing allocation table.

3. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 2, It is characterized in that The step of assigning a matching primitive processor identifier to each primitive in the set in parallel further comprises: Prioritize the allocation of primitives in the same set to identifiers of primitive processors in different primitive processing groups whose types match the formats of the primitives; the types are divided according to the formats of the primitives.

4. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 2, It is characterized in that The parallel operation of assigning a channel number of a matching color channel to each pixel in the set further comprises: Pixels in the set that do not exceed the maximum pixel processing quantity of a single color channel are preferentially assigned the same channel number.

5. The color processing method for synthesizing multiple pixel colors in parallel as claimed in claim 2, It is characterized in that The format of the primitive of each pixel in the set, the current state of the primitive processor and the current state of the color channel further include: It is determined whether there is a graphics primitive processor that is currently in an idle state and matches the format of the graphics primitive.

6. The color processing method for synthesizing a plurality of pixel primitives in parallel as claimed in claim 5, It is characterized in that After the primitive processing allocation table is generated, the method further comprises: The basic information of the primitive is sent to the matching primitive processor, and the state of the primitive processor is configured to be a working state.

7. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 2, It is characterized in that The format of the primitive of each pixel in the set, the current state of the primitive processor and the current state of the color channel further include: Make sure there are color channels that are currently assignable.

8. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 2, It is characterized in that The step of assigning a matching primitive processor to each pixel in the set in parallel further comprises: According to a preset priority, the identifier of a matching primitive processor is preferentially assigned to a primitive with a high priority; the priority is divided according to the format of the primitive.

9. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 1, It is characterized in that The step of reading the primitive processing allocation table and generating primitive color information of a plurality of pixels in parallel further comprises: The primitive processing allocation table is parsed, and the primitive processor matching the primitive processor identifier generates the color value of each pixel in sequence starting from the starting pixel according to the unique identifier of the primitive, the coordinates of the starting pixel and the number of pixels.

10. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 9, It is characterized in that The step of reading the primitive processing allocation table and generating primitive color information of a plurality of pixels in parallel further comprises: Generate the layer serial number of the primitive according to the position of the unique identifier of the primitive in the primitive processing allocation table; generate the maximum layer mark of the primitive according to whether the unique identifier of the primitive is in the first or last position.

11. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 1, It is characterized in that The step of generating pixel primitive color lists of a plurality of pixels in parallel further comprises: The primitive color information with the same channel number and the same pixel coordinates in the primitive color information is written into the table entries of the corresponding positions in the same pixel primitive color list according to the layer sequence number; a group of pixel primitive color lists of adjacent pixels with the same channel number form a group of pixel primitive color lists, which are generated by one color channel.

12. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 11, It is characterized in that After the pixel primitive color lists of the plurality of pixels are generated in parallel, the method further comprises: Determine that the pixel primitive color list includes records of primitives with the maximum layer mark as valid, and records of all primitives with layer numbers less than the primitives with the maximum layer mark as valid, and then output the pixel primitive color list.

13. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 11, It is characterized in that After the pixel primitive color lists of the plurality of pixels are generated in parallel, the method further comprises: After generating the set of pixel primitive color lists, the current state of the color channel is configured to be an allocatable state.

14. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 1, It is characterized in that After the color values ​​of the plurality of pixels are synthesized in parallel, the method further comprises: Configures the current state of the color shader to be idle.

15. The color processing method for synthesizing a plurality of pixel colors in parallel as claimed in claim 14, It is characterized in that After the pixel primitive color lists of the plurality of pixels are generated in parallel, the method further comprises: After determining that the connected color shader is in an idle state, the pixel primitive color list is output to the color shader.

16. A color processing system for synthesizing multiple pixel colors in parallel, It is characterized in that including a color processor, a plurality of primitive processors, a plurality of processing group FIFO registers, a plurality of color channels and a plurality of color shaders; The color processor reads the pixel primitive list of each pixel of the current group to be drawn in parallel, parses the position coordinates of each pixel and the basic information of each primitive in the pixel primitive list, counts one or more sets of pixels with the same pixel primitive list and continuous positions, and generates a primitive processing allocation table recording the coordinates of the starting pixel in the set, the number of primitives, the number of pixels, the unique identifier of each primitive sorted in sequence by primitive level, the identifier of the primitive processor assigned to each primitive, and the channel number matched by each pixel; wherein the current group to be drawn includes a plurality of continuous pixels belonging to the same pixel row; the pixel primitive list includes at least the unique identifier of the primitive; the basic information of the primitive includes at least the unique identifier of the primitive, the clipping area, the level and the format; the channel number is used to identify the color channel configured as the synthesized pixel color; The plurality of primitive processors read the primitive processing allocation table and generate primitive color information of a plurality of pixels in parallel; wherein the primitive color information at least includes a channel number, a layer sequence number, a pixel coordinate, a color value, and a layer maximum mark; the layer sequence number refers to a sequence number formed by arranging all the primitives of the pixel in a hierarchical order; the layer maximum mark is used to mark the primitive as the primitive with the largest level among all the primitives of the pixel; The plurality of processing group FIFO registers arrange the primitive color information generated in the same primitive processing group in a generation order to form a color group table; wherein the primitive processing groups include at least two groups, each group consisting of at least two primitive processors; The plurality of color channels read the plurality of color group tables in parallel, count the color values ​​of all the primitives of the pixels, and generate a plurality of pixel primitive color lists of the pixels in parallel; wherein the pixel primitive color list at least includes pixel coordinates, color values ​​and layer maximum marks; The multiple color shaders read the multiple pixel primitive color lists in parallel, synthesize the colors of the multiple pixels in parallel, generate image data and output it.

17. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 16, It is characterized in that The color processor further comprises: The primitive processing allocation table is generated based on the format of each primitive in the set, the current state of the primitive processor and the current state of the color channel, and the identifier of a matching primitive processor is assigned to each primitive in the set, and the channel number of a matching color channel is assigned to each pixel in the set.

18. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 17, It is characterized in that Further including: The color processor preferentially assigns primitives in the same set to identifiers of primitive processors in different primitive processing groups whose types match the formats of the primitives; The types are classified according to the format of the primitives.

19. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 17, It is characterized in that Further including: The color processor preferentially assigns pixels in the set that do not exceed the maximum pixel processing quantity of a single color channel to the same channel number.

20. The color processing system for synthesizing a plurality of pixel primitives in parallel as claimed in claim 17, It is characterized in that Further including: The color processor determines that there is currently an idle primitive processor that matches the format of the primitive.

21. The color processing system for synthesizing a plurality of pixel primitives in parallel as claimed in claim 20, It is characterized in that Further including: The color processor sends the basic information of the primitive to the matching primitive processor, and configures the state of the primitive processor to a working state.

22. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 17, It is characterized in that Further including: The color processor determines that there are currently color channels in an assignable state.

23. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 17, It is characterized in that Further including: The color processor, according to a preset priority, preferentially assigns the identifier of a matching primitive processor to a primitive with a high priority; The priorities are divided according to the formats of the graphics primitives.

24. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 16, It is characterized in that Further including: The multiple primitive processors parse the primitive processing allocation table, and the primitive processor matching the primitive processor identifier generates a color value for each pixel in sequence starting from the starting pixel based on the unique identifier of the primitive, the coordinates of the starting pixel and the number of pixels.

25. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 24, It is characterized in that Further including: The primitive processor generates a layer sequence number of the primitive according to the position of the unique identifier of the primitive in the primitive processing allocation table; According to whether the unique identifier of the graphic element is in the first or last position, a maximum mark of the layer of the graphic element is generated.

26. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 16, It is characterized in that Further including: The color channel writes the primitive color information with the same channel number and the same pixel coordinates in the primitive color information into the table entries of the corresponding positions in the same pixel primitive color list according to the layer sequence number; a group of pixel primitive color lists of adjacent pixels with the same channel number form a group of pixel primitive color lists, which are generated by one color channel.

27. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 26, It is characterized in that Further including: The color channel determines that the pixel primitive color list includes records of primitives with the maximum layer mark as valid, and records of all primitives with layer numbers less than the primitives with the maximum layer mark as valid, and then outputs the pixel primitive color list.

28. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 26, It is characterized in that Further including: After the color channel generates the set of pixel primitive color lists, the current state is configured as an allocatable state.

29. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 16, It is characterized in that Further including: After the color shader synthesizes the color value of the pixel, the current state is configured as an idle state.

30. The color processing system for synthesizing a plurality of pixel colors in parallel as claimed in claim 29, It is characterized in that Further including: The multiple color channels, after determining that the connected color shader is in an idle state, output the pixel primitive color list to the color shader.

31. An electronic device, It is characterized in that It comprises a processor, a memory, a graphics processing device connected to the processor and the memory, and a display device connected to the graphics processing device; The graphics processing device comprises a color processing system for synthesizing a plurality of pixel colors in parallel as claimed in any one of claims 16 to 30, and a primitive list processing unit and a pixel color buffer connected to the color processing system for synthesizing a plurality of pixel primitives in parallel; The primitive list processing unit generates the pixel primitive list; The pixel color buffer caches and outputs the image data; The display device receives and displays the image data.

Citation Information

Patent Citations

  • Map rendering method and device

    CN111435548A

  • Image coloring method and device and computer readable storage medium

    CN113763496A

  • Graphics processing system and method based on bitmap primitives and GPU (Graphics Processing Unit)

    CN115349136A

  • Image processing apparatus, image processing method, and program

    US20190251732A1