AU743218B2 - Fast renering techniques for rasterised graphic object based images - Google Patents
Fast renering techniques for rasterised graphic object based images Download PDFInfo
- Publication number
- AU743218B2 AU743218B2 AU47509/99A AU4750999A AU743218B2 AU 743218 B2 AU743218 B2 AU 743218B2 AU 47509/99 A AU47509/99 A AU 47509/99A AU 4750999 A AU4750999 A AU 4750999A AU 743218 B2 AU743218 B2 AU 743218B2
- Authority
- AU
- Australia
- Prior art keywords
- pixel
- objects
- edge
- scan line
- span
- 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.)
- Ceased
Links
Landscapes
- Image Generation (AREA)
Description
I
S F Ref: 472738
AUSTRALIA
PATENTS ACT 1990 COMPLETE SPECIFICATION FOR A STANDARD PATENT
ORIGINAL
Name and Address of Applicant: Actual Inventor(s): Address for Service: Invention Title: Canon Kabushiki Kaisha 30-2, Shimomaruko 3-chome Ohta-ku Tokyo 146
JAPAN
Timothy Merrick Long, Tjoan Lie, Christopher Fraser and Kevin John Moore Spruson Ferguson, Patent Attorneys Level 33 St Martins Tower, 31 Market Street Sydney, New South Wales, 2000, Australia Fast Renering Techniques for Rasterised Graphic Object Based Images ASSOCIATED PROVISIONAL APPLICATION DETAILS [31] Application No(s) [33] Country PP5855 AU PP5856- AU PP5857- AU PP5858 AU PP5859 AU PP5861 AU PP5863- AU PP9234 AU PQ0049 AU [32] Application Date 11 September 1998 11 September 1998 11 September 1998 11 September 1998 11 September 1998 11 September 1998 11 September 1998 16 March 1999 29 April 1999 The following statement is a full description of this invention, including the best method of performing it known to me/us:- 5815 -1- FAST RENDERING TECHNIQUES FOR RASTERISED GRAPHIC OBJECT BASED IMAGES Field of Invention The present invention relates to the rendering of object graphic elements into raster pixel images and, in particular, to efficient rendering of such elements to pixel image data without the use of frame or line storage of the pixel data as part of the rendering process.
Background Most object based graphics systems utilise a frame store or page buffer to hold a 1o pixel-based image of the page or screen. Typically, the outlines of the graphic objects are calculated, filled and written into the frame store. For two-dimensional graphics, objects which appear in front of other objects are simply written into the frame store after the S.background objects, thereby replacing the background on a pixel-by-pixel basis. This is commonly known in the art as the "Painter's algorithm". Objects are considered in 15 priority order, from the rearmost object to the foremost object, and, typically, each object is rasterised in scan line order and pixels are written to the frame store in sequential runs along each scan line.
There are essentially two problems with this technique. The first is that it requires fast random access to all the pixels in the frame store. This is because each new 20 object considered could affect any pixel in the frame-store. For this reason, the frame store is normally kept in semiconductor random access memory (RAM). For high resolution colour printers the amount of RAM required is very large, typically in excess oooo of 100 MBytes, which is costly and difficult to operate at high speed. The second S"problem is that many pixels which are painted (rendered), are over-painted (re-rendered) by later objects. Painting the pixels with the earlier objects was a waste of time.
One method for overcoming the large frame-store problem is the use of "banding". When banding is used, only part of the frame-store exists in memory at any one time. All of the objects to be drawn are retained in a "display list". The whole image is rendered as above, but pixel painting (rendering) operations that try to paint (render) outside the fraction of the frame-store which exists are "clipped" out. After all the objects have been drawn, the fractional part of the frame-store is sent to the printer (or some other location) and another fraction of the frame-store is selected and the process repeated.
There are penalties with this technique. For example, the objects being drawn must be considered and re-considered many times once for each band. As the number of bands CFPI449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CIS RA\UFR\UFRgr- \472738.doc -2increases, so too does the repetitious examination of objects requiring rendering. The technique of banding does not solve the problem of the cost of over-painting.
Some other graphic systems consider the image in scan line order. Again, all the objects to be drawn are retained in a display list. On each scan line the objects which intersect that scan line are then considered in priority order and for each object, spans of pixels between object edge intersection points are set in a line store. This technique also overcomes the large frame store problem, but still suffers from the over-paint problem.
There are other techniques which overcome both the large frame-store problem and the over-painting problem. In one such technique, each scan line is produced in turn.
Again, all the objects to be drawn are retained in a display list. On each scan line, the edges of objects which intersect that scan line are held in order of increasing coordinate of intersection with the scan line. These points of intersection, or edge crossings, are considered in turn and used to toggle an array of active flags. There is one active flag for each object priority which is of interest on the scan line. Between each pair of edges i" 15 considered, the colour data for each pixel which lies between the first edge and the next :i edge is generated by using a priority encoder on the active flags to determine which priority is topmost, and using the colour associated with that priority for the pixels of the span between the two edges. In preparation for the next scan line, the coordinate of intersection of each edge is updated in accordance with the nature of each edge. Adjacent 20 edges which become mis-sorted as a result of this update are swapped. New edges are S"also merged into the list of edges.
This technique has the significant advantages that there is no frame store or line store, there is no over painting, and the object priorities are dealt with in constant order S* time, rather than order N time (where N is the number of priorities).
However, there are several limitations to this technique: The technique only supports the "odd-even" fill rule, known in the art for determining the inside versus outside state of an object from its edges. The "non-zero winding" fill rule, which is a required feature of many graphic description languages, is not supported by that technique.
(ii) Large mis-sorting can occur for which a simple swapping technique is inadequate to repair. While a brute-force sort of the whole of the edge list on each scan line can be performed, this is very slow.
(iii) The technique does not support raster (pixel-based) images as an object type. Such images are a required feature of most graphic description languages.
CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d, 13d,1sd 472738 1: ELEC\CISRA\UFR\UFRgr-1\472738.doc (iv) The technique only supports objects which are opaque, where each painted pixel strictly obscures the pixels of objects with lesser priority. The technique does not support raster operations in which the colour of two or more graphic objects interact. Such operations include drawing in XOR mode, or the compositing of partially transparent objects. These modification operations are a required feature of most graphic description languages.
The technique does not support clipping, where one or more clip shapes suppress some number of other graphics objects inside (or outside) the bounds of the clip shapes. Clipping is a required feature of most graphic description languages.
(vi) The technique uses voluminous and inefficient encoding of object edges, particularly for text. It is desirable for such an extremely common element of graphic descriptions to be represented in a simpler fashion.
(vii) The technique in some instances does not provide for accurate :.:":evaluation of complicated compositing expressions where the activity of one or more 15 objections is variable.
The inability of the technique to implement many features required by existing graphic description languages severely limits its use.
Further, some existing rendering interfaces require implementation of the bitwise logical combination of the colour of two or more graphic objects. Other existing 20 rendering interfaces require implementation of an alpha channel (also referred to as S"transparency, opacity, or matte) based combination of the colour of two or more graphic objects. Current techniques do not allow these two features to be implemented in a unified fashion.
•Summary of the Invention It is an object of the present invention to substantially overcome, or at least ameliorate, one or more deficiencies with prior art systems.
In accordance with one aspect of the present invention there is disclosed a method of rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each adjacent pair of edge intersections, examining information associated with the corresponding said object to determining a set of active objects for a span of pixel locations between the corresponding pair of edge intersections; and CFPI449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,1 3d,15d 472738 1:\ELEC\CIS RA\UFR\UFRgr- I \472738.doc for each said span of pixel locations, using the corresponding set of active objects to determine a value for each of said locations within said span.
In accordance with another aspect of the present invention there is disclosed a method of rendering a plurality of graphic objects described by at least one edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, modifying an integral fill lo count associated with the corresponding said object; for each adjacent pair of edge intersections, examining the corresponding fill counts to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of 15 active objects to determine a value for each of said pixel locations within said span.
In accordance with another aspect of the present invention there is disclosed a method of rendering a plurality of graphic objects, each having an associated rendering •level, to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, each said object having at least one corresponding filled region defined by intersections of said scan lines by edge of said object, said intersections defining for each said scan line a corresponding fill count through application of the nonzero winding fill rule, said method being characterised by the simultaneous storage of a plurality of said fill counts, and using said stored fill counts to determine those said rendering levels that contribute to said image.
In accordance with another aspect of the present invention there is disclosed a method of rendering a plurality of graphic objects to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, each said object being described by components including at least one edge, a viewing priority and fill data, said method comprising the steps of: establishing records corresponding to each said component and associating said component records each with a corresponding component process; rendering said graphic objects in a rasterised fashion by activating said component processes, CHARACTERISED BY, for each said scan line, the steps of determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; CFP1449AU UFRgr-1 =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr-1 \47273 8.doc for each edge intersection so determined, updating a level activation table forming at least part of said viewing priority records, said level activation table being arranged according to object viewing priority and including plural entries corresponding to at least an integral fill count associated with the corresponding said object; for each adjacent pair of edge intersections, examining at least plural ones of said entries of said level activation table to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of active objects to determine a rendered value for each of said pixel locations within said span.
mh In accordance with another aspect of the present invention there is disclosed a method of rendering a plurality of overlapping graphic objects having variable opacity S: and described by at least one edge to form a raster pixel image having a plurality of scan S 15 lines and a plurality of pixel locations on each said scan line, said method comprising, for *o each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; 2(b) for each edge intersection so determined, updating a record of 20 contribution indicators associated with the corresponding said objects; for each adjacent pair of edge intersections, examining the corresponding contribution indicators to determine a (first) set of said objects that contribute to pixel values in a span of pixel locations between the corresponding edge S intersections; and for each said span of pixel locations, using the corresponding (first) set of said objects to determine a value for each of said pixel locations within said span.
In accordance with another aspect of the present invention there is disclosed a method of rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge into a raster pixel image having a plurality of scan line and a plurality of pixel locations on each said scan line, said method comprising the steps of: forming a plurality of stack records of colour and opacity values for a plurality of active objects to be rendered in a current scan line of said image; RAL identifying those ones of said objects that contribute to pixel values within a span cpixel locations between adjacent edge intersections of said objects; 472738.doc for those identified objects within each said span, receiving a compositing message and determining therefrom at least one compositing operation for each said record in said stack; using said at least one compositing operation and corresponding said colour and opacity values, to determine an output pixel value for each pixel location within said span by compositing the stack records.
In accordance with another aspect of the present invention there is disclosed a method of rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, forming a plurality of stack s15 records of colour and opacity values for a plurality of active objects to be rendered in a current scan line of said image and updating a record of contribution indicators associated with the corresponding said objects; for each adjacent pair of edge intersections, examining at least the corresponding contribution indicators to determine a (first) set of said objects that contribute to pixel values in a span of pixel locations between the corresponding edge **intersections; and for those identified objects within said first set of each said span, receiving a compositing message and determining therefrom at least a compositing operation for each said record in said stack; for each said span of pixel locations, using the corresponding (first) set, said compositing operations and the corresponding said colour and opacity values, to determine an output pixel value for each pixel location within said span by compositing the stack records.
In accordance with another aspect of the present invention there is disclosed a method of rendering a plurality of graphic objects each having at least one edge to form a raster pixel image including a plurality of scan lines and a plural of pixel locations within each said scan line, said computer program product being configured to implement, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those of said objects that intersect said scan line; CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -7- -for each edge intersection so determined, modifying an integral clip count associated with the corresponding said object; for each adjacent pair of edge intersections, examining the corresponding clip counts to determine a set of said objects that contribute to said raster pixel image for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of contributing objects to determine a value for each said pixel location within said span.
In accordance with another aspect of the present invention there is disclosed a lo method of rendering a plurality of graphic objects each having at least one edge to form a raster pixel image including a plurality of scan lines and a plural of pixel locations within each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those of said objects that intersect said scan line; 15 for each edge intersection so determined, modifying each of an integral fill count and an integral clip count associated with the corresponding said object; for each adjacent pair of edge intersections, examining the corresponding fill counts and clip counts to determine a set of said objects that contribute to said raster pixel image for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of contributing objects to determine a value for each said pixel location within said span.
In accordance with another aspect of the present invention there is disclosed a i method of rendering at least one graphic object described by at least one edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, updating a table of those said objects current on said scan line, said table including an independence entry for each said object indicating that a colour reproduced by said object is independent of a position within said object; for each adjacent pair of edge intersections, examining said table to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections and forming a rendering instruction based upon CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISPA\UFR\UFRgr-1 \47273 8.doc said set of objects, said rendering instruction including an indicator that is valid when each of the objects of said set has a corresponding valid independence entry; and determining rendered pixel values using said rendering instruction and said indicator.
In accordance with another aspect of the present invention there is disclosed a method of rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, each said graphic object including an independence entry indicating that a colour reproduced by said object is independent of a position within said object, said io method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each adjacent pair of edge intersections, determining a set of said objects active for a span of pixel locations between the corresponding pair of edge S. 15 intersections and forming a rendering instruction based upon said set of objects, said *o S rendering instruction including an indicator that is valid when each of the objects of said set has a corresponding valid independence entry; and determining rendered pixel values using said rendering instruction and 20 said indicator.
20 Preferably a repeat rendering message generated in performing graphic object rendering, wherein each said graphic object is provided with a flag indicative of an independence of said object to a change in pixel colour whereby when a set of said ooo. objects are to be rendered simultaneously for a span of pixel locations, an indicator for said set is made valid if each of the objects in the set has a valid independence flag so that only a first pixel of said span need be rendered and thereafter that pixel is repeatedly output until the end of the span.
Other aspects of the present invention including corresponding apparatus and computer readable media will be apparent from the following description.
Brief Description of the Drawings A preferred embodiment of the present invention will now be described with reference to the accompanying drawings and table in which: Fig. 1 is a schematic block diagram representation of a computer system incorporating the preferred embodiment; 472738.doc -9- Fig. 2 is a block diagram showing the functional data flow of the preferred embodiment; Fig. 3 is a schematic block diagram representation of the pixel sequential rendering apparatus and associated display list and temporary stores of the preferred embodiment; Fig. 4 is a schematic functional representation of the edge processing module of Fig. 2; Fig. 5 is a schematic functional representation of the priority determination module of Fig. 2; Fig. 6 is a schematic functional representation of the fill data determination module of Fig. 2; Figs. 7A to 7C illustrate pixel combinations between source and destination; Fig. 8 illustrates a two-object image used as an example for explaining the o operation of preferred embodiment; Figs. 9A and 9B illustrate the vector edges of the objects of Fig. 8; Fig. 10 illustrates the rendering of a number of scan lines of the image of Fig. 8; Fig. 11 depicts the arrangement of an edge record for the image of Fig. 8; Figs. 12A to 12J illustrate the edge update routine implemented by the arrangement of Fig. 4 for the example of Fig. Figs. 13A and 13B illustrate the odd-even and non-zero winding fill rules; Figs. 14A to 14E illustrate how large changes in X coordinates contribute to spill conditions and how they are handled; :Figs. 15A to 15E illustrates the priority filling routine implemented by the arrangement of Fig. Figs. 16A to 16D provide a comparison between two prior art edge description formats and that used in the preferred embodiment; Figs. 17A and 17B show a simple compositing expression illustrated as an expression tree and a corresponding depiction; Fig. 18A depicts a table configured for ensuring accurate stack operations; Fig. 18B is a preferred form of the table of Fig. 18A; Fig. 19 is an example expression tree; Figs 20A to 20F depict an activity table evaluation of the expression of Fig. 19 and the corresponding compositing stacks during such evaluation; Figs. 20G to 201 depict various configurations of the activity table and associated modules; CFP1449AU UFRgr-1 =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr-1 \472738.doc Fig. 21 depicts the result of a number of compositing operations; Fig. 22 shows an expression tree for implementing a series of Porter and Duff compositing operations on objects A, B, C and D; Fig 23 shows a level activation table for implementing the binary tree structure shown in Fig. 22; Fig. 24 shows the objects of the binary tree shown in Figure 22 placed over transparent glass objects; Fig. 25 shows a modified expression tree for implementing the arrangement shown in Fig. 24; Fig. 26 shows a level activation table for implementing the expression tree of Figure Fig. 27 shows an alternative level activation table for the example shown in S•Figs. 24 and 25, in which the transparent boxes are clipped with A, B, C and D; Fig. 28 shows an expression tree for the operation C out D; Fig. 29 shows a level activation table for implementing the clipping shown in Fig. 28; Figs. 30 and 31 show compositing stack operations for non-trivial Porter and Duff compositing operators; Fig. 32 shows active regions for various operators; Fig. 33 shows a similar expression tree to that shown in Fig. 22, with a preliminary analysis of the steps involved in implementing the expression; Fig. 34 shows the active regions for the A in B expression from the expression tree shown in Fig. 33; Fig. 35 shows stack operations necessary to perform the in operation shown in Fig. 34; Fig. 36 is a detailed view of the over operation of Fig. 33, showing active regions from the in and out operations below; Fig. 37 shows a state of the stack for each of the regions to be considered in relation to the expression of Fig. 36; Fig. 38 shows level activation table entries for implementing the operation shown in Figs. 36 and 37; Fig. 39 shows the final over operation from the expression tree of Fig. 33, indicating the active regions from the over and page expressions below; Fig. 40 shows the regions to be considered in the expression of Fig. 39; CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -11- Fig. 41 shows the resulting entries for the level activation table for implementing the expression shown in Fig. 39; Fig. 42 shows a C out D operation prior to implementing clipping to active regions; and Fig. 43 shows the C out D operation after clipping the individual levels to their active regions.
Detailed Description Fig. 1 illustrates schematically a computer system 1 configured for rendering and presentation of computer graphic object images. The system includes a host processor 2 associated with system random access memory (RAM) 3, which may include a nonvolatile hard disk drive or similar device 5 and volatile, semiconductor RAM 4. The system 1 also includes a system read-only memory (ROM) 6 typically founded upon 66e* semiconductor ROM 7 and which in many cases may be supplemented by compact disk *o O devices (CD ROM) 8. The system 1 may also incorporate some means 10 for displaying 15 images, such as a video display unit (VDU) or a printer, both of which operate in raster fashion.
The above-described components of the system 1 are interconnected via a bus system 9 and are operable in a normal operating mode of computer systems well known in the art, such as IBM PC/AT type personal computers and arrangements evolved therefrom, Sun Sparcstations and the like.
•0 Also seen in Fig. 1, a pixel sequential rendering apparatus 20 connects to the bus 9, and in the preferred embodiment is configured for the sequential rendering of *pixel-based images derived from graphic object-based descriptions supplied with *000 or instructions and data from the system 1 via the bus 9. The apparatus 20 may utilise the system RAM 3 for the rendering of object descriptions although preferably the rendering apparatus 20 may have associated therewith a dedicated rendering store arrangement typically formed of semiconductor RAM.
Referring now to Fig. 2, a functional data flow diagram of the preferred embodiment is shown. The functional flow diagram of Fig. 2 commences with an object graphic description 11 which is used to describe those parameters of graphic objects in a fashion appropriate to be generated by the host processor 2 and/or, where appropriate, stored within the system RAM 3 or derived from the system ROM 6, and which may be interpreted by the pixel sequential rendering apparatus 20 to render therefrom pixel-based images. For example, the object graphic description 11 may incorporate objects with edges in a number of formats including straight edges (simple vectors) that traverse from CFPI449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\C ISRA\UFR\UFRgr- 1 \472738.doc 12one point on the display to another, or an orthogonal edge format where a twodimensional object is defined by a plurality of edges including orthogonal lines. Further formats, where objects are defined by continuous curves, are also appropriate and these can include quadratic polynomial fragments where a single curve may be described by a number of parameters which enable a quadratic based curve to be rendered in a single output space without the need to perform multiplications. Further data formats such as cubic splines and the like may also be used. An object may contain a mixture of many different edge types. Typically, common to all formats are identifiers for the start and end of each line (whether straight or curved) and typically, these are identified by a scan line number thus defining a specific output space in which the curve may be rendered.
For example, Fig. 16A shows a prior art edge description of an edge 600 that is required to be divided into two segments 601 and 602 in order for the segments to be adequately described and rendered. This arises because the prior art edge description, whilst being simply calculated through a quadratic expression, could not accommodate an 15 inflexion point 604. Thus the edge 600 was dealt with as two separate edges having end points' 603 and 604, and 604 and 605 respectively. Fig. 16B shows a cubic spline 610 which is described by end points 611 and 612, and control points 613 and 614. This format requires calculation of a cubic polynomial for render purposes and thus is 00 •expensive of computational time.
Figs. 16C and 16D show examples of edges applicable to the preferred S embodiment. In the preferred embodiment, a edge is considered as a single entity and if necessary, is partitioned to delineate sections of the edge that may be described in 00.0 different formats, a specific goal of which is to ensure a minimum level of complexity for the description of each section.
In Fig. 16C, a single edge 620 is illustrated spanning between scan lines A and M. An edge is described by a number of parameters including startx start__y, one or more segment descriptions which include an address that points to the next segment in the edge, and a finish segment used to terminate the edge. According to the preferred embodiment, the edge 620 may be described as having three step segments, a vector segment, and a quadratic segment. A step segment is simply defined as having an x-step value and a y-step value. For the three step segments illustrated, the segment descriptions are and Note that the x-step value is signed thereby indicating the direction of the step, whilst the y-step value is unsigned as such is always in a raster scan direction of increasing scan line value. The next segment is a vector segment which typically requires parameters start_x, start_y, finishy and slope In this example, CFP1449AU UFRgr-I =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1 :\ELEC\CISRA\UFR\UFRgr- I \472738.doc -13 because the vector segment is an intermediate segment of the edge 620, the startx and start_y may be omitted because such arise from the preceding segment(s). The slope value (DX) is signed and is added to the x-value of a preceding scan line to give the xvalue of the current scan line, and in the illustrated case, DX The next segment is a quadratic segment which has a structure corresponding to that of the vector segment, but also a second order value (DDX) which is also signed and is added to DX to alter the slope of the segment.
Fig. 16D shows an example of a cubic curve according the preferred embodiment which includes a description corresponding to the quadratic segment save for the addition of a signed third-order value (DDDX), which is added to DDX to vary the rate of change of slope of the segment. Many other orders may also be implemented.
:It will be apparent from the above that the ability to handle plural data formats describing edge segments allows for simplification of edge descriptions and evaluation, without reliance on complex and computationally expensive mathematical operations. In 0 15 contrast, in the prior art system of Fig. 16A, all edges, whether, orthogonal, vector or quadratic, were required to be described by the quadratic form.
The operation of the preferred embodiment will be described with reference to the simple example of rendering an image 78 shown in Fig. 8. The image 78 is seen to include two graphical objects, in particular, a partly transparent blue-coloured triangle 20 rendered on top of and thereby partly obscuring an opaque red coloured rectangle 90. As o* seen, the rectangle 90 includes side edges 92, 94, 96 and 98 defined between various pixel positions and scan line positions Because the edges 96 and 98 are formed upon the scan lines (and thus parallel therewith), the actual object description of the 000005 rectangle 90 can be based solely upon the side edges 92 and 94, such as seen in Fig. 9A.
In this connection, edge 92 commences at pixel location (40,35) and extends in a raster direction down the screen to terminate at pixel position (40,105). Similarly, the edge 94 extends from pixel position (160,35) to position (160,105). The horizontal portions of the rectangular graphic object 90 may be obtained merely by scanning from the edge 92 to the edge 94 in a rasterised fashion.
The blue triangular object 80 however is defined by three object edges 82, 84 and 86, each seen as vectors that define the vertices of the triangle. Edges 82 and 84 are seen to commence at pixel location (100,20) and extend respectively to pixel locations (170,90) and (30,90). Edge 86 extends between those two pixel locations in a traditional rasterised direction of left to right. In this specific example because the edge 86 is horizontal like the edges 96 and 98 mentioned above, is it not essential that the edge 86 be CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-I \472738.doc 14defined, since the edge 86 is characterised by the related endpoints of the edges 82 and 84. In addition to the starting and ending pixel locations used to describe the edges 82 and 84, each of these edges will have associated therewith the slope value in this case +1 and -1 respectively.
Fig. 10 shows the manner in which the rectangle 90 is rendered, this commencing on scan line 35 and how the edges 82 and 84 intersect the scan line 35. It will be apparent from Fig. 10 that the rasterisation of the image 78 requires resolution of the two objects 90 and 80 in such a fashion that the object having the higher priority level is rendered "above" that with a lower priority level. This is seen from Fig. 11 which io represents an edge list record used for the rendering of the image 78. The record of Fig. 11 includes two entries, one for each of the objects, and which are arranged at a scan line value corresponding to the start, in a raster rendering order, of the respective object.
It will be seen from Fig. 11 that the edge records each have an associated priority level of the object and further detail regarding the nature of the edge being described (eg. colour, s15 slope, etc.) Returning to Fig. 2, having identified the data necessary to describe the graphic objects to the rendered, the graphic systems 1 then performs a display list generation step 12.
The display list generation 12 is preferably implemented as a software module executing on the host processor 2 with attached ROM 6 and RAM 3. The display list generation 12 converts an object graphics description, expressed in any one or more of the well known graphic description languages, graphic library calls, or any other application specific format, into a display list. The display list is typically written into a display list *•ooo S° store 13, generally formed within the RAM 4 but which may alternatively be formed within the rendering stores 30. As seen in Fig. 3, the display list store 13 can include a number of components, one being an instruction stream 14, another being edge information 15 and where appropriate, raster image pixel data 16.
The instruction stream 14 includes code interpretable as instructions to be read by the pixel sequential rendering apparatus 20 to render the specific graphic objects desired in any specific image. For the example of the image shown in Fig. 8, the instruction stream 14 could be of the form of: render (nothing) to scan line at scan line 20 add two blue edges 82 and 84; render to scan line at scan line 35 add two red edges 92 and 94; CFP1449AU UFRgr-1 =03i,02i,06i,07i,lOi,05d,09d,13d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr- I \47 273 8.doc render to completion.
Similarly, the edge information 15 for the example of Fig. 8 may include the following: edge 84 commences at pixel position 100, edge 82 commences at pixel position 100; edge 92 commences at pixel position 40, edge 94 commences at pixel position 160; edge 84 runs for 70 scan lines, edge 82 runs for 70 scan lines; edge 84 has slope edge 84 has slope +1; edge 92 has slope 0 edge 94 has slope 0; and edges 92 and 94 each run for 70 scan lines.
It will be appreciated from the above example of the instruction stream 14 and edge information 15, and the manner in which each are expressed, that in the image 78 of Fig. 8, the pixel position and the scan line value define a single output space in io s15 which the image 78 is rendered. Other output space configurations however can be realised using the principles of the present disclosure.
Fig. 8 includes no raster image pixel data and hence none need be stored in the store portion 16 of the display list 13, although this feature will be described later.
The display list store 13 is read by a pixel sequential rendering apparatus 20 which is typically implemented as an integrated circuit. The pixel sequential rendering apparatus 20 converts the display list into a stream of raster pixels which can be forwarded to another device, for example, a printer, a display, or a memory store.
Although the preferred embodiment describes the pixel sequential rendering ooeol S° apparatus 20 as an integrated circuit, it may be implemented as an equivalent software module executable on a general purpose processing unit, such as the host processor 2.
The software module may form part of a computer program product which may be delivered to a user via a computer readable medium, such as a disk device or computer network.
Fig. 3 shows the configuration of the pixel sequential rendering apparatus 20, the display list store 13 and the temporary rendering stores 30. The processing stages 22 of the pixel-sequential render apparatus 20 include an instruction executor 300, an edge processing module 400, a priority determination module 500, a fill colour determination module 600, a pixel compositing module 700, and a pixel output module 800. The processing operations use the temporary stores 30 which as noted above, may share the same device (eg. magnetic disk or semiconductor RAM) as the display list store 13, or CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,l 3d,15d 472738 I:\ELEC\C ISRA\UFR\UFRgr-1 \472738.doc -16may be implemented as individual stores for reasons of speed optimisation. The edge processing module 400 uses an edge record store 32 to hold edge information which is carried forward from scan-line to scan-line. The priority determination module 500 uses a priority properties and status table 34 to hold information about each priority, and the current state of each priority with respect to edge crossings while a scan-line is being rendered. The fill colour determination module 600 uses a fill data table 36 to hold information required to determine the fill colour of a particular priority at a particular position. The pixel compositing module 700 uses a pixel compositing stack 38 to hold intermediate results during the determination of an output pixel that requires the colours from multiple priorities to determine its value.
The display list store 13 and the other stores 32-38 detailed above may be implemented in RAM or any other data storage technology.
The processing steps shown in the embodiment of Fig. 3 take the form of a processing pipeline 22. In this case, the modules of the pipeline may execute i s15 simultaneously on different portions of image data in parallel, with messages passed between them as described below. In another embodiment, each message described below may take the form of a synchronous transfer of control to a downstream module, with upstream processing suspended until the downstream module completes the processing of the message.
20 The instruction executor 300 reads and processes instructions from the instruction stream 14 and formats the instructions into messages that transferred via an output 398 to the other modules 400, 500, 600 and 700 within the pipeline 22. In the preferred embodiment, the instruction stream 14 may include the instructions: o LOAD PRIORITY PROPERTIES: This instruction is associated with data to be loaded into the priority properties and status table 34, and an address in that table to which the data is to be loaded. When this instruction is encountered by the instruction executor 300, the instruction executor 300 issues a message for the storage of the data in the specified location of the priority properties and status table 34. This may be accomplished by formatting a message containing this data and passing it down the processing pipeline 22 to the priority determination module 500 which performs the store operation.
LOAD FILL DATA: This instruction is associated with data to be loaded into the fill data table 36, and an address in that table to which the data is to be loaded. When this instruction is encountered by the instruction executor 300, the instruction executor 300 issues a message for the storage of the data at the specified address of the fill data CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,1 3d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr-1 \47273 8.doc -17table 36. This may be accomplished by formatting a message containing this data and passing it down the processing pipeline 22 to the fill data determination module which performs the store operation.
LOAD NEW EDGES AND RENDER: This instruction is associated with an address in the display list store 13 of new edges 15 which are to be introduced into the rendering process when a next scan line is rendered. When this instruction is encountered by the instruction executor, the instruction executor 300 formats a message containing this data and passes it to the edge processing module 400. The edge processing module 400 stores the address of the new edges in the edge record store 32. The edges at the specified address are sorted on their initial scan line intersection coordinate before the next scan line is rendered. In one embodiment, the edges are sorted by the display list generation process 12. In another embodiment, the edges are sorted by the pixelsequential rendering apparatus .:.":SETSCAN LINELENGTH: This instruction is associated with a number of 15 pixels which are to be produced in each rendered scan line. When this instruction is o! encountered by the instruction executor 300, the instruction executor 300 passes the value to the edge processing module 400 and the pixel compositing module 700.
SETOPACITY MODE: This instruction is associated with a flag which indicates whether pixel compositing operations will use an opacity channel (also known in the art as an alpha channel). When this instruction is encountered by the instruction executor 300, the instruction executor 300 passes the flag value in the pixel compositing module 700.
The instruction executor 300 is typically formed by a microcode state machine °which maps instructions and decodes them into pipeline operations for passing to the various modules. A corresponding software process may alternatively be used.
The operation of the edge processing module 400 during a scan line render operation will now be described with reference to Fig. 4. The initial conditions for the rendering of a scan line is the availability of three lists of edge records. Any or all of these lists may be empty. These lists are a new edge list 402, obtained from the edge information 15 and which contains new edges as set by the LOAD_NEW_EDGES_AND_RENDER instruction, a main edge list 404 which contains edge records carried forward from the previous scan line, and a spill edge list 406 which also contains edge records carried forward from the previous scan line. Each edge record may include: CFPI449AU UFRgr-I =03i,02i,06i,07i,10i,05d,09d,1 3d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr-1 \47273 8.doc F -18a current scan line intersection coordinate (referred to here as the X coordinate), (ii) a count (referred to herein as NY) of how many scan lines a current segment of this edge will last for (in some embodiments this may be represented as a Y limit), (iii) a value to be added to the X coordinate of this edge record after each scan line (referred to here as the DX), (iv) a value to be added to the DX of this edge record after each scan line (referred to here as the DDX), one or more priority numbers (vi) a direction (DIR) flag which indicates whether the edge crosses scan lines in an upward or a downward manner, and (vii) an address (ADD) of a next edge segment in the list.
Such a format accommodates vectors, orthogonally arranged edges and quadratic 15 curves. The addition of further parameters, DDDX for example, may allow such an arrangement to accommodate cubic curves. In some applications, such as cubic Bezier spline, a 6-order polynomial (ie: up to DDDDDDX) may be required.
For the example of the edges 84 and 94 of Fig. 8, the corresponding edge records at scan line 20 could read as follows in Table 1: TABLE 1 r Edge 84 Edge 92 X 100 X NY 70 NY DX 1 DX 0 DDX 0 DDX 0 P =1 P =0 DIR DIR ADD (irrelevant in this example) ADD (irrelevant in this example) In this description, coordinates which step from pixel to pixel along a scan line being generated by the rendering process will be referred to as X coordinates, and coordinates which step from scan line to scan line will be referred to as Y coordinates.
CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -19- Preferably, each edge list contains zero or more records placed contiguously in memory.
Other storage arrangements, including the use of pointer chains, are also possible. The records in each of the three lists 402, 404 and 406 are arranged in order of scan line intersection coordinate. This is typically obtained by a sorting process, initially managed by an edge input module 408 which receives messages, including edge information, from the instruction executor 300. It is possible to relax the sort to only regard the integral portion of each scan line intersection coordinate as significant. It is also possible to relax the sort further by only regarding each scan line intersection coordinate, clamped to the minimum and maximum X coordinates which are being produced by the current rendering process. Where appropriate, the edge input module 408 relays messages to modules 500, 600 and 700 downstream in the pipeline 22 via an output 498.
The edge input module 408 maintains references into and receives edge data from each of the three lists 402, 404, and 406. Each of these references is initialised to s15 refer to the first edge in each list at the start of processing of a scan line. Thereafter, the edge input module 408 selects an edge record from one of the threereferenced edge records such that the record selected is the one with the least X coordinate out of the three referenced records. If two or more of the X-records are equal, each are processed in any order and the corresponding edge crossings output in the following fashion. The reference which was used to select that record is then advanced to the next record in that list. The edge just selected is formatted into a message and sent to an edge update module 410. Also, certain fields of the edge, in particular the current X, the priority numbers, and the direction flag, are formatted into a message which is forwarded to the priority determination module 500 as an output 498 of the edge processing module 400.
Embodiments which use more or fewer lists than those described here are also possible.
Upon receipt of an edge, the edge update module 410 decrements the count of how many scan lines for which a current segment will last. If that count has reached zero, a new segment is read from the address indicated by the next segment address. A segment specifies: a value to add to the current X coordinate immediately the segment is read, (ii) a new DX value for the edge, (iii) a new DDX value for the edge, and (iv) a new count of how many scan lines for which the new segment will last.
If there is no next segment available at the indicated address, no further processing is performed on that edge. Otherwise, the edge update module 410 calculates CFPI449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CIS RA\UFR\UFRgr- I \4727338.doc the X coordinate for the next scan line for the edge. This typically would involve taking the current X coordinate and adding to it the DX value. The DX may have the DDX value added to it, as appropriate for the type of edge being handled. The edge is then written into any available free slot in an edge pool 412, which is an array of two or more edge records. If there is no free slot, the edge update module 410 waits for a slot to become available. Once the edge record is written into the edge pool 412, the edge update module 410 signals via a line 416 to an edge output module 414 that a new edge has been added to the edge pool 412.
As an initial condition for the rendering of a scan line, the edge output module 414 has references to each of a next main edge list 420 and a next spill edge list 422, not seen in Fig. 4 but associated with the lists 404 and 406 in the edge record 32.
Each of these references is initialised to the location where the, initially empty, lists 420 and 422 may be built up. Upon receipt of the signal 416 indicating that an edge has been added to the edge pool 412, the edge output module 414 determines whether or not the 0" 15 edge just added has a lesser X coordinate than the edge last written to the next main edge list 420 (if any). If this is true, a "spill" is said to have occurred because the edge cannot be appended to the main edge list 404 without violating its ordering criteria. When a spill occurs, the edge is inserted into the next spill edge list 422, preferably in a manner that maintains a sorted next spill edge list 422. For example this may be achieve using a 20 software sorting routine. In some embodiments spills may be triggered by other *000.conditions, such as excessively large X coordinates.
If the edge added to the edge pool 412 has an X coordinate greater than or equal to the edge last written to the next main edge list 420 (if any), and there are no free slots S available in the edge pool 412, the edge output module 414 selects the edge from the edge pool 412 which has the least X coordinate, and appends that edge to the next main edge list 420, extending it in the process. The slot in the edge pool 412 which was occupied by that edge is then marked as free.
Once the edge input module 408 has read and forwarded all edges from all three of its input lists 402, 404 and 406, it formats a message which indicates that the end of scan line has been reached and sends the message to both the priority determination module 500 and the edge update module 410. Upon receipt of that message, the edge update module 410 waits for any processing it is currently performing to complete, then forwards the message to the edge output module 414. Upon receipt of the message, the edge output module 414 writes all remaining edge records from the edge pool 412 to the next main edge list 404 in X order. Then, the reference to the next main edge list 420 and CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr-1 \47273 8.doc -21the main edge list 404 are exchanged between the edge input module 408 and the edge output module 414, and a similar exchange is performed for the next spill edge list 422 and the spill edge list 406. In this way the initial conditions for the following scan line are established.
Rather than sorting the next spill edge list 422 upon insertion of edge records thereto, such edge records may be merely appended to the list 422, and the list 422 sorted at the end of the scan line and before the exchange to the current spill list 406 becomes active in edge rasterisation of the next scan line. Other methods of sorting the edges involving fewer or more lists may be used, as well as different sorting algorithms.
It can be deduced from the above that edge crossing messages are sent to the priority determination module 500 in scan line and pixel order (that is, they are ordered firstly on Y and then on X) and that each edge crossing message is labelled with the priority to which it applies.
Fig. 12A depicts a specific structure of an active edge record 418 that may be 15 created by the edge processing module 400 when a segment of an edge is received. If the first segment of the edge is a step (orthogonal) segment, the X-value of the edge is added to a variable called "X-step" for the first segment to obtain the X position of the activated edge. Otherwise, the X-value of the edge is used. This means that the edges in the new S•edge record must be sorted by Xedge Xstep. The Xstep of the first segment should, therefore, be zero, in order to simplify sorting the edges. The Y-value of the first segment is loaded into the NY field of the active edge record 418. The DX field of the active 0o o edges copied from the DX field identifier of vector or quadratic segments, and is set to zero for a step segment. A u-flag as seen in Fig. 12A is set if the segment is upwards heading (see the description relating to Fig. 13A). A q-flag is set if the segment is a quadratic segment, and cleared otherwise. An i-flag is provided and is set if the segment is invisible. A d-flag is set when the edge is used as a direct clipping object, without an associated clipping level, and is applicable to closed curves. The actual priority level of the segment, or a level address is copied from the corresponding field of the new edge record into a level (ADDR) field in the active edge record 418. A segment address/DDX field of the active edge record 418 is either the address of the next segment in the segment list or copied from the segment's DDX value, if the segment is quadratic. The segment address is used to terminate an edge record. As a consequence, in the preferred embodiment, any quadratic curve (ie: that uses the DDX filed) will be a terminal segment of an edge record.
CFPI449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr-1 \47273 8.doc -22- It will be appreciated from Fig. 12A that other data structures are also possible, and necessary for example where higher-order polynomial implementations are used.
Further, the segment address and the DDX field may be separated into different fields, and additional flags provided to meet alternate implementations.
Fig. 12B depicts the arrangement of the edge records described above in the preferred embodiment and used in the edge processing module 400. The edge pool 412 is supplemented by a new active edge record 428, a current active edge record 430 and a spill active edge record 432. As seen in Fig. 12B, the records 402, 404, 406, 420 and 422 are dynamically variable in size depending upon the number of edges being rendered at any one time. Each record includes a limit value which, for the case of the new edge list 402, is determined by a SIZE value incorporated with the LOADEDGESAND RENDER instruction. When such an instruction is encountered, SIZE is checked and if non-zero, the address of the new edge record is loaded and a limit value is calculated which determines a limiting size for the list 402.
Although the preferred embodiments utilises arrays and associated pointers for the handling of edge records, other implementations, such as linked lists for example may be used. These other implementations may be hardware or software-based, or combinations thereof.
The specific rendering of the image 78 shown in Fig. 8 will now be described with reference to scan lines 34, 35 and 36 shown in Fig. 10. In this example, the calculation of the new X co-ordinate for the next scan line is omitted for the purposes of clarity, with Figs. 12C to 121 illustrating the output edge crossing being derived from one of the registers 428, 430 and 432 of the edge pool 412 "Fig. 12C illustrates the state of the lists noted above at the end of rendering scan line 34 (the top portion of the semi-transparent blue triangle 80). Note that in scan line 34 there are no new edges and hence the list 402 is empty. Each of the main edge lists 404 and next main edge list 420 include only the edges 82 and 84. Each of the lists includes a corresponding pointer 434, 436, and 440 which, on completion of scan line 34, point to the next vacant record in the corresponding list. Each list also includes a limit pointer 450, denoted by an asterisk which is required to point to the end of the corresponding list. If linked lists were used, such would not be required as linked lists include null pointer terminators that perform a corresponding function.
As noted above, at the commencement of each scan line, the next main edge list 420 and the main edge list 404 are swapped and new edges are received into the new edge list 402. The remaining lists are cleared and each of the pointers set to the first CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,1 3d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr-1 \472738.doc -23member of each list. For the commencement of scan line 35, the arrangement then appears as seen in Fig. 12D. As is apparent from Fig. 12D, the records include four active edges which, from Fig. 10, are seen to correspond to the edges 92, 94, 84 and 82.
Referring now to Fig. 12E, when rendering starts, the first segment of the new edge record 402 is loaded into an active edge record 428 and the first active edge records of the main edge list 404 and spill edge list 406 are copied to records 430 and 432 respectively. In this example, the spill edge list 406 is empty and hence no loading takes place. The X-positions of the edges within the records 428, 430 and 432 are then compared and an edge crossing is emitted for the edge with the smallest X-position. In 1o this case, the emitted edge is that corresponding to the edge 92 which is output together with its priority value. The pointers 434, 436 and 438 are then updated to point to the next record in the list.
o The edge for which the edge crossing was emitted is then updated (in this case by adding DX 0 to its position), and buffered to the edge pool 412 which, in this 5 example, is sized to retain three edge records. The next entry in the list from which the emitted edge arose (in this case list 402) is loaded into the corresponding record (in this case record 428). This is seen in Fig. 12F.
Further, as is apparent from Fig. 12F, a comparison between the registers 428, 430 and 432 again selects the edge with the least X-value which is output as the appropriate next edge crossing (X=85, Again, the selected output edge is updated and added to the edge pool 412 and"all the appropriate pointers incremented. In this case, the updated value is given by X X DX, which is evaluated as 84 85 1. Also, as seen, the new edge pointer 434 is moved, in this case, to the end of the new edge list 402.
In Fig. 12G, the next edge identified with the lowest current X-value is again that obtained from the register 430 which is output as an edge crossing (X=115, P=2).
Updating of the edge again occurs with the value be added to the edge pool 412 as shown.
At this time, it is seen that the edge pool 412 is now full and from which the edge with the smallest X-value is selected and emitted to the output list 420, and the corresponding limited pointer moved accordingly.
3o As seen in Fig. 12H, the next lowest edge crossing is that from the register 428 which is output (X=160 The edge pool 412 is again updated and the next small Xvalue emitted to the output list 420.
At the end of scan line 35, and as seen in Fig. 121, the contents of the edge pool 412 are flushed to the output list 420 in order of smallest X-value. As seen in Fig. 12J, the next main edge list 420 and the main edge list 404 are swapped by CFP1449AU UIFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\E LEC\C ISRA\UFR\UFRgr- I \4727338.doc 24 exchanging their pointers in anticipation of rendering the next scan line 36. After the swapping, it is seen from Fig. 12J that the contents of the main edge list 404 include all edge current on scan line 36 arranged in order of X-position thereby permitting their convenient access which facilitates fast rendering.
Ordinarily, new edges are received by the edge processing module 400 in order of increasing X-position. When a new edge arrives, its position is updated (calculated for the next scan line to be rendered) and this determines further action as follows: if the updated position is less than the last X-position output on the line 498, the new edge is insertion sorted into the main spill list406 and the corresponding limit register updated; otherwise, if there is space, it is retained in the edge pool 412.
*As is apparent from the forgoing, the edge pool 412 aids in the updating of the lists in an ordered manner in anticipation of rendering the next scan line in the rasterised image. Further, the size of the edge pool 412 may be varied to accommodate larger 0'o 0 15 numbers of non-ordered edges. However, it will be appreciated that in practice the edge pool 412 will have a practical limit, generally dependent upon processing speed and available memory with the graphic processing system. In a limiting sense, the edge •pool 412 may be omitted which would ordinarily require the updated edges to be insertion sorted into the next output edge list 420. However, in the preferred embodiment this S 20 situation is avoided, as a normal occurrence through the use of the spill lists mentioned above. The provision of the spill lists allows the preferred embodiment to be implemented with an edge pool of practical size and yet handle relatively complex edge intersections without having to resort to software intensive sorting procedures. In those small number of cases where the edge pool and spill list are together insufficient to accommodate the edge intersection complexity, sorting methods may be used.
An example of where the spill list procedure is utilised is seen in Fig. 14A where three arbitrary edges 60, 61 and 63 intersect an arbitrary edge 62 at a relative position between scan lines A and B. Further, the actual displayed pixel locations 64 for each of scan lines A, B, are shown which span pixel locations C to J. In the above described example where the edge pool 412 is size to retain three edge records, it will be apparent that such an arrangement alone will not be sufficient to accommodate three edge intersections occurring between adjacent scan lines as illustrated in Fig. 14A.
Fig. 14B shows the state of the edge records after rendering the edges 60, 61 and 63 on scan line. The edge crossing H is that most recently emitted and the edge pool 412 is full with the updated X-values E, G and I for the edges 60, 61 and 63 CFPI 449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 IA\ELEC\C IS RA\UFR\UFRgr- 1 \47273 8.doc 25 respectively for the next scan line, scan line B. The edge 62 is loaded into the current active edge record430 and because the edge pool 412 is full, the lowest X-value, corresponding to the edge 60 is output to the output edge list 420.
In Fig. 14C, the next edge crossing is emitted (X J for edge 62) and the corresponding updated value determined, in this case X C for scan line B. Because the new updated value X C is less than the most recent value X E copied to the output list 420, the current edge record and its corresponding new updated value is transferred directly to the output spill list 422.
Fig. 14D shows the state of the edge records at the start of scan line B where it is seen that the main and output lists, and their corresponding spill components have been swapped. To determine the first emitted edge, the edge 60 is loaded into the current so:%active edge register 430 and the edge 62 is loaded into the spill active edge register 432.
00 The X-values are compared and the edge 62 with the least X-value (X C) is emitted, updated and loaded to the edge pool 412.
15 Edge emission and updating continues for the remaining edges in the main edge list 404 and at the end of the scan line, the edge pool 412 is flushed to reveal the situation shown in Fig. 14E, where it is seen that each of the edges 60 to 63 are appropriately *r0 8 ordered for rendering on the next scan line, having been correctly emitted and rendered on scan line B.
fed 20 As will be apparent form the forgoing, the spill lists provide for maintaining •edge rasterisation order in the presence of complex edge crossing situations. Further, by virtue of the lists being dynamically variable in size, large changes in edge intersection numbers and complexity may be handled without the need to resort to sorting procedures in all but exceptionally complex edge intersections.
In the preferred embodiment the edge pool 412 is sized to retain eight edge records and size of the lists 404, 420 together with their associated spill lists 406, 422, is dynamically variable thereby providing sufficient scope for handling large images with complex edge crossing requirements.
The operation of the priority determination module 50 will now be described with reference to Fig. 5. Incoming messages 498 from the edge processing module 400, which may include set priority data messages, set fill data messages, edge crossing messages, and end of scan line messages, first pass through a first-in first-out (FIFO) buffer 518 before being read by a priority update module 506. The FIFO 518 acts to decouple the operation of the edge processing module 400 and the priority determination module 500. A priority state table 502, comprising part of the tables 34 mentioned above, CFP1449AU UFRgr-I= 03i,02i,06i,07i,10i,05d,09d,1 3d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1 \472738.doc 26is used to hold information about each object priority. Preferably the FIFO 518 is sized to enable the receipt from the edge processing module 400 and transfer to the priority state table 502 of a full scan line of edge-crossings in a single action. Such permits the priority determination module 500 to efficiently handle multiple edge-crossings at the same pixel location. Each record in the priority state table 502 records: a fill-rule flag which indicates whether this priority is to have its inside versus outside state determined by the application of the odd-even fill rule or the non-zero winding fill rule; (ii) a fill count which is modified in a manner indicated by the fill rule each time a edge effecting this priority is crossed; (iii) a clipper flag which indicates whether this priority is to be used for clipping or filling; S66, (iv) a clip type flag which, for edges which have the clipper flag set, records @606 o° whether the clipping type is a "clip-in" or a "clip-out"; a clip count which is decremented and incremented when a clip-in type clip region effecting this priority is entered and exited respectively, and incremented and decremented when a clip-out type clip region effecting this S•priority is entered and exited respectively; and 6 @666 0 (vi) a flag which records whether this priority requires levels beneath it to be o, 20 calculated first, referred to as the "need-below" flag.
Clipping objects are known in the art and act not to display a particular new object, but rather to modify the shape of an another object in the image. Clipping objects 000.
°06: can also be turned-on and turned-off to achieve a variety of visual effects. For example, the object 80 of Fig. 8 could be configured as a clipping object acting upon the object to remove that portion of the object 90 that lies beneath the clipping object 80. This may have the effect of revealing any object or image beneath the object 90 and within the clipping boundaries that would otherwise be obscured by the opacity of the object Figs. 13A and 13B demonstrate the application of the odd-even and non-zero winding rules. For the purposes of the non-zero winding rule, Fig. 13A illustrates how the edges 71 and 72 of an object 70 are allocated a notional direction, according to whether the edges are downwards-heading or upwards-heading respectively. In order to form a closed boundary, edges link nose-to-tail around the boundary. The direction given to an edge for the purposes of the fill-rule (applied and described later) is independent of the order in which the segments are defined. Edge segments are defined in the order in which they are tracked, corresponding to the rendering direction.
CFPI449AU UFRgr-I =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr- I\472738.doc -27- Fig. 13B shows a single object (a pentagram) having two downwards-heading edges 73 and 76, and three upwards-heading edges 74, 75 and 77. The odd-even rule operates by simply toggling a Boolean value as each edge is crosses the scan line in question, thus effectively turning-on or turning-off an object colour. The non-zero winding rule increments and decrements a fill count value dependent upon the direction of an edge being crossed. In Fig. 13B, the first two edges 73 and 76 encountered at the scan line are downwards-heading and thus traversal of those edge increment the fill count, to +1 and +2 respectively. The next two edges 74 and 77 encountered by the scan line are upwards-heading and accordingly decrement the fill count, to +1 and 0 respectively.
10 In some embodiments some of this information is associated with edges in the display list 13 and various edge lists described above, and forwarded as part of the edge crossing message to the priority determination module 500. In particular, the fill-rule flag, the clipper flag, the clip type flag, and the need-below flag may be handled in this manner.
Returning to Fig. 5, the priority update module 506 maintains a counter 524 which records the scan line intersection coordinate up to which it has completed processing. This will be referred to as the current X of the priority update module 506.
The initial value at the start of a scan line is zero.
Upon examining an edge crossing message received at the head of the FIFO 518, the priority update module 506 compares the X intersection value in the edge crossing message with its current X. If the X intersection value in the edge crossing message is less than or equal to the current X of the priority update module 506 processes the edge crossing message. Edge crossing message processing comes in two forms, "normal edge processing" (described below) is used when the record in the priority state table 502 indicated by the first priority in the edge crossing message has a clipper flag which indicates that this is not a clip priority, otherwise "clip edge processing" (described below) is performed.
A priority is active at a pixel if the pixel is inside the boundary edges which apply to the priority, according to the fill-rule for that priority, and the clip count for the priority is zero. A priority is exposed if it is the uppermost active priority, or if all the active priorities above it have their corresponding need-below flags set. In this fashion, pixel values may generated using only the fill data of the exposed priorities.
The need-below flag for a priority is established in the information of the display list and is used to inform the pixel generating system that any active priorities beneath the priority in question do not contribute to the pixel value being rendered, unless the flag is CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,l3d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -28set. The flag is cleared where appropriate to prevent extra compositing operations which would otherwise contribute nothing to the final pixel value.
"Normal edge processing" includes, for each priority in the edge crossing message and with reference to fields of the priority state table record indicated by that priority, the steps of: noting the current fill count of the current priority; (ii) either: if the fill rule of the current priority is odd-even, setting the fill count to zero if it is currently non-zero, else setting it to any non-zero value, 1o or if the fill rule of the current priority is non-zero winding, incrementing or decrementing (depending on the edge direction flag) the fill count; and (iii) comparing the new fill count with the noted fill count and if one is zero .o I°s15 and the other is non-zero performing an "active flag update" (described below) operation on the current priority.
Some embodiments may use a separate edge crossing message for each priority rather than placing a plurality of priorities in each edge crossing message.
An active flag update operation includes first establishing a new active flag for the current priority. The active flag is non-zero if the fill count for the priority in the priority state table 502 is non-zero and the clip count for the priority is zero, else the active flag is zero. The second step in the active flag update operation is to store the determined active flag in an active flags array 508 at the position indicated by the current priority, then if the need-below flag in the priority state table for the current priority is zero, also storing the active flag in an opaque active flags array 510 at the position indicated by the current priority.
"Clip edge processing" includes, with reference to fields of the priority state table record indicated by the first priority in the edge crossing message, the steps of: noting the current fill count of the current priority; (ii) either: if the fill rule of the current priority is odd-even, setting the fill count to zero if it is currently non-zero else setting it to any non-zero value, or CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-1 \472738.doc -29if the fill rule of the current priority is non-zero winding, incrementing or decrementing (depending on the edge direction flag) the fill count; and (iii) comparing the new fill count with the noted fill count and determining a s clip delta value of: zero, if both the new fill count is zero and the noted fill count is zero, or both the new fill count is non-zero and the noted fill count is nonzero, plus one, if the clip type flag of the current priority is clip-out and the 10 noted fill count is zero and the new fill count is non-zero, or the clip type flag of the current priority is clip-in and the noted fill count is "non-zero and the new fill count is zero, or otherwise, S(c) minus one; and (iv) for every subsequent priority after the first in the edge crossing message, add 15 the determined clip delta value to the clip count in the record in the priority state stable indicated by that subsequent priority, and if the clip count either moved from non-zero to zero, or from zero to non-zero in that process, performing an active flag update operation as described above on that subsequent priority. It should be noted that the initial value of each clip count is set by the LOAD_LEVEL_PROPERTIES instruction described previously. The clip count is typically initialised to the number ofclip-in priorities which affect each priority.
Some embodiments do not associate a priority with a clip, but instead directly increment and decrement the clip count of all priorities given in the edge crossing message. This technique can be used, for example, when clip shapes are simple and do not require the application of a complex fill rule. In this specific application, the clip count of the level controlled by an edge is incremented for an upwards heading edge or decremented for a downwards heading edge. A simple closed curve, described anticlockwise, acts a clip-in, whereas a simple closed curve, described clockwise, acts as a clip-out.
When the X intersection value in the edge crossing message is greater than the current X of the priority update module 506, the priority update module 506 forms a count of how many pixels to generate, being the difference between the X intersection value in the edge crossing message and the current X, this count is formatted into a priority generation message, which is sent via a connection 520 to a priority generation module 516. The priority update module 506 then waits for a signal 522 from the priority CFPI449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-1\472738.doc generation module 516 indicating that processing for the given number of pixels has completed. Upon receipt of the signal 522, the priority update module 506 sets its current X to the X intersection value in the edge crossing message and continues processing as described above.
The priority generation module 516 operates with reference to a priority data table 504, also formed within the tables 34, which is used to hold information about each priority. Each record in the priority data table 504 may include: a fill table address, (ii) a fill type, 0 (iii) a raster operation code, (iv) an alpha channel operation code, a "source pop" flag, S(vi) a "destination pop" flag, and (vii) a flag which records whether the colour of this priority is constant for a 5Is given Y, referred to here as the "x-independent" flag.
Upon receipt of a priority generation message 520, the priority generation module 516 performs a "pixel priority generation operation" (described below) a number of times indicated by the count it has been supplied, thereupon it signals 522 the priority update module 506 that it has completed the operation.
Each pixel priority generation operation includes firstly using a priority encoder 514 (eg. a 4096 to 12 bit priority encoder) on the opaque active flags array 510 to determine the priority number of the highest opaque active flag. This priority (if any) is used to index the priority data table 504 and the contents of the record so referenced is formed into a fill priority message output 598 from the priority generation module 516 and sent to the fill colour determination module 600. Further, if a priority was determined by the previous step (ie. there was at least one opaque active flag set), the determined priority is held, and is referred to as the "current priority". If no priority was determined the current priority is set to zero. The priority generation module 516 then repeatedly uses a modified priority encoder 512 on the active flag array 508 to determine the lowest active flag which is greater than the current priority. The priority so determined (if any) is used to index the priority data table 504 and the contents of the record so referenced is formed into a fill priority message and is sent 598 to the fill colour determination module 500, then the determined priority is used to update the current priority. This step is used repeatedly until there is no priority determined (that is, there is no priority flagged in the active flags which is greater than the current priority). Then the priority generation CFPI449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1 :\ELEC\CISRA\UFR\UFRgr-1\47273.doc -31 module 516 forms an end of pixel message and sends it to the fill colour determination module 600.
As a preferred feature to the basic operation described above, the priority generation module 516 notes the value of the x-independent flag of each message which it forwards to the fill colour determination module 600 while it processes the first pixel of a sequence. If all the forwarded messages have the x-independent flag specified, all subsequent messages in the span of pixels between adjacent edge intersections can be replaced by a single repeat specification of count minus one. This is done by producing a repeat message and sending it to the fill colour determination module 600 in place of all 0o further processing in this sequence.
As another preferred feature to the basic operation described above, the priority generation module 516 sends the highest opaque priority via the connection 522 to the priority update module 506 after each level generation message. The priority update module 506 holds this in a store 526. The priority determination module 506 then, 15 instead of a simple test that the X intersection in the message is greater than the current X, performs a test that the X intersection in the message is greater than the current X and that at least one of the levels in the message is greater than or equal to the highest opaque priority, before producing a pixel priority generation message. By doing this, fewer pixel priority determination operations may be performed and longer repeat sequences may be generated.
Where the repeat message or sequence of operation is not utilized, as may be desired in some implementations, a similar function may be achieved through the incorporation of a cache or FIFO (not illustrated) at the output of the priority generation module 516. Such may be implemented by a four cell cache, for example. The cache allows the priority update module 506 continue working as soon as the cache is loaded, thereby permitting the generation of the next priority level independent of the flushing of the cache to the output 598.
Using the example of the graphic objects shown in Figs. 8 and 9, the priority update process described above can be illustrated, for scan line 35 using the edge crossings seen from Figs. 12C to 12J, as seen in Figs. 15A to Figs. 15A to 15E illustrate operation of the priority tables 502 and 504, which in the preferred embodiment are merged for into a single table, called a level activation table 530, together with arrays 508, 510 and encoders 512 and 514. As seen in Fig. edge crossing messages are received in order for a scan line from the edge processing module 400 and are loaded into the table 530, which is arranged in priority order. The CFP1449AU UFRgr-I 03i,02i,06i,07i,10Oi,05d,09d,13d,15d 472738 I:\ELEC\C IS RA\UFR\UFRgr-1 \47273 8.doc -32edge crossing messages include, in this example, an incrementing direction according to the non-zero winging rule of the edge traversal. It is possible for no entries in the priority table 530 to be set.
The level activation table as illustrated 530 includes column entries for fill count, which are determined from the edge according to the non-zero winding rule or, where appropriate, the odd-even rule. The need-below flag is a property of a priority and is set as part of the LOAD_PRIORITIESPROPERTIES introduction. The need-below is set for all priority levels when the table 530 is loaded. Other columns such as "clip count" and "fill index table" may be used, but for this example are omitted for simplicity of 10 explanation. Where no level is active the corresponding entries are set to zero. Further, the values of the arrays 510 and 508 are updated from the table 530 after receiving a subsequent edge crossing.
From Fig. 15A, it will be apparent that, for convenience, a number of records have been omitted for clarity. Typically, the level activation table 530 would include, 15 arranged in priority order, the following records: fill count clip count fill type activation condition and flags, including need below flag (ii) clip type (iii) clipper flag compositing graphics operations and flags, including the raster operation code (ii) the alpha channel operation code (iii) the "source pop" flag (iv) the "destination pop" flag the x independent flag fill rule attributes and fill table index.
The contents of the table 530, where not used in the priority determination module 500 are passed as messages to each of the fill colour determination module 600 for pixel generation, and to the pixel compositing module 700 for compositing operations.
CFP1449AU UFRgr- 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -33 The first edge crossing for scan line 35 (Fig. 12E) is seen in Fig. 15A where for P=I, the fill count is updated to the value of the edge according to the non-zero winding rule. Because there are no objects beneath, the "need-below" is level set at zero.
Because a previous state of the table 530 was not set, the arrays 510 and 508 remain not set and the priority encoder 514 is disabled from outputting a priority. This is interpreted by priority generation module 516 which outputs a count n=40 (pixels) for a "no object" priority (eg: P being the first, blank, portion of the scan line Fig. 15B shows the arrangement when the edge crossing of Fig. 12F is received.
The fill count is updated. The arrays 510 and 508 are then set with the previous highest 1o level from the table 530. At this time, the module 516 outputs a count n=45, P=1 representing the edge 96 of the opaque red object 90 before intersection with the semitransparent triangle Fig. 15C shows the arrangement when the edge crossing of Fig. 12G is received.
Note that the fill count has been adjusted downwardly because of the non-zero winding rule. Because the object that is valid prior to receiving the current edge crossing is not opaque, the modified priority encoder 512 is used to select the priority P=2 as the highest active level which is output as is current for n=(l 15-85)=30 pixels.
Fig. 15D shows the arrangement when the edge crossing of Fig. 12H is received.
Note that previously changed "need-below" for P=2 has been transferred to the active array 508, thus permitting the priority encoder to output a value P=1 current for n=(160- 115)=45 pixels.
Fig. 15D shows the result when the edge crossing of Fig. 121 is received, providing for an output of P=0 for n=(1 80-160)=20 pixels.
As such, the priority module 500 outputs counts of pixels and corresponding priority display values for all pixels of a scan line.
The operation of the fill colour determination module 600 will now be described with reference to Fig. 6. Incoming messages 598 from the priority determination module 500, which include set fill data messages, repeat messages, fill priority messages, end of pixel messages, and end of scan line messages, first pass to a fill lookup and control module 604. The fill lookup and control module 604 maintains a current X position counter 614 and a current Y position counter 616 for use by various components of the fill colour determination module 600.
Upon receipt of an end of scan line message, the fill lookup and control module 604 resets the current X counter 614 to zero and increments the current Y CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-l\472738.doc -34counter 616. The end of scan line message is then passed to the pixel compositing module 700.
Upon receipt of a set fill data message, the fill lookup and control module 604 stores the data in the specified location 602 of the fill data table 36.
Upon receipt of a repeat message, the fill lookup and control module 604 increments the current X counter 614 by the count from the repeat message. The repeat message is then passed to the pixel compositing module 700.
Upon receipt of an end of pixel message, the fill lookup and control module 604 again increments the current X counter 614, and the end of pixel message is then passed Si 10 to the pixel compositing module 700.
Upon receipt of a fill priority message, the fill lookup and control module 604 performs operations which include: the fill type from the fill priority message is used to select a record size in the table 36; 15 (ii) the fill table address from the fill priority message, and the record size as determined above, is used to select a record from the fill data table 36; (iii) the fill type from the fill priority message is used to determine and select a sub-module to perform generation of the fill colour. The sub-modules may include a raster image module 606, a flat colour module 608, a linearly ramped colour module 610, and an opacity tile module 612; (iv) the determined record is supplied to the selected sub-module 606-612; the selected sub-module 606-612 uses the supplied data to determine a colour and opacity value; (vi) the determined colour and opacity is combined with remaining information from the fill colour message, namely the raster operation code, the alpha channel operation code, the source pop flag, and the destination pop flag, to form a colour composite message, which is sent to the pixel compositing module 700 via the connection 698.
In the preferred embodiment the determined colour and opacity is a red, green, blue and opacity quadruple with 8-bit precision in the usual manner giving 32 bits per pixel. However, a cyan, magenta, yellow and black quadruple with an implied opacity, or one of many other known colour representations may alternatively be used. The red, green, blue and opacity case is used in the description below, but the description may also be applied to other cases.
CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc The operation of the raster image module 606, the flat colour module 608, the linearly ramped colour module 610, and the opacity tile module 612 will now be described.
The flat colour module 608 interprets the supplied record as a fixed format record containing three 8-bit colour components (typically interpreted as red, green and blue components) and an 8-bit opacity value (typically interpreted as a measure of the fraction of a pixel which is covered by the specified colour, where 0 means no coverage, that is complete transparency, and 255 means complete coverage, that is, completely opaque). This colour and opacity value is output directly via the connection 698 and lo0 forms the determined colour and opacity without further processing.
The linearly ramped colour module 610 interprets the supplied record as a fixed format record containing four sets of constants cx, cy and d, associated with the three colour and one opacity components, and two position values xbase and ybase being the coordinates of the reference point of the linear ramp. At the reference point, the colour 15 and opacity components have their associated d value.
For each of the four sets, a result value r is computed by combining three constants with the current X and Y coordinates, and the xbase and ybase constants, using the formula: r clamp cx x xbase) cy x (Y ybase) d S 20 where the function clamp is defined as: 255 255 x clamp(x) LxJ 0<x<255 0 x<0 In an alternative implementation, the linearly ramped colour module 610 interprets the supplied record as a fixed format record containing four sets of three constants, cx, cy, and d, being associated with the three colour and one opacity components. For each of these four sets, a result value r is computed by combining the three constants with the current X count, x, and the current Y count, y, using the formula: r clamp (cx xx cy xy d) where the function clamp is defined as above.
The four results so produced are formed into a colour and opacity value. This colour and opacity value is output directly via the connection 698 and forms the determined colour and opacity without further processing.
Other mathematical calculations giving the same result may be used.
CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRg- I \472738.doc -36- The opacity tile module 612 interprets the supplied record as a fixed format record containing three 8-bit colour components, an 8-bit opacity value, an integer X phase, a Y phase, an X scale, a Y scale, and a 64 bit mask. These values originate in the display list generation and contained typically in the original page description. A bit address, a, in the bit mask, is determined by the formula: a ((x/2sx +px mod 8 ((y/2SY +py mod 8 x 8 The bit at the address in the bit mask is examined. If the examined bit is one, the colour and opacity from the record is copied directly to the output of the module 612 and forms the determined colour and opacity. If the examined bit is zero, a colour having 10 three zero component values and a zero opacity value is formed and output as the determined colour and opacity.
The raster image module 606 interprets the supplied record as a fixed format record containing six constants, a, b, c, d, xbase and ybase; an integer count of the number of bits (bpl) in each raster line of the raster image pixel data 16 to be sampled; 15 and a pixel type. The pixel type indicates whether the pixel data 16 in the raster image pixel data is to be interpreted as one of: one bit per pixel black and white opaque pixels; (ii) one bit per pixel opaque black or transparent pixels; (iii) 8 bits per pixel grey scale opaque pixels; (iv) 8 bits per pixel black opacity scale pixels; 24 bits per pixel opaque three colour component pixels;, or (vi) 32 bits per pixel three colour component plus opacity pixels.
Many other formats are possible.
The raster image module 606 uses the pixel type indicator to determine a pixel size (bpp) in bits. Then a bit address, a, in the raster image pixel data 16 is calculated having the formula: a bpp La x (x xbase) c x (y ybase) J bpl x L b x (x xbase) d x ybase) A pixel interpreted according to the pixel type from the record 602 is fetched from the calculated address in the raster image pixel data 16. The pixel is expanded as necessary to have three eight bit colour components and an eight bit opacity component. By "expanded", it is meant for example, that a pixel from an eight bit per pixel grey scale opaque raster image would have the sampled eight bit value applied to each of the red, green and blue component, and the opacity component set to fully CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -37 opaque. This then forms the determined colour and opacity output 698 to the pixel compositing module 700.
As a consequence, the raster pixel data valid within a displayable object is obtained through the determination of a mapping to the pixel image data within the memory 16. This effectively implements an affine transform of the raster pixel data into the object-based image and is more efficient than prior art methods which transfer pixel data from an image source to a frame store where compositing with graphic object may occur.
As a preferred feature to the above, interpolation between pixels in the raster ~o image pixel data 16 may optionally be performed by first calculating intermediate results p, and q according to the formulae: p a x xbase) c x (y -ybase) q b x (x -xbase) dx (y -ybase) Next the bit addresses, a 00 a 01 a 1 0 and a 1 1, of four pixels in the raster image 15 pixel data 16 are determined according to the formulae: a 00 bpp x [pJ bpl x LqJ a 0 1 a 0 0 bpp a 10 a 0 0 bpl a 1 0 bpl +bpp Next, a result pixel component value, r, is determined for each colour and m **opacity component according to the formula: Sr= interp interp (get(a 00 ),get(a 0 1 interp (get(a 1 0 get(a), q) where the function interp is defined as: interp b, c) a X (c-cJ) In the above equations, the representation [value] =floor (value), where a floor operation involves discarding the fractional part of value.
The get function returns the value of the current pixel component sampled from the raster image pixel data 16 at the given bit address. Note that for some components of some image types this can an implied value.
As a preferred feature to the above, image tiling may optionally be performed by using x and y values in the above equations which are derived from the current X and Y counters 614, 616 by a modulus operation with a tile size read from the supplied record.
Many more such fill colour generation sub-modules are possible.
The operation of the pixel compositing module 700 will now be described.
Incoming messages from the fill colour determination module 600, which include repeat CFP1449AU UFRgr-1 =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -38messages, colour composite messages, end of pixel messages, and end of scan line messages are processed in sequence.
Upon receipt of a repeat message or an end of scan line message, the pixel compositing module 700 forwards the message to a pixel output FIFO 702 without further processing.
Upon receipt of a colour composite message the pixel compositing module 700 typically, and in general terms combines the colour and opacity from the colour composite message with a colour and opacity popped from the pixel compositing stack 38 according to the raster operation and alpha channel operation from the colour composite 10 message. It then pushes the result back onto the pixel compositing stack 38. A description of the processing performed upon of receipt of a colour composite message is given below.
Upon receipt of an end of pixel message, the pixel compositing module 700 pops a colour and opacity from the pixel compositing stack 38, with the exception that if the 15 stack 38 is empty an opaque white value is used. The resultant colour and opacity is formed into an pixel output message which is forwarded to the pixel output FIFO.
A known compositing approach is that described in "Compositing Digital Images", Porter, T; Duff, T; Computer Graphics, Vol. 18 No. 3 (1984) pp. 253-259.
Examples of Porter and Duff compositing operations are shown in Fig. 21. However, 20 such an approach is deficient in that it only permits handling source and destination colour in the intersecting region formed by the composite and, as a consequence, is unable to accommodate the influence of transparency in the intersecting region. This results in the raster operations defined by Porter and Duff as being essentially inoperative in the presence of transparency.
The processing performed by the pixel compositing module 700 upon receipt of a colour composite message will now be described.
Upon receipt of a colour composite message, the pixel compositing module 700 first forms a source colour and opacity. This is taken from the colour and opacity provided in the colour composite message unless the pop source flag is set in the colour composite message, in which case the colour is popped from the pixel compositing stack 38 instead. If at this time, or during any pop of the pixel compositing stack, the pixel compositing stack 38 is found to be empty, an opaque white colour value is used without any error indication. Next, a destination colour and opacity is popped from the pixel compositing stack 38, except that if the destination pop flag is not set in the colour CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-l \472738.doc -39composite message, the stack pointer is not disturbed during the "pop" operation, in effect making this a read from top of stack 38 instead.
The method of combining the source colour and opacity with the destination colour and opacity will now be described with reference to Figs. 7A to 7C. For the purposes of this description, colour and opacity values are considered to range from 0 to 1, (ie: normalised) although they are typically stored as 8-bit values in the range 0 to 255. For the purposes of compositing together two pixels, each pixel is regarded as being divided into two regions, one region being fully opaque and the other fully transparent, with the opacity value being an indication of the proportion of these two regions. Fig. 7A shows a source pixel 702 which has some three component colour value not shown in the figure and an opacity value, The shaded region of the source pixel 702 represents the fully opaque portion 704 of the pixel 702. Similarly, the nonshaded region in Fig. 7A represents that proportion 706 of the source pixel 702 considered to be fully transparent. Fig. 7B shows a destination pixel 710 with some opacity value, The shaded region of the destination pixel 710 represents the fully opaque portion 712 of the pixel 710. Similarly, the pixel 710 has a fully transparent portion 714. The opaque regions of the source pixel 702 and destination pixel 710 are, for the purposes of the combination, considered to be orthogonal to each other. The overlay 716 of these two pixels is shown in Fig. 7C. Three regions of interest exist, 20 which include a source outside destination 718 which has an area of so x (1 do), a source intersect destination 720 which has an area of so x do, and a destination outside source 722 which has an area of (1 so x do. The colour value of each of these three regions is calculated conceptually independently. The source outside destination region 718 takes its colour directly from the source colour. The destination outside source region 722 takes its colour directly from the destination colour. The source intersect destination region 720 takes its colour from a combination of the source and destination colour. The process of combining source and destination colour, as distinct from the other operations discussed above is termed a raster operation and is one of a set of functions as specified by the raster operation code from the pixel composite message.
Some of the raster operations included in the preferred embodiment are shown in Table 2 included with the figures annexed to this specification.
Each function is applied to each pair of corresponding colour components of the source and destination colour to obtain a like component in the resultant colour. Many other functions are possible.
CFP1449AU JFRgr-1 03i,02i,06i,07i,10i,05d,09d,I3d,15d 472738 I :\ELEC\CISLA\UFR\UFRgr- 1\472738.doc The alpha channel operation from the composite pixel message is also considered. The alpha channel operation is performed using three flags, each of which corresponds to one of the regions of interest in the overlay 716 of the source pixel 702 and the destination pixel 710. For each of the regions, a region opacity value is formed which is zero if the corresponding flag in the alpha channel operation is not set, else it is the area of the region.
The resultant opacity is formed from the sum of the region opacities. Each component of the result colour is then formed by the sum of the products of each pair of region colour and region opacity, divided by the resultant opacity.
The resultant colour and opacity is pushed onto the pixel compositing stack 38.
Expression trees are often used to describe the compositing operations required "to form an image, and typically comprise a plurality of nodes including leaf nodes, unary nodes and binary nodes. A leaf node is the outermost node of an expression tree, has no descendent nodes and represents a primitive constituent of an image. Unary nodes S15 represent an operation which modifies the pixel data coming out of the part of the tree oio* below the unary operator. A binary node typically branches to left and right subtrees, wherein each subtree is itself is an expression tree comprising at least one leaf node.
When compositing with arbitrary shaped objects, there arises a problem that the various stack operations mentioned above are different for different areas of the image, 20 these depending upon those objects that are active at particular locations.
Figs. 17A and 17B show a typical binary operation (illustrated as an expression tree) between source and destination Regardless of the actual operation being performed, the binary operation of Fig. 17A resolves into four cases or regions of activity as indicated below: 1. (A)S active, (B)D inactive; 2. (A)S active, (B)D active; 3. (A)S inactive, (B)D active; and 4. (A)S inactive, (B)D inactive.
Case 4 always results in no operation (NOP) being required to be performed and as a consequence, there exists three different combinations of active levels for a binary tree. Extensions of this concept to tertiary, quaternary and higher order trees will be apparent to those skilled in the art.
As a consequence, when building the compositing stack 38 (for the binary example), one of the three above identified operations is required to be implemented by the stack. Further, the different operations associated with each object in the stack CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CIS RA\UFR\UFRgr-1\4727338.doc -41depend upon what is below the object in the level activation table. For rendering of objects using simple OVER operations, as occurs in the Painter's Algorithm, this poses no problem. However for other compositing operations, the stack operations need to be changed depending on the activity of the operands of the compositing operation. While this can be done by clipping the levels providing the stack operations, the number of clips applying to each level can rapidly rise, creating difficulties in handling the stack operations. Examples of problematic operations are the Porter and Duff operations OUT and ROUT as seen in Fig. 21 where an object (operand) clips (alters the boundary of) the other object and has variable transparency in the intersection region.
In order to address this problem, a further table, noted herein as an "activity" table is provided which acts as an adjunct to the level activation table to provide for a logical determination of the alternative actions mentioned above.
Fig. 18A illustrates a generic activity table 800 which includes essentially three sections. A first section 802 provides activation conditions for a specific fill level being processed. The second section 804 includes each of the different actions referred to above as appropriate for the respective levels (specifically for the binary example). The third section 806 indicates whether the source or destination object is active at the particular level. It is noted that the entries contained in the action section 804 may be the specific operations themselves or alternatively pointers to the level activation table where o 20 appropriate.
It is also noted that the various operations can provide data to other operations in some cases, but not in others. As a consequence, the activity table 800 can be modified to incorporate flags indicating various conditions for which the operation provides data.
A data structure for a preferred form of the activity table is seen in Fig. 18B as the table 810. The table 810 includes a pointer 814 (Next Level) to an entry for the next operation which uses the data, and a flag 806 (or a set of flags where tertiary and higher order trees are being used) that indicates the branch of the expression tree for which the operation is providing data (Src_Active/Destactive). The table 810 also includes a flag 816 that indicates whether the operation is providing data in the source or destination branch. If so, the Src_active or DestActive flags 806 in the next level entry are adjusted accordingly when an activity state 818 of the operation changes. Since an operation only provides data in certain combinations, further flags 812 (data in are provided to indicate this. The flags 812, in combinations with the Src/DestActive flags 806, determine the activity state of a level. Further, since any operation only has to alter the CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr-1 \472738.doc -42state of the next level if its own activity state changes, the node active flag 818 is provided to monitor such a situation.
For right leaf nodes, it is therefore necessary to activate a Push operation and the Dest_active flag in the next operation record. For left leaf nodes, it is necessary to activate the Src_active flag on an edge crossing, noting that the destination may already be active.
In Fig. 18B, the activation conditions 802 include the fill rule which determines activation of leaf nodes, and the fill count which is used in the manner as described above for the level activation table. The clip count operates also in the manner described above.
Edge crossings activate (source) levels in the table 810.
When an activation state of a level changes, the change propagates to the level pointed to by the Next Level entry 814. Depending upon the state of the DataisSrc flag 816, the Src_Active/Dest_Active flag 806 is changed in the next level. The change propagates if the state of the next level also changes. The table entries contain operations for cases 1, 2 and 3 respectively. These may be pointers to levels within the level activation table, or actual operations (eg. Alpha operation, colour operations, fill type and stack operation flags). Alternatively, they may be NULL if no operation is required.
The activation state of a node level is determined by whether there is data for the next operation in the expression tree, as determined by the data_in flags 812 for each of 20 S n Dop, S r Dop, S n Dop and the Src Destactive flags 806 for the node level. This is depicted in the table as a Node_Active flag 818.
A specific example of this implementation is shown for an expression tree 830 seen in Fig. 19, and with a corresponding initial activity table 820 seen in Fig. The expression tree 830 provides for the rendering of operands A, B and C onto a page, where the latter, for the sake of completeness is seen in the tree 830 as a right leaf node, PAGE. PAGE is always active and encompasses the entire image output space and therefore it may be omitted from the activity table 820.
Since B and C are leaf nodes, these form the lower levels of the table 820 and each result in activation operations 804 that can cause a push of the respective operator onto the compositing stack. Since each are right leaf nodes, C is pushed first, and the S r Dop is a NOP because nothing operates on operand C. The datain *op flags 812, Next Level 814 and Data_isSrc 816 flags are also updated. Operand B results in corresponding actions.
The next level in the activity table 820 is formed by the left leaf node A, and its corresponding operator Op2. Activation operations 804 for this level are updated with CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C IsRA\UFR\UFRgr-1 \472738.doc -43each of Sr Dop and SrxDop being Aop2B each modified by a qualifier a or b respectively depicting the differences between the operations. The operation Op2 only provides data in S, and this is represented by an activity which pops B off the stack ifD is active and S is not (ie. S n Dop).
The next level in the table 820 relates to Opl and produces respective qualified results a, b and c in the activation operations 804. For the final level over, since PAGE is always active, S r- Dop and S n Dop result in NOP to be pushed onto the stack. Only in the simple intersection Sr'Dop, is over active.
For this example, let us consider what happens if A, B and C are initially inactive, and those operands are subsequently activated in turn.
If A is activated first, then AOp2a is activated on this level, reflected by the setting of the Src_Active flag 806. Since the Sr\D flag 812 is set (since B is not yet active), the Node_Active flag 818 is then set for the level. Since the state of NodeActive has changed, the Src_Active flag 806 in the Opl level is set. Note that Data is Src 816 is set for AOp2 level. The Opl level has Src Active and Dest_ Active (since C is yet to be activated) so Opla is activated on this level. Since S rD is set, Node Active 818 is then set for the Opl level. Since the state of Node_Active 818 has changed, the Src Active flag 806 in the over level is set. Since the over level has Src_active and Dest_Active (because PAGE is always active), then over is activated on this level. Since Sr-D is set, 20 Node_Active is set and the state of NodeActive has not changed. No further action is then required. The compositing stack 38, at this stage may be established from the table 820 to appear as seen in Fig. Turning now to Fig. 20C, if B is activated next, Push B is activated on this level since S nD is set (and D is irrelevant, anyway). Node Active 818 is set for this level.
The state of Node_Active has changed, and therefore DestActive flag in the AOp2 level is set. AOp2bB is then activated, and AOp2aB is deactivated. Since SCrD is set, Node_Active remains set and the state of Node_Active is unchanged for AOp2a. No further action results. The compositing stack 38 then appears as seen in Fig. As seen in Fig. 20E, if C is activated next, Push C is activated on this level.
Since S is active and D is irrelevant, Node Active 818 is set for this level. Since Node_active has changed, the Dest Active flag in Opl level is then set. Oplb is activated so Opla is deactivated. Since data in SrnD is set, NodeActive remains set. Since Node_Active is unchanged for the Opi level, no further action is required. The compositing stack 38 then appears as seen in Fig. CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -44- This procedure continues for the evaluation of the entire expression tree of Fig. 19, thus providing for the activity table 820 to be established in such a way that various operations are established which may then be pushed onto the compositing stack as required by the various activation conditions 802 and activity indicators 804. In this fashion, regardless of the type of clipping or other operation being performed, the stack is able to be maintained with the correct operation at the correct level irrespective of the complexity of the expression tree being evaluated. Significantly, whilst the bulk of the expression tree is evaluated through the formation of the display list, generation of the display list is typically unable to account for variations in the operation of various objects such as clipping, these operations being required to implemented during the evaluation of the compositing expression.
It is further noted that further flags, one for src isleafnode, which may be activated by edge crossings, and another for destisPAGE (always active), can be useful.
•"IfdestisPAGE, it is possible to ignore the S r D case as this never happens.
The above illustrates how the activity table 820 is built based on the structure of the expression tree 830, and has its entries completed (ie. filled in) through the changing activation of the various operands of the tree 830. For the specific example of the table 820, 72 (=2x2x3x3x2) stack structures can arise to account for the different activations and possible outcomes. In this fashion, logical evaluation of the conditions S 20 802, 806, 812, 814, 816 and 818 results in the correct activity 804 being identified as the appropriate stack operation for the particular level.
In an alternative implementation, rather than being constructed as an independent table, the activity table 820 may be merged into the level activation table 530 to give a combined table 830. This avoids the replication of data whilst permitting the priority encoders 512,514 to select not only the correct edge priority but also activation operation, the latter being transferred (progressively) to the pixel compositing stack 38 for evaluation by the compositing module 700 using the fill colours derived from the module 600. such an arrangement is depicted functionally in Fig. Alternatively, as seen functionally in Fig. 20H, the activity table 820 may precede the level activation table 530. In such a case, columns for fill count and clip count are included in the activity table 820 and may be omitted from the level activation table 530. In a further alternative configuration, shown functionally in Fig. 201, the activity table 820 may follow the level activation table 530. In that case, the activity table 820 can omit fill count and clip count as these are included in the level activation table CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,1 3d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr-1\47273 8.doc 530. In some applications, where an activity table 820 is configured as shown in Fig.
the level activation table 530 may be omitted.
The operation codes described above with reference to the activity table 820 and the stack 38 derive from the display list and the instruction stream 14 in particular (see Fig. The operation codes are transferred in parallel with other data (eg. edge crossings, fill data, etc) through the pipeline of processing stages shown in Fig. 3 and the pixel compositing module 700 places the op codes onto the stack in the order determined as a consequence of priority determination, level activation and fill determination.
The operation of the pixel output module 800 will now be described. Incoming messages are read from the pixel output FIFO, which include pixel output messages, repeat messages, and end of scan line messages are processed in sequence.
Upon receipt of a pixel output message the pixel output module 800 stores the pixel and also forwards the pixel to its output. Upon receipt of a repeat message the last stored pixel is forwarded to the output 898 as many times as specified by the count from the repeat message. Upon receipt of an end of scan line message the pixel output module 800 passes the message to its output.
~The output 898 may connect as required to any device that utilizes pixel image data. Such devices include output devices such as video display units or printers, or memory storage devices such as hard disk, semiconductor RAM including line, band or 20 frame stores, or a computer network.
One difficulty with implementing the system described so far is that, in many cases, it does not deal adequately with compositing of objects comprising pixels having associated opacity values. In particular, in some situations, overlapping objects are incorrectly composited at points along a scan line where one or more of the objects is not active. The situation in the present embodiment arises with Porter and Duff compositing, and will be described with reference to that particular compositing scheme. However, it will be appreciated that the aspects of the invention described in detail below can also be applied to similar difficulties arising under other compositing schemes.
For example, the expression PAGE (A in B) over (C out D) over PAGE can be represented as a binary tree structure 1000, as shown in Fig. 22, where A, B, C and D are different graphical objects being defined by edges, a viewing priority and opacity data. A level activation table 1001 for this example is shown in Fig. 23, in which it will be seen that line 1002 implements the C out D portion of the expression shown in Fig. 22.
Unfortunately, using this configuration, if D is inactive at a certain pixel, the out operation will incorrectly be performed with PAGE rather than D. If C is not opaque, this CFPI449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr-1 \472738.doc -46results in a visually incorrect appearance upon rendering. To avoid this type of problem, where objects having an opacity which is potentially less than 1, an inactive object must not appear in a compositing expression at a position other than to the left of an over operation. Given that most objects will be inactive for at least some portion of every scan line on which they appear, this can be a major problem.
One way of overcoming the problem is to "pad out" objects, using transparent pixels. In this way, the Porter and Duff expression is correctly applied, because each object effectively exists at every point at which the object it is being composited with exists. Applying this to the example above, each leaf node (ie, A, B, C and D) in the binary tree 1000 is replaced with an expression placing it over a transparent (glass) object the size of the bounding box around a union of the pairs of objects, as illustrated in Figs. 24 and In Fig. 24, two transparent glass bounding boxes G1 and G2 are shown. G1 represents a bounding box of A and B, whilst G2 represents a bounding box of C and D.
Implementing this in the expression tree 1000 results in a modified expression tree 1004, shown in Fig. 25. A corresponding level allocation table 1005 is shown in Fig. 26. As will be apparent from the level allocation table 1005 and the modified expression *tree 1004, this modification results in a substantial increase in the number of stack operations required for each pixel. This is because stack operations are performed where one or both of a pair of pixels being composited is transparent. In terms of the actual rendered output ultimately achieved, these operations are relatively wasteful of stack resources and processor time.
ooo One way of reducing the number of operations is to clip out the glass objects with the leaf-node objects they are composited with. The over operation between leaf nodes and the transparent objects is then no longer required. In view of the fact that clipping operations are, in general, less processor intensive than multiple compositing operations, this results in more efficient operation of the stack.
A level activation table 1006 for the example above using clipping of the transparent boxes G1 and G2 with A and B, and C and D, respectively, is shown in Fig. 27. It will be noted that only eight stack operations are performed per pixel in this implementation, compared with twelve operations in the case where A, B, C and D are padded using multiple over operations. Four of these levels are clipping levels 999. It will be appreciated, however, that a number of redundant compositing operations involving transparent pixels are still required.
CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,1 3d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr-1 \472738.doc -47- A preferred method of correctly implementing Porter and Duff compositing where one or more over lapping objects are non-opaque will now be described. Referring to the example shown in Fig. 28, it will be noted that the operation C out D can be represented in three ways, one for each of regions Cr\D, CnD and CnrD. Region CnD can be represented by C, since there is no contribution from D in that region for an out operation, and C is required. In region CnD, both C and D are active, and so compositing using the C out D operation is required. There is no contribution from C or D in the region Cr-D, and so the region need not be considered when building the compositing stack for pixels in that region.
A simplified representation of the C out D operation is given in Figs 42 and 43.
In Fig. 42 there are shown objects C and D, for which the out operation is to be performed. As described above, the scan line can be divided into three regions: CnD, C 'D and CrD. In the present case, if C is non-opaque, the out operation will incorrectly be performed with PAGE in the region CnD.
Fig. 43 illustrates the solution previously described. It will be noted that each of the objects is clipped to the region in which it is active. Region CrD is simply represented by a level Cl, region CrD is represented levels Cl and Dl, whilst region C nD requires no input from either level. It will be appreciated that using the specific requirements of particular operations to control clipping of objects to only required regions results in a considerably smaller number of compositing operations, as transparent padding pixels are no longer required.
A level activation table 1008 for implementing the clipping of this example is shown in Fig. 29. It will be seen that four additional levels are required in the level activation table 1008 compared to the previous method described. However, three out of four of these additional levels are clipping levels 1015, which are typically less intensive than compositing operations. Also, the actual compositing stack produced for each pixel is, on average, smaller than that for the earlier method described. This is due to the fact that clipping operations are used to ensure that compositing operations only take place in the regions where they are relevant. In effect, processor time is not wasted compositing pixels which do not contribute to the final image.
Compositing stack operations for non-trivial Porter and Duff compositing operators are shown in Figs 30 and 31. Table 1010 shown in Fig. 30 assumes that D is already on top of the stack where D is active, and the compositing operators are broken down according to the regions to which they apply. It will be noted that alpha channel (opacity) operation is restricted to the intersection region SrnD by activating on S edges CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr-1 \472738.doe -48 and clipping with D edges. In the cases marked with asterisks, all of the objects which contribute to D need to be clipped in by the edges of S.
The table 1016 shown in Fig. 31 provides the operations where the S pixel value is already on the stack, in those regions where it is active. Note that in such a case, the D pixel value is on the next level down, where D is also active. In the cases marked with asterisks, the stack would be in an incorrect state; either the objects in the "active branch" must be clipped by the objects in the "inactive" branch to prevent the state from occurring, or the top value must be popped off the stack.
For complicated expressions, the objects may have been built up from several other objects, so that the shape of the regions S and D need to be determined from the shapes that were used to build them up. The steps required to implement this more complicated case will be apparent to those skilled in the art of Porter and Duff compositing operations.
:The resulting active regions produced by the various compositing operations are oo given in table 1011 shown in Fig. 32.
When analysing an expression tree for rendering using the preferred embodiments, an application needs effectively to determine the active region of each branch node of the tree and pass it on to the next node up the tree. A detailed analysis of the expression tree shown in Fig. 22 will now be undertaken along these lines, in S 20 conjunction with Figs. 33 to 41.
Fig. 33 shows a preliminary analysis of the expression tree 1000 shown in Fig.
22, on the basis of active regions arising from the operations associated with each node.
Referring to Fig. 34, it can be seen that the A in B expression is limited in activity to the intersection region of A and B. Accordingly, the edges of object A are used to clip object B, so that it does not leave colour on the stack where it is not required. Similarly, the level which performs the in operation is restricted to the intersection region by object B.
The necessary stack operations to achieve this are shown in Fig. The same effect could be obtained by using the edges of object B to activate both levels, and clipping both with object A, saving a clipping level. However, both clipping objects will be required by objects higher up the expression tree.
The next branch is the over operation, as shown in Fig. 36, in which the active regions for the two branches are as shown. The regions to be considered are shown in Fig. 37. The boxed text 1012 at the right of Fig. 37 shows the state of the stack for each of the corresponding regions 1013 to the left.
CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1 :\ELEC\CISRA\UFR\UFRgr- I \472738.doc -49- In the latter two cases, the result of the over operation is already on the stack.
Accordingly, the intersection region is the only one where a further operation is needed.
The resulting level activation table entries are shown in Fig. 38. It will be seen that object C activates level 01, and A and B clip it to the region ArxBr)C. The operation as a whole contributes to pixels in the region (Ar'B)uC.
This region is passed up to the next node in the expression tree, being the final over, which composites the expression onto PAGE. The relevant regions to be considered for each of the two branches are shown in Fig. 40, where, again, boxed text 1014 at the right hand side shows the state of the stack for the corresponding active regions 1015 on the left hand side.
To obtain correct operation of the pixel stack for a union operation requires some effort. One solution is to break up the area into mutually exclusive areas, and to use two °levels for the same operation. This can be done using the active regions of each branch of the previous node to activate one of the levels. The active region of one of the levels is S 15 then used to clip out the other. For example, area C and area Ar-BrnC can be used to make up (Ar-B)UC, as will be appreciated by those skilled in the art.
The resulting entries for the level activation table 1020 for the example expression are shown in Fig. 41. Levels 02 (activated by object C) and 03 (activated by object A, clipped in by B and clipped out by C) combine to clip the final over operation to 20 the region (ArB)uC.
It will be noted that the clipping levels do not contribute to the compositing of the pixels. The number of contributing levels, and therefore of stack operations for each pixel, is, on average, considerably less than for the method where levels are padded out with transparent pixels. Also reduced is the number of pixels for which a particular level can be expected to be active in a given scan line.
It will be appreciated by those skilled in the art that compositing of objects over larger numbers of levels is also possible by extrapolating the method described herein.
Furthermore, it will also be appreciated that the various manipulations shown can be used in different compositing paradigms, including framestore-based systems and other stackbased, line- or band-based compositing systems.
It will be apparent from the foregoing that the method and apparatus described provide for the rendering of graphic objects with full functionality demanded by sophisticated graphic description languages without a need for intermediate storage of pixel image data during the rendering process.
CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C IS RA\UFR\UFRg-1I\47273 8.doc The foregoing describes only a number of embodiments of the present invention, and modifications, may be made thereto without departing from the spirit and scope of the present invention, various aspects of which are appended hereto.
In the context of this specification, the word "comprising" means "including principally but not necessarily solely" or "having" or "including" and not "consisting only of". Variations of the word comprising, such as "comprise" and "comprises" have corresponding meanings.
olp o CFP1449AU UFRgr- 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CIS RA\UFR\UFRgr-1 \472738.doc
Claims (9)
1. A method of rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each adjacent pair of edge intersections, examining information associated with the corresponding said object to determining a set of active objects for a span of 1o pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of active objects to determine a value for each of said locations within said span.
S2. Apparatus for rendering at least one graphic object described by at least one edge is into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said apparatus comprising: means for determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; each adjacent pair of edge intersections, means for examining information 20 associated with the corresponding said object to determine a set of active objects for a span of pixel locations between the corresponding pair of edge intersections; and a for each said span of pixel locations, means for using the corresponding set of active objects to determine a value for each of said locations within said span.
3. Apparatus for rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said apparatus comprising: a memory for storing information associated with the corresponding said object; a processor for determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line, examining said information to determine a set of active objects for a span of pixel locations between the corresponding pair of edge intersections for each adjacent pair of edge intersections and using the 'prresponding set of active objects to determine a value for each of said locations within S span for each said span of pixel locations.
472738.doc 52
4. A computer readable memory medium for storing a program for apparatus which renders at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said program comprising: code for a determination step to determine in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each adjacent pair of edge intersections, code for an examination step to examine information associated with the corresponding said object to determine a set of active objects for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, code for a control step to use the corresponding set of active objects to determine a value for each of said locations within o- °said span. op.
5. A method of rendering a plurality of graphic objects described by at least one go-.•edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method comprising, for each said scan line, the steps of: p.. S(a) determining in a predetermined order coordinates of intersection of 20 those edges of said objects that intersect said scan line; i for each edge intersection so determined, modifying an integral fill count associated with the corresponding said object; .o for each adjacent pair of edge intersections, examining the Scorresponding fill counts to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of active objects to determine a value for each of said pixel locations within said span.
6. A method according to claim 5, wherein step comprises the sub-steps of: (ca) identifying those ones of said objects that are active for said span; and (cb) examining the fill count of each said identified active object to determine said set. 472738.doc -53-
7. A method according to claim 5 or 6, wherein step comprises the step of forming a (first) record of said fill counts for a plurality of said objects present at any one said pixel location.
8. A method according to claim 5, 6 or 7, wherein step comprises the step of forming a (second) record of said fill counts for all active ones of said objects present at any one said pixel location.
9. A method according to any one of claims 5 to 8, wherein said pixel locations are o0 processed in a predetermined order. A method according to claim 9, wherein said predetermined order includes a raster-scan order. *e 15 11. A method according to any one of claims 5 to 10, wherein said value is used to determine a displayable pixel value for each said pixel location. 12. A method according to claim 11, wherein said value is selected from the group consisting of: 20 a rendered pixel value; a pixel colour; and an operator for selecting or acting upon a determinable pixel value. 13. A method according to any one of claims 5 to 12, wherein said fill count is determined using the odd-even rule. 14. A method according to any one of claims 5 to 12, wherein said fill count is determined using the non-zero winding rule. 15. A method according to any one of claims 5 to 14, wherein step comprises determining if the corresponding fill count is non-zero and if so, then said object is included in said set. 16. A method of rendering a plurality of graphic objects, each having an associated rendering level, to form a raster pixel image having a plurality of scan lines and a CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\E LEC\C ISRA\UFR\UFRgr- I \4727338.doc -54- plurality of pixel locations on each said scan line, each said object having at least one corresponding filled region defined by intersections of said scan lines by edge of said object, said intersections defining for each said scan line a corresponding fill count through application of the non-zero winding fill rule, said method being characterised by the simultaneous storage of a plurality of said fill counts, and using said stored fill counts to determine those said rendering levels that contribute to said image. 17. A method according to claim 16 wherein said objects are defined according to one of the non-zero winding fill rule or the odd-even fill rule, and substantially all said non-zero winding fill rule defined objects have their corresponding said fill counts stored .substantially simultaneously. o• 18. A method according to claim 17 further comprising forming an activation table having at least one record for at least each said non-zero winding rule defined object, o. 15 wherein each such record in said table records whether the corresponding object is to be filled at a current pixel position being rendered. 19. A method according to claim 18 wherein said table is updated on each said edge intersection. A method according to claim 16 wherein said method proceeds on a scan line- by-scan line basis and, within each said scan line, in intersection order of each said edge that intersects said scan line. 21. A method according to claim 16 wherein said stored fill counts include at least those said fill counts associated with those said objects having edges that intersect a current scan line of said rendering. 22. A method according to claim 16 further comprising marking each said edge as either an UP edge or a DOWN edge affecting the sign of the change to the fill count. 23. Apparatus for rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said apparatus comprising: CFPI449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr- I \472738.doc an edge processing arrangement for determining in a predetermined order coordinates of intersection of those said edges that intersect each said scan line; a fill count determinator for determining, for each edge intersection on each said scan line, an integral fill count associated with the corresponding said object; an object determinator for determining from the corresponding fill counts for each adjacent pair of edge intersections, a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections; and a pixel value determinator for determining from the set of active objects for each said span of pixel locations, a pixel value for each of the pixel locations within the span. 24. Apparatus for rendering a plurality of graphic objects, each having an associated rendering level, to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, each said object having at least one corresponding filled region defined by intersections of said scan lines by edge of said object, said intersections defining for each said scan line a corresponding fill count through application of the non-zero winding fill rule, characterised by first means for the "simultaneous storage of a plurality of said fill counts, and second means for using said stored fill counts to determine those said rendering levels that contribute to said image. 25. A computer readable medium comprising a computer program product for rendering a plurality of graphic objects described by at least one edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said computer program product being configured to implement, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, modifying an integral fill count associated with the corresponding said object; for each adjacent pair of edge intersections, examining the corresponding fill counts to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of active objects to determine a value for each of said pixel locations within said span. CFPI449AU UFRgr-I =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr-1 \47273 8.doc -56- 26. A computer readable medium comprising a computer program product for rendering a plurality of graphic objects, each having an associated rendering level, to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, each said object having at least one corresponding filled region defined by intersections of said scan lines by edge of said object, said intersections defining for each said scan line a corresponding fill count through application of the non- zero winding fill rule, said computer program product being characterised by the simultaneous storage of a plurality of said fill counts, and using said stored fill counts to determine those said rendering levels that contribute to said image. Io 27. A method of rendering a plurality of graphic objects to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, ••each said object being described by components including at least one edge, a viewing •"priority and fill data, said method comprising the steps of: .15 establishing records corresponding to each said component and associating said component records each with a corresponding component process; S(b) rendering said graphic objects in a rasterised fashion by activating said component processes, CHARACTERISED BY, for each said scan line, the steps of determining in a predetermined order coordinates of intersection of 20 those edges of said objects that intersect said scan line; for each edge intersection so determined, updating a level activation table forming at least part of said viewing priority records, said level activation table being arranged according to object viewing priority and including plural entries corresponding to at least an integral fill count associated with the corresponding said object; for each adjacent pair of edge intersections, examining at least plural ones of said entries of said level activation table to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of active objects to determine a rendered value for each of said pixel locations within said span. 28. A method according to claim 27, wherein said component processes comprise a pipeline formed by an edge rasterisation process outputting to a priority determination process outputting to a fill determination process, each said process operating CFP1449AU UFRgr-I= 03i,02i,06i,07i,10i,05d,09d,1 3d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -57- substantially asynchronously of the other said processes to transfer at least corresponding ones of said components to a subsequent process in said pipeline to render pixel data of said raster pixel image without use of a pixel-based line buffer or a pixel-based frame buffer. 29. A method according to claim 27 or 28, wherein step comprises modifying said integral fill count associated with the corresponding said object, and step includes examining the corresponding fill counts to determine a set of said objects. 30. A method according to claim 29, wherein step comprises the sub-steps of: (ea) identifying those ones of said objects that are active for said ::span; and (eb) examining the fill count of each said identified active object to •determine said set. 31. A method according to claim 29, wherein step comprises the step of forming a (first) record of said fill counts for a plurality of said objects present at any one pixel location. 32. A method according to claim 29, wherein step comprising the step of forming a (second) record of said fill counts for all active ones of said objects present at any one pixel location. 33. A method according to any one of claims 29 to 32, wherein said pixel locations are processed in a predetermined order. 34. A method according to claim 33, wherein said predetermined order comprises a raster-scan order. 35. A method according to any one of claims 29 to 34, wherein said rendered value is used to determine a displayable pixel value for each said pixel location. 36. A method according to claim 35, wherein said value is selected from the group consisting of: a rendered pixel value; CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\E LEC\C ISRA\UFR\UFRgr- 1 \4727 38.doc -58- a pixel colour; and an operator for selecting or acting upon a determinable pixel value. 37. A method according to any one of claims 29 to 36, wherein said fill count is determined using at least the non-zero winding rule. 38. A method according to any one of claims 27 to 37, wherein said entries further comprise at least one of a need-below indicator and a clip count value. 39. Apparatus for rendering a plurality of graphic objects to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, each said object being described by components including at least one edge, a "viewing priority and fill data, said apparatus comprising: ~means for establishing records corresponding to each said component and 15 associating said component records each with a corresponding component process; means for rendering said graphic objects in a rasterised fashion by activating said component processes, CHARACTERISED IN THAT, said means for rendering comprises first means for determining in a predetermined order, for each said scan line, •coordinates of intersection of those edges of said objects that intersect said scan line; means for updating, for each edge intersection so determined, a level activation table forming at least part of said viewing priority records, said level activation table being arranged according to object viewing priority and including plural entries corresponding to at least an integral fill count associated with the corresponding said object; means for examining, for each adjacent pair of edge intersections, at least plural ones of said entries of said level activation table to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections; and second means for determining, for each said span of pixel locations using the corresponding set of active objects, a rendered value for each of said pixel locations within said span. A computer readable medium comprising a computer program product for rendering a plurality of graphic objects to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, each said object being CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,l 3d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -59- S. S 0 i S S Sr S 9 S S described by components including at least one edge, a viewing priority and fill data, said computer program product be configured to implement the steps of: establishing records corresponding to each said component and associating said component records each with a corresponding component process; rendering said graphic objects in a rasterised fashion by activating said component processes, CHARACTERISED BY, for each said scan line, the steps of determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, updating a level activation table forming at least part of said viewing priority records, said level activation table being arranged according to object viewing priority and including plural entries corresponding to at least an integral fill count associated with the corresponding said object; for each adjacent pair of edge intersections, examining at least plural s15 ones of said entries of said level activation table to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of active objects to determine a rendered value for each of said pixel locations within said span. 41. A method of rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, updating a record of contribution indicators associated with the corresponding said objects; for each adjacent pair of edge intersections, examining the corresponding contribution indicators to determine a (first) set of said objects that contribute to pixel values in a span of pixel locations between the corresponding edge intersections; and for each said span of pixel locations, using the corresponding (first) set of said objects to determine a value for each of said pixel locations within said span. 472738.doc 42. A method according to claim 41, wherein each said contribution indicator identifies whether objects having priority levels lower than the object to which said contribution indicator relates contribute to said image when overlayed by said object. 43. A method according to claim 42, wherein said record of contribution indicators is arranged in order priority level. 44. A method according to claim 43, wherein step comprises modifying an integral fill count associated with the corresponding said object, step is preceded by step (ba) where for each adjacent pair of edge intersections, the corresponding fill counts are examined to determine a (second) set of objects active for the span of pixel locations, and the examining of step includes examining the corresponding said second set. 45. A method according to any one of claims 41 to 44, wherein step comprises 15 compositing values from a plurality of said objects to determine pixel output values for said pixel locations. 46. A method of rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge into a raster pixel image having a plurality of S 20 scan line and a plurality of pixel locations on each said scan line, said method comprising the steps of: forming a plurality of stack records of colour and opacity values for a plurality of active objects to be rendered in a current scan line of said image; identifying those ones of said objects that contribute to pixel values within a span of pixel locations between adjacent edge intersections of said objects; for those identified objects within each said span, receiving a compositing message and determining therefrom at least one compositing operation for each said record in said stack; using said at least one compositing operation and corresponding said colour and opacity values, to determine an output pixel value for each pixel location within said span by compositing the stack records. 47. A method according to claim 46, wherein said stack records are composited in ascending priority order. CFP1449AU UFRgr-1 =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -61 48. A method according to claim 46 or 47, wherein said at least one compositing operation comprises pulling colour and opacity values from said stack and compositing same with colour and opacity values contained in said compositing message. 49. A method according to claim 46, 47 or 48, wherein said compositing comprises compositing a record from said stack with a previously composited value. A method according to claim 48, wherein said compositing operation is performed plural times to composite each of said active objects within said span of pixel locations. 51. A method of rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method 15 comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of 0 those edges of said objects that intersect said scan line; for each edge intersection so determined, forming a plurality of stack records of colour and opacity values for a plurality of active objects to be rendered in a S 20 current scan line of said image and updating a record of contribution indicators associated with the corresponding said objects; for each adjacent pair of edge intersections, examining at least the corresponding contribution indicators to determine a (first) set of said objects that contribute to pixel values in a span of pixel locations between the corresponding edge intersections; and for those identified objects within said first set of each said span, receiving a compositing message and determining therefrom at least a compositing operation for each said record in said stack; for each said span of pixel locations, using the corresponding (first) set, said compositing operations and the corresponding said colour and opacity values, to determine an output pixel value for each pixel location within said span by compositing the stack records. 52. Apparatus for rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge to form a raster pixel image having a CFP1449AU UFRgr-1 =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISPA\UFR\UFRgr-1\47273 8.doc -62- plurality of scan lines and a plurality of pixel locations on each said scan line, said apparatus comprising: first means for determining in a predetermined order, for each said scan line, coordinates of intersection of those edges of said objects that intersect said scan line; second means for updating, for each edge intersection so determined, a record of contribution indicators associated with the corresponding said objects; third means for examining, for each adjacent pair of edge intersections, the corresponding contribution indicators to determine a (first) set of said objects that contribute to pixel values in a span of pixel locations between the corresponding edge intersections; and fourth means for processing, for each said span of pixel locations, the corresponding (first) set of said objects to determine a value for each of said pixel :locations within said span. •o o Is 53. Apparatus for rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge into a raster pixel image having a plurality of scan line and a plurality of pixel locations on each said scan line, said apparatus comprising: •a record forming device for forming a plurality of stack records of colour and 20 opacity values for a plurality of active objects to be rendered in a current scan line of said image; a contributor for identifying those ones of said objects that contribute to pixel values within a span of pixel locations between adjacent edge intersections of said Cobjects; a message receiver for receiving a compositing message for each of those identified objects within each said span, and for determining therefrom at least one compositing operation for each said record in said stack; and a compositor for using said stack to composite pixels from different graphics obj ects. 54. Apparatus for rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said apparatus comprising: 472738.doc 63 first means for determining in a predetermined order for each said scan line coordinates of intersection of those edges of said objects that intersect said scan line; second means for forming, each edge intersection so determined, a plurality of stack records of colour and opacity values for a plurality of active objects to be rendered in a current scan line of said image and updating a record of contribution indicators associated with the corresponding said objects; third means for examining, for each adjacent pair of edge intersections, at least the corresponding contribution indicators to determine a (first) set of said objects that contribute to pixel values in a span of pixel locations between the corresponding edge intersections; fourth means for receiving, for those identified objects within said first set of each said span, a compositing message and determining therefrom at least a compositing operation for each said record in said stack; and fifth means for each said span of pixel locations for using a stack of said records s15 to composite pixels from different graphics outlets, said fifth means using the corresponding (first) set, said compositing operations and the corresponding said colour and opacity values, to determine an output pixel value for each pixel location within said span by compositing the stack records. ooooo 20 55. A computer readable medium comprising a computer program product for S"rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said computer program product being configured to implement, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, updating a record of contribution indicators associated with the corresponding said objects; for each adjacent pair of edge intersections, examining the corresponding contribution indicators to determine a (first) set of said objects that contribute to pixel values in a span of pixel locations between the corresponding edge intersections; and for each said span of pixel locations, using the corresponding (first) set of said objects to determine a value for each of said pixel locations within said span. 472738.doc 64 56. A computer readable medium comprising a computer program product for rendering a plurality of overlapping graphic objects having variable opacity and described by at least one edge into a raster pixel image having a plurality of scan line and a plurality of pixel locations on each said scan line, said computer program product being configured to implement the steps of: forming a plurality of stack records of colour and opacity values for a plurality of active objects to be rendered in a current scan line of said image; identifying those ones of said objects that contribute to pixel values within a span of pixel locations between adjacent edge intersections of said objects; for those identified objects within each said span, receiving a compositing message and determining therefrom at least one compositing operation for each said record in said stack; :using said at least one compositing operation and corresponding said colour and opacity values, to determine an output pixel value for each pixel location within said span 15 by compositing the stack. 57. A computer readable medium comprising a computer program product for rendering a plurality of overlapping graphic objects having variable opacity and described .0oo0i by at least one edge into a raster pixel image having a plurality of scan lines and a 20 plurality of pixel locations on each said scan line, said computer program product oooo° implementing, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, forming a plurality of stack records of colour and opacity values for a plurality of active objects to be rendered in a current scan line of said image and updating a record of contribution indicators associated with the corresponding said objects; for each adjacent pair of edge intersections, examining at least the corresponding contribution indicators to determine a (first) set of said objects that contribute to pixel values in a span of pixel locations between the corresponding edge intersections; and for those identified objects within said first set of each said span, .receiving a compositing message and determining therefrom at least a compositing i/ieratlon for each said record in said stack; -3 35 4 472738.doc 64a for each said span of pixel locations, using the corresponding (first) set, said compositing operations and the corresponding said colour and opacity values, to R4y -V ~0 '~V7 472738.doc 65 determine an output pixel value for each pixel location within said span by compositing the stack records. 58. A method of rendering a plurality of graphic objects each having at least one edge to form a raster pixel image including a plurality of scan lines and a plural of pixel locations within each said scan line, said computer program product being configured to implement, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those of said objects that intersect said scan line; for each edge intersection so determined, modifying an integral clip count associated with the corresponding said object; for each adjacent pair of edge intersections, examining the corresponding clip counts to determine a set of said objects that contribute to said raster pixel image for a span of pixel locations between the corresponding pair of edge 15 intersections; and for each said span of pixel locations, using the corresponding set of contributing objects to determine a value for each said pixel location within said span. 59. A method according to claim 58, wherein step includes establishing an active indicator for each said object where said object contributes to said span. 60. A method according to claim 59, wherein said active indicator corresponds to said clip count reaching a predetermined value. 61. A method according to claim 60, wherein said predetermined value is one of zero or a clip limit. 62. A method according to claim 58, 59 or 60, wherein said clip count is incrementable and decrementable wherein a decrement followed by an increment signifies a clip-in span of said pixel locations and an increment followed by a decrement signifies a clip-out span of said pixel locations. 63. A method according to claim 62, wherein an edge defining at least part of a clipping object, said clipping object being one of said graphic objects, acts at step to CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C ISRA\UFR\UFRgr- I \472738.doc -66- modify the clip count for each one of a group of said objects having a predetermined association with said clipping object. 64. A method according to claim 63, wherein said predetermined association is defined by clip data associated with said edge of said clipping object. A method of rendering a plurality of graphic objects each having at least one edge to form a raster pixel image including a plurality of scan lines and a plural of pixel locations within each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those of said objects that intersect said scan line; for each edge intersection so determined, modifying each of an integral o.fill count and an integral clip count associated with the corresponding said object; 5 for each adjacent pair of edge intersections, examining the corresponding fill counts and clip counts to determine a set of said objects that contribute to said raster pixel image for a span of pixel locations between the corresponding pair of S•edge intersections; and for each said span of pixel locations, using the corresponding set of contributing objects to determine a value for each said pixel location within said span. 66. A method according to claim 65, wherein step includes establishing an active indicator for each said object where said object contributes to said span. 67. A method according to claim 66, wherein said active indicator corresponds to said clip count reaching a predetermined value. 68. A method according to claim 67, wherein said predetermined value is one of zero or a clip limit. 69. A method according to claim 66, 67 or 68, wherein said clip count is incrementable and decrementable wherein a decrement followed by an increment signifies a clip-in span of said pixel locations and an increment followed by a decrement signifies a clip-out span of said pixel locations. CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr- I \47273 8.doc -67- A method according to claim 69, wherein an edge defining at least part of a clipping object, said clipping object being one of said graphic objects, acts at step to modify the clip count for each one of a group of said objects having a predetermined association with said clipping object. 71. Apparatus for rendering a plurality of graphic objects each having at least one edge to form a raster pixel image including a plurality of scan lines and a plural of pixel locations within each said scan line, said apparatus comprising: first means for determining in a predetermined order for each said scan line, coordinates of intersection of those of said objects that intersect said scan line; second means for modifying, for each edge intersection so determined, an integral clip count associated with the corresponding said object; third means for examining, for each adjacent pair of edge intersections, the corresponding clip counts to determine a set of said objects that contribute to said raster 5 pixel image for a span of pixel locations between the corresponding pair of edge intersections; and fourth means for determining, for each said span of pixel locations, and using the S"corresponding set of contributing objects, a value for each said pixel location within said span. 72. A computer readable medium comprising a computer program product for S rendering a plurality of graphic objects each having at least one edge to form a raster pixel image including a plurality of scan lines and a plural of pixel locations within each said scan line, said computer program product implementing, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those of said objects that intersect said scan line; for each edge intersection so determined, modifying an integral clip count associated with the corresponding said object; for each adjacent pair of edge intersections, examining the corresponding clip counts to determine a set of said objects that contribute to said raster pixel image for a span of pixel locations between the corresponding pair of edge intersections; and for each said span of pixel locations, using the corresponding set of contributing objects to determine a value for each said pixel location within said span. CFP1449AU UFRgr-1 =03i,02i,06i,07i,lOi,05d,09d,1 3d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr-1 \47273 8.doc -68- 73. A method of rendering at least one graphic object described by at least one edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, updating a table of those said objects current on said scan line, said table including an independence entry for each said lo object indicating that a colour reproduced by said object is independent of a position within said object; for each adjacent pair of edge intersections, examining said table to ::...determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections and forming a rendering instruction based upon 15 said set of objects, said rendering instruction including an indicator that is valid when each of the objects of said set has a corresponding valid independence entry; and determining rendered pixel values using said rendering instruction and said indicator. 74. A method according to claim 73, wherein step comprises the sub-steps of: (da) determining and outputting a rendered pixel value for a first pixel location of said span; (db) examining said indicator and if said indicator is valid; (dba) then outputting said rendered pixel value for each remaining pixel location of said span; or (dbb) else determining and outputting for each remaining pixel location in said span a corresponding rendered pixel value. A method of rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, each said graphic object including an independence entry indicating that a colour reproduced by said object is independent of a position within said object, said method comprising, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,I 3d,15d 472738 1: ELEC\CISPA\UFR\UFRgr-1\472738.doc -69- for each adjacent pair of edge intersections, determining a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections and forming a rendering instruction based upon said set of objects, said rendering instruction including an indicator that is valid when each of the objects of said set has a corresponding valid independence entry; and determining rendered pixel values using said rendering instruction and said indicator. 76. A method according to claim 75, wherein step includes the sub-steps of: (ca) determining a rendered pixel value for a first pixel location of said span; (cb) examining said indicator and if said indicator is valid (cba) then outputting said rendered pixel value for each pixel location of said span; or 15 (cbb) else determining and outputting a corresponding rendered pixel value for each remaining pixel location in said span. 77. A method according to claim 1, wherein each said graphic object is provided with a flag indicative of an independence of said object to a change in pixel colour 20 whereby when a set of said objects are to be rendered simultaneously for said span of pixel locations, an indicator for said set is made valid if each of the objects in the set has a S•valid independence flag so that only a first pixel of said span need be rendered and thereafter that pixel is repeatedly output until the end of the span. 78. Apparatus for rendering at least one graphic object described by at least one edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said apparatus comprising: first means for determining in a predetermined order for each said scan line coordinates of intersection of those edges of said objects that intersect said scan line; second means for updating, for each edge intersection so determined, a table of those said objects current on said scan line, said table including an independence entry for each said object indicating that a colour reproduced by said object is independent of a position within said object; 423S T.doc z 472738.doc 70 corresponding pair of edge intersections and forming a rendering instruction based upon said set of objects, said rendering instruction including an indicator that is valid when each of the objects of said set has a corresponding valid independence entry; and fourth means for determining rendered pixel values using said rendering instruction and said indicator. 79. Apparatus according to claim 2, wherein each said graphic object is provided with a flag indicative of an independence of said object to a change in pixel colour whereby when a set of said objects are to be rendered simultaneously for said span of pixel locations, an indicator for said set is made valid if each of the objects in the set has a valid independence flag so that only a first pixel of said span need be rendered and thereafter that pixel is repeatedly output until the end of the span. go 80. A computer readable medium comprising a computer program product for i s15 rendering at least one graphic object described by at least one edge to form a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said computer program product implementing, for each said scan line, the steps of: determining in a predetermined order coordinates of intersection of those edges of said objects that intersect said scan line; 20 for each edge intersection so determined, updating a table of those said o:ooo S"objects current on said scan line, said table including an independence entry for each said object indicating that a colour reproduced by said object is independent of a position within said object; S- for each adjacent pair of edge intersections, examining said table to determine a set of said objects active for a span of pixel locations between the corresponding pair of edge intersections and forming a rendering instruction based upon said set of objects, said rendering instruction including an indicator that is valid when each of the objects of said set has a corresponding valid independence entry; and determining rendered pixel values using said rendering instruction and said indicator. 472738.doc -71 81. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, said method further comprising reproducing pixel image data defined by at least one graphic object forming part of said image, said image being rendered in a rasterised fashion, said reproducing comprising the steps of: establishing a plurality of graphic object fill types distinguishable by at least one property of each type; receiving at least one graphic object requiring rendering, determining the corresponding fill type and using the determined fill type to access a filling record associated with said at least one graphic object; and performing a filling process associated with said filling record to determine said pixel image data in a rasterised fashion corresponding to said at least one graphic object. 82. A method according to claim 81, wherein one of said types is a raster image type 15 and if said object has a fill type identifying a raster image type object, step comprises using a pixel location in said image to determine a mapping to said pixel image data whereupon that data so mapped is selected for output at said pixel location. 83. A method according to claim 81 or 82, wherein said mapping comprises an 20 affine transform of said pixel image data. S* 84. A method according to claim 81, 82, or 83, wherein said mapping performs a texture mapping of pixel image data to said image. 85. A method according to any one of claims 81 to 84, wherein a pixel location in said image to be rendered is used to access an entry in a table, said table including a reference to a component of said pixel image data to be rendered within said graphic object, manipulating said reference to access part of said pixel image data which is then used to contribute to a rendered pixel value of said raster image at said pixel location. 86. A method according to claim 85, wherein the contribution of said pixel image data comprises a single pixel data value that is reproduced in said image. 87. A method according to claim 85, wherein the contribution of said pixel image data comprises at least one pixel data value that is composited with at least one value CFP1449AU UFRgr-1 03i,02i,06i,07i,lOi,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRgr-1\472738.doc -72- derived from at least one other graphic object within said image to derive a single pixel value that is reproduced in said image. 88. A method according to claim 85, wherein the contribution of said pixel image data comprises one pixel data value that is composited with at least one value derived from at least one other graphic object within said image to derive a plurality of pixel values that are reproduced in said image. 89. A method according to any one of claims 81 to 88, wherein said mapping comprises interpolating a plurality of pixel image data located about a mapped location within said pixel image data. 90. A method according to any one of claims 81 to 85, wherein step comprises the sub-step of: is (ha) developing a stack of values corresponding to each said pixel location on a scan line of said image from data sourced from a table of compositing properties ordered according to object priorities, said stack having a depth corresponding to a number of said objects active at said pixel location; and wherein step comprises the sub-step of: 20 (ia) determining a pixel value at said pixel location using the corresponding said stack. 91. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, wherein the determination of a value for a pixel location comprises compositing first and second pixel values each having corresponding colour and opacity values, said compositing method comprising the steps of: dividing each of said pixel values to define at least two regions thereof, a first being a fully opaque region and another being a fully transparent region; determining areas of intersection between each of said regions to thus derive an opacity value for each of the intersecting regions; selecting at least one of the regions as contributing colour and opacity to a composited pixel value; determining the colours of the selected regions according to a predetermined raster operation; and CFP1449AU UFRgr-1 =03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISPA\UFR\UFRgr- I \472738.doc -73 forming a first sum of colour-opacity products for the selected regions and dividing said first sum by a second sum of the opacities of the selected regions to derive a colour value of said composited pixel, said second sum being an opacity of said composited pixel. 92. A method according to claim 91, wherein the regions of one of said first or second pixel values are arranged orthogonal to those of the other said second or first pixel values to define three intersecting regions of interest upon which steps to are applied. 93. A method according to claim 92, wherein said compositing operation comprises identifying at least one of said regions of interest and using said identified region(s) of interest in said predetermined sum. 15 94. A method according to claim 91, 92 or 93, wherein any one of steps to (i) includes the preliminary step of normalising said colour and opacity values. A method according to claim 94, wherein step comprises using the normalised opacity value to delineate the corresponding said regions. 96. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, wherein the determination of a value for a pixel location comprises compositing a source colour and opacity (so) with a destination colour and opacity said compositing comprising the steps of: normalising the colour and opacity values for each of said source and destination to define at least two regions thereof, a first being a fully opaque region and another being a fully transparent region orthogonally arranging the destination regions to intersect the source regions to derive an opacity value for each of each of three intersecting regions, those being (ha) source outside destination {so x (hb) source intersect destination {so x do}; and (hc) destination outside source x do}; CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\C IS RA\UFR\UFRgr-1 \47273 8.doc -74- determining a source intersect destination (sc x dc) colour value as an opaque component of a composited pixel value according to a predetermined raster operation; and determining an opacity component of said composited pixel value as a sum of selected colour-opacity products, those being: sc(so x (so x do)(sc rop dc) and dc((1-so) x do), where rop represents said predetermined raster operation. 97. A method according to claim 96, wherein said colour-opacity products are 0o selectable according to a predetermined opacity compositing operation. 98. A method according to claim 97, wherein said opacity compositing operation comprises a flag corresponding to each of said intersecting regions and said sum is determined as the sum of the areas of those said intersecting regions for which the S 15 corresponding said flag is set. 99. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, wherein the determination of a value for a pixel location comprises compositing first and second pixel values, each having corresponding colour and opacity values, according to a S 20 predetermined compositing operation, to form a composited pixel value, said compositing comprising the steps of: dividing each of said pixel values to define at least two regions thereof, a first being a fully opaque region and another being a fully transparent region; determining areas of intersection between each of said regions to thus derive a opacity value for each of the intersecting regions; selecting according to said compositing operation at least one of the regions as contributing colour and opacity to said composited pixel value; determining a colour of each said selected region according to a predetermined raster operation being part of said compositing operation; and forming, according to a predetermined opacity operation being part of said compositing operation, a first sum of colour-opacity products of said selected regions and dividing said first sum by a second sum of the opacities of said selected regions to derive a colour value of said composited pixel value, said second sum being an opacity of said composited pixel, wherein said opacity operation comprises a flag corresponding to CFP1449AU UFRgr- 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\E LEC\C ISRA\UFR\U FRgr- I \4727 38.doc each of said regions and said first sum is determined as the sum of the areas of those said regions for which the corresponding said flag is set. 100. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, wherein the determination of a value for a pixel location comprises compositing graphic objects characterised by raster operations between said objects that account for transparency components of each of said objects. 101. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, said method further comprising processing a compositing expression relating to a plurality of said graphical objects, said compositing expression having a plurality of priority levels, said processing comprising, for each priority level, in ascending priority order, the steps of: identifying a plurality of alternative actions available to arise from an operation •associated with at least one operand of said priority level; 15 associating said alternate actions with a plurality of activation conditions for said priority level, said activation conditions including an activity state of each said operand; and logically combining said activation conditions to select one of said alternate actions for determination and application to a next higher priority level. S" 102. A method according to claim 101, wherein said activation conditions include at least one flag indicating a corresponding condition for which said operation provides data, S" a pointer to an entry for a subsequent operation which uses said data, and at least one flag to indicate which said operand provides said data. 103. A method according to claim 102, wherein compositing expression is evaluated by rendering said selected alternate actions in ascending priority order. 104. A method according to claim 103, wherein each said alternate action comprises a stack operation, said stack operations together determining pixel output values for a span of pixels between two object edges on a scan line. 105. A method according to any one of claims 101 to 104, wherein said compositing expression is a hierarchically structured representation of said image. CFP1449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\C ISRA\UFR\UFRgr- I \472738.doc -76- 106. A method according to claim 105, wherein said compositing expression is optimised in regard to the number of pixel operations required to render said image represented by said compositing expression. 107. A method according to claim 106, wherein said logical combining of said activation conditions comprises modifying a manner in which said compositing expression is evaluated without modifying said hierarchically structured representation. 108. A method according to any one of claims 105 to 107, wherein said image o0 comprising at least a pixel based image. 109. A method according to any one of claims 101 to 108, wherein a wholly opaque graphical object at a particular priority level acts to eliminate one or more objects at lower priority levels of said compositing expression. 110. A method according to any one of claims 101 to 109, wherein at least one of said steps comprises forming a table of said alternate actions and said activation conditions. 111. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, said method 20 further comprising forming an optimised compositing expression, said compositing expression being a hierarchically structured representation of an arrangement of graphical objects, wherein each said graphical object has a predetermined outline, said forming comprising the steps of: determining an expression for a plurality of regions, each said region being defined by at least one region outline substantially following at least one of said predetermined outlines or parts thereof; identifying a plurality of further regions depending on at least one characteristic of at least one of said regions, wherein each said further region has an associated compositing operation; logically combining said further regions and said associated compositing operations; and applying said logical combination to a higher level of said hierarchically structured representation to form said optimised compositing expression. CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr- I\472738.doc -77- 112. A method according to claim 111, wherein at least one of said steps comprises forming a table of said alternate actions and said activation conditions. 113. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, said method further comprising forming a stack of compositing operations used for the rendering of an image in a graphical object environment, said forming comprising the steps of: establishing a table arranged according to a priority level at which each said object is reproducible, said table including for each said priority level: entries for a plurality of alternate actions available to arise from an operation 1o associated with at least one operand at said priority level; and entries for activation conditions including an activity state for each said operand; ~updating said entries for a span of displayable pixels between two adjacent object edges on a displayable scan line and; for each said span analysing said activation conditions to select one of said alternate actions for :i 15 each said priority level for transfer in ascending priority order to said stack. 114. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, said method comprising generating a compositing stack for use in rendering an image formed of a plurality of said graphic objects, each of the graphic objects being described by 20 components including at least an edge and a viewing priority relative to the other graphic objects, the generating comprising the steps of: determining the boundaries of said objects and intersections therebetween; for each said intersection so determined, providing a level activation table of objects active at said intersection arranged according to viewing priority; ascertaining whether an active overlying graphic object overlaps an underlying graphic object within an overlap region; where such an overlap occurs, performing clipping operations using the boundaries of the overlying graphic object and the underlying graphic object to generate clipped versions of the overlying and/or underlying graphic objects within the overlap region and/or clipped versions of the underlying and/or overlying graphic objects outside the overlap region; adding to the level activation table: CFP1449AU UFRgr- 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CIS RA\UFR\UFRgr- I \472738.doc -78- (ka) one or more first levels corresponding to those regions of the underlying and overlying graphic objects disposed within the overlap region; and/or (kb) one or more second levels corresponding to those regions of the underlying and/or overlying graphic objects disposed outside the overlap region; and for each pixel within said image, determining a compositing stack based on the level activation table entries relevant to that pixel location. 115. A method according to claim 114, wherein step includes a sub-step (ga) of determining, in a predetermined order, coordinates of intersection of those edges of said objects that intersect said scan line. 116. A method according to claim 115, wherein: 15 step includes a substep (ia) of determining a compositing operator which applies to the overlapping graphic objects; and step includes a substep (ja) of performing the clipping operations using the edges of the overlying object and/or the underlying object on the basis of the compositing 1: operator determined in substep (ia). 117. A method according to claim 116, wherein substep (kb) comprises a substep (kc) of adding to the level activation table the one or more second levels corresponding to the underlying and/or overlying objects, the one or more second levels being selected for addition to the level activation table on the basis of the compositing operator determined in substep (ia). 118. A method according to claim 116 or 117, wherein said compositing operator is a Porter and Duff compositing operator. 119. A method according to any one of claims 5, 16, 27, 41, 51, 58 or 73, said method comprising generating a compositing stack based on table entries in a level activation table, for use in rendering a plurality of said graphic objects onto said raster pixel image having a plurality of scan lines and a plurality of locations on each scan line, each of the graphic objects being described by components including at least an edge and a viewing priority relative to the other graphic objects, the generating comprising the steps of: CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 [:\ELEC\CIS RA\UFR\UFRgr-1 \47273 8.doc -79- determining, in a predetermined order, coordinates of intersection of those edges of said objects that intersect said scan line; for each edge intersection so determined, updating the level activation table, the level activation table being arranged according to viewing priority; ascertaining whether an active overlying graphic object overlaps an underlying graphic object within an overlap region; where such an overlap occurs, performing clipping operations using edges of the overlying graphic object and the underlying graphic object to generate clipped versions of the overlying and/or underlying graphic objects within the overlap 1o region and/or clipped versions of the underlying and/or overlying graphic objects outside the overlap region; adding to the level activation table: t: one or more first levels corresponding to those regions of the ~underlying and overlying graphic objects disposed within the overlap region; 15 and/or (kb) one or more second levels corresponding to those regions of the .o ~underlying and/or overlying graphic objects disposed outside the overlap region; and for each pixel location on the scan line, determining a compositing stack *eo 20 based on the level activation table entries relevant to that pixel location. 0.0. 120. A method according to claim 119, wherein step comprises the sub-step of performing clipping operations using edges of the overlying graphic object and the underlying graphic object to generate clipped versions of the overlying and underlying graphic objects within the overlap region and a clipped version of the underlying or overlying graphic objects outside the overlap region. 121. A method according to any one of claims 114 to 120, wherein said overlying object is non-opaque. 122. A method of rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said method being substantially as described herein with reference to any one of the embodiments as that embodiment is illustrated in the drawings. CFPI449AU UFRgr-I 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 I:\ELEC\CISRA\UFR\UFRg- \472738.doc 123. Apparatus for rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said apparatus being substantially as described herein with reference to any one of the embodiments as that embodiment is illustrated in the drawings. 124. A computer readable medium storing a program for rendering at least one graphic object described by at least one edge into a raster pixel image having a plurality of scan lines and a plurality of pixel locations on each said scan line, said program being substantially as described herein with reference to any one of the embodiments as that embodiment is illustrated in the drawings. DATED this NINTH day of SEPTEMBER 1999 Canon Kabushiki Kaisha Patent Attorneys for the Applicant/Nominated Person SPRUSON FERCUSON s** o CFP1449AU UFRgr-1 03i,02i,06i,07i,10i,05d,09d,13d,15d 472738 1:\ELEC\CISRA\UFR\UFRgr-1\472738.doc
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AU47509/99A AU743218B2 (en) | 1998-09-11 | 1999-09-10 | Fast renering techniques for rasterised graphic object based images |
Applications Claiming Priority (19)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AUPP5857A AUPP585798A0 (en) | 1998-09-11 | 1998-09-11 | Clipping objects in rasterised rendering |
AUPP5855A AUPP585598A0 (en) | 1998-09-11 | 1998-09-11 | Fill count management in image rendering |
AUPP5861A AUPP586198A0 (en) | 1998-09-11 | 1998-09-11 | Object compositing in rasterised rendering |
AUPP5858 | 1998-09-11 | ||
AUPP5863 | 1998-09-11 | ||
AUPP5859 | 1998-09-11 | ||
AUPP5857 | 1998-09-11 | ||
AUPP5855 | 1998-09-11 | ||
AUPP5856A AUPP585698A0 (en) | 1998-09-11 | 1998-09-11 | Improved image rendering method and apparatus |
AUPP5859A AUPP585998A0 (en) | 1998-09-11 | 1998-09-11 | Unified compositing model for graphic object rendering |
AUPP5861 | 1998-09-11 | ||
AUPP5856 | 1998-09-11 | ||
AUPP5858A AUPP585898A0 (en) | 1998-09-11 | 1998-09-11 | Pixel image objects in graphic object rasterisation |
AUPP5863A AUPP586398A0 (en) | 1998-09-11 | 1998-09-11 | Generating repeats in rasterised rendering |
AUPP9234 | 1999-03-16 | ||
AUPP9234A AUPP923499A0 (en) | 1999-03-16 | 1999-03-16 | Node activation in binary, tertiary and higher order expression trees |
AUPQ0049A AUPQ004999A0 (en) | 1999-04-29 | 1999-04-29 | Clipping objects in stack-based compositing |
AUPQ0049 | 1999-04-29 | ||
AU47509/99A AU743218B2 (en) | 1998-09-11 | 1999-09-10 | Fast renering techniques for rasterised graphic object based images |
Publications (2)
Publication Number | Publication Date |
---|---|
AU4750999A AU4750999A (en) | 2000-03-16 |
AU743218B2 true AU743218B2 (en) | 2002-01-24 |
Family
ID=27578963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU47509/99A Ceased AU743218B2 (en) | 1998-09-11 | 1999-09-10 | Fast renering techniques for rasterised graphic object based images |
Country Status (1)
Country | Link |
---|---|
AU (1) | AU743218B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1528510A3 (en) * | 2000-04-14 | 2012-03-07 | Samsung Electronics Co., Ltd. | Advanced Shape Processor |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU744091B2 (en) * | 1998-09-11 | 2002-02-14 | Canon Kabushiki Kaisha | Processing graphic objects for fast rasterised rendering |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU3529297A (en) * | 1996-08-30 | 1998-03-05 | Sony Corporation | Method and apparatus for texture data |
AU4750899A (en) * | 1998-09-11 | 2000-03-16 | Canon Kabushiki Kaisha | Processing graphic objects for fast rasterised rendering |
-
1999
- 1999-09-10 AU AU47509/99A patent/AU743218B2/en not_active Ceased
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU3529297A (en) * | 1996-08-30 | 1998-03-05 | Sony Corporation | Method and apparatus for texture data |
AU4750899A (en) * | 1998-09-11 | 2000-03-16 | Canon Kabushiki Kaisha | Processing graphic objects for fast rasterised rendering |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1528510A3 (en) * | 2000-04-14 | 2012-03-07 | Samsung Electronics Co., Ltd. | Advanced Shape Processor |
Also Published As
Publication number | Publication date |
---|---|
AU4750999A (en) | 2000-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6483519B1 (en) | Processing graphic objects for fast rasterised rendering | |
US6828985B1 (en) | Fast rendering techniques for rasterised graphic object based images | |
US6961067B2 (en) | Reducing the number of compositing operations performed in a pixel sequential rendering system | |
US7714865B2 (en) | Compositing list caching for a raster image processor | |
US7023439B2 (en) | Activating a filling of a graphical object | |
US20020015039A1 (en) | Rendering graphic object based images | |
US7538770B2 (en) | Tree-based compositing system | |
US7551173B2 (en) | Pixel accurate edges for scanline rendering system | |
AU744091B2 (en) | Processing graphic objects for fast rasterised rendering | |
AU760826B2 (en) | Rendering graphic object based images | |
AU743218B2 (en) | Fast renering techniques for rasterised graphic object based images | |
AU779154B2 (en) | Compositing objects with opacity for fast rasterised rendering | |
AU2005200948B2 (en) | Compositing list caching for a raster image processor | |
AU2004200655B2 (en) | Reducing the Number of Compositing Operations Performed in a Pixel Sequential Rendering System | |
AU2005201868A1 (en) | Removing background colour in group compositing | |
AU2002301643B2 (en) | Activating a Filling of a Graphical Object | |
AU2004231232B2 (en) | Pixel accurate edges for scanline rendering system | |
AU2004233469A1 (en) | Rendering linear colour blends | |
AU2005201929A1 (en) | Rendering graphic object images | |
AU2004233516B2 (en) | Tree-based compositing system | |
AU2004237873A1 (en) | State table optimization in expression tree based compositing | |
AU2005201931A1 (en) | Rendering graphic object images | |
AU2004231233A1 (en) | Render Time Estimation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FGA | Letters patent sealed or granted (standard patent) |