IP Library Granted Patent US 10,210,641
Granted Patent B2
US 10,210,641 · App. 15/160,956 · Granted Feb 19, 2019

Method and device for displaying graphic layers

Inventors: Yanjie Wang (Shanghai, CN); Qian Wang (Shanghai, CN); Chenyang Zhu (Shanghai, CN)
Assignee: VIA ALLIANCE SEMICONDUCTOR CO., LTD.
G06T11/60G06T1/20
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,210,641
App. No.
15/160,956
Granted
Feb 19, 2019
Kind
B2
Abstract

A method for displaying graphic layers is provided. The method includes: receiving a plurality of graphic layers; assigning sequence numbers to the graphic layers according to an overlay order; assigning a weight value to each graphic layer according to a manner; establishing a layer order according to the sequence numbers and the weight values; and displaying the graphic layers according to the layer order.

Claims (112)

1. A method for displaying graphic layers, comprising:

receiving a plurality of graphic layers;

assigning sequence numbers to the graphic layers according to an overlay order;

assigning a weight value to each graphic layer according to a manner;

establishing a layer order according to the sequence numbers and the weight values; and

displaying the graphic layers according to the layer order;

wherein the manner is a bit-block transfer (BLIT) performance; and

wherein when the BLIT performance of one of the graphic layers is lower, the weight value of the one of the graphic layers is higher.

2. The method for merging graphic layers as claimed in claim 1 , wherein the step of assigning the sequence numbers to the graphic layers according to the overlay order further comprises:

judging whether a current graphic layer overlays any other graphic layer;

assigning an initial sequence number to the current graphic layer when the current graphic layer does not overlay at least one graphic layer, wherein the initial sequence number is a minimum sequence number; and

assigning a first sequence number to the current graphic layer when the current graphic layer overlays the at least one graphic layer, wherein the first sequence number is a next sequence number after a maximum sequence number between sequence numbers of the at least one graphic layer overlaid by the current graphic layer.

3. The method for merging graphic layers as claimed in claim 2 , wherein the sequence numbers are assigned in ascending order.

4. The method for merging graphic layers as claimed in claim 2 , further comprising:

classifying the graphic layers into a plurality of groups corresponding to the sequence numbers; and

generating a group list corresponding to each group,

wherein graphic layers of each group list are ranged in the z-axis direction in ascending order.

5. The method for merging graphic layers as claimed in claim 4 , wherein the step of establishing the layer order according to the sequence numbers and the weight values further comprises:

reordering graphic layers in an initial group corresponding to the initial sequence number according to the weight values in descending order;

judging whether a weight value of a last graphic layer of a first group list in remaining groups is greater than a weight threshold;

reordering the graphic layers of the first group list according to the weight values in descending order when the weight value of the last graphic layer is greater than the weight threshold; and

reordering the graphic layers of the first group list according to the weight values in ascending order when the weight value of the last graphic layer is not greater than the weight threshold.

6. The method for merging graphic layers as claimed in claim 5 , before displaying the graphic layers, the method further comprising:

judging whether a layer number of the graphic layers is greater than a number of streams;

finding at least one pair of adjacent graphic layers according to the weight values and the layer order when the layer number of the graphic layers is greater than the number of streams; and

merging the pair of adjacent graphic layers.

7. A device for merging graphic layers, comprising:

a control circuit;

a processor installed in the control circuit; and

a memory installed in the control circuit and operatively coupled to the processor;

wherein the processor is configured to execute a program code stored in the memory to instruct a hardware composer to:

receive a plurality of graphic layers;

assign sequence numbers to the graphic layers according to an overlay order;

assign a weight value to each graphic layer according to a manner;

establish a layer order according to the sequence numbers and the weight values; and

display the graphic layers according to the layer order;

wherein the manner is a bit-block transfer (BLIT) performance; and

wherein when the BLIT performance of one of the graphic layers is lower, the weight value of the one of the graphic layers is higher.

8. The device for merging graphic layers as claimed in claim 7 , wherein the step that the hardware composer assigns the sequence numbers to the graphic layers according to the overlay order further comprises:

judging whether a current graphic layer overlays any other graphic layer;

assigning an initial sequence number to the current graphic layer when the current graphic layer does not overlay at least one graphic layer, wherein the initial sequence number is a minimum sequence number; and

assigning a first sequence number to the current graphic layer when the current graphic layer overlays the at least one graphic layer, wherein the first sequence number is a next sequence number after a maximum sequence number between sequence numbers of the at least one graphic layer overlaid by the current graphic layer.

9. The device for merging graphic layers as claimed in claim 8 , wherein the sequence numbers are assigned in ascending order.

10. The device for merging graphic layers as claimed in claim 8 , wherein the processor further executes the program code to instruct the hardware composer to:

classify the graphic layers into a plurality of groups corresponding to the sequence numbers; and

generate a group list corresponding to each group,

wherein graphic layers of each group list are ranged in the z-axis direction in ascending order.

11. The device for merging graphic layers as claimed in claim 10 , wherein the step that the hardware composer establishes the layer order according to the sequence numbers and the weight values further comprises:

reordering graphic layers in an initial group corresponding to the initial sequence number according to the weight values in descending order;

judging whether a weight value of a last graphic layer of a first group list in remaining groups is greater than a weight threshold;

reordering the graphic layers of the first group list according to the weight values in descending order when the weight value of the last graphic layer is greater than the weight threshold; and

reordering the graphic layers of the first group list according to the weight values in ascending order when the weight value of the last graphic layer is not greater than the weight threshold.

12. The device for merging graphic layers as claimed in claim 11 , before displaying the graphic layers, the processor further executes the program code to instruct the hardware composer to:

judge whether a layer number of the graphic layers is greater than a number of streams;

find at least one pair of adjacent graphic layers according to the weight values and the layer order when the layer number of the graphic layers is greater than the number of streams; and

merge the pair of adjacent graphic layers.

13. A method for displaying graphic layers, comprising:

receiving a plurality of graphic layers;

assigning sequence numbers to the graphic layers according to an overlay order;

assigning a weight value to each graphic layer according to a manner;

establishing a layer order according to the sequence numbers and the weight values; and

displaying the graphic layers according to the layer order;

wherein the manner is a bit-block transfer (BLIT) performance;

wherein when the BLIT performance of one of the graphic layers is lower, the weight value of the one of the graphic layers is higher; and

wherein the step of assigning the sequence numbers to the graphic layers according to the overlay order further comprises:

judging whether a current graphic layer overlays any other graphic layer;

assigning an initial sequence number to the current graphic layer when the current graphic layer does not overlay at least one graphic layer, wherein the initial sequence number is a minimum sequence number; and

assigning a first sequence number to the current graphic layer when the current graphic layer overlays the at least one graphic layer, wherein the first sequence number is a next sequence number after a maximum sequence number between sequence numbers of the at least one graphic layer overlaid by the current graphic layer.

14. The method for merging graphic layers as claimed in claim 13 , wherein the sequence numbers are assigned in ascending order.

15. The method for merging graphic layers as claimed in claim 13 , further comprising:

classifying the graphic layers into a plurality of groups corresponding to the sequence numbers; and

generating a group list corresponding to each group,

wherein graphic layers of each group list are ranged in the z-axis direction in ascending order.

16. The method for merging graphic layers as claimed in claim 15 , wherein the step of establishing the layer order according to the sequence numbers and the weight values further comprises:

reordering graphic layers in an initial group corresponding to the initial sequence number according to the weight values in descending order;

judging whether a weight value of a last graphic layer of a first group list in remaining groups is greater than a weight threshold;

reordering the graphic layers of the first group list according to the weight values in descending order when the weight value of the last graphic layer is greater than the weight threshold; and

reordering the graphic layers of the first group list according to the weight values in ascending order when the weight value of the last graphic layer is not greater than the weight threshold.

17. The method for merging graphic layers as claimed in claim 16 , before displaying the graphic layers, the method further comprising:

judging whether a layer number of the graphic layers is greater than a number of streams;

finding at least one pair of adjacent graphic layers according to the weight values and the layer order when the layer number of the graphic layers is greater than the number of streams; and

merging the pair of adjacent graphic layers.

18. A device for merging graphic layers, comprising:

a control circuit;

a processor installed in the control circuit; and

a memory installed in the control circuit and operatively coupled to the processor;

wherein the processor is configured to execute a program code stored in the memory to instruct a hardware composer to:

receive a plurality of graphic layers;

assign sequence numbers to the graphic layers according to an overlay order;

assign a weight value to each graphic layer according to a manner;

establish a layer order according to the sequence numbers and the weight values; and

display the graphic layers according to the layer order;

wherein the manner is a bit-block transfer (BLIT) performance;

wherein when the BLIT performance of one of the graphic layers is lower, the weight value of the one of the graphic layers is higher; and

wherein the step of the hardware composer assigning the sequence numbers to the graphic layers according to the overlay order further comprises:

judging whether a current graphic layer overlays any other graphic layer;

assigning an initial sequence number to the current graphic layer when the current graphic layer does not overlay at least one graphic layer, wherein the initial sequence number is a minimum sequence number; and

assigning a first sequence number to the current graphic layer when the current graphic layer overlays the at least one graphic layer, wherein the first sequence number is a next sequence number after a maximum sequence number between sequence numbers of the at least one graphic layer overlaid by the current graphic layer.

19. The device for merging graphic layers as claimed in claim 18 , wherein the sequence numbers are assigned in ascending order.

20. The device for merging graphic layers as claimed in claim 18 , wherein the processor further executes the program code to instruct the hardware composer to:

classify the graphic layers into a plurality of groups corresponding to the sequence numbers; and

generate a group list corresponding to each group,

wherein graphic layers of each group list are ranged in the z-axis direction in ascending order.

21. The device for merging graphic layers as claimed in claim 20 , wherein the step that the hardware composer establishes the layer order according to the sequence numbers and the weight values further comprises:

reordering graphic layers in an initial group corresponding to the initial sequence number according to the weight values in descending order;

judging whether a weight value of a last graphic layer of a first group list in remaining groups is greater than a weight threshold;

reordering the graphic layers of the first group list according to the weight values in descending order when the weight value of the last graphic layer is greater than the weight threshold; and

reordering the graphic layers of the first group list according to the weight values in ascending order when the weight value of the last graphic layer is not greater than the weight threshold.

22. The device for merging graphic layers as claimed in claim 21 , before displaying the graphic layers, the processor further executes the program code to instruct the hardware composer to:

judge whether a layer number of the graphic layers is greater than a number of streams;

find at least one pair of adjacent graphic layers according to the weight values and the layer order when the layer number of the graphic layers is greater than the number of streams; and

merge the pair of adjacent graphic layers.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 18, 2021
From: SHANGHAI ZHAOXIN SEMICONDUCTOR CO., LTD.
To: GLENFLY TECH CO., LTD.
Reel/Frame 058965/0042 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 20, 2016
From: WANG, YANJIE; WANG, QIAN; ZHU, CHENYANG
To: VIA ALLIANCE SEMICONDUCTOR CO., LTD.
Reel/Frame 038662/0115 →
Priority Claims (1)
CN 2015 1 0869053 · Dec 1, 2015 · national
Continuity (1)
Related Publication 20170154448A1 · Jun 1, 2017