CN111291293B - Page transition method and related equipment - Google Patents

Page transition method and related equipment Download PDF

Info

Publication number
CN111291293B
CN111291293B CN202010044320.2A CN202010044320A CN111291293B CN 111291293 B CN111291293 B CN 111291293B CN 202010044320 A CN202010044320 A CN 202010044320A CN 111291293 B CN111291293 B CN 111291293B
Authority
CN
China
Prior art keywords
layer
layer information
transition
information
layers
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.)
Active
Application number
CN202010044320.2A
Other languages
Chinese (zh)
Other versions
CN111291293A (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

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 by the use of more than one image, e.g. averaging, 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

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, P pieces of first layer information are determined based on a page currently displayed by the electronic equipment, Q pieces of second layer information are determined based on a page to be displayed by the electronic equipment, and N pieces of third layer information are determined based on the P pieces of first layer information and the Q pieces of second layer information; synthesizing N transition layers based on the P first layer information, the Q second layer information and the N third layer information through a layer mixer; and displaying the layers based on the N transition layer information through the screen. By adopting the embodiment of the application, the smoothness 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 related devices.
Background
In the existing application operation process, when a user needs to switch to a new page or switch between different pages, the computer program immediately completes the page switching, and the conversion of the currently displayed page and the page to be displayed lacks buffering, so that the front page and the back page are disconnected. How to realize smooth transition between the front page and the back page and improve the smoothness of page transition are technical problems 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 smoothness 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, common layer hardware, 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, P pieces of first layer information are determined based on a page currently displayed by the electronic equipment, Q pieces of second layer information are determined based on a page to be displayed by the electronic equipment, N pieces of third layer information are determined based on the P pieces of first layer information and the Q pieces of second layer information, and P, Q and N are positive integers;
synthesizing N transition layers based on the P first layer information, the Q second layer information and the N third layer information through the layer mixer, wherein the P first layer information and the Q second layer information are transmitted by the common layer hardware, the N third layer information is transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N third layer information;
And displaying 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 corresponds to the N transition layers one by one.
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, common layer hardware, dim layer hardware, and layer mixer, where the common layer hardware and the dim layer hardware are both connected with the layer mixer; the device comprises:
the layer determining unit is used for determining P pieces of first layer information based on a page currently displayed by the electronic equipment when a page switching instruction is received, Q pieces of second layer information based on a page to be displayed by the electronic equipment, and 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;
a layer synthesis unit, configured to synthesize, by using the layer mixer, N transition layers based on the P first layer information, the Q second layer information, and the N third layer information, where the P first layer information and the Q second layer information are transmitted by the normal layer hardware, the N third layer information is transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N third layer information;
And the layer display unit is used for displaying 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 corresponds to the N transition layers one by one.
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 programs include instructions for performing steps in the method according to the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of 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 causes a computer to perform some or all of the steps described in the method according to the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the embodiments 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 N transition layers based on the P first layer information, the Q second layer information and the N third layer information through the layer mixer, wherein the P first layer information and the Q second layer information are transmitted by the common layer hardware, and the N third layer information are transmitted by the dim layer hardware; finally, carrying out layer display based on the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer; because the layer mixer synthesizes N transition layers based on the P first layer information, the Q second layer information and the N third layer information, the buffer pages exist in the process of switching the currently displayed page to the page to be displayed by the electronic device, smooth switching between the front page and the back page is realized, and page transition smoothness is improved.
These and other aspects of the application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 1B is a schematic diagram of a layer display according to an embodiment of the present application;
FIG. 2A is a schematic flow chart 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 application;
FIG. 2C is a schematic diagram of another transition layer according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a page transition method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device according to 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 that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
The following will describe in detail.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may 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 may be included in at least one embodiment of the application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In the following, some terms used in the present application are explained for easy understanding by those skilled in the art.
The electronic device may include various handheld devices, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), mobile Station (MS), terminal devices (terminal devices), etc.
As shown in fig. 1A, fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a screen, an application processor (Application Processor, AP) and a Bus (Bus), the AP being connected to the Bus, the AP comprising a decentralized processing unit (Distributed Processing Unit, DPU). The DPU includes a plurality of layer hardware, a layer mix (layer mix), a display post-processing (Display post processing, DSPP), and a display serial interface (display serial interface, DSI). The plurality of layer hardware comprises 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.
Wherein the common layer hardware is used for transmitting the layer information of the associated layer.
Wherein the purpose of the dimmed layer hardware is to create layers and modify the layer parameters of their associated layers.
As shown in fig. 1B, fig. 1B is a schematic structural diagram of a layer display according to an embodiment of the present application. The screen displayed by the human eye is obtained by superposing a plurality of layers. The plurality of layers may include a dim layer (dim layer) and at least one normal layer. The at least one common layer may have a status bar layer, a counter layer, a wall layer, a navigation bar layer, and the like.
Embodiments of the present application are described in detail below.
Referring to fig. 2A, fig. 2A is a schematic flow chart of a page transition method according to an embodiment of the present application, which is applied to the electronic device, and the page transition method includes:
step 201: when a page switching instruction is received, an AP determines P pieces of first layer information based on a page currently displayed by the electronic equipment, determines Q pieces of second layer information based on a page to be displayed by 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: and the AP synthesizes N transition layers based on the P first layer information, the Q second layer information and the N third layer information through the layer mixer, wherein the P first layer information and the Q second layer information are transmitted by the common layer hardware, the N third layer information is transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N third layer information.
Step 203: and the AP performs layer display 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 corresponds to the N transition layers one by one.
The page switching instruction may be a sliding operation for a currently displayed page, such as left sliding, right sliding, up sliding, down sliding, or the like; the clicking operation may be performed on a certain display area on the currently displayed page, for example, a display area including a function key such as "return" and "skip", and the like, and is not limited thereto.
Wherein the layer information comprises 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, an image capturing module, or the like. Or the image data determined by the electronic device according to the application, for example, a certain display page set in the application. The layer parameters include at least one of: size, transparency, RGB values, rotation angle rotation, vertically aligned size z-order, start coordinates of an input image, size of an input image, start coordinates of an output image, size of an 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 layers are determined by the layer hardware, and the size of the layers can be, for example, a 3cm by 3cm rectangle, a 3cm by 4cm rectangle, a circle with a radius of 3cm, a circle with a radius of 5cm, etc.; the shape of the layer hardware is circular, and the shape of the layer is circular; the shape of the layer hardware is rectangular, and the shape of the layer is circular.
The P first layer information may be determined by one common layer hardware, or may be determined by P common layer hardware, where each common layer hardware determines one first layer information; q pieces of second layer information can be determined by common layer hardware or by Q pieces of common layer hardware, and each piece of common layer hardware determines one piece of second layer information; the N third layer information may be determined by one dim layer hardware or P dim layer hardware, and each dim layer hardware determines one third 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, may be synthesized based on at least one second layer information, may be synthesized based on at least one third layer information, may be synthesized based on at least one first layer and at least one second layer information, may be synthesized based on at least one first layer and at least one third layer information, may be synthesized based on at least one second layer and at least one third layer information, may be synthesized based on at least one first layer, at least one second layer and at least one third layer information, and may be synthesized based on at least one first layer, at least one second layer and at least one third layer information.
The information processing and transmitting flow may be: the method comprises the steps that an electronic device obtains a current displayed page and a page to be displayed, and sends the current displayed page and the page to be displayed to a common layer through a bus; the common layer hardware determines P pieces of first layer information based on a currently displayed page, determines Q pieces of second layer information based on a page to be displayed, and the dim layer hardware determines N pieces of third layer information based on the P pieces of first layer information and the Q pieces of 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 synthesizes N transition layers based on the P first layer information, the Q second layer information and the N third layer information, and sends the N transition layer information of the N transition layers to a screen through DSPP and DSI; the screen performs layer display 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 N transition layers based on the P first layer information, the Q second layer information and the N third layer information through the layer mixer, wherein the P first layer information and the Q second layer information are transmitted by the common layer hardware, and the N third layer information are transmitted by the dim layer hardware; finally, carrying out layer display based on the N transition layer information through the screen, wherein the N transition layer information is transmitted by the layer mixer; because the layer mixer synthesizes N transition layers based on the P first layer information, the Q second layer information and the N third layer information, the buffer pages exist in the process of switching the currently displayed page to the page to be displayed by the electronic device, smooth switching between the front page and the back page is realized, and page transition smoothness is improved.
In an implementation manner of the present application, the determining P pieces of first layer information based on the page currently displayed by the electronic device, and determining Q pieces of second layer information based on the page to be displayed by the electronic device, includes:
the AP modifies the layer parameters of a fourth layer associated with the 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;
and the AP modifies the layer parameters of a fifth layer associated with the page to be displayed by the electronic equipment, and creates Q second layers based on the modified layer parameters of the fifth layer to obtain Q second layer information.
Wherein the layer hardware includes at least one register, the at least one register including at least one of: size registers, shape registers, transparency registers, and RGB registers; the specific method for modifying the layer parameters of the fourth layer associated with the page currently displayed by the electronic device by the AP is as follows: and the AP determines fourth layer hardware corresponding to a fourth layer associated with the page currently displayed by 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 modified layer parameters of the fourth layer include transparency and RGB values, the AP modifies the values of the transparency registers and modifies the values of the RGB registers through the normal layer hardware.
It should be noted that, the specific method of modifying, by the AP, 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 of modifying, by the AP, the layer parameter of the fourth layer associated with the page currently displayed by the electronic device, and will not be described in detail herein; the layer parameters of the first layer, the layer parameters of the second layer, the layer parameters of the third layer, the layer parameters of the fourth layer, the layer parameters of the fifth layer and the layer parameters of the transition layer all comprise at least one of the following: size, transparency, RGB values, rotation angle rotation, vertically aligned size z-order, start coordinates of an input image, size of an input image, start coordinates of an output image, size of an output image, and the like.
In an implementation manner of the present application, the transparency of the P first layers is different from each other, and the transparency of the Q second layers is different from each other.
For example, P and Q are 5, the transparency of the P first layers is 10%, 20%, 30%, 40%, 50%, respectively, and the transparency of the Q second layers is 10%, 20%, 30%, 40%, 50%, respectively.
It can be seen that, in the embodiment of the present application, since the common 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, the sum of P and Q is the 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 layers based on the P third layers and the Q third layers to obtain N third layer information.
In an implementation manner of the present application, the layer parameters of the third layers include transparency, and a sum of the transparency of each third layer and the transparency of each first layer corresponding to the third 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 layers is 10%, 20%, 30%, 40%, 50%, respectively, and the transparency of the P third layers is 90%, 80%, 70%, 60%, 50%, respectively; the transparency of the Q second layers is 10%, 20%, 30%, 40%, 50%, respectively, and then the transparency of the Q second layers is 90%, 80%, 70%, 60%, 50%, respectively.
In an implementation of the present application, r=a×r of RGB values of the transition layer 1 +(1-a)R 0 G=a×g of RGB values of the transition layer 1 +(1-a)G 0 B=a×b of RGB values of the transition layer 1 +(1-a)B 0 The 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 R 1 G 1 B 1 The RGB value of the third layer corresponding to the transition layer is R 0 G 0 B 0
In an implementation of the present application, r=b×r of RGB values of the transition layer 2 +(1-b)R 0 G=b×g of RGB values of the transition layer 2 +(1-b)G 0 RGB values of the transition layerB=b×b of (B) 2 +(1-b)B 0 Wherein the 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 R 2 G 2 B 2 The RGB value of the third layer corresponding to the transition layer is R 0 G 0 B 0
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 the first layer is a, the second layer is B, and the 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 pieces of first layer information and P pieces of third layer information corresponding to the P pieces of first layer information, and Q transition layers are synthesized based on Q pieces of second layer information and Q pieces of third layer information corresponding to the Q pieces of 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 back page is realized, and smoothness of page transition is improved.
In an implementation manner of the present application, the P, the Q, and the N are equal, and the 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 N third layers based on the N first layer information and the N second layer information;
and the AP creates N third layers based on the layer parameters of the N third layers to obtain N third layer information.
In an implementation manner of the present application, the layer parameters of the third layers include transparency, and a sum of the transparency of each third layer and the transparency of each first layer corresponding to the third layer and the transparency of each second layer corresponding to the third layer is 1.
For example, the transparency of the N first layers is 10%, 20%, 30%, 40%, 50%, the transparency of the N second layers is 70%, 60%, 50%, 40%, 30%, and the transparency of the N third layers is 20%, respectively.
In an implementation of the present application, r=a×r of RGB values of the transition layer 1 +b×R 2 +(1-a-b)R 0 G=a×g of RGB values of the transition layer 1 +b×G 2 +(1-a-b)G 0 B=a×b of RGB values of the transition layer 1 +b×B 2 +(1-a-b)B 0 The 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 R 1 G 1 B 1 The RGB value of the second layer corresponding to the transition layer is R 2 G 2 B 2 The RGB value of the third layer corresponding to the transition layer is R 0 G 0 B 0
As shown in fig. 2C, fig. 2C is a schematic structural diagram of another transition layer according to an embodiment of the present application, where the first layer is a, the second layer is B, and the 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 to the P pieces of first layer information, 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 the front page and the back page is realized, and smoothness of page transition is improved.
In an implementation manner of the present application, before determining P pieces of first layer information based on the page currently displayed by the electronic device and Q pieces of second layer information based on the page to be displayed by the electronic device, the method further includes:
The AP determines the display frame rate currently supported by the electronic equipment;
determining the N based on the display frame rate;
the P and the Q are determined based on the N.
For example, if the display frame rate currently supported by the electronic device is 60fps, determining that N is a multiple of 60; for example, n=60, then p=q=30 may be determined, or n=p=60 may be determined.
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 the layer transition is performed by maximally utilizing the display frame rate currently supported by the electronic device, and the smoothness of the layer transition is improved.
In an implementation manner of the present application, the displaying, by the screen, a layer based on the N pieces of transition layer information includes:
the AP carries out frame inserting 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 performs layer display based on the compressed M transition layer information through the screen.
It can be seen that, in the embodiment of the present application, before displaying the layers, the fluency 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, so that the transmission speed of the transition layer can be improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a page transition method according to an embodiment of the present application, which is applied to the electronic device, and the page transition method includes:
step 301: when a page switching instruction is received, an AP modifies a layer parameter of a fourth layer associated with a page currently displayed by the electronic equipment, and creates P first layers based on the modified layer parameter of the fourth layer to obtain P first layer information; the AP modifies layer parameters of a fifth layer associated with a page to be displayed by the electronic equipment, 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 first layer corresponding to the third 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, obtains N third layer information, and then performs step 306.
Step 304: and 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, the transparency of each first layer corresponding to the third layer and the transparency of each second layer corresponding to the third layer is 1.
Step 306: and the AP synthesizes N transition layers based on the P first layer information, the Q second layer information and the N third layer information through the layer mixer, wherein the P first layer information and the Q second layer information are transmitted by the common layer hardware, the N third layer information is transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N third layer information.
Step 307: and the AP performs layer display 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 corresponds to the N transition layers one by one.
It should be noted that, the steps 302-303 and 304-305 are two different implementations, alternatively, the specific implementation of this embodiment may be referred to the specific implementation of the method embodiment described in the foregoing, and will not be described in detail herein.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another electronic device according to the embodiment of the present application, where the electronic device includes a screen, common layer hardware, dark layer hardware and a layer mixer, and the common layer hardware and the dark 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 to be executed by the processor, the programs including instructions for:
when a page switching instruction is received, P pieces of first layer information are determined based on a page currently displayed by the electronic equipment, Q pieces of second layer information are determined based on a page to be displayed by the electronic equipment, N pieces of third layer information are determined based on the P pieces of first layer information and the Q pieces of second layer information, and P, Q and N are positive integers;
Synthesizing N transition layers based on the P first layer information, the Q second layer information and the N third layer information through the layer mixer, wherein the P first layer information and the Q second layer information are transmitted by the common layer hardware, the N third layer information is transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N third layer information;
and displaying 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 corresponds to the N transition layers one by one.
In one implementation of the present application, in determining P pieces of first layer information based on a page currently displayed by the electronic device and Q pieces of second layer information based on a page to be displayed by the electronic device, the program includes instructions specifically for executing the following steps:
modifying layer parameters of a fourth layer associated with a page currently displayed by 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 a 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, the sum of P and Q is the N, and the program includes instructions specifically configured to perform the following steps in determining N third layer information based on the P first layer information and the Q second layer information:
determining layer parameters of P third layers based on the P first layer information, and creating the 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 layers based on the P third layers and the Q third layers to obtain N third layer information.
In an implementation manner of the present application, the layer parameters of the third layers include transparency, and a sum of the transparency of each third layer and the transparency of each first layer corresponding to the third 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, the P, the Q, and the N are equal, and the program includes instructions specifically configured to perform the following steps in determining N third layer information based on the P first layer information and the Q second layer information:
Determining layer parameters of N third layers based on the N first layer information and the N second layer information;
and creating N third layers based on the layer parameters of the N third layers to obtain N third layer information.
In an implementation manner of the present application, the layer parameters of the third layers include transparency, and a sum of the transparency of each third layer and the transparency of each first layer corresponding to the third layer and the transparency of each second layer corresponding to the third layer is 1.
In an implementation of the present application, r=a×r of RGB values of the transition layer 1 +b×R 2 +(1-a-b)R 0 G=a×g of RGB values of the transition layer 1 +b×G 2 +(1-a-b)G 0 B=a×b of RGB values of the transition layer 1 +b×B 2 +(1-a-b)B 0 The 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 R 1 G 1 B 1 The RGB value of the second layer corresponding to the transition layer is R 2 G 2 B 2 The RGB value of the third layer corresponding to the transition layer is R 0 G 0 B 0
It should be noted that, the specific implementation process of this embodiment may refer to the specific implementation process described in the foregoing method embodiment, which is not described in detail herein.
According to the embodiment of the application, the electronic equipment can be divided into the functional units according to the method examples, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated into one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
The following is an embodiment of the apparatus according to the present application, which is configured to perform a method implemented by an embodiment of the method according to 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, which is applied to an electronic device including a screen, common layer hardware, dim layer hardware and a layer mixer, wherein the common layer hardware and the dim layer hardware are connected with the layer mixer; the device comprises:
a layer determining unit 501, configured to determine, when a page switching instruction is received, P pieces of first layer information based on a page currently displayed by the electronic device, Q pieces of second layer information based on a page to be displayed by the electronic device, and 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 all positive integers;
A layer synthesis unit 502, configured to synthesize, by using the layer mixer, N transition layers based on the P first layer information, the Q second layer information, and the N third layer information, where the P first layer information and the Q second layer information are transmitted by the normal layer hardware, the N third layer information is transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N third layer information;
and 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 pieces of transition layer.
In an implementation manner of the present application, in determining P pieces of first layer information based on a page currently displayed by the electronic device and Q pieces of second layer information based on a page to be displayed by the electronic device, the layer determining unit 501 is specifically configured to:
modifying layer parameters of a fourth layer associated with a page currently displayed by 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 a 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, the sum of P and Q is the N, and 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 the 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 layers based on the P third layers and the Q third layers to obtain N third layer information.
In an implementation manner of the present application, the layer parameters of the third layers include transparency, and a sum of the transparency of each third layer and the transparency of each first layer corresponding to the third 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, the P, the Q, and the N are equal, and in determining N pieces of third layer information based on the P pieces of first layer information and the Q pieces of 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 layers based on the layer parameters of the N third layers to obtain N third layer information.
In an implementation manner of the present application, the layer parameters of the third layers include transparency, and a sum of the transparency of each third layer and the transparency of each first layer corresponding to the third layer and the transparency of each second layer corresponding to the third layer is 1.
In an implementation of the present application, r=a×r of RGB values of the transition layer 1 +b×R 2 +(1-a-b)R 0 G=a×g of RGB values of the transition layer 1 +b×G 2 +(1-a-b)G 0 B=a×b of RGB values of the transition layer 1 +b×B 2 +(1-a-b)B 0 The 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 R 1 G 1 B 1 The RGB value of the second layer corresponding to the transition layer is R 2 G 2 B 2 The RGB value of the third layer corresponding to the transition layer is R 0 G 0 B 0
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.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of 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 part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The page transition method 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 connected with the layer mixer; the method comprises the following steps:
When a page switching instruction is received, P pieces of first layer information are determined based on a page currently displayed by the electronic equipment, Q pieces of second layer information are determined based on a page to be displayed by the electronic equipment, N pieces of third layer information are determined based on the P pieces of first layer information and the Q pieces of second layer information, and P, Q and N are positive integers;
synthesizing N transition layers based on the P first layer information, the Q second layer information and the N third layer information through the layer mixer, wherein the P first layer information and the Q second layer information are transmitted by the common layer hardware, the N third layer information is transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N third layer information;
performing layer display 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 corresponds to the N transition layers one by one;
the method further comprises the steps of:
Determining a display frame rate currently supported by the electronic device;
determining the N based on the display frame rate;
the P and the Q are determined based on the N.
2. The method of claim 1, wherein the determining P first layer information based on the page currently displayed by the electronic device and Q second layer information based on the page to be displayed by the electronic device comprises:
modifying layer parameters of a fourth layer associated with a page currently displayed by 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 a 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 the sum of P and Q is the N, and the determining N third layer information based on the P first layer information and the Q second layer information comprises:
determining layer parameters of P third layers based on the P first layer information, and creating the 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 layers based on the P third layers and the Q third layers to obtain N third layer information.
4. A method according to claim 3, wherein the layer parameters of the third layers comprise transparency, the sum of the transparency of each third layer and the transparency of each first layer corresponding thereto being 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 the P, the Q, the N are equal, the determining N third layer information based on the P first layer information and the Q second layer information comprises:
determining layer parameters of N third layers based on the N first layer information and the N second layer information;
and creating N third layers based on the layer parameters of the N third layers to obtain N third layer information.
6. The method of claim 5, wherein the layer parameters of the third layers include transparency, and wherein the sum of the transparency of each third layer and the transparency of each first layer and the transparency of each second layer is 1.
7. The method of claim 6, wherein R = a x R of RGB values of the transition layer 1 +b×R 2 +(1-a-b)R 0 G=a×g of RGB values of the transition layer 1 +b×G 2 +(1-a-b)G 0 B=a×b of RGB values of the transition layer 1 +b×B 2 +(1-a-b)B 0 The 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 R 1 G 1 B 1 The RGB value of the second layer corresponding to the transition layer is R 2 G 2 B 2 The RGB value of the third layer corresponding to the transition layer is R 0 G 0 B 0
8. The 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 connected with the layer mixer; the device comprises:
the layer determining unit is used for determining P pieces of first layer information based on a page currently displayed by the electronic equipment when a page switching instruction is received, Q pieces of second layer information based on a page to be displayed by the electronic equipment, and 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;
A layer synthesis unit, configured to synthesize, by using the layer mixer, N transition layers based on the P first layer information, the Q second layer information, and the N third layer information, where the P first layer information and the Q second layer information are transmitted by the normal layer hardware, the N third layer information is transmitted by the dim layer hardware, and the N transition layers are in one-to-one correspondence with the N third layer information;
the layer display unit is used for displaying layers based on the N transition layer information through the screen, the N transition layer information is transmitted by the layer mixer, and the N transition layer information corresponds to the N transition layers one by one;
the determining unit is used for determining the display frame rate currently supported by the electronic equipment before determining P pieces of first layer information based on the page currently displayed by the electronic equipment and Q pieces of second layer information based on the page to be displayed by the electronic equipment; determining the N based on the display frame rate; the P and the Q are determined based on the N.
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 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 CN111291293A (en) 2020-06-16
CN111291293B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010249B (en) * 2021-03-17 2023-12-19 北京字跳网络技术有限公司 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

Also Published As

Publication number Publication date
CN111291293A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN110070842B (en) Display brightness adjusting method and related equipment
CN106708452B (en) Information sharing method and terminal
CN113225427B (en) Image display method and terminal equipment
CN111064863B (en) Image data processing method and related device
CN110070496A (en) Generation method, device and the hardware device of image special effect
CN103309616A (en) Soft keyboard display method and terminal
CN107509051A (en) Long-range control method, device, terminal and computer-readable recording medium
CN103970501A (en) Image display method and terminal
CN111813490A (en) Method and device for processing interpolation frame
CN111291293B (en) Page transition method and related equipment
CN113778589A (en) Screen adaptation method, server, intelligent terminal, electronic device and storage medium
CN110286977A (en) Display methods and Related product
CN103971659A (en) Double-mode display electronic equipment and method
CN112148167A (en) Control setting method and device and electronic equipment
CN110708426A (en) Double-screen synchronous display method and device, server and storage medium
CN102474579B (en) Video terminal and method for forming display images
CN109144443A (en) Electronic equipment multi-display method, electronic equipment and computer readable storage medium
CN104915168A (en) Information processing method and electronic device
CN112565883A (en) Video rendering processing system and computer equipment for virtual reality scene
CN108174009B (en) Business card sharing method based on double screens, mobile terminal and device
CN111325702B (en) Image fusion method and device
CN111158844B (en) Schedule display method and related equipment
CN114578898A (en) Display method, electronic device and readable storage medium
CN114339072A (en) Image processing circuit, method and electronic device
CN113099300A (en) Program playing method and device, display terminal and storage medium

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