CN112860252A - Interface drawing method and related product - Google Patents

Interface drawing method and related product Download PDF

Info

Publication number
CN112860252A
CN112860252A CN201911182992.3A CN201911182992A CN112860252A CN 112860252 A CN112860252 A CN 112860252A CN 201911182992 A CN201911182992 A CN 201911182992A CN 112860252 A CN112860252 A CN 112860252A
Authority
CN
China
Prior art keywords
interface
data
service
buffer data
queue
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.)
Withdrawn
Application number
CN201911182992.3A
Other languages
Chinese (zh)
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 CN201911182992.3A priority Critical patent/CN112860252A/en
Publication of CN112860252A publication Critical patent/CN112860252A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The application provides an interface drawing method and a related product, which are applied to electronic equipment, wherein the method comprises the following steps: calling data of an interface in the input buffer queue as first interface buffer data through the interface optimization service; processing the first interface buffer data to obtain second interface buffer data; storing the second interface buffer data in the output buffer area queue; calling the second interface buffer data in the output buffer area queue through the display composition service; interface drawing is carried out on the display screen according to the second interface buffer data, some interface optimization technologies can be rapidly added on the remote basis, and compared with a graphical display frame system of a native android system, the method is lower in coupling, and later maintenance and rapid upgrading are facilitated.

Description

Interface drawing method and related product
Technical Field
The application relates to the technical field of computer application, in particular to an interface drawing method and a related product.
Background
With the rapid development of the internet industry, the functions of the application programs are more and more, so that the requirements of users on User Interfaces (UI) of the application programs are gradually increased, and therefore, electronic equipment manufacturers can add some characteristic functions meeting the requirements of the users in the interface drawing process.
Disclosure of Invention
The embodiment of the application provides an interface drawing method and a related product, and specific functions can be added during interface drawing.
In a first aspect, an embodiment of the present application provides an interface drawing method, which is applied to an electronic device, where the electronic device includes an interface producer service, an interface optimization service, an input buffer queue, an output buffer queue, and a display composition service, the interface producer service is communicatively connected to the input buffer queue, the input buffer queue is communicatively connected to the interface optimization service, the interface optimization service is communicatively connected to the output buffer queue, and the output buffer queue is communicatively connected to the display composition service; the method comprises the following steps:
calling data of an interface in the input buffer queue as first interface buffer data through the interface optimization service;
processing the first interface buffer data to obtain second interface buffer data;
storing the second interface buffer data in the output buffer area queue;
calling the second interface buffer data in the output buffer area queue through the display composition service;
and drawing an interface on a display screen according to the second interface buffer data.
In a second aspect, an embodiment of the present application provides an interface drawing apparatus applied to an electronic device, where the electronic device includes an interface producer service, an interface optimization service, an input buffer queue, an output buffer queue, and a display composition service, the interface producer service is communicatively connected to the input buffer queue, the input buffer queue is communicatively connected to the interface optimization service, the interface optimization service is communicatively connected to the output buffer queue, the output buffer queue is communicatively connected to the display composition service, the apparatus includes a processing unit and a communication unit, where,
the processing unit is used for calling the data of the interface in the input buffer queue as first interface buffer data through the interface optimization service; the interface buffer data processing unit is used for processing the first interface buffer data to obtain second interface buffer data; and for storing said second interface buffer data in said output buffer queue; the second interface buffer data in the output buffer area queue is called by the display composition service; and the interface drawing module is used for drawing an interface on a display screen according to the second interface buffer data.
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 any method of 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 part or all of the steps described in any one of the methods of the first aspect of the present application.
It can be seen that, in the embodiment of the present application, first, data of an interface in the input buffer queue is called as first interface buffer data by the interface optimization service; secondly, processing the first interface buffer data to obtain second interface buffer data; then storing the second interface buffer data in the output buffer area queue; then, calling the second interface buffer data in the output buffer area queue through the display composition service; and finally, drawing an interface on a display screen according to the second interface buffer data. Therefore, by the technical framework provided by the embodiment of the application, some interface optimization technologies can be rapidly added on a remote basis, and compared with a graphical display framework system of a native android system, the method is lower in coupling, and is convenient for later maintenance and rapid upgrade.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of an interface drawing framework flow provided in an embodiment of the present application;
FIG. 2-1 is a schematic flow chart diagram illustrating a method for drawing an interface according to an embodiment of the present disclosure;
fig. 2-2 is an interface diagram of the electronic device after image quality enhancement according to the embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating another interface rendering method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a block diagram illustrating functional units of an interface drawing apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, 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 a part of the embodiments of the present application, and not all of the 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 terms "first," "second," and the like in the description and claims of the present application and in the above-described 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.
The electronic device according to the embodiments of the present application may be an electronic device with communication capability, and the electronic device may include various handheld devices with wireless communication function, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and so on.
At present, in a traditional framework process for drawing an android system interface, an interface generated by an interface producer is processed and then directly stored in a queue for displaying a composition service, the process is complex and high in coupling, the whole display module can be influenced by slightly modifying the interface, and the increase of specific functions on the original basis is not facilitated.
In view of the above-mentioned problems, embodiments of the present application provide an interface drawing method and related products, which are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a schematic diagram of an interface rendering framework process provided in an embodiment of the present application, which may be applied to an electronic device, and the framework process includes an interface generator, an Input Buffer Queue, an Output Buffer Queue, and a display composite Surface flow service, where the interface generator is communicatively connected to the Input Buffer Queue, and is used to store interface data generated according to the interface generator in the Input Buffer Queue, the Input Buffer Queue is communicatively connected to the interface optimization service, and is used for the interface optimization service to take out data from the Input Buffer Queue for optimization processing, and the interface optimization service is communicatively connected to the Output Buffer Queue, and is used to store the Output Buffer Queue in the Output Buffer Queue after the interface optimization processing, and is connected to the Output Buffer Queue, the method is used for the Surface Flinger to take out the optimized data from the Output Buffer Queue so as to carry out interface drawing subsequently.
Referring to fig. 2-1, fig. 2-1 is a schematic flow chart diagram of an interface drawing method according to an embodiment of the present application, where the interface drawing method is applied to the electronic device shown in fig. 1, and as shown in the figure, the interface drawing method includes the following steps.
S201, calling the data of the interface in the input buffer queue as first interface buffer data through the interface optimization service.
Interface data generated by the IGraphICBuffer Producer service is firstly stored in the Input Buffer Queue, and the interface data comprises but is not limited to first interface Buffer data, and when the interface optimization service is needed, the interface optimization service calls relevant interface Buffer data from the Input Buffer Queue.
S202, processing the first interface buffer data to obtain second interface buffer data.
After the interface optimization service calls the relevant interface Buffer data from the Input Buffer Queue, the interface Buffer data is processed to a certain extent, so that the processed image can realize a specific function.
S203, storing the second interface buffer data in the output buffer area queue.
The Output Buffer Queue is in communication connection with the interface optimization service, and after the interface optimization service performs certain processing on the first interface Buffer data, the second interface Buffer data formed after the processing is stored in the Output Buffer Queue.
S204, calling the second interface buffer data in the output buffer area queue through the display composition service.
The function of the Surface flunger service is to receive image data from multiple sources, combine the image data together and send the combined image data to the display device, and therefore the Surface flunger service calls second Buffer data processed by the interface optimization service from the Output Buffer Queue.
And S205, drawing an interface on the display screen according to the second interface buffer data.
It can be seen that, in the embodiment of the present application, first, data of an interface in the input buffer queue is called as first interface buffer data by the interface optimization service; secondly, processing the first interface buffer data to obtain second interface buffer data; then storing the second interface buffer data in the output buffer area queue; then, calling the second interface buffer data in the output buffer area queue through the display composition service; and finally, drawing an interface on a display screen according to the second interface buffer data. Therefore, by the technical framework provided by the embodiment of the application, some image quality optimization technologies can be rapidly added on a remote basis, and compared with a graphical display framework system of a native android system, the method is lower in coupling, and is convenient for later maintenance and rapid upgrade.
In a possible example, the processing the first interface buffer data to obtain second interface buffer data includes: and performing image quality enhancement processing on the first interface buffer data according to an image quality enhancement algorithm in the interface optimization service to obtain second interface buffer data.
The interface optimization service comprises an image quality enhancement algorithm, the image quality enhancement algorithm comprises methods for adjusting the contrast and hue saturation of the interface color, and the definition of the interface image quality can be enhanced and more interface details can be embodied through the processing of the image quality enhancement algorithm. That is, the interface optimization service calls out the first interface buffer data stored in the input buffer queue, and performs the image quality enhancement processing on the first interface buffer data through the image quality enhancement algorithm included in the interface optimization service to obtain the second interface buffer data.
In this example, the interface optimization service includes an image quality enhancement algorithm, and before the first interface buffer data produced according to the interface producer service is subjected to interface drawing, image quality enhancement processing is further performed on the first interface buffer data through the interface optimization service.
In one possible example, before the invoking, by the interface optimization service, the data of the interface in the input buffer queue as the first interface buffer data, the method further includes: judging whether the interface generated according to the interface producer service needs image quality enhancement processing or not; and if so, storing the data of the interface in an input buffer queue.
The requirements of interfaces produced by the IGraphICBuffer Producer service in different application scenes are different, so that before the first interface Buffer data are processed according to the interface optimization service, the scenes in which the produced interfaces are used can be judged in advance, and the interfaces need to be subjected to interface optimization processing, and after the judgment is finished, if the interfaces need to be subjected to image quality enhancement processing, the first interface Buffer data corresponding to the interfaces are stored in an Input Buffer Queue so as to be processed by the interface optimization service subsequently.
The image quality enhancement algorithm is run on a specific Digital Signal Processor (DSP). A DSP is a unique microprocessor, a device that processes large amounts of information with digital signals. Its working principle is that it receives analog signal, converts it into digital signal of 0 or 1, then makes modification, deletion and reinforcement to digital signal, and in other system chips the digital data can be interpreted into analog data or actual environment format, so that it possesses strong data processing capacity and high operation speed. Of course, the image quality enhancement algorithm may be operated on a Graphics Processing Unit (GPU) in addition to the DSP, so as to reduce the GPU load, thereby further improving the performance of the electronic device and reducing the current.
It can be seen that, in this example, before the first interface Buffer data is called according to the interface optimization service, the first interface Buffer data is determined, and if image quality enhancement processing needs to be performed on the first interface Buffer data, the first interface Buffer data is stored in the Input Buffer Queue, so that all interface Buffer data which need to be subjected to image quality enhancement processing are arranged in the Input Buffer Queue, the interface drawing efficiency can be improved, and the load on the GPU or the DSP is reduced.
In a possible example, the processing the first interface buffer data to obtain second interface buffer data includes: and carrying out local amplification processing on the first interface buffer data according to a local amplification algorithm in the interface optimization service to obtain second interface buffer data.
The interface optimization service comprises a local amplification algorithm, and after the first interface buffer data generated according to the IGraphicBuffer Producer service is processed through the local amplification algorithm, certain scenes or icons and the like in the interface are larger than those of the interface which is not optimized. That is to say, the interface optimization service will call out the first interface Buffer data stored in the Input Buffer Queue, and perform local amplification processing on the first interface Buffer data through a local amplification algorithm included in the interface optimization service to obtain the second interface Buffer data.
It can be seen that, in this example, the interface optimization service includes an image quality enhancement algorithm, and before interface rendering is performed on interface data produced according to the IGraphicBuffer Producer service, local amplification processing is performed on the first interface buffer data through the interface optimization service.
In one possible example, before the invoking, by the interface optimization service, the data of the interface in the input buffer queue as the first interface buffer data, the method further includes: judging whether the interface generated by the interface producer service needs to be locally amplified according to the user preference; and if so, storing the data of the interface in an input buffer queue.
The requirements of interfaces produced by the IGraphicBuffer Producer service in different application scenes are different, so that before local amplification processing is performed on the first interface Buffer data according to the interface optimization service, the operation habits or preferences of a user in a certain type of interfaces can be known through historical browsing records of the user or operation records of the user, whether local amplification processing is required on the interfaces produced by the current IGraphicBuffer Producer service is judged according to the information, and if so, data corresponding to the corresponding interfaces are stored in an Input Buffer Queue so that subsequent interface optimization service can process the interfaces.
It can be seen that, in this example, before the interface optimization service calls the first interface Buffer data, it is determined whether the first interface Buffer data needs to be locally amplified according to user preference, and if so, the first interface Buffer data is stored in the Input Buffer Queue, so that the interface drawing efficiency can be improved, and the load on the GPU or the DSP can be reduced.
In one possible example, the invoking, by the display composition service, the second interface buffer data in the output buffer queue includes: and the display composition service periodically calls the second interface buffer data from the output buffer area queue.
The Surface flunger service synthesizes image data with different sources, so that the Surface flunger service calls second interface Buffer data in the Output Buffer Queue at regular intervals and then draws an interface on a display screen.
Therefore, in this example, the Surface Flinger service periodically calls the image data to synthesize, so that the interface drawing can be performed orderly and efficiently, too large load cannot be caused to the GPU, and the interface drawing efficiency can be improved.
In one possible example, the first interface buffer data is interface data of a game scene.
When the interface drawing method is applied to drawing a game interface, before the interface of the drawn game interface is optimized through the interface optimization service, it may be determined in which scene of the game the currently drawn game interface is applied, and then it may be determined whether the interface optimization processing needs to be performed on the game interface or which interface optimization processing needs to be performed on the interface according to a specific game scene. For example, when some users are required to clearly recognize a screen in a game scene, image quality enhancement optimization needs to be performed on the interface, and if the users are required to operate the interface during hand trip, some specific icons can be enlarged according to the usual use preference of the users, so that the user can operate the interface, and therefore, the interface needs to be enlarged partially.
Therefore, in the example, the interface drawing method can be applied to drawing of the game interface, so that the interface can be quickly optimized according to a specific game scene, and the user requirements can be met to the greatest extent.
The following examples are given.
As shown in fig. 2-2, fig. 2-2 is an interface diagram of the electronic device after image quality enhancement provided in the embodiment of the present application, where the electronic device takes a mobile phone as an example, when an interface is drawn, if the Surface flag service directly calls interface data formed by production of the IGraphicBuffer Producer service and draws the interface with the interface data, as shown in an interface of the electronic device 210, if first interface Buffer data generated according to the IGraphicBuffer Producer service is stored in the Input Buffer Queue, then the interface optimization service calls data of the interface in the Input Buffer Queue as the first interface Buffer data, performs image quality enhancement processing according to an image quality enhancement algorithm in the interface optimization service, stores the obtained second Buffer data into the Output Buffer Queue, and finally the Surface flag service periodically calls second Buffer data in the Output Buffer Queue to perform image quality enhancement processing, because the drawing process of the interface data is increased, the interface that is ultimately displayed is the interface shown by electronic device 220. Interface optimization technologies such as image quality enhancement and the like can be added on a remote basis through the interface drawing frame process, and compared with the native android system interface drawing frame process, the interface drawing frame process is lower in coupling, so that whether interface optimization is carried out or not can be quickly realized, and convenience is brought to maintenance and function upgrading.
Referring to fig. 3, fig. 3 is a schematic flow chart of another interface drawing method provided in this embodiment, where the interface drawing method can be applied to the electronic device shown in fig. 1.
As shown in the figure, the interface drawing method comprises the following steps:
s301, calling the interface data in the input buffer queue as first interface buffer data through the interface optimization service;
s302, performing image quality enhancement processing on the first interface buffer data according to an image quality enhancement algorithm in the interface optimization service to obtain second interface buffer data;
s303, storing the second interface buffer data in the output buffer area queue;
s304, calling the second interface buffer data in the output buffer area queue through the display composition service;
and S305, drawing an interface on a display screen according to the second interface buffer data.
It can be seen that, in the embodiment of the present application, the first interface Buffer data generated by the IGraphicBuffer Producer service is stored in the Input Buffer Queue, then the interface optimization service calls the first interface Buffer data in the Input Buffer Queue, performs image quality enhancement processing on the first interface Buffer data to obtain second interface Buffer data, finally stores the second interface Buffer data in the Output Buffer Queue, and the Surface flunger service calls the second interface Buffer data to perform interface drawing. Therefore, through the technical framework provided by the embodiment of the application, some image quality optimization technologies can be rapidly added on a remote basis, and compared with a graphical display framework system of a native android system, the method is lower in coupling, and is convenient for later maintenance and rapid upgrade.
Consistent with the embodiments shown in fig. 2-1 and fig. 3, please refer to fig. 4, and fig. 4 is a schematic structural diagram of an electronic device 400 provided in an embodiment of the present application, and as shown in the figure, the electronic device 400 includes an application processor 410, a memory 420, a communication interface 430, and one or more programs 421, where the one or more programs 421 are stored in the memory 420 and configured to be executed by the application processor 410, and the one or more programs 421 include instructions for executing any step in the foregoing method embodiments.
In one possible example, the program 421 includes instructions for performing the following steps: calling data of an interface in the input buffer queue as first interface buffer data through the interface optimization service; processing the first interface buffer data to obtain second interface buffer data; storing the second interface buffer data in the output buffer area queue; calling the second interface buffer data in the output buffer area queue through the display composition service; and drawing an interface on a display screen according to the second interface buffer data.
In a possible example, in the aspect of processing the first interface buffer data to obtain second interface buffer data, the instructions in the program 421 are specifically configured to perform the following operations: and performing image quality enhancement processing on the first interface buffer data according to an image quality enhancement algorithm in the interface optimization service to obtain second interface buffer data.
In one possible example, before the data of the interface in the input buffer queue is called as the first interface buffer data by the interface optimization service, the instructions in the program 421 are specifically configured to perform the following operations: judging whether the interface generated according to the interface producer service needs image quality enhancement processing or not; and if so, storing the data of the interface in an input buffer queue.
In a possible example, in terms of processing the first interface buffer data to obtain second interface buffer data, the instructions in the program 421 are specifically configured to perform the following operations: and carrying out local amplification processing on the first interface buffer data according to a local amplification algorithm in the interface optimization service to obtain second interface buffer data.
In one possible example, before the data of the interface in the input buffer queue is called as the first interface buffer data by the interface optimization service, the instructions in the program 421 are specifically configured to perform the following operations: judging whether the interface generated by the interface producer service needs to be locally amplified according to the user preference; and if so, storing the data of the interface in an input buffer queue.
In one possible example, in terms of the invoking, by the display composition service, the second interface buffer data in the output buffer queue, the instructions in the program 421 are specifically configured to: and the display composition service periodically calls the second interface buffer data from the output buffer area queue.
In one possible example, the first interface buffer data is interface data of a game scene.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
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.
Fig. 5 is a block diagram illustrating functional units of an interface drawing apparatus 500 according to an embodiment of the present disclosure. The interface drawing device 500 is applied to electronic equipment, the electronic equipment comprises an interface producer service, an interface optimization service, an input buffer queue, an output buffer queue and a display composition service, the interface producer service is in communication connection with the input buffer queue, the input buffer queue is in communication connection with the interface optimization service, the interface optimization service is in communication connection with the output buffer queue, the output buffer queue is in communication connection with the display composition service, the device comprises a processing unit and a communication unit, wherein the processing unit is used for calling data of an interface in the input buffer queue as first interface buffer data through the interface optimization service; the interface buffer data processing unit is used for processing the first interface buffer data to obtain second interface buffer data; and for storing said second interface buffer data in said output buffer queue; the second interface buffer data in the output buffer area queue is called by the display composition service; and the interface drawing module is used for drawing an interface on a display screen according to the second interface buffer data.
In a possible example, in the aspect of processing the first interface buffer data to obtain the second interface buffer data, the processing unit 501 is specifically configured to perform, according to an image quality enhancement algorithm in the interface optimization service, image quality enhancement processing on the first interface buffer data to obtain the second interface buffer data.
In a possible example, before the data of the interface in the input buffer queue is called as first interface buffer data by the interface optimization service, the processing unit 501 is specifically configured to determine whether the interface generated according to the interface producer service needs image quality enhancement processing; and if so, storing the data of the interface in an input buffer queue.
In a possible example, in terms of processing the first interface buffer data to obtain second interface buffer data, the processing unit 501 is specifically configured to perform local amplification processing on the first interface buffer data according to a local amplification algorithm in the interface optimization service to obtain the second interface buffer data.
In a possible example, before the data of the interface in the input buffer queue is called as the first interface buffer data by the interface optimization service, the processing unit 501 is specifically configured to determine, according to a user preference, whether the interface generated by the interface producer service needs to be locally enlarged; and if so, storing the data of the interface in an input buffer queue.
In a possible example, in terms of the invoking, by the display composition service, the second interface buffer data in the output buffer queue, the processing unit 501 is specifically configured to: and the display composition service periodically calls the second interface buffer data from the output buffer area queue.
In one possible example, the first interface buffer data is interface data of a game scene.
The interface drawing apparatus 500 may further include a storage unit 503 for storing program codes and data of the electronic device. The processing unit 501 may be a processor, the communication unit 502 may be a touch display screen or a transceiver, and the storage unit 503 may be a memory.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, and is not described herein again.
Embodiments of the present application further provide a chip, where the chip includes a processor, configured to call and run a computer program from a memory, so that a device in which the chip is installed performs some or all of the steps described in the electronic device in the above method embodiments.
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. An interface drawing method is applied to electronic equipment, wherein the electronic equipment comprises an interface producer service, an interface optimization service, an input buffer queue, an output buffer queue and a display composition service, the interface producer service is in communication connection with the input buffer queue, the input buffer queue is in communication connection with the interface optimization service, the interface optimization service is in communication connection with the output buffer queue, and the output buffer queue is in communication connection with the display composition service; the method comprises the following steps:
calling data of an interface in the input buffer queue as first interface buffer data through the interface optimization service;
processing the first interface buffer data to obtain second interface buffer data;
storing the second interface buffer data in the output buffer area queue;
calling the second interface buffer data in the output buffer area queue through the display composition service;
and drawing an interface on a display screen according to the second interface buffer data.
2. The method of claim 1, wherein the processing the first interface buffer data to obtain second interface buffer data comprises:
and performing image quality enhancement processing on the first interface buffer data according to an image quality enhancement algorithm in the interface optimization service to obtain second interface buffer data.
3. The method of claim 2, wherein before the invoking of the data of the interface in the input buffer queue as first interface buffer data by the interface optimization service, the method further comprises:
judging whether the interface generated according to the interface producer service needs image quality enhancement processing or not;
and if so, storing the data of the interface in an input buffer queue.
4. The method of claim 1, wherein processing the first interface buffer data to obtain second interface buffer data comprises:
and carrying out local amplification processing on the first interface buffer data according to a local amplification algorithm in the interface optimization service to obtain second interface buffer data.
5. The method of claim 4, wherein before the invoking of the data of the interface in the input buffer queue as first interface buffer data by the interface optimization service, the method further comprises:
judging whether the interface generated by the interface producer service needs to be locally amplified according to the user preference;
and if so, storing the data of the interface in an input buffer queue.
6. The method according to any one of claims 1-5, wherein said invoking, by the display composition service, the second interface buffer data in the output buffer queue comprises:
and the display composition service periodically calls the second interface buffer data from the output buffer area queue.
7. The method of claim 1, wherein the first interface buffer data is interface data of a game scene.
8. An interface rendering apparatus, applied to an electronic device, the electronic device including an interface producer service, an interface optimization service, an input buffer queue, an output buffer queue, and a display composition service, the interface producer service communicatively coupled to the input buffer queue, the input buffer queue communicatively coupled to the interface optimization service, the interface optimization service communicatively coupled to the output buffer queue, the output buffer queue communicatively coupled to the display composition service, the apparatus including a processing unit and a communication unit, wherein,
the processing unit is used for calling the data of the interface in the input buffer queue as first interface buffer data through the interface optimization service; the interface buffer data processing unit is used for processing the first interface buffer data to obtain second interface buffer data; and for storing said second interface buffer data in said output buffer queue; the second interface buffer data in the output buffer area queue is called by the display composition service; and the interface drawing module is used for drawing an interface on a display screen according to the second interface buffer data.
9. A mobile terminal comprising a processor, 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 performing the steps in the method of any of claims 1-7.
10. A computer storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 1-7.
CN201911182992.3A 2019-11-27 2019-11-27 Interface drawing method and related product Withdrawn CN112860252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911182992.3A CN112860252A (en) 2019-11-27 2019-11-27 Interface drawing method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911182992.3A CN112860252A (en) 2019-11-27 2019-11-27 Interface drawing method and related product

