US 6,756,994 B1Grant
Method and apparatus for handling secondary dependencies
Issue Date:2004-06-29
•45 Claims
•10 Drawing Sheets
Abstract
A method and apparatus for creating a series of images is disclosed. The method manages secondary dependencies of regions in a more efficient manner than the prior art. The present invention creates contents labels that represent either leaf node regions or the composition of two other contents labels, manages the reference counting of contents labels and provides a means for determining if there exists a contents label which represents the composition of two other contents labels. The present invention damages contents labels by preferably adding entries to a damage hash table. The present invention utilizes secondary dependency “Directed Acyclic Graphs” (herein referred to as “Dags”) (700) which are stored in every binary node and define the secondary dependency relationship between the contents label created in that node. Information is provided by the present invention as to whether a contents label which has the potential to come into existence is damaged in any way, via examination of secondary dependency Dags associated with the contents label. Information is also provided on whether rendering can be avoided by determining the properties of particular compositing operators involved in a rendering operation.
Metadata
Assignee
- Canon Kabushiki Kaisha
Inventor
- Martin Paul Tlaskal
Application Information
Application Number:US 09/633,886
Filing Date:2000-08-07
Priority Date:2000-08-07
Art Unit:7
Classifications
IPC:
G09G 500
Field of Search:
345440345648345619345622345672345441
Patent Drawings (10 sheets)
Description
TECHNICAL FIELD OF THE INVENTION
[0002] The present invention relates to the creation of computer-generated images both in the form of still pictures and video imagery, and, in particular, relates to efficient process, apparatus, and systems for creating an image made up by compositing multiple components. The invention also relates to a computer program product including a computer readable medium having recorded thereon a computer program for creating an image made up by compositing multiple components.
BACKGROUND ART
[0003] Computer generated images are typically made up of many differing components, graphical elements or graphical objects which are rendered and composited together to create a final image. In recent times, an “opacity channel” (also known as a “matte”, an “alpha channel”, or simply “opacity”) has been commonly used. The opacity channel contains information regarding the transparent nature of each element. The opacity channel is stored alongside each instance of a colour, so that, for example, a pixel-based image with opacity, stores an opacity value as part of the representation of each pixel. An element without explicit opacity channel information is typically understood to be fully opaque or partially transparent within some defined bounds of the element, and assumed to be completely transparent outside those bounds.
[0004] An expression tree offers a systematic means for representing an image in terms of its constituent elements and which facilitates later rendering. Expression trees typically comprise a plurality of nodes including leaf nodes, unary nodes and binary, nodes. Nodes of higher degree, or of alternative definition may also be used. A leaf node, being the outer most node of an expression tree, has no descendent nodes and represents a primitive constituent of an image. Unary nodes represent an operation which modifies the pixel data coming out of the part of the tree below the unary operator. Unary nodes include such operations as colour conversions, convolutions (blurring etc) and operations such as red-eye removal. A binary node typically branches to left and right subtrees, wherein each subtree is itself an expression tree comprising at least one leaf node. Binary nodes represent an operation which combines the pixel data of its too children to form a single result. For example, a binary node may be one of the standard “compositing operators” such as OVER, IN, OUT, ATOP and alpha-XOR, examples of which and others are shown in FIG. 2.
[0005] Several of the above types of nodes can be combined to form a compositing tree. An example of this is shown in FIG. 1. The result of the left-hand side of the compositing tree may be interpreted as a colour converted image being clipped to spline boundaries. This construct is composited with a second image.
[0006] Although the non-transparent area of a graphical element can of itself be of certain size, it need not be entirely visible in a final image, or only a portion of the element may have an effect on the final image. For example, assume an image of a certain size is to be displayed on a display. If the image is positioned so that only the top left corner of the image is displayed by the display device, the remainder of the image is not displayed. The final image as displayed on the display device thus comprises the visible portion of the image, and the invisible portion in such a case need not be rendered.
[0007] Another way in which only a portion of an element may have an effect is when the portion is obscured by another element. For example, a final image to be displayed (or rendered) may comprise one or more opaque graphical elements, some of which obscure other graphical elements. Hence, the obscured elements have no effect on the final image.
[0008] A conventional graphics rendering model considers each node to be conceptually infinite in extent. Therefore, to construct the final image, a conventional system would apply a compositing equation at every pixel of the output image. Interactive frame rates of the order greater than 15 frames per second can be achieved by relatively brute-force approaches in these conventional systems, because the actual pixel operations are quite simple and can be highly optimised. This highly optimised code is fast enough to produce acceptable frame rates without requiring complex code. However, this is certainly not true in an alpha compositing environment where complex expressions can be very computationally expensive. Thus, the per-pixel cost of compositing can be quite high since typically an image is rendered in 24-bit colour in addition to an 8-bit alpha channel, thus giving 32 bits per pixel. Each compositing operator has to deal with each of the four channels. Therefore, the approach of completely generating every pixel of every required frame when needed is inefficient. This problem is particularly relevant when performing “Dynamic Rendering”.
[0009] Dynamic rendering refers to the generation of multiple successive images. Given a compositing tree, it is possible to generate region groups (containing regions) for the compositing tree. The compositing tree represents an initial image. Changes to the tree can be made to make the tree represent a new image. The region groups and the region description of the tree are updated to reflect the modified tree. Performance can be improved by exploiting commonality between the two images.
[0010] Australian Patent Publication No. AU-A-47329/99 discloses a method of creating a series of images formed by rendering graphical objects. The method disclosed by Australian Patent Publication No. AU-A-47329/99 exploits the opaqueness of the graphical objects to be rendered during a compositing operation. The contents of Australian Patent Publication No. AU-A47329/99 are incorporated herein by cross-reference.
[0011] An example implementation of the method disclosed by AU-A-47329/99 utilises a label referred to as a “Contents Label (CL)” which represents a unique symbolic expression describing the method of construction of image data. The contents label disclosed by AU-A- 47329/99 is implemented as an index into an array of contents label property structures, which are represented by the tag CL_Properties. The terms in the symbolic expression are used to distinguish between different categorisations of the source of image data. Region groups of two distinct leaf nodes in a compositing tree can contain regions that are labelled with distinct contents labels even if their actual image data is equivalent. A region of the image is substantially defined by the boundary outlines of two or more overlapping graphical elements. The example implementation disclosed by AU-A-47329/99 utilises a system of unique integers to represent contents labels. For example, “23” represents “(A over B) over C”.
[0012] AU-A-47329/99 also described the concepts of “primary” and “secondary” damage in order to demonstrate that it is not always necessary to regenerate an entire image as a result of a change to the compositing tree representing the image. Any region of the image including a compositing equation with an object that has been altered in some way can be said to suffer primary damage. Secondary damage is said to have been incurred by a region, if the object upon which the boundary outline of the region (but not content) depends, changes in some way. By keeping track of dependencies between regions of different content, it only becomes necessary to regenerate image data in regions whose contents have become damaged. These dependencies are referred to as “primary” and “secondary” dependencies. A primary dependency is a contents label (e.g. L′) representing an expression which has been constructed by combining L and sonic other contents label. A secondary dependency is a contents label L″ which can be indirectly affected if the image represented by the contents label L has changed in some way that the boundary of L is affected, For example, FIG. 9 shows the region subdivision and the respective compositing expressions for a simple compositing tree. Consider therefore the situation in which object A moves by a small amount relative to the other objects. Some regions in the region group at the root of the tree will be affected by A moving.
[0013] If opaque case optimisations are ignored, the regions with compositing expressions which include A will be significantly affected by A moving. The region numbers which are so affected are 2, 3, 5 and 6. When updating the region group at the root of the tree, those regions will need their region descriptions and proxies completely recalculated. This situation is an example of primary damage. Further, regions that abut regions which have A in their compositing expression are also effected by A moving, though not as severely as those regions with primary damage. In the example, these other affected regions are 1, 4, 7 and 8. When updating the region group at the root of the tree, these regions will need their region descriptions recalculated. However, their proxies will only need to be recalculated in areas of the new region which were not included in the corresponding earlier region. This situation is an example of secondary damage as discussed above.
[0014] The example implementation disclosed by AU-A-47329/99 was deficient in the method used to manage the determination of secondary dependencies and hence secondary damage. Given the existence of a particular composite contents label, the example implementation disclosed by AU-A-47329/99 generated every possible related contents label which could possibly be secondary damaged if the region and associated contents label in question became primary damaged. In compositions with high “depth complexity” a large number of contents labels were generated, the vast majority of which did not exist. Depth complexity in this context means the number of leaf-node graphical objects which intersect one another. Performance degraded rapidly as depth complexity increased, due to the significant burden of creating and damaging such a large number of contents labels.
DISCLOSURE OF THE INVENTION
[0015] It is an object of the present invention to substantially overcome, or at least ameliorate, one or more disadvantages of existing arrangements.
[0016] According to one aspect of the present invention there is provided a method of creating a series of images, each member of said series being related to a preceding member, said images being formed by rendering a plurality of graphical objects to be composited according to a hierarchical structure representing a compositing expression, said hierarchical structure including a plurality of nodes each representing a component of at least one of said images, each of said objects having a predetermined outline, said method comprising the steps of:
[0017] (a) for each said node:
[0018] (i)dividing a component image space in which said outlines are defined into at least one mutually exclusive region, each said region being related to at least one graphical object;
[0019] (ii)examining each said region to determine those objects that contribute to the region;
[0020] (b) creating dependency information identifying those said regions that will be affected by a change in any one of said regions;
[0021] (c) rendering a first image of said series by compositing all regions substantially according to said hierarchical structure;
[0022] (d) in response to at least one change to at least one of said nodes:
[0023] (i)examining said dependency information to identify those of said regions affected by said at least one change, wherein at least one of said regions is indirectly affected by a change to at least one other of said regions, said indirectly affected region being identified by inference through association with at least one other of said affected regions;
[0024] (ii)for each node with affected regions, updating the corresponding identified regions and incorporating into said node those (any) new regions arising from the change and/or removing any of said regions that are no longer relevant,
[0025] (iii)updating said dependency information to reflect changes to said hierarchical structure;
[0026] (iv)rendering a further image of said series by compositing (only) those regions affected by said at least one change; and
[0027] (e) repeating step (d) for further changes to at least one of said nodes.
[0028] According to another aspect of the present invention there is provided a method of creating a series of images, said images being formed by rendering a plurality of graphical objects to be composited according to a hierarchical structure, said hierarchical structure including a plurality of nodes each representing a component of at least one of said images, each of said objects having a predetermined outline, said method comprising the steps of:
[0029] (a) for each said node:
[0030] (iii)dividing a space in which said outlines are defined into at least one mutually exclusive region;
[0031] (iv)examining each said region to determine those objects that contribute to the region;
[0032] (b) creating dependency information based on said examination,
[0033] (c) rendering a first image of said series utilising said hierarchical structure; and then, in response to at least one chance to at least one of said nodes;
[0034] (d) examining said dependency information;
[0035] (i)for a node with affected regions, updating the corresponding regions, wherein at least one of said regions is indirectly affected by a change to at least one other of said regions, said indirectly affected region being identified by inference through association with at least one other of said affected regions;
[0036] (ii) updating said dependency information;
[0037] (iii)rendering a further image of said series by compositing those regions affected by said at least one change; and
[0038] (e) repeating step (d) for further changes to at least one of said nodes.
[0039] According to still another aspect of the present invention there is provided a method of creating a series of images, said images being formed by rendering at least a plurality of graphical objects to be composited according to a hierarchical structure, said hierarchical structure including a plurality of nodes each representing a component of at least one of said images, said method comprising the steps of:
[0040] (a) for each said node:
[0041] (i)dividing a component image space in which said graphical objects are defined into at least one region;
[0042] (ii) examining each said region;
[0043] (b) creating dependency information for each of said regions;
[0044] (c) rendering a first image of said series utilising said hierarchical structure; and then, in response to at least one change to at least one of said nodes;
[0045] (d) examining said dependency information;
[0046] (i)for a node with affected regions, updating the corresponding information, wherein at least one of said regions is indirectly affected by a change to at least one other of said regions, said indirectly affected region being identified by inference from being associated with at least one other of said affected regions;
[0047] (ii) updating said dependency record;
[0048] (iii)rendering a further image of said series; and
[0049] (e) repeating step (d) for further changes to at least one of said nodes.
[0050] According to still another aspect of the present invention there is provided a apparatus for creating a series of images, each member of said series being related to a preceding member, said images being formed by rendering a plurality of graphical objects to be composited according to a hierarchical structure representing a compositing expression, said hierarchical structure including a plurality of nodes each representing a component of at least one of said images, each of said objects having a predetermined outline, said apparatus comprising:
[0051] division means for dividing a component image space in which said outlines are defined into at least one mutually exclusive region, each said region being related to at least one graphical object and each said region being examined to determine those objects that contribute to the region;
[0052] dependency information creation means for creating dependency information to identify those said regions that will be affected by a change in any one of said regions;
[0053] render means for rendering a first image of said series by compositing all regions substantially according to said hierarchical structure;
[0054] examination means for examining said dependency information in response to at least one change to at least one of said nodes, to identify those of said regions affected by said at least one change, wherein at least one of said regions is indirectly affected by a change to at least one other of said regions, said indirectly affected region being identified by inference through association with at least one other of said affected regions, and wherein for each node with affected regions, the corresponding identified regions are updated by an updating means and those (any) new regions arising from the change are incorporated into said node and/or any of said regions that are no longer relevant are removed, said dependency information is updated to reflect changes to said hierarchical structure, and wherein said render means renders a further image of said series by compositing (only) those regions affected by said at least one change
[0055] According to still another aspect of the present invention there is provided a computer readable medium for storing a program for apparatus which processes data, said processing comprising a process for creating a series of images, each member of said series being related to a preceding member, said images being formed by rendering a plurality of graphical objects to be composited according to a hierarchical structure representing a compositing expression, said hierarchical structure including a plurality of nodes each representing a component of at least one of said images, each of said objects having a predetermined outline, said program comprising:
[0056] code for dividing a component image space in which said outlines are defined into at least one mutually exclusive region, each said region being related to at least one graphical object;
[0057] code for examining each said region to determine those objects that contribute to the region;
[0058] code for creating dependency information identifying those said regions that will be affected by a change in any one of said regions;
[0059] code for rendering a first image of said series by compositing all regions substantially according to said hierarchical structure;
[0060] code for examining said dependency information in response to at least one change to at least one of said nodes, to identify those of said regions affected by said at least one change, wherein at least one of said regions is indirectly affected by a change to at least one other of said regions, said indirectly affected region being identified by inference through association with at least one other of said affected regions;
[0061] code for updating the corresponding identified regions for each node with affected regions, and incorporating into said node those (any) new regions arising from the change and/or removing any of said regions that are no longer relevant;
[0062] code for updating said dependency information to reflect changes to said hierarchical structure; and
[0063] code for rendering a further image of said series by compositing (only) those regions affected by said at least one change.
BRIEF DESCRIPTION OF THE DRAWINGS
[0064] A number of preferred embodiments of the present invention still now be described with reference to the drawings, in which:
[0065] FIG. 1 is an example of a compositing tree;
[0066] FIG. 2 depicts the result of a variety of compositing operators useful with the present invention;
[0067] FIG. 3 shows a difference region being secondary boundary damaged as a result being an ancestor of an intersection region;
[0068] FIG. 4 shows the partitioning of a top-level region group;
[0069] FIG. 5 shows another region group sharing a portion of the top-level region group of FIG. 4;
[0070] FIG. 6 shows five overlapping objects representing a root region group;
[0071] FIG. 7 shows the secondary dependency Dag associated with the region group of FIG. 6;
[0072] FIG. 8 is a flowchart showing a method of creating a series of images in accordance with the preferred embodiment of the present invention;
[0073] FIG. 9 shows the region subdivision and the respective compositing expressions for a simple compositing tree; and
[0074] FIG. 10 is a schematic block diagram of a general purpose computer upon which the preferred embodiment of the present invention can be practiced.
DETAILED DESCRIPTION INCLUDING BEST MODE
1.0 Detailed Description
[0075] Where reference is made in any one or more of the accompanying drawings to steps and/or features, which have the same reference numerals, those steps and/or features have for the purposes of this description the same function(s) or operation(s), unless the contrary intention appears.
[0076] Some portions of the detailed description that follows are explicitly or implicit presented in terms of algorithms and symbolic representations of operations on data within a computer memory (ie. computer code). These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usable, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
[0077] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present description, discussions utilising terms such as “processing”, “computing”, “generating”, “creating”, “operating”, “communicating”, “rendering”, “providing”, and “linking” or the like, refer to the action and processes of a computer system, or similar electronic device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
[0078] The preferred embodiment is a method of creating a series of images, which manages secondary dependencies of regions in a more efficient manner than the prior art. The preferred embodiment creates contents labels that represent either leaf node regions or the composition of two other contents labels. The preferred embodiment manages the reference counting of contents labels and provides a means for determining if there exists a contents label which represents the composition of two other contents labels. The preferred embodiment damages contents labels by preferably adding entries to a damage hash table. The preferred embodiment utilises secondary dependency “Directed Acyclic Graphs” (hereinafter referred to as “Dags”) which are stored in every binary node and define the secondary dependency relationship between the contents label created in that node. An example Dag 700 is shown in FIG. 7. Information is provided by the preferred embodiment as to whether a contents label which has the potential to come into existence is damaged in any way, via examination of secondary dependency Dags associated with the contents label. The preferred embodiment also provides information on whether rendering can be avoided by determining the properties of particular compositing operators involved in a rendering operation.
[0079] FIG. 8 is a flowchart showing a method of creating a series of images in accordance with the preferred embodiment of the present invention. Each member of the series of images is related to a preceding member. The images are formed by rendering a number of graphical objects to be composited according to a hierarchical compositing tree representing a compositing expression. Each node of the hierarchical compositing tree represents a component of at least one of the images and each of the objects has a predetermined outline. Secondary dependency Dags are preferably stored in every node of the hierarchical compositing tree, as discussed above. The process begins at step 801, where a hierarchical compositing tree representing a first image is accessed. At the next step 803, for each node of the hierarchical compositing tree, the component image space is subdivided into a number of mutually exclusive regions. Each of the mutually exclusive regions is tagged with a contents label in accordance with the preferred embodiment. The process continues at step 805, where each of the mutually exclusive regions is examined and dependency information is created. The data structure of the dependency information and the method for creating it are described in AU-A-47329/99 in conjunction with the description below. At the next step 807, the first image is rendered according to the hierarchical structure. The process continues at step 809, where the image changes resulting in changes to the hierarchical compositing tree. At the next step 811, the dependency information is examined to determine which regions have been affected by the changes to the hierarchical compositing tree. In accordance with the preferred embodiment, rather than generating every possible contents label in order to determine secondary damage, the preferred embodiment infers secondary damage for a region (or possibly regions) from the primary damage of regions related to the damaged region. The preferred embodiment examines the secondary dependency Dag or Dags associated with the region. The inference of secondary damage and examination of the Dags will be described in more detail below. The process continues at the next step 813, where affected regions are updated. The updating of the affected regions is described in AU-A-47329/99 in conjunction with the description below. At the next step 815, the dependency information is updated to reflect the changes to the hierarchical compositing tree. The process continues at step 817, where the changed portions of the first image are rendered according to the hierarchical compositing tree to produce the updated image. Only those regions affected by the change are rendered at step 817.
[0080] In accordance with the preferred embodiment, a contents label is preferably configured as a pointer to a properties structure, preferably represented by the tag CL_Properties. The properties structure CL_Properties contains data defining the properties of the region represented by the contents label as well as how the contents label relates to other contents labels. Alternatively, the contents label can be configured as all index into an array of contents label property structures. However, the preferred contents label configuration is very efficient in that it minimises indirection when accessing contents label properties structures. The properties structures are preferably allocated in large chunks, represented by the tag CL_PropertiesChunk in accordance with the preferred embodiment, to prevent fragmentation. Once a chunk has been allocated, all of the property structures that the chunk contains are threaded into a free list, which is attached to an instance associated with the contents label. The instance is represented bar the tag CL_Instance, in accordance with the preferred embodiment. When the new contents label is required, the first element of the free list is used. When the contents label is no longer required, the properties structure is added to the free list associated with the instance.
[0081] The above description outlined the method for creating a contents label to represent a leaf node region. However, in accordance with the preferred embodiment, it is possible to create a “composite contents label” which represents the composition of two other existing contents labels. This 3-to-1 mapping (i.e. 2 contents labels plus a compositing operator) is achieved by having the CL_Instance contain a hash table, consisting of CL_HashItem structures, which is keyed by a contents label pair and a compositing operator which maps to a single contents label.
[0082] When a contents label is created in accordance with the preferred embodiment, a primary dependency list associated with the created label is empty, and it is a member of no secondary dependency Dags. Composite contents labels can be members of a Dag. For a leaf node contents label, whether it is opaque or not is a direct result of the data provided by the leaf node. On the other hand, when a composite contents label is created, whether or not the composite label represents opaque content is dependent on the opaqueness properties of the ancestors of the label and the compositing operator of the composite contents label.
[0083] Each contents label preferably contains an array containing the leaf node contents labels contributing to it. For a leaf node the array is of size 1. For composite contents labels, the size of the array is dependent on the depth-complexity. The array is used to speed up the operations needed to position a contents label within a secondary dependency Dag.
[0084] A reference counting method is used to manage contents labels in accordance with the preferred embodiment. The preferred reference counting method does no: necessitate the creation of contents labels which do not exist simply so that the contents labels can be damaged. Preferably, contents labels have a reference count of one when they are created. For leaf node contents labels, the associated reference can be thought of as being from the entry in a structure of the contents label of the particular leaf node. The associated reference of a contents label associated with a leaf node is represented by the tag LA_ContentInfo, in accordance with the preferred embodiment. For composite contents labels, this initial reference can be thought of as being from an intersection region in a region group. References, can come from the following sources in accordance with the preferred embodiment:
[0085] (i) from being presented in an LA_ContentInfo structure. This occurs only for leaf contents labels, and only one reference from this source is possible;
[0086] (ii) from a descendent contents label. Each composite contents label increments the reference count of both its ancestors, to ensure that neither is deleted before file descendent itself is deleted;
[0087] (iii) from a region above the current region, represented by a tag NA_Region in a group of regions represented by NA_RegionGroup in accordance with the preferred embodiment, in the compositing tree. Multiple references are possible from this source;
[0088] (iv) from a contents label Dag node, represented by the tag CL_DagNode in accordance with the preferred embodiment, in a contents label Dag, represented by the tag CL_SecDepDag, in accordance with the preferred embodiment. Since a contents label can be represented in multiple secondary dependence Dags, multiple references are possible from this source;
[0089] (v) from a damage hash item, represented by the tag DH_Item in accordance with the preferred embodiment, in a damage hash table, represented bad the tag DH_DamageHash in accordance with the preferred embodiment. Only one reference is possible per damage hash table;
[0090] (vi) from a display partitioning item, represented by the tar DP_Item in a display partitioning represented by the tag DP_DestPartitioning, in accordance with the preferred embodiment. Only one reference is possible per display partitioning; and
[0091] (vii) from an entry in a binary node associated with a contents label, represented by the tag CT_BinaryNode in accordance with the preferred embodiment, unlinked contents labels array.
[0092] Once a reference count of a contents label falls to 0, the primary dependencies array associated with the contents label will be empty, and the contents label will not be a member of any secondary dependency Dags. The contents label having a reference count of 0 can then be added to the list of free contents labels associated with an instance.
[0093] It is necessary, in accordance with the preferred embodiment, to be able to determine whether or not there is an existing contents label which represents the composition of two other contents labels. Preferably, a lookup is performed to determine this by constructing a key using the contributing contents labels and operator, and determining if a matching entry exists in the hash table associated with the contents label. If so, the contents label representing the composition is preferably generated. Otherwise, NULL is generated.
[0094] Damaging a contents label is preferably implemented by placing an item into a damage hash table for each contents label affected by the damage. Each affected contents label can be damaged with boundary damage (primary/secondary), contents damage and integer translation damage. The contents labels affected by primary boundary damage, contents damage and integer translation damage are preferably determined by recursively damaging the primary dependencies of the contents label. If a contents label is being damaged with primary boundary damage, then contents labels related to the contents label in a secondary dependency relationship will be affected by secondary boundary damage. Essentially, if the contents label is a peak of a secondary dependency Dag (i.e. the contents label has no parents in the Dag), then all the other contents labels in the Dag reachable from the contents label are damaged with secondary damage. Integer translation damage can only be applied if primary boundary and contents damage is also applied.
[0095] When a new intersection region is created in a region group, the two contents labels which contributed to the new intersection region (i.e. the ancestors of the intersection region) are preferably stored in the properties structure of the near composite contents label. As well as representing the ancestors of new content's label, these contents labels also represent possible difference regions within the region group. The boundary of the difference region is affected by both the boundary contributed by the difference regions equivalent region lower in the tree, as well as the boundaries of any regions intersecting it. When the boundaries of one of the intersecting regions changes (i.e. the contents label associated with the intersection region has primary boundary damage), the difference region will be secondary boundary damaged as a result of being an ancestor of the intersection region. For example, as seen in FIG. 3, “A” is a difference region, which is intersected by “B”, “C” and “D”. The difference region is referred to as an ancestor of AoB, AoC, AoD. Thus, if B, C or D move, then A will be appropriately damaged.
[0096] As discussed above, rather than generating every possible contents label (which can exist given the existence of a “peak” contents label) in order to determine secondary damage, the preferred embodiment infers secondary damage for a contents label (or possibly contents labels) from the primary damage of contents labels related to the damaged contents label. A contents label can be said to have secondary damage, in accordance with the preferred embodiment, if either of the following criteria are met:
[0097] (i) the contents label is the direct ancestor of a contents label with primary damage. This is the only way a leaf node contents label can be secondary damaged; or
[0098] (ii) for a composite contents label (i.e a op b), there exists a contents label (A op B) which is primary damaged, where every leaf node contents label contributing to ‘a’ also contributes to ‘A’. Similarly, every leaf node contents label contributing to ‘b’ must also contribute to ‘B’. (A op B) is termed a “superset” of (a op b), as well as possibly a superset of a large number of other contents labels. Alternatively, (a o b) is a subset of (A op B).
[0099] To determine whether or not a particular contents label has secondary damage, a search can be performed in accordance with the preferred embodiment to determine a matching “superset” contents label with primary damage. In this connection, it is preferable not to undertake a brute force search of primary-damaged contents labels. Therefore, the preferred embodiment assumes that a composite contents label's “superset” contents label must be a contents label (attached to an intersection region) which must have been created within the same node as the contents label itself. This assumption limits the search space considerably. Each region group preferably contains a contents label managed secondary dependency Dag which defines the secondary dependency relationship between the contents label created within that node. Those contents labels in the Dag which have no parents are referred to as peaks, as discussed above. Peaks are the superset of a mountain of possible contents labels.
[0100] In the prior art example implementation discussed above, a contents label was implemented as an index into an array of CL_Properties structures. To avoid this indirection, in accordance with the preferred embodiment, the contents label is configured as a pointer directly to a CL_Properties structure. Further, a variable, represented by the tag CL_Property*, is preferably referred to as a contents label, since the terms are completely interchangeable.
[0101] Each Dag node preferably contains two linked lists of Dag node references, represented by the tag CL_DagNodeRef in accordance with the preferred embodiment. One represents the children of the Dag node, the other represents the parents of the Dag node. Linked lists are preferably used since secondary dependency Dags are expected to require considerable editing during their lifetimes. In addition, the use of linked lists allows new elements to be added to the front of the list whilst the remainder of the list is being traversed. The structure of CL_DagNodeRef is shown in Appendix 1.
[0102] A node representing the position of a contents label in a secondary dependency Dag is represented by the tag CL_DagNode in accordance with the preferred embodiment. Each Dag node is preferably attached to a single contents label. Preferably, Dag nodes are decoupled from the contents labels themselves since it is possible for a contents label to be a member of a number of Dags at the same time. The structure of CL_DagNode is shown in Appendix 1.
[0103] The structure representing a secondary dependency Dag is represented by the tag CL_SecDepDag, in accordance with the preferred embodiment. CL_SecDepDag stores the entry points into the Dag. Any Dag node without any parents is considered an entry point, and is referred to as the peak as discussed above. The structure of CL_SecDepDag is shown in Appendix 1.
[0104] The structure containing the properties of a contents label is represented by the tag CL_Properties, in accordance with the preferred embodiment. The structure of CL_Properties is shown in Appendix 1.
[0105] An item in the hash table associated with the CL instance is preferable represented by the tag CL_HashItem. A single item maps two contents labels plus an operator to another contents label. Each composite contents label has such an entry in the hash table. The structure of CL_HashItem is shown in Appendix 1.
[0106] In order to reduce memory fragmentation, CL_Properties structures are preferably allocated in large chunks (e.g. of several hundred or so), represented by CL_PropertiesChunk in accordance with the preferred embodiment. When a chunk is created, all of its members are preferably linked into a free list, which is attached to the CL_Instance. To obtain a new properties structure, an item is unlinked from the free list. Conversely, contents label properties structures whose reference count falls to 0 can be added to the free list. The structure of CL_PropertiesChunk is shown in Appendix 1.
[0107] Again, in order to reduce memory fragmentation, the CL_DagNodeRef structures are preferably allocated in large chunks (i.e. of several hundred or so). These chunks are represented by the tag CL_DagNodeRefChunk in accordance with the preferred embodiment. When a chunk of CL_DagNodeRef structures is created, all of its members are linked into a free list which is attached to the CL_Instance. To obtain a new Dag node reference, an item is unlinked from the free list. Conversely, Dag node references which are no longer required can be added to the free list. The structure of CL_DagNodeRefChunk is shown in Appendix 1.
[0108] Yet again, in order to reduce memory fragmentation, CL_DagNode structures are preferably allocated in large chunks (e.g. of several hundred or so). When a chunk of CL_DagNode structures is created, all its members are linked into a free list which is attached to the CL_Instance. The structure of CL_DagNodeChunk is shown in Appendix 1.
[0109] The CL_Instance structure preferably stores all of the data required for contents label managment. This data preferably includes, the composite contents label hash table, chunk pointers and free list pointers. The structure of CL_Instance is shown in Appendix 1.
[0110] An enum, represented by the tag enum CL_BoundaryDamage in accordance with the preferred embodiment, is preferably utilised to describe the three possible states of boundary damage. The structure of enum CL_BoundaryDamage is shown in Appendix 1.
[0111] The pseodo-code listed below outlines the configuration of source code in accordance with the preferred embodiment. All of the structures (e.g. CL_Instance) referred to in the source code are described in Appendix 1. The source code can be divided into two separate parts as shown in the pseudo code; one part (i.e “Internel Rountines”) for carrying out the image creation methods; and another part (i.e. “Interface Routines”) to manage the user interface between the latter and the user. These two sections are further divided into subroutine functions as will be outlined below.
[0112] The pseudocode below omits tests for null pointers and values in range. Parameters to functions called are not noted when they are the same as or a subset of the parameters of the calling function. Further, error handling details have been omitted. Some points have been noted in the comments.
2.0 Interface Routines
| 2.1 CL_init |
|---|
| begin CL_init |
| In the provided instance structure, initialise the properties structure and dag structure |
| 2.2 CL_end |
|---|
| begin CL_end |
| Free the hash table array as well as any chunks existing in the properties structure and |
| 2.3 CL_new |
|---|
| begin CL_new |
| This routine simply calls the internal routine for properties structure creation, after |
| 2.4 CL_new_composite |
|---|
| TABLE 1 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Left | Right | Over | In | Out | Atop | Upon | Xor | And | Plus |
| O | O | O, L | O, L | T, N | O, L | O, B | T, N | O, B | O, B |
| O | P | O, L | P, B | P, B | P, B | P, B | P, B | P, B | O, B |
| O | T | O, L | T, N | O, L | T, N | T, N | O, L | T, N | O, L |
| P | O | O, B | P, L | T, N | O, B | O, B | P, B | P, B | O, B |
| P | P | P, B | P, B | P, B | P, B | P, B | P, B | P, B | P, B |
| P | T | P, L | T, N | P, L | T, N | T, N | P, L | T, N | P, L |
| T | O | O, R | T, N | T, N | O, R | O, R | O, R | T, N | O, R |
| T | P | P, R | T, N | T, N | P, R | P, R | P, R | T, N | P, R |
| T | T | T, N | T, N | T, N | T, N | T, N | T, N | T, N | T, N |
| The pseudo code for the subroutine CL_new_composite function is shown below: |
| begin CL_new_composite |
| 2.5 CL_inc_ref_clab | |
|---|---|
| begin CL_inc_ref_clab |
| 2.6 CL_dec_ref_clab |
|---|
| begin CL_dec_ref_clab |
| 2.7 CL_lookup_composite |
|---|
| begin CL_lookup_composite |
| 2.8 CL_damage |
|---|
| begin CL_damage |
| 2.9 CL_check_potential_clab_for_damage |
|---|
| begin CL_check_potential_clab_for_damage |
| 2.10 CL_init_dag | |
|---|---|
| begin CL_init_dag |
| 2.11 CL_add_clab_to_dag |
|---|
| begin CL_add_clab_to_dag |
| 2.12 CL_delete_clab_from_dag |
|---|
| begin CL_delete_clab_from_dag |
| 2.13 CL_rendering_optimisation |
|---|
| begin CL_rendering_optimisation |
| 2.14 CL_get_ancestors |
|---|
| begin CL_get_ancestors |
| return a pointer to clab's 2-element cpi_Ancestors array. |
| end. |
3.0 Internal Routines
| 3.1 cl_new |
|---|
| begin cl_new |
| This function simply unlinks the first element from the properties structure free list and |
| 3.2 cl_damage_recurse |
|---|
| begin cl_damage_recurse |
| 3.3 cl_subset |
|---|
| begin cl_subset |
| Called to determine whether a contents label (or possible contents label) is a subset of |
| 3.4 cl_possible_related |
|---|
| begin cl_possibly_related |
| Called to determine whether or not two contents labels are possibly related. Two |
| 3.5 cl_traverse_dag_node_recurse |
|---|
| begin cl_traverse_dag_node_recurse |
| This function is a recursive function used to traverse a dag from a particular node. |
| 3.6 cl_add_clab_to_dag_recurse_superset_subset |
|---|
| begin cl_add_clab_to_dag_recurse_superset_subset |
| 3.7 cl_add_clab_to_dag_recurse_superset |
|---|
| begin cl_add_clab_to_dag_recurse_superset |
| 3.8 cl_delete_dag_nodes_from dag |
|---|
| begin cl_delete_dag_nodes_from_dag |
[0113] The aforementioned preferred methods comprise a particular control flow. There are many other variants of the preferred methods, which use different control flows without departing the spirit or scope of the invention. Furthermore one or more of the steps of the preferred methods may be performed in parallel rather sequential.
4.0 Proof of the Validity of Secondary Dependency Dags
[0114] In accordance with the preferred embodiment, all composite contents labels created within a binary region group are placed into a secondary dependency Dag, associated with the binary region group. The positions of contents labels within the Dag are defined by a subset operator. When a peak (i.e. a contents label in the Dag which has no parents) has primary boundary damage, all contents labels in the secondary dependency Dag reachable from the peak are damaged with secondary boundary damage. That is, any regions tagged with contents labels reachable from the peak can be affected. For example, assuming that an object A (not illustrated) is a contents label which is the peak of a secondary dependency Dag. A contents label B (not illustrated) which is a subset of A, has the potential to share some portion of its boundary with the region tagged with A (i.e. the region B can be affected by any change to the boundary of A).
[0115] Further, consider the following example in which N leaf nodes (not illustrated), each of identical shape and position are composited together into a balanced tree (not illustrated). The partitioning of the top-level region group 400 of the balanced tree is shown in FIG. 4, and is tagged as ‘A’. If the boundaries of the leaf node regions tagged with C1(not illustrated) and CN(not illustrated) were extended, the region group C1oCN(see FIG. 5) would be created. The region group C1oCNabuts the region croup tagged by A as shown in FIG. 5. It should also be noted that C1oCNis a subset of A. Similarly, it is possible to construct scenarios in which a region tagged with any possible subset of the region A can share some portion of the boundary of A by modifying the geometry of the contributing leaf nodes.
[0116] The preferred embodiment has insufficient information to determine A whether or not a region tagged with a subset contents label actually shares some portion of the boundary of A. Therefore, when the boundary of A changes (i.e. it is damaged with primary boundary damage), all contents labels which are subsets of A must be secondary damaged. This ensures that the boundaries of their regions are recalculated, and every contents label reachable from A in the secondary dependency Dag is secondary damaged.
[0117] Any region tagged with a contents label B which is not a subset of A cannot share any of the boundary of A, and so cannot be affected by any change to the boundary of A. For B not to be a subset of A, a leaf node contents label must contribute to B which does not contribute to A. If the leaf node contents label is termed CM, then CM does not contribute to A, and A is a peak. Further, the boundary of A is in no way dependant on the boundary of the leaf node region of CM. Regions tagged with contents labels containing CM cannot contribute to the boundary of A, since these regions are always subsets of the boundary of CM. Since the boundaries of regions tagged with contents labels containing CM don't contribute to the boundary of A, A does not contribute to the boundaries of regions tagged with contents labels containing CM. Therefore, any regions tagged with contents labels containing CM are not automatically affected if the boundary of the region tagged with A changes. Further, any regions tagged with contents labels which are not subsets of A are not automatically affected if the boundary of the region tagged with A changes. For example, FIG. 6 shows five overlapping objects A, B, C, D and E, representing a root region group ((A over B) over C) over (D over E). [Intersection regions are bold]. The root region group ((A over B) over C) over (D over E), will contain the secondary dependency Dag 700, as shown in FIG. 7. If A is moved, resulting in primary boundary damage being applied to the peak ((AoB)oC)oD. Secondary boundary damage is applied to (BoC)oD and CoD. Further, (AoC)oD will have primary boundary damage. The region groups (BoC)o(DoE), (BoC)oE, Co(DoE) and (CoE) are not affected since these region groups are not subsets of ((AoB)oC)oD as these region groups contain E. The above examples, demonstrate that the method of applying secondary boundary damage to all contents labels which are subsets of a primary boundary damaged peak is both necessary and efficient.
5.0 Preferred Apparatus
[0118] The method of creating a series of images is preferably practiced using a conventional general-purpose computer system 1000, such as that shown in FIG. 10 wherein the processes outlined by FIG. 8 and the above pseudo-code can be implemented as software, such as an application program executing within the computer system 1000. In particular, the steps of method of creating a series of images are effected by instructions in the software that are carried out by the computer. The software can be stored in a computer readable medium, including the storage devices described below, for example. The software is loaded into the computer from the computer readable medium, and then executed by the computer. A computer readable medium having such software or computer program recorded on it is a computer program product. The use of the computer program product in the computer preferably effects an advantageous apparatus for creating a series of images in accordance is with the embodiments of the invention.
[0119] The computer system 1000 comprises a computer module 1001, input devices such as a keyboard 1002 and mouse 1003, output devices including a printer 1015 and a display device 1014. A Modulator-Demodulator (Modem) transceiver device 1016 is used by the computer module 1001 for communicating to and from a communications network 1020, for example connectable via a telephone line 1021 or other functional medium. The modem 1016 can be used to obtain access to the Internet, and other network systems, such as a Local Area Network (LAN) or a Wide Area Network (WAN).
[0120] The computer module 1001 typically includes at least one processor unit 1005, a memory unit 1006, for example formed from semiconductor random access memory (RAM) and read only memory (ROM), input/output (I/O) interfaces including a video interface 1007, and an I/O interface 1013 for the keyboard 1002 and mouse 1003 and optionally a joystick (not illustrated), and an interface 1008 for the modem 1016. A storage device 1009 is provided and typically includes a hard disk drive 1010 and a floppy disk drive 1011. A magnetic tape drive (not illustrated) may also be used. A CD-ROM drive 1012 is typically provided as a non-volatile source of data. The components 1005 to 1013 of the computer module 1001, typically communicate via an) interconnected bus 1004 and in a manner which results in a conventional mode of operation of the computer system 1000 known to those in the relevant art. Examples of computers on which the embodiments can be practised include IBM-PC's and compatibles, Sun Sparcstations or alike computer systems evolved therefrom.
[0121] Typically, the application program of the preferred embodiment is resilient on the hard disk drive 1010 and read and controlled in its execution by the processor 1005 Intermediate storage of the program and any data fetched from the network 1020 may be accomplished using the semiconductor memory 1006, possibly in concert with the hard disk drive 1010. In some instances, the application program may be supplied to the user encoded on a CD-ROM or floppy disk and read via the corresponding drive 1012 or 1011, or alternatively may be read by the user from the network 1020 via the modem device 1016. Still further, the software can also be loaded into the computer system 1000 from other computer readable medium including magnetic tape, a ROM or integrated circuit, a magneto-optical disk, a radio or infra-red transmission channel between the computer module 1001 and another device, a computer readable card such as a PCMCIA card, and the Internet and Intranets including email transmissions and information recorded on websites and the like. The foregoing is merely exemplary of relevant computer readable mediums. Other computer readable mediums may be practiced without departing from the scope and spirit of the invention.
[0122] The method of creating a series of images can alternatively be implemented in dedicated hardware such as one or more integrated circuits performing the functions or sub functions of FIG. 8 and the above pseudo-code. Such dedicated hardware may include graphic processors, digital signal processors, or one or more microprocessors and associated memories.
[0123] The foregoing describes only one embodiment/some embodiments of the present invention, and modifications and/or changes can be made thereto without departing from the scope and spirit of the invention, the embodiment(s) being illustrative and not restrictive.
| APPENDIX 1 |
|---|
| (a) |
| struct CL_DagNodeRef |
| { |
Claims
Certificate of Correction present
The claims shown below may not include correction changes. Use the corrected PDF for authoritative text.
What is claimed is:
1. A method of creating a series of images, each member of said series being related to a preceding member, said images being formed by rendering a plurality of graphical objects according to a compositing tree representing a compositing expression, said compositing tree including a plurality of nodes each representing a component of at least one of said images, each of said objects having a predetermined outline, said method comprising the steps of:
(a) for each said node, dividing a component image space in which said outlines are defined into one or more mutually exclusive regions, each said region being related to at least one graphical object and being substantially formed by one or more of said predetermined outlines, wherein each said node has at least one associated region;
(b) generating at least one directed acyclic graph for substantially each node of said compositing tree, said directed acyclic graph identifying, for at least one region associated with a particular node, those regions associated with any other nodes of said compositing tree that if changed can affect said at least one region;
(c) rendering a first image of said series by compositing any one or more of said regions substantially according to said compositing tree;
(d) in response to at least one change to at least one of said nodes of said compositing tree,
(i) examining the directed acyclic graph corresponding to said at least one node to identify those of said regions affected by said at least one change, wherein if at least one of said regions associated with said at least one node is indirectly affected by a change to at least one other of said regions associated with any other node of said compositing tree, said indirectly affected region is identified by inference through association with at least one other of said affected regions, said inference being determined through said examination of the directed acyclic graph corresponding to said at least one node,
(ii) for each node having affected regions, updating the corresponding identified regions and incorporating into said node those new regions arising from the change and/or removing any of said regions that are no longer relevant,
(iii) updating directed acyclic graphs corresponding to at least each node having affected regions to reflect changes to said compositing tree, and
(iv) rendering a further image of said series by compositing those regions affected by said at least one change; and
(e) repeating step (d) for further changes to at least one of said nodes of said compositing tree.
2. A method according to claim 1, further comprising the step of approximating each said predetermined outline on the outside and the inside to form an outline region.
3. A method according to claim 2, wherein each said outline region is approximated to a grid.
4. A method according to claim 1, wherein step (b) includes examining each said region to determine an opacity of each of said objects within said region.
5. A method according to claim 1, wherein a dependency information is created for each of said regions.
6. A method according to claim 1, wherein said directed acyclic graph includes:
a first dependency list identifying those regions directly affected by a change to a particular region; and
a second dependency list identifying those regions indirectly affected by a change to said particular region.
7. A method according to claim 6, wherein directly affected regions are those regions having content modified as a consequence of change.
8. A method according to claim 6, wherein indirectly affected regions are those regions which may include modified region outlines and/or content generation as a result of change.
9. A method according to claim 1, wherein at least one change includes changing the attributes of nodes of said compositing tree.
10. A method according to claim 1, wherein each of said mutually exclusive regions comprises a label.
11. A method according to claim 10, wherein said label is configured as a pointer to a properties structure.
12. A method according to claim 11, wherein said properties structure comprises data defining the properities of a region associated with said structure.
13. A method of creating a series of images, said images being formed by rendering a plurality of graphical objects to be composited according to a compositing tree, said compositing tree including a plurality of nodes each representing a component of at least one of said images, each of said objects having a predetermined outline, said method comprising the steps of:
(a) for each said node, dividing a space in which said outlines are defined into one or more mutually exclusive regions, wherein each said node has at least one associated region;
(b) generating at least one directed acyclic graph for substantially each node of said compositing tree, said directed acyclic graph identifying, for at least one region associated with a particular node, those regions associated with any other nodes of said compositing tree that if changed can affect said at least one region;
(c) rendering a first image of said series utilising said compositing tree;
and then, in response to at least one change to at least one of said nodes,
(d) examining said directed acyclic graphs for substantially each node of said compositing tree,
(i) for a node with affected regions, updating the corresponding regions on the basis of said examination, wherein if at least one of said regions is indirectly affected by a change to at least one other of said regions, said indirectly affected region is identified by inference through association with at least one other of said affected regions, said inference being determined through said examination of the directed acyclic graph corresponding to said node with affected regions,
(ii) updating said directed acyclic graphs corresponding to at least each node having affected regions to reflect changes to said compositing tree, and
(iii) rendering a further image of said series by compositing those regions -affected by said at least one change; and
(e) repeating step (d) for further changes to at least one of said nodes of said compositing tree.
14. A method according to claim 13, further comprising the step of approximating each said predetermined outline on the outside and the inside to form an outline region.
15. A method according to claim 14, wherein each said outline region is approximated to a grid.
16. A method according to claim 13, wherein step (b) includes examining each said region to determine an opacity of each of said objects within said region.
17. A method according to claim 13, wherein a directed acyclic graph is created for each of said regions.
18. A method according to claim 13, wherein said directed acyclic graph includes:
a first dependency list identifying those regions directly affected by a change to a particular region; and
a second dependency list identifying those regions indirectly affected by a change in said particular region.
19. A method according to claim 18, wherein directly affected regions are those regions having content modified as a consequence of change.
20. A method according to claim 18, wherein indirectly affected regions are those regions which may include modified region outlines and/or content generation as a result of change.
21. A method according to claim 13, wherein at least one change includes changing the attributes of nodes in said compositing tree.
22. A method according to claim 13, wherein each of said mutually exclusive regions comprises a label.
23. A method according to claim 22, wherein said label is configured as a pointer to a properties structure.
24. A method according to claim 23, wherein said properties structure comprises data defining the properties of a region associated with said structure.
25. A method of creating a series of images, said images being formed by rendering at least a plurality of graphical objects to be composited according to a compositing tree, said compositing tree including a plurality of nodes each representing a component of at least one of said images, said method comprising the steps of:
(a) for each said node, dividing a component image space in which said graphical objects are defined into one or more regions, wherein each said node has at least one associated region;
(b) generating at least one directed acyclic graph for substantially each node of said compositing tree, said directed acyclic graph identifying, for at least one region associated with a particular node, those regions associated with any other nodes of said compositing tree that if changed can affect said at least one region;
(c) rendering a first image of said series utilising said compositing tree;
and then, in response to at least one change to at least one of said nodes,
(d) examining said directed acyclic graphs for substantially each node of said hierarchical structure, and
(i) for a node with affected regions, updating the corresponding directed acyclic graphs, wherein if at least one of said regions is indirectly affected by a change to at least one other of said regions, said indirectly affected region is identified by inference from being associated with at least one other of said affected regions, said inference being determined through said examination of the directed acyclic graph corresponding to said node with affected regions,
(ii) updating said directed acyclic graphs corresponding to at least each node having affected regions to reflect changes to said compositing tree, and
(iii) rendering a further image of said series; and
(e) repeating step (d) for further changes to at least one of said nodes of said compositing tree.
26. A method according to claim 25, further comprising the step of approximating each said predetermined outline on the outside and the inside to form an outline region.
27. A method according to claim 26, wherein each said outline region is approximated to a grid.
28. A method according to claim 25, wherein step (a) includes examining each said region to determine an opacity of each of said objects within said region.
29. A method according to claim 25, wherein said directed acyclic graph is created for each of said regions.
30. A method according to claim 25, wherein said directed acyclic graphs include:
a first dependency list identifying those regions directly affected by a change to said one region; and
a second dependency list identifying those regions indirectly affected by a change in said one region.
31. A method according to claim 30, wherein directly affected regions are those regions having content modified as a consequence of change.
33. A method according to any one of claim 25, wherein at least one change includes changing the attributes of nodes in said compositing tree.
34. An apparatus for creating a series of images, each member of said series being related to a preceding member, said images being formed by rendering a plurality of graphical objects according to a compositing tree representing a compositing expression, said compositing tree including a plurality of nodes each representing a component of at least one of said images, each of said objects having a predetermined outline, said apparatus comprising:
division means for dividing a component image space in which said outlines are defined, corresponding to each said node of said compositing tree, into one or more mutually exclusive regions, each said region being related to at least one graphical object and being substantially formed by one or more of said predetermined outlines, wherein each node of said compositing tree has at least one associated region;
directed acyclic graph creation means for generating at least one directed acyclic graph for substantially each node of said hierarchical structure, said directed acyclic graph identifying, for at least one region associated with a particular node, those regions associated with any other nodes of said compositing tree that if changed can affect said at least one region;
render means for rendering a first image of said series by compositing any one or more of said regions substantially according to said compositing tree;
examination means for examining the directed acyclic graph corresponding to at least one of said nodes in response to at least one change to said at least one nodes, to identify those of said regions affected by said at least one change, wherein if at least one of said regions is indirectly affected by a change to at least one other of said regions associated with any other node of said compositing tree, said indirectly affected region is identified by inference through association with at least one other of said affected regions, said inference being determined through said examination of the directed acyclic graph corresponding to said at least one node, and wherein for each node with affected regions, the corresponding identified regions are updated by an updating means and those new regions arising from the change are incorporated into said node and/or any of said regions that are no longer relevant are removed, wherein the directed acyclic graphs corresponding to at least said nodes with affected regions are updated to reflect changes to said compositing tree, and wherein said render means renders a further image of said series by compositing those regions affected by said at least one change.
35. The apparatus according to claim 34, further comprising means for approximating each said predetermined outline on the outside and the inside to form an outline region.
36. The apparatus according to claim 35, wherein each said outline region is approximated to a grid.
37. The apparatus according to claim 34, wherein a directed acyclic graph is created for each of said regions.
38. The apparatus according to claim 34, wherein said directed acyclic graphs include:
a first dependency list identifying those regions directly affected by a change to a particular region; and
a second dependency list identifying those regions indirectly affected by a change in said particular region.
39. The apparatus according to claim 38, wherein directly affected regions are those regions having content modified as a consequence of change.
40. The apparatus according to claim 37, wherein indirectly affected regions are those regions which may include modified region outlines and/or content generation as a result of change.
41. The apparatus according to claim 34, wherein at least one change includes changing the attributes of nodes in said compositing tree.
42. The apparatus according to claim 34, wherein each of said mutually exclusive regions comprises a label.
43. The apparatus according to claim 42, wherein said label is configured as a pointer to a properties structure.
44. The apparatus according to claim 43, wherein said properties structure comprises data defining the properties of a region associated with said structure.
45. A computer readable medium for storing a program for apparatus which processes data, said processing comprising a process for creating a series of images, each member of said series being related to a preceding member, said images being formed by rendering a plurality of graphical objects to be composited according to a compositing tree representing a compositing expression, said compositing tree including a plurality of nodes each representing a component of at least one of said images, each of said objects having a predetermined outline, said program comprising:
code for dividing a component image space in which said outlines are defined into one or more mutually exclusive regions, each said region being related to at least one graphical object and being formed by one or more of said predetermined outlines, wherein each node of said compositing tree has at least one associated region;
code for generating at least one directed acyclic graph for substantially each node of said compositing tree, said directed acyclic graph identifying, for at least one region associated with a particular node, those regions that if changed can affect said at least one region;
code for rendering a first image of said series by compositing any one or more of said regions substantially according to said compositing tree;
code for examining said directed acyclic graph corresponding to at least one of said nodes in response to at least one change to said at least one nodes, to identify those of said regions affected by said at least one change, wherein if at least one of said regions is indirectly affected by a change to at least one other of said regions associated with any other node of said compositing tree, said indirectly affected region is identified by inference through association with at least one other of said affected regions, said inference being determined through said examination of the directed acyclic graph corresponding to said at least one node;
code for updating the corresponding identified regions for each node with affected regions, and incorporating into said node those new regions arising from the change and/or removing any of said regions that are no longer relevant;
code for updating the directed acyclic graphs corresponding to at least said nodes with affected regions to reflect changes to said compositing tree; and
code for rendering a further image of said series by compositing those regions affected by said at least one change.
Patent Citations (7)
| Patent | Date | Inventor | Cited By |
|---|---|---|---|
| US4935730(A) | 1990-06-01 | Kosuka | Examiner |
| US5274718(A) | 1993-12-01 | Leonardi et al. | Examiner |
| US5537528(A) | 1996-07-01 | Takahashi et al. | Examiner |
| US5933843(A) | 1999-08-01 | Takai | Examiner |
| US6003033(A) | 1999-12-01 | Amano et al. | Examiner |
| US6191797(B1) | 2001-02-01 | Politis | Examiner |
| US6483519(B1) | 2002-11-01 | Long et al. | Examiner |