Graphic Layer Merging via Sequence Numbers to Reduce Streams
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Traditional methods for merging graphic layers on the Android platform are inefficient, relying on Z-axis order and resulting in high power consumption due to excessive use of streams, which limits optimal performance and increases power usage.
Innovation Solution
A method and device that assign sequence numbers and weight values to graphic layers based on overlay order and BLIT performance, allowing for merging of adjacent undirty graphic layers to reduce the number of streams required, thereby optimizing performance and reducing power consumption.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If traditional methods process graphic layers sequentially according to Z-axis order, then the overlay order can be maintained, but the merging efficiency is reduced and optimal performance cannot be achieved
Solution Approach 1:
The patent changes the parameter for layer ordering from Z-axis order to overlay order based on sequence numbers and weight values. By reordering graphic layers according to their overlay sequence and assigning weight values to undirty layers, the system achieves more efficient merging while maintaining correct overlay appearance, resolving the contradiction between merging efficiency and overlay order correctness.
2Productivity
If a large number of streams are used to achieve optimal performance, then graphic layer processing is optimized, but power consumption increases
Solution Approach 1:
The patent merges adjacent undirty graphic layers into single streams, reducing the total number of streams required. By identifying undirty layers (layers without changes since last frame) and combining them, the system achieves optimal performance with fewer streams, thereby reducing power consumption while maintaining productivity.
3Quantity of substance
If graphic layers are merged sequentially from highest or lowest Z-axis layer, then the number of streams is reduced, but the merging is not optimal and performance is not maximized
Solution Approach 1:
The patent changes the merging strategy from sequential Z-axis order to overlay-order based merging using sequence numbers and weight values. This allows the system to identify optimal merging pairs of undirty layers, reducing the number of streams while maximizing performance by merging layers that can be combined without affecting overlay correctness.
Data Source
AI summary
A method for merging graphic layers is provided. The method includes: receiving a plurality of graphic layers in a current frame; assigning sequence numbers to the graphic layers according to an overlay order; judging whether a first graphic layer and a second graphic layer vary in a period; merging the first graphic layer with the second graphic layer when judging that the first graphic layer and the second graphic layer do not vary in the period; and displaying the graphic layers in order of the sequence numbers according to the sequence numbers, wherein the first graphic layer and the second graphic layer are adjacent graphic layers.