Publications (1)

Publication Number Publication Date
CN112860252A true CN112860252A (en) 2021-05-28

Family

ID=75984805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911182992.3A Withdrawn CN112860252A (en) 2019-11-27 2019-11-27 Interface drawing method and related product

Country Status (1)

Country Link
CN (1) CN112860252A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170285883A1 (en) * 2015-11-23 2017-10-05 Shenzhen Skyworth-Rgb Electronic Co., Ltd. User interface displaying and processing method and user interface displaying and processing device
CN109218802A (en) * 2018-08-23 2019-01-15 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and computer-readable medium
CN109379625A (en) * 2018-11-27 2019-02-22 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and computer-readable medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170285883A1 (en) * 2015-11-23 2017-10-05 Shenzhen Skyworth-Rgb Electronic Co., Ltd. User interface displaying and processing method and user interface displaying and processing device
CN109218802A (en) * 2018-08-23 2019-01-15 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and computer-readable medium
CN109379625A (en) * 2018-11-27 2019-02-22 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and computer-readable medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
夕月风: "Android P 图形显示***(十一)BufferQueue(二)", pages 1 - 2, Retrieved from the Internet <URL:https://www.jianshu.com/p/f808813880b0> *
腾讯技术工程: "深入浅出Android BufferQueue", pages 1 - 16, Retrieved from the Internet <URL:https://www.sohu.com/a/308763349_100093134> *

