CN115761028A - Window image display method and device, terminal equipment and storage medium - Google Patents

Window image display method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115761028A
CN115761028A CN202211449395.4A CN202211449395A CN115761028A CN 115761028 A CN115761028 A CN 115761028A CN 202211449395 A CN202211449395 A CN 202211449395A CN 115761028 A CN115761028 A CN 115761028A
Authority
CN
China
Prior art keywords
application
image
determining
scaling parameter
target layer
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.)
Pending
Application number
CN202211449395.4A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211449395.4A priority Critical patent/CN115761028A/en
Publication of CN115761028A publication Critical patent/CN115761028A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The disclosure relates to a window image display method, a device, a terminal device and a storage medium, wherein the method comprises the following steps: determining a first application needing to display an image; determining a scaling parameter; generating a first target layer of a first application and a cache area queue corresponding to the first target layer according to the scaling parameter; drawing and rendering the image to be rendered according to the first target layer and the cache region queue so as to store the graphic data of the image to be rendered, which is drawn by the first target layer, into the graphic cache region; and synthesizing the images to be rendered in the image cache region, and displaying the synthesized images on a screen of the terminal equipment. According to the technical scheme, the size of the graphic buffer area required by image display is reduced, so that the memory occupation is reduced, and the display smoothness of the terminal equipment is improved.

Description

