Image display adjustment method and device, and electronic device
By dynamically selecting and synthesizing matching screen resolutions in computer terminal devices, the high load and high power consumption problems caused by mismatch between image resolution and screen resolution are solved, and more efficient image display is achieved.
Patent Information
- Application Number
- CN202210326119.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-03-30
AI Technical Summary
In a computer terminal device, when the resolution of the image does not match the screen resolution, the image display data transmission module is loaded high, increasing the power consumption of the terminal device.
By obtaining the resolution of each layer image to be displayed, select the target screen resolution in the order of resolution from small to large among the candidate screen resolutions, so that the resolution of each layer image is less than or equal to the target screen resolution. And the layer images are synthesized and displayed based on the target screen resolution, and the screen resolution is dynamically set to match the image resolution.
The load of the image display data transmission module is reduced, the power consumption of the terminal equipment is reduced, and the efficiency of image display is improved.
Smart Images

Figure CN114691069B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for adjusting image display, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the development of technology in the field of computer technology, terminal devices can support multiple different screen resolutions, such as 1080P, 2k, etc., and the screen resolution can be adjusted manually.
[0003] However, the resolution of the application image may not match the screen resolution. When these images are displayed, they need to be enlarged during layer synthesis and then transmitted to the screen for display through the image display data transmission module, resulting in a high transmission load on the image display data transmission module and increased terminal power consumption. Summary of the invention
[0004] The embodiments of the present application provide a method and apparatus for image display adjustment, an electronic device, and a computer-readable storage medium. The target screen resolution can be selected from candidate screen resolutions in ascending order according to the layer image resolutions corresponding to each layer, and the screen resolution can be dynamically set according to the size of the layer image to be displayed on the screen, so as to reduce the system load and power consumption.
[0005] A method for adjusting image display, comprising:
[0006] Get the layer image resolution corresponding to each layer to be displayed;
[0007] Selecting a target screen resolution from the candidate screen resolutions in ascending order of resolution, wherein the layer image resolutions corresponding to each layer are less than or equal to the target screen resolution;
[0008] Based on the target screen resolution, the layer images corresponding to each layer are synthesized to obtain an image to be displayed;
[0009] The image to be displayed is displayed based on the target screen resolution.
[0010] A device for adjusting image display, comprising:
[0011] An acquisition module, used to acquire the layer image resolution corresponding to each layer to be displayed;
[0012] A target screen resolution determination module is used to select a target screen resolution from candidate screen resolutions in ascending order of resolution, wherein the layer image resolutions corresponding to each layer are less than or equal to the target screen resolution;
[0013] A synthesis module, used for synthesizing the layer images corresponding to each layer based on the target screen resolution to obtain an image to be displayed;
[0014] A display module is used to display the image to be displayed based on the target screen resolution.
[0015] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the following steps:
[0016] Get the layer image resolution corresponding to each layer to be displayed;
[0017] Selecting a target screen resolution from the candidate screen resolutions in ascending order of resolution, wherein the layer image resolutions corresponding to each layer are less than or equal to the target screen resolution;
[0018] Based on the target screen resolution, the layer images corresponding to each layer are synthesized to obtain an image to be displayed;
[0019] The image to be displayed is displayed based on the target screen resolution.
[0020] A computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0021] Get the layer image resolution corresponding to each layer to be displayed;
[0022] Selecting a target screen resolution from the candidate screen resolutions in ascending order of resolution, wherein the layer image resolutions corresponding to each layer are less than or equal to the target screen resolution;
[0023] Based on the target screen resolution, the layer images corresponding to each layer are synthesized to obtain an image to be displayed;
[0024] The image to be displayed is displayed based on the target screen resolution.
[0025] The above-mentioned method, device, electronic device and computer-readable storage medium for adjusting image display obtain the layer image resolution corresponding to each layer to be displayed; select the target screen resolution from the candidate screen resolutions in order of resolution from small to large, and the layer image resolution corresponding to each layer is less than or equal to the target screen resolution; synthesize the layer images corresponding to each layer based on the target screen resolution to obtain the image to be displayed; display the image to be displayed based on the target screen resolution, set the screen target screen resolution according to the size of each layer to be displayed, determine the resolution of the synthesized output image to be displayed, and select the target screen resolution from the candidate screen resolutions in order of resolution from small to large to limit the resolution of the synthesized image to be displayed, so as to save the load of the image display data transmission module and reduce power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A diagram of an application environment of a method for adjusting image display in one embodiment;
[0028] Figure 2 A schematic flow chart of a method for adjusting image display in one embodiment;
[0029] Figure 3 A schematic diagram of a process for determining a target screen resolution in one embodiment;
[0030] Figure 4 It is a structural schematic diagram of a method for adjusting image display in a specific embodiment;
[0031] Figure 5 It is a flowchart of a method for adjusting image display in a specific embodiment;
[0032] Figure 6 is a structural block diagram of an apparatus for adjusting image display in one embodiment;
[0033] Figure 7 FIG. 4 is a block diagram of the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0035] Figure 1 FIG. 1 is an application environment diagram of a method for adjusting image display in an embodiment. Figure 1 As shown, the application environment includes a terminal 110 and a server 120. The method for adjusting image display can be completed independently by the terminal 110 or the server 120, or can be completed by the terminal 110 or the server 120 in cooperation. The terminal 110 or the server 120 obtains the layer image resolution corresponding to each layer to be displayed; selects the target screen resolution from the candidate screen resolutions in order from small to large resolution, and the layer image resolution corresponding to each layer is less than or equal to the target screen resolution; synthesizes the layer images corresponding to each layer based on the target screen resolution to obtain the image to be displayed; displays the image to be displayed based on the target screen resolution, and if the server is the execution subject, sends the target screen resolution and the image to be displayed to the terminal, so that the terminal displays the image to be displayed based on the target screen resolution. The terminal 110 can be a terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a car computer, a wearable device, etc. The terminal 110 can be an Android system or an IOS system, and the terminal device can obtain various types of layer images corresponding to each layer to be displayed, including but not limited to continuous image frames in a video, images captured in real time, images downloaded from a server, etc. The server 120 may be a server or a server cluster.
[0036] Figure 2 The figure is a flow chart of a method for adjusting image display in one embodiment. Figure 2 The image display adjustment method shown can be applied to the above-mentioned terminal 110 or server 120, including:
[0037] Step 202: Obtain the layer image resolution corresponding to each layer to be displayed.
[0038] When the application's layer refresh thread draws the screen, it applies for a layer from the display service module. The layer size is the size of the image that the application needs to draw, such as 1080*1920. A screen can be composed of multiple layers. Each layer corresponds to a layer image. The resolution of the layer images corresponding to different layers can be the same or different. An application can apply for multiple different layers when drawing a screen.
[0039] Specifically, the terminal can obtain the layer image resolution corresponding to each layer to be displayed, which can be the layer image resolution corresponding to each layer to be displayed obtained by real-time acquisition by an image shooting application, or the layer image resolution corresponding to each layer to be displayed in a game application or a video playback application, or the layer image resolution corresponding to each layer to be displayed corresponding to an image downloaded from a server. There is no limitation on the method of obtaining the layer image resolution corresponding to each layer to be displayed.
[0040] For example, the layer image resolution corresponding to each layer to be displayed corresponding to the first application is obtained, and the layer image resolution corresponding to each layer to be displayed corresponding to the second application is obtained, wherein the first application may be a game application, and the second application may be a video playback application, wherein the application types of the first application and the second application may be the same or different, and the number of applications may be unlimited.
[0041] Step 204 , a target screen resolution is selected from the candidate screen resolutions in ascending order of resolution, and the layer image resolution corresponding to each layer is less than or equal to the target screen resolution.
[0042] Among them, screen resolution is the precision of the screen image, which refers to how many pixels the monitor can display. Since the points, lines and surfaces on the screen are composed of pixels, the more pixels the monitor can display, the finer the picture, and the more information can be displayed in the same screen area. The terminal device can support different screen resolutions, and a screen resolution can be set as the target screen resolution from the candidate screen resolutions. The higher the resolution, the more power consumption.
[0043] Specifically, the layer image resolutions corresponding to each layer are less than or equal to the target screen resolution, which means that the layer image resolutions corresponding to any layer image corresponding to each layer are less than or equal to the target screen resolution. Since the target screen resolution that meets the above conditions is selected from the candidate screen resolutions in order from small to large, it is ensured that the selected target screen resolution is the smallest screen resolution among the candidate screen resolutions that meet the conditions, thereby achieving the purpose of reducing system load and reducing power consumption.
[0044] Step 206 , synthesizing the layer images corresponding to the various layers based on the target screen resolution to obtain an image to be displayed.
[0045] The layer images corresponding to each layer are synthesized to obtain image parameter information corresponding to the layer images corresponding to each layer. The image parameter information includes position information, layer image resolution, transparency, etc.
[0046] Specifically, the layer images corresponding to each layer are synthesized based on the target screen resolution, so that the resolution of the synthesized image to be displayed is equal to the target screen resolution, so that it can be directly displayed later without further zooming in or out. In the synthesis process, the layers can be superimposed, and the layers corresponding to different APPs can be weighted synthesized according to the importance or customized weighting coefficients, and zoomed in or out to different degrees, so that the resolution of the synthesized image to be displayed is equal to the target screen resolution. In one embodiment, the importance corresponding to different applications is obtained, and the resolution of the layer image of the application is proportional to the importance. The layer images corresponding to each layer of the application are synthesized according to the importance, and the pixel position after synthesis is determined according to the position information corresponding to each layer image, and the pixel transparency after synthesis is determined according to the transparency corresponding to each layer image.
[0047] Step 208: Display the image to be displayed based on the target screen resolution.
[0048] Specifically, the synthesized image to be displayed is output to the screen through the image display data transmission module for display, and since the resolution of the synthesized image to be displayed is the target screen resolution, they are matched and can be displayed directly without further scaling processing.
[0049] The method for adjusting image display in the present embodiment obtains the layer image resolution corresponding to each layer to be displayed; selects the target screen resolution from the candidate screen resolutions in ascending order of resolution, and the layer image resolution corresponding to each layer is less than or equal to the target screen resolution; synthesizes the layer images corresponding to each layer based on the target screen resolution to obtain the image to be displayed; displays the image to be displayed based on the target screen resolution, sets the screen target resolution according to the size of each layer to be displayed, determines the resolution of the synthesized output image to be displayed, and selects the target screen resolution from the candidate screen resolutions in ascending order of resolution to limit the resolution of the synthesized image to be displayed, so as to save the load of the image display data transmission module and reduce power consumption.
[0050] In one embodiment, before step 202, the process further includes: receiving layer application requests sent by various applications, where the layer application requests carry the resolution of the layer image to be displayed.
[0051] Specifically, the display service module receives layer application requests sent by each application. Each layer is managed in the display service module. Each screen layer applied for by each application will be added to the layer chain of the display service module. Depending on the business corresponding to the application, each application can apply for one or more layers that match the needs, so that the layer application corresponding to each application carries one or more layer image resolutions to be displayed.
[0052] Step 202 includes: if the image refresh period arrives, obtain the layer image resolutions corresponding to the layers to be displayed for each application based on the layer application request.
[0053] Specifically, the image refresh period can be customized as needed and can be set to 16.7 ms. When the image refresh period arrives, the display service module obtains the layer image resolutions corresponding to the layers to be displayed for each application from the layer application request, preparing for dynamically determining the target screen resolution and synthesizing the image to be displayed based on the layer image resolutions corresponding to the layers.
[0054] In this embodiment, due to different image refresh periods, the layer image resolutions corresponding to the layers are different, so that different target screen resolutions can be dynamically obtained, and the images to be displayed with different resolutions are synthesized based on the target screen resolutions, adaptively setting the screen resolution according to the size of the layer images to be displayed on the screen, achieving the purpose of reducing system load and power consumption.
[0055] In one embodiment, the candidate screen resolutions include at least two candidate screen resolutions, and step 204 includes:.
[0056] Step 204A, select adjacent first and second screen resolutions from the candidate screen resolutions in ascending order of resolution, where the first screen resolution is less than the second screen resolution.
[0057] Specifically, the candidate screen resolutions are the screen resolutions that the terminal can support. For example, if the candidate screen resolutions include three, A, B, and C, where A < B < C, then in ascending order, first select the adjacent first screen resolution A and second screen resolution B.
[0058] Step 204B, if the layer image resolutions corresponding to the layers are all less than or equal to the first screen resolution, determine the first screen resolution as the target screen resolution.
[0059] Specifically, if the layer image resolutions corresponding to each layer are less than or equal to the first screen resolution, the first screen resolution is determined to be the target screen resolution. For example, if the layer image resolutions corresponding to each layer are D, E, and F, and D<=A, E<=A, and F<=A, the first screen resolution A is determined to be the target screen resolution. It can be understood that the layer image resolutions corresponding to each layer are less than or equal to the first screen resolution means that any layer image resolution corresponding to each layer is less than or equal to the first screen resolution. If there is a layer image resolution greater than the first screen resolution, the first screen resolution is not the target screen resolution, and each layer image resolution needs to be compared with the next candidate screen resolution greater than the first screen resolution to determine the target screen resolution.
[0060] In this embodiment, adjacent first and second screen resolutions are selected in order of resolution from small to large, and the target screen resolution can be quickly determined when conditions are met by comparing the layer image resolution corresponding to each layer with the first smaller screen resolution.
[0061] In one embodiment, step 204 includes: if any layer image resolution corresponding to each layer is greater than the first screen resolution, and the layer image resolutions corresponding to each layer are less than or equal to the second screen resolution, then the second screen resolution is determined to be the target screen resolution.
[0062] Specifically, if there is any layer image resolution greater than the first screen resolution A, the first screen resolution is not the target screen resolution, and each layer image resolution needs to be compared with the next candidate screen resolution greater than the first screen resolution. At this time, each layer image resolution is compared with the second screen resolution B. If the layer image resolutions corresponding to each layer are less than or equal to the second screen resolution B, the second screen resolution B is determined to be the target screen resolution. It can be understood that if there is any layer image resolution greater than the second screen resolution B, the next candidate screen resolution greater than the second screen resolution B is obtained in order from small to large, such as the third screen resolution C, and the layer image resolutions corresponding to each layer are compared with the third screen resolution C. If the conditions are met, the third screen resolution C is determined to be the target screen resolution. If the conditions are not met, the same process is repeated until a candidate screen resolution that meets the conditions is found to obtain the target screen resolution.
[0063] In this embodiment, if the current candidate screen resolution cannot be used as the target screen resolution through judgment, the layer image resolution corresponding to each layer is compared with the next larger and adjacent candidate screen resolution, so that the target screen resolution can be determined quickly and accurately.
[0064] In one embodiment, step 206 includes: obtaining the position information and layer image resolution of the layer images corresponding to each layer; performing image synthesis on the layer images corresponding to each layer based on the position information and the layer image resolution to obtain the image to be displayed, so that the image resolution of the image to be displayed is the target screen resolution.
[0065] Specifically, the display service module process obtains the position information, layer image resolution, transparency, etc. of the layer image corresponding to each layer, and synthesizes the layer images corresponding to each layer based on the display parameters such as the position information, layer image resolution, transparency, etc. to obtain the image to be displayed, and ensures that the image resolution of the image to be displayed is the target screen resolution, thereby ensuring the matching of the image and the screen display resolution. The synthesized image to be displayed is transmitted to the screen through the image display data transmission module for display.
[0066] In this embodiment, the layer images corresponding to each layer are synthesized according to the position information and layer image resolution of the layer images corresponding to each layer, and the image resolution of the image to be displayed is the target screen resolution. Since the target screen resolution is the minimum candidate screen resolution that meets the conditions and is selected in order from small to large, the image data is also the dynamically changing minimum image data that meets the conditions. Therefore, when the image to be displayed is transmitted to the screen for display through the image display data transmission module, the load of the image display data transmission module can be saved and the power consumption can be reduced.
[0067] In a specific embodiment, the method for adjusting the image display provided by the embodiment of the present application is described below, and is applied to a mobile phone terminal, and can be applied to games, videos and other scenes. Figure 4 As shown, the following steps are included:
[0068] 1. The application applies to the display service module for one or more image display layers of the appropriate size according to the requirements. For example, the first application applies for two layers, and the layer image resolutions are the first layer image resolution and the second layer image resolution respectively. The second application applies for one layer, and the layer image resolution is the third layer image resolution. The first layer image resolution, the second layer image resolution, and the third layer image resolution can be the same or different. The display service module can receive the layer application requests sent by the first application and the second application respectively, and the layer application requests carry the layer image resolution to be displayed.
[0069] 2. When the image refresh cycle arrives, the display service module obtains the layer image resolution corresponding to each layer to be displayed of each application, performs layer scene judgment, and calculates the appropriate size of the synthetic target image to be displayed based on the resolution size of the layer image to be displayed.
[0070] 3. Combination Figure 5 As shown, the target screen resolution is selected from the candidate screen resolutions 720P, 1080P, and 2K in order of resolution from small to large. If the layer image resolutions corresponding to each layer are less than or equal to 720P, 720P is selected as the target screen resolution, and the synthetic target resolution of the image to be displayed is set to 720P. If the layer image resolution corresponding to one of the layers is greater than 720P, and the layer image resolutions corresponding to each layer are less than or equal to 1080P, 1080P is selected as the target screen resolution, and the synthetic target resolution of the image to be displayed is set to 1080P. If the layer image resolution corresponding to one of the layers is greater than 1080P, and the layer image resolutions corresponding to each layer are less than or equal to 2K, 2K is selected as the target screen resolution, and the synthetic target resolution of the image to be displayed is set to 2K.
[0071] 4. The platform hardware image synthesis module synthesizes the layer images corresponding to each layer according to the synthesis target resolution of the image to be displayed determined in the previous step to obtain the image to be displayed.
[0072] 5. The synthesized image to be displayed is output to the screen through the image display data transmission module for display, and the screen display mode is adapted to display according to the target screen resolution.
[0073] In this embodiment, when the layer is refreshed, the target screen resolution of the screen is determined according to the layer size, and the output target resolution of the synthesized image to be displayed is determined, thereby controlling the image data transmitted by the image display data transmission module. If the image display is less than 720P, the output target resolution of the synthesized image to be displayed is set to 720P. If the image display is less than 1080P, the output target resolution of the synthesized image to be displayed is set to 1080P. The output target resolution of the image to be displayed and the target screen resolution of the terminal can be dynamically and adaptively adjusted to achieve the purpose of saving the load of the image display data transmission module and reducing power consumption.
[0074] It should be understood that although Figure 2-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0075] Figure 6 FIG. 4 is a structural block diagram of an apparatus 400 for adjusting image display according to an embodiment. Figure 6 As shown, an apparatus 400 for adjusting image display includes: an acquisition module 402, a target screen resolution determination module 404, a synthesis module 406, and a display module 408. Among them:
[0076] The acquisition module 402 is used to acquire the layer image resolution corresponding to each layer to be displayed.
[0077] The target screen resolution determination module 404 is used to select a target screen resolution from the candidate screen resolutions in ascending order of resolution, and the layer image resolution corresponding to each layer is less than or equal to the target screen resolution.
[0078] The synthesis module 406 is used to synthesize the layer images corresponding to each layer based on the target screen resolution to obtain an image to be displayed.
[0079] The display module 408 is configured to display the image to be displayed based on the target screen resolution.
[0080] The image display adjustment device 400 in this embodiment obtains the layer image resolution corresponding to each layer to be displayed; selects the target screen resolution from the candidate screen resolutions in order of resolution from small to large, and the layer image resolution corresponding to each layer is less than or equal to the target screen resolution; synthesizes the layer images corresponding to each layer based on the target screen resolution to obtain the image to be displayed; displays the image to be displayed based on the target screen resolution, sets the screen target resolution according to the size of each layer to be displayed, determines the resolution of the synthesized output image to be displayed, and selects the target screen resolution from the candidate screen resolutions in order of resolution from small to large to limit the resolution of the synthesized image to be displayed, so as to save the load of the image display data transmission module and reduce power consumption.
[0081] In one embodiment, the acquisition module 402 is also used to receive layer application requests sent by each application, and the layer application request carries the layer image resolution to be displayed; if the image refresh cycle arrives, the layer image resolution corresponding to each layer to be displayed corresponding to each application is obtained based on the layer application request.
[0082] The image display adjustment device 400 in this embodiment has different layer image resolutions corresponding to different layers due to different image refresh cycles, so that different target screen resolutions can be dynamically obtained, and images of different resolutions to be displayed are synthesized based on the target screen resolution. The screen resolution is dynamically set according to the size of the layer image to be displayed on the screen, thereby achieving the purpose of reducing system load and reducing power consumption.
[0083] In one embodiment, the candidate screen resolutions include at least two candidate screen resolutions, and the target screen resolution determination module 404 is further used to select adjacent first and second screen resolutions from the candidate screen resolutions in order from small to large, and the first screen resolution is smaller than the second screen resolution; if the layer image resolutions corresponding to each layer are smaller than or equal to the first screen resolution, then the first screen resolution is determined to be the target screen resolution.
[0084] The image display adjustment device 400 in this embodiment selects adjacent first screen resolution and second screen resolution in order from small to large resolution, and by comparing the layer image resolution corresponding to each layer with the first smaller screen resolution, the target screen resolution can be quickly determined when the conditions are met.
[0085] In one embodiment, the target screen resolution determination module 404 is also used to determine the second screen resolution as the target screen resolution if any layer image resolution corresponding to each layer is greater than the first screen resolution, and the layer image resolutions corresponding to each layer are less than or equal to the second screen resolution.
[0086] In this embodiment, if the current candidate screen resolution cannot be used as the target screen resolution through judgment, the layer image resolution corresponding to each layer is compared with the next larger and adjacent candidate screen resolution, so that the target screen resolution can be determined quickly and accurately.
[0087] In one embodiment, the synthesis module 406 is also used to obtain the position information and layer image resolution of the layer images corresponding to each layer; based on the position information and the layer image resolution, the layer images corresponding to each layer are synthesized to obtain the image to be displayed, so that the image resolution of the image to be displayed is the target screen resolution.
[0088] The image display adjustment device 400 in this embodiment performs image synthesis on the layer images corresponding to each layer according to the position information and layer image resolution of the layer images corresponding to each layer, and the image resolution of the image to be displayed is the target screen resolution. Since the target screen resolution is the minimum candidate screen resolution that meets the conditions and is selected in order from small to large, the image data is also the dynamically changing minimum image data that meets the conditions. Therefore, when the image to be displayed is transmitted to the screen for display through the image display data transmission module, the load of the image display data transmission module can be saved and the power consumption can be reduced.
[0089] For the specific definition of the device for image display adjustment, please refer to the definition of the method for image display adjustment above, which will not be repeated here. Each module in the above-mentioned device for image display adjustment can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0090] Figure 7 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Figure 7 As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement the image display adjustment method provided in each of the above embodiments. The internal memory provides a cache operating environment for the operating system computer program in the non-volatile storage medium. The electronic device may be a mobile phone, a server, etc.
[0091] The implementation of each module in the device for adjusting image display provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored in a memory of a terminal or a server. When the computer program is executed by a processor, the method for adjusting image display described in the embodiment of the present application is implemented.
[0092] The present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, enable the processors to execute the image display adjustment method described in the present application.
[0093] A computer program product comprising instructions, when running on a computer, enables the computer to execute the image display adjustment method described in the embodiments of the present application.
[0094] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0095] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for adjusting image display, characterized in that: include: Get the layer image resolution corresponding to each layer to be displayed; Selecting a target screen resolution from the candidate screen resolutions in ascending order of resolution, wherein the layer image resolutions corresponding to each layer are less than or equal to the target screen resolution; the candidate screen resolutions are screen resolutions supported by the terminal; Get the location information and resolution of the layer images corresponding to each layer; Performing image synthesis on the layer images corresponding to the respective layers based on the position information and the layer image resolution to obtain an image to be displayed, so that the image resolution of the image to be displayed is the target screen resolution; The image to be displayed is displayed based on the target screen resolution.
2. The method according to claim 1, characterized in that Before obtaining the layer image resolution corresponding to each layer to be displayed, the method further includes: Receive a layer application request sent by each application, wherein the layer application request carries a layer image resolution to be displayed; The step of obtaining the layer image resolution corresponding to each layer to be displayed includes: If the image refresh cycle arrives, the layer image resolution corresponding to each layer to be displayed corresponding to each application is obtained based on the layer application request.
3. The method according to claim 1, characterized in that The candidate screen resolutions include at least two candidate screen resolutions, the target screen resolution is selected from the candidate screen resolutions in ascending order of resolution, and the layer image resolutions corresponding to each layer are all less than or equal to the target screen resolution, including: Selecting adjacent first and second screen resolutions from candidate screen resolutions in ascending order of resolution, wherein the first screen resolution is smaller than the second screen resolution; If the layer image resolutions corresponding to the various layers are all less than or equal to the first screen resolution, the first screen resolution is determined to be the target screen resolution.
4. The method according to claim 3, characterized in that The step of selecting a target screen resolution from candidate screen resolutions in ascending order of resolution, wherein the layer image resolutions corresponding to each layer are less than or equal to the target screen resolution comprises: If any layer image resolution corresponding to each layer is greater than the first screen resolution, and the layer image resolutions corresponding to each layer are less than or equal to the second screen resolution, the second screen resolution is determined to be the target screen resolution.
5. The method according to claim 1, characterized in that The step of synthesizing the layer images corresponding to each layer based on the position information and the layer image resolution to obtain the image to be displayed includes: The layer images corresponding to each layer are synthesized based on the position information, the layer image resolution and the transparency to obtain the image to be displayed.
6. A device for adjusting image display, characterized in that: include: An acquisition module, used to acquire the layer image resolution corresponding to each layer to be displayed; A target screen resolution determination module, used to select a target screen resolution from candidate screen resolutions in ascending order of resolution, wherein the layer image resolutions corresponding to each layer are less than or equal to the target screen resolution; the candidate screen resolution is a screen resolution supported by the terminal; A synthesis module, used to obtain the position information and the layer image resolution corresponding to each layer; perform image synthesis on the layer images corresponding to each layer based on the position information and the layer image resolution to obtain an image to be displayed, so that the image resolution of the image to be displayed is the target screen resolution; A display module is used to display the image to be displayed based on the target screen resolution.
7. The device according to claim 6, characterized in that The acquisition module is also used to receive layer application requests sent by each application, and the layer application requests carry the layer image resolution to be displayed; if the image refresh cycle arrives, the layer image resolution corresponding to each layer to be displayed corresponding to each application is obtained based on the layer application request.
8. The device according to claim 6, characterized in that The candidate screen resolutions include at least two candidate screen resolutions, and the target screen resolution determination module is further used to select a first adjacent screen resolution and a second adjacent screen resolution from the candidate screen resolutions in ascending order of resolution, wherein the first screen resolution is smaller than the second screen resolution; If the layer image resolutions corresponding to the various layers are all less than or equal to the first screen resolution, the first screen resolution is determined to be the target screen resolution.
9. The device according to claim 8, characterized in that The target screen resolution determination module is also used to determine that the second screen resolution is the target screen resolution if any layer image resolution corresponding to each layer is greater than the first screen resolution, and the layer image resolutions corresponding to each layer are less than or equal to the second screen resolution.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory. When the computer program is executed by the processor, the processor executes the method for adjusting image display according to any one of claims 1 to 5.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for adjusting image display according to any one of claims 1 to 5 is implemented.
12. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is enabled to execute the image display adjustment method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Display substrate, display device and display substrate resolution adjustment method
CN104952425A
Image resolution adjustment method and mobile terminal
CN107071264A
Method for processing application program and mobile device
CN107615770A
Method, apparatus and computer storage medium for adjusting resolution
CN109168029A
Layer synthesis method and device, electronic equipment and storage medium
CN110377264A
