Multithread realization method for rasterization stage in graphic rendering

A graphics rendering and implementation method technology, applied in the field of subtitle processing, can solve the problems of CPU underutilization and low efficiency, and achieve the effects of realizing parallelism, improving filling, and high-efficiency parallelism

CN102736947AInactive Publication Date: 2012-10-17CHINA DIGITAL VIDEO BEIJING
5 Cites 16 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2012-10-17
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
Patent Text Reader

Abstract

The invention discloses a multithread realization method for a rasterization stage in graphic rendering. The method comprises the following steps of: calculating a bounding box of a three-dimensional object, and dividing the bounding box into n areas corresponding to n threads; dividing triangular plates into corresponding subareas of the n divided areas; executing triangular plate filling in the subareas corresponding to the threads with number equal to that of CPUs (Central Processing Units); continuously executing other threads until all n threads are entirely executed, thus completing filling of the triangular plates. By utilizing the multithread realization method for the rasterization stage in graphics rendering, disclosed by the embodiment of the invention, the filling speed of the triangular plates in the graphic rendering can be greatly increased, the graphic rendering method can not be depended on CPU operation, graphic rendering can be directly carried out on the basis of CPUs, the multithread method can be used for realizing the parallelism of the three-dimensional rasterization stage.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the subtitle processing field in the field of television program production, in particular to a multi-thread implementation method of the rasterization stage in graphic rendering. Background technique

[0002] With the continuous development of computer graphics, images, and video technologies, and the domestic broadcasting industry is in the period of transition from standard definition mode to high definition mode, television production and broadcasting units such as TV stations have put forward higher requirements for the production and broadcasting of TV graphics. , Update requirements. This requires timely technical updates for every link in the video production process.

[0003] The rasterization stage in graphics rendering is a very important link in the field of subtitling. The rendering of the 3D scene in the prior art is mainly based on a GPU (Graphic Processing Unit, graphics processing unit). GPU-based rendering ...

Examples

Embodiment Construction

[0016] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on this The embodiments in the invention, and all other embodiments obtained by persons of ordinary skill in the art without creative effort, all belong to the scope of protection of the present invention.

[0017] On the one hand, the embodiment of the present invention provides a multi-threaded implementation method for filling the rasterized triangles in graphics rendering. As shown in FIG. 2, the specific implementation method of the embodiment of the present invention is described as follows:

[0018] Step S1: Calculate the bounding box of the three-dimensional object in the screen space. The coordinates of the eight vertices in the screen space ...