Window image display method and device, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of image technologies, and in particular, to a window image display method and apparatus, a terminal device, and a storage medium.
Background
When the android system displays images, a graphics buffer (graphics buffer) needs to be used, and the size of the graphics buffer affects the memory occupation of the system. When the pixels of the image to be displayed are high, the occupied graphic buffer area is also large, so that the memory is high in occupation, the display jam of the equipment is finally caused, and the use experience of a user is reduced.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a window image display method, apparatus, terminal device, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a window image display method including: determining a first application needing to display an image; determining a scaling parameter; wherein the value of the scaling parameter is a positive number less than 1; generating a first target layer of the first application and a cache area queue corresponding to the first target layer according to the scaling parameter; the first target layer is used for drawing an image to be rendered of the first application, and the cache area queue is used for managing a graphic cache area of the first application; drawing and rendering the image to be rendered according to the first target layer and the cache region queue so as to store the graphic data of the image to be rendered drawn by the first target layer to the graphic cache region; and synthesizing the image to be rendered in the image cache region, and displaying the synthesized image on a screen of the terminal equipment.
In one implementation, the determining the scaling parameter includes: determining a scaling parameter corresponding to the first application; alternatively, a preset scaling parameter is determined.
In an optional implementation manner, the determining a scaling parameter corresponding to the first application includes: obtaining a scaling parameter corresponding to the first application from the first application; wherein the first application includes a first interface that stores scaling parameters corresponding to the first application.
In an optional implementation, the first application is an application in a small window display mode; or, the first application is an application in a preset application list.
Optionally, the method further comprises: determining hardware information of the terminal equipment; and determining the corresponding preset application list according to the hardware information.
In one implementation, the first application is an application in a small window display mode; the determining the scaling parameter comprises: and determining the zooming parameter according to the size of the small window in the small window display mode.
In an implementation manner, the generating a first target layer of the first application and a buffer queue corresponding to the first target layer according to the scaling parameter includes: generating a reduced matrix according to the scaling parameters; generating the first target layer according to the reduced matrix; according to the scaling parameters, adjusting width information and height information in an explosion buffer area queue for constructing the buffer area queue; and generating the buffer queue based on the explosion buffer queue after the width information and the height information are adjusted.
In one implementation, the synthesizing the image to be rendered in the graphics cache includes: generating an amplification matrix according to the scaling parameters, and generating a second target layer according to the amplification matrix; the second target image layer is used for synthesizing the image to be rendered in the graphic cache region; and synthesizing the image to be rendered in the graphic cache region according to the second target image layer.
In an optional implementation manner, the generating a magnification matrix according to the scaling parameter includes: determining an inverse of the scaling parameter; and generating the amplification matrix according to the reciprocal of the scaling parameter.
According to a second aspect of the embodiments of the present disclosure, there is provided a window image display device including: the device comprises a determining module, a display module and a display module, wherein the determining module is used for determining a first application needing to display an image; a first processing module for determining a scaling parameter; wherein the value of the scaling parameter is a positive number less than 1; the second processing module is used for generating a first target layer of the first application and a cache area queue corresponding to the first target layer according to the scaling parameter; the first target layer is used for drawing an image to be rendered of the first application, and the cache area queue is used for managing a graphic cache area of the first application; the third processing module is used for performing drawing and rendering on the image to be rendered according to the first target layer and the cache region queue so as to store the graphic data of the image to be rendered, which is drawn by the first target layer, to the graphic cache region; and the display module is used for synthesizing the image to be rendered in the image cache region and displaying the synthesized image on a screen of the terminal equipment.
In one implementation manner, the first processing module is specifically configured to: determining a scaling parameter corresponding to the first application; alternatively, a preset scaling parameter is determined.
In an optional implementation manner, the first processing module is specifically configured to: obtaining a scaling parameter corresponding to the first application from the first application; wherein the first application includes a first interface that stores scaling parameters corresponding to the first application.
In an optional implementation manner, the first application is an application in a small window display mode; or, the first application is an application in a preset application list.
Optionally, the first processing module is further configured to: determining hardware information of the terminal equipment; and determining the corresponding preset application list according to the hardware information.
In one implementation, the first application is an application in a small window display mode; the first processing module is specifically configured to: and determining the zooming parameter according to the size of the small window in the small window display mode.
In an implementation manner, the second processing module is specifically configured to: generating a reduced matrix according to the scaling parameters; generating the first target image layer according to the reduced matrix; according to the scaling parameters, adjusting width information and height information in an explosion buffer area queue for constructing the buffer area queue; and generating the buffer queue based on the explosion buffer queue after the width information and the height information are adjusted.
In one implementation, the display module is specifically configured to: generating an amplification matrix according to the scaling parameters, and generating a second target layer according to the amplification matrix; the second target image layer is used for synthesizing the image to be rendered in the graphic cache region; and synthesizing the image to be rendered in the graphic cache region according to the second target image layer.
In an optional implementation manner, the display module is specifically configured to: determining an inverse of the scaling parameter; and generating the amplification matrix according to the reciprocal of the scaling parameter.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing instructions that, when executed, cause the method according to the first aspect to be implemented.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the determined scaling parameter, a first target layer of the first application and a buffer queue corresponding to the first target layer are generated, so that an image of the first application is synthesized and displayed on a screen of the terminal device. The size of a graphic buffer area required by image display is reduced, so that the memory occupation is reduced, and the display smoothness of the terminal equipment is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a window image display method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating another window image display method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating still another window image display method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating still another window image display method according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating still another window image display method according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a window image display apparatus according to an exemplary embodiment.
Fig. 7 is a schematic diagram of a terminal device shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Where in the description of the present disclosure, "/" indicates an OR meaning, for example, A/B may indicate A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The various numbers of the first, second, etc. involved in this disclosure are merely for convenience of description and are not intended to limit the scope of the embodiments of the disclosure, nor to indicate a sequential order.
Fig. 1 is a flowchart illustrating a window image display method according to an exemplary embodiment, which may be applied to a terminal device having a display interface, such as a mobile phone or a tablet computer. As shown in fig. 1, the method may include, but is not limited to, the following steps.
Step S101: a first application requiring a display of an image is determined.
For example, a first application needing image display in the terminal equipment is determined. For example, when a user requests to open an application a, an application interface image of the application a needs to be displayed on a screen of the terminal device, where the application a is a first application that needs to display an image.
Step S102: a scaling parameter is determined.
Wherein, in the embodiment of the present disclosure, the value of the scaling parameter is a positive number smaller than 1.
For example, a scaling parameter for scaling an image that needs to be displayed by the first application is determined.
Step S103: and generating a first target layer of the first application and a buffer area queue (bufferQueue) corresponding to the first target layer according to the scaling parameter.
The first target layer is used for drawing an image to be rendered of the first application, and the buffer queue is used for managing a graphics buffer (graphics buffer) of the first application.
For example, the layer used for drawing the image to be rendered of the first application is scaled according to the scaling parameter to obtain a first target layer, and the image size in the buffer queue of the graphics buffer used for managing the first application is scaled according to the scaling parameter to generate the buffer queue corresponding to the first target layer.
Step S104: and performing drawing rendering on the image to be rendered according to the first target layer and the buffer area queue so as to store the graphic data of the image to be rendered drawn by the first target layer to the graphic buffer area.
For example, the image to be rendered in the buffer queue is rendered on the first target layer, and the obtained image is stored in the graphics buffer, so that the graphics data of the image to be rendered, which is rendered on the first target layer, is stored in the graphics buffer.
Step S105: and synthesizing the images to be rendered in the image cache region, and displaying the synthesized images on a screen of the terminal equipment.
For example, an image to be rendered is read from a graphics cache region, a display composition system surfflecger is used to perform image composition based on a HWC (Hardware Composer) or a GPU (graphics processing unit), and the image composition is displayed on a screen of a terminal device.
By implementing the embodiment of the disclosure, the first target layer of the first application and the buffer queue corresponding to the first target layer can be generated according to the determined scaling parameter, so as to synthesize and display the image of the first application on the screen of the terminal device. The size of a graphic buffer area required by image display is reduced, so that the memory occupation is reduced, and the display fluency of the terminal equipment is improved.
In one implementation, the scaling parameter is a scaling parameter corresponding to the first application, or is a preset scaling parameter. As an example, please refer to fig. 2, fig. 2 is a flowchart illustrating another window image display method according to an exemplary embodiment. As shown in fig. 2, the method may include, but is not limited to, the following steps.
Step S201: a first application requiring a display of an image is determined.
In the embodiment of the present disclosure, step S201 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
Step S202: determining a scaling parameter corresponding to the first application; alternatively, a preset scaling parameter is determined.
In an embodiment of the present disclosure, the first application is an application in a small window display mode; or, the first application is an application in a preset application list, and the application in the preset application list may be an application with a low display resolution requirement.
As one example, in response to the first application being an application in a widget display mode, a zoom parameter corresponding to the first application is determined. For example, when the applications in the small window display mode are different, the different applications have corresponding scaling parameters, for example, if both the application a and the application B are applications in the small window display mode, the scaling parameter corresponding to the application a and the scaling parameter corresponding to the application B may be the same or may also be different.
As another example, in response to the first application being an application in a small window display mode, a preset zoom parameter is determined. Wherein the scaling parameter is a fixed value. That is, the zoom parameter used is the same regardless of what type of application is in the small window display mode.
As yet another example, in response to the first application being an application in a preset list of applications, a scaling parameter corresponding to the first application is determined.
As yet another example, the preset zoom parameter is determined in response to the first application being an application in a preset list of applications.
In an optional implementation manner, the determining a scaling parameter corresponding to the first application may include: obtaining a scaling parameter corresponding to a first application from the first application; the first application comprises a first interface, and the first interface stores scaling parameters corresponding to the first application.
For example, a first interface may be added to a first application when the first application is developed, and the first interface may store a scaling parameter corresponding to the first application, so that the corresponding scaling parameter may be obtained from the first application through the first interface.
Optionally, in an embodiment of the present disclosure, the method may further include: determining hardware information of the terminal equipment; and determining a corresponding preset application list according to the hardware information.
For example, hardware information of the terminal device itself is determined, and a corresponding preset application list is determined according to the hardware information, where the application in the preset application list is an application with a low resolution requirement for display on the terminal device. Therefore, aiming at low-end terminal equipment (such as low memory, poor performance of a central processing unit and a GPU and the like), the size of a graphic buffer area required by image display can be reduced by implementing the method disclosed by the invention, so that the memory occupation is reduced, and the display fluency of the terminal equipment is improved.
Step S203: and generating a first target layer of the first application and a cache region queue corresponding to the first target layer according to the scaling parameter.
In the embodiment of the present disclosure, step S203 may be implemented by adopting any one of the embodiments of the present disclosure, and this is not limited in the embodiment of the present disclosure and is not described again.
Step S204: and performing drawing rendering on the image to be rendered according to the first target layer and the buffer area queue so as to store the graphic data of the image to be rendered, which is drawn by the first target layer, to the graphic buffer area.
In the embodiment of the present disclosure, step S204 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
Step S205: and synthesizing the images to be rendered in the image cache region, and displaying the synthesized images on a screen of the terminal equipment.
In the embodiment of the present disclosure, step S205 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
By implementing the embodiment of the disclosure, a scaling parameter or a preset scaling parameter corresponding to a first application may be obtained, and a first target layer of the first application and a buffer queue corresponding to the first target layer are generated according to the scaling parameter, so as to display the content of the first application on a screen of a terminal device. The size of a graphic buffer area required by image display is reduced, so that the memory occupation is reduced, and the display fluency of the terminal equipment is improved.
In one implementation, when the first application is an application in a widget display mode, the zoom parameter may be determined according to a widget size in the widget display mode. As an example, referring to fig. 3, fig. 3 is a flowchart illustrating still another window image display method according to an exemplary embodiment. As shown in fig. 3, the method may include, but is not limited to, the following steps.
Step S301: a first application requiring a display of an image is determined.
In the embodiment of the present disclosure, step S301 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
Step S302: and determining a zooming parameter according to the size of the small window in the small window display mode.
In an embodiment of the present disclosure, the first application is an application in a small window display mode.
For example, according to the size of the small window in the small window display mode and the actual size of the display content desired by the first application, a scaling parameter that enables the display content desired by the first application to be completely displayed on the small window is determined.
Step S303: and generating a first target layer of the first application and a cache area queue corresponding to the first target layer according to the scaling parameter.
In the embodiment of the present disclosure, step S303 may be implemented by any one of the embodiments of the present disclosure, which is not limited herein and is not described again.
Step S304: and performing drawing rendering on the image to be rendered according to the first target layer and the buffer area queue so as to store the graphic data of the image to be rendered, which is drawn by the first target layer, to the graphic buffer area.
In the embodiment of the present disclosure, step S304 may be implemented by any one of the embodiments of the present disclosure, and the embodiment of the present disclosure does not limit this and is not described again.
Step S305: and synthesizing the images to be rendered in the image cache region, and displaying the synthesized images on a screen of the terminal equipment.
In the embodiment of the present disclosure, step S305 may be implemented by any one of the embodiments of the present disclosure, and the embodiment of the present disclosure is not limited to this and is not described again.
By implementing the embodiment of the disclosure, when the first application is an application in a small window display mode, a scaling parameter is determined according to the size of a small window in the small window display mode, and a first target layer of the first application and a buffer queue corresponding to the first target layer are generated according to the scaling parameter, so as to generate and display the content of the first application on a screen of the terminal device. The size of a graphic buffer area required by image display is reduced, so that the memory occupation is reduced, and the display fluency of the terminal equipment is improved.
In an implementation manner, a reduction matrix may be generated according to the scaling parameter, so that a first target layer of the first application and a buffer queue corresponding to the first target layer are generated according to the reduction matrix. Referring to fig. 4 as an example, fig. 4 is a flowchart illustrating still another window image display method according to an exemplary embodiment. As shown in fig. 4, the method may include, but is not limited to, the following steps.
Step S401: a first application requiring a display of an image is determined.
In the embodiment of the present disclosure, step S401 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
Step S402: a scaling parameter is determined.
In the embodiment of the present disclosure, step S402 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
Step S403: and generating a reduction matrix according to the scaling parameters.
For example, a scaling parameter is used as an element in the matrix to generate a scaled matrix.
Step S404: and generating a first target layer according to the reduced matrix.
For example, the reduction matrix is set to a layer used for drawing an image to be rendered of the first application, so as to adjust the size of the layer to generate a first target layer.
Step S405: according to the scaling parameter, adjusting the width information and the height information in an explosion buffer queue (BlastBufferQueue) for constructing the buffer queue.
For example, the width information and height information in the burst buffer queue used to build the buffer queue are adjusted by the following formulas.
w′=w*ratio
h′=h*ratio
Wherein w 'is the adjusted width information, w is the width information in the queue of the explosion buffer area, ratio is a scaling parameter, h' is the adjusted height information, and h is the height information in the queue of the explosion buffer area.
Step S406: and generating a buffer area queue based on the explosion buffer area queue after the width information and the height information are adjusted.
For example, based on the explosion buffer queue after the width information and the height information are adjusted, a buffer queue corresponding to the first target layer is generated.
Step S407: and performing drawing rendering on the image to be rendered according to the first target layer and the buffer area queue so as to store the graphic data of the image to be rendered drawn by the first target layer to the graphic buffer area.
In the embodiment of the present disclosure, step S407 may be implemented by using any one of the embodiments of the present disclosure, and this is not limited in the embodiment of the present disclosure and is not described again.
Step S408: and synthesizing the images to be rendered in the image cache region, and displaying the synthesized images on a screen of the terminal equipment.
In the embodiment of the present disclosure, step S408 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
By implementing the embodiment of the disclosure, the reduction matrix can be generated according to the scaling parameter, so that the first target layer of the first application and the buffer queue corresponding to the first target layer are generated according to the reduction matrix, and the image of the first application is synthesized and displayed on the screen of the terminal device. The size of a graphic buffer area required by image display is reduced, so that the memory occupation is reduced, and the display fluency of the terminal equipment is improved.
In an implementation manner, a second target layer may be generated according to the scaling parameter, so as to synthesize an image to be rendered in the graphics cache region according to the second target layer. As an example, referring to fig. 5, fig. 5 is a flowchart illustrating still another window image display method according to an exemplary embodiment. As shown in fig. 5, the method may include, but is not limited to, the following steps.
Step S501: a first application requiring a display of an image is determined.
In the embodiment of the present disclosure, step S501 may be implemented by any one of the embodiments of the present disclosure, which is not limited herein and is not described again.
Step S502: a scaling parameter is determined.
In the embodiment of the present disclosure, step S502 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
Step S503: and generating a first target layer of the first application and a cache region queue corresponding to the first target layer according to the scaling parameter.
In the embodiment of the present disclosure, step S503 may be implemented by any one of the embodiments of the present disclosure, and the embodiment of the present disclosure does not limit this and is not described again.
Step S504: and performing drawing rendering on the image to be rendered according to the first target layer and the buffer area queue so as to store the graphic data of the image to be rendered, which is drawn by the first target layer, to the graphic buffer area.
In the embodiment of the present disclosure, step S504 may be implemented by any one of the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and is not described again.
Step S505: and generating an amplification matrix according to the scaling parameters, and generating a second target layer according to the amplification matrix.
And the second target image layer is used for synthesizing the image to be rendered in the graphic cache region.
For example, the scaling parameter is used as an element in the matrix to generate an amplification matrix, and the amplification matrix is set to a layer used in synthesis to obtain a second target layer.
In an optional implementation manner, the generating the amplification matrix according to the scaling parameter includes: determining an inverse of the scaling parameter; and generating a magnification matrix according to the reciprocal of the scaling parameter.
For example, the reciprocal of the scaling parameter is determined according to the scaling parameter, and the reciprocal of the scaling parameter is taken as an element in the matrix to generate the amplification matrix.
Step S506: and synthesizing the image to be rendered in the graphic cache region according to the second target layer.
For example, an image to be rendered is read from a graphics cache region, and the image is synthesized based on a HWC or a GPU by using a surfactin, so as to enlarge the image to be rendered in the graphics cache region to an original scale and draw the image to a second target layer, thereby obtaining a synthesized image.
Step S507: and displaying the synthesized image on a screen of the terminal equipment.
By implementing the embodiment of the disclosure, the second target layer can be generated according to the scaling parameter, so that the image to be rendered in the graphics cache region is synthesized according to the second target layer, and thus, the content expected by the first application can be displayed by using a smaller memory. The size of a graphic buffer area required by image display is reduced, so that the memory occupation is reduced, and the display fluency of the terminal equipment is improved.
Referring to fig. 6, fig. 6 is a block diagram illustrating a window image display apparatus according to an exemplary embodiment. As shown in fig. 6, the apparatus 600 includes: a determining module 601, configured to determine a first application that needs to display an image; a first processing module 602, configured to determine a scaling parameter; wherein the value of the scaling parameter is a positive number less than 1; the second processing module 603 is configured to generate a first target layer of the first application and a buffer queue corresponding to the first target layer according to the scaling parameter; the first target layer is used for drawing an image to be rendered of a first application, and the buffer area queue is used for managing a graphic buffer area of the first application; the third processing module 604 is configured to perform rendering on the image to be rendered according to the first target layer and the buffer queue, so as to store graphics data of the image to be rendered, which is rendered in the first target layer, in the graphics buffer; and the display module 605 is configured to synthesize the image to be rendered in the graphics cache region, and display the synthesized image on the screen of the terminal device.
In one implementation, the first processing module 602 is specifically configured to: determining a scaling parameter corresponding to the first application; alternatively, a preset scaling parameter is determined.
In an optional implementation manner, the first processing module 602 is specifically configured to: obtaining a scaling parameter corresponding to a first application from the first application; the first application comprises a first interface, and the first interface stores scaling parameters corresponding to the first application.
In an alternative implementation, the first application is an application in a small window display mode; or the first application is an application in a preset application list.
Optionally, the first processing module 602 is further configured to: determining hardware information of the terminal equipment; and determining a corresponding preset application list according to the hardware information.
In one implementation, the first application is an application in a small window display mode; the first processing module is specifically configured to: and determining a zooming parameter according to the size of the small window in the small window display mode.
In an implementation manner, the second processing module 603 is specifically configured to: generating a reduced matrix according to the scaling parameters; generating a first target layer according to the reduced matrix; according to the scaling parameters, adjusting width information and height information in an explosion buffer area queue for constructing the buffer area queue; and generating a buffer area queue based on the explosion buffer area queue after the width information and the height information are adjusted.
In one implementation, the display module 605 is specifically configured to: generating an amplification matrix according to the scaling parameters, and generating a second target layer according to the amplification matrix; the second target image layer is used for synthesizing an image to be rendered in the graphic cache region; and synthesizing the image to be rendered in the graphic cache region according to the second target layer.
In an optional implementation manner, the display module 605 is specifically configured to: determining an inverse of the scaling parameter; and generating a magnification matrix according to the reciprocal of the scaling parameter.
By the device, the scaling parameter can be determined, and the first target layer of the first application and the buffer area queue corresponding to the first target layer are generated according to the scaling parameter, so that the image of the first application is synthesized and displayed on the screen of the terminal device. The size of a graphic buffer area required by image display is reduced, so that the memory occupation is reduced, and the display fluency of the terminal equipment is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Referring to fig. 7, fig. 7 is a schematic diagram of a terminal device according to an exemplary embodiment. For example, terminal device 700 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a wearable device, and the like.
Referring to fig. 7, the terminal device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the terminal device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the terminal device 700. Examples of such data include instructions for any application or method operating on terminal device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 706 provides power to the various components of the terminal device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal device 700.
The multimedia component 708 comprises a touch sensitive display screen providing an output interface between the terminal device 700 and a user. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive an external audio signal when the terminal device 700 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 714 includes one or more sensors for providing various aspects of status assessment for the terminal device 700. For example, sensor component 714 can detect an open/closed state of terminal device 700, the relative positioning of components such as a display and keypad of terminal device 700, sensor component 714 can also detect a change in position of terminal device 700 or a component of terminal device 700, the presence or absence of user contact with terminal device 700, orientation or acceleration/deceleration of terminal device 700, and a change in temperature of terminal device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the terminal device 700 and other devices. The terminal device 700 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods described in any of the above embodiments.
The present disclosure also provides a readable storage medium having stored thereon instructions which, when executed by a computer, implement the functionality of any of the above-described method embodiments.
The present disclosure also provides a computer program product which, when executed by a computer, implements the functionality of any of the above-described method embodiments.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs. The procedures or functions according to the embodiments of the present disclosure are wholly or partially generated when the computer program is loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer program can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Video Disc (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
Those of ordinary skill in the art will understand that: various numerical numbers of the first, second, etc. referred to in this disclosure are only for convenience of description and distinction, and are not used to limit the scope of the embodiments of the disclosure, and also represent a sequential order.
At least one of the present disclosure may also be described as one or more, and a plurality may be two, three, four or more, without limitation of the present disclosure. In the embodiment of the present disclosure, for a technical feature, the technical features in the technical feature are distinguished by "first", "second", "third", "a", "B", "C", and "D", etc., and the technical features described in "first", "second", "third", "a", "B", "C", and "D" are not in a sequential order or a magnitude order.
Predefinition in this disclosure may be understood as defining, predefining, storing, pre-negotiating, pre-configuring, curing, or pre-firing.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 disclosure.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (20)

1. A window image display method, comprising:
determining a first application needing to display an image;
determining a scaling parameter; wherein the value of the scaling parameter is a positive number less than 1;
generating a first target layer of the first application and a cache area queue corresponding to the first target layer according to the scaling parameter; the first target layer is used for drawing an image to be rendered of the first application, and the cache area queue is used for managing a graphic cache area of the first application;
drawing and rendering the image to be rendered according to the first target layer and the cache region queue so as to store the graphic data of the image to be rendered drawn by the first target layer to the graphic cache region;
and synthesizing the image to be rendered in the image cache region, and displaying the synthesized image on a screen of the terminal equipment.
2. The method of claim 1, wherein the determining a scaling parameter comprises:
determining a scaling parameter corresponding to the first application;
alternatively, a preset scaling parameter is determined.
3. The method of claim 2, wherein the determining a scaling parameter corresponding to the first application comprises:
obtaining a scaling parameter corresponding to the first application from the first application; wherein the first application includes a first interface that stores scaling parameters corresponding to the first application.
4. The method of claim 2 or 3,
the first application is an application in a small window display mode;
or, the first application is an application in a preset application list.
5. The method of claim 4, further comprising:
determining hardware information of the terminal equipment;
and determining the corresponding preset application list according to the hardware information.
6. The method of claim 1, wherein the first application is an application in a small window display mode; the determining the scaling parameter comprises:
and determining the zooming parameter according to the size of the small window in the small window display mode.
7. The method according to claim 1, wherein the generating a first target layer of the first application and a buffer queue corresponding to the first target layer according to the scaling parameter includes:
generating a reduced matrix according to the scaling parameters;
generating the first target layer according to the reduced matrix;
according to the scaling parameters, adjusting width information and height information in an explosion buffer area queue for constructing the buffer area queue;
and generating the buffer queue based on the explosion buffer queue after the width information and the height information are adjusted.
8. The method of claim 1, wherein the compositing the image to be rendered in the graphics cache comprises:
generating an amplification matrix according to the scaling parameters, and generating a second target layer according to the amplification matrix; the second target image layer is used for synthesizing the image to be rendered in the graphic cache region;
and synthesizing the image to be rendered in the graphic cache region according to the second target image layer.
9. The method of claim 8, wherein the generating a magnification matrix according to the scaling parameters comprises:
determining an inverse of the scaling parameter;
and generating the amplification matrix according to the reciprocal of the scaling parameter.
10. A window image display apparatus, comprising:
the device comprises a determining module, a display module and a display module, wherein the determining module is used for determining a first application needing to display an image;
a first processing module for determining a scaling parameter; wherein the value of the scaling parameter is a positive number less than 1;
the second processing module is used for generating a first target layer of the first application and a cache area queue corresponding to the first target layer according to the scaling parameter; the first target layer is used for drawing an image to be rendered of the first application, and the cache area queue is used for managing a graphics cache area of the first application;
the third processing module is used for performing drawing and rendering on the image to be rendered according to the first target layer and the cache region queue so as to store the graphic data of the image to be rendered, which is drawn by the first target layer, to the graphic cache region;
and the display module is used for synthesizing the image to be rendered in the image cache region and displaying the synthesized image on a screen of the terminal equipment.
11. The apparatus of claim 10, wherein the first processing module is specifically configured to:
determining a scaling parameter corresponding to the first application;
alternatively, a preset scaling parameter is determined.
12. The apparatus of claim 11, wherein the first processing module is specifically configured to:
obtaining a scaling parameter corresponding to the first application from the first application; wherein the first application includes a first interface that stores scaling parameters corresponding to the first application.
13. The apparatus of claim 11 or 12,
the first application is an application in a small window display mode;
or, the first application is an application in a preset application list.
14. The apparatus of claim 13, wherein the first processing module is further to:
determining hardware information of the terminal equipment;
and determining the corresponding preset application list according to the hardware information.
15. The apparatus of claim 10, wherein the first application is an application in a widget display mode; the first processing module is specifically configured to:
and determining the zooming parameter according to the size of the small window in the small window display mode.
16. The apparatus of claim 10, wherein the second processing module is specifically configured to:
generating a reduced matrix according to the scaling parameters;
generating the first target image layer according to the reduced matrix;
according to the scaling parameters, adjusting width information and height information in an explosion buffer area queue for constructing the buffer area queue;
and generating the buffer queue based on the explosion buffer queue after the width information and the height information are adjusted.
17. The apparatus of claim 10, wherein the display module is specifically configured to:
generating an amplification matrix according to the scaling parameters, and generating a second target layer according to the amplification matrix; the second target image layer is used for synthesizing the image to be rendered in the graphics cache region;
and synthesizing the image to be rendered in the graphic cache region according to the second target image layer.
18. The apparatus of claim 17, wherein the display module is specifically configured to:
determining an inverse of the scaling parameter;
and generating the amplification matrix according to the reciprocal of the scaling parameter.
19. A terminal device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 9.
20. A computer readable storage medium storing instructions that, when executed, cause the method of any one of claims 1 to 9 to be implemented.
CN202211449395.4A 2022-11-18 2022-11-18 Window image display method and device, terminal equipment and storage medium Pending CN115761028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211449395.4A CN115761028A (en) 2022-11-18 2022-11-18 Window image display method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211449395.4A CN115761028A (en) 2022-11-18 2022-11-18 Window image display method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115761028A true CN115761028A (en) 2023-03-07

Family

ID=85373646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211449395.4A Pending CN115761028A (en) 2022-11-18 2022-11-18 Window image display method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115761028A (en)

Similar Documents

Publication Publication Date Title
CN106657780B (en) Image preview method and device
EP3232340A1 (en) Method for operating a display device and display device for displaying pages of an application program
US20150116368A1 (en) Method and device for adjusting characters of application
CN111078170B (en) Display control method, display control device, and computer-readable storage medium
CN109285126B (en) Image processing method and device, electronic equipment and storage medium
CN108829475B (en) UI drawing method, device and storage medium
CN109783171B (en) Desktop plug-in switching method and device and storage medium
CN108322673B (en) Video generation method and video generation device
CN107132908B (en) Image updating method and device
CN111290663A (en) Curved screen display method and device, terminal and storage medium
CN111373730B (en) Panoramic shooting method and terminal
CN115963929A (en) VR display method, device and storage medium
CN106354657B (en) Register access method, device and system
CN115761028A (en) Window image display method and device, terminal equipment and storage medium
CN112866612B (en) Frame insertion method, device, terminal and computer readable storage medium
CN105975188B (en) Picture position adjusting method and device
CN106604088B (en) Method, device and equipment for processing data in buffer area
EP3813058A1 (en) Screen display device, method and device for controlling screen display and storage medium
CN114296587A (en) Cursor control method and device, electronic equipment and storage medium
CN115567762A (en) Zoom control method, apparatus and medium
CN109389547B (en) Image display method and device
CN111610899A (en) Interface display method, interface display device and storage medium
CN106775651B (en) Webpage element shifting method and device
US20220291890A1 (en) Method for interaction between devices and medium
CN116893816B (en) Remote rendering method, device 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