CN103677828B - Coverage drawing method, drawing engine and terminal equipment - Google Patents
Coverage drawing method, drawing engine and terminal equipment Download PDFInfo
- Publication number
- CN103677828B CN103677828B CN201310671747.5A CN201310671747A CN103677828B CN 103677828 B CN103677828 B CN 103677828B CN 201310671747 A CN201310671747 A CN 201310671747A CN 103677828 B CN103677828 B CN 103677828B
- Authority
- CN
- China
- Prior art keywords
- pel
- summit
- information
- post
- layer
- 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.)
- Active
Links
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
Technical field
The present invention relates to computer technology, more particularly, to a kind of figure layer method for drafting, drawing engine and terminal unit.
Background technology
The application of current android system mainly adopts OpenGL to draw, OpenGL(Open Graphic Library)
It is an open graphic hardware standard, it provides a series of application programming interfaces(API,Application
Programming Interface)Use for developer.The figure layer treating drafting under the hardware standard of OpenGL is related to sit
During the process of mark conversion, need this figure layer of completing first, then this figure layer is done described in be related to the process of coordinate transform, than
As rotation processing and/or scaling process etc., the figure layer due to completing comprises substantial amounts of pixel, so doing to this figure layer
Need data volume ratio to be processed larger during the process being related to coordinate transform, the image special effect paid processes cost than larger.
Content of the invention
The embodiment of the present invention provides a kind of figure layer method for drafting, drawing engine and terminal unit, is related to coordinate for reducing
The process cost of the image special effect of conversion.
In a first aspect, the embodiment of the present invention provides a kind of figure layer method for drafting, the method includes:Receive drawing for order, institute
State and in drawing for order, comprise primitive information, summit information converting and segment shading information;Receive post-processing information, according to described
Post-processing information determines pretreatment information, and described post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing;
Based on the summit information converting in described drawing for order, the summit of the corresponding pel of described primitive information is carried out at coordinate transform
Reason, obtains the summit conversion intermediate result of described pel;Based on described pretreatment information, the summit of described pel is converted middle
Result carries out coordinate transform processing again, and the summit obtaining described pel converts ultimate result;Summit conversion to described pel
Ultimate result carries out rasterization process, obtains the rasterization process result of described pel;Based on the segment in described drawing for order
Shading information carries out segment coloring treatment to the rasterization process result of described pel, obtains the segment coloring treatment of described pel
Result;Pixel filling is carried out in the indication range of described figure layer to be drawn according to the segment coloring treatment result of described pel
Figure layer to be drawn described in obtaining.
In conjunction with a first aspect, under the first implementation, described reception post-processing information, according to described post-processing information
Determine pretreatment information, including:Receive post-processing information, described post-processing information includes rotation parameter;According to described post processing
The rotation parameter that information includes determines spin matrix, and described spin matrix represents described pretreatment information;Described based on described
Pretreatment information carries out coordinate transform processing again to the summit conversion intermediate result of described pel, obtains the summit of described pel
Convert ultimate result, including:First summit of intermediate result is converted to the summit representing described pel based on described spin matrix
Coordinate carries out coordinate transform processing again, obtains representing that the summit of described pel converts the second apex coordinate of ultimate result, institute
State the effect that the pel that the pel that the second apex coordinate represents represents has rotation with respect to described first apex coordinate.
In conjunction with a first aspect, under second implementation, described reception post-processing information, according to described post-processing information
Determine pretreatment information, including:Receive post-processing information, described post-processing information includes zooming parameter;According to described post processing
The zooming parameter that information includes determines scaled matrix, and described scaled matrix represents described pretreatment information;Described based on described
Pretreatment information carries out coordinate transform processing again to the summit conversion intermediate result of described pel, obtains the summit of described pel
Convert ultimate result, including:First summit of intermediate result is converted to the summit representing described pel based on described scaled matrix
Coordinate carries out coordinate transform processing again, obtains representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, institute
State the effect that the pel that the pel that the 3rd apex coordinate represents represents has scaling with respect to described first apex coordinate.
In conjunction with a first aspect, under the third implementation, described reception post-processing information, according to described post-processing information
Determine pretreatment information, including:Receive post-processing information, described post-processing information includes rotation parameter and zooming parameter;According to
The rotation parameter that described post-processing information includes determines spin matrix;The zooming parameter being included according to described post-processing information
Determine scaled matrix;Described spin matrix is multiplied with described scaled matrix and obtains preconditioning matrix, described preconditioning matrix table
Show described pretreatment information;Described based on described pretreatment information, the summit of described pel conversion intermediate result is sat again
Mark conversion process, the summit obtaining described pel converts ultimate result, including:Based on described preconditioning matrix to the described figure of expression
The first apex coordinate that the summit of unit converts intermediate result carries out coordinate transform processing again, obtains representing the summit of described pel
Convert the 4th apex coordinate of ultimate result, the pel that described 4th apex coordinate represents is with respect to described first apex coordinate table
The pel showing has rotation and the effect of scaling.
In conjunction with the first implementation of first aspect, under the 4th kind of implementation, in described reception post-processing information,
After described post-processing information includes rotation parameter, methods described also includes:The anglec of rotation representing in described rotation parameter is
When 90 or 270 degree, based on described rotation parameter, the wide property parameters of described figure layer to be drawn and high property parameters are carried out
Adjustment is so that the wide attribute after adjustment and high attribute are matched with the indication range of described figure layer to be drawn;It is based on described
The first apex coordinate that described spin matrix converts intermediate result to the summit representing described pel is carried out at coordinate transform again
Reason, after obtaining representing that the summit of described pel converts the second apex coordinate of ultimate result, also includes:According to the width after adjustment
Attribute and high attribute, the second apex coordinate converting ultimate result to the summit representing described pel carries out cutting, obtains cutting
The second apex coordinate afterwards;The described summit to described pel converts ultimate result and carries out rasterization process, obtains described pel
Rasterization process result, including:Rasterization process is carried out to the second apex coordinate after described cutting, obtains described pel
Rasterization process result.
In conjunction with the second implementation of first aspect, under the 5th kind of implementation, in described reception post-processing information,
After described post-processing information includes zooming parameter, methods described also includes:Based on described zooming parameter to described to be drawn
The wide property parameters of figure layer and high property parameters be adjusted so that wide attribute after adjusting and high attribute with described to be drawn
The indication range of figure layer matches;Described, intermediate result is converted to the summit representing described pel based on described scaled matrix
First apex coordinate carries out coordinate transform processing again, obtains representing that the summit of described pel converts the 3rd summit of ultimate result
After coordinate, also include:According to the wide attribute after adjustment and high attribute, ultimate result is converted to the summit representing described pel
3rd apex coordinate carries out cutting, obtains the 3rd apex coordinate after cutting;The described summit to described pel converts ultimate knot
Fruit carries out rasterization process, obtains the rasterization process result of described pel, including:To the 3rd apex coordinate after described cutting
Carry out rasterization process, obtain the rasterization process result of described pel.
In conjunction with the third implementation of first aspect, under the 6th kind of implementation, in described reception post-processing information,
After described post-processing information includes rotation parameter and zooming parameter, methods described also includes:Based on described zooming parameter and institute
State rotation parameter and the described wide property parameters wait the figure layer drawn and high property parameters are adjusted with the wide genus so that after adjusting
Property and high attribute are matched with the indication range of described figure layer to be drawn;Described based on described preconditioning matrix to represent institute
The first apex coordinate stating the summit conversion intermediate result of pel carries out coordinate transform processing again, obtains representing described pel
After summit converts the 4th apex coordinate of ultimate result, also include:According to the wide attribute after adjustment and high attribute, to expression institute
The 4th apex coordinate stating the ultimate result of summit conversion of pel carries out cutting, obtains the 4th apex coordinate after cutting;Described
Rasterization process is carried out to the summit ultimate result of conversion of described pel, obtains the rasterization process result of described pel, including:
Rasterization process is carried out to the 4th apex coordinate after described cutting, obtains 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 includes:Receiving unit, is used for connecing
Receive drawing for order, in described drawing for order, comprise primitive information, summit information converting and segment shading information;And be additionally operable to
Receive post-processing information, described post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing;Pretreatment interface
Unit, for determining pretreatment information according to described post-processing information;Vertex shader, for based in described drawing for order
Summit information converting carries out coordinate transform processing to the summit of the corresponding pel of described primitive information, obtains the summit of described pel
Conversion intermediate result;And be additionally operable to based on described pretreatment information, the summit conversion intermediate result of described pel be carried out again
Coordinate transform processing, the summit obtaining described pel converts ultimate result;Rasterizer, for the summit conversion to described pel
Ultimate result carries out rasterization process, obtains the rasterization process result of described pel;Fragment shader, for being painted based on described
Segment shading information in figure instruction carries out segment coloring treatment to the rasterization process result of described pel, obtains described pel
Segment coloring treatment result;Figure layer obtaining unit, waits to paint described for the segment coloring treatment result according to described pel
Carry out in the indication range of figure layer of system pixel filling obtain described in figure layer to be drawn.
In conjunction with second aspect, under the first implementation, in the described operation receiving post-processing information, described reception
Unit includes the post-processing information of rotation parameter specifically for receiving;Described pretreatment interface unit is specifically for according to after described
The rotation parameter that processing information includes determines spin matrix, and described spin matrix represents described pretreatment information;In described base
In described pretreatment information, again coordinate transform processing is carried out to the summit conversion intermediate result of described pel, obtain described pel
Summit convert ultimate result operation on, described vertex shader specifically for based on described spin matrix to represent described figure
The first apex coordinate that the summit of unit converts intermediate result carries out coordinate transform processing again, obtains representing the summit of described pel
Convert the second apex coordinate of ultimate result, the pel that wherein said second apex coordinate represents is sat with respect to described first summit
The pel that mark represents has the effect of rotation.
In conjunction with second aspect, under second implementation, described receiving unit includes zooming parameter specifically for receiving
Post-processing information;Described pretreatment interface unit determines specifically for the zooming parameter being included according to described post-processing information
Scaled matrix, described scaled matrix represents described pretreatment information;Described based on described pretreatment information to described pel
Summit conversion intermediate result carries out coordinate transform processing again, and the summit obtaining described pel converts in the operation of ultimate result,
Described vertex shader is specifically for converting the first of intermediate result based on described scaled matrix to the summit representing described pel
Apex coordinate carries out coordinate transform processing again, obtains representing the 3rd summit seat that the summit of described pel converts ultimate result
Mark, the pel that the pel that described 3rd apex coordinate represents represents with respect to described first apex coordinate has the effect of scaling.
In conjunction with second aspect, under the third implementation, described receiving unit includes rotation parameter specifically for receiving
Post-processing information with zooming parameter;Described pretreatment interface unit is specifically for the rotation being included according to described post-processing information
Turn parameter determination spin matrix, scaled matrix is determined according to the zooming parameter that described post-processing information includes, by described rotation
Matrix is multiplied with described scaled matrix and obtains preconditioning matrix, and described preconditioning matrix represents described pretreatment information;Described
Coordinate transform processing is carried out again to the summit conversion intermediate result of described pel based on described pretreatment information, obtains described figure
Unit summit convert ultimate result operation on, described vertex shader specifically for based on described preconditioning matrix to represent institute
The first apex coordinate stating the summit conversion intermediate result of pel carries out coordinate transform processing again, obtains representing described pel
Summit converts the 4th apex coordinate of ultimate result, and the pel that described 4th apex coordinate represents is sat with respect to described first summit
The pel that mark represents has rotation and the effect of scaling.
In conjunction with the first implementation of second aspect, under the 4th kind of implementation, described pretreatment interface unit is also
When the anglec of rotation for representing in described rotation parameter is 90 or 270 degree, wait to draw to described based on described rotation parameter
The wide property parameters of figure layer and high property parameters are adjusted so that the wide attribute after adjusting and high attribute are waited to draw with described
The indication range of figure layer match;Described vertex shader is additionally operable to according to the wide attribute after adjusting and high attribute, to expression
The second apex coordinate that the summit of described pel converts ultimate result carries out cutting, obtains the second apex coordinate after cutting;Institute
State rasterizer specifically for rasterization process is carried out to the second apex coordinate after described cutting, obtain the grating of described pel
Change result.
In conjunction with the second implementation of second aspect, under the 5th kind of implementation, described pretreatment interface unit is also
For being adjusted the wide property parameters of described figure layer to be drawn and high property parameters so that adjusting based on described zooming parameter
Wide attribute after whole and high attribute are matched with the indication range of described figure layer to be drawn;Described vertex shader is additionally operable to root
According to the wide attribute after adjustment and high attribute, the 3rd apex coordinate converting ultimate result to the summit representing described pel is cut out
Cut, obtain the 3rd apex coordinate after cutting;Described rasterizer is specifically for entering to the 3rd apex coordinate after described cutting
Line rasterization is processed, and obtains the rasterization process result of described pel.
In conjunction with the third implementation of second aspect, under the 6th kind of implementation, described pretreatment interface unit is also
For based on described zooming parameter and described rotation parameter to the wide property parameters of described figure layer to be drawn and high property parameters
It is adjusted so that the wide attribute after adjusting and high attribute are matched with the indication range of described figure layer to be drawn;Described top
Point Coloring device is additionally operable to according to the wide attribute after adjusting and high attribute, to the 4th summit representing the ultimate result of described summit conversion
Coordinate carries out cutting, obtains the 4th apex coordinate after cutting;Described rasterizer is specifically for the 4th after described cutting
Apex coordinate carries out rasterization process, 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 includes:Receive drawing for order, described paint
Primitive information, summit information converting and segment shading information is comprised in figure instruction;Receive post-processing information, according to described rear place
Reason information determines pretreatment information, and described post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing;It is based on
Summit information converting in described drawing for order carries out coordinate transform processing to the summit of the corresponding pel of described primitive information, obtains
Summit to described pel converts intermediate result;Intermediate result is converted again to the summit of described pel based on described pretreatment information
The secondary ultimate result of summit conversion carrying out coordinate transform processing, obtaining described pel;Ultimate knot is converted to the summit of described pel
Fruit carries out rasterization process, obtains the rasterization process result of described pel;Based on the segment coloring letter in described drawing for order
Breath carries out segment coloring treatment to the rasterization process result of described pel, obtains the segment coloring treatment result of described pel;
Carry out pixel filling according to the segment coloring treatment result of described pel in the indication range of described figure layer to be drawn to obtain
Described figure layer to be drawn;By described figure layer output display to be drawn.
In conjunction with the third aspect, under the first implementation, when the described number wait the figure layer drawn is two or more,
Described by described figure layer output display to be drawn, including:Synthesis process is carried out to plural described figure layer to be drawn
Generate target image and by described target image output display.
In conjunction with the first implementation of the third aspect or the third aspect, under second implementation, described reception
Post-processing information, determines pretreatment information according to described post-processing information, including:Receive post-processing information, described post processing letter
Breath includes rotation parameter;Spin matrix is determined according to the rotation parameter that described post-processing information includes, described spin matrix table
Show described pretreatment information;Described based on described pretreatment information, the summit of described pel conversion intermediate result is sat again
Mark conversion process, the summit obtaining described pel converts ultimate result, including:Based on described spin matrix to the described pel of expression
Summit convert the first apex coordinate of intermediate result and carry out coordinate transform processing again, obtain representing that the summit of described pel becomes
Change the second apex coordinate of ultimate result, the pel that described second apex coordinate represents represents with respect to described first apex coordinate
Pel there is the effect of rotation.
In conjunction with the first implementation of 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, including:Receive post-processing information, described post processing letter
Breath includes zooming parameter;Scaled matrix is determined according to the zooming parameter that described post-processing information includes, described scaled matrix table
Show described pretreatment information;Described based on described pretreatment information, the summit of described pel conversion intermediate result is sat again
Mark conversion process, the summit obtaining described pel converts ultimate result, including:Based on described scaled matrix to the described pel of expression
Summit convert the first apex coordinate of intermediate result and carry out coordinate transform processing again, obtain representing that the summit of described pel becomes
Change the 3rd apex coordinate of ultimate result, the pel that described 3rd apex coordinate represents represents with respect to described first apex coordinate
Pel there is the effect of scaling.
In conjunction with the first implementation of 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, including:Receive post-processing information, described post processing letter
Breath includes rotation parameter and zooming parameter;
Spin matrix is determined according to the rotation parameter that described post-processing information includes;Wrap according in described post-processing information
The zooming parameter including determines scaled matrix;Described spin matrix is multiplied with described scaled matrix and obtains preconditioning matrix, described
Preconditioning matrix represents described pretreatment information;Knot in the middle of the described summit conversion based on described pretreatment information to described pel
Fruit carries out coordinate transform processing again, and the summit obtaining described pel converts ultimate result, including:Based on described preconditioning matrix
The first apex coordinate converting intermediate result to the summit representing described pel carries out coordinate transform processing again, obtains representing institute
The summit stating pel converts the 4th apex coordinate of ultimate result, and the pel that described 4th apex coordinate represents is with respect to described the
The pel that one apex coordinate represents has rotation and the effect of scaling.
In conjunction with the second implementation of the third aspect, under the 5th kind of implementation, in described reception post-processing information,
After described post-processing information includes rotation parameter, methods described also includes:The anglec of rotation representing in described rotation parameter is
When 90 or 270 degree, based on described rotation parameter, the wide property parameters of described figure layer to be drawn and high property parameters are carried out
Adjustment is so that the wide attribute after adjustment and high attribute are matched with the indication range of described figure layer to be drawn;It is based on described
The first apex coordinate that described spin matrix converts intermediate result to the summit representing described pel is carried out at coordinate transform again
Reason, after obtaining representing that the summit of described pel converts the second apex coordinate of ultimate result, also includes:According to the width after adjustment
Attribute and high attribute, the second apex coordinate converting ultimate result to the summit representing described pel carries out cutting, obtains cutting
The second apex coordinate afterwards;The described summit to described pel converts ultimate result and carries out rasterization process, obtains described pel
Rasterization process result, including:Rasterization process is carried out to the second apex coordinate after described cutting, obtains described pel
Rasterization process result.
In conjunction with the third implementation of the third aspect, under the 6th kind of implementation, in described reception post-processing information,
After described post-processing information includes zooming parameter, methods described also includes:Based on described zooming parameter to described to be drawn
The wide property parameters of figure layer and high property parameters be adjusted so that wide attribute after adjusting and high attribute with described to be drawn
The indication range of figure layer matches;Described, intermediate result is converted to the summit representing described pel based on described scaled matrix
First apex coordinate carries out coordinate transform processing again, obtains representing that the summit of described pel converts the 3rd summit of ultimate result
After coordinate, also include:According to the wide attribute after adjustment and high attribute, ultimate result is converted to the summit representing described pel
3rd apex coordinate carries out cutting, obtains the 3rd apex coordinate after cutting;The described summit to described pel converts ultimate knot
Fruit carries out rasterization process, obtains the rasterization process result of described pel, including:To the 3rd apex coordinate after described cutting
Carry out rasterization process, obtain the rasterization process result of described pel.
In conjunction with the 4th kind of implementation of the third aspect, under the 7th kind of implementation, in described reception post-processing information,
After described post-processing information includes rotation parameter and zooming parameter, methods described also includes:Based on described zooming parameter and institute
State rotation parameter and the described wide property parameters wait the figure layer drawn and high property parameters are adjusted with the wide genus so that after adjusting
Property and high attribute are matched with the indication range of described figure layer to be drawn;Described based on described preconditioning matrix to represent institute
The first apex coordinate stating the summit conversion intermediate result of pel carries out coordinate transform processing again, obtains representing described pel
After summit converts the 4th apex coordinate of ultimate result, also include:According to the wide attribute after adjustment and high attribute, to expression institute
The 4th apex coordinate stating the ultimate result of summit conversion of pel carries out cutting, obtains the 4th apex coordinate after cutting;Described
Rasterization process is carried out to the summit ultimate result of conversion of described pel, obtains the rasterization process result of described pel, including:
Rasterization process is carried out to the 4th apex coordinate after described cutting, obtains the rasterization process result of described pel.
Fourth aspect, the embodiment of the present invention also provides a kind of terminal unit, and this terminal unit includes display controller, display
Screen assembly and as the third aspect or the third aspect the first implementation to the third aspect the 7th kind of implementation
In drawing engine described in any one implementation, wherein:Described display controller is used for the institute obtaining described drawing engine
State figure layer output display to be drawn to described display screen assembly.
In conjunction with fourth aspect, under the first implementation, when the described number wait the figure layer drawn is two or more,
Described display controller is synthesized specifically for the plural described figure layer to be drawn obtaining described drawing engine
Generate target image and by described target image output display to described display screen assembly.
In conjunction with fourth aspect, under second implementation, this terminal unit also includes synthesizer, wherein:Treat when described
When the number of the figure layer drawn is two or more, described synthesizer is plural described for obtain described drawing engine
Figure layer to be drawn carries out being synthetically generated target image;Described display controller is specifically for by described target image output display
To on described display screen assembly.
Understand, figure layer method for drafting provided in an embodiment of the present invention, drawing engine and terminal unit, receiving drawing for order
Afterwards, it is 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 to the summit of the corresponding pel of primitive information comprising in described drawing for order, and obtains described pel
Summit conversion intermediate result;It is then based on the top to described pel for the pretreatment information determining according to the post-processing information receiving
Point transformation intermediate result carries out coordinate transform processing again, and the summit obtaining described pel converts ultimate result;Then again to institute
The summit ultimate result of conversion stating pel carries out rasterization process and fragment shading process, finally gives figure layer to be drawn.
Using the technical scheme described in the embodiment of the present invention, it is after summit converts, based on the top to described pel for the pretreatment information
Point transformation intermediate result carries out coordinate transform processing again, the summit conversion of the described pel due to obtaining after the conversion of summit
The data volume that intermediate result comprises is fewer, so it is smaller to carry out the cost of process during coordinate transform again to it.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be in embodiment or description of the prior art
The accompanying drawing of required use be briefly described it should be apparent that, drawings in the following description be only the present invention some are real
Apply example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these accompanying drawings
Obtain other accompanying drawings.
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 draws flow chart;
Fig. 1 c is that figure layer provided in an embodiment of the present invention draws flow chart;
Fig. 2 is the logical construction schematic diagram of existing terminal unit
Fig. 3 a is a kind of method flow schematic diagram of figure layer method for drafting provided in an embodiment of the present invention;
Fig. 3 b is the method flow schematic diagram of another kind figure layer method for drafting provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of drawing engine provided in an embodiment of the present invention;
Fig. 5 is a kind of method flow schematic diagram of display packing provided in an embodiment of the present invention;
Fig. 6 a is a kind of structured flowchart of terminal unit provided in an embodiment of the present invention;
Fig. 6 b is a kind of structured flowchart of terminal unit provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another kind terminal unit provided in an embodiment of the present invention.
Specific 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 carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
Embodiment one
As shown in Figure 1a, it is based on the figure layer rendering pipeline figure under OpenGL hardware standard, understand refering to this accompanying drawing
Drawing figure layer under OpenGL hardware standard at least needs to experience summit conversion, rasterisation and segment three processes of coloring, specifically
, first summit conversion is carried out based on vertex data by vertex shader, and the geometry obtaining set of vertices is synthesized pel;Then
These pels are carried out with rasterization process and generates a series of interpolation texture coordinate and apex coordinate;Segment is subsequently utilized to colour
Device renders described texture coordinate and the pixel of apex coordinate correspondence position, and all pixels point forming figure layer to be drawn is existed
It is filled with figure layer to be drawn described in just obtaining in the indication range of described figure layer to be drawn.
Accompanying drawing 1b is that in prior art, the figure layer based on OpenGL hardware standard draws flow chart, is understood such as based on this accompanying drawing
Fruit needs figure layer is done rotation processing, and the scheme that prior art adopts is after figure layer to be drawn described in completing, then
Corresponding rotation processing is done to obtain rotated figure layer to this figure layer based on rotation demand.
Accompanying drawing 1c is that figure layer provided in an embodiment of the present invention draws flow chart, understands in the embodiment of the present invention refering to this accompanying drawing
If necessary to rotation processing is done to figure layer in the figure layer method for drafting providing, before this rotation is rasterisation after the conversion of summit
Carry out, the conversion of described summit is that the figure layer rendering pipeline in figure vertex shader shown in accompanying drawing 1a is carried out based on vertex data
Summit conversion.Specifically, figure layer is drawn using method provided in an embodiment of the present invention and need this figure layer is carried out at rotation
Reason, carry out the summit conversion described in OpenGL hardware standard first, obtain the summit conversion intermediate result shown in Fig. 1 c, so
It is based on rotation demand afterwards again and obtain the ultimate result of summit conversion to carrying out coordinate transform processing again, then hard according still further to OpenGL
The substandard rasterisation of part and segment coloring flow process opposite vertexes convert ultimate result and carry out rasterization process and segment coloring treatment
To obtain rotated figure layer.
Accompanying drawing 1b and accompanying drawing 1c taking need figure layer is rotated as a example illustrates difference with the prior art of the present invention, existing skill
In art, the rotation process based on rotation demand is to carry out for described figure layer to be drawn after figure layer is completed, the present invention
In based on rotation demand rotation process summit conversion after the completion of rasterisation start before carry out, the figure layer bag completed
Contain substantial amounts of pixel, described figure layer to be drawn is carried out with rotation processing needs data volume to be processed than larger;Summit becomes
The only a small amount summit alternatively obtaining afterwards, described summit is carried out with coordinate transform processing needs data volume to be processed fewer,
So the process cost paid is smaller.
Embodiment two
Refering to accompanying drawing 3a, it is a kind of method flow diagram of figure layer method for drafting provided in an embodiment of the present invention, this figure layer is painted
Method processed can apply in computer system, and this computer system may be located on a physical host it is also possible to distribution position
On multiple stage physical host.Specifically, this computer system may be located at one or more computer, portable computer, hand-held
Equipment(Such as mobile phone, PAD etc.), in the terminal of type such as server.
Introduce the logical structure of the calculate node of figure layer method for drafting application provided in an embodiment of the present invention taking Fig. 2 as a example.
This calculate node can be terminal unit, and this terminal unit is specifically as follows a smart mobile phone.As shown in Fig. 2 this terminal unit
Hardware layer include CPU, GPU etc., certainly can also include memorizer, input-output apparatus, internal memory, Memory Controller Hub, network
Interface etc., input equipment may include keyboard, mouse, touch screen etc., and outut device may include display device such as LCD, CRT, holography
Imaging(Holographic), projection(Projector)Deng.It is to drive layer on hardware layer, drive including central processing unit,
Image processor drives, display controller drives etc..Driving above layer is core library layer, and core library is the core of operating system
Point, including input/output service, kernel service, Graphics Device Interface and the graphical services realizing CPU, GPU graphics process
(Graphics Engine)Deng.Graphical services may include 2D engine, 3D engine, synthesizer(Composition), frame buffer zone
(Frame Buffer), OpenGL etc..In addition, this terminal also includes ccf layer and application layer.Ccf layer may include figure
Service(Graphic Service), system service(System service), web service(Web Service)With user's clothes
Business(Customer Service)Deng;In graphical services, it may include such as widget(Widget), painting canvas(Canvas), view
(Views), Render Script etc..Application layer may include desktop(launcher), media player(Media Player)、
Browser(Browser)Deng.
As shown in Figure 3 a, graphic processing method provided in an embodiment of the present invention includes:
S301, reception drawing for order, comprise primitive information, summit information converting and segment coloring in described drawing for order
Information;
Specifically, drawing for order is passed to ccf layer by application program(Framework)Display system control centre
(Surface Flinger), Surface Flinger according to this drawing for order to system application draw figure layer painting canvas, wherein
The wide high parameter of the figure layer to be drawn that the size of this painting canvas comprises according to described drawing for order determines;System is based on Surface
Figure layer Memory Allocation unit is called in the application of Flinger(Gralloc)Distribute the painting canvas for drawing figure layer for it;Should simultaneously
What Surface Flinger was obtained that described drawing for order passes to core library layer renders driving(Rendering
Driver), it is used for making Rendering Driver order about drawing engine based on described drawing for order drafting figure layer.Need explanation
It is that drawing engine described here refers to the drawing engine based on graphic process unit GPU, draw and draw including 2D drawing engine, 3D
Hold up.
It should be noted that containing primitive information, summit information converting and fragment shading letter in described drawing for order
Breath.Wherein, pel is the most basic material that graphics software is used for operating and organizing picture, and a width picture is made up of pel, figure
Unit is one group of simplest, 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, input through keyboard, click etc.
Mode inputs, and the embodiment of the present invention to this and is not construed as limiting.
S302, reception post-processing information, determine pretreatment information according to described post-processing information, and described post-processing information is used
Do coordinate transform processing in the figure layer that drafting is treated in expression;
Described post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing, described post-processing information includes
Rotation parameter, zooming parameter or both combinations, described post-processing information can also include display layout(Source Crop)
And figure layer scope(Display Frame)Deng wherein, Source Crop represents which subregion of collection Buffer is gone to carry out
Synthesis, Display Frame represents on this Buffer which region on screen to be synthesized, certainly, described post processing
Can be used to indicate that in information that the figure layer treating drafting does other coordinate transform processing, being limited property does not specify herein.
Described pretreatment information is used for representing that the summit to pel converts the matrix that intermediate result carries out coordinate transform again,
Described pretreatment information includes spin matrix, scaled matrix or both combinations, and described pretreatment information can also include it
He is used for the summit to pel and converts the matrix that intermediate result carries out coordinate transform again, and being limited property does not specify herein.
It should be noted that described post-processing information refers to render based on the figure layer of OpenGL hardware standard in prior art
The information that the figure layer completed is processed is represented, described post-processing information includes the figure layer completed is entered under pattern
Row rotation and/or scaling and other be related to carry out the information of coordinate transform processing, will not enumerate herein.
Specifically, described determine that pretreatment information includes but is not limited to scenario described below according to described post-processing information:Rear
The rotation parameter comprising in processing information(Transform Hint)When being not 0, determine the rotation corresponding to described rotation parameter
Matrix, described pretreatment information is this spin matrix;When comprising zooming parameter in post-processing information and being not 0, determine and correspond to
In the scaled matrix of described zooming parameter, described pretreatment information is this scaled matrix, it should be noted that described scaling ginseng
Number includes horizontal scaling parameter and vertical scaling parameters;The rotation parameter comprising in post-processing information be not 0 and its comprise contract
When putting parameter and being also not 0, corresponding spin matrix is determined according to described rotation parameter, it is right to determine according to described zooming parameter
Then described spin matrix is multiplied by described scaled matrix and obtains preconditioning matrix by scaled matrix again that answer, then described pre- place
Reason information is this preconditioning matrix, and equally, described zooming parameter includes horizontal scaling parameter and vertical scaling parameters.It is worth note
Meaning, according to described post-processing information obtain it could also be possible that summit transformation directive collection or other forms pretreatment letter
Breath, is not limited to above-mentioned matrix form.
It should be noted that described reception post-processing information and according to described post-processing information determine pretreatment information be by
Surface Flinger obtains post-processing information and according to described post processing by detecting drawing environment after receiving drawing for order
Information determines described pretreatment information.
S303, based on the summit information converting in described drawing for order, the summit of the corresponding pel of described primitive information is entered
Row coordinate transform processing, obtains the summit conversion intermediate result of described pel;
Specifically, described based on the summit information converting in described drawing for order to the corresponding pel of described primitive information
Summit carries out coordinate transform processing, including:First summit conversion is determined based on the summit information converting in described drawing for order
Matrix, is then based on described first summit transformation matrix and the initial vertax coordinate of the corresponding pel of described primitive information is sat
Mark conversion process, obtains representing that the summit of described pel converts the first apex coordinate of intermediate result.
S304, based on described pretreatment information, the summit of described pel conversion intermediate result is carried out at coordinate transform again
Reason, the summit obtaining described pel converts ultimate result;
It should be noted that described pretreatment information can be spin matrix, scaled matrix or preconditioning matrix,
Be likely to be other for instruction coordinate carried out with the matrix of conversion process.
Refering to accompanying drawing 3b, as one embodiment of the present of invention, when described pretreatment information is to be believed according to described post processing
During the spin matrix that the rotation parameter comprising in breath determines, the described summit conversion based on described pretreatment information to described pel
Intermediate result carries out coordinate transform processing again, and the summit obtaining described pel converts ultimate result, refers to based on described rotation
The first apex coordinate that matrix converts intermediate result to the summit representing described pel carries out coordinate transform processing again, obtains table
Show that the summit of described pel converts the second apex coordinate of ultimate result, the pel that described second apex coordinate represents is with respect to institute
State the effect that the pel that the first apex coordinate represents has rotation.It should be noted that comprise in processing information in the rear
When the anglec of rotation that rotation parameter represents is 90 or 270 degree, figure layer method for drafting provided in an embodiment of the present invention also includes root
According to described rotation parameter, the wide property parameters of described figure layer to be drawn and high property parameters are adjusted, so that after adjustment
Described in the wide attribute of figure layer to be drawn and high attribute match with the indication range of described figure layer to be drawn.
As an alternative embodiment of the invention, when described pretreatment information comprises according in described post-processing information
During the scaled matrix that zooming parameter determines, described based on described pretreatment information to the summit of described pel conversion intermediate result again
The secondary ultimate result of summit conversion carrying out coordinate transform processing, obtaining described pel, refers to based on described scaled matrix to expression
The first apex coordinate that the summit of described pel converts intermediate result carries out coordinate transform processing again, obtains representing described pel
Summit convert ultimate result the 3rd apex coordinate, the pel that described 3rd apex coordinate represents is with respect to described first summit
The pel of coordinate representation has the effect of scaling.Wherein, the zooming parameter comprising in described post-processing information includes vertically scale
Parameter and horizontal scaling parameter, the described scaled matrix being determined according to the zooming parameter comprising in described post-processing information is actual
On refer to according to the vertical scaling parameters comprising in described post-processing information and horizontal scaling parameter determination scaled matrix.Need
Illustrate, figure layer method for drafting provided in an embodiment of the present invention is also included according to the scaling ginseng comprising in described post-processing information
Several wide property parameters to described figure layer to be drawn and high property parameters are adjusted, so that waiting to draw described in after adjustment
The wide attribute of figure layer and high attribute match with the indication range of described figure layer to be drawn.
As yet another embodiment of the present invention, when described post-processing information includes rotation parameter and zooming parameter, institute
Stating pretreatment information is by the spin matrix that will be determined according to described rotation parameter and the contracting being determined according to described zooming parameter
Put the preconditioning matrix that matrix multiple obtains.The described summit conversion intermediate result based on described pretreatment information to described pel
Carry out coordinate transform processing again, the summit obtaining described pel converts ultimate result, refers to based on described preconditioning matrix pair
Represent that the first apex coordinate of the summit conversion intermediate result of described pel carries out pretreatment, obtain representing the summit of described pel
Convert the 4th apex coordinate of ultimate result, the pel that described 4th apex coordinate represents is with respect to described first apex coordinate table
The pel showing has rotation and the effect of scaling.Wherein, described zooming parameter includes vertical scaling parameters and horizontal scaling parameter,
The described scaled matrix according to the determination of described zooming parameter refers to according to described vertical scaling parameters and horizontal scaling parameter determination
Scaled matrix.It should be noted that figure layer method for drafting provided in an embodiment of the present invention also includes being believed according to described post processing
The described zooming parameter comprising in breath and described rotation parameter are joined to the wide property parameters of described figure layer to be drawn and high attribute
Number is adjusted, so that the wide attribute after adjustment and high attribute are matched with the indication range of described figure layer to be drawn.
It should be noted that described pretreatment information includes but is not limited to above-mentioned rotation and/or scaled matrix, also include
Other are used for figure layer is carried out with the parameter of special effect processing, be used for instruction figure layer is carried out being related to coordinate transform in every prior art
The post-processing information of back-end processing can be converted into described pretreatment information, the present invention does not limit to this.
S305, the summit to described pel convert ultimate result and carry out rasterization process, obtain the rasterisation of described pel
Result;
S306, piece is carried out to the rasterization process result of described pel based on the segment shading information in described drawing for order
Disconnected coloring treatment, obtains the segment coloring treatment result of described pel;
S307, carried out in the indication range of described figure layer to be drawn according to the segment coloring treatment result of described pel
Pixel filling obtain described in figure layer to be drawn.
Specifically, rasterisation is the process that a geometric graphic element is transformed into a two dimensional image.Segment coloring treatment
To the data liking after rasterisation, generate after the coloring treatment of fragment shader is pixel, and this pixel is figure
The ingredient of layer, all comprises multiple pixels in each figure layer.
It should be noted that the described segment coloring treatment result according to described pel is in the display model of figure layer to be drawn
Carry out in enclosing pixel filling obtain described in figure layer to be drawn refer to the pixel obtaining through segment coloring treatment described
It is filled with the painting canvas of figure layer to be drawn with figure layer to be drawn described in obtaining.
It should be noted that the object of the figure layer method for drafting application described in the embodiment of the present invention is not limited to figure layer is carried out
Rotation and/or scaling are processed, and can also be applied to that in prior art, other pertain only to carry out the feelings of the back-end processing of coordinate transform
Shape.Figure layer method for drafting provided in an embodiment of the present invention is applied in the occasion of game application, the slip of game can be made more
Plus smooth, and the specially good effect of image can be increased.
The embodiment of the present invention provides a kind of figure layer method for drafting, after summit conversion completes, according to pretreatment information pair
The summit obtaining after the conversion of summit carries out pretreatment, due to carrying out the data volume ratio of described pretreatment process on summit after converting
Less, it is possible to reduce figure layer is related to the cost of the special effect processing of coordinate transform.
Embodiment three
Refer to accompanying drawing 4, be a kind of structural representation of drawing engine 40 provided in an embodiment of the present invention, this drawing engine
40 can apply on the terminal unit shown in Fig. 2.Specifically, described drawing engine 40 includes receiving unit 41, pretreatment connects
Mouth unit 42, vertex shader 43, rasterizer 44, fragment shader 45 and figure layer obtaining unit 46.
Described receiving unit 41 is used for receiving drawing for order, comprises primitive information, summit conversion letter in described drawing for order
Breath and segment shading information;It is additionally operable to receive post-processing information, described post-processing information is used for representing the figure layer treating drafting
Do coordinate transform processing.
Wherein, pel is the most basic material that graphics software is used for operating and organizing picture, and a width picture is by pel group
Become, pel is one group of simplest, the most general set figure or character, such as point, line segment, triangle, polygon etc..
Described post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing, described post-processing information includes
Rotation parameter, zooming parameter or both combinations, described post-processing information can also include display layout(Source Crop)
And figure layer scope(Display Frame)Deng wherein, Source Crop represents which subregion of collection Buffer is gone to carry out
Synthesis, Display Frame represents on this Buffer which region on screen to be synthesized, certainly, described post processing
Can be used to indicate that in information that the figure layer treating drafting does other coordinate transform processing, being limited property does not specify herein.
Described pretreatment information is used for representing that the summit to pel converts the matrix that intermediate result carries out coordinate transform again,
Described pretreatment information includes spin matrix, scaled matrix or both combinations, and described pretreatment information can also include it
He is used for the summit to pel and converts the matrix that intermediate result carries out coordinate transform again, and being limited property does not specify herein.
It should be noted that described drawing for order can be user by touch screen touch, input through keyboard, click etc.
Mode inputs, and the embodiment of the present invention to this and is not construed as limiting.
Described pretreatment interface unit 42 is used for determining pretreatment information according to described post-processing information.
As one embodiment of the present of invention, when comprising rotation parameter in described post-processing information, described pretreatment connects
Specifically for determining corresponding spin matrix according to described rotation parameter, described spin matrix is used for representing institute mouth unit 42
State pretreatment information;It should be noted that when the rotation parameter comprising in processing information in the rear is 90 or 270 degree, then
Described pretreatment interface unit 42 is additionally operable to based on described rotation parameter to the wide property parameters of described figure layer to be drawn and height
Property parameters are adjusted, so that the indication range phase of wide attribute after adjustment and high attribute and described figure layer to be drawn
Join.
As an alternative embodiment of the invention, when comprising zooming parameter in described post-processing information, described pretreatment
Specifically for determining corresponding scaled matrix according to described zooming parameter, described scaled matrix is used for representing institute interface unit 42
State pretreatment information;It should be noted that described pretreatment interface unit 42 is additionally operable to comprise based in described post-processing information
Zooming parameter the wide property parameters of described figure layer to be drawn and high property parameters are adjusted so that adjustment after width
Attribute and high attribute are matched with the indication range of described figure layer to be drawn.
As yet another embodiment of the present invention, also comprise to scale when not only comprising rotation parameter in described post-processing information
During parameter, described pretreatment interface unit 42 specifically for corresponding spin matrix is determined according to described rotation parameter, according to
Described zooming parameter determines corresponding scaled matrix, then determines according to the product of described spin matrix and described scaled matrix
Preconditioning matrix, described preconditioning matrix is used for representing described pretreatment information;It should be noted that described pretreatment interface list
Unit 42 is additionally operable to based on the described zooming parameter comprising in described post-processing information and described rotation parameter to described to be drawn
The wide property parameters of figure layer and high property parameters are adjusted, so that the wide attribute after adjustment and high attribute are waited to draw with described
The indication range of figure layer match.
It should be noted that relating to indicate coordinate is entered the ginseng of fractal transform when comprising other in described post-processing information
During number, described pretreatment interface unit 42 determines pretreatment corresponding thereto also particularly useful for according to described post-processing information
Information.
Described vertex shader 43 is used for based on the summit information converting in described drawing for order to described primitive information pair
The summit of the pel answered carries out coordinate transform processing, obtains the summit conversion intermediate result of described pel;And be additionally operable to be based on
Described pretreatment information carries out coordinate transform processing again to the summit conversion intermediate result of described pel, obtains described pel
Summit converts ultimate result.
Specifically, described based on the summit information converting in described drawing for order to described primitive information corresponding pel
Summit carry out coordinate transform processing, obtain described pel summit convert intermediate result operation on, described vertex shader
43 specifically for determining summit transformation matrix based on the summit information converting in described drawing for order;Square is converted based on described summit
Battle array carries out coordinate transform processing to the initial vertax coordinate on the summit representing described pel, obtains representing that the summit of described pel becomes
Change the first apex coordinate of intermediate result.
It should be noted that described pretreatment information is embodied in a matrix, such as spin matrix, scaled matrix or
Person is preconditioning matrix etc., and the apex coordinate for the pel to composition figure layer for the instruction carries out conversion process.
As one embodiment of the present of invention, when described pretreatment information is according to the rotation comprising in described post-processing information
Turn parameter determination spin matrix when, described vertex shader 43 specifically for based on described spin matrix to represent described pel
Summit convert the first apex coordinate of intermediate result and carry out coordinate transform processing again, obtain representing that the summit of described pel becomes
Change the second apex coordinate of ultimate result, the pel that wherein said second apex coordinate represents is with respect to described first apex coordinate
The pel representing has the effect of rotation.
As an alternative embodiment of the invention, when described pretreatment information comprises according in described post-processing information
Zooming parameter determine scaled matrix when, described vertex shader 43 specifically for based on described scaled matrix to represent described figure
The first apex coordinate that the summit of unit converts intermediate result carries out coordinate transform processing again, obtains representing the summit of described pel
Convert the 3rd apex coordinate of ultimate result, the pel that described 3rd apex coordinate represents is with respect to described first apex coordinate table
The pel showing has the effect of scaling.
As yet another embodiment of the present invention, when described post-processing information includes rotation parameter and zooming parameter, and
Described zooming parameter includes vertical scaling parameters and horizontal scaling parameter, and described pretreatment information is true according to described rotation parameter
Fixed spin matrix is pre- with what the product according to described vertical scaling parameters and the scaled matrix of horizontal scaling parameter determination determined
Processing array.During described vertex shader 43 is specifically for being converted to the summit representing described pel based on described preconditioning matrix
Between the first apex coordinate of result carry out coordinate transform processing again, obtain representing that the summit of described pel converts ultimate result
4th apex coordinate, the pel that the pel that described 4th apex coordinate represents represents with respect to described first apex coordinate has rotation
The effect turning and scaling.
It should be noted that the parameter comprising in described post-processing information includes but is not limited to above-mentioned rotation and/or contracting
Put parameter, also include the parameter that other only relate to coordinate transform processing, then corresponding be, the function of described vertex shader with
The difference of the parameter comprising in described post-processing information and different, namely described vertex shader include but is not limited to above-mentioned work(
Energy.
Described rasterizer 44 is used for carrying out rasterization process to the summit ultimate result of conversion of described pel, obtains described
The rasterization process result of pel;
Described fragment shader 45 is used for based on the segment shading information in described drawing for order the grating to described pel
Change result and carry out segment coloring treatment, obtain the segment coloring treatment result of described pel;
Described figure layer obtaining unit 46 to be drawn is used for waiting to draw according to the segment coloring treatment result of described pel
The indication range of figure layer in carry out pixel filling obtain described in figure layer to be drawn.
Specifically, described figure layer obtaining unit 46 to be drawn specifically for by the buffer completing by Surface
Flinger passes to synthesizer, calls enhancing display controller EDC to be synthetically generated described Buffer by described synthesizer
Described figure layer to be drawn.
The embodiment of the present invention provides a kind of drawing engine, during using this drawing engine draws figure layer, is to have converted on summit
Cheng Hou, carries out pretreatment according to pretreatment information opposite vertexes transformation results, due to summit conversion stages be directed to simply less
Summit, so pretreatment is carried out to figure layer using drawing engine provided in an embodiment of the present invention because process data volume ratio
Less, so it is smaller to process cost;Further, drawing engine provided in an embodiment of the present invention is additionally included in determination pretreatment
After information, the high attribute of width of figure layer is adjusted so that described treat according to the corresponding rotation of described pretreatment information and/or zooming parameter
The wide high of the figure layer drawn is matched with its indication range so that follow-up rasterisation and segment coloring are directed to figure layer
Summit result of variations is operated, and further reduces process cost.
Example IV
Refer to accompanying drawing 5, be a kind of method flow diagram of display packing provided in an embodiment of the present invention, this figure layer drafting side
Method can apply in computer system, and this computer system may be located on a physical host it is also possible to distribution is positioned at many
On platform physical host.Specifically, this computer system may be located at one or more computer, portable computer, handheld device
(Such as mobile phone, PAD etc.), in the terminal of type such as server, the logical structure of wherein this computer system can refer to accompanying drawing
2.
Specifically, as shown in figure 5, display packing provided in an embodiment of the present invention includes following flow processs:
S501, reception drawing for order, comprise primitive information, summit information converting and segment coloring in described drawing for order
Information;
Specifically, primitive information, summit information converting and fragment shading information are contained in described drawing for order.Its
In, pel is the most basic material that graphics software is used for operating and organizing picture, and a width picture is made up of pel, and pel is one
Organize simplest, 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, input through keyboard, click etc.
Mode inputs, and the embodiment of the present invention to this and is not construed as limiting.
S502, reception post-processing information, determine pretreatment information according to described post-processing information, and described post-processing information is used
Do coordinate transform processing in the figure layer that drafting is treated in expression;
Described post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing, described post-processing information includes
Rotation parameter, zooming parameter or both combinations, described post-processing information can also include display layout(Source Crop)
And figure layer scope(Display Frame)Deng wherein, Source Crop represents which subregion of collection Buffer is gone to carry out
Synthesis, Display Frame represents on this Buffer which region on screen to be synthesized, certainly, described post processing
Can be used to indicate that in information that the figure layer treating drafting does other coordinate transform processing, being limited property does not specify herein.
Described pretreatment information is used for representing that the summit to pel converts the matrix that intermediate result carries out coordinate transform again,
Described pretreatment information includes spin matrix, scaled matrix or both combinations, and described pretreatment information can also include it
He is used for the summit to pel and converts the matrix that intermediate result carries out coordinate transform again, and being limited property does not specify herein.
It should be noted that described post-processing information refers to render based on the figure layer of OpenGL hardware standard in prior art
The information being processed for the figure layer being designated as completing under pattern, described post-processing information is included to the figure completed
Layer is rotated and/or is scaled and other are related to carry out the information of coordinate transform processing, will not enumerate herein.
Specifically, described determine that pretreatment information includes but is not limited to scenario described below according to described post-processing information:
As one embodiment of the present of invention, the rotation parameter comprising in post-processing information(Transform Hint)No
During for 0, determine the spin matrix corresponding to described rotation parameter, described pretreatment information is this spin matrix;Need explanation
, when to comprise the anglec of rotation that rotation parameter represents in post-processing information be 90 or 270 degree, described in the embodiment of the present invention
Technical scheme also include based on described zooming parameter to the wide property parameters of described figure layer to be drawn and high property parameters
It is adjusted, so that the indication range phase of the high attribute of width of figure layer to be drawn described in after adjustment and described figure layer to be drawn
Coupling.
As an alternative embodiment of the invention, when comprising zooming parameter in post-processing information and being not 0, determine corresponding to
The scaled matrix of described zooming parameter, described pretreatment information is this scaled matrix, it should be noted that described zooming parameter
Including horizontal scaling parameter and vertical scaling parameters;It should be noted that when comprising zooming parameter in post-processing information, this
Technical scheme described in bright embodiment also include based on described zooming parameter to the wide property parameters of described figure layer to be drawn with
And high property parameters are adjusted, so that the high attribute of width of figure layer to be drawn described in after adjustment and described figure layer to be drawn
Indication range match.
As yet another embodiment of the present invention, the rotation parameter comprising in post-processing information be not 0 and its comprise contract
When putting parameter and being also not 0, corresponding spin matrix is determined according to described rotation parameter, it is right to determine according to described zooming parameter
Then described spin matrix is multiplied by described scaled matrix and obtains preconditioning matrix by scaled matrix again that answer, then described pre- place
Reason information is this preconditioning matrix, and equally, described zooming parameter includes horizontal scaling parameter and vertical scaling parameters.Need
Bright, when not only comprising rotation parameter in post-processing information and also comprising zooming parameter, the technology described in the embodiment of the present invention
Scheme is also included based on described rotation parameter and described zooming parameter to the wide property parameters of described figure layer to be drawn and height
Property parameters are adjusted, so that the high attribute of width of figure layer to be drawn described in after adjustment and described figure layer to be drawn is aobvious
Demonstration is enclosed and is matched.
It should be noted that described pretreatment information includes but is not limited to above-mentioned rotation and/or scaled matrix, also include
Other are used for figure layer is carried out with the parameter of special effect processing, be used for instruction figure layer is carried out being related to coordinate transform in every prior art
The post-processing information of back-end processing can be converted into described pretreatment information, the present invention does not limit to this.
S503, based on the summit information converting in described drawing for order, the summit of the corresponding pel of described primitive information is entered
Row coordinate transform processing, obtains the summit conversion intermediate result of described pel;
Specifically, described based on the summit information converting in described drawing for order to the corresponding pel of described primitive information
Summit carries out coordinate transform processing, including:First summit conversion is determined based on the summit information converting in described drawing for order
Matrix, is then based on described first summit transformation matrix and the initial vertax coordinate of the corresponding pel of described primitive information is sat
Mark conversion process, obtains representing that the summit of described pel converts the first apex coordinate of intermediate result.
S504, based on described pretreatment information, the summit of described pel conversion intermediate result is carried out at coordinate transform again
Reason, the summit obtaining described pel converts ultimate result;
It should be noted that described pretreatment information includes but is not limited to spin matrix, scaled matrix or pre- place
Reason matrix is it is also possible to be that other are used for indicating the matrix that coordinate is carried out with conversion process.
As one embodiment of the present of invention, when described pretreatment information is according to the rotation comprising in described post-processing information
Turn parameter determination spin matrix when, described based on described pretreatment information to the summit of described pel conversion intermediate result again
Carry out coordinate transform processing, the summit obtaining described pel converts ultimate result, refer to based on described spin matrix to expression institute
The first apex coordinate stating the summit conversion intermediate result of pel carries out coordinate transform processing again, obtains representing described pel
Summit converts the second apex coordinate of ultimate result, and the pel that described second apex coordinate represents is sat with respect to described first summit
The pel that mark represents has the effect of rotation.It should be noted that the rotation parameter comprising in processing information in the rear represents
Anglec of rotation when being 90 or 270 degree, figure layer method for drafting provided in an embodiment of the present invention is also included according to described rotation ginseng
Several wide property parameters to described figure layer to be drawn and high property parameters are adjusted, so that waiting to draw described in after adjustment
The wide attribute of figure layer and high attribute match with the indication range of described figure layer to be drawn.
As an alternative embodiment of the invention, when described pretreatment information comprises according in described post-processing information
During the scaled matrix that zooming parameter determines, described based on described pretreatment information to the summit of described pel conversion intermediate result again
The secondary ultimate result of summit conversion carrying out coordinate transform processing, obtaining described pel, refers to based on described scaled matrix to expression
The first apex coordinate that the summit of described pel converts intermediate result carries out coordinate transform processing again, obtains representing described pel
Summit convert ultimate result the 3rd apex coordinate, the pel that described 3rd apex coordinate represents is with respect to described first summit
The pel of coordinate representation has the effect of scaling.Wherein, the zooming parameter comprising in described post-processing information includes vertically scale
Parameter and horizontal scaling parameter, the described scaled matrix being determined according to the zooming parameter comprising in described post-processing information is actual
On refer to according to the vertical scaling parameters comprising in described post-processing information and horizontal scaling parameter determination scaled matrix.Need
Illustrate, figure layer method for drafting provided in an embodiment of the present invention is also included according to the scaling ginseng comprising in described post-processing information
Several wide property parameters to described figure layer to be drawn and high property parameters are adjusted, so that waiting to draw described in after adjustment
The wide attribute of figure layer and high attribute match with the indication range of described figure layer to be drawn.
As yet another embodiment of the present invention, when described post-processing information includes rotation parameter and zooming parameter, and
Described zooming parameter includes vertical scaling parameters and/or horizontal scaling parameter, and described pretreatment information is according to described rotation ginseng
The spin matrix that number determines is true with the product according to described vertical scaling parameters and/or the scaled matrix of horizontal scaling parameter determination
Fixed preconditioning matrix.Described coordinate is carried out again to the summit of described pel conversion intermediate result based on described pretreatment information
Conversion process, the summit obtaining described pel converts ultimate result, refers to based on described preconditioning matrix to the described pel of expression
Summit convert the first apex coordinate of intermediate result and carry out coordinate transform processing again, obtain representing that the summit of described pel becomes
Change the 4th apex coordinate of ultimate result, the pel that described 4th apex coordinate represents represents with respect to described first apex coordinate
Pel have rotation and scaling effect.Wherein, described zooming parameter includes vertical scaling parameters and horizontal scaling parameter, institute
State and referred to according to described vertical scaling parameters and horizontal scaling parameter determination according to the scaled matrix that described zooming parameter determines
Scaled matrix.It should be noted that figure layer method for drafting provided in an embodiment of the present invention is also included according to described post-processing information
In the described zooming parameter that comprises and described rotation parameter to the wide property parameters of described figure layer to be drawn and high property parameters
It is adjusted, so that the wide attribute after adjustment and high attribute are matched with the indication range of described figure layer to be drawn.
It should be noted that described pretreatment information includes but is not limited to above-mentioned rotation and/or scaled matrix, also include
Other are used for figure layer is carried out with the parameter of special effect processing, be used for instruction figure layer is carried out being related to coordinate transform in every prior art
The post-processing information of back-end processing can be converted into described pretreatment information, the present invention does not limit to this.
S505, the summit to described pel convert ultimate result and carry out rasterization process, obtain the rasterisation of described pel
Result;
S506, piece is carried out to the rasterization process result of described pel based on the segment shading information in described drawing for order
Disconnected coloring treatment, obtains the segment coloring treatment result of described pel;
S507, pixel is carried out in the indication range of figure layer to be drawn according to the segment coloring treatment result of described pel
Fill figure layer to be drawn described in obtaining;
Specifically, rasterisation is the process that a geometric graphic element is transformed into a two dimensional image.Segment coloring treatment
To the data liking after rasterisation, generate after the coloring treatment of fragment shader is pixel, and this pixel is figure
The ingredient of layer, all comprises multiple pixels in each figure layer.
It should be noted that the described segment coloring treatment result according to described pel carries out picture in figure layer to be drawn
Element filling obtain described in figure layer to be drawn refer to the pixel obtaining through segment coloring treatment in described figure to be drawn
It is filled with figure layer to be drawn described in obtaining on the painting canvas of layer.
S508, by described figure layer output display to be drawn.
It should be noted that when the described number wait the figure layer drawn is two or more, by described figure to be drawn
Before layer output display, also include plural described figure layer to be drawn being carried out with synthesis process generation target image, so
Afterwards by described target image output display.Wherein, for by plural described figure layer to be drawn carry out synthesis process with
Generate target image can be synthesizer or enhancing display controller;For by described target image output display
Be strengthen display controller.
It should be noted that the object of the display packing application described in the embodiment of the present invention is not limited to figure layer is rotated
And/or scaling is processed, can also be applied to that in prior art, other pertain only to carry out the situation of the back-end processing of coordinate transform.Will
Figure layer method for drafting provided in an embodiment of the present invention is applied in the occasion of game application, and the slip of game can be made more to flow
Freely, and the specially good effect of image can be increased.
Understand, during using display packing provided in an embodiment of the present invention, pretreatment is carried out in summit conversion stages, by
The simply less summit being directed in summit conversion stages, so carried out described using technical scheme provided in an embodiment of the present invention
Pretreatment needs data volume to be processed fewer, and processing speed ratio is very fast, reduces the process of the image special effect being related to coordinate transform
Cost;Furthermore, when the described number wait the figure layer drawn is two or more, before the described two above figure layer of output display
Also needing to it be carried out with synthesis process to generate image, pretreatment having been completed based on described figure layer to be drawn, so entering
Need data volume to be processed smaller during the synthesis of row image, the cost of process can be reduced further, improve display performance.
Embodiment five
Refer to accompanying drawing 6a, a kind of structured flowchart of the terminal unit 600 providing for the present invention, this terminal unit 600 has
Body can for one, portable computer, handheld device(Such as mobile phone, PAD etc.), server etc., and the patrolling of this terminal unit 600
Collecting structure chart can be specific refering to accompanying drawing 2., as shown in Figure 6 a, comprise drawing engine 601, display in described terminal unit 600
Controller 603 and display screen assembly 605;
Wherein, described drawing engine 601 is used for receiving drawing for order, comprises primitive information, summit in described drawing for order
Information converting and segment shading information;Receive post-processing information, pretreatment information is determined according to described post-processing information, described
Post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing;Based on the summit conversion letter in described drawing for order
Breath carries out coordinate transform processing to the summit of the corresponding pel of described primitive information, obtains knot in the middle of the summit conversion of described pel
Really;Coordinate transform processing is carried out again to the summit conversion intermediate result of described pel based on described pretreatment information, obtains institute
The summit stating pel converts ultimate result;Rasterization process is carried out to the summit ultimate result of conversion of described pel, obtains described
The rasterization process result of pel;Based on the segment shading information in described drawing for order, the rasterization process of described pel is tied
Fruit carries out segment coloring treatment, obtains the segment coloring treatment result of described pel;Segment coloring treatment according to described pel
Result carry out in the indication range of figure layer to be drawn pixel filling obtain described in figure layer to be drawn.
Specifically, the described drawing for order that described drawing engine 601 receives can be user by touch screen touch, keyboard
The modes such as input, click input, and the embodiment of the present invention to this and is not construed as limiting.
Described post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing, described post-processing information includes
Rotation parameter, zooming parameter or both combinations, described post-processing information can also include display layout(Source Crop)
And figure layer scope(Display Frame)Deng wherein, Source Crop represents which subregion of collection Buffer is gone to carry out
Synthesis, Display Frame represents on this Buffer which region on screen to be synthesized, certainly, described post processing
Can be used to indicate that in information that the figure layer treating drafting does other coordinate transform processing, being limited property does not specify herein.
Described pretreatment information is used for representing that the summit to pel converts the matrix that intermediate result carries out coordinate transform again,
Described pretreatment information includes spin matrix, scaled matrix or both combinations, and described pretreatment information can also include it
He is used for the summit to pel and converts the matrix that intermediate result carries out coordinate transform again, and being limited property does not specify herein.
As one embodiment of the present of invention, when comprising rotation parameter in described post-processing information, described drawing engine
601 specifically for determining corresponding spin matrix according to described rotation parameter, and described spin matrix is used for representing described pre-
Processing information;It should be noted that when the rotation parameter comprising in processing information in the rear is 90 or 270 degree, then described
Drawing engine 601 is additionally operable to based on described rotation parameter, the wide property parameters of described figure layer to be drawn and high property parameters be entered
Row adjustment, so that the display of the wide attribute of figure layer to be drawn and high attribute and described figure layer to be drawn described in after adjustment
Scope matches.
As an alternative embodiment of the invention, when comprising zooming parameter in described post-processing information, described drawing is drawn
Hold up 601 specifically for corresponding scaled matrix is determined according to described zooming parameter, described scaled matrix is used for representing described pre-
Processing information;It should be noted that described drawing engine 601 is additionally operable to based on the zooming parameter comprising in described post-processing information
The wide property parameters and high property parameters of described figure layer to be drawn are adjusted, so as to be drawn described in after adjustment
The wide attribute of figure layer and high attribute are matched with the indication range of described figure layer to be drawn.
As yet another embodiment of the present invention, also comprise to scale when not only comprising rotation parameter in described post-processing information
During parameter, described drawing engine 601 specifically for corresponding spin matrix is determined according to described rotation parameter, according to described contracting
Put parameter determination and go out corresponding scaled matrix, then determine pretreatment according to the product of described spin matrix and described scaled matrix
Matrix, described preconditioning matrix is used for representing described pretreatment information;It should be noted that described drawing engine 601 is additionally operable to
Based on the described zooming parameter comprising in the described post-processing information and described rotation parameter width genus to described figure layer to be drawn
Property parameter and high property parameters be adjusted so that adjustment after described in the wide attribute of figure layer to be drawn and high attribute and institute
The indication range stating figure layer to be drawn matches.
It should be noted that the described post-processing information that described drawing engine 601 receives refers to be based in prior art
The information being processed for the figure layer being designated as completing under the figure layer render mode of OpenGL hardware standard, described rear place
The process that reason information includes the figure layer completed being rotated and/or being scaled and other are related to carry out coordinate transform is believed
Breath, will not enumerate herein.
Described display controller 603 is used for described figure layer output display to be drawn;
Described display screen assembly 605 be used for showing described in figure layer to be drawn.
Specifically, when the described number wait the figure layer drawn is two or more, described figure layer to be drawn is being exported
Before display, also include, using display controller 603, plural described figure layer to be drawn is carried out with synthesis process generation
Target image is incited somebody to action and described target image output display, and described display screen assembly 605 is specifically for being shown to described target figure
Picture.
It should be noted that as an alternative embodiment of the invention, referring to accompanying drawing 6b, described terminal unit 610 is also
Including synthesizer 613, wherein when the described number wait the figure layer drawn is two or more, described synthesizer 613 is used for two
Individual above described in figure layer to be drawn carry out being synthetically generated target image, then by display controller 614 by described synthesizer
The target image output display of 613 generations, described display screen assembly 615 is specifically for showing described target image.
Certainly described terminal unit 610 also includes drawing engine 611, and work(in terminal unit 610 for the drawing engine 611
Function in terminal unit 600 can be the same with drawing engine 601, so its concrete function exists with reference to drawing engine 601
Function in terminal unit 600, here is omitted.
Understand, figure layer drawn and described in showing when the figure layer drawn using the terminal unit described in the embodiment of the present invention,
First draw figure layer when, pretreatment is carried out in summit conversion stages, due to summit conversion stages be directed to simply less
Summit, so needing data volume to be processed fewer in pretreatment using the terminal unit described in the embodiment of the present invention, place
Reason cost is smaller;Furthermore, when the described number wait the figure layer drawn is two or more, the described two above figure of output display
Also need to before layer it be carried out with synthesis process to generate target image, pre- place has been completed based on described figure layer to be drawn
Reason, so needing data volume to be processed smaller when being synthesized, and then the display performance of lift system to a certain extent.
Embodiment six
Accordingly, the embodiment of the present invention also provides a kind of terminal unit, as shown in fig. 7, this terminal unit can include to
A few processor 701, such as CPU, at least one network interface 704, such as physical network card, or other user interface
703, and memorizer 705, display 706 and at least one communication bus 702.
Wherein, communication bus 702 is used for realizing the connection communication between these assemblies.
Network interface 704 is used for realizing the connection communication between this terminal unit and network, and such as this network interface 704 can
For connecting the equipment such as physical network card and/or physical switches.
Optionally, user interface 703, can include display, keyboard or other pointing devices, for example, mouse, track
Ball(trackball), touch-sensitive plate or touch sensitive display screen etc..
Memorizer 705 potentially includes high random access memory body(RAM, Random Access Memory)It is also possible to
Also include non-labile memorizer(non-volatile memory), for example, at least one disk memory.Optionally, should
Memorizer 705 can also include the storage device that at least one is located remotely from aforementioned processor 701.
In some embodiments, memorizer 705 stores following element, executable module or data structure, or
Their subset of person, or their superset:
Operating system 7051, comprises various system programs, is used for realizing various basic businesses and processes hardware based
Task;
Application module 7052, comprises various application programs, is used for realizing various applied business.
Specifically, described processor 701, for receiving drawing for order, comprises primitive information, summit in described drawing for order
Information converting and segment shading information;Receive post-processing information, pretreatment information is determined according to described post-processing information, described
Post-processing information is used for representing that the figure layer treating drafting does coordinate transform processing;Based on the summit conversion letter in described drawing for order
Breath carries out coordinate transform processing to the summit of the corresponding pel of described primitive information, obtains knot in the middle of the summit conversion of described pel
Really;Coordinate transform processing is carried out again to the summit conversion intermediate result of described pel based on described pretreatment information, obtains institute
The summit stating pel converts ultimate result;Rasterization process is carried out to the summit ultimate result of conversion of described pel, obtains described
The rasterization process result of pel;Based on the segment shading information in described drawing for order, the rasterization process of described pel is tied
Fruit carries out segment coloring treatment, obtains the segment coloring treatment result of described pel;Segment coloring treatment according to described pel
Result carry out in the indication range of figure layer to be drawn pixel filling obtain described in figure layer to be drawn, will be described to be drawn
Figure layer output display.
Specifically, when the described number wait the figure layer drawn is two or more, described processor 701 is additionally operable to two
Figure layer to be drawn described in above carries out synthesis and processes generating target target image and by described target image output display.
As one embodiment of the present of invention, described processor 701 is specifically in the described post-processing information receiving
In when comprising rotation parameter, corresponding spin matrix is determined according to described rotation parameter, described pretreatment information is this rotation
Matrix.Specifically, when the anglec of rotation comprising in the rotation parameter comprising in processing information in the rear is 90 or 270 degree,
Described processor 701 is additionally operable to based on described rotation parameter, the wide property parameters of described figure layer to be drawn and high attribute be joined
Number is adjusted, so that the high attribute of width after adjustment is matched with the indication range of described figure layer to be drawn.Noticeable
It is that described processor 701 converts intermediate result also particularly useful for based on described spin matrix to the summit representing described pel
First apex coordinate carries out coordinate transform processing again, obtains representing that the summit of described pel converts the second summit of ultimate result
Coordinate, the pel that the pel that described second apex coordinate represents represents with respect to described first apex coordinate has the effect of rotation
Really.
As an alternative embodiment of the invention, described processor 701 is specifically for comprising to scale in post-processing information
During parameter, corresponding scaled matrix is determined according to described zooming parameter, described pretreatment information is this scaled matrix, be worth note
Meaning, described zooming parameter includes vertical scaling parameters and/or horizontal scaling parameter, described is determined according to described zooming parameter
Corresponding scaled matrix is according to described vertical scaling parameters and/or the corresponding scaled matrix of horizontal scaling parameter determination.Need
It is noted that when comprising zooming parameter in post-processing information, described processor 701 is additionally operable to based on described zooming parameter pair
The wide property parameters of described figure layer to be drawn and high property parameters are adjusted so that adjustment after the high attribute of width with described
The indication range of figure layer to be drawn matches.It should be noted that when described pretreatment information is to be believed according to described post processing
During the scaled matrix that the zooming parameter that comprises in breath determines, described processor 701 specifically for based on described scaled matrix to table
Show that the first apex coordinate of the summit conversion intermediate result of described pel carries out coordinate transform processing again, obtain representing described figure
The summit of unit converts the 3rd apex coordinate of ultimate result, and the pel that described 3rd apex coordinate represents is with respect to the described first top
The pel that point coordinates represents has the effect of scaling.
As yet another embodiment of the present invention, described processor 701 is specifically for not only comprising in post-processing information
When rotation parameter also comprises zooming parameter, corresponding spin matrix is determined according to described rotation parameter, according to described scaling ginseng
Number determines corresponding scaled matrix, then more described spin matrix is multiplied by described scaled matrix and obtains preconditioning matrix, then
Described pretreatment information be this preconditioning matrix it is notable that described zooming parameter include vertical scaling parameters and/or
According to described zooming parameter, horizontal scaling parameter, described determines that corresponding scaled matrix is according to described vertical scaling parameters
And/or the corresponding scaled matrix of horizontal scaling parameter determination.It should be noted that not only comprising rotation ginseng in post-processing information
When number also comprises zooming parameter, described processor 701 is additionally operable to treat to described based on described rotation parameter and described zooming parameter
The wide property parameters of figure layer drawn and high property parameters are adjusted, so that the high attribute of width after adjustment is waited to draw with described
The indication range of figure layer match.
It should be noted that when described post-processing information includes rotation parameter and zooming parameter, and described zooming parameter
Including vertical scaling parameters and/or horizontal scaling parameter, described pretreatment information is the rotation being determined according to described rotation parameter
During the preconditioning matrix that the product of matrix and the scaled matrix being determined according to described zooming parameter determines, described processor 701 has
The first apex coordinate that body is used for based on described preconditioning matrix converts intermediate result to the summit representing described pel enters again
Row coordinate transform processing, obtains representing that the summit of described pel converts the 4th apex coordinate of ultimate result, described 4th summit
The pel that the pel of coordinate representation represents with respect to described first apex coordinate has rotation and the effect of scaling.
It should be noted that described post-processing information refers to render based on the figure layer of OpenGL hardware standard in prior art
The information being processed for the figure layer being designated as completing under pattern, described post-processing information is included to the figure completed
Layer is rotated and/or is scaled and other are related to carry out the information of coordinate transform processing, will not enumerate herein.Corresponding
, described pretreatment information can be described rotation and/or scaled matrix and other line translation is entered to the apex coordinate of pel
The matrix processing, the function that described processor 701 is capable of includes but is not limited to the function described in above-described embodiment.
Described display 706 be used for showing described in figure layer to be drawn.
It should be noted that when the described number wait the figure layer drawn is two or more, described processor 701 is additionally operable to
Plural described figure layer to be drawn is carried out being synthetically generated target image, then by described target image output display.
Corresponding, described display 706 is used for showing described target image.
Being embodied as of each equipment above can be found in embodiment above, will not be described here.
Understand, figure layer drawn and described in showing when the figure layer drawn using the terminal unit described in the embodiment of the present invention,
First when drawing figure layer, pretreatment is carried out in the conversion stages of summit, due to summit conversion stages be directed to simply relatively
Few summit, so carry out needing data volume ratio to be processed during pretreatment operation using the terminal unit described in the embodiment of the present invention
Less, process cost smaller;Furthermore, when the described number wait the figure layer drawn is two or more, two described in output display
Also need to before individual above figure layer it be carried out with synthesis process to generate target image, complete based on described figure layer to be drawn
Become pretreatment, so needing data volume to be processed smaller when being synthesized, and then being capable of lift system to a certain extent
Display performance.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example of the embodiments described herein description
Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually
To be executed with hardware or software mode, the application-specific depending on technical scheme and design constraint.Professional and technical personnel
Each specific application can be used different methods to realize described function, but this realization is it is not considered that exceed
The scope of the present invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
It should be understood that disclosed system, apparatus and method in several embodiments provided herein, permissible
Realize by another way.For example, device embodiment described above is only schematically, for example, described unit
Divide, only a kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly
Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or
The coupling each other discussing or direct-coupling or communication connection can be by some interfaces, the indirect coupling of device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The described unit illustrating as separating component can be or may not be physically separate, show as unit
The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.The mesh to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs
's.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to
It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.
If described function realized using in the form of SFU software functional unit and as independent production marketing or use when, permissible
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
Partly being embodied in the form of software product of part that prior art is contributed or this technical scheme, this meter
Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment(Can be individual
People's computer, server, or network equipment etc.)Or the whole or portion of each embodiment methods described of the computing device present invention
Step by step.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory(ROM, Read-Only Memory), with
Machine accesses memorizer(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should described be defined by scope of the claims.
Claims (25)
1. a kind of figure layer method for drafting is it is characterised in that methods described includes:
Receive drawing for order, in described drawing for order, comprise primitive information, summit information converting and segment shading information;
Receive post-processing information, pretreatment information is determined according to described post-processing information, described post-processing information is used for representing right
Figure layer to be drawn does coordinate transform processing;
Coordinate change is carried out to the summit of the corresponding pel of described primitive information based on the summit information converting in described drawing for order
Change process, obtain the summit conversion intermediate result of described pel;
Coordinate transform processing is carried out again to the summit conversion intermediate result of described pel based on described pretreatment information, obtains institute
The summit stating pel converts ultimate result;
Rasterization process is carried out to the summit ultimate result of conversion of described pel, obtains the rasterization process result of described pel;
Based on the segment shading information in described drawing for order, the rasterization process result of described pel is carried out at segment coloring
Reason, obtains the segment coloring treatment result of described pel;
Segment coloring treatment result according to described pel is described in carrying out pixel filling and obtaining in the indication range of described figure layer
Figure layer to be drawn.
2. figure layer method for drafting according to claim 1 is it is characterised in that described reception post-processing information, according to described
Post-processing information determines pretreatment information, including:
Receive post-processing information, described post-processing information includes rotation parameter;
Spin matrix is determined according to the rotation parameter that described post-processing information includes, described spin matrix represents described pretreatment
Information;
Described coordinate transform processing is carried out again to the summit of described pel conversion intermediate result based on described pretreatment information, obtain
Summit to described pel converts ultimate result, including:
Sat again based on the first apex coordinate that described spin matrix converts intermediate result to the summit representing described pel
Mark conversion process, obtains representing that the summit of described pel converts the second apex coordinate of ultimate result, described second apex coordinate
The pel that the pel representing represents with respect to described first apex coordinate has the effect of rotation.
3. figure layer method for drafting according to claim 1 is it is characterised in that described reception post-processing information, according to described
Post-processing information determines pretreatment information, including:
Receive post-processing information, described post-processing information includes zooming parameter;
Scaled matrix is determined according to the zooming parameter that described post-processing information includes, described scaled matrix represents described pretreatment
Information;
Described coordinate transform processing is carried out again to the summit of described pel conversion intermediate result based on described pretreatment information, obtain
Summit to described pel converts ultimate result, including:
Sat again based on the first apex coordinate that described scaled matrix converts intermediate result to the summit representing described pel
Mark conversion process, obtains representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, described 3rd apex coordinate
The pel that the pel representing represents with respect to described first apex coordinate has the effect of scaling.
4. figure layer method for drafting according to claim 1 is it is characterised in that described reception post-processing information, according to described
Post-processing information determines pretreatment information, including:
Receive post-processing information, described post-processing information includes rotation parameter and zooming parameter;
Spin matrix is determined according to the rotation parameter that described post-processing information includes;
Scaled matrix is determined according to the zooming parameter that described post-processing information includes;
Described spin matrix is multiplied with described scaled matrix and obtains preconditioning matrix, described preconditioning matrix represents described pre- place
Reason information;
Described coordinate transform processing is carried out again to the summit of described pel conversion intermediate result based on described pretreatment information, obtain
Summit to described pel converts ultimate result, including:
Carried out again based on the first apex coordinate that described preconditioning matrix converts intermediate result to the summit representing described pel
Coordinate transform processing, obtains representing that the summit of described pel converts the 4th apex coordinate of ultimate result, described 4th summit is sat
The pel that the pel that mark represents represents with respect to described first apex coordinate has rotation and the effect of scaling.
5. figure layer method for drafting according to claim 2 is it is characterised in that in described reception post-processing information, described after
After processing information includes rotation parameter, methods described also includes:
When the anglec of rotation representing in described rotation parameter is 90 or 270 degree, wait to draw to described based on described rotation parameter
The wide property parameters of figure layer and high property parameters are adjusted so that the wide attribute after adjusting and high attribute are waited to draw with described
The indication range of figure layer match;
In described the first apex coordinate that intermediate result is converted to the summit representing described pel based on described spin matrix again
Carry out coordinate transform processing, after obtaining representing that the summit of described pel converts the second apex coordinate of ultimate result, also include:
According to the wide attribute after adjustment and high attribute, the second apex coordinate of ultimate result is converted to the summit representing described pel
Carry out cutting, obtain the second apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process knot of described pel
Really, including:
Rasterization process is carried out to the second apex coordinate after described cutting, obtains the rasterization process result of described pel.
6. figure layer method for drafting according to claim 3 is it is characterised in that in described reception post-processing information, described after
After processing information includes zooming parameter, methods described also includes:
Based on described zooming parameter, the wide property parameters of described figure layer to be drawn and high property parameters are adjusted so that adjusting
Wide attribute after whole and high attribute are matched with the indication range of described figure layer to be drawn;
In described the first apex coordinate that intermediate result is converted to the summit representing described pel based on described scaled matrix again
Carry out coordinate transform processing, after obtaining representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, also include:
According to the wide attribute after adjustment and high attribute, the 3rd apex coordinate of ultimate result is converted to the summit representing described pel
Carry out cutting, obtain the 3rd apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process knot of described pel
Really, including:
Rasterization process is carried out to the 3rd apex coordinate after described cutting, obtains the rasterization process result of described pel.
7. figure layer method for drafting according to claim 4 is it is characterised in that in described reception post-processing information, described after
After processing information includes rotation parameter and zooming parameter, methods described also includes:
Based on described zooming parameter and described rotation parameter to the wide property parameters of described figure layer to be drawn and high property parameters
It is adjusted so that the wide attribute after adjusting and high attribute are matched with the indication range of described figure layer to be drawn;
In described the first apex coordinate that intermediate result is converted to the summit representing described pel based on described preconditioning matrix again
Secondary carry out coordinate transform processing, after obtaining representing that the summit of described pel converts the 4th apex coordinate of ultimate result, also wrap
Include:
According to the wide attribute after adjustment and high attribute, the 4th apex coordinate of ultimate result is converted to the summit representing described pel
Carry out cutting, obtain the 4th apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process knot of described pel
Really, including:
Rasterization process is carried out to the 4th apex coordinate after described cutting, obtains the rasterization process result of described pel.
8. a kind of drawing engine is it is characterised in that include:
Receiving unit, for receiving drawing for order, comprises primitive information, summit information converting and segment in described drawing for order
Shading information;And be additionally operable to receive post-processing information, described post-processing information is used for representing that the figure layer treating drafting does coordinate
Conversion process;
Pretreatment interface unit, for determining pretreatment information according to described post-processing information;
Vertex shader, for based on the summit information converting in described drawing for order to the corresponding pel of described primitive information
Summit carries out coordinate transform processing, obtains the summit conversion intermediate result of described pel;And be additionally operable to based on described pretreatment
Information carries out coordinate transform processing again to the summit conversion intermediate result of described pel, obtains the summit conversion of described pel eventually
Pole result;
Rasterizer, carries out rasterization process for converting ultimate result to the summit of described pel, obtains the light of described pel
Gated result;
Fragment shader, for the rasterization process result to described pel based on the segment shading information in described drawing for order
Carry out segment coloring treatment, obtain the segment coloring treatment result of described pel;
Figure layer obtaining unit, for the segment coloring treatment result according to described pel described figure layer to be drawn display model
Carry out in enclosing pixel filling obtain described in figure layer to be drawn.
9. drawing engine according to claim 8 it is characterised in that:
In the described operation receiving post-processing information, described receiving unit includes the post processing of rotation parameter specifically for receiving
Information;
Described pretreatment interface unit specifically for spin matrix is determined according to the rotation parameter that described post-processing information includes,
Described spin matrix represents described pretreatment information;
Described, coordinate transform processing is carried out again to the summit conversion intermediate result of described pel based on described pretreatment information,
The summit obtaining described pel converts in the operation of ultimate result, and described vertex shader is specifically for based on described spin matrix
The first apex coordinate converting intermediate result to the summit representing described pel carries out coordinate transform processing again, obtains representing institute
The summit stating pel converts the second apex coordinate of ultimate result, and the pel that wherein said second apex coordinate represents is with respect to institute
State the effect that the pel that the first apex coordinate represents has rotation.
10. drawing engine according to claim 8 it is characterised in that:
Described receiving unit includes the post-processing information of zooming parameter specifically for receiving;
Described pretreatment interface unit specifically for scaled matrix is determined according to the zooming parameter that described post-processing information includes,
Described scaled matrix represents described pretreatment information;
Described, coordinate transform processing is carried out again to the summit conversion intermediate result of described pel based on described pretreatment information,
The summit obtaining described pel converts in the operation of ultimate result, and described vertex shader is specifically for based on described scaled matrix
The first apex coordinate converting intermediate result to the summit representing described pel carries out coordinate transform processing again, obtains representing institute
The summit stating pel converts the 3rd apex coordinate of ultimate result, and the pel that described 3rd apex coordinate represents is with respect to described the
The pel that one apex coordinate represents has the effect of scaling.
11. drawing engines according to claim 8 it is characterised in that:
Described receiving unit includes the post-processing information of rotation parameter and zooming parameter specifically for receiving;
Described pretreatment interface unit specifically for spin matrix is determined according to the rotation parameter that described post-processing information includes,
Scaled matrix is determined according to the zooming parameter that described post-processing information includes, by described spin matrix and described scaled matrix phase
Multiplied to preconditioning matrix, described preconditioning matrix represents described pretreatment information;
Described, coordinate transform processing is carried out again to the summit conversion intermediate result of described pel based on described pretreatment information,
The summit obtaining described pel converts in the operation of ultimate result, and described vertex shader is specifically for based on described pretreatment square
The first apex coordinate that battle array converts intermediate result to the summit representing described pel carries out coordinate transform processing again, is represented
The summit of described pel converts the 4th apex coordinate of ultimate result, and the pel that described 4th apex coordinate represents is with respect to described
The pel that first apex coordinate represents has rotation and the effect of scaling.
12. drawing engines according to claim 9 it is characterised in that:
When the anglec of rotation that described pretreatment interface unit is additionally operable to represent in described rotation parameter is 90 or 270 degree, it is based on
Described rotation parameter is adjusted the width so that after adjusting to the described wide property parameters wait the figure layer drawn and high property parameters
Attribute and high attribute are matched with the indication range of described figure layer to be drawn;
Described vertex shader is additionally operable to according to the wide attribute after adjusting and high attribute, whole to the summit conversion representing described pel
Second apex coordinate of pole result carries out cutting, obtains the second apex coordinate after cutting;
Described rasterizer, specifically for carrying out rasterization process to the second apex coordinate after described cutting, obtains described pel
Rasterization process result.
13. drawing engines according to claim 10 it is characterised in that:
Described pretreatment interface unit be additionally operable to based on described zooming parameter to the wide property parameters of described figure layer to be drawn and
High property parameters are adjusted the indication range phase so that wide attribute after adjusting and high attribute and described figure layer to be drawn
Join;
Described vertex shader is additionally operable to according to the wide attribute after adjusting and high attribute, whole to the summit conversion representing described pel
3rd apex coordinate of pole result carries out cutting, obtains the 3rd apex coordinate after cutting;
Described rasterizer, specifically for carrying out rasterization process to the 3rd apex coordinate after described cutting, obtains described pel
Rasterization process result.
14. drawing engines according to claim 11 it is characterised in that:
Described pretreatment interface unit is additionally operable to based on described zooming parameter and described rotation parameter to described figure layer to be drawn
Wide property parameters and high property parameters are adjusted so that wide attribute after adjusting and high attribute and described figure layer to be drawn
Indication range match;
Described vertex shader is additionally operable to according to the wide attribute after adjusting and high attribute, and to expression, described summit converts ultimate result
The 4th apex coordinate carry out cutting, obtain the 4th apex coordinate after cutting;
Described rasterizer, specifically for carrying out rasterization process to the 4th apex coordinate after described cutting, obtains described pel
Rasterization process result.
A kind of 15. display packings are it is characterised in that methods described includes:
Receive drawing for order, in described drawing for order, comprise primitive information, summit information converting and segment shading information;
Receive post-processing information, pretreatment information is determined according to described post-processing information, described post-processing information is used for representing right
Figure layer to be drawn does coordinate transform processing;
Coordinate change is carried out to the summit of the corresponding pel of described primitive information based on the summit information converting in described drawing for order
Change process, obtain the summit conversion intermediate result of described pel;
Coordinate transform processing is carried out again to the summit conversion intermediate result of described pel based on described pretreatment information, obtains institute
The summit stating pel converts ultimate result;
Rasterization process is carried out to the summit ultimate result of conversion of described pel, obtains the rasterization process result of described pel;
Based on the segment shading information in described drawing for order, the rasterization process result of described pel is carried out at segment coloring
Reason, obtains the segment coloring treatment result of described pel;
Pixel filling is carried out in the indication range of described figure layer to be drawn according to the segment coloring treatment result of described pel
Figure layer to be drawn described in obtaining;
By described figure layer output display to be drawn.
16. display packings according to claim 15 it is characterised in that:
When the described number wait the figure layer drawn is two or more,
Described by described figure layer output display to be drawn, including:
Plural described figure layer to be drawn is carried out with synthesis process generation target image and export described target image
Display.
17. display packings according to claim 15 or 16 it is characterised in that described reception post-processing information, according to institute
State post-processing information and determine pretreatment information, including:
Receive post-processing information, described post-processing information includes rotation parameter;
Spin matrix is determined according to the rotation parameter that described post-processing information includes, described spin matrix represents described pretreatment
Information;
Described coordinate transform processing is carried out again to the summit of described pel conversion intermediate result based on described pretreatment information, obtain
Summit to described pel converts ultimate result, including:
Sat again based on the first apex coordinate that described spin matrix converts intermediate result to the summit representing described pel
Mark conversion process, obtains representing that the summit of described pel converts the second apex coordinate of ultimate result, described second apex coordinate
The pel that the pel representing represents with respect to described first apex coordinate has the effect of rotation.
18. display packings according to claim 15 or 16 it is characterised in that described reception post-processing information, according to institute
State post-processing information and determine pretreatment information, including:
Receive post-processing information, described post-processing information includes zooming parameter;
Scaled matrix is determined according to the zooming parameter that described post-processing information includes, described scaled matrix represents described pretreatment
Information;
Described coordinate transform processing is carried out again to the summit of described pel conversion intermediate result based on described pretreatment information, obtain
Summit to described pel converts ultimate result, including:
Sat again based on the first apex coordinate that described scaled matrix converts intermediate result to the summit representing described pel
Mark conversion process, obtains representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, described 3rd apex coordinate
The pel that the pel representing represents with respect to described first apex coordinate has the effect of scaling.
19. display packings according to claim 15 or 16 it is characterised in that described reception post-processing information, according to institute
State post-processing information and determine pretreatment information, including:
Receive post-processing information, described post-processing information includes rotation parameter and zooming parameter;
Spin matrix is determined according to the rotation parameter that described post-processing information includes;
Scaled matrix is determined according to the zooming parameter that described post-processing information includes;
Described spin matrix is multiplied with described scaled matrix and obtains preconditioning matrix, described preconditioning matrix represents described pre- place
Reason information;
Described coordinate transform processing is carried out again to the summit of described pel conversion intermediate result based on described pretreatment information, obtain
Summit to described pel converts ultimate result, including:
Carried out again based on the first apex coordinate that described preconditioning matrix converts intermediate result to the summit representing described pel
Coordinate transform processing, obtains representing that the summit of described pel converts the 4th apex coordinate of ultimate result, described 4th summit is sat
The pel that the pel that mark represents represents with respect to described first apex coordinate has rotation and the effect of scaling.
20. display packings according to claim 17 it is characterised in that in described reception post-processing information, described after locate
After reason information includes rotation parameter, methods described also includes:
When the anglec of rotation representing in described rotation parameter is 90 or 270 degree, wait to draw to described based on described rotation parameter
The wide property parameters of figure layer and high property parameters are adjusted so that the wide attribute after adjusting and high attribute are waited to draw with described
The indication range of figure layer match;
In described the first apex coordinate that intermediate result is converted to the summit representing described pel based on described spin matrix again
Carry out coordinate transform processing, after obtaining representing that the summit of described pel converts the second apex coordinate of ultimate result, also include:
According to the wide attribute after adjustment and high attribute, the second apex coordinate of ultimate result is converted to the summit representing described pel
Carry out cutting, obtain the second apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process knot of described pel
Really, including:
Rasterization process is carried out to the second apex coordinate after described cutting, obtains the rasterization process result of described pel.
21. display packings according to claim 18 it is characterised in that in described reception post-processing information, described after locate
After reason information includes zooming parameter, methods described also includes:
Based on described zooming parameter, the wide property parameters of described figure layer to be drawn and high property parameters are adjusted so that adjusting
Wide attribute after whole and high attribute are matched with the indication range of described figure layer to be drawn;
In described the first apex coordinate that intermediate result is converted to the summit representing described pel based on described scaled matrix again
Carry out coordinate transform processing, after obtaining representing that the summit of described pel converts the 3rd apex coordinate of ultimate result, also include:
According to the wide attribute after adjustment and high attribute, the 3rd apex coordinate of ultimate result is converted to the summit representing described pel
Carry out cutting, obtain the 3rd apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process knot of described pel
Really, including:
Rasterization process is carried out to the 3rd apex coordinate after described cutting, obtains the rasterization process result of described pel.
22. display packings according to claim 19 it is characterised in that in described reception post-processing information, described after locate
After reason information includes rotation parameter and zooming parameter, methods described also includes:
Based on described zooming parameter and described rotation parameter to the wide property parameters of described figure layer to be drawn and high property parameters
It is adjusted so that the wide attribute after adjusting and high attribute are matched with the indication range of described figure layer to be drawn;
In described the first apex coordinate that intermediate result is converted to the summit representing described pel based on described preconditioning matrix again
Secondary carry out coordinate transform processing, after obtaining representing that the summit of described pel converts the 4th apex coordinate of ultimate result, also wrap
Include:
According to the wide attribute after adjustment and high attribute, the 4th apex coordinate of ultimate result is converted to the summit representing described pel
Carry out cutting, obtain the 4th apex coordinate after cutting;
The described summit to described pel converts ultimate result and carries out rasterization process, obtains the rasterization process knot of described pel
Really, including:
Rasterization process is carried out to the 4th apex coordinate after described cutting, obtains the rasterization process result of described pel.
A kind of 23. terminal units are it is characterised in that include display controller, display screen assembly and as claim 8-14
Drawing engine described in any one, wherein:
Described display controller be used for by described drawing engine obtain described in figure layer output display to be drawn to described display
On screen assembly.
24. terminal units according to claim 23 it is characterised in that:
When the described number wait the figure layer drawn is two or more, described display controller is specifically for by described drawing engine
The plural described figure layer to be drawn obtaining carries out being synthetically generated target image and by described target image output display
To on described display screen assembly.
25. terminal units according to claim 23 are it is characterised in that also include synthesizer, wherein:
When the described number wait the figure layer drawn is two or more, described synthesizer is used for obtain described drawing engine two
Individual above described in figure layer to be drawn carry out being synthetically generated target image;
Described display controller is specifically for by described target image output display to described display screen assembly.
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 CN103677828A (en) | 2014-03-26 |
CN103677828B true 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) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9684950B2 (en) * | 2014-12-18 | 2017-06-20 | Qualcomm Incorporated | Vision correction through graphics processing |
CN104809684B (en) * | 2015-04-02 | 2018-03-27 | 华为技术有限公司 | Graphic processing method, apparatus and system |
US10068366B2 (en) * | 2016-05-05 | 2018-09-04 | Nvidia Corporation | Stereo multi-projection implemented using a graphics processing pipeline |
CN106534880A (en) * | 2016-11-28 | 2017-03-22 | 深圳Tcl数字技术有限公司 | Video synthesis method and device |
CN108933955A (en) * | 2017-05-24 | 2018-12-04 | 阿里巴巴集团控股有限公司 | A kind of method for drafting and device |
CN107621951B (en) * | 2017-08-29 | 2020-12-29 | 口碑(上海)信息技术有限公司 | View level optimization method and device |
CN107808367B (en) * | 2017-11-29 | 2020-10-16 | 天津聚飞创新科技有限公司 | Fisheye image correction method and device, unmanned aerial vehicle and storage medium |
CN110018812B (en) * | 2018-01-08 | 2022-09-09 | 北京蓝亚盒子科技有限公司 | Graph drawing method and device |
CN108711179B (en) * | 2018-05-21 | 2022-07-19 | 杭州多技教育科技有限公司 | Drawing reduction method and system |
CN109840881B (en) * | 2018-12-12 | 2023-05-05 | 奥比中光科技集团股份有限公司 | 3D special effect image generation 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 |
CN109828818B (en) * | 2019-01-29 | 2022-03-01 | 广联达科技股份有限公司 | Primitive style transformation method based on browser-side display engine |
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 |
CN112925593A (en) * | 2019-12-05 | 2021-06-08 | 北京沃东天骏信息技术有限公司 | Method and device for scaling and rotating target layer |
CN111461960B (en) * | 2020-03-19 | 2022-08-16 | 稿定(厦门)科技有限公司 | Multi-layer matrix transformation method and device |
CN113687823B (en) * | 2021-07-30 | 2023-08-01 | 稿定(厦门)科技有限公司 | Quadrilateral block nonlinear transformation method and system based on HTML |
CN116051627B (en) * | 2023-02-02 | 2023-06-13 | 杭州比智科技有限公司 | Method and system for realizing graphic self-adaption based on svg and Lottie |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1111502A2 (en) * | 1999-12-16 | 2001-06-27 | Class Technology Co., Ltd. | Management of object oriented classes and methods |
CN101017566A (en) * | 2006-10-24 | 2007-08-15 | 图诚科技股份有限公司 | System and method for geometrical graphics processing |
CN101388109A (en) * | 2008-01-25 | 2009-03-18 | 威盛电子股份有限公司 | Drawing processing system, quick fetching system and data processing method |
CN102104704A (en) * | 2009-12-22 | 2011-06-22 | 佳能株式会社 | Printing apparatus and printing apparatus control method |
-
2013
- 2013-12-10 CN CN201310671747.5A patent/CN103677828B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1111502A2 (en) * | 1999-12-16 | 2001-06-27 | Class Technology Co., Ltd. | Management of object oriented classes and methods |
CN101017566A (en) * | 2006-10-24 | 2007-08-15 | 图诚科技股份有限公司 | System and method for geometrical graphics processing |
CN101388109A (en) * | 2008-01-25 | 2009-03-18 | 威盛电子股份有限公司 | Drawing processing system, quick fetching system and data processing method |
CN102104704A (en) * | 2009-12-22 | 2011-06-22 | 佳能株式会社 | Printing apparatus and printing apparatus control method |
Non-Patent Citations (3)
Title |
---|
图层技术在储层可视化中的应用研究;曲小纳;《中国优秀硕士学位论文全文数据库 信息科技辑》;20101015(第10期);第I138-617页 * |
基于可编程图形硬件加速的若干技术研究;董朝;《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》;20050615(第02期);第I138-604页 * |
基于延迟着色技术的实时渲染引擎的研究;潘兆焕;《中国优秀硕士学位论文全文数据库 信息科技辑》;20110915(第09期);第I138-1181页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103677828A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103677828B (en) | Coverage drawing method, drawing engine and terminal equipment | |
US9177351B2 (en) | Multi-primitive graphics rendering pipeline | |
JP6374982B2 (en) | Improved graphics processing by tracking object and / or primitive identifiers | |
CN103946895B (en) | The method for embedding in presentation and equipment based on tiling block | |
TWI634517B (en) | Method for efficient construction of high resolution display buffers | |
CN110383337A (en) | Variable bit rate coloring | |
CN106575442B (en) | Use the bandwidth reducing of the texture lookups by self-adaption paint | |
US8217962B2 (en) | Single-pass bounding box calculation | |
KR101633243B1 (en) | Rendering graphics data using visibility information | |
US20130009948A1 (en) | Apparatus and Methods for Wrapping Texture onto the Surface of a Virtual Object | |
US20050128210A1 (en) | Haptic graphical user interface for adjusting mapped texture | |
CN105122310B (en) | For time stamp in the frame of the rendering based on tile | |
CN107430763A (en) | Apparatus and method for non-homogeneous frame buffer rasterizing | |
US10628995B2 (en) | Anti-aliasing of graphical elements defined based on functions | |
CN110291563A (en) | Multiple tinter processes in graphics process | |
US10540789B2 (en) | Line stylization through graphics processor unit (GPU) textures | |
CN108335349A (en) | Utilize NN filtering image data | |
JP2023553507A (en) | System and method for obtaining high quality rendered display of synthetic data display of custom specification products | |
US10192348B2 (en) | Method and apparatus for processing texture | |
US6914609B2 (en) | Multiple scan line sample filtering | |
Nah et al. | MobiRT: an implementation of OpenGL ES-based CPU-GPU hybrid ray tracer for mobile devices | |
JP5864474B2 (en) | Image processing apparatus and image processing method for processing graphics by dividing space | |
WO2014178902A1 (en) | Anti-aliasing for geometries | |
JP2023510164A (en) | hybrid binning | |
US7196706B2 (en) | Method and apparatus for rendering a quadrangle primitive |
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 |