CN103677828A - Coverage drawing method, drawing engine and terminal equipment - Google Patents

Coverage drawing method, drawing engine and terminal equipment Download PDF

Info

Publication number
CN103677828A
CN103677828A CN201310671747.5A CN201310671747A CN103677828A CN 103677828 A CN103677828 A CN 103677828A CN 201310671747 A CN201310671747 A CN 201310671747A CN 103677828 A CN103677828 A CN 103677828A
Authority
CN
China
Prior art keywords
pel
summit
information
post
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310671747.5A
Other languages
Chinese (zh)
Other versions
CN103677828B (en
Inventor
姜霄棠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310671747.5A priority Critical patent/CN103677828B/en
Publication of CN103677828A publication Critical patent/CN103677828A/en
Application granted granted Critical
Publication of CN103677828B publication Critical patent/CN103677828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Generation (AREA)
  • Image Processing (AREA)

Abstract

An embodiment of the invention relates to the technique of computers and provides a coverage drawing method, a drawing engine and terminal equipment. The method comprises the steps that a drawing instruction is received; post-processing information is received, pre-processing information is determined according to the post-processing information, and the post-processing information is used for showing coordinate transformation on a to-be-drawn coverage; coordinate transformation is conducted on the top point of a pel corresponding to pel information contained in the drawing instruction on the basis of top point transformation information in the drawing instruction, and a top point transformation middle result of the pel is obtained; coordinate transformation is conducted on the top point transformation middle result of the pel on the basis of the pre-processing information again, and a top point transformation ultimate result of the pel is obtained; then rasterization and fragment coloring are conducted to obtain the to-be-drawn coverage. According to the scheme, coordinate transformation is conducted on the top point transformation middle result obtained after top point transformation again, and therefore cost for special effect processing of the coverage is reduced.

Description

A kind of figure layer method for drafting, drawing engine and terminal device
Technical field
The present invention relates to computer technology, relate in particular to a kind of figure layer method for drafting, drawing engine and terminal device.
Background technology
The application of current Android system mainly adopts OpenGL to draw, OpenGL(Open Graphic Library) be an open graphic hardware standard, it provides a series of application programming interfaces (API, Application Programming Interface) for developer.When the figure layer for the treatment of drafting under the hardware standard of OpenGL is done the processing that relates to coordinate transform, this figure layer of need to first completing, then described in this figure layer being done, relate to the processing of coordinate transform, such as rotation processing and/or convergent-divergent processing etc., because the figure layer of completing comprises a large amount of pixels, so need data volume to be processed larger when this figure layer is done to the processing that relates to coordinate transform, it is larger that the image special effect of paying is processed cost.
Summary of the invention
The embodiment of the present invention provides a kind of figure layer method for drafting, drawing engine and terminal device, for reducing the processing cost of the image special effect that relates to coordinate transform.
First aspect, the embodiment of the present invention provides a kind of figure layer method for drafting, and the method comprises: receive drawing for order, comprise primitive information, summit information converting and the painted information of segment in described drawing for order; Receive post-processing information, according to described post-processing information, determine pretreatment information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting; Summit information converting based in described drawing for order carries out coordinate transform processing to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel; Based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result; The summit of described pel is converted to ultimate result and carry out rasterization process, obtain the rasterization process result of described pel; The painted information of segment based in described drawing for order is carried out the painted processing of segment to the rasterization process result of described pel, obtains the painted result of segment of described pel; According to the painted result of the segment of described pel, in the indication range of figure layer described to be drawn, carry out pixel filling obtain described in figure layer to be drawn.
In conjunction with first aspect, under the first implementation, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising: receive post-processing information, described post-processing information comprises rotation parameter; The rotation parameter comprising according to described post-processing information is determined rotation matrix, and described rotation matrix represents described pretreatment information; Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprise: based on described rotation matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that described the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.
In conjunction with first aspect, under the second implementation, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising: receive post-processing information, described post-processing information comprises zooming parameter; The zooming parameter comprising according to described post-processing information is determined scaled matrix, and described scaled matrix represents described pretreatment information; Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprise: based on described scaled matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.
In conjunction with first aspect, under the third implementation, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising: receive post-processing information, described post-processing information comprises rotation parameter and zooming parameter; The rotation parameter comprising according to described post-processing information is determined rotation matrix; The zooming parameter comprising according to described post-processing information is determined scaled matrix; Described rotation matrix and described scaled matrix are multiplied each other and obtain preconditioning matrix, and described preconditioning matrix represents described pretreatment information; Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprise: based on described preconditioning matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.
The first implementation in conjunction with first aspect, under the 4th kind of implementation, at described reception post-processing information, after described post-processing information comprises rotation parameter, described method also comprises: the anglec of rotation representing at described rotation parameter is 90 or 270 while spending, based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described, based on described rotation matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, after the summit that obtains representing described pel converts the second apex coordinate of ultimate result, also comprise: according to wide attribute and the high attribute after adjusting, to representing that the second apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the second apex coordinate after cutting; The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising: the second apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
The second implementation in conjunction with first aspect, under the 5th kind of implementation, at described reception post-processing information, after described post-processing information comprises zooming parameter, described method also comprises: based on described zooming parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described, based on described scaled matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, after the summit that obtains representing described pel converts the 3rd apex coordinate of ultimate result, also comprise: according to wide attribute and the high attribute after adjusting, to representing that the 3rd apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 3rd apex coordinate after cutting; The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising: the 3rd apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
The third implementation in conjunction with first aspect, under the 6th kind of implementation, at described reception post-processing information, after described post-processing information comprises rotation parameter and zooming parameter, described method also comprises: based on described zooming parameter and described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described, based on described preconditioning matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, after the summit that obtains representing described pel converts the 4th apex coordinate of ultimate result, also comprise: according to wide attribute and the high attribute after adjusting, to representing that the 4th apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 4th apex coordinate after cutting; The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising: the 4th apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
Second aspect, the embodiment of the present invention provides a kind of drawing engine, and this drawing engine comprises: receiving element, for receiving drawing for order, comprises primitive information, summit information converting and the painted information of segment in described drawing for order; And also for receiving post-processing information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting; Pre-service interface unit, for determining pretreatment information according to described post-processing information; Vertex shader, carries out coordinate transform processing for the summit information converting based on described drawing for order to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel; And also for the summit conversion intermediate result of described pel being carried out to coordinate transform processing again based on described pretreatment information, the summit that obtains described pel converts ultimate result; Rasterizer, carries out rasterization process for the summit of described pel is converted to ultimate result, obtains the rasterization process result of described pel; Fragment shader, carries out the painted processing of segment for the painted information of the segment based on described drawing for order to the rasterization process result of described pel, obtains the painted result of segment of described pel; Figure layer obtains a unit, for according to the painted result of the segment of described pel, in the indication range of figure layer described to be drawn, carry out pixel filling obtain described in figure layer to be drawn.
In conjunction with second aspect, under the first implementation, in the operation of described reception post-processing information, described receiving element is specifically for receiving the post-processing information that comprises rotation parameter; Described pre-service interface unit is determined rotation matrix specifically for the rotation parameter comprising according to described post-processing information, and described rotation matrix represents described pretreatment information; Described, based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts in the operation of ultimate result, described vertex shader is specifically for again carrying out coordinate transform processing based on described rotation matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that wherein said the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.
In conjunction with second aspect, under the second implementation, described receiving element is specifically for receiving the post-processing information that comprises zooming parameter; Described pre-service interface unit is determined scaled matrix specifically for the zooming parameter comprising according to described post-processing information, and described scaled matrix represents described pretreatment information; Described, based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts in the operation of ultimate result, described vertex shader is specifically for again carrying out coordinate transform processing based on described scaled matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.
In conjunction with second aspect, under the third implementation, described receiving element is specifically for receiving the post-processing information that comprises rotation parameter and zooming parameter, described pre-service interface unit is determined rotation matrix specifically for the rotation parameter comprising according to described post-processing information, the zooming parameter comprising according to described post-processing information is determined scaled matrix, described rotation matrix and described scaled matrix are multiplied each other and obtain preconditioning matrix, and described preconditioning matrix represents described pretreatment information, described, based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts in the operation of ultimate result, described vertex shader is specifically for again carrying out coordinate transform processing based on described preconditioning matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.
The first implementation in conjunction with second aspect, under the 4th kind of implementation, described pre-service interface unit is also 90 or 270 while spending for the anglec of rotation representing at described rotation parameter, based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described vertex shader is also for according to wide attribute and high attribute after adjusting, to representing that the second apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the second apex coordinate after cutting; Described rasterizer carries out rasterization process specifically for the second apex coordinate to after described cutting, obtains the rasterization process result of described pel.
The second implementation in conjunction with second aspect, under the 5th kind of implementation, described pre-service interface unit is also for adjusting the wide property parameters of figure layer described to be drawn and high property parameters based on described zooming parameter, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described vertex shader is also for according to wide attribute and high attribute after adjusting, to representing that the 3rd apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 3rd apex coordinate after cutting; Described rasterizer carries out rasterization process specifically for the 3rd apex coordinate to after described cutting, obtains the rasterization process result of described pel.
The third implementation in conjunction with second aspect, under the 6th kind of implementation, described pre-service interface unit is also for adjusting the wide property parameters of figure layer described to be drawn and high property parameters based on described zooming parameter and described rotation parameter, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described vertex shader is also for according to wide attribute and high attribute after adjusting, to representing that the 4th apex coordinate that described summit converts ultimate result carries out cutting, obtains the 4th apex coordinate after cutting; Described rasterizer carries out rasterization process specifically for the 4th apex coordinate to after described cutting, obtains the rasterization process result of described pel.
The third aspect, the embodiment of the present invention provides a kind of display packing, and the method comprises: receive drawing for order, comprise primitive information, summit information converting and the painted information of segment in described drawing for order; Receive post-processing information, according to described post-processing information, determine pretreatment information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting; Summit information converting based in described drawing for order carries out coordinate transform processing to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel; Based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result; The summit of described pel is converted to ultimate result and carry out rasterization process, obtain the rasterization process result of described pel; The painted information of segment based in described drawing for order is carried out the painted processing of segment to the rasterization process result of described pel, obtains the painted result of segment of described pel; According to the painted result of the segment of described pel, in the indication range of figure layer described to be drawn, carry out pixel filling obtain described in figure layer to be drawn; By figure layer output display described to be drawn.
In conjunction with the third aspect, under the first implementation, when the number of the described figure layer wait drawing is when more than two, described by figure layer output display described to be drawn, comprising: figure layer to be drawn described in plural is synthesized to process generate target image and by described target image output display.
The first implementation in conjunction with the third aspect or the third aspect, under the second implementation, described reception post-processing information, determines pretreatment information according to described post-processing information, comprise: receive post-processing information, described post-processing information comprises rotation parameter; The rotation parameter comprising according to described post-processing information is determined rotation matrix, and described rotation matrix represents described pretreatment information; Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprise: based on described rotation matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that described the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.
The first implementation in conjunction with the third aspect or the third aspect, under the third implementation, described reception post-processing information, determines pretreatment information according to described post-processing information, comprise: receive post-processing information, described post-processing information comprises zooming parameter; The zooming parameter comprising according to described post-processing information is determined scaled matrix, and described scaled matrix represents described pretreatment information; Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprise: based on described scaled matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.
The first implementation in conjunction with the third aspect or the third aspect, under the 4th kind of implementation, described reception post-processing information, determines pretreatment information according to described post-processing information, comprise: receive post-processing information, described post-processing information comprises rotation parameter and zooming parameter;
The rotation parameter comprising according to described post-processing information is determined rotation matrix; The zooming parameter comprising according to described post-processing information is determined scaled matrix; Described rotation matrix and described scaled matrix are multiplied each other and obtain preconditioning matrix, and described preconditioning matrix represents described pretreatment information; Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprise: based on described preconditioning matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.
The second implementation in conjunction with the third aspect, under the 5th kind of implementation, at described reception post-processing information, after described post-processing information comprises rotation parameter, described method also comprises: the anglec of rotation representing at described rotation parameter is 90 or 270 while spending, based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described, based on described rotation matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, after the summit that obtains representing described pel converts the second apex coordinate of ultimate result, also comprise: according to wide attribute and the high attribute after adjusting, to representing that the second apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the second apex coordinate after cutting; The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising: the second apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
The third implementation in conjunction with the third aspect, under the 6th kind of implementation, at described reception post-processing information, after described post-processing information comprises zooming parameter, described method also comprises: based on described zooming parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described, based on described scaled matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, after the summit that obtains representing described pel converts the 3rd apex coordinate of ultimate result, also comprise: according to wide attribute and the high attribute after adjusting, to representing that the 3rd apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 3rd apex coordinate after cutting; The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising: the 3rd apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
The 4th kind of implementation in conjunction with the third aspect, under the 7th kind of implementation, at described reception post-processing information, after described post-processing information comprises rotation parameter and zooming parameter, described method also comprises: based on described zooming parameter and described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match; Described, based on described preconditioning matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, after the summit that obtains representing described pel converts the 4th apex coordinate of ultimate result, also comprise: according to wide attribute and the high attribute after adjusting, to representing that the 4th apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 4th apex coordinate after cutting; The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising: the 4th apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
Fourth aspect, the embodiment of the present invention also provides a kind of terminal device, this terminal device comprises display controller, display screen assembly and if the first implementation of the third aspect or the third aspect is to the drawing engine as described in any implementation in the 7th kind of implementation of the third aspect, wherein: described display controller for figure layer output display to be drawn described in described drawing engine is obtained to described display screen assembly.
In conjunction with fourth aspect, under the first implementation, when the number of the described figure layer wait drawing is when more than two, described display controller specifically for described drawing engine is obtained plural described in figure layer to be drawn synthesize generate target image and by described target image output display to described display screen assembly.
In conjunction with fourth aspect, under the second implementation, this terminal device also comprises compositor, wherein: when the number of the described figure layer wait drawing is when more than two, described compositor for described drawing engine is obtained plural described in figure layer to be drawn synthesize generation target image; Described display controller specifically for by described target image output display to described display screen assembly.
Known, figure layer method for drafting, drawing engine and terminal device that the embodiment of the present invention provides, after receiving drawing for order, first according to summit of the prior art transform process method, according to the summit information converting comprising in described drawing for order, coordinate transform processing is carried out in the summit of pel corresponding to the primitive information comprising in described drawing for order, and obtain the summit conversion intermediate result of described pel; Then based on the summit conversion intermediate result of described pel being carried out to coordinate transform processing again according to the definite pretreatment information of the post-processing information receiving, the summit that obtains described pel converts ultimate result; And then the summit of described pel is converted to ultimate result carry out rasterization process and fragment shading and process, finally obtain figure layer to be drawn.Technical scheme described in the employing embodiment of the present invention, after the conversion of summit, based on pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, because the data volume that the summit conversion intermediate result of the described pel obtaining after summit conversion comprises is fewer, so the cost of processing is smaller when it is carried out to coordinate transform again.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 a is the figure layer rendering pipeline figure based on OpenGL hardware standard;
Fig. 1 b is that in prior art, the figure layer based on OpenGL hardware standard is drawn process flow diagram;
Fig. 1 c is that the figure layer that the embodiment of the present invention provides is drawn process flow diagram;
Fig. 2 is the logical organization schematic diagram of existing terminal device
Fig. 3 a is the method flow schematic diagram of a kind of figure layer method for drafting of providing of the embodiment of the present invention;
Fig. 3 b is the method flow schematic diagram of the another kind figure layer method for drafting that provide of the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of drawing engine of providing of the embodiment of the present invention;
Fig. 5 is the method flow schematic diagram of a kind of display packing of providing of the embodiment of the present invention;
Fig. 6 a is the structured flowchart of a kind of terminal device of providing of the embodiment of the present invention;
Fig. 6 b is the structured flowchart of a kind of terminal device of providing of the embodiment of the present invention;
Fig. 7 is the structural representation of the another kind of terminal device that provides of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-
As shown in Figure 1a, for the figure layer rendering pipeline figure based under OpenGL hardware standard, consult this accompanying drawing known under OpenGL hardware standard drafting figure layer at least need to experience painted three processes of summit conversion, rasterisation and segment, concrete, first by vertex shader, based on vertex data, carry out summit conversion, and by the synthetic pel of the geometry set of vertices obtaining; Then these pels are carried out to rasterization process and generate a series of interpolation texture coordinate and apex coordinate; Then utilize again fragment shader to play up the pixel of described texture coordinate and apex coordinate correspondence position, by all pixels that form figure layer to be drawn in the indication range of figure layer described to be drawn, fill just obtain described in figure layer to be drawn.
Accompanying drawing 1b is that in prior art, the figure layer based on OpenGL hardware standard is drawn process flow diagram, if need to do rotation processing to figure layer based on this accompanying drawing is known, the scheme that prior art adopts is after figure layer to be drawn described in completing, then based on rotation demand, this figure layer is done to corresponding rotation and process to obtain the figure layer through rotation.
Accompanying drawing 1c is that the figure layer that the embodiment of the present invention provides is drawn process flow diagram, if consult in the known figure layer method for drafting providing in the embodiment of the present invention of this accompanying drawing and need to do rotation processing to figure layer, this rotation is carried out before rasterisation after the conversion of summit, and the conversion of described summit is the summit conversion that in the figure layer rendering pipeline figure shown in accompanying drawing 1a, vertex shader is carried out based on vertex data.Concrete, adopt method drafting figure layer that the embodiment of the present invention provides and need to be rotated processing to this figure layer, first carry out the summit conversion described in OpenGL hardware standard, obtain the summit conversion intermediate result shown in Fig. 1 c, and then obtain and convert to the limit ultimate result again carrying out coordinate transform processing based on rotation demand, and then according to the rasterisation under OpenGL hardware standard and the painted flow process of segment, summit is converted to ultimate result and carry out rasterization process and the painted processing of segment to obtain the figure layer through rotation.
Accompanying drawing 1b and accompanying drawing 1c rotate to be example with needs to figure layer difference with the prior art of the present invention have been described, rotary manipulation based on rotation demand in prior art is for figure layer described to be drawn, to carry out after figure layer is completed, before starting, rotary manipulation rasterisation after summit has converted based on rotation demand in the present invention carries out, the figure layer of completing has comprised a large amount of pixels, and figure layer described to be drawn is rotated to processing needs data volume to be processed larger; What after the conversion of summit, obtain is a small amount of summit, and coordinate transform processing is carried out in described summit needs data volume to be processed fewer, so the processing cost of paying is smaller.
Embodiment bis-
Consult accompanying drawing 3a, the method flow diagram of a kind of figure layer method for drafting providing for the embodiment of the present invention, this figure layer method for drafting can be applied in computer system, and this computer system can be positioned on a physical host, also can distribute and be positioned on many physical hosts.Concrete, this computer system for example can be positioned at, in the terminal of the types such as one or more computing machine, portable computer, handheld device (mobile phone, PAD etc.), server.
The Fig. 2 of take introduces the logical organization of the computing node of the figure layer method for drafting application that the embodiment of the present invention provides as example.This computing node can be terminal device, and this terminal device is specifically as follows a smart mobile phone.As shown in Figure 2, the hardware layer of this terminal device comprises CPU, GPU etc., certainly can also comprise storer, input-output apparatus, internal memory, Memory Controller Hub, network interface etc., input equipment can comprise keyboard, mouse, touch-screen etc., and output device can comprise that display device is as LCD, CRT, holographic imaging (Holographic), projection (Projector) etc.On hardware layer, be to drive layer, comprise central processing unit driving, image processor driving, display controller driving etc.Driving layer is core library layer above, and core library is the core of operating system, the graphical services (Graphics Engine) etc. that comprises I/O service, kernel service, Graphics Device Interface and realize CPU, GPU graphics process.Graphical services can comprise 2D engine, 3D engine, compositor (Composition), frame buffer zone (Frame Buffer), OpenGL etc.In addition, this terminal also comprises ccf layer and application layer.Ccf layer can comprise graphical services (Graphic Service), system service (System service), web service (Web Service) and user's service (Customer Service) etc.; In graphical services, can comprise as micro-(Widget), painting canvas (Canvas), view (Views), Render Script etc.Application layer can comprise desktop (launcher), media player (Media Player), browser (Browser) etc.
As shown in Figure 3 a, the graphic processing method that the embodiment of the present invention provides comprises:
S301, reception drawing for order, comprise primitive information, summit information converting and the painted information of segment in described drawing for order;
Concrete, application program passes to drawing for order the display system control center (Surface Flinger) of ccf layer (Framework), Surface Flinger draws the painting canvas of figure layer to system application according to this drawing for order, the wide high parameter for the treatment of drafting figure layer that wherein size of this painting canvas comprises according to described drawing for order is determined; The application calling graph layer Memory Allocation unit (Gralloc) of system based on Surface Flinger is the painting canvas that its minute is used in drafting figure layer; What this Surface Flinger was obtained that described drawing for order passes to core library layer simultaneously plays up driving (Rendering Driver), for making Rendering Driver order about drawing engine based on described drawing for order drafting figure layer.It should be noted that, drawing engine described here refers to the drawing engine based on graphic process unit GPU, comprises 2D drawing engine, 3D drawing engine etc.
It should be noted that and in described drawing for order, comprised primitive information, summit information converting and fragment shading information.Wherein, pel be graphics software for operating and organize the most basic material of picture, a width picture is comprised of pel, pel be one group the most simply, the most general set figure or character, such as point, line segment, triangle, polygon etc.
It should be noted that, described drawing for order can be user by touch-screen touch, the mode such as keyboard input, mouse click inputs, the embodiment of the present invention is to this and be not construed as limiting.
S302, reception post-processing information, determine pretreatment information according to described post-processing information, and described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting;
Described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting, described post-processing information comprises rotation parameter, zooming parameter or both combinations, described post-processing information can also comprise display layout (Source Crop) and figure layer scope (Display Frame) etc., wherein, Source Crop represents to gather which subregion of Buffer to be gone to synthesize, Display Frame represents this Buffer will be synthesized on which region on screen, certainly, can be for representing that the figure layer treat drafting does other coordinate transform processing in described post-processing information, limiting property is not stipulated herein.
Described pretreatment information carries out the matrix of coordinate transform for representing again to the summit conversion intermediate result of pel, described pretreatment information comprises rotation matrix, scaled matrix or both combinations, described pretreatment information can also comprise that other carry out the matrix of coordinate transform again for the summit conversion intermediate result to pel, and limiting property is not stipulated herein.
It should be noted that, described post-processing information refers to the information that in prior art, under the figure layer render mode based on OpenGL hardware standard, expression is processed the figure layer of completing, described post-processing information comprises that the figure layer to completing is rotated and/or convergent-divergent and other relate to the information of carrying out coordinate transform processing, will not enumerate herein.
Concrete, describedly according to described post-processing information, determine that pretreatment information includes but not limited to following situation: the rotation parameter comprising (Transform Hint) is not at 0 o'clock in post-processing information, determine the rotation matrix corresponding to described rotation parameter, described pretreatment information is this rotation matrix; In post-processing information, comprising zooming parameter is not 0 o'clock, determines the scaled matrix corresponding to described zooming parameter, and described pretreatment information is this scaled matrix, it should be noted that, described zooming parameter comprises horizontal scaling parameter and vertically scale parameter; The rotation parameter comprising in post-processing information be not 0 and its to comprise zooming parameter be not 0 o'clock yet, according to described rotation parameter, determine corresponding rotation matrix, according to described zooming parameter, determine corresponding scaled matrix, and then described rotation matrix is multiplied by described scaled matrix obtains preconditioning matrix, described pretreatment information is this preconditioning matrix, equally, described zooming parameter comprises horizontal scaling parameter and vertically scale parameter.It should be noted that what according to described post-processing information, obtain is likely also summit transformation directive collection or other forms of pretreatment information, is not limited to above-mentioned matrix form.
It should be noted that, described reception post-processing information also determines that according to described post-processing information pretreatment information is obtained post-processing information and determines described pretreatment information according to described post-processing information by detecting drawing environment after receiving drawing for order by Surface Flinger.
S303, the summit information converting based in described drawing for order carry out coordinate transform processing to the summit of pel corresponding to described primitive information, obtain the summit conversion intermediate result of described pel;
Concrete, the described summit information converting based in described drawing for order carries out coordinate transform processing to the summit of pel corresponding to described primitive information, comprise: the summit information converting based in described drawing for order is determined the first summit transformation matrix, then based on described the first summit transformation matrix, the initial vertax coordinate of pel corresponding to described primitive information is carried out to coordinate transform processing, obtain representing that the summit of described pel converts the first apex coordinate of intermediate result.
S304, based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result;
It should be noted that described pretreatment information can be rotation matrix, scaled matrix or preconditioning matrix, is likely also that other are used to indicate the matrix that coordinate is carried out to conversion process.
Consult accompanying drawing 3b, as one embodiment of the present of invention, when described pretreatment information is during according to the definite rotation matrix of the rotation parameter comprising in described post-processing information, describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, refer to based on described rotation matrix and again carry out coordinate transform processing to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that described the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.It should be noted that, the anglec of rotation that the rotation parameter comprising in described post-processing information represents is 90 or 270 while spending, the figure layer method for drafting that the embodiment of the present invention provides also comprises according to described rotation parameter to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that after adjusting described in the wide attribute of figure layer to be drawn and high attribute with described in the indication range of figure layer to be drawn match.
As an alternative embodiment of the invention, when described pretreatment information is during according to the definite scaled matrix of the zooming parameter comprising in described post-processing information, describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, refer to based on described scaled matrix and again carry out coordinate transform processing to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.Wherein, the zooming parameter comprising in described post-processing information comprises vertically scale parameter and horizontal scaling parameter, the described scaled matrix definite according to the zooming parameter comprising in described post-processing information, in fact refers to according to the vertically scale parameter comprising in described post-processing information and the definite scaled matrix of horizontal scaling parameter.It should be noted that, the figure layer method for drafting that the embodiment of the present invention provides also comprises according to the zooming parameter comprising in described post-processing information to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that after adjusting described in the wide attribute of figure layer to be drawn and high attribute with described in the indication range of figure layer to be drawn match.
As another embodiment of the present invention, when described post-processing information comprises rotation parameter and zooming parameter, described pretreatment information is by by according to the definite rotation matrix of described rotation parameter and the preconditioning matrix that multiplies each other and obtain according to the definite scaled matrix of described zooming parameter.Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, refer to based on described preconditioning matrix and carry out pre-service to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.Wherein, described zooming parameter comprises vertically scale parameter and horizontal scaling parameter, describedly according to the definite scaled matrix of described zooming parameter, refers to according to described vertically scale parameter and the definite scaled matrix of horizontal scaling parameter.It should be noted that, the figure layer method for drafting that the embodiment of the present invention provides also comprises according to the described zooming parameter comprising in described post-processing information and described rotation parameter to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that the wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match.
It should be noted that, described pretreatment information includes but not limited to above-mentioned rotation and/or scaled matrix, also comprise that other are for carrying out the parameter of special effect processing to figure layer, in every prior art, be used to indicate and can be converted into described pretreatment information to scheming a layer post-processing information that relates to the back-end processing of coordinate transform, the present invention does not limit this.
S305, the summit of described pel is converted to ultimate result carry out rasterization process, obtain the rasterization process result of described pel;
S306, the painted information of the segment based in described drawing for order are carried out the painted processing of segment to the rasterization process result of described pel, obtain the painted result of segment of described pel;
S307, according to the painted result of the segment of described pel, in the indication range of figure layer described to be drawn, carry out pixel filling obtain described in figure layer to be drawn.
Concrete, rasterisation is the process of a two dimensional image that a geometric graphic element is transformed into.The painted processing of segment to as if rasterisation after data, through what generate after the painted processing of fragment shader, be pixel, this pixel is the ingredient of figure layer, in each figure layer, all comprises a plurality of pixels.
It should be noted that, the painted result of the described segment according to described pel in the indication range of figure layer to be drawn, carry out pixel filling obtain described in figure layer to be drawn refer to the pixel obtaining through segment painted processing is filled to obtain on the painting canvas of figure layer described to be drawn described in figure layer to be drawn.
Object that it should be noted that the figure layer method for drafting application described in the embodiment of the present invention is not limited to figure layer to be rotated and/or convergent-divergent is processed, and can also be applied to that in prior art, other relate to the situation of the back-end processing of carrying out coordinate transform.When the figure layer method for drafting that the embodiment of the present invention is provided is applied in the occasion of game application, can make the slip of game more smooth, and can increase the special efficacy of image.
The embodiment of the present invention provides a kind of figure layer method for drafting, after summit has converted, pre-service is carried out on the summit obtaining after summit being converted according to pretreatment information, owing to carrying out after summit conversion, the data volume of described pre-service processing is fewer, can reduce a cost of figure layer being done to the special effect processing that relates to coordinate transform.
Embodiment tri-
Refer to accompanying drawing 4, the structural representation of a kind of drawing engine 40 providing for the embodiment of the present invention, this drawing engine 40 can be applied on the terminal device shown in Fig. 2.Concrete, described drawing engine 40 comprises that receiving element 41, pre-service interface unit 42, vertex shader 43, rasterizer 44, fragment shader 45 and figure layer obtain unit 46.
Described receiving element 41, for receiving drawing for order, comprises primitive information, summit information converting and the painted information of segment in described drawing for order; Also, for receiving post-processing information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting.
Wherein, pel be graphics software for operating and organize the most basic material of picture, a width picture is comprised of pel, pel be one group the most simply, the most general set figure or character, such as point, line segment, triangle, polygon etc.
Described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting, described post-processing information comprises rotation parameter, zooming parameter or both combinations, described post-processing information can also comprise display layout (Source Crop) and figure layer scope (Display Frame) etc., wherein, Source Crop represents to gather which subregion of Buffer to be gone to synthesize, Display Frame represents this Buffer will be synthesized on which region on screen, certainly, can be for representing that the figure layer treat drafting does other coordinate transform processing in described post-processing information, limiting property is not stipulated herein.
Described pretreatment information carries out the matrix of coordinate transform for representing again to the summit conversion intermediate result of pel, described pretreatment information comprises rotation matrix, scaled matrix or both combinations, described pretreatment information can also comprise that other carry out the matrix of coordinate transform again for the summit conversion intermediate result to pel, and limiting property is not stipulated herein.
It should be noted that, described drawing for order can be user by touch-screen touch, the mode such as keyboard input, mouse click inputs, the embodiment of the present invention is to this and be not construed as limiting.
Described pre-service interface unit 42 is for determining pretreatment information according to described post-processing information.
As one embodiment of the present of invention, while comprising rotation parameter in described post-processing information, described pre-service interface unit 42 is specifically for determining corresponding rotation matrix according to described rotation parameter, and described rotation matrix is for representing described pretreatment information; It should be noted that, the rotation parameter comprising in described post-processing information is 90 or 270 while spending, described pre-service interface unit 42 is also for based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters being adjusted so that the wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match.
As an alternative embodiment of the invention, while comprising zooming parameter in described post-processing information, described pre-service interface unit 42 is specifically for determining corresponding scaled matrix according to described zooming parameter, and described scaled matrix is used for representing described pretreatment information; It should be noted that, described pre-service interface unit 42 is also adjusted the wide property parameters of figure layer described to be drawn and high property parameters for the zooming parameter comprising based on described post-processing information so that the wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match.
As another embodiment of the present invention, when not only comprising rotation parameter also comprising zooming parameter in described post-processing information, described pre-service interface unit 42 is specifically for determining corresponding rotation matrix according to described rotation parameter, according to described zooming parameter, determine corresponding scaled matrix, then according to the product of described rotation matrix and described scaled matrix, determine preconditioning matrix, described preconditioning matrix is used for representing described pretreatment information; It should be noted that, described pre-service interface unit 42 is also adjusted the wide property parameters of figure layer described to be drawn and high property parameters for the described zooming parameter and the described rotation parameter that comprise based on described post-processing information so that the wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match.
It should be noted that, in described post-processing information, comprise other and relate to and being used to indicate when coordinate is entered to the parameter of fractal transform, described pre-service interface unit 42 is also specifically for determining pretreatment information corresponding thereto according to described post-processing information.
Described vertex shader 43 is carried out coordinate transform processing for the summit information converting based on described drawing for order to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel; And also for the summit conversion intermediate result of described pel being carried out to coordinate transform processing again based on described pretreatment information, the summit that obtains described pel converts ultimate result.
Concrete, at the described summit information converting based in described drawing for order, coordinate transform processing is carried out in the summit of pel corresponding to described primitive information, the summit that obtains described pel converts in the operation of intermediate result, and described vertex shader 43 is determined summit transformation matrix specifically for the summit information converting based in described drawing for order; Based on described summit transformation matrix, to representing the initial vertax coordinate on the summit of described pel, carry out coordinate transform processing, obtain representing that the summit of described pel converts the first apex coordinate of intermediate result.
It should be noted that described pretreatment information is embodied in a matrix, such as rotation matrix, scaled matrix or preconditioning matrix etc., is used to indicate the apex coordinate of the pel of composition diagram layer is carried out to conversion process.
As one embodiment of the present of invention, when described pretreatment information is during according to the definite rotation matrix of the rotation parameter comprising in described post-processing information, described vertex shader 43 is specifically for again carrying out coordinate transform processing based on described rotation matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that wherein said the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.
As an alternative embodiment of the invention, when described pretreatment information is during according to the definite scaled matrix of the zooming parameter comprising in described post-processing information, described vertex shader 43 is specifically for again carrying out coordinate transform processing based on described scaled matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.
As another embodiment of the present invention, when described post-processing information comprises rotation parameter and zooming parameter, and described zooming parameter comprises vertically scale parameter and horizontal scaling parameter, described pretreatment information is according to the definite rotation matrix of described rotation parameter and the preconditioning matrix definite according to the product of described vertically scale parameter and the definite scaled matrix of horizontal scaling parameter.Described vertex shader 43 is specifically for again carrying out coordinate transform processing based on described preconditioning matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.
It should be noted that, the parameter comprising in described post-processing information includes but not limited to above-mentioned rotation and/or zooming parameter, also comprise that other only relate to the parameter of coordinate transform processing, correspondence is, along with the difference of the parameter comprising in described post-processing information, difference is also that described vertex shader includes but not limited to above-mentioned functions to the function of described vertex shader.
Described rasterizer 44 carries out rasterization process for the summit of described pel is converted to ultimate result, obtains the rasterization process result of described pel;
Described fragment shader 45 is carried out the painted processing of segment for the painted information of the segment based on described drawing for order to the rasterization process result of described pel, obtains the painted result of segment of described pel;
Figure layer described to be drawn obtain unit 46 for according to the painted result of the segment of described pel, in the indication range of figure layer to be drawn, carry out pixel filling obtain described in figure layer to be drawn.
Concrete, figure layer described to be drawn obtains unit 46 specifically for the buffer completing is passed to compositor by Surface Flinger, by described compositor, is called and is strengthened display controller EDC described Buffer synthesize to figure layer to be drawn described in generation.
The embodiment of the present invention provides a kind of drawing engine, while utilizing this drawing engine drafting figure layer, after summit has converted, according to pretreatment information, to summit transformation results, carry out pretreated, due to summit conversion stages for be less summit, so adopt the drawing engine that the embodiment of the present invention provides to carry out pre-service to figure layer, because the data volume of processing is fewer, so it is smaller to process cost; Further, the drawing engine that the embodiment of the present invention provides is also included in to be determined after pretreatment information, according to the wide high attribute of rotation corresponding to described pretreatment information and/or zooming parameter adjustment figure layer, described in making, the wide height of figure layer to be drawn and its indication range match, the painted direct summit result of variations for figure layer of follow-up rasterisation and segment is operated, further reduced processing cost.
Embodiment tetra-
Refer to accompanying drawing 5, the method flow diagram of a kind of display packing providing for the embodiment of the present invention, this figure layer method for drafting can be applied in computer system, and this computer system can be positioned on a physical host, also can distribute and be positioned on many physical hosts.Concrete, this computer system for example can be positioned at, in the terminal of the types such as one or more computing machine, portable computer, handheld device (mobile phone, PAD etc.), server, and wherein the logical organization of this computer system can be consulted accompanying drawing 2.
Concrete, as shown in Figure 5, the display packing that the embodiment of the present invention provides comprises following flow process:
S501, reception drawing for order, comprise primitive information, summit information converting and the painted information of segment in described drawing for order;
Concrete, in described drawing for order, comprised primitive information, summit information converting and fragment shading information.Wherein, pel be graphics software for operating and organize the most basic material of picture, a width picture is comprised of pel, pel be one group the most simply, the most general set figure or character, such as point, line segment, triangle, polygon etc.
It should be noted that, described drawing for order can be user by touch-screen touch, the mode such as keyboard input, mouse click inputs, the embodiment of the present invention is to this and be not construed as limiting.
S502, reception post-processing information, determine pretreatment information according to described post-processing information, and described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting;
Described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting, described post-processing information comprises rotation parameter, zooming parameter or both combinations, described post-processing information can also comprise display layout (Source Crop) and figure layer scope (Display Frame) etc., wherein, Source Crop represents to gather which subregion of Buffer to be gone to synthesize, Display Frame represents this Buffer will be synthesized on which region on screen, certainly, can be for representing that the figure layer treat drafting does other coordinate transform processing in described post-processing information, limiting property is not stipulated herein.
Described pretreatment information carries out the matrix of coordinate transform for representing again to the summit conversion intermediate result of pel, described pretreatment information comprises rotation matrix, scaled matrix or both combinations, described pretreatment information can also comprise that other carry out the matrix of coordinate transform again for the summit conversion intermediate result to pel, and limiting property is not stipulated herein.
It should be noted that, described post-processing information refers in prior art and is used to indicate the information that the figure layer for completing is processed under the figure layer render mode based on OpenGL hardware standard, described post-processing information comprises that the figure layer to completing is rotated and/or convergent-divergent and other relate to the information of carrying out coordinate transform processing, will not enumerate herein.
Concrete, describedly according to described post-processing information, determine that pretreatment information includes but not limited to following situation:
As one embodiment of the present of invention, the rotation parameter comprising in post-processing information (Transform Hint) is not 0 o'clock, determines the rotation matrix corresponding to described rotation parameter, and described pretreatment information is this rotation matrix; It should be noted that, in post-processing information, comprise the anglec of rotation that rotation parameter represents and be 90 or 270 while spending, technical scheme described in the embodiment of the present invention also comprises based on described zooming parameter to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that after adjusting described in figure layer to be drawn wide high attribute with described in the indication range of figure layer to be drawn match.
As an alternative embodiment of the invention, in post-processing information, comprising zooming parameter is not 0 o'clock, determines the scaled matrix corresponding to described zooming parameter, and described pretreatment information is this scaled matrix, it should be noted that, described zooming parameter comprises horizontal scaling parameter and vertically scale parameter; It should be noted that, while comprising zooming parameter in post-processing information, technical scheme described in the embodiment of the present invention also comprises based on described zooming parameter to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that after adjusting described in figure layer to be drawn wide high attribute with described in the indication range of figure layer to be drawn match.
As another embodiment of the present invention, the rotation parameter comprising in post-processing information be not 0 and its to comprise zooming parameter be not 0 o'clock yet, according to described rotation parameter, determine corresponding rotation matrix, according to described zooming parameter, determine corresponding scaled matrix, and then described rotation matrix is multiplied by described scaled matrix obtains preconditioning matrix, described pretreatment information is this preconditioning matrix, and same, described zooming parameter comprises horizontal scaling parameter and vertically scale parameter.It should be noted that, when not only comprising rotation parameter also comprising zooming parameter in post-processing information, technical scheme described in the embodiment of the present invention also comprises based on described rotation parameter and described zooming parameter to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that after adjusting described in figure layer to be drawn wide high attribute with described in the indication range of figure layer to be drawn match.
It should be noted that, described pretreatment information includes but not limited to above-mentioned rotation and/or scaled matrix, also comprise that other are for carrying out the parameter of special effect processing to figure layer, in every prior art, be used to indicate and can be converted into described pretreatment information to scheming a layer post-processing information that relates to the back-end processing of coordinate transform, the present invention does not limit this.
S503, the summit information converting based in described drawing for order carry out coordinate transform processing to the summit of pel corresponding to described primitive information, obtain the summit conversion intermediate result of described pel;
Concrete, the described summit information converting based in described drawing for order carries out coordinate transform processing to the summit of pel corresponding to described primitive information, comprise: the summit information converting based in described drawing for order is determined the first summit transformation matrix, then based on described the first summit transformation matrix, the initial vertax coordinate of pel corresponding to described primitive information is carried out to coordinate transform processing, obtain representing that the summit of described pel converts the first apex coordinate of intermediate result.
S504, based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result;
It should be noted that it is rotation matrix, scaled matrix or preconditioning matrix that described pretreatment information includes but not limited to, is likely also that other are used to indicate the matrix that coordinate is carried out to conversion process.
As one embodiment of the present of invention, when described pretreatment information is during according to the definite rotation matrix of the rotation parameter comprising in described post-processing information, describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, refer to based on described rotation matrix and again carry out coordinate transform processing to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that described the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.It should be noted that, the anglec of rotation that the rotation parameter comprising in described post-processing information represents is 90 or 270 while spending, the figure layer method for drafting that the embodiment of the present invention provides also comprises according to described rotation parameter to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that after adjusting described in the wide attribute of figure layer to be drawn and high attribute with described in the indication range of figure layer to be drawn match.
As an alternative embodiment of the invention, when described pretreatment information is during according to the definite scaled matrix of the zooming parameter comprising in described post-processing information, describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, refer to based on described scaled matrix and again carry out coordinate transform processing to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.Wherein, the zooming parameter comprising in described post-processing information comprises vertically scale parameter and horizontal scaling parameter, the described scaled matrix definite according to the zooming parameter comprising in described post-processing information, in fact refers to according to the vertically scale parameter comprising in described post-processing information and the definite scaled matrix of horizontal scaling parameter.It should be noted that, the figure layer method for drafting that the embodiment of the present invention provides also comprises according to the zooming parameter comprising in described post-processing information to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that after adjusting described in the wide attribute of figure layer to be drawn and high attribute with described in the indication range of figure layer to be drawn match.
As another embodiment of the present invention, when described post-processing information comprises rotation parameter and zooming parameter, and described zooming parameter comprises vertically scale parameter and/or horizontal scaling parameter, described pretreatment information is according to the definite rotation matrix of described rotation parameter and the preconditioning matrix definite according to the product of described vertically scale parameter and/or the definite scaled matrix of horizontal scaling parameter.Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, refer to based on described preconditioning matrix and again carry out coordinate transform processing to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.Wherein, described zooming parameter comprises vertically scale parameter and horizontal scaling parameter, describedly according to the definite scaled matrix of described zooming parameter, refers to according to described vertically scale parameter and the definite scaled matrix of horizontal scaling parameter.It should be noted that, the figure layer method for drafting that the embodiment of the present invention provides also comprises according to the described zooming parameter comprising in described post-processing information and described rotation parameter to be adjusted the wide property parameters of figure layer described to be drawn and high property parameters so that the wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match.
It should be noted that, described pretreatment information includes but not limited to above-mentioned rotation and/or scaled matrix, also comprise that other are for carrying out the parameter of special effect processing to figure layer, in every prior art, be used to indicate and can be converted into described pretreatment information to scheming a layer post-processing information that relates to the back-end processing of coordinate transform, the present invention does not limit this.
S505, the summit of described pel is converted to ultimate result carry out rasterization process, obtain the rasterization process result of described pel;
S506, the painted information of the segment based in described drawing for order are carried out the painted processing of segment to the rasterization process result of described pel, obtain the painted result of segment of described pel;
S507, according to the painted result of the segment of described pel, in the indication range of figure layer to be drawn, carry out pixel filling obtain described in figure layer to be drawn;
Concrete, rasterisation is the process of a two dimensional image that a geometric graphic element is transformed into.The painted processing of segment to as if rasterisation after data, through what generate after the painted processing of fragment shader, be pixel, this pixel is the ingredient of figure layer, in each figure layer, all comprises a plurality of pixels.
It should be noted that, the painted result of the described segment according to described pel on figure layer to be drawn, carry out pixel filling obtain described in figure layer to be drawn refer to the pixel obtaining through segment painted processing is filled to obtain on the painting canvas of figure layer described to be drawn described in figure layer to be drawn.
S508, by figure layer output display described to be drawn.
It should be noted that, when the number of the described figure layer wait drawing is when more than two, before by figure layer output display described to be drawn, also comprise figure layer to be drawn described in plural to synthesize to process to generate target image, then by described target image output display.Wherein, for figure layer to be drawn described in plural is synthesized, to process with what generate target image can be compositor, can be also to strengthen display controller; For being to strengthen display controller by described target image output display.
Object that it should be noted that the display packing application described in the embodiment of the present invention is not limited to figure layer to be rotated and/or convergent-divergent is processed, and can also be applied to that in prior art, other relate to the situation of the back-end processing of carrying out coordinate transform.When the figure layer method for drafting that the embodiment of the present invention is provided is applied in the occasion of game application, can make the slip of game more smooth, and can increase the special efficacy of image.
Known, while adopting the display packing that the embodiment of the present invention provides, pre-service is carried out in summit conversion stages, due to summit conversion stages for be less summit, so carrying out described pre-service, the technical scheme that adopts the embodiment of the present invention to provide need data volume to be processed fewer, processing speed, than very fast, reduces the processing cost of the image special effect that relates to coordinate transform; Moreover, at the number of the described figure layer wait drawing, be when more than two, described in output display, before two above figure layers, also needing it to synthesize and process with synthetic image, figure layer based on described to be drawn has completed pre-service, so carrying out when image is synthetic needing data volume to be processed smaller, can further reduce the cost of processing, improve display performance.
Embodiment five
Refer to accompanying drawing 6a, structured flowchart for a kind of terminal device 600 provided by the invention, this terminal device 600 is specifically as follows one, portable computer, handheld device (mobile phone for example, PAD etc.), server etc., and it is concrete that the building-block of logic of this terminal device 600 can be consulted accompanying drawing 2., as shown in Figure 6 a, in described terminal device 600, comprise drawing engine 601, display controller 603 and display screen assembly 605;
Wherein, described drawing engine 601, for receiving drawing for order, comprises primitive information, summit information converting and the painted information of segment in described drawing for order; Receive post-processing information, according to described post-processing information, determine pretreatment information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting; Summit information converting based in described drawing for order carries out coordinate transform processing to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel; Based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result; The summit of described pel is converted to ultimate result and carry out rasterization process, obtain the rasterization process result of described pel; The painted information of segment based in described drawing for order is carried out the painted processing of segment to the rasterization process result of described pel, obtains the painted result of segment of described pel; According to the painted result of the segment of described pel, in the indication range of figure layer to be drawn, carry out pixel filling obtain described in figure layer to be drawn.
Concrete, the described drawing for order that described drawing engine 601 receives can be user by touch-screen touch, the mode such as keyboard input, mouse click inputs, the embodiment of the present invention is to this and be not construed as limiting.
Described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting, described post-processing information comprises rotation parameter, zooming parameter or both combinations, described post-processing information can also comprise display layout (Source Crop) and figure layer scope (Display Frame) etc., wherein, Source Crop represents to gather which subregion of Buffer to be gone to synthesize, Display Frame represents this Buffer will be synthesized on which region on screen, certainly, can be for representing that the figure layer treat drafting does other coordinate transform processing in described post-processing information, limiting property is not stipulated herein.
Described pretreatment information carries out the matrix of coordinate transform for representing again to the summit conversion intermediate result of pel, described pretreatment information comprises rotation matrix, scaled matrix or both combinations, described pretreatment information can also comprise that other carry out the matrix of coordinate transform again for the summit conversion intermediate result to pel, and limiting property is not stipulated herein.
As one embodiment of the present of invention, while comprising rotation parameter in described post-processing information, described drawing engine 601 is specifically for determining corresponding rotation matrix according to described rotation parameter, and described rotation matrix is for representing described pretreatment information; It should be noted that, the rotation parameter comprising in described post-processing information is 90 or 270 while spending, described drawing engine 601 is also for based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters being adjusted so that after adjusting described in the wide attribute of figure layer to be drawn and high attribute with described in the indication range of figure layer to be drawn match.
As an alternative embodiment of the invention, while comprising zooming parameter in described post-processing information,, described drawing engine 601 is specifically for determining corresponding scaled matrix according to described zooming parameter, and described scaled matrix is used for representing described pretreatment information; It should be noted that, described drawing engine 601 is also adjusted the wide property parameters of figure layer described to be drawn and high property parameters for the zooming parameter comprising based on described post-processing information so that after adjusting described in the wide attribute of figure layer to be drawn and high attribute with described in the indication range of figure layer to be drawn match.
As another embodiment of the present invention, when not only comprising rotation parameter also comprising zooming parameter in described post-processing information, described drawing engine 601 is specifically for determining corresponding rotation matrix according to described rotation parameter, according to described zooming parameter, determine corresponding scaled matrix, then according to the product of described rotation matrix and described scaled matrix, determine preconditioning matrix, described preconditioning matrix is used for representing described pretreatment information; It should be noted that, described drawing engine 601 is also adjusted the wide property parameters of figure layer described to be drawn and high property parameters for the described zooming parameter and the described rotation parameter that comprise based on described post-processing information so that after adjusting described in the wide attribute of figure layer to be drawn and high attribute with described in the indication range of figure layer to be drawn match.
It should be noted that, the described post-processing information that described drawing engine 601 receives refers in prior art and is used to indicate the information that the figure layer for completing is processed under the figure layer render mode based on OpenGL hardware standard, described post-processing information comprises that the figure layer to completing is rotated and/or convergent-divergent and other relate to the process information that carries out coordinate transform, will not enumerate herein.
Described display controller 603 is for by figure layer output display described to be drawn;
Described display screen assembly 605 is for figure layer to be drawn described in showing.
Concrete, when the number of the described figure layer wait drawing is when more than two, before by figure layer output display described to be drawn, also comprise utilize 603 pairs of display controllers plural described in figure layer to be drawn synthesize process generate target image will and described target image output display, described display screen assembly 605 is specifically for being shown to described target image.
It should be noted that, as an alternative embodiment of the invention, refer to accompanying drawing 6b, described terminal device 610 also comprises compositor 613, wherein when described in wait the number of the figure layer of drawing, be when more than two, described compositor 613 is for synthesizing figure layer to be drawn described in plural to generate target image, the target image output display then by display controller 614, described compositor 613 being generated, and described display screen assembly 615 is specifically for showing described target image.
Certain described terminal device 610 also comprises drawing engine 611, and the function of drawing engine 611 in terminal device 610 is the same with the function of drawing engine 601 in terminal device 600, so its concrete function is the function in terminal device 600 with reference to drawing engine 601, repeats no more herein.
Known, adopt the terminal device drafting figure layer described in the embodiment of the present invention and show described in wait draw figure layer time, first when drawing figure layer, pre-service is carried out in summit conversion stages, due to summit conversion stages for be less summit, so the terminal device described in the employing embodiment of the present invention needs data volume to be processed fewer when pre-service, processes cost smaller; Moreover, at the number of the described figure layer wait drawing, be when more than two, described in output display, before two above figure layers, also need it to synthesize and process to generate target image, figure layer based on described to be drawn has completed pre-service, so need data volume to be processed smaller while synthesizing, and then display performance of elevator system to a certain extent.
Embodiment six
Accordingly, the embodiment of the present invention also provides a kind of terminal device, as shown in Figure 7, this terminal device can comprise at least one processor 701, CPU for example, at least one network interface 704, for example physical network card, or other user interface 703, and storer 705, display 706 and at least one communication bus 702.
Wherein, communication bus 702 is for realizing the connection communication between these assemblies.
Network interface 704 is for realizing the connection communication between this terminal device and network, such as this network interface 704 can be managed for connector the equipment such as network interface card and/or physical switches.
Optionally, user interface 703, can comprise display, keyboard or other pointing devices, for example, mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen etc.
Storer 705 may comprise high random access memory body (RAM, Random Access Memory), also may also comprise non-unsettled storer (non-volatile memory), for example at least one magnetic disk memory.Optionally, this storer 705 can also comprise that at least one is positioned at the memory storage away from aforementioned processing device 701.
In some embodiments, storer 705 has been stored following element, executable module or data structure, or their subset, or their superset:
Operating system 7051, comprises various system programs, for realizing various basic businesses and processing hardware based task;
Application module 7052, comprises various application programs, for realizing various applied business.
Particularly, described processor 701, for receiving drawing for order, comprises primitive information, summit information converting and the painted information of segment in described drawing for order; Receive post-processing information, according to described post-processing information, determine pretreatment information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting; Summit information converting based in described drawing for order carries out coordinate transform processing to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel; Based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result; The summit of described pel is converted to ultimate result and carry out rasterization process, obtain the rasterization process result of described pel; The painted information of segment based in described drawing for order is carried out the painted processing of segment to the rasterization process result of described pel, obtains the painted result of segment of described pel; According to the painted result of the segment of described pel, in the indication range of figure layer to be drawn, carry out pixel filling obtain described in figure layer to be drawn, by figure layer output display described to be drawn.
Concrete, when the number of the described figure layer wait drawing is when more than two, described processor 701 is also for synthesize processing generation target target image to figure layer to be drawn described in plural and by described target image output display.
As one embodiment of the present of invention, described processor 701 when comprising rotation parameter in the described post-processing information receiving, is determined corresponding rotation matrix according to described rotation parameter, and described pretreatment information is this rotation matrix.Concrete, the anglec of rotation comprising in the rotation parameter comprising in described post-processing information is 90 or 270 while spending, described processor 701 is also for based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters being adjusted so that the wide high attribute after adjusting with described in the indication range of figure layer to be drawn match.It should be noted that, described processor 701 is also specifically for again carrying out coordinate transform processing based on described rotation matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that described the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.
As an alternative embodiment of the invention, described processor 701 when comprising zooming parameter in post-processing information, according to described zooming parameter, determine corresponding scaled matrix, described pretreatment information is this scaled matrix, it should be noted that, described zooming parameter comprises vertically scale parameter and/or horizontal scaling parameter, describedly according to described zooming parameter, determines that corresponding scaled matrix is to determine corresponding scaled matrix according to described vertically scale parameter and/or horizontal scaling parameter.It should be noted that, while comprising zooming parameter in post-processing information, described processor 701 is also for based on described zooming parameter, the wide property parameters of figure layer described to be drawn and high property parameters being adjusted so that the wide high attribute after adjusting with described in the indication range of figure layer to be drawn match.It should be noted that, when described pretreatment information is during according to the definite scaled matrix of the zooming parameter comprising in described post-processing information, described processor 701 is specifically for again carrying out coordinate transform processing based on described scaled matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.
As another embodiment of the present invention, when described processor 701 also comprises zooming parameter specifically for not only comprise rotation parameter in post-processing information, according to described rotation parameter, determine corresponding rotation matrix, according to described zooming parameter, determine corresponding scaled matrix, and then described rotation matrix is multiplied by described scaled matrix obtains preconditioning matrix, described pretreatment information is this preconditioning matrix, it should be noted that, described zooming parameter comprises vertically scale parameter and/or horizontal scaling parameter, describedly according to described zooming parameter, determine that corresponding scaled matrix is to determine corresponding scaled matrix according to described vertically scale parameter and/or horizontal scaling parameter.It should be noted that, when not only comprising rotation parameter also comprising zooming parameter in post-processing information, described processor 701 is also for based on described rotation parameter and described zooming parameter, the wide property parameters of figure layer described to be drawn and high property parameters being adjusted so that the wide high attribute after adjusting with described in the indication range of figure layer to be drawn match.
It should be noted that, when described post-processing information comprises rotation parameter and zooming parameter, and described zooming parameter comprises vertically scale parameter and/or horizontal scaling parameter, described pretreatment information be according to the definite rotation matrix of described rotation parameter when according to the definite preconditioning matrix of the product of the definite scaled matrix of described zooming parameter, described processor 701 is specifically for again carrying out coordinate transform processing based on described preconditioning matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.
It should be noted that, described post-processing information refers in prior art and is used to indicate the information that the figure layer for completing is processed under the figure layer render mode based on OpenGL hardware standard, described post-processing information comprises that the figure layer to completing is rotated and/or convergent-divergent and other relate to the information of carrying out coordinate transform processing, will not enumerate herein.Corresponding, described pretreatment information can be that described rotation and/or scaled matrix and other carry out the matrix of conversion process to the apex coordinate of pel, and the function that described processor 701 can be realized includes but not limited to the function described in above-described embodiment.
Described display 706 is for figure layer to be drawn described in showing.
It should be noted that when described in wait the number of the figure layer of drawing, be when more than two, described processor 701 is also for figure layer to be drawn described in plural is synthesized and generates target image, then by described target image output display.Corresponding, described display 706 is for showing described target image.
The concrete enforcement of each equipment can, referring to embodiment above, not repeat them here above.
Known, adopt the terminal device drafting figure layer described in the embodiment of the present invention and show described in wait draw figure layer time, first when drawing figure layer, pre-service is carried out in the conversion stages of summit, due to summit conversion stages for be less summit, so need data volume to be processed fewer when the terminal device described in the employing embodiment of the present invention carries out pretreatment operation, process cost smaller; Moreover, at the number of the described figure layer wait drawing, be when more than two, described in output display, before two above figure layers, also need it to synthesize and process to generate target image, figure layer based on described to be drawn has completed pre-service, so need data volume to be processed smaller while synthesizing, and then display performance of elevator system to a certain extent.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed system, apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.
If described function usings that the form of SFU software functional unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection domain with claim.

Claims (25)

1. a figure layer method for drafting, is characterized in that, described method comprises:
Receive drawing for order, in described drawing for order, comprise primitive information, summit information converting and the painted information of segment;
Receive post-processing information, according to described post-processing information, determine pretreatment information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting;
Summit information converting based in described drawing for order carries out coordinate transform processing to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel;
Based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result;
The summit of described pel is converted to ultimate result and carry out rasterization process, obtain the rasterization process result of described pel;
The painted information of segment based in described drawing for order is carried out the painted processing of segment to the rasterization process result of described pel, obtains the painted result of segment of described pel;
According to the painted result of the segment of described pel in the indication range of described figure layer, carry out pixel filling obtain described in figure layer to be drawn.
2. figure layer method for drafting according to claim 1, is characterized in that, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising:
Receive post-processing information, described post-processing information comprises rotation parameter;
The rotation parameter comprising according to described post-processing information is determined rotation matrix, and described rotation matrix represents described pretreatment information;
Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprising:
Based on described rotation matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that described the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.
3. figure layer method for drafting according to claim 1, is characterized in that, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising:
Receive post-processing information, described post-processing information comprises zooming parameter;
The zooming parameter comprising according to described post-processing information is determined scaled matrix, and described scaled matrix represents described pretreatment information;
Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprising:
Based on described scaled matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.
4. figure layer method for drafting according to claim 1, is characterized in that, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising:
Receive post-processing information, described post-processing information comprises rotation parameter and zooming parameter;
The rotation parameter comprising according to described post-processing information is determined rotation matrix;
The zooming parameter comprising according to described post-processing information is determined scaled matrix;
Described rotation matrix and described scaled matrix are multiplied each other and obtain preconditioning matrix, and described preconditioning matrix represents described pretreatment information;
Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprising:
Based on described preconditioning matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.
5. figure layer method for drafting according to claim 2, is characterized in that, at described reception post-processing information, after described post-processing information comprises rotation parameter, described method also comprises:
The anglec of rotation representing at described rotation parameter is 90 or 270 while spending, based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described, based on described rotation matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, the summit that obtains representing described pel also comprises after converting the second apex coordinate of ultimate result:
According to wide attribute and the high attribute after adjusting, to representing that the second apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the second apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising:
The second apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
6. figure layer method for drafting according to claim 3, is characterized in that, at described reception post-processing information, after described post-processing information comprises zooming parameter, described method also comprises:
Based on described zooming parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described, based on described scaled matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, the summit that obtains representing described pel also comprises after converting the 3rd apex coordinate of ultimate result:
According to wide attribute and the high attribute after adjusting, to representing that the 3rd apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 3rd apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising:
The 3rd apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
7. figure layer method for drafting according to claim 4, is characterized in that, at described reception post-processing information, after described post-processing information comprises rotation parameter and zooming parameter, described method also comprises:
Based on described zooming parameter and described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described, based on described preconditioning matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, the summit that obtains representing described pel also comprises after converting the 4th apex coordinate of ultimate result:
According to wide attribute and the high attribute after adjusting, to representing that the 4th apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 4th apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising:
The 4th apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
8. a drawing engine, is characterized in that, comprising:
Receiving element, for receiving drawing for order, comprises primitive information, summit information converting and the painted information of segment in described drawing for order; And also for receiving post-processing information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting;
Pre-service interface unit, for determining pretreatment information according to described post-processing information;
Vertex shader, carries out coordinate transform processing for the summit information converting based on described drawing for order to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel; And also for the summit conversion intermediate result of described pel being carried out to coordinate transform processing again based on described pretreatment information, the summit that obtains described pel converts ultimate result;
Rasterizer, carries out rasterization process for the summit of described pel is converted to ultimate result, obtains the rasterization process result of described pel;
Fragment shader, carries out the painted processing of segment for the painted information of the segment based on described drawing for order to the rasterization process result of described pel, obtains the painted result of segment of described pel;
Figure layer obtains a unit, for according to the painted result of the segment of described pel, in the indication range of figure layer described to be drawn, carry out pixel filling obtain described in figure layer to be drawn.
9. drawing engine according to claim 8, is characterized in that:
In the operation of described reception post-processing information, described receiving element is specifically for receiving the post-processing information that comprises rotation parameter;
Described pre-service interface unit is determined rotation matrix specifically for the rotation parameter comprising according to described post-processing information, and described rotation matrix represents described pretreatment information;
Described, based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts in the operation of ultimate result, described vertex shader is specifically for again carrying out coordinate transform processing based on described rotation matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that wherein said the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.
10. drawing engine according to claim 8, is characterized in that:
Described receiving element is specifically for receiving the post-processing information that comprises zooming parameter;
Described pre-service interface unit is determined scaled matrix specifically for the zooming parameter comprising according to described post-processing information, and described scaled matrix represents described pretreatment information;
Described, based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts in the operation of ultimate result, described vertex shader is specifically for again carrying out coordinate transform processing based on described scaled matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.
11. drawing engines according to claim 8, is characterized in that:
Described receiving element is specifically for receiving the post-processing information that comprises rotation parameter and zooming parameter;
Described pre-service interface unit is determined rotation matrix specifically for the rotation parameter comprising according to described post-processing information, the zooming parameter comprising according to described post-processing information is determined scaled matrix, described rotation matrix and described scaled matrix are multiplied each other and obtain preconditioning matrix, and described preconditioning matrix represents described pretreatment information;
Described, based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts in the operation of ultimate result, described vertex shader is specifically for again carrying out coordinate transform processing based on described preconditioning matrix to representing the first apex coordinate of the summit conversion intermediate result of described pel, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.
12. drawing engines according to claim 9, is characterized in that:
Described pre-service interface unit is also 90 or 270 while spending for the anglec of rotation representing at described rotation parameter, based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described vertex shader is also for according to wide attribute and high attribute after adjusting, to representing that the second apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the second apex coordinate after cutting;
Described rasterizer carries out rasterization process specifically for the second apex coordinate to after described cutting, obtains the rasterization process result of described pel.
13. drawing engines according to claim 10, is characterized in that:
Described pre-service interface unit is also for adjusting the wide property parameters of figure layer described to be drawn and high property parameters based on described zooming parameter, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described vertex shader is also for according to wide attribute and high attribute after adjusting, to representing that the 3rd apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 3rd apex coordinate after cutting;
Described rasterizer carries out rasterization process specifically for the 3rd apex coordinate to after described cutting, obtains the rasterization process result of described pel.
14. drawing engines according to claim 11, is characterized in that:
Described pre-service interface unit is also for adjusting the wide property parameters of figure layer described to be drawn and high property parameters based on described zooming parameter and described rotation parameter, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described vertex shader is also for according to wide attribute and high attribute after adjusting, to representing that the 4th apex coordinate that described summit converts ultimate result carries out cutting, obtains the 4th apex coordinate after cutting;
Described rasterizer carries out rasterization process specifically for the 4th apex coordinate to after described cutting, obtains the rasterization process result of described pel.
15. 1 kinds of display packings, is characterized in that, described method comprises:
Receive drawing for order, in described drawing for order, comprise primitive information, summit information converting and the painted information of segment;
Receive post-processing information, according to described post-processing information, determine pretreatment information, described post-processing information is done coordinate transform processing for representing the figure layer for the treatment of drafting;
Summit information converting based in described drawing for order carries out coordinate transform processing to the summit of pel corresponding to described primitive information, obtains the summit conversion intermediate result of described pel;
Based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result;
The summit of described pel is converted to ultimate result and carry out rasterization process, obtain the rasterization process result of described pel;
The painted information of segment based in described drawing for order is carried out the painted processing of segment to the rasterization process result of described pel, obtains the painted result of segment of described pel;
According to the painted result of the segment of described pel, in the indication range of figure layer described to be drawn, carry out pixel filling obtain described in figure layer to be drawn;
By figure layer output display described to be drawn.
16. display packings according to claim 15, is characterized in that:
When the number of the described figure layer wait drawing is when more than two,
Described by figure layer output display described to be drawn, comprising:
Figure layer to be drawn described in plural is synthesized to process and generate target image and by described target image output display.
17. according to the display packing described in claim 15 or 16, it is characterized in that, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising:
Receive post-processing information, described post-processing information comprises rotation parameter;
The rotation parameter comprising according to described post-processing information is determined rotation matrix, and described rotation matrix represents described pretreatment information;
Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprising:
Based on described rotation matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the second apex coordinate of ultimate result, the pel that the pel that described the second apex coordinate represents represents with respect to described the first apex coordinate has the effect of rotation.
18. according to the display packing described in claim 15 or 16, it is characterized in that, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising:
Receive post-processing information, described post-processing information comprises zooming parameter;
The zooming parameter comprising according to described post-processing information is determined scaled matrix, and described scaled matrix represents described pretreatment information;
Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprising:
Based on described scaled matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, the pel that the pel that described the 3rd apex coordinate represents represents with respect to described the first apex coordinate has the effect of convergent-divergent.
19. according to the display packing described in claim 15 or 16, it is characterized in that, described reception post-processing information, determines pretreatment information according to described post-processing information, comprising:
Receive post-processing information, described post-processing information comprises rotation parameter and zooming parameter;
The rotation parameter comprising according to described post-processing information is determined rotation matrix;
The zooming parameter comprising according to described post-processing information is determined scaled matrix;
Described rotation matrix and described scaled matrix are multiplied each other and obtain preconditioning matrix, and described preconditioning matrix represents described pretreatment information;
Describedly based on described pretreatment information, the summit conversion intermediate result of described pel is carried out to coordinate transform processing again, the summit that obtains described pel converts ultimate result, comprising:
Based on described preconditioning matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, obtain representing that the summit of described pel converts the 4th apex coordinate of ultimate result, the pel that the pel that described the 4th apex coordinate represents represents with respect to described the first apex coordinate has the effect of Rotation and Zoom.
20. display packings according to claim 17, is characterized in that, at described reception post-processing information, after described post-processing information comprises rotation parameter, described method also comprises:
The anglec of rotation representing at described rotation parameter is 90 or 270 while spending, based on described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described, based on described rotation matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, the summit that obtains representing described pel also comprises after converting the second apex coordinate of ultimate result:
According to wide attribute and the high attribute after adjusting, to representing that the second apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the second apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising:
The second apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
21. display packings according to claim 18, is characterized in that, at described reception post-processing information, after described post-processing information comprises zooming parameter, described method also comprises:
Based on described zooming parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described, based on described scaled matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, the summit that obtains representing described pel also comprises after converting the 3rd apex coordinate of ultimate result:
According to wide attribute and the high attribute after adjusting, to representing that the 3rd apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 3rd apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising:
The 3rd apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
22. display packings according to claim 19, is characterized in that, at described reception post-processing information, after described post-processing information comprises rotation parameter and zooming parameter, described method also comprises:
Based on described zooming parameter and described rotation parameter, the wide property parameters of figure layer described to be drawn and high property parameters are adjusted, make wide attribute after adjusting and high attribute with described in the indication range of figure layer to be drawn match;
Described, based on described preconditioning matrix, to representing the first apex coordinate of the summit conversion intermediate result of described pel, again carry out coordinate transform processing, the summit that obtains representing described pel also comprises after converting the 4th apex coordinate of ultimate result:
According to wide attribute and the high attribute after adjusting, to representing that the 4th apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the 4th apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process result of described pel, comprising:
The 4th apex coordinate after described cutting is carried out to rasterization process, obtain the rasterization process result of described pel.
23. 1 kinds of terminal devices, is characterized in that, comprise display controller, display screen assembly and the drawing engine as described in claim 15-22 any one, wherein:
Described display controller for figure layer output display to be drawn described in described drawing engine is obtained to described display screen assembly.
24. terminal devices according to claim 23, is characterized in that:
When the number of the described figure layer wait drawing is when more than two, described display controller specifically for described drawing engine is obtained plural described in figure layer to be drawn synthesize generate target image and by described target image output display to described display screen assembly.
25. terminal devices according to claim 23, is characterized in that, also comprise compositor, wherein:
When the number of the described figure layer wait drawing is when more than two, described compositor for described drawing engine is obtained plural described in figure layer to be drawn synthesize generation target image;
Described display controller specifically for by described target image output display to described display screen assembly.
CN201310671747.5A 2013-12-10 2013-12-10 Coverage drawing method, drawing engine and terminal equipment Active CN103677828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310671747.5A CN103677828B (en) 2013-12-10 2013-12-10 Coverage drawing method, drawing engine and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310671747.5A CN103677828B (en) 2013-12-10 2013-12-10 Coverage drawing method, drawing engine and terminal equipment

Publications (2)

Publication Number Publication Date
CN103677828A true CN103677828A (en) 2014-03-26
CN103677828B CN103677828B (en) 2017-02-22

Family

ID=50315495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310671747.5A Active CN103677828B (en) 2013-12-10 2013-12-10 Coverage drawing method, drawing engine and terminal equipment

Country Status (1)

Country Link
CN (1) CN103677828B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809684A (en) * 2015-04-02 2015-07-29 华为技术有限公司 Graphic processing method, device and system
CN107004399A (en) * 2014-12-18 2017-08-01 高通股份有限公司 The correcting vision carried out by graphics process
CN107392836A (en) * 2016-05-05 2017-11-24 辉达公司 The more projections of solid realized using graphics processing pipeline
CN107621951A (en) * 2017-08-29 2018-01-23 口碑(上海)信息技术有限公司 A kind of method and device of view Hierarchical Optimization
CN107808367A (en) * 2017-11-29 2018-03-16 天津聚飞创新科技有限公司 Fisheye image correcting method, device, unmanned plane and storage medium
WO2018094814A1 (en) * 2016-11-28 2018-05-31 深圳Tcl数字技术有限公司 Video synthesizing method and device
CN108711179A (en) * 2018-05-21 2018-10-26 张宗良 Drawing restoring method and system
WO2018214768A1 (en) * 2017-05-24 2018-11-29 阿里巴巴集团控股有限公司 Rendering method and device
CN109634548A (en) * 2018-12-24 2019-04-16 广州励丰文化科技股份有限公司 Across the channel output method of figure layer and system based on media server control system
CN109828818A (en) * 2019-01-29 2019-05-31 广联达科技股份有限公司 A kind of pel pattern transform method based on browser end display engine
CN109840881A (en) * 2018-12-12 2019-06-04 深圳奥比中光科技有限公司 A kind of 3D special efficacy image generating method, device and equipment
CN110018812A (en) * 2018-01-08 2019-07-16 搜游网络科技(北京)有限公司 A kind of pattern drawing method and device
CN110764757A (en) * 2019-10-22 2020-02-07 成都九洲电子信息***股份有限公司 Interactive graphics drawing engine based on HTML5
CN110764764A (en) * 2019-09-16 2020-02-07 平安科技(深圳)有限公司 Webpage-side image fixing and stretching method and device, computer equipment and storage medium
CN111461960A (en) * 2020-03-19 2020-07-28 稿定(厦门)科技有限公司 Multi-layer matrix transformation method and device
CN112925593A (en) * 2019-12-05 2021-06-08 北京沃东天骏信息技术有限公司 Method and device for scaling and rotating target layer
CN113687823A (en) * 2021-07-30 2021-11-23 稿定(厦门)科技有限公司 Quadrilateral block nonlinear transformation method and system based on HTML (Hypertext markup language)
CN116051627A (en) * 2023-02-02 2023-05-02 杭州比智科技有限公司 Method and system for realizing graphic self-adaption based on svg and Lottie

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001175464A (en) * 1999-12-16 2001-06-29 Class Technology Co Ltd Information processor and information processing method and computer readable storage medium with information processing program
US20080094408A1 (en) * 2006-10-24 2008-04-24 Xiaoqin Yin System and Method for Geometry Graphics Processing
US9214007B2 (en) * 2008-01-25 2015-12-15 Via Technologies, Inc. Graphics processor having unified cache system
JP5554982B2 (en) * 2009-12-22 2014-07-23 キヤノン株式会社 Printing control apparatus, printing apparatus control method, and program

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107004399A (en) * 2014-12-18 2017-08-01 高通股份有限公司 The correcting vision carried out by graphics process
CN104809684A (en) * 2015-04-02 2015-07-29 华为技术有限公司 Graphic processing method, device and system
WO2016155329A1 (en) * 2015-04-02 2016-10-06 华为技术有限公司 Graphic processing method, device and system
CN104809684B (en) * 2015-04-02 2018-03-27 华为技术有限公司 Graphic processing method, apparatus and system
US10198785B2 (en) 2015-04-02 2019-02-05 Huawei Technologies Co., Ltd. Graphics processing method, apparatus, and system
CN107392836A (en) * 2016-05-05 2017-11-24 辉达公司 The more projections of solid realized using graphics processing pipeline
CN107392836B (en) * 2016-05-05 2021-08-06 辉达公司 Stereoscopic multi-projection using a graphics processing pipeline
WO2018094814A1 (en) * 2016-11-28 2018-05-31 深圳Tcl数字技术有限公司 Video synthesizing method and device
WO2018214768A1 (en) * 2017-05-24 2018-11-29 阿里巴巴集团控股有限公司 Rendering method and device
CN107621951A (en) * 2017-08-29 2018-01-23 口碑(上海)信息技术有限公司 A kind of method and device of view Hierarchical Optimization
CN107621951B (en) * 2017-08-29 2020-12-29 口碑(上海)信息技术有限公司 View level optimization method and device
CN107808367A (en) * 2017-11-29 2018-03-16 天津聚飞创新科技有限公司 Fisheye image correcting method, device, unmanned plane and storage medium
CN110018812A (en) * 2018-01-08 2019-07-16 搜游网络科技(北京)有限公司 A kind of pattern drawing method and device
CN110018812B (en) * 2018-01-08 2022-09-09 北京蓝亚盒子科技有限公司 Graph drawing method and device
CN108711179A (en) * 2018-05-21 2018-10-26 张宗良 Drawing restoring method and system
CN108711179B (en) * 2018-05-21 2022-07-19 杭州多技教育科技有限公司 Drawing reduction method and system
CN109840881A (en) * 2018-12-12 2019-06-04 深圳奥比中光科技有限公司 A kind of 3D special efficacy image generating method, device and equipment
CN109634548B (en) * 2018-12-24 2022-05-03 广州励丰文化科技股份有限公司 Layer cross-channel output method and system based on media server control system
CN109634548A (en) * 2018-12-24 2019-04-16 广州励丰文化科技股份有限公司 Across the channel output method of figure layer and system based on media server control system
CN109828818A (en) * 2019-01-29 2019-05-31 广联达科技股份有限公司 A kind of pel pattern transform method based on browser end display engine
CN110764764A (en) * 2019-09-16 2020-02-07 平安科技(深圳)有限公司 Webpage-side image fixing and stretching method and device, computer equipment and storage medium
CN110764764B (en) * 2019-09-16 2024-03-01 平安科技(深圳)有限公司 Webpage end image fixed stretching method and device, computer equipment and storage medium
CN110764757B (en) * 2019-10-22 2023-06-09 成都九洲电子信息***股份有限公司 Interactive graphic drawing engine based on HTML5
CN110764757A (en) * 2019-10-22 2020-02-07 成都九洲电子信息***股份有限公司 Interactive graphics drawing engine based on HTML5
CN112925593A (en) * 2019-12-05 2021-06-08 北京沃东天骏信息技术有限公司 Method and device for scaling and rotating target layer
CN111461960A (en) * 2020-03-19 2020-07-28 稿定(厦门)科技有限公司 Multi-layer matrix transformation method and device
CN113687823A (en) * 2021-07-30 2021-11-23 稿定(厦门)科技有限公司 Quadrilateral block nonlinear transformation method and system based on HTML (Hypertext markup language)
CN113687823B (en) * 2021-07-30 2023-08-01 稿定(厦门)科技有限公司 Quadrilateral block nonlinear transformation method and system based on HTML
CN116051627A (en) * 2023-02-02 2023-05-02 杭州比智科技有限公司 Method and system for realizing graphic self-adaption based on svg and Lottie

Also Published As

Publication number Publication date
CN103677828B (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN103677828A (en) Coverage drawing method, drawing engine and terminal equipment
US10733691B2 (en) Fragment shaders perform vertex shader computations
KR102475212B1 (en) Foveated rendering in tiled architectures
US9142044B2 (en) Apparatus, systems and methods for layout of scene graphs using node bounding areas
US9449421B2 (en) Method and apparatus for rendering image data
US9715750B2 (en) System and method for layering using tile-based renderers
US8847961B2 (en) Geometry, speed, pressure, and anti-aliasing for ink rendering
US9183651B2 (en) Target independent rasterization
US10019802B2 (en) Graphics processing unit
JP2008165760A (en) Method and apparatus for processing graphics
US9401034B2 (en) Tessellation of two-dimensional curves using a graphics pipeline
WO2010088029A2 (en) Single-pass bounding box calculation
KR102381945B1 (en) Graphic processing apparatus and method for performing graphics pipeline thereof
EP3230880A1 (en) Processing unaligned block transfer operations
CN103268620A (en) Graphic processing method, graphic processing device and terminal device
CN103686304A (en) Method, device and terminal device for layer composition
US20160012618A1 (en) Line stylization through graphics processor unit (gpu) textures
US20130120381A1 (en) Fast rendering of knockout groups using a depth buffer of a graphics processing unit
US20180101929A1 (en) Graphics processing devices and graphics processing methods
EP2973413B1 (en) Graphics processing using multiple primitives
KR20160030426A (en) Graphics processing unit including subdivider and device having the same
US20180276878A1 (en) System and method for rendering shadows for a virtual environment
US10380784B2 (en) Electronic apparatus for mapping texture image and generating blending image
US9811945B2 (en) On-demand transformation aware shape tessellation
US10311627B2 (en) Graphics processing apparatus and method of processing graphics pipeline thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant