Image Layer Pre-Composition for Faster Display Updates
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing method of modifying layers in an image requires sequential combination of all layers, leading to display freezing and delays, especially with a large number of layers, adversely affecting user experience.
Innovation Solution
Implement pre-composition of consecutive layers satisfying an associative law, allowing direct layer composition based on pre-composed layers, reducing processing amount and improving efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all layers are sequentially combined when a layer is modified, then the complete image can be obtained, but the processing time increases and display freezing occurs
Solution Approach 1:
The patent segments the layer composition process into two parts: pre-composing layers that satisfy the associative law (which can be done once and reused), and only composing layers that do not satisfy the associative law when modifications occur. This segmentation allows the system to avoid redundant composition operations while maintaining image completeness.
Solution Approach 2:
The patent performs preliminary composition on layers that satisfy the associative law before any modifications are made. These pre-composed layers are stored and can be directly used when modifications occur, eliminating the need to re-compose these layers every time, thus reducing processing time while maintaining completeness.
2Reliability
If all layers are sequentially combined for each modification, then the updated image is obtained, but display delay occurs
Solution Approach 1:
The patent divides layers into two groups: those satisfying the associative law (pre-composed once and reused) and those not satisfying it (composed on-demand). This segmentation enables faster display updates by avoiding redundant composition operations while ensuring accuracy through selective composition only where necessary.
Solution Approach 2:
By performing preliminary composition on layers satisfying the associative law, the system prepares composition results in advance that can be directly applied during updates. This preliminary action eliminates redundant computation during display updates, significantly improving display speed while maintaining update accuracy.
3Productivity
If pre-composition is performed on all layers, then composition efficiency is improved, but layers not satisfying associative law cannot be properly handled
Solution Approach 1:
The patent applies different composition strategies to different layers based on their properties. Layers satisfying the associative law are pre-composed and reused, while layers not satisfying the associative law are composed on-demand. This local differentiation optimizes efficiency for suitable layers while maintaining flexibility for layers requiring adaptive handling.
Solution Approach 2:
The patent creates a dynamic composition system where the composition strategy adapts based on layer properties. The system dynamically determines whether to use pre-composed layers or perform on-demand composition based on whether layers satisfy the associative law, thereby maintaining both efficiency and flexibility.
Data Source
AI summary
Example layer processing methods and apparatus are described. One example layer processing method includes displaying a first image, where the first image includes a plurality of layers. Layer composition is performed based on a pre-composed layer and a first layer in the plurality of layers to obtain a second image in response to a first user operation. The first user operation is an operation performed by a user on the first layer. The pre-composed layer is obtained by performing pre-composition on target layers in the plurality of layers. The target layers are at least two consecutive layers in a layer sequence in the plurality of layers, and the target layers satisfy a predetermined condition. The image is obtained through layer composition based on the pre-composed layer obtained by performing pre-composition on the target layers.