Similar Documents

Publication Publication Date Title
KR102300104B1 (en) Screen casting method, apparatus, terminal and storage medium
CN107770618B (en) Image processing method, device and storage medium
US20220139353A1 (en) Display method, electronic device, and non-transitory computer-readable storage medium
CN110377263B (en) Image synthesis method, image synthesis device, electronic equipment and storage medium
CN108287744B (en) Character display method, device and storage medium
CN110111279B (en) Image processing method and device and terminal equipment
JP2022524889A (en) Image rendering methods, equipment, equipment and computer programs
US20150110419A1 (en) Method and device for image processing
CN107995440B (en) Video subtitle map generating method and device, computer readable storage medium and terminal equipment
CN110688081A (en) Method for displaying data on screen and display control device
CN109614173B (en) Skin changing method and device
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
US20220272188A1 (en) Information input method, terminal, and non-transitory computer-readable storage medium
WO2021128929A1 (en) Image rendering method for panorama application, and terminal device
JP2011054095A (en) Electronic apparatus and information processing program
CN110782387A (en) Image processing method and device, image processor and electronic equipment
CN104426747A (en) Instant messaging method, terminal and system
CN106293658B (en) Interface component generation method and equipment
CN112184538B (en) Image acceleration method, related device, equipment and storage medium
CN113791857A (en) Application window background fuzzy processing method and device in Linux system
CN110611739B (en) Video color ring playing method, terminal and computer readable storage medium
CN113038141A (en) Video frame processing method and electronic equipment
CN112860252A (en) Interface drawing method and related product
CN111931708A (en) Form generation method and device
CN110941413B (en) Display screen generation method and related device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210528