CN111291293A - Page transition method and related equipment - Google Patents

Page transition method and related equipment Download PDF

Info

Publication number
CN111291293A
CN111291293A CN202010044320.2A CN202010044320A CN111291293A CN 111291293 A CN111291293 A CN 111291293A CN 202010044320 A CN202010044320 A CN 202010044320A CN 111291293 A CN111291293 A CN 111291293A
Authority
CN
China
Prior art keywords
layer
layer information
transition
information
pieces
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010044320.2A
Other languages
Chinese (zh)
Other versions
CN111291293B (en
Inventor
胡杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010044320.2A priority Critical patent/CN111291293B/en
Publication of CN111291293A publication Critical patent/CN111291293A/en
Application granted granted Critical
Publication of CN111291293B publication Critical patent/CN111291293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a page transition method and related equipment, which are applied to electronic equipment comprising a screen, common layer hardware, dim layer hardware and a layer mixer, wherein the method comprises the following steps: when a page switching instruction is received, determining P pieces of first layer information based on a currently displayed page of electronic equipment, determining Q pieces of second layer information based on a page to be displayed of the electronic equipment, and determining N pieces of third layer information based on the P pieces of first layer information and the Q pieces of second layer information; synthesizing through a layer mixer based on the P first layer information, the Q second layer information and the N third layer information to obtain N transition layers; and displaying the layers based on the N transition layer information through the screen. By adopting the method and the device, the fluency of page transition can be improved.

Description

Page transition method and related equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a page transition method and a related device.
Background
In the existing application operation process, when a user needs to switch to a new page or switch between different pages, a computer program immediately completes page switching, and the conversion between a currently displayed page and a page to be displayed lacks buffer, so that the front page and the back page are not consistent. How to realize smooth transition between two front and back pages and improve the fluency of page transition is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides a page transition method and related equipment, which are used for improving the fluency of page transition.
In a first aspect, an embodiment of the present application provides a page transition method, which is applied to an electronic device including a screen, a common layer hardware, a dim layer hardware, and a layer mixer, where the common layer hardware and the dim layer hardware are both connected to the layer mixer; the method comprises the following steps:
when a page switching instruction is received, determining P first layer information based on a currently displayed page of the electronic equipment, determining Q second layer information based on a page to be displayed of the electronic equipment, and determining N third layer information based on the P first layer information and the Q second layer information, wherein P, Q and N are positive integers;
synthesizing, by the layer mixer, N transition layers based on the P pieces of first layer information, the Q pieces of second layer information, and the N pieces of third layer information, where the P pieces of first layer information and the Q pieces of second layer information are transmitted by the common layer hardware, the N pieces of third layer information are transmitted by the dim layer hardware, and the N transition layers correspond to the N pieces of third layer information one to one;
and displaying the transition layers based on the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer, and the N transition layer information is in one-to-one correspondence with the N transition layers.
In a second aspect, an embodiment of the present application provides a page transition device, which is applied to an electronic device including a screen, a common layer hardware, a dark layer hardware, and a layer mixer, where the common layer hardware and the dark layer hardware are both connected to the layer mixer; the device comprises:
the image layer determining unit is used for determining P pieces of first image layer information based on a currently displayed page of the electronic equipment, Q pieces of second image layer information based on a page to be displayed of the electronic equipment and N pieces of third image layer information based on the P pieces of first image layer information and the Q pieces of second image layer information when a page switching instruction is received, wherein P, Q and N are positive integers;
a layer synthesizing unit, configured to synthesize, by the layer mixer, N transition layers based on the P pieces of first layer information, the Q pieces of second layer information, and the N pieces of third layer information, where the P pieces of first layer information and the Q pieces of second layer information are transmitted by the common layer hardware, the N pieces of third layer information are transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N pieces of third layer information;
and the layer display unit is used for performing layer display on the basis of the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer, and the N transition layer information is in one-to-one correspondence with the N transition layers.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in the method according to the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the method according to the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, when a page switching instruction is received, an electronic device, first, determines P pieces of first layer information based on a page currently displayed by the electronic device, determines Q pieces of second layer information based on a page to be displayed by the electronic device, and determines N pieces of third layer information based on the P pieces of first layer information and the Q pieces of second layer information; secondly, synthesizing to obtain N transition layers based on the P first layer information, the Q second layer information, and the N third layer information by the layer mixer, where the P first layer information and the Q second layer information are transmitted by the common layer hardware, and the N third layer information is transmitted by the dim layer hardware; finally, layer display is carried out through the screen based on the N transition layer information, and the N transition layer information is transmitted by the layer mixer; because N transition layers are obtained by the layer mixer through synthesis based on the P first layer information, the Q second layer information and the N third layer information, the electronic equipment has a buffer page in the process of switching the currently displayed page to the page to be displayed, smooth switching between the front page and the back page is realized, and the smoothness of page transition is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 1B is a schematic structural diagram of layer display according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a page transition method according to an embodiment of the present application;
fig. 2B is a schematic structural diagram of a transition layer according to an embodiment of the present disclosure;
fig. 2C is a schematic structural diagram of another transition layer provided in the embodiment of the present application;
fig. 3 is a schematic flowchart of a page transition method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a page transition device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
Electronic devices may include various handheld devices, vehicle mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so forth.
As shown in fig. 1A, fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device includes a screen, an Application Processor (AP) and a Bus (Bus), the AP being connected to the Bus, the AP including a Distributed Processing Unit (DPU). The DPU includes a plurality of layer hardware, a layer mixer (layer mix), Display post processing (DSPP), and a Display Serial Interface (DSI). The plurality of layer hardware comprise at least one dim layer hardware and at least one common layer hardware, each layer hardware is connected with a layer mixer, and the layer mixer, the DSPP, the DSI and the screen are sequentially connected.
The function of the ordinary layer hardware is to transmit layer information of the layer associated with the ordinary layer hardware.
Wherein, the role of the dim layer hardware is to create a layer and modify the layer parameters of its associated layer.
As shown in fig. 1B, fig. 1B is a schematic structural diagram of layer display provided in an embodiment of the present application. The picture displayed on the screen seen by human eyes is obtained by superposing a plurality of layers. The plurality of layers may include a dim layer (dimlayer) and at least one normal layer. Wherein, at least one common map layer can be a status bar map layer, a launcher map layer, a wallpaper map layer, a navigation bar map layer, etc.
The following describes embodiments of the present application in detail.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a page transition method provided in an embodiment of the present application, and the page transition method is applied to the electronic device, and the page transition method includes:
step 201: when a page switching instruction is received, the AP determines P pieces of first layer information based on a currently displayed page of the electronic equipment, determines Q pieces of second layer information based on a page to be displayed of the electronic equipment, and determines N pieces of third layer information based on the P pieces of first layer information and the Q pieces of second layer information, wherein P, Q and N are positive integers.
Step 202: the AP obtains N transition layers through the layer mixer based on the P first layer information, the Q second layer information and the N third layer information in a synthesis mode, wherein the P first layer information and the Q second layer information are transmitted by common layer hardware, the N third layer information is transmitted by dim layer hardware, and the N transition layers correspond to the N third layer information in a one-to-one mode.
Step 203: and the AP displays the layers based on the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer, and the N transition layer information is in one-to-one correspondence with the N transition layers.
The page switching instruction may be a sliding operation for the currently displayed page, such as sliding left, sliding right, sliding up, sliding down, and the like; the click operation may be performed on a certain display area on the currently displayed page, for example, the display area including function keys such as "back" and "skip", which are not limited herein.
The layer information includes image data and/or layer parameters. The image data may be acquired by hardware of the electronic device, for example, the hardware may be an image sensor, a camera module, or the like. Or image data determined by the electronic device according to the application, for example, a certain display page set in the application. The layer parameters comprise at least one of the following: size, transparency, RGB value, rotation angle rotation, size of vertical arrangement z-order, start coordinates of input image, size of input image, start coordinates of output image, size of output image, and the like. The layer information includes the first layer information, the second layer information, and the third layer information.
Wherein, the RGB values are used to represent the colors of the image, the size and shape of the layer are determined by the layer hardware, and the size of the layer may be, for example, a rectangle of 3cm × 3cm, a rectangle of 3cm × 4cm, a circle with a radius of 3cm, a circle with a radius of 5cm, and so on; the shape of the layer hardware is circular, and then the shape of the layer is circular; and if the shape of the layer hardware is rectangular, the shape of the layer is circular.
The P pieces of first layer information may be determined by one piece of ordinary layer hardware, or may be determined by P pieces of ordinary layer hardware, and each piece of ordinary layer hardware determines one piece of first layer information; the Q second layer information may be determined by one piece of ordinary layer hardware, or may be determined by Q pieces of ordinary layer hardware, and each piece of ordinary layer hardware determines one piece of second layer information; the N third image-layer information may be determined by one piece of dim image-layer hardware, or may be determined by P pieces of dim image-layer hardware, and each piece of dim image-layer hardware determines one piece of third image-layer information, which is not limited herein.
Each transition layer may be synthesized based on at least one first layer information, and/or at least one second layer information, and/or at least one third layer information, for example, the transition layer i may be synthesized based on at least one first layer information, or synthesized based on at least one second layer information, or synthesized based on at least one third layer information, or synthesized based on at least one first layer and at least one second layer information, or synthesized based on at least one first layer and at least one third layer information, or synthesized based on at least one second layer and at least one third layer information, or synthesized based on at least one first layer, at least one second layer, and at least one third layer information, and is not limited herein.
The information processing and transmission flow may be: the electronic equipment acquires a currently displayed page and a page to be displayed, and sends the currently displayed page and the page to be displayed to a common layer through a bus; the common layer hardware determines P first layer information based on a currently displayed page, determines Q second layer information based on a page to be displayed, and the dim layer hardware determines N third layer information based on the P first layer information and the Q second layer information; the common layer hardware sends P pieces of first layer information and Q pieces of second layer information to the layer mixer, and the dim layer hardware sends N pieces of third layer information to the layer mixer; the layer mixer is used for synthesizing to obtain N transition layers based on the P first layer information, the Q second layer information and the N third layer information, and sending the N transition layer information of the N transition layers to a screen through DSPP and DSI; and the screen displays the layers based on the N transition layer information.
It can be seen that, in the embodiment of the present application, when a page switching instruction is received, an electronic device, first, determines P pieces of first layer information based on a page currently displayed by the electronic device, determines Q pieces of second layer information based on a page to be displayed by the electronic device, and determines N pieces of third layer information based on the P pieces of first layer information and the Q pieces of second layer information; secondly, synthesizing to obtain N transition layers based on the P first layer information, the Q second layer information, and the N third layer information by the layer mixer, where the P first layer information and the Q second layer information are transmitted by the common layer hardware, and the N third layer information is transmitted by the dim layer hardware; finally, layer display is carried out through the screen based on the N transition layer information, and the N transition layer information is transmitted by the layer mixer; because N transition layers are obtained by the layer mixer through synthesis based on the P first layer information, the Q second layer information and the N third layer information, the electronic equipment has a buffer page in the process of switching the currently displayed page to the page to be displayed, smooth switching between the front page and the back page is realized, and the smoothness of page transition is improved.
In an implementation manner of the present application, the determining P pieces of first layer information based on a currently displayed page of the electronic device, and determining Q pieces of second layer information based on a to-be-displayed page of the electronic device include:
the AP modifies the layer parameters of a fourth layer associated with the currently displayed page of the electronic equipment, and creates P first layers based on the modified layer parameters of the fourth layer to obtain P first layer information;
the AP modifies the layer parameters of a fifth layer associated with the page to be displayed of the electronic device, and creates Q second layers based on the modified layer parameters of the fifth layer to obtain Q second layer information.
Wherein, the overlay hardware comprises at least one register, and the at least one register comprises at least one of the following: a size register, a shape register, a transparency register and an RGB register; the specific method for the AP to modify the layer parameters of the fourth layer associated with the currently displayed page of the electronic device is as follows: and the AP determines fourth layer hardware corresponding to a fourth layer associated with the currently displayed page of the electronic device, and modifies the value of the at least one register included in the fourth layer hardware through the fourth layer hardware, wherein the fourth layer hardware is the common layer hardware. For example, assuming that the layer parameters of the modified fourth layer include transparency and RGB values, the AP modifies the value of the transparency register and modifies the value of the RGB register through normal layer hardware.
It should be noted that the specific method for the AP to modify the layer parameter of the fifth layer associated with the page to be displayed by the electronic device is the same as the specific method for the AP to modify the layer parameter of the fourth layer associated with the page currently displayed by the electronic device, and details are not repeated herein; the layer parameter of the first layer, the layer parameter of the second layer, the layer parameter of the third layer, the layer parameter of the fourth layer, the layer parameter of the fifth layer, and the layer parameter of the transition layer all include at least one of the following: size, transparency, RGB value, rotation angle rotation, size of vertical arrangement z-order, start coordinates of input image, size of input image, start coordinates of output image, size of output image, and the like.
In an implementation manner of the present application, the P first layers have different transparencies, and the Q second layers have different transparencies.
For example, P and Q are 5, the transparency of P first image layers is 10%, 20%, 30%, 40%, 50%, respectively, and the transparency of Q second image layers is 10%, 20%, 30%, 40%, 50%, respectively.
It can be seen that, in the embodiment of the present application, since the ordinary layer hardware can directly modify the layer parameters of the layer and directly create the layer, the power consumption of the electronic device can be reduced.
In an implementation manner of the present application, a sum of P and Q is N, and determining N third layer information based on the P first layer information and the Q second layer information includes:
the AP determines layer parameters of P third layers based on the P first layer information, and creates the P third layers based on the layer parameters of the P third layers;
the AP determines layer parameters of Q third layers based on the Q second layer information, and creates the Q third layers based on the layer parameters of the Q third layers;
and the AP determines N third image layers based on the P third image layers and the Q third image layers to obtain N third image layer information.
In an implementation manner of the present application, the layer parameters of the third layer include transparency, and a sum of the transparency of each third layer and the transparency of each corresponding first layer is 1; or the sum of the transparency of each third layer and the transparency of each corresponding second layer is 1.
For example, the transparency of the P first image layers is 10%, 20%, 30%, 40%, and 50%, respectively, and the transparency of the P third image layers is 90%, 80%, 70%, 60%, and 50%, respectively; the transparency of the Q second image layers is 10%, 20%, 30%, 40% and 50%, respectively, and then the transparency of the Q second image layers is 90%, 80%, 70%, 60% and 50%, respectively.
In an implementation manner of the present application, R ═ a × R of RGB values of the transition layer1+(1-a)R0G ═ a × G of RGB values of the transition layer1+(1-a)G0B ═ a × B of RGB values of the transition layer1+(1-a)B0The transparency of the first layer corresponding to the transition layer is a, and the RGB value of the first layer corresponding to the transition layer is R1G1B1The RGB value of the third layer corresponding to the transition layer is R0G0B0
In an implementation manner of the present application, R ═ b × R of RGB values of the transition layer2+(1-b)R0G ═ b × G of RGB values of the transition layer2+(1-b)G0B ═ B × B of RGB values of the transition layer2+(1-b)B0The transparency of the second layer corresponding to the transition layer is b, and the RGB value of the second layer corresponding to the transition layer is R2G2B2The RGB value of the third layer corresponding to the transition layer is R0G0B0
As shown in fig. 2B, fig. 2B is a schematic structural diagram of a transition layer according to an embodiment of the present application, where a first layer is a, a second layer is B, and a third layer is C, and each transition layer is composed of a first layer and a third layer, or each transition layer is composed of a second layer and a third layer.
It can be seen that, in the embodiment of the present application, P transition layers are synthesized based on P first layer information and P third layer information corresponding to the P first layer information, Q transition layers are synthesized based on Q second layer information and Q third layer information corresponding to the Q second layer information, and the obtained P + Q transition layers are used for transitioning from a currently displayed page to a page to be displayed, so that smooth transition between a front page and a rear page is realized, and smoothness of page transition is improved.
In an implementation manner of the present application, the determining P, Q, and N are equal, and the determining N third image-layer information based on the P first image-layer information and the Q second image-layer information includes:
the AP determines layer parameters of N third layers based on the N first layer information and the N second layer information;
and the AP creates N third image layers based on the image layer parameters of the N third image layers to obtain N third image layer information.
In an implementation manner of the present application, the layer parameters of the third layer include transparency, and a sum of the transparency of each third layer and the transparency of each corresponding first layer and the transparency of each corresponding second layer is 1.
For example, the transparency of the N first image layers is 10%, 20%, 30%, 40%, and 50%, the transparency of the N second image layers is 70%, 60%, 50%, 40%, and 30%, and the transparency of the N third image layers is 20%, and 20%, respectively.
In an implementation manner of the present application, R ═ a × R of RGB values of the transition layer1+b×R2+(1-a-b)R0G ═ a × G of RGB values of the transition layer1+b×G2+(1-a-b)G0B ═ a × B of RGB values of the transition layer1+b×B2+(1-a-b)B0The transparency of the first layer corresponding to the transition layer is a, the transparency of the second layer corresponding to the transition layer is b, and the RGB value of the first layer corresponding to the transition layer is R1G1B1The RGB value of the second layer corresponding to the transition layer is R2G2B2The RGB value of the third layer corresponding to the transition layer is R0G0B0
As shown in fig. 2C, fig. 2C is a schematic structural diagram of another transition layer provided in an embodiment of the present application, where a first layer is a, a second layer is B, and a third layer is C, and each transition layer is composed of a first layer, a second layer, and a third layer.
It can be seen that, in the embodiment of the present application, N transition layers are synthesized based on P pieces of first layer information, Q pieces of second layer information, and N pieces of third layer information corresponding thereto, and the obtained N transition layers are used for transitioning from a currently displayed page to a page to be displayed, so that smooth transition between a front page and a rear page is realized, and smoothness of page transition is improved.
In an implementation manner of the present application, before determining P first layer information based on a currently displayed page of the electronic device and determining Q second layer information based on a page to be displayed of the electronic device, the method further includes:
determining a display frame rate currently supported by the electronic equipment by the AP;
determining the N based on the display frame rate;
determining the P and the Q based on the N.
For example, if the display frame rate currently supported by the electronic device is 60fps, determining N to be a multiple of 60; for example, if N is 60, then P may be determined to be 30, or N may be determined to be 60.
It can be seen that, in the embodiment of the present application, the number of transition layers to be synthesized is determined based on the display frame rate, so that layer transition is performed by maximally using the display frame rate currently supported by the electronic device, and the smoothness of layer transition is improved.
In an implementation manner of the present application, the displaying the transition layer based on the N transition layer information on the screen includes:
the AP performs frame interpolation or frame dropping on the N transition layers based on the display frame rate currently supported by the electronic equipment to obtain M transition layers, wherein M is a positive integer;
the AP compresses the M transition layers based on the transmission rate between the layer mixer and the screen;
and the AP displays the layers based on the compressed M transition layer information through the screen.
It can be seen that, in the embodiment of the present application, before layer display is performed, the smoothness can be improved by increasing or decreasing the number of transition layers based on the display frame rate; meanwhile, before the layer display is carried out, the transition layer is compressed based on the transmission rate between the layer mixer and the screen, and the transmission speed of the transition layer can be improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a page transition method provided in an embodiment of the present application, and the page transition method is applied to the electronic device, and the page transition method includes:
step 301: when a page switching instruction is received, the AP modifies the layer parameters of a fourth layer associated with a page currently displayed by the electronic equipment, and creates P first layers based on the modified layer parameters of the fourth layer to obtain P first layer information; the AP modifies the layer parameters of a fifth layer associated with the page to be displayed of the electronic device, and creates Q second layers based on the modified layer parameters of the fifth layer to obtain Q second layer information, wherein P and Q are positive integers.
Step 302: if the sum of the P and the Q is equal to N, the AP determines layer parameters of P third layers based on the P first layer information, and creates the P third layers based on the layer parameters of the P third layers; the AP determines layer parameters of Q third layers based on the Q second layer information, and creates the Q third layers based on the layer parameters of the Q third layers, wherein the layer parameters of the third layers comprise transparency, and the sum of the transparency of each third layer and the transparency of each corresponding first layer is 1; or the sum of the transparency of each third layer and the transparency of each corresponding second layer is 1, and N is a positive integer.
Step 303: the AP determines N third layers based on the P third layers and the Q third layers to obtain N third layer information, and then executes step 306.
Step 304: if the P, the Q and the N are equal, the AP determines layer parameters of N third layers based on the N first layer information and the N second layer information.
Step 305: the AP creates N third layers based on layer parameters of the N third layers to obtain N third layer information, wherein the layer parameters of the third layers comprise transparency, and the sum of the transparency of each third layer and the transparency of each corresponding first layer and the transparency of each corresponding second layer is 1.
Step 306: the AP obtains N transition layers through the layer mixer based on the P first layer information, the Q second layer information and the N third layer information in a synthesis mode, wherein the P first layer information and the Q second layer information are transmitted by common layer hardware, the N third layer information is transmitted by dim layer hardware, and the N transition layers correspond to the N third layer information in a one-to-one mode.
Step 307: and the AP displays the layers based on the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer, and the N transition layer information is in one-to-one correspondence with the N transition layers.
It should be noted that steps 302 to 303 and steps 304 to 305 are two different implementations, and in the alternative, the specific implementation process of this embodiment may refer to the specific implementation process described in the above method embodiment, and will not be described in detail herein.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another electronic device provided in the embodiment of the present application, where the electronic device includes a screen, normal layer hardware, dim layer hardware, and a layer mixer, and both the normal layer hardware and the dim layer hardware are connected to the layer mixer; the electronic device further includes a processor including an AP, a memory, a communication interface, and one or more programs stored in the memory and configured for execution by the processor, the programs including instructions for:
when a page switching instruction is received, determining P first layer information based on a currently displayed page of the electronic equipment, determining Q second layer information based on a page to be displayed of the electronic equipment, and determining N third layer information based on the P first layer information and the Q second layer information, wherein P, Q and N are positive integers;
synthesizing, by the layer mixer, N transition layers based on the P pieces of first layer information, the Q pieces of second layer information, and the N pieces of third layer information, where the P pieces of first layer information and the Q pieces of second layer information are transmitted by the common layer hardware, the N pieces of third layer information are transmitted by the dim layer hardware, and the N transition layers correspond to the N pieces of third layer information one to one;
and displaying the transition layers based on the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer, and the N transition layer information is in one-to-one correspondence with the N transition layers.
In an implementation manner of the present application, in terms of determining P first layer information based on a currently displayed page of the electronic device and determining Q second layer information based on a page to be displayed by the electronic device, the program includes instructions specifically configured to perform the following steps:
modifying layer parameters of a fourth layer associated with a currently displayed page of the electronic device, and creating P first layers based on the modified layer parameters of the fourth layer to obtain P first layer information; modifying layer parameters of a fifth layer associated with the page to be displayed by the electronic device, and creating Q second layers based on the modified layer parameters of the fifth layer to obtain Q second layer information.
In an implementation manner of the present application, a sum of P and Q is N, and in determining N third image-layer information based on the P first image-layer information and the Q second image-layer information, the program includes instructions specifically configured to perform the following steps:
determining layer parameters of P third layers based on the P first layer information, and creating P third layers based on the layer parameters of the P third layers; determining layer parameters of Q third layers based on the Q second layer information, and creating the Q third layers based on the layer parameters of the Q third layers;
and determining N third image layers based on the P third image layers and the Q third image layers to obtain N third image layer information.
In an implementation manner of the present application, the layer parameters of the third layer include transparency, and a sum of the transparency of each third layer and the transparency of each corresponding first layer is 1; or the sum of the transparency of each third layer and the transparency of each corresponding second layer is 1.
In an implementation manner of the present application, where P, Q, and N are equal, in determining N third image-layer information based on the P first image-layer information and the Q second image-layer information, the program includes instructions specifically configured to perform the following steps:
determining layer parameters of N third layers based on the N first layer information and the N second layer information;
and creating N third image layers based on the image layer parameters of the N third image layers to obtain N third image layer information.
In an implementation manner of the present application, the layer parameters of the third layer include transparency, and a sum of the transparency of each third layer and the transparency of each corresponding first layer and the transparency of each corresponding second layer is 1.
In an implementation manner of the present application, R ═ a × R of RGB values of the transition layer1+b×R2+(1-a-b)R0G ═ a × G of RGB values of the transition layer1+b×G2+(1-a-b)G0B ═ a × B of RGB values of the transition layer1+b×B2+(1-a-b)B0The transparency of the first layer corresponding to the transition layer is a, and the transparency of the second layer corresponding to the transition layer is aThe transparency of the transition layer is b, and the RGB value of the first layer corresponding to the transition layer is R1G1B1The RGB value of the second layer corresponding to the transition layer is R2G2B2The RGB value of the third layer corresponding to the transition layer is R0G0B0
It should be noted that, for the specific implementation process of this embodiment, reference may be made to the specific implementation process described in the above method embodiment, and details are not described here.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present application, which is used to execute the method implemented by the embodiment of the method of the present application. Referring to fig. 5, fig. 5 is a schematic structural diagram of a page transition device according to an embodiment of the present application, and is applied to an electronic device including a screen, a normal layer hardware, a dark layer hardware, and a layer mixer, where the normal layer hardware and the dark layer hardware are both connected to the layer mixer; the device comprises:
the layer determining unit 501 is configured to, when a page switching instruction is received, determine P pieces of first layer information based on a page currently displayed by the electronic device, determine Q pieces of second layer information based on a page to be displayed by the electronic device, and determine N pieces of third layer information based on the P pieces of first layer information and the Q pieces of second layer information, where P, Q, and N are positive integers;
a layer synthesizing unit 502, configured to synthesize, by the layer mixer, N transition layers based on the P pieces of first layer information, the Q pieces of second layer information, and the N pieces of third layer information, where the P pieces of first layer information and the Q pieces of second layer information are transmitted by the normal layer hardware, the N pieces of third layer information are transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N pieces of third layer information;
a layer display unit 503, configured to perform layer display based on the N pieces of transition layer information through the screen, where the N pieces of transition layer information are transmitted by the layer mixer, and the N pieces of transition layer information are in one-to-one correspondence with the N transition layers.
In an implementation manner of the present application, in determining P first layer information based on a currently displayed page of the electronic device, and in determining Q second layer information based on a page to be displayed of the electronic device, the layer determining unit 501 is specifically configured to:
modifying layer parameters of a fourth layer associated with a currently displayed page of the electronic device, and creating P first layers based on the modified layer parameters of the fourth layer to obtain P first layer information; modifying layer parameters of a fifth layer associated with the page to be displayed by the electronic device, and creating Q second layers based on the modified layer parameters of the fifth layer to obtain Q second layer information.
In an implementation manner of the present application, a sum of P and Q is N, and in determining N third layer information based on the P first layer information and the Q second layer information, the layer determining unit 501 is specifically configured to:
determining layer parameters of P third layers based on the P first layer information, and creating P third layers based on the layer parameters of the P third layers; determining layer parameters of Q third layers based on the Q second layer information, and creating the Q third layers based on the layer parameters of the Q third layers;
and determining N third image layers based on the P third image layers and the Q third image layers to obtain N third image layer information.
In an implementation manner of the present application, the layer parameters of the third layer include transparency, and a sum of the transparency of each third layer and the transparency of each corresponding first layer is 1; or the sum of the transparency of each third layer and the transparency of each corresponding second layer is 1.
In an implementation manner of the present application, P, Q, and N are equal, and in terms of determining N third layer information based on the P first layer information and the Q second layer information, the layer determining unit 501 is specifically configured to:
determining layer parameters of N third layers based on the N first layer information and the N second layer information;
and creating N third image layers based on the image layer parameters of the N third image layers to obtain N third image layer information.
In an implementation manner of the present application, the layer parameters of the third layer include transparency, and a sum of the transparency of each third layer and the transparency of each corresponding first layer and the transparency of each corresponding second layer is 1.
In an implementation manner of the present application, R ═ a × R of RGB values of the transition layer1+b×R2+(1-a-b)R0G ═ a × G of RGB values of the transition layer1+b×G2+(1-a-b)G0B ═ a × B of RGB values of the transition layer1+b×B2+(1-a-b)B0The transparency of the first layer corresponding to the transition layer is a, the transparency of the second layer corresponding to the transition layer is b, and the RGB value of the first layer corresponding to the transition layer is R1G1B1The RGB value of the second layer corresponding to the transition layer is R2G2B2The RGB value of the third layer corresponding to the transition layer is R0G0B0
It should be noted that the layer determining unit 501, the layer synthesizing unit 502, and the layer displaying unit 503 may be implemented by a processor.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A page transition method is characterized in that the method is applied to electronic equipment comprising a screen, common layer hardware, dim layer hardware and a layer mixer, wherein the common layer hardware and the dim layer hardware are both connected with the layer mixer; the method comprises the following steps:
when a page switching instruction is received, determining P first layer information based on a currently displayed page of the electronic equipment, determining Q second layer information based on a page to be displayed of the electronic equipment, and determining N third layer information based on the P first layer information and the Q second layer information, wherein P, Q and N are positive integers;
synthesizing, by the layer mixer, N transition layers based on the P pieces of first layer information, the Q pieces of second layer information, and the N pieces of third layer information, where the P pieces of first layer information and the Q pieces of second layer information are transmitted by the common layer hardware, the N pieces of third layer information are transmitted by the dim layer hardware, and the N transition layers correspond to the N pieces of third layer information one to one;
and displaying the transition layers based on the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer, and the N transition layer information is in one-to-one correspondence with the N transition layers.
2. The method according to claim 1, wherein the determining P first layer information based on the page currently displayed by the electronic device, and determining Q second layer information based on the page to be displayed by the electronic device, includes:
modifying layer parameters of a fourth layer associated with a currently displayed page of the electronic device, and creating P first layers based on the modified layer parameters of the fourth layer to obtain P first layer information; modifying layer parameters of a fifth layer associated with the page to be displayed by the electronic device, and creating Q second layers based on the modified layer parameters of the fifth layer to obtain Q second layer information.
3. The method according to claim 1 or 2, wherein a sum of P and Q is N, and the determining N third layer information based on the P first layer information and the Q second layer information includes:
determining layer parameters of P third layers based on the P first layer information, and creating P third layers based on the layer parameters of the P third layers; determining layer parameters of Q third layers based on the Q second layer information, and creating the Q third layers based on the layer parameters of the Q third layers;
and determining N third image layers based on the P third image layers and the Q third image layers to obtain N third image layer information.
4. The method according to claim 3, wherein the layer parameters of the third layers include transparency, and a sum of the transparency of each third layer and the transparency of each corresponding first layer is 1; or the sum of the transparency of each third layer and the transparency of each corresponding second layer is 1.
5. The method according to claim 1 or 2, wherein P, Q, and N are equal, and the determining N third layer information based on the P first layer information and the Q second layer information includes:
determining layer parameters of N third layers based on the N first layer information and the N second layer information;
and creating N third image layers based on the image layer parameters of the N third image layers to obtain N third image layer information.
6. The method according to claim 5, wherein the layer parameters of the third layers include transparency, and a sum of the transparency of each third layer and the transparency of each corresponding first layer and the transparency of each corresponding second layer is 1.
7. Method according to claim 6, characterized in that R-a x R of the RGB values of the transition layer1+b×R2+(1-a-b)R0G ═ a × G of RGB values of the transition layer1+b×G2+(1-a-b)G0B ═ a × B of RGB values of the transition layer1+b×B2+(1-a-b)B0The transparency of the first layer corresponding to the transition layer is a, the transparency of the second layer corresponding to the transition layer is b, and the RGB value of the first layer corresponding to the transition layer is R1G1B1The RGB value of the second layer corresponding to the transition layer is R2G2B2The RGB value of the third layer corresponding to the transition layer is R0G0B0
8. A page transition device is characterized by being applied to electronic equipment comprising a screen, common layer hardware, dim layer hardware and a layer mixer, wherein the common layer hardware and the dim layer hardware are both connected with the layer mixer; the device comprises:
the image layer determining unit is used for determining P pieces of first image layer information based on a currently displayed page of the electronic equipment, Q pieces of second image layer information based on a page to be displayed of the electronic equipment and N pieces of third image layer information based on the P pieces of first image layer information and the Q pieces of second image layer information when a page switching instruction is received, wherein P, Q and N are positive integers;
a layer synthesizing unit, configured to synthesize, by the layer mixer, N transition layers based on the P pieces of first layer information, the Q pieces of second layer information, and the N pieces of third layer information, where the P pieces of first layer information and the Q pieces of second layer information are transmitted by the common layer hardware, the N pieces of third layer information are transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N pieces of third layer information;
and the layer display unit is used for performing layer display on the basis of the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer, and the N transition layer information is in one-to-one correspondence with the N transition layers.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1-7.
CN202010044320.2A 2020-01-15 2020-01-15 Page transition method and related equipment Active CN111291293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010044320.2A CN111291293B (en) 2020-01-15 2020-01-15 Page transition method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010044320.2A CN111291293B (en) 2020-01-15 2020-01-15 Page transition method and related equipment

Publications (2)

Publication Number Publication Date
CN111291293A true CN111291293A (en) 2020-06-16
CN111291293B CN111291293B (en) 2023-09-12

Family

ID=71018073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010044320.2A Active CN111291293B (en) 2020-01-15 2020-01-15 Page transition method and related equipment

Country Status (1)

Country Link
CN (1) CN111291293B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010249A (en) * 2021-03-17 2021-06-22 北京字跳网络技术有限公司 Page switching method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107331222A (en) * 2016-04-29 2017-11-07 北京学而思教育科技有限公司 A kind of image processing method and device
CN110032308A (en) * 2019-03-15 2019-07-19 努比亚技术有限公司 A kind of page display method, terminal and computer readable storage medium
CN110070842A (en) * 2019-04-02 2019-07-30 Oppo广东移动通信有限公司 Display brightness method of adjustment and relevant device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107331222A (en) * 2016-04-29 2017-11-07 北京学而思教育科技有限公司 A kind of image processing method and device
CN110032308A (en) * 2019-03-15 2019-07-19 努比亚技术有限公司 A kind of page display method, terminal and computer readable storage medium
CN110070842A (en) * 2019-04-02 2019-07-30 Oppo广东移动通信有限公司 Display brightness method of adjustment and relevant device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010249A (en) * 2021-03-17 2021-06-22 北京字跳网络技术有限公司 Page switching method, device, equipment and medium
CN113010249B (en) * 2021-03-17 2023-12-19 北京字跳网络技术有限公司 Page switching method, device, equipment and medium

Also Published As

Publication number Publication date
CN111291293B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
CN110070842B (en) Display brightness adjusting method and related equipment
JP2022524889A (en) Image rendering methods, equipment, equipment and computer programs
CN113225427B (en) Image display method and terminal equipment
CN111274618B (en) Display control method and related product
WO2012068242A1 (en) System and method for on-the-fly key color generation
CN103309616A (en) Soft keyboard display method and terminal
CN111064863B (en) Image data processing method and related device
CN101523481A (en) Image processing apparatus for superimposing windows displaying video data having different frame rates
US11699221B2 (en) Image processing apparatus, storage medium and image processing method
CN111291293A (en) Page transition method and related equipment
CN102474579B (en) Video terminal and method for forming display images
CN111597001A (en) Application program display control method, device, medium and equipment
WO2023125217A1 (en) Image processing circuit and method, and electronic device
CN114697555B (en) Image processing method, device, equipment and storage medium
CN111785229B (en) Display method, device and system
CN111325702B (en) Image fusion method and device
CN114578898A (en) Display method, electronic device and readable storage medium
CN111273881B (en) Display control method and related product
CN111158844B (en) Schedule display method and related equipment
CN112162719A (en) Display content rendering method and device, computer readable medium and electronic equipment
WO2015117345A1 (en) Method and device for displaying background
CN111683077A (en) Virtual reality equipment and data processing method
JP2004252102A (en) Image display device, image display method and image display program
CN111522520B (en) Method, device, equipment and storage medium for processing software imitation paper
CN110992869B (en) Layer display method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant