Video time domain relay method and system based on zero-dependence closed-domain coverage reconstruction
By dividing the state execution unit and the reconstruction frontier, and using the relay certificate verification mechanism, the second rendering node can reconstruct the target state without receiving the state of the first rendering node, which solves the problem of inconsistent state reconstruction in video rendering, reduces costs and improves efficiency.
Patent Information
- Application Number
- CN202611333708.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-20
AI Technical Summary
In the existing technology, the second rendering node cannot independently reconstruct the target state during the video rendering process, which leads to repeated execution of historical state maintenance events, increased network transmission and version compatibility costs, and the inability to guarantee the consistency and integrity of state reconstruction.
By dividing the state execution units, the reconstruction frontier is determined, and the target state is reconstructed by the second rendering node using the same plugin instance without receiving the private state of the first rendering node plugin. The consistency and independence of the state are ensured by using a relay certificate verification and scheduling mechanism.
It reduces the repetitive execution of state maintenance events, lowers network transmission and version compatibility costs, ensures the accuracy and consistency of state reconstruction, and avoids repetitive execution and write conflicts.
Smart Images

Figure CN123137751A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video rendering technology, and in particular to a video temporal relay method and system based on zero-dependency closed-domain coverage reconstruction. Background Technology
[0002] Video non-linear editing, visual effects, and offline rendering systems typically distribute rendering tasks for different time periods, layers, or spatial regions across multiple computing nodes. While ordinary stateless video effects can be computed independently for any frame, video temporal plugins store persistent reference images, motion information, confidence levels, historical weights, random states, or other persistent states that exist across frames. The plugin output for the current or future frame depends not only on the current input but also on state versions generated at multiple previous time points.
[0003] For such plugins, if the second rendering node B only creates an empty state instance in the target frame, it usually cannot produce the same results as continuous execution of a single node. Therefore, without transferring plugin-private state, node B needs to sequentially process a segment of historical input before the target frame to establish the state required for the target output.
[0004] The most similar common engineering approach to this invention is a complete pre-roll from a unified starting point. This involves node B sequentially processing all plugin states and all spatial regions from a unified historical starting point, and performing complete plugin rendering on each historical frame. Historical plugin outputs are not included in the final output or are discarded after generation. To avoid waiting for the target frame, the first rendering node A may continue processing the same historical interval during node B's pre-roll, causing both nodes to repeatedly perform the same state maintenance operations. Another approach is to directly serialize node A's plugin state and transmit it to node B, but this requires the plugin state format to be publicly available, stable, and recoverable across devices.
[0005] The existing technology has the following shortcomings: The unified pre-roll start point does not distinguish the actual historical length of different states; short historical states are forced to start execution from the earliest start point of long historical states, increasing the number of historical state maintenance events; complete historical rendering performs output-specific operations unrelated to the establishment of the target state, such as pixel blending, color conversion, alpha generation, and formal output writing; if node A continues to run during node B's pre-roll, it may repeat the same logical state maintenance events as node B; direct state transition requires that plugin private states be serializable, compatible, and recoverable across nodes, increasing network transmission, storage, and version compatibility costs; stopping node A's execution solely based on historical image occlusion does not prove that it has been stopped. Whether the event is still read by other states, control paths, or future tasks of node A; for persistent states using a circular cache, simply covering all cache slots does not guarantee that the reconstructed state is consistent with the baseline state. If node B does not align the cache index according to the common time base, the correspondence between each historical frame and the cache slot, as well as the next read / write position, may differ from the baseline continuous execution; if the future state liveness verification, historical formal output zero contribution verification, and the unique logic execution attribution of A or B are not performed for the same specification execution event, different verification results may actually correspond to different time positions, call instances, spatial regions, or state read / write ranges, resulting in some events being executed repeatedly by both nodes or not executed at all. Summary of the Invention
[0006] To overcome the shortcomings of the prior art, this invention provides a video temporal relay method and system based on zero-dependency closed-domain coverage reconstruction, enabling the second rendering node B to establish the target state according to the reconstruction frontier of different state execution units without receiving the private state of the first rendering node A plugin, and generate the target formal output by the same plugin instance.
[0007] A video temporal relay method based on zero-dependency closed-domain coverage reconstruction, applied to a video rendering system including a first rendering node A and a second rendering node B, is characterized by comprising the following steps: Determine the target time location, target formal output area, target status reading cutoff point, and target status reading set, and construct a baseline continuous execution graph according to the method of continuous execution of a single plug-in instance when no relay is implemented; The persistent states involved in the target state reading set are divided into state execution units, and a reconstruction frontier is determined for each state execution unit. Based on the reconstruction frontier of each state execution unit, determine the standard execution events to be executed by the second rendering node B, form a B node relay event set, and verify the relay conditions for each standard execution event. After successful verification, a relay certificate is generated. Each specification execution event registered in the relay certificate is assigned a unique logical execution affiliation between the first rendering node A and the second rendering node B. The transferred specification execution event is stopped by the first rendering node A and executed once by the second rendering node B. Without receiving the private state of the target plugin instance of the first rendering node A, the second rendering node B uses the same plugin instance that has not been recreated or completely reset to execute relay events starting from the reconstruction frontier of each state execution unit, reconstruct the target state reading set, and generate the target formal output at the target time position.
[0008] Furthermore, to better implement the present invention, multiple persistent states are grouped into the same state execution unit when they meet any of the following conditions: they are written to by the same operation and it is not possible to prohibit the writing of one of them at runtime; they actually use the same or overlapping storage addresses; they are mutually cyclically dependent and it is impossible to determine an independent sequential reconstruction relationship; they share the same cache index, valid bit, or addressing information; they cannot be scheduled separately at runtime; the state execution unit includes state content and valid bits, index, initialization flag, and addressing metadata necessary for correctly reading and continuing to update the state.
[0009] Furthermore, to better realize the present invention, when determining the reconstruction frontier, the latest starting position that can completely establish the corresponding state execution unit is searched from the tangent point of the target state in the historical direction as a candidate reconstruction frontier; when there is mutual dependence between the state execution units, it is only allowed to move the reconstruction frontier to an earlier execution position or merge the state execution units that cannot be reconstructed independently, until the state execution unit division and each reconstruction frontier no longer change, and the final reconstruction frontier is obtained; after stable solution, at least two state execution units have different final reconstruction frontiers.
[0010] Furthermore, to better implement this invention, the specified execution event is uniquely determined by the operation node, time position, dynamic call instance, spatial execution domain, state execution unit, state reading range, and state writing range, and is represented as follows: The relay condition verification is performed on the same specification execution event, including verifying the survival of future states that were not completely overwritten before the target formal output was generated and still affect the target state read set; verifying the zero contribution of historical formal outputs before the first rendering node A stopped executing the event without changing the target time position; and verifying that all the preconditions required for the second rendering node B to execute the event are met. The closure verification of the predecessor of node B, in which K B For the relay event set of node B, E publicA collection of public events with valid sources. S init To define the initialization state; and to verify that the logical state version of the event retained by the first rendering node A does not depend on the handover event, and that the two nodes do not simultaneously obtain the A node remnant to which the write belongs, a non-interfering verification is performed.
[0011] Furthermore, to better realize this invention, the historical official output zero-contribution verification is limited to a source-over composition relationship with pre-multiplied alpha, and the synthesized color and opacity are... , When the independent upper-layer input satisfies α within the complete influence coverage area top When =1, C out =C top α out =1, the lower-level historical plugin images do not affect the synthesis result; the upper-level images, synthesis mode, layer order and output route do not depend on the candidate specification execution event, and there is no propagation bypass that bypasses the synthesis relationship to affect the historical formal output, persistent state, feedback path, control result or other observable results.
[0012] Furthermore, to better implement the present invention, for the state execution unit employing a circular cache, before executing the first reconstruction event, the second rendering node B sets the next write slot index according to the common order execution start point, the specified initial index, the number of cache slots, and the number of update events in the baseline continuous execution graph. And read the pointcut verification in the target state. , The valid bits of the cache slots required for the target output are all equal to 1; if the index phase is inconsistent or the required slot is invalid, the result will not be submitted.
[0013] Furthermore, to better implement this invention, the relay certificate records the target time position, target formal output area, target state reading cutoff point, state execution unit, final reconstruction frontier, B node relay event set, A node retained event set, state reading and writing range, spatial execution domain, input source, unique logical execution affiliation of A or B, and execution environment conditions; the relay certificate becomes invalid when the plugin version, input, parameters, composition structure, state layout, spatial execution domain, or execution environment changes; if any relay condition cannot be met, the reconstruction frontier is moved to an earlier position, preceding events are added, state execution units are merged, or the scope of responsibility of the second rendering node B is expanded; if the conditions still cannot be met, the process is downgraded to a complete pre-roll, the first rendering node A continues execution, or the relay is canceled.
[0014] A video temporal relay system based on zero-dependency closed-domain coverage reconstruction includes: an execution graph acquisition module for obtaining the execution representation of the target plugin and forming a baseline continuous execution graph; a state execution unit formation module for forming independently schedulable state execution units; a reconstruction frontier solving module for determining the reconstruction frontier of each state execution unit; a future state survival verification module for verifying whether the state generated by candidate specification execution events still affects the target state reading; a historical formal output zero contribution verification module for verifying whether candidate specification execution events affect historical formal output or other observable results; a data source verification module for verifying whether the input of the second rendering node B is of qualified source and does not contain the private state of the target plugin instance of the first rendering node A; a two-sided execution closure verification module for verifying the predecessor closure of node B and the non-interference of the residual execution of node A; a relay certificate generation module for recording the reconstruction frontier, specification execution events, input sources, verification results, and the unique logical execution affiliation of A or B; and a scheduling execution module for generating a relay scheduling graph based on the relay certificate and controlling the first rendering node A and the second rendering node B to execute the method described in any one of claims 1 to 7.
[0015] An electronic device includes a processor and a memory, wherein program instructions are stored in the memory, and when the processor executes the program instructions, it implements a video temporal relay method based on zero-dependency closed-domain coverage reconstruction.
[0016] A computer-readable storage medium storing program instructions that, when executed by a processor, cause the processor to implement a video temporal relay method based on zero-dependency closed-domain coverage reconstruction.
[0017] The beneficial effects of this invention are as follows: For state execution units that can be independently scheduled and have different final reconstruction fronts, B nodes only execute the required state maintenance events starting from their respective final reconstruction fronts, reducing redundant state processing generated by unified complete pre-roll.
[0018] Node B reconstructs the target state using qualified public inputs, a defined initialization state, and its preceding relay events, without transmitting the private state and derived data of the target plugin instance from Node A, thereby reducing the costs of state migration, network transmission, and version compatibility.
[0019] The system jointly verifies the future state viability, historical formal output zero contribution, B node predecessor closure, and A node residual execution non-interference for the same specification execution event, and assigns a unique logical execution affiliation, thereby avoiding authentication mismatch, duplicate execution, write conflict and event omission; when the output-specific operation can be independently scheduled and passes the zero contribution verification, the corresponding historical output generation, synthesis and writing processing can also be omitted.
[0020] For a circular cache, node B simultaneously rebuilds the cache content, valid bits, and index phase, and limits the relay range according to the state execution unit, spatial execution domain, and state read / write range; when the authentication conditions or certificate binding conditions change, the system cancels the relay, re-verifies, or downgrades the process to avoid submitting unauthenticated target output. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of the overall process of the video temporal plugin local cross-node relay method of the present invention; Figure 2 This is a schematic diagram of the relay execution sequence of node B establishing the target state and generating the target formal output according to different reconstruction frontiers in this invention. Detailed Implementation
[0022] The technical solution of the present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0023] This invention uses a baseline continuous execution graph as a comparison benchmark, dividing the persistent state required for the target's formal output into state execution units. By merging state execution units that cannot be independently reconstructed and moving the reconstruction frontier to an earlier position, a stable final reconstruction frontier is obtained. The system verifies the future state viability, the zero contribution of historical formal output, the closure of B node's predecessors, and the non-interference of A node's residual execution for the same specification execution event to be executed by node B. Upon successful verification, a relay certificate is generated and a unique logical execution affiliation is assigned. Node B then reconstructs the target state and generates the target's formal output without receiving private states from A node's plugins.
[0024] The video temporal plugin described in this invention is executed during the controlled plugin runtime. The runtime can obtain the execution relationships, persistent state read / write relationships, spatial execution domains, and output impact relationships between plugin operations, and select the plugin operations to be executed based on the relay verification results. This invention is applicable to self-developed plugins, plugins with resolvable internal representations, or plugins that can provide equivalent state access descriptions; it does not require that any third-party black-box plugin can implement it.
[0025] The plugin execution representation can be a computation graph, intermediate representation, or state access description table, which should at least record the execution order of each operation, normal input, persistent state read / write range, image processing area, and the impact of each operation on persistent state, execution control, and final output.
[0026] At runtime, the necessary input reading and state update operations for establishing the target state are performed based on the relay certificate. Output-specific operations that can be independently scheduled, are used solely for generating historical images and have been verified not to affect the persistent state, or perform control or other observable results may be omitted. For example, when rebuilding the historical cache of the temporal denoising plugin, the historical cache, valid bits, and indexes can be updated without generating or submitting historical denoised images.
[0027] When state updates and image output cannot be scheduled separately, the related operations are executed as a whole; if the whole execution cannot meet the relay conditions, the execution scope is expanded or a degradation process is adopted. The runtime can be implemented through a self-developed plug-in interface, an intermediate representation interpreter, compiler partitioning, or a state access descriptor table.
[0028] The method of this invention comprises four stages: determining the target task and the baseline continuous execution graph; dividing the state execution units and solving their respective final reconstruction frontiers; forming a B-node relay event set and verifying the relay conditions; generating relay certificates and scheduling relationships; and having the B-nodes establish the target state and generate the target formal output. These are explained in detail below through steps S101 to S118.
[0029] Phase 1: Defining Objectives and Standards for Normal Execution S101: Define the target task The system first determines the following aspects of this relay task: (1) the target time position T, i.e., the time position at which node B needs to generate the formal output; (2) the target formal output area. That is, node B needs to submit the image area to the formal compositing process at the target time position T; (3) the first rendering node A, that is, the node that undertakes the relevant processing tasks of the target plugin before the relay; (4) the second rendering node B, that is, the node responsible for establishing the target state and generating the target formal output after the relay; (5) the target state reading cutoff point This refers to the execution position before the plugin reads the target's persistent state in order to generate the target's actual output.
[0030] The target state read pointcut is used to clarify which state version is actually read in the target's final output. For plugins that read historical states first and then update the current state, the target output may read the state formed at the previous time position. For plugins that update the persistent state based on the current input at the target time position T and then generate the target's final output, node B should have the target state read pointcut. The status update was completed previously. Subsequently, the plugin reads the updated status within the target time frame and generates the target output area. The result of this step is to clarify "which B node, at what time and location, generates which formal output area, and at which moment the persistent state is actually read by that output".
[0031] S102: Constructing a baseline continuous execution graph Without implementing A and B node relay, the system records the execution process of the plugin at relevant historical time positions and target time positions, forming a baseline continuous execution graph G, based on the normal continuous execution of the same plugin instance that is neither recreated nor reset. ref The baseline continuous execution graph should at least record: the raw video input, parameters, and other general inputs at each time point; the operations performed by the plugin at each time point; the persistent states read and written by each operation; how the state formed at one time point is continued to be read or updated by subsequent time points; the data dependencies, state dependencies, and execution order relationships between operations; how the plugin output enters the formal compositing process; and the paths that may affect the formal output, control decisions, feedback processing, or other observable results.
[0032] For example, subsequent time-based plugin operations sequentially read the state formed at the previous time-based position and continue to update it until the target final output is generated; the above-mentioned cross-time input, operation, state, and output relationships are all recorded in the baseline continuous execution graph G. ref In this process, all subsequent relay judgments will be based on this diagram as the benchmark.
[0033] S103: Determine the actual state required for the target formal output. The system outputs data from the target region Q. T Begin, according to G ref Reverse lookup of dependencies to determine the plugin's role. Then Q is generated T The actual persistent state read at that time forms the target state read set R. T .
[0034] Target state reading set R T This includes the persistent state across frames that the plugin actually reads when generating the target output, as well as the information necessary to correctly read, interpret, and continue updating this persistent state. The persistent state across frames may include historical images, historical features, historical weights, cumulative values, motion information, or circular buffer content; the necessary information may include the cache validity bit, the current cache index, the initialization flag, the timestamp, the frame number, or other information used to determine the validity of the state and the state read / write position.
[0035] The above does not require every plugin to be present simultaneously. Rather, it determines which plugins need to be included in the target state read set R based on the actual state read relationships when the target plugin generates the target's final output. T The specific content.
[0036] The system will only generate Q T The actual state that needs to be read is listed in R. TOther plugin states unrelated to the target's final output are not considered as the target state for this local relay. The result of this step is to clarify: "What persistent states need to be established locally by node B."
[0037] Phase Two: Dividing the states and determining their respective reconstruction starting points S104: Forming a State Execution Unit The system for R T The persistent states and other states related to their updates are analyzed. States that can be independently scheduled are divided separately, and states that cannot be independently scheduled are merged to form one or more state execution units U. i .
[0038] If multiple states meet any of the following conditions, they should be grouped into the same state execution unit: they are written to by the same operation and the runtime cannot separately prohibit the writing of one of them; they actually use the same or overlapping memory addresses; they are mutually circularly dependent and the independent order of reconstruction cannot be determined; they share the same cache index, valid bit, or addressing information; and they cannot be scheduled separately at runtime.
[0039] The state execution unit includes not only historical images or values, but also the metadata necessary for correctly reading and continuing to update these states. For example, the four slots of a four-slot circular cache, the current write index, and the four valid bits together determine the actual state of the cache. If the runtime cannot maintain these contents separately, they should be divided into a single state execution unit: The result of this step is to obtain a set of state execution units whose reconstruction starting point and execution affiliation can be determined separately.
[0040] S105: Determine candidate reconstruction frontiers for each state execution unit The system executes unit U for each target-related state. i Read the pointcut from the target state We begin searching in the historical direction to determine the latest starting position that can fully establish the execution unit of this state, which is then used as the candidate reconstruction frontier C.
[0041] Reconstructing the frontier F i This means that node B will start executing the relevant historical events from this position, and will be able to reach... Establishing the state execution unit U required for the formal output of the target at that time i Earlier historical events prior to this position do not need to be addressed by node B for node U. i Re-execute.
[0042] Candidate reconstruction frontiers should satisfy: from F i Start to The events between them can establish the state values required for the target; at the same time, they can establish the corresponding valid bits, indexes, initialization flags, and addressing information; before the state is read for the first time, the relevant state has been fully established by the specified initialization state or a qualified source write; the reconstruction process does not require reading F. i Previously, the private state of the target plugin instance on node A was maintained; for partial writes, conditional writes, or cases where the write address cannot be determined, the state range should be expanded or F should be changed. i Move to an earlier location.
[0043] For example, if state execution unit U1 requires the most recent 4 frames of input to be fully established, while state execution unit U2 only requires the most recent 2 frames of input, then we can obtain the following respectively:
[0044]
[0045] This means that node B will rebuild from T-4 for U1 and from T-2 for U2, without requiring all states to be processed from the same earliest historical position.
[0046] S106: Interdependencies between state execution units After the candidate reconstruction frontiers for different state execution units are initially determined, the system continues to check whether there are any interdependencies between them. For example, a reconstruction event of state execution unit U1 may require reading U2; however, according to the current candidate reconstruction frontier, U2 has not yet been established at that time position. In this case, the system cannot directly adopt the original candidate frontier, but should perform one of the following operations: move the reconstruction frontier of U2 to an earlier position; merge U1 and U2, which cannot be reconstructed independently, into the same state execution unit; expand the range of states that need to be reconstructed; or cancel the local relay if the earlier private state dependency cannot be eliminated.
[0047] The system repeatedly checks the data reads, state reads, control relationships, memory address overlaps, state index relationships, and spatial neighborhood relationships between the various state execution units. Each processing step only allows moving the reconstruction frontier to an earlier position or merging state execution units; it does not allow splitting already merged state execution units again during the same solution process.
[0048] When checked again, the state execution unit division and each reconstruction frontier no longer change, that is, a stable final reconstruction frontier is obtained.
[0049] The system should also determine the earliest position F from which historical inputs can be obtained. min If it has already been expanded to F minIf the reconstruction process still requires reading the earlier private state of the A node plugin, then the partial relay condition is not met. In this case, the relay should be canceled and the A node should continue execution, or a full pre-roll should be used if feasible.
[0050] Phase 3: Identify the relay event and verify whether a safe transfer is possible. S107: Forming the initial B-node relay event set Based on the final reconstruction frontier of each state execution unit, the system determines that node B will start from the corresponding F. i Start to Previously, in order to establish the target state read set R T The required execution events are then grouped into an initial B-node relay event set K, consisting of the aforementioned execution events to be executed by node B. B .
[0051] Dedicated events used only for generating historical official images, and which do not affect the target state, control results, or other observable results, are not included in K. B .
[0052] Adjustments may occur during subsequent verification processes due to the reconstruction front moving to an earlier position, the addition of relevant preceding events, or the merging of state execution units. Each time K is moved... B After a new standard execution event is added, subsequent verifications should be re-executed for the new event and all related events affected by it, until K. B Maintain stability or cancel the relay.
[0053] To ensure that all subsequent verifications and A / B testing are performed on the same specific event, the event is executed using a standardized approach. This represents a single, uniquely identifiable execution of logic: Where n represents the specific plugin operation; t represents the time position of the operation; π represents the identifier of the actual call when the same operation is executed multiple times at the same time position; d represents the image block, region of interest, or region containing necessary neighborhood expansion that is actually processed in this operation; U i Indicates the state execution unit involved in this operation; M r Indicates the range of states read in this operation; M w This indicates the range of states written in this operation. If the system cannot determine the specific time, call, image area, and state read / write range corresponding to a certain event, then the event cannot be handed over to node B for execution alone. Instead, the event range should be expanded, related state execution units should be merged, or local relay should be canceled.
[0054] S108: Verify whether the candidate event is still required for the target state. For each candidate specification execution event The system is in G ref The function determines whether updates made to the persistent state by the event will still be retained before the target output is generated, and whether they will still affect R. T The target state in the process.
[0055] If the state written for a certain historical event reaches the target state read point... If an event has been completely overwritten or eliminated by subsequent events, and the target's formal output no longer reads this state, then the event is removed from the current B-node relay event set. Precursor events that only support this event and are no longer needed by other relay events are also removed. After deletion, the system re-executes the B-node predecessor closure verification and the A-node residual execution non-interference verification until the B-node relay event set remains stable.
[0056] If the state written by the event still affects the target state directly or through subsequent state updates, then the event is verified through future state liveness. Formally, this can be represented as:
[0057] in, Indicates in G ref In the middle, the event The influence can reach the target state by reading the set R along the state or data relationship. T .
[0058] S109: Verify whether stopping the event on node A will not change the historical output. For candidate events that pass S108, the system continues to check: if node A stops executing the event, whether the historical formal outputs that should have entered the formal synthesis, encoding, saving or delivery process before the target time position T remain unchanged.
[0059] The system in G ref Examine all impact paths from the candidate event to each historical official output. A candidate event is considered to have zero contribution to historical official outputs only if either of the following conditions is met: the impact of the candidate event cannot reach any historical official output; or although the candidate event can generate historical images, every path to the historical official outputs passes through a verified strict zero-transit relationship, so that changes to the candidate event will not change the final synthesis result.
[0060] A strictly zero-transitivity relation that can be explicitly verified is the source-over synthesis of premultiplied alpha. Under the normalized alpha representation:
[0061]
[0062] in, The color of the upper layer image; : Opacity of the upper layer image; : The color of the lower layer image; : Opacity of the underlying image; The color after synthesis; : Opacity after synthesis; Alpha is generally set to 0~1: 0 represents complete transparency, and 1 represents complete opacity.
[0063] When an independent upper-layer input satisfies the following conditions within the complete influence coverage area:
[0064] but: At this point, the color and alpha of the historical images in the lower-level plugin will not change the synthesis result.
[0065] The complete impact coverage area includes not only the original output area of the plugin, but also all possible impacts from motion mapping, filtering, resampling, displacement, deformation, and neighborhood expansion. If a candidate event may also affect masking, feedback, parameter adjustment, automatic exposure, color statistics, motion analysis, quality judgment, control conditions, file writing, or other externally observable results, it cannot be concluded that it has zero contribution to the historical official output simply because the image is occluded.
[0066] S110: Verify that occlusion of the upper layer and compositing conditions are not affected by candidate events. Even if the lower-level image generated by the candidate event is completely covered by the full-alpha upper-level image, it must be further confirmed that the upper-level image and the synthesis conditions themselves do not depend on the candidate event.
[0067] System verification: (1) The color and alpha of the upper-layer image do not depend on the candidate specification execution events and their subsequent states; (2) After the upper layer input is masked, the overall transparency is adjusted, and other processes that may change the Alpha value, the Alpha value of each corresponding pixel that actually enters the compositing operation within the complete influence coverage area is exactly equal to 1; (3) Compositing mode, layer order, cropping range, spatial location, coverage, color management parameters, and output route do not depend on candidate specification execution events; (4) There is no propagation bypass that causes the historical image output branch to bypass the full Alpha synthesis relation and thus affect the historical formal output, persistent state, feedback path, control result or other non-target observable result.
[0068] The aforementioned zero-contribution verification of historical formal output only applies to the propagation branches of candidate specification execution events leading to historical image output and non-target observable results. It does not exclude the possibility that the event will have a state effect by being written to and transmitted to the target state read set via the state maintenance branch. If a candidate specification execution event can indirectly change the upper-level image or synthesis conditions, then the execution of the event by node A cannot be stopped on the grounds that it is "completely covered by the upper layer".
[0069] S111: Verify that node B does not receive the private state of node A's plugins. The system determines the data sources that can be used when rebuilding the target state of node B, and verifies that these data do not contain the private persistent state of the target plugin instance of node A.
[0070] Node B must not receive: serialized data of Node A's plugin state; historical cache within Node A's plugin; features, summaries, or intermediate images calculated from Node A's plugin private state; or other data that can directly or indirectly recover Node A's plugin private state.
[0071] Node B can use: original video frames or video frames decoded according to defined rules; frozen plugin parameter trajectories; common time positions and common reset times; defined plugin initialization states; project configurations, color configurations, and boundary processing rules; and common motion information or other common intermediate data unrelated to the private state of the A node plugin.
[0072] S112: Verify that node B meets all the prerequisites. The system checks the current relay event set K of node B. B All direct and indirect preconditions required for each event. These preconditions must be determined by K. B The preceding events, qualified public events confirmed by S111, or specified initialization states provided must not contain the private state of the A node target plugin instance, and can be represented as follows: The symbols have the following meanings: Anc: indicates "preceding events and data sources"; superscript *: indicates that not only direct preceding conditions are checked, but all preceding conditions are traced back layer by layer; subscript ref: indicates that graph G is executed continuously on the baseline. ref Mid-inspection; K B The set of relay events executed by node B; : Public events with valid sources; This defines the initialization state. It can be understood as all the preconditions for the B node's relay event falling within the scope of the B node's event, common events, and the initialization state. For example, if the B node needs to execute an event... And it depends on: events previously executed by node B. ; Common input video frames The initial cache index is determined based on a common time base. All three sources meet the formula requirements.
[0073] But if If the historical cache inside the A node plugin must also be read, then the formula is not satisfied, and relay cannot be implemented directly. If the execution of a certain event by the B node still requires the private state of the A node plugin, then the reconstruction frontier should be moved to an earlier position, the scope of events executed by the B node should be expanded, and related state execution units should be merged; if the dependency still cannot be eliminated, the local relay should be canceled.
[0074] S113: Verify that node A's task retention will not be disturbed. After the handover, node A can still continue to execute other time locations, other image regions, other state execution units, or other formal output tasks. The system determines the set of events that node A will still execute after the handover. And verify that: Node A retains events and no longer reads the state version that has been handed over to Node B for maintenance; Node A and Node B will not write to the same persistent state address at the same time; Node A will not read the state that Node B is writing and has not yet formed a stable version; after Node A stops executing events that have been handed over to Node B, its retained output, retained state, control relationship and feedback relationship can still be completed normally.
[0075] Nodes A and B can repeatedly read the same raw video input or the same common data because such repeated readings do not change the common data. However, if both nodes write to the same persistent state, or if node A retains a state that still depends on node B for relay events, the non-interference condition is not met. In the event of a dependency or write conflict, related events should be transferred to node B, related state execution units should be merged, or the state ownership scope of node B should be expanded; if the conflict cannot be eliminated, the local relay should be cancelled.
[0076] S114: Verify that nodes A and B have consistent execution conditions. In order to make the reconstructed state of node B consistent with that of node G ref The normal continuous execution state represented should be consistent, and the execution processes of node A, node B and the baseline should at least adopt the same or equivalent results: plug-in program or internal plug-in representation; video input decoding rules; parameter change trajectory; color processing and pre-multiplication alpha rules; image boundary filling rules; common reset time base; state initialization rules; numerical calculation rules.
[0077] If nodes A and B use different plugin versions, parameters, input decoding methods, or state initialization rules, they may obtain different states even when processing the same historical frames. For colors and alpha values participating in zero-contribution verification, non-finite values, undefined mixing behaviors, or other situations where the synthesis result cannot be guaranteed should also be excluded.
[0078] Phase 4: Establishing scheduling relationships and executing the relay S115: Record the verification results and generate a relay certificate. Once all verifications from S108 to S114 pass, the system retains the original time position, execution order, and state propagation relationship, and records the following on the corresponding events and dependencies: the state execution unit to which the event belongs; the final reconstruction frontier; the source of input; the future state survival verification result; the historical formal output zero contribution verification result; the B node predecessor closure verification result; the A node residual execution non-interference verification result; and the unique logical execution attribution of A / B.
[0079] After recording the above verification results, an authentication execution graph G is formed. cert .
[0080] The system simultaneously from G cert The process generates a relay certificate for direct use at runtime. The relay certificate is a structured technical record that includes at least the target time location, the target formal output area, the target state read cutoff point, the state execution unit, the final reconstruction frontier, the B node relay event set, the A node retained event set, the state read and write range, the spatial execution domain, the input source, the unique logical execution attribution of A / B, and the execution environment conditions that must be met.
[0081] If the plugin, input, parameters, composition structure, state layout, execution domain, or execution environment changes, the original relay certificate becomes invalid, and the system should re-execute the relay verification. The relay certificate and relay schedule graph should take effect before the earliest specification execution event in the relay event set of node B begins execution. If node A has already executed a specification execution event in that set, node B must not execute the same event according to the original relay certificate; instead, the relay scope should be redefined and re-verified, or the current local relay should be canceled.
[0082] S116: Generate a relay scheduling graph and assign a unique logical execution destination. Runtime according to G cert Relay certificate generates relay scheduling diagram G relay .
[0083] For each specification execution event registered in the relay certificate Set the execution flag for node A respectively. Execute the mark with node B The execution flag can be either 0 or 1. A value of 1 indicates that the corresponding node is responsible for executing the specification execution event, while a value of 0 indicates that the corresponding node does not execute the specification execution event.
[0084] For each specification execution event registered in the relay certificate, only one logical execution affiliation is assigned between node A and node B, and the following conditions are met: , For events that have already been handed over to node B: It should satisfy: This means that node B acquires the sole logical execution ownership of the event, and node A will no longer schedule the same event according to the same specifications, thus avoiding planned duplicate scheduling or lack of responsibility. The execution flag indicates logical scheduling ownership, but does not necessarily mean that it will be physically executed exactly once under node failure or task retry conditions.
[0085] This restriction applies only to events registered in the relay certificate. Node A can still perform other image regions, other state execution units, other formal output tasks, as well as public input reading and video footage decoding.
[0086] S117: Node B is established according to different reconstruction fronts. Node B creates a plugin instance at the earliest final reconstruction frontier of all state execution units. This plugin instance remains the same throughout the reconstruction process and the target formal output; it is neither recreated nor completely reset.
[0087] For execution units with different state fronts during reconstruction, the runtime enables them according to their respective fronts.
[0088] For example: F1 and F2 are two different reconstruction frontiers.
[0089] Node B creates a plugin instance and begins updating state execution unit U1 at T-4. Storage for state execution unit U2 can be allocated simultaneously, but it remains inactive until T-2; after T-2, the relevant state update events for U2 are then enabled. When enabling U2, the plugin instance must not be recreated, nor must U1, which was already established starting at T-4, be reset.
[0090] Starting from the reconstruction frontier of each state execution unit, the B node reads historical video inputs and common data in chronological order and executes the state update events assigned to the B node in the relay certificate. The B node does not execute output operations that are only used to generate historical images that will not be subsequently submitted and do not affect the target state or other observables. If the state update and image computation of an operation cannot be separated, the B node can execute the operation as a whole, but the temporary historical images generated will not be submitted to the formal compositing process.
[0091] S118: Target output generated by node B Upon reaching the target time position T, node B first completes the state updates that must be completed according to the plugin execution order before the target state read cutoff point. Subsequently, the same plugin instance maintained throughout the reconstruction process reads the established target state in the target's formal output region Q. T The target formal output result is generated internally, and the target formal output result is submitted to the formal synthesis process.
[0092] Under the same input, parameters, and execution environment, the target state read by node B at the target state reading tangent point should be consistent with the baseline continuously executed graph G. ref The target states they represent are logically equivalent; node B is in the target's formal output region Q. T The final output of the internally generated target should be continuously executed with the baseline graph G. ref The target output is consistent.
[0093] If any of the above steps fails to meet the corresponding conditions, the system must not continue to implement unverified local relays, but should adopt conservative handling methods such as expanding the reconstruction scope, merging state execution units, performing a complete pre-roll, having node A continue execution, or canceling the relay.
[0094] Constructive embodiments of dual-state cache plugins with different reconstruction fronts This embodiment constructs a video temporal domain plugin with cross-frame noise reduction functionality to illustrate how the present invention can be implemented. This embodiment is only used to demonstrate that the present invention is technically feasible and does not require all video temporal domain plugins to use the same buffer length, calculation formula, or interface name.
[0095] The first rendering node A originally processed the target video temporal plugin according to the baseline continuous execution relationship. The system now requires the second rendering node B to generate the target final output region Q at the target time position T. T .
[0096] Let X t The source of the valid public input frame at time position t is indicated. Node B can obtain X from shared storage, deterministic decoding results, or other source-verified public data sources. t However, it does not accept historical cache, cache index, valid bits, or other plugin private states from the target plugin instance of node A.
[0097] This embodiment focuses on fixing the target output region Q. T The corresponding spatial execution domain d. If the plugin needs to read surrounding pixels when calculating region d, then the extended input region containing the surrounding pixels is denoted as... .
[0098] This embodiment adopts an execution order of "first reading the historical state and generating the target's official output, then updating the target's time and location state." Therefore, the target state reading cutoff point... This occurs before the state update at the target time position T. At this cutoff point, the plugin reads the historical state that has been established up to time position T-1.
[0099] The plugin in this embodiment has two independently schedulable state execution units: a first state execution unit U1, used to store historical images at the four most recent time positions; and a second state execution unit U2, used to store inter-frame difference maps at the two most recent time positions. The first state execution unit needs to start reconstruction from T-4, while the second state execution unit only needs to start reconstruction from T-2, i.e.: , Therefore, we obtain the following formula: .
[0100] Nodes A and B use the same or deterministically equivalent plugin versions, input decoding rules, parameter trajectories, color processing rules, boundary processing rules, and numerical calculation rules.
[0101] Apart from the cache slots, valid bits, and cache indexes explicitly listed in this embodiment, the plugin does not have any hidden cross-frame states that are not included in the analysis. If the actual plugin also has call count, random number state, hidden index, or other cross-frame states, these should be included in the corresponding state execution unit; if they cannot be scheduled independently, the relevant state execution units should be merged.
[0102] In this embodiment, the controlled plugin runtime can schedule state maintenance operations and formal output generation operations separately. As a specific implementation, the runtime can provide the following two types of calls: advance(time, spatial_domain, active_state_set) render(time, spatial_domain) Where: time represents the time position; spatial_domain represents the spatial execution domain; active_state_set represents the set of state execution units updated this time, such as U1 or It is only used to select which state execution units are enabled in this instance; it is not an image mask, nor is it equivalent to the state read mask in the specification execution event. Or state write mask The `advance` function reads qualified common input from the source and updates the selected state execution unit; the `render` function reads the established persistent state and the target time position input to generate the final output. In this embodiment, `render` only reads the persistent state and does not write to it. If a single plugin operation cannot independently update two state execution units, or if it modifies shared metadata, the relevant state execution units should be merged. The interface names mentioned above are not restrictive and can also be implemented through intermediate representation interpretation, compilation splitting, or other equivalent methods; the B node maintains the same plugin instance throughout state reconstruction and target output.
[0103] The first state execution unit U1 is a four-slot historical image circular cache, including: four historical image cache slots H[0] to H[3]; the next write slot index Four valid cache bits to .in, This indicates the cache slot where the next state update should be written; This indicates whether valid data that can be read by the target output has been stored in the cache slot H[s].
[0104] For each time position t, the first state execution unit is updated as follows: , , ,in, Indicates from common input frame Obtain extended input area "mod4" indicates that the index cycles between 0 and 3.
[0105] This embodiment limits each time position to perform exactly one deterministic update on U1, each update completely overwriting one cache slot, and the update process does not read the original historical image content of that slot. Node B starts from (T-4) and uses... , , and After four updates, all four cache slots can be fully covered. Therefore, the reconstruction frontier of the first-state execution unit is: .
[0106] The second state execution unit U2 is a two-slot inter-frame differential map circular buffer, including: two differential map buffer slots D[0] and D[1]; the next write slot index. Two valid cache bits and .
[0107] The inter-frame difference map at time position t is defined as follows: Where Luma represents the brightness value of the image, and the absolute value operation represents the calculation of the brightness difference between two adjacent time positions pixel by pixel.
[0108] The second-state execution unit is updated in the following manner:
[0109] This update only reads the common input frame X. t and X t-1 It does not read U1, nor does it read the private state of the target plugin instance of node A.
[0110] When node B performs the first U1 update at time position T-2, it also needs to obtain the common input frame X. t-3 This input is merely publicly available data from a valid source, and not a plugin-private state update event prior to T-2, therefore it will not move the U2 reconstruction frontier forward from T-2.
[0111] If the common sequential execution start point t0 is the first frame of the video segment, and there is no Then, according to the pre-defined boundary rules, Alternatively, obtain the previously materialized input frame, and do not use undefined data.
[0112] In this embodiment, a deterministic update is performed exactly once for U2 at each time position. Each update completely covers a difference graph cache slot and does not read the original content of that slot.
[0113] After processing the two time points T-2 and T-1, node B can completely cover the two difference graph cache slots. Therefore, the reconstruction front of the second state execution unit is: If a unified reconstruction front T-4 is used, U2 would need to perform two update events at T-4 and T-3 that are not necessary for the target state. This embodiment avoids these two additional events by using different reconstruction fronts.
[0114] The slots in the circular cache are not unordered data sets. Plugins write and read historical data according to a defined correspondence between common time positions and cache slots. Therefore, simply covering all cache slots with common input is insufficient to guarantee the correct target state; the next write slot index must also be consistent with the common time base. Let t0 represent the common execution start point determined by the project timeline, scene transition, or common reset event; State execution unit U i The number of cache slots; This represents the initial index determined by the specified initialization rules at the common sequential execution start point t0; Indicates the interval of half-open space Within, the baseline continuously executes graph G. ref U that should occur in i Update the number of events.
[0115] Node B is executing unit U in the execution state. i Before the first rebuild event, set the next write slot index to: This index is recalculated based on the common time base, the specified initialization rules, and the number of update events in the base continuous execution graph; it is not read or copied from the A node plugin instance.
[0116] If a corresponding state update occurs exactly once at each time point during continuous execution of the baseline, then: If there are frame skips, repeated calls, conditional calls, or multiple calls at the same time position, the time position cannot be directly subtracted; instead, it should be determined according to G. ref The actual number of standard execution events in the system.
[0117] Similarly, the expected index phase determined by the common time base at the target state readout point is: ,in, This indicates that during continuous execution of the baseline, when the target time position T is reached but the state update at time position T has not yet been performed, the state execution unit U... i The next write slot index should be available. At the read point in the target state, node B should satisfy: Furthermore, all valid bits of the cache slots required for the target output should be equal to 1. In this embodiment, node B is... Create the same plugin instance and allocate storage for both U1 and U2. When creating the plugin instance: set the index of U1 to the specified index calculated based on F1, set all its valid bits to 0, and immediately enable U1; pre-set the index of U2 to the specified index calculated based on F2, set all its valid bits to 0, but keep U2 inactive until F2 is reached. The above initialization only uses the specified initialization state and common time base, and does not use the A-node plugin's private state. The inactive U2 must not affect the already activated U1.
[0118] The initial contents of a cache slot may be uncertain, but it must not be read when its valid bit is 0, and should be completely overwritten by common input before the target state read point.
[0119] In this embodiment, before calling render(T,d) during runtime, the controlled plugin first checks whether the actual next write slot index of the first state execution unit is equal to the expected index determined by the common time base. And check whether the actual next write slot index of the second state execution unit is equal to the expected index. The runtime also checks whether all cache slots required for the target's final output have been marked as valid. If the index phases are inconsistent, or at least one required cache slot is not yet valid, it indicates that the B-node reconstruction has not yet reached the baseline continuous execution state. This result must not be submitted as the certified target's final output, but should instead undergo the adjustments or downgrades described in Section 4.7.
[0120] After the above checks are passed, the plugin will be available from Starting from the indicated cache slot, four historical images are read sequentially according to the circular cache direction. These four images correspond to time positions (T-4, T-3, T-2, T-1) respectively. In this embodiment, the plugin assigns weights of 0.1, 0.2, 0.3, and 0.4 to the four historical images. The plugin targets the final output region Q. T For each pixel position and each color channel within the image, the pixel values of the four historical images are multiplied by their corresponding weights and then summed to obtain a weighted historical reference image, which is denoted as [image name missing]. The four weights mentioned above are all greater than zero, sum to 1, and are distinct from each other. Therefore, if the corresponding order between historical images and cache slots is cyclically misaligned, the weighted historical reference image will also change, even when the content of each historical image is not entirely identical. This demonstrates the necessity of common time index phase alignment. Subsequently, the plugin... Starting from the indicated buffer slot, read two inter-frame difference maps in the circular buffer's cyclic direction. The first difference map corresponds to the earlier time position T-2, and the second difference map corresponds to the newer time position T-1.
[0121] In this embodiment, the plugin applies a weight of 0.4 to the earlier difference map and a weight of 0.6 to the newer difference map, and then adds the two pixels pixel by pixel to obtain a weighted difference map, denoted as . .
[0122] set up The specified difference threshold is greater than zero. The plugin divides the weighted difference value at each pixel location by... Limit the obtained value to between 0 and 1, then subtract the value from 1 to obtain the historical image scale for that pixel location: ,in, This means that z is set to 0 when z is less than 0, 1 when z is greater than 1, and z remains unchanged in other cases.
[0123] When the inter-frame difference is small, When the difference between frames is large, the output uses more historical reference images; when the difference between frames is large, The smaller the frame size, the more the output uses the current input frame, thus reducing historical motion blur in motion regions.
[0124] make This indicates that the data should be written to the target output region Q. T The pixel value at pixel position x is then: ,in, This represents the pixel value at pixel position x in the current input frame.
[0125] Here we will continue using the terminology from the previous text: Q T P represents the spatial region of the target's final output. T This represents the actual pixel result written to this area.
[0126] The two specific weight combinations described above are only used to illustrate one feasible calculation method and do not require other implementation methods to use the same values. Other implementation methods may use other predetermined weights, but should be able to maintain the influence of historical time order on the calculation results.
[0127] As can be seen from the above processing, the first state execution unit U1 influences the target formal output through the weighted historical reference image; the second state execution unit U2 influences the target formal output through the historical image using a ratio; the cache content, cache valid bits, and cache index phase jointly determine the target formal output; the target formal output depends on both the first state execution unit U1 and the second state execution unit U2.
[0128] In this embodiment, the target time position is T=17, which is the starting point of the common sequence execution. The initial indexes of both state execution units are 0, and each is updated once at each time position. The first state execution unit U1 needs to store four historical images from time positions 13 to 16, therefore its reconstruction front is time position 13. Based on the common time reference, before executing the first update at time position 13, node B should set the next write slot index of U1 to 1. The second state execution unit U2 needs to store two inter-frame difference images formed by time positions 15 and 16, therefore its reconstruction front is time position 15. Based on the common time reference, before executing the first update at time position 15, node B should set the next write slot index of U2 to 1.
[0129] Before processing time position 13, node B creates a plugin instance, allocates storage for the two state execution units, sets all valid bits of the two caches to 0, sets both next write slot indices to 1, and keeps the second state execution unit inactive at time positions 13 and 14.
[0130] Node B then uses the same plugin instance to perform the following operations in sequence: Time position 13: Update only U1. Set the common input frame X... 13Write to slot H[1], then update the next write slot index to 2. Time position 14: Update only U1. Transfer the common input frame X 14 Write to slot H[2], then update the next write slot index of U2 to 3. Time position 15: Update U1 and U2 simultaneously. Transfer the common input frame X 15 Write to slot H[3]; use common input frame X 15 and X 14 Calculate the inter-frame luminance difference map at time position 15 and write it to slot D[1]. After the update, the next write slot index of both state execution units becomes 0. Time position 16: Update U1 and U2 simultaneously. Transfer the common input frame X 16 Write to slot H[0]; use common input frame X 16 and X 15 Calculate the inter-frame luminance difference map at time position 16 and write it to slot D[0]. After the update, the next write slot index of both state execution units becomes 1.
[0131] After the above reconstruction is completed, the cache contents of the first state execution unit are: slot H[0] stores X 16 Slot H[1] stores X 13 Slot H[2] stores X 14 Slot H[3] stores X 15 .
[0132] The cache contents of the second state execution unit are: slot D[0] stores the inter-frame difference map at time position 16; slot D[1] stores the inter-frame difference map at time position 15.
[0133] At this point, the required valid bits for both caches are 1, and the next write slot index for both state execution units is 1. Calculated according to the common time base, the two expected indices at target time position 17 are also 1. Therefore, the actual index phase of node B is consistent with the base continuous execution.
[0134] The first state execution unit starts from slot H[1] and reads H[1], H[2], H[3], and H[0] in a cyclic order. The resulting historical image order is exactly X. 13 X 14 X 15 X 16 .
[0135] If node B incorrectly sets the initial index of the first state execution unit to 0, its actual next write slot index will still be 0 after four updates, which is inconsistent with the common expected index 1 at target time position 17. Therefore, the index phase check performed at runtime before generating the target's official output will fail, and this result must not be submitted as the certified target's official output.
[0136] This situation illustrates that simply using common input to cover all cache slots is insufficient to prove that the rebuilt state is logically equivalent to the baseline continuous execution state; the cache content, cache valid bits, and cache index metadata should all meet the authentication conditions.
[0137] Upon reaching time position 17, node B uses the same plugin instance to call render(17,d), reads two state execution units at the target state read point, and generates the target formal output region Q. 17 The pixel results within.
[0138] In this embodiment, the target state reading point is located before the state update at time position 17. Therefore, when generating the official target output, the historical cache only contains the state formed up to time position 16. If it is necessary to continue processing tasks at time position 18 and beyond, the state update at time position 17 can be performed after the official target output is generated.
[0139] In this embodiment, the B node relay event set K B It includes six specification execution events: U1 update event at time position T-4; U1 update event at time position T-3; U1 update event at time position T-2; U1 update event at time position T-1; U2 update event at time position T-2; and U2 update event at time position T-1.
[0140] Although time positions T-2 and T-1 can update two state execution units simultaneously with a single runtime call, from the perspective of logical execution attribution, each call includes one U1 update event and one U2 update event. Therefore, the total number of relay events remains six.
[0141] The historical images or difference graphs written by the above six events are all read at the target state read cut-off point and affect the target's formal output, thus all of them have future state survivability.
[0142] Within the historical interval from T-4 to T-1, the target plugin's historical image serves as the source-over synthesis layer for pre-multiplied alpha. The upper-level input, which has no causal dependency with the six relay events, has an alpha of exactly 1 when it actually enters the synthesis operation within the complete influence coverage area. Furthermore, the historical plugin image does not have any propagation bypasses leading to persistent states, feedback inputs, masking, parameter control, statistical results, file writing, or other observable results. Therefore, the contribution of the lower-level historical image to the synthesized color and alpha is zero; not generating or submitting this historical image will not change the historical output or subsequent state. Node B only performs state maintenance operations within the historical interval, and only calls render(T,d) to generate the target output after reaching the target time position T.
[0143] For inclusion of K B For each specification execution event, node B executes it once, and node A will not execute the same specification execution event again. Here, "the same specification execution event" means that the operation node, time location, calling instance, spatial execution domain, state execution unit, state read range, and state write range are all identical. This avoids the same state update being executed repeatedly by nodes A and B, or being missed due to neither node executing it. Node A can still execute other spatial regions, other state execution units, or other output tasks, but the tasks reserved by node A cannot be read by node K. B The event is responsible for generating the logical state version. Node A and Node B must not simultaneously acquire write ownership for the same logical state address range or state version. Node A and Node B can read the same common input frame or common neighborhood input. Reading common input itself does not modify the plugin's persistent state, therefore it does not constitute a re-execution of a relay event, nor does it constitute the transfer of node A's plugin's private state to node B.
[0144] For the first-state execution unit U1, node B, starting from time position T-4, uses the same common input and deterministic update rules as the baseline continuous execution to complete four full slot writes. For the second-state execution unit U2, node B, starting from time position T-2, uses qualified common input to calculate two inter-frame difference maps and performs two full slot writes consecutively. When the target state read cutoff point is reached, the two difference maps, all required valid bits, the next write slot index, and the time correspondence between the difference map and the cache slot are all consistent with the baseline continuous execution.
[0145] Therefore, the two state execution units reconstructed by node B are logically equivalent to the corresponding states in the baseline continuous execution. This logical equivalence does not require nodes A and B to use the same physical memory addresses. Since node B uses the same target input, plug-in parameters, and deterministic computation rules, its generated target output is consistent with the baseline continuous execution result.
[0146] Since B-node and the baseline use the same target input frame, plugin parameters, state content, index phase, and deterministic calculation rules for continuous execution, the pixel results generated by B-node in the target's formal output area are consistent with the baseline's continuous execution results.
[0147] To ensure the accuracy of the relay results, this invention does not presume the relay to be successful when the verification conditions are uncertain, but adjusts or downgrades according to the following rules: (1) If the target state reading cutoff point, target state reading set, standard execution event or state read / write range cannot be determined, expand the conservative range or merge the state execution units; if it still cannot be determined, cancel the relay.
[0148] (2) When node B lacks preceding events, common inputs or initialization states, it moves to an earlier position to rebuild the leading edge and adds necessary events; if it still cannot close after reaching the earliest position where common inputs can be obtained, it cancels the relay or downgrades to a full pre-roll when conditions are met.
[0149] (3) If the data required by node B includes the private state of the plugin of node A, or if the public input is missing, the version is inconsistent, or the identity cannot be verified, local relay will not be implemented.
[0150] (4) If the historical plugin output can still affect the historical formal output, persistent state, feedback path, control results, statistical results or other observable results, the historical formal output is not considered to have zero contribution.
[0151] (5) If node A retains the state version generated by the relay event of node B that the task depends on, or if there is a state write conflict between nodes A and B, the scope of responsibility of node B shall be expanded or the state execution unit shall be merged; if the conflict still cannot be eliminated, the relay shall be cancelled.
[0152] (6) If the execution environment does not meet the deterministic equivalence condition, the B node cannot maintain the same plugin instance, or the plugin, input, parameter, composition structure, state layout, execution domain or execution environment bound to the relay certificate changes, the certificate becomes invalid and is re-verified; if the authentication conditions cannot be restored, the A node continues to execute or is downgraded to a full pre-roll.
[0153] This invention can be implemented as a method, a system, an electronic device, and a computer-readable storage medium. The method is implemented according to S101 to S118; the system includes functions for acquiring the execution graph, forming state execution units, solving the reconstruction front, verifying relay conditions, generating relay certificates, and scheduling execution, each function being implemented by the same or different software and hardware; the processor of the electronic device executes the above method when executing program instructions in the memory, and the computer-readable storage medium stores the program instructions that cause the processor to execute the above method.
[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Any other modifications or equivalent substitutions made by those skilled in the art to the technical solutions of the present invention, as long as they do not depart from the spirit and scope of the technical solutions of the present invention, should be covered within the scope of the claims of the present invention.
Claims
1. A video temporal relay method based on zero-dependency closed-domain coverage reconstruction, applied to a video rendering system including a first rendering node A and a second rendering node B, characterized in that, Includes the following steps: Determine the target time location, target formal output area, target status reading cutoff point, and target status reading set, and construct a baseline continuous execution graph according to the method of continuous execution of a single plug-in instance when no relay is implemented; The persistent states involved in the target state reading set are divided into state execution units, and a reconstruction front is determined for each state execution unit. Through iterative processing that only merges state execution units that cannot be reconstructed independently and only moves the reconstruction front to an earlier execution position, at least two state execution units that can be independently scheduled and have different reconstruction fronts are obtained. Based on the final reconstruction frontier of each state execution unit, the standard execution events to be executed by the second rendering node B are determined, forming a B node relay event set; for the same standard execution event in the set, it is verified that the state value written by the event can be directly or through subsequent state updates to the target state reading set; The fact that the first rendering node A stops executing this event will not change the historical output before the target time position; All direct and indirect prerequisites required for the second rendering node B to execute this event come from the preceding events in the B node's relay event set, qualified common input or common processing events, and the specified initialization state; The first rendering node A retains the logical state version of the event that does not depend on the event, and the first rendering node A and the second rendering node B do not simultaneously acquire write ownership of the same persistent state address; Among them, for the historical image output path that can reach the historical formal output, the "not changing the historical formal output" includes at least the following: the historical plug-in image is used as the source-over synthesis lower layer with pre-multiplied Alpha, the causally independent upper layer input has an Alpha that is exactly equal to 1 in the actual value of entering the synthesis operation within the complete influence coverage area, and there is no propagation bypass that bypasses the synthesis relationship and affects the persistent state, feedback path, control result or other observable results. After successful verification, a relay certificate is generated. Each specification execution event registered in the relay certificate is assigned a unique logical execution affiliation between the first rendering node A and the second rendering node B. The transferred specification execution event is stopped by the first rendering node A and executed once by the second rendering node B. The second rendering node B creates a target plugin instance at the earliest final reconstruction frontier among all state execution units. Without receiving the private state of the target plugin instance of the first rendering node A, it keeps the plugin instance from being recreated and not reset as a whole from the earliest final reconstruction frontier to the target state read tug point. It enables the corresponding state maintenance events according to the final reconstruction frontier of each state execution unit, reconstructs the target persistent state indicated by the target state read set, and generates the target formal output at the target time position.
2. The video temporal relay method based on zero-dependency closed-domain coverage reconstruction according to claim 1, characterized in that: Multiple persistent states are grouped into the same state execution unit if they meet any of the following conditions: they are written to by the same operation and the runtime cannot separately prevent the writing of one of them; they actually use the same or overlapping memory addresses. The relationships between mutually dependent entities cannot be determined as independent sequential reconstructions. They share the same cache index, valid bits, or addressing information; they cannot be scheduled separately at runtime; the state execution unit includes state content and the valid bits, index, initialization flags, and addressing metadata necessary for correctly reading and continuing to update the state.
3. The video temporal relay method based on zero-dependency closed-domain coverage reconstruction according to claim 1, characterized in that: When determining the reconstruction frontier, the latest starting position that can completely establish the corresponding state execution unit is searched from the tangent point in the target state in the historical direction as the candidate reconstruction frontier. When there is interdependence between the state execution units, it is only allowed to move the reconstruction frontier to an earlier execution position or merge the state execution units that cannot be reconstructed independently, until the state execution unit division and each reconstruction frontier no longer change, and the final reconstruction frontier is obtained.
4. The video temporal relay method based on zero-dependency closed-domain coverage reconstruction according to claim 1, characterized in that: The specified execution event is uniquely determined by the operation node, time location, dynamic call instance, spatial execution domain, state execution unit, state read range, and state write range, and is represented as follows: ; The relay condition verification is performed on the same specification execution event, including verifying that the state value written by the event can be directly or through subsequent state updates to the target state reading set and affect the future state survival verification of the target's formal output. Verify that the historical output of the first rendering node A, before the event stops executing, does not change the target time position and thus has zero contribution; verify that all preconditions required for the second rendering node B to execute the event are met. The closure verification of the predecessor of node B, in which K B For the relay event set of node B, E public A collection of public events with valid sources. S init To define the initialization state; and to verify that the logical state version of the event retained by the first rendering node A does not depend on the handover event, and that the two nodes do not simultaneously obtain the A node remnant to which the write belongs, a non-interfering verification is performed.
5. The video temporal relay method based on zero-dependency closed-domain coverage reconstruction according to claim 4, characterized in that: The historical official output zero-contribution verification is limited to a source-over composition relationship with pre-multiplied alpha, and the resulting color and opacity are... , When the independent upper-layer input satisfies α within the complete influence coverage area top When =1, C out =C top α out =1, the lower-level historical plugin images do not affect the synthesis result; the upper-level images, synthesis mode, layer order and output route do not depend on the candidate specification execution event, and there is no propagation bypass that bypasses the synthesis relationship to affect the historical formal output, persistent state, feedback path, control result or other observable results.
6. The video temporal relay method based on zero-dependency closed-domain coverage reconstruction according to claim 1, characterized in that: For state execution units using a circular cache, before executing the first reconstruction event, the second rendering node B sets the next write slot index to the starting point of the common order execution, the specified initial index, the number of cache slots, and the number of update events in the baseline continuous execution graph. When the target state is read, the pointcut is read. Before the state update at the target time position T, read the cut-off point verification at that target state. , , All valid bits of the cache slots required for the target output are equal to 1; if the index phase is inconsistent or the required slot is invalid, the result will not be submitted.
7. The video temporal relay method based on zero-dependency closed-domain coverage reconstruction according to claim 1, characterized in that: The relay certificate records the target time location, target formal output area, target state reading cut-off point, state execution unit, final reconstruction frontier, B node relay event set, A node retained event set, state reading and writing range, spatial execution domain, input source, A or B unique logical execution affiliation, and execution environment conditions. The relay certificate becomes invalid when the plugin version, input, parameters, composition structure, state layout, spatial execution domain, or execution environment changes; if any relay condition cannot be met, the rebuild front edge will be moved to an earlier position, a preceding event will be added, a state execution unit will be merged, or the scope of responsibility of the second rendering node B will be expanded. If the conditions still cannot be met, the process will be downgraded to a full pre-roll, the first rendering node A will continue to execute, or the relay will be canceled.
8. A video temporal relay system based on zero-dependency closed-domain coverage reconstruction, characterized in that: The system includes: an execution graph acquisition module for obtaining the execution representation of the target plugin and forming a baseline continuous execution graph; a state execution unit formation module for forming independently schedulable state execution units; a reconstruction frontier solving module for determining the reconstruction frontier of each state execution unit; a future state survival verification module for verifying whether the state generated by the candidate specification execution event still affects the target state reading; a historical formal output zero contribution verification module for verifying whether the candidate specification execution event affects the historical formal output or other observable results; a data source verification module for verifying whether the input of the second rendering node B is of qualified source and does not contain the private state of the target plugin instance of the first rendering node A; a two-sided execution closure verification module for verifying the predecessor closure of node B and the non-interference of the residual execution of node A; a relay certificate generation module for recording the reconstruction frontier, specification execution events, input sources, verification results, and the unique logical execution affiliation of A or B; and a scheduling execution module for generating a relay scheduling graph based on the relay certificate and controlling the first rendering node A and the second rendering node B to execute the method described in any one of claims 1 to 7.
9. An electronic device comprising a processor and a memory, wherein the memory stores program instructions, characterized in that: When the processor executes program instructions, it implements the video temporal relay method based on zero-dependency closed-domain coverage reconstruction as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed by the processor, the processor performs the video temporal relay method based on zero-dependency closed-domain coverage reconstruction as described in any one of claims 1 to 7.
