Resolution switching method and device for interactive interface, equipment and storage medium

By generating and displaying multiple switching transition images during the resolution switching process, the problem of screen flickering or lagging during the resolution switching process in the prior art is solved, and a smoother resolution switching effect is achieved.

CN119621203APending Publication Date: 2025-03-14GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311192940.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-14
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The prior art is prone to screen flickering or stuttering during resolution switching, and the resolution switching effect is poor.

Method used

By receiving resolution switching instructions, the target resolution is determined, and the current screen image is preprocessed according to the target resolution and interface elements, multiple switching transition images are generated. The display parameters of these images vary from the current resolution to the target resolution in order, and the transition images are displayed sequentially during the switching process.

Benefits of technology

The changes in the interactive interface during resolution switching are smoother and smoother, reducing the screen flickering or lag, and effectively improving the resolution switching effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621203A_ABST
    Figure CN119621203A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a resolution switching method and device of an interactive interface, equipment and a storage medium. According to the technical scheme provided by the embodiment of the invention, when the resolution switching instruction is received, the current screen image is subjected to image preprocessing according to the target resolution and one or more interface elements displayed on the screen, and after the multiple switching transition images are obtained, the resolution of the screen is switched from the current resolution to the target resolution, so that the switching efficiency of the screen is improved. Due to the fact that the display parameters, corresponding to the same interface element, in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting sequence. In the process of sequentially displaying the multiple switching transition images, the change of each interface element on the screen from the current resolution to the target resolution is displayed, the situation that the screen flickers or is stuck easily in the resolution switching process is reduced, and the resolution switching effect is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology, and in particular to a method, device, equipment and storage medium for switching resolution of an interactive interface. Background Art

[0002] With the development of display technology and image processing technology, high-resolution displays are becoming more and more widely used, such as displays supporting 2K resolution and 4K resolution. These high-resolution displays have more outstanding effects in displaying details and image quality.

[0003] In order to meet the display needs of users at different resolutions and frame rates, electronic devices can switch between different resolutions. Currently, when switching between different resolutions, the interactive interface displayed on the screen is generally directly switched to the interactive interface corresponding to the target resolution. During the resolution switching process, the screen is prone to flickering or freezing, and the resolution switching effect is poor. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, device and storage medium for switching the resolution of an interactive interface to solve the technical problems that the resolution switching scheme in the related art is prone to screen flickering or freezing during the resolution switching process and the resolution switching effect is poor, thereby effectively improving the resolution switching effect.

[0005] In a first aspect, an embodiment of the present application provides a method for switching resolution of an interactive interface, comprising:

[0006] receiving a resolution switching instruction, and determining a target resolution corresponding to the resolution switching instruction;

[0007] determining one or more interface elements to display on the screen;

[0008] Performing image preprocessing on the current screen image according to the target resolution and the interface element to obtain a plurality of switching transition images, wherein display parameters corresponding to the same interface element in the plurality of switching transition images are changed from display parameters corresponding to the current resolution to display parameters corresponding to the target resolution according to the sorting order of the plurality of switching transition images;

[0009] The resolution of the screen is switched from the current resolution to the target resolution, and a plurality of the switching transition images are displayed according to the sorting order.

[0010] In a second aspect, an embodiment of the present application provides a resolution switching device for an interactive interface, including a switching response module, an element determination module, a transition processing module, and a switching processing module, wherein:

[0011] The switching response module is used to receive a resolution switching instruction and determine a target resolution corresponding to the resolution switching instruction;

[0012] The element determination module is used to determine one or more interface elements displayed on the screen;

[0013] The transition processing module is used to perform image preprocessing on the current screen image according to the target resolution and the interface element to obtain multiple switching transition images, wherein the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images;

[0014] The switching processing module is used to switch the resolution of the screen from the current resolution to the target resolution, and display a plurality of the switching transition images according to the sorting order.

[0015] In a third aspect, an embodiment of the present application provides a resolution switching device for an interactive interface, including: a memory and one or more processors;

[0016] The memory is used to store one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the resolution switching method of the interactive interface as described in the first aspect.

[0018] In a fourth aspect, an embodiment of the present application provides a storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute the resolution switching method of the interactive interface as described in the first aspect.

[0019] The embodiment of the present application performs image preprocessing on the current screen image according to the target resolution and one or more interface elements displayed on the screen upon receiving a resolution switching instruction, obtains multiple switching transition images, switches the screen resolution from the current resolution to the target resolution, and sequentially displays the multiple switching transition images. Since the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution in the sorting order of the multiple switching transition images, the changes of each interface element on the screen from the current resolution to the target resolution are displayed in the process of sequentially displaying the multiple switching transition images. The changes of the interactive interface during the resolution switching process are smoother and more fluent, which reduces the screen flickering or freezing during the resolution switching process, and effectively improves the resolution switching effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flowchart of a method for switching resolution of an interactive interface provided by an embodiment of the present application;

[0021] Figure 2 is a flowchart of another method for switching resolution of an interactive interface provided by an embodiment of the present application;

[0022] Figure 3 This is a schematic diagram of a switching transition image generation process provided by an embodiment of the present application;

[0023] Figure 4 This is a schematic diagram of a resolution switching effect of an interactive interface provided in an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of a switching transition image provided by an embodiment of the present application;

[0025] Figure 6 It is a structural schematic diagram of a resolution switching device for an interactive interface provided in an embodiment of the present application;

[0026] Figure 7 It is a structural schematic diagram of a resolution switching device for an interactive interface provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The above process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0028] Figure 1 A flowchart of a resolution switching method for an interactive interface provided in an embodiment of the present application is given. The resolution switching method for an interactive interface provided in an embodiment of the present application can be executed by a resolution switching device for an interactive interface. The resolution switching device for an interactive interface can be implemented by hardware and / or software and integrated in a resolution switching device for an interactive interface.

[0029] The following description is made by taking the resolution switching device of the interactive interface to perform the resolution switching method of the interactive interface as an example. Figure 1 , the resolution switching method of the interactive interface includes:

[0030] S110: Receive a resolution switching instruction, and determine a target resolution corresponding to the resolution switching instruction.

[0031] The resolution switching instruction provided in this solution is used to instruct to switch the screen from the current resolution to the target resolution. Optionally, the resolution switching instruction can be triggered by a resolution switching control or by a physical button configured for switching resolutions.

[0032] Exemplarily, after receiving a resolution switching instruction, the target resolution corresponding to the resolution switching instruction is determined. Optionally, the resolution switching instruction provided by the present solution may carry a corresponding target resolution, for example, a corresponding resolution switching instruction is generated in response to a user's selection of a target resolution, and the target resolution may be determined directly according to the resolution switching instruction. It is also possible to pre-set a switching order between different resolutions, and the resolution switching instruction may not carry a target resolution. When a resolution switching instruction is received, the next resolution of the current resolution is determined as the target resolution according to the switching order. Among them, different resolutions may be a combination of one or more of different resolutions such as 720P, 1080P, 2K, 4K, 8K, etc.

[0033] S120: Determine one or more interface elements displayed on the screen.

[0034] Exemplarily, after receiving the resolution switching instruction, one or more interface elements currently displayed on the screen are determined. Optionally, the interface elements provided by this solution can be pictures, icons, shapes, etc., including interface elements that can be displayed as interface backgrounds, interactive icons, etc. in the interactive interface.

[0035] Among them, different interface elements are displayed at different positions of the interactive interface on the screen, and at different resolutions, the display parameters (such as display size, position, etc.) of the interface elements displayed on the screen may be different.

[0036] S130: Preprocess the current screen image according to the target resolution and interface elements to obtain multiple switching transition images, and the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images.

[0037] Exemplarily, after determining the target resolution and one or more interface elements displayed on the screen, the current screen image (the image currently displayed on the screen) is preprocessed according to the target resolution and the one or more interface elements to obtain multiple switching transition images after the current screen image is preprocessed.

[0038] The multiple switching transition images provided by the present solution are arranged in a sorting order, wherein the closer the switching transition image is to the current screen image, the higher its sorting order is. For example, the closer the display size and display position of the display element in the switching transition image are to the display size and display position of the display element in the current screen image, the smaller the corresponding sorting order is. The display parameters of the same interface element in the multiple switching transition images provided by the present solution are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution in a sorting order, that is, for the same interface element, its display parameters increase as the sorting order of the switching transition images in which it is located is closer to the display parameters of the interface element at the target resolution. Among them, the display parameters of the interface element in the last switching transition image are changed to the display parameters corresponding to the target resolution or close to the display parameters corresponding to the target resolution.

[0039] In one embodiment, the display parameters provided by the present solution may include size information, position information, etc. For example, for an interface element, its display size and / or display position on the screen at the current resolution is different from its display size and / or display position at the target resolution, and the display size and / or display position of the interface element in multiple switching transition images gradually changes to the display size and / or display position corresponding to the target resolution according to the sorting order of the switching transition images.

[0040] S140: Switching the resolution of the screen from the current resolution to the target resolution, and displaying a plurality of switching transition images according to the sorting order.

[0041] Exemplarily, the screen switching resolution is controlled to switch the screen resolution from the current resolution to the target resolution, that is, the physical resolution of the screen is switched from the current resolution to the target resolution. In addition, in the process of switching the resolution, multiple switching transition images are displayed in sequence according to the above-mentioned sorting order. Since the display parameters corresponding to the same interface element in the multiple switching transition images change from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images, the display parameters of one or more interface elements are displayed in the process of displaying the multiple switching transition images in the sorting order. The change process from the current resolution to the target resolution is also displayed, instead of directly rendering and displaying the final screen image according to the target resolution, which reduces the long-term freeze and flickering during the resolution switching process. The display of each interface element can smoothly transition from the current resolution to the target resolution, thereby improving the resolution switching effect of the interactive interface.

[0042] In a possible embodiment, the resolution switching method of the interactive interface provided by the present solution further includes: saving the multiple switching transition images in a display buffer after preprocessing the current screen image according to the target resolution and interface elements to obtain multiple switching transition images.

[0043] Correspondingly, the resolution switching method of the interactive interface provided by the present solution can be: switching the resolution of the screen from the current resolution to the target resolution, and displaying multiple switching transition images in the display buffer according to the sorting order.

[0044] Exemplarily, after the switching transition image is generated, the generated switching transition images are sequentially saved in the display buffer. The display buffer is used to save the image frames to be displayed on the screen, and the device will sequentially obtain the image frames according to the sorting order added to the display buffer and display them on the screen. The sorting order of the multiple switching transition images added to the display buffer corresponds to the sorting order of the display parameters of the interface elements from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution.

[0045] Furthermore, the screen resolution is switched from the current resolution to the target resolution, and the switching transition images are obtained from the display buffer and displayed on the screen in sequence according to the sorting order saved in the display buffer. Since the display of the transition switching images is performed according to the sorting order added to the display buffer, it can accurately reflect the change process of each interface element on the screen from the current resolution to the target resolution, thereby achieving smooth resolution switching of the interactive interface.

[0046] In a possible embodiment, the resolution switching method of the interactive interface provided by the present solution further includes: saving the multiple switching transition images in a set buffer after preprocessing the current screen image according to the target resolution and interface elements to obtain multiple switching transition images.

[0047] Correspondingly, the resolution switching method of the interactive interface provided by the present solution includes: when switching the screen resolution from the current resolution to the target resolution and displaying multiple switching transition images according to the sorting order:

[0048] S151: When a resolution switching condition is met, the resolution of the screen is switched from the current resolution to the target resolution, and a plurality of switching transition images in the setting buffer are written into the display buffer.

[0049] S152: Displaying the plurality of switching transition images in the display buffer according to the sorting order.

[0050] Exemplarily, this solution can set a setting buffer for the switching transition image, and in the process of generating the switching transition image, the generated switching transition image is saved in the setting buffer in sequence. Further, it is determined whether the set resolution switching condition is met, and when it is determined that the resolution switching condition is met, the resolution of the screen is switched from the current resolution to the target resolution, and multiple switching transition images in the setting buffer are written into the display buffer in the sorting order of the switching transition image saved in the setting buffer, and the switching transition images are obtained from the display buffer in sequence and displayed on the screen in the sorting order written into the display buffer. Since the display of the transition switching image is performed in the sorting order added to the display buffer, it can accurately reflect the change process of each interface element on the screen from the current resolution to the target resolution, and realize the smooth resolution switching of the interactive interface. Moreover, after pre-generating multiple switching transition images, the resolution switching and displaying of the switching transition images are executed, which can ensure that the switching transition images are correctly and timely obtained for display, reduce the situation of screen flickering or freezing in the switching process caused by the untimely generation of the switching transition images, and effectively ensure the smooth resolution switching process.

[0051] In a possible embodiment, the resolution switching method of the interactive interface provided by the present solution, after saving multiple switching transition images in a set buffer, further includes: determining that the resolution switching conditions are met when multiple switching transition images of each interface element from the current resolution to the target resolution are successfully saved in the set buffer.

[0052] Exemplarily, in the process of switching transition images, it is determined whether the generated switching transition image is successfully saved in the set buffer. If all the generated switching transition images are successfully saved in the set buffer, it is determined that the resolution switching condition is met. If the switching transition image fails to be saved in the set buffer, the switching transition image is regenerated and after the switching transition image is successfully saved in the set buffer, the next switching transition image is continued to be produced until all the generated switching transition images are saved in the set buffer. This scheme sets the resolution switching condition to successfully save multiple switching transition images of each interface element from the current resolution to the target resolution in the set buffer, thereby ensuring that multiple switching transition images have been generated when the resolution switching is started, thereby effectively ensuring the smoothness of the resolution switching process.

[0053] In a possible embodiment, after the resolution of the screen is switched from the current resolution to the target resolution and multiple switching transition images are displayed according to the sorting order, the screen can be post-processed according to the target resolution to optimize the display effect of the screen at the target resolution. The post-processing can be a combination of one or more of screen image calibration, image adjustment, contrast adjustment, pixel density adjustment, refresh rate adjustment, and aspect ratio adjustment. Optionally, the display buffer can be rebuilt according to the target resolution to provide more suitable video memory space for the image frames that need to be displayed at the new resolution, thereby improving the screen display effect after switching the resolution.

[0054] In the above, when a resolution switching instruction is received, the current screen image is preprocessed according to the target resolution and one or more interface elements displayed on the screen to obtain multiple switching transition images, and then the screen resolution is switched from the current resolution to the target resolution, and the multiple switching transition images are displayed sequentially. Since the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images, the changes of each interface element on the screen from the current resolution to the target resolution are displayed in the process of sequentially displaying the multiple switching transition images. The changes of the interactive interface during the resolution switching process are smoother and more fluent, which reduces the screen flickering or freezing during the resolution switching process, and effectively improves the resolution switching effect.

[0055] Based on the above embodiments, Figure 2 A flowchart of another method for switching resolution of an interactive interface provided by an embodiment of the present application is given. The method for switching resolution of the interactive interface is a specific embodiment of the method for switching resolution of the interactive interface described above. Figure 2 , the resolution switching method of the interactive interface includes:

[0056] S210: Receive a resolution switching instruction, and determine a target resolution corresponding to the resolution switching instruction.

[0057] S220: Determine one or more interface elements displayed on the screen.

[0058] S230: Determine first size information and first position information of each interface element at the current resolution, and determine second size information and second position information of each interface element at the target resolution.

[0059] The display parameters provided by the present solution include size information and position information. Exemplarily, after determining the target resolution and one or more interface elements displayed on the screen, the first display parameter of each interface element corresponding to the current resolution and the second display parameter corresponding to the target resolution are determined, that is, the first size information and the first position information of each interface element corresponding to the current resolution and the second size information and the second position information corresponding to the target resolution are determined.

[0060] In one embodiment, different element resource files may be configured for different resolutions, and multiple interface elements of corresponding resolutions may be recorded in the element resource files. Optionally, the display parameters of each interface element at the corresponding resolution may also be recorded. When the interface element needs to be called for display, the corresponding interface element may be obtained from the corresponding element resource file according to the current resolution, and the corresponding image may be rendered for display according to the display parameters of the interface element.

[0061] Exemplarily, after determining the first size information and the first position information of each interface element at the current resolution, the element resource file corresponding to the target resolution is determined, and the corresponding second size information and the second position information of each interface element at the target resolution are determined in the element resource file corresponding to the target resolution.

[0062] S240: performing image preprocessing on the current screen image according to the first size information, the first position information, the second size information, and the second position information of each interface element to obtain a plurality of switching transition images.

[0063] Exemplarily, the current screen image is preprocessed according to the first size information, the first position information, the second size information and the second position information of each interface element determined above to obtain a plurality of switching transition images.

[0064] Among them, the display parameters corresponding to the same interface element in the multiple switching transition images provided by this scheme change from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images, that is, the size information and position information of the interface elements in the multiple switching transition images change from the first size information and the first position information corresponding to the current resolution to the second size information and the second position information corresponding to the target resolution. Among them, the display parameters corresponding to the same interface element in the multiple switching transition images change from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images. This scheme obtains multiple switching transition images by performing image preprocessing on the current screen image according to the first size information, the first position information, the second size information and the second position information of each interface element. The multiple switching transition images can accurately reflect the change process of the size and position of each interface element in the process of switching from the current resolution to the target resolution, and the transition of the interactive interface during the resolution switching process is smoother and more fluent.

[0065] In one possible embodiment, Figure 3 As shown in a schematic diagram of a switching transition image generation process, the resolution switching method of the interactive interface provided by the present solution performs image preprocessing on the current screen image according to the first size information, the first position information, the second size information and the second position information of each interface element to obtain multiple switching transition images, including:

[0066] S241: Determine a plurality of element change images of each interface element from a current resolution to a target resolution according to the first size information, the first position information, the second size information, and the second position information of each interface element.

[0067] S242: performing image preprocessing on the current screen image according to the multiple element change images to obtain multiple switching transition images.

[0068] Exemplarily, for each interface element, multiple element change images of the interface element from the current resolution to the target resolution are generated according to the first size information, the first position information, the second size information, and the second position information of the interface element.

[0069] Optionally, for each interface element, one or more image preprocessing methods of scaling, interpolation and displacement of the interface element to different degrees may be used to determine the corresponding element change image, as well as the third size information and third position information corresponding to each element change image, according to the change from the first size information and the first position information to the second size information and the second position information. It is understandable that the greater the scaling and displacement corresponding to the multiple element change images generated, the closer the corresponding third size information and the third position information are to the second size information and the second position information. Optionally, multiple switching transition images may be generated in the order of increasing scaling and displacement, and the generation order of the switching transition images is the sorting order.

[0070] Among them, the number of element change images generated corresponding to each interface element is consistent, and the size and position corresponding to the last element change image are consistent with the second size information and the second position information corresponding to the target resolution of the interface element, or close to the second size information and the second position information corresponding to the target resolution of the interface element. According to the third size information and the third position information corresponding to the multiple element change images generated for the same interface element, the first size information and the first position information corresponding to the current resolution are sequentially changed to the second size information and the second position information corresponding to the target resolution.

[0071] Furthermore, the current screen image is preprocessed according to the multiple element change images of each interface element determined above to obtain multiple switching transition images. The number of switching transition images is consistent with the number of element change images generated corresponding to each interface element. Each switching transition image displays an element change image corresponding to each interface element.

[0072] For example, for each interface element on the current screen image, the corresponding element change image is obtained in sequence, and according to the third size information and third position information corresponding to the element change image, the position of these element change images on the current screen image is determined, and these element change images are added to the current screen image to render the corresponding switching transition image (the interface elements corresponding to the current resolution in the current screen image may be removed, or the image before the interface elements are added for rendering is used as the current screen image). At this time, the interface elements corresponding to the current change rate are not displayed in the switching transition image, but are replaced by the element change image corresponding to the third size information and third position information.

[0073] This solution determines multiple element change images of each interface element from the current resolution to the target resolution, and performs image preprocessing on the current screen image based on the multiple element change images to obtain multiple switching transition images. The multiple switching transition images can accurately reflect the size and position changes of each interface element during the resolution switching process, and the changes of the interactive interface during the resolution switching process are smoother.

[0074] In a possible embodiment, the resolution switching method of the interactive interface provided by the present solution may perform image optimization processing on the multiple element change images when preprocessing the current screen image according to multiple element change images to obtain multiple switching transition images, and generate multiple switching transition images based on the multiple element change images after optimization processing.

[0075] Exemplarily, after obtaining multiple element change images of each interface element, each element change image is optimized, for example, the element change image is filtered, color corrected, image enhanced, denoised, and anti-aliased, and then multiple switching transition images are generated based on the multiple element change images after optimization.

[0076] This solution optimizes the element change image to improve the picture quality of the element change image in the generated switching transition image, reduces the problem of interface elements being blurred or of poor quality during the resolution switching process due to poor element change image quality during the display of multiple switching transition images, and improves the smoothness and clarity of the interactive interface during the resolution switching process.

[0077] S250: Switching the resolution of the screen from the current resolution to the target resolution, and displaying a plurality of switching transition images according to the sorting order.

[0078] like Figure 4 A schematic diagram of the resolution switching effect of an interactive interface is provided, in which S1 is the current screen image at the current resolution, A11 and A12 are the interface elements displayed on the screen at the current resolution, S2 is the target screen image of the current screen image S1 at the target resolution after the resolution switching, and A21 and A22 are the interface elements A11 and A12 displayed on the screen at the target resolution after the resolution switching. The target resolution (e.g., 4K) is greater than the current resolution (e.g., 2K). The positions of the interface elements A11 and A12 change and their sizes become smaller after the resolution switching.

[0079] The number of switching transition images generated by this solution can be pre-configured. Figure 5 A switching transition image schematic diagram is provided. Figure 5Taking the generation of three switching transition images as an example for an exemplary description, after receiving the resolution switching instruction, the target resolution and the interface elements A11 and A12 displayed on the screen are determined. The first size information, first position information, second size information and second position information of the interface elements A11 and A12 are determined. It is assumed that the current screen image is preprocessed according to the first size information, first position information, second size information and second position information to obtain three switching transition images S11, S12 and S13. The interface elements A11 and A12 are respectively transformed into element change images A111 and A121 in the switching transition image S11, and the interface elements A11 and A12 are respectively transformed into element change images A112 and A122 in the switching transition image S12. Interface elements A11 and A12 are transformed into element change images A113 and A123 respectively in the switching transition image S13, wherein the positions and sizes of element change images A111-A113 in the switching transition image gradually approach the position and size of interface element A21 in the target screen image S2, and the positions and sizes of element change images A121-A123 in the switching transition image gradually approach the position and size of interface element A22 in the target screen image S2.

[0080] After generating the switching transition images S11, S12 and S13, the screen resolution is switched from the current resolution to the target resolution, and the switching transition images S11, S12 and S13 are displayed in sequence. The user can observe the change process of the current screen image from the switching transition images S11, S12 and S13 to the target screen image S2 on the screen. During the change process, the interface elements A11 and A12 respectively pass through the element change images A111-A113 and the element change images A121-A123 until they are changed into the interface elements A21 and A22. The interface elements A11 and A12 present a display effect of smooth transition to the interface elements A21 and A22, instead of directly switching from the interface elements A11 and A12 to the interface elements A21 and A22.

[0081] In the above, when receiving the resolution switching instruction, the current screen image is image preprocessed according to the target resolution and one or more interface elements displayed on the screen to obtain multiple switching transition images, and then the screen resolution is switched from the current resolution to the target resolution, and the multiple switching transition images are displayed in sequence. Since the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images, the changes of each interface element on the screen from the current resolution to the target resolution are displayed in the process of sequentially displaying the multiple switching transition images. The change of the interactive interface in the resolution switching process is smoother and more fluent, and the screen flickering or freezing that is easy to occur in the resolution switching process is reduced, and the resolution switching effect is effectively improved. At the same time, according to the first size information, the first position information, the second size information and the second position information of each interface element, the current screen image is image preprocessed to obtain multiple switching transition images, and the multiple switching transition images can accurately reflect the change process of the size and position of each interface element in the process of switching from the current resolution to the target resolution, and the change of the interactive interface in the resolution switching process is smoother and more fluent.

[0082] Figure 6 A schematic diagram of the structure of a resolution switching device for an interactive interface provided by an embodiment of the present application is given. Figure 6 The resolution switching device of the interactive interface includes a switching response module 61, an element determination module 62, a transition processing module 63 and a switching processing module 64.

[0083] Among them, the switching response module 61 is used to receive a resolution switching instruction and determine the target resolution corresponding to the resolution switching instruction; the element determination module 62 is used to determine one or more interface elements displayed on the screen; the transition processing module 63 is used to perform image preprocessing on the current screen image according to the target resolution and the interface elements to obtain multiple switching transition images, and the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images; the switching processing module 64 is used to switch the resolution of the screen from the current resolution to the target resolution, and display multiple switching transition images according to the sorting order.

[0084] In the above, when a resolution switching instruction is received, the current screen image is preprocessed according to the target resolution and one or more interface elements displayed on the screen to obtain multiple switching transition images, and then the screen resolution is switched from the current resolution to the target resolution, and the multiple switching transition images are displayed sequentially. Since the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images, the changes of each interface element on the screen from the current resolution to the target resolution are displayed in the process of sequentially displaying the multiple switching transition images. The changes of the interactive interface during the resolution switching process are smoother and more fluent, which reduces the screen flickering or freezing during the resolution switching process, and effectively improves the resolution switching effect.

[0085] In a possible embodiment, when the transition processing module 63 performs image preprocessing on the current screen image according to the target resolution and the interface elements to obtain multiple switching transition images, it includes:

[0086] Determine first size information and first position information of each interface element at the current resolution;

[0087] Determine second size information and second position information of each interface element at the target resolution;

[0088] The current screen image is preprocessed according to the first size information, the first position information, the second size information and the second position information of each interface element to obtain a plurality of switching transition images.

[0089] In a possible embodiment, when the transition processing module 63 performs image preprocessing on the current screen image according to the first size information, the first position information, the second size information, and the second position information of each interface element to obtain multiple switching transition images, the following steps are included:

[0090] Determine, according to the first size information, the first position information, the second size information, and the second position information of each interface element, a plurality of element change images from a current resolution to a target resolution of each interface element;

[0091] The current screen image is preprocessed according to the multiple element change images to obtain multiple switching transition images.

[0092] In a possible embodiment, when the transition processing module 63 performs image preprocessing on the current screen image according to the multiple element change images to obtain multiple switching transition images, it includes:

[0093] The multiple element change images are subjected to image optimization processing, and multiple switching transition images are generated according to the multiple element change images after the optimization processing.

[0094] In a possible embodiment, after the transition processing module 63 performs image preprocessing on the current screen image according to the target resolution and the interface elements to obtain a plurality of switching transition images, the plurality of switching transition images are stored in the display buffer;

[0095] When the switching processing module 64 switches the resolution of the screen from the current resolution to the target resolution and displays a plurality of switching transition images according to the sorting order, it includes:

[0096] Switches the screen resolution from the current resolution to the target resolution and displays multiple switching transition images in the display buffer according to the sorting order.

[0097] In a possible embodiment, after the transition processing module 63 performs image preprocessing on the current screen image according to the target resolution and the interface elements to obtain a plurality of switching transition images, the plurality of switching transition images are further stored in a set buffer;

[0098] When the switching processing module 64 switches the resolution of the screen from the current resolution to the target resolution and displays a plurality of switching transition images according to the sorting order, it includes:

[0099] When the resolution switching condition is met, the screen resolution is switched from the current resolution to the target resolution, and the multiple switching transition images in the setting buffer are written into the display buffer;

[0100] Displays multiple switching transition images in the display buffer according to a sorted order.

[0101] In a possible embodiment, the resolution switching device of the interactive interface also includes a condition judgment module, which is used to determine whether the resolution switching condition is met when multiple switching transition images of each interface element from the current resolution to the target resolution are successfully saved in a set buffer.

[0102] It is worth noting that in the embodiment of the resolution switching device of the above-mentioned interactive interface, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.

[0103] The embodiment of the present application also provides a resolution switching device for an interactive interface, and the resolution switching device for an interactive interface can be integrated with the resolution switching apparatus for an interactive interface provided in the embodiment of the present application. Figure 7 is a schematic diagram of a resolution switching device for an interactive interface provided by an embodiment of the present application. Figure 7The resolution switching device of the interactive interface includes: an input device 73, an output device 74, a memory 72 and one or more processors 71; the memory 72 is used to store one or more programs; when one or more programs are executed by one or more processors 71, the one or more processors 71 implement the resolution switching method of the interactive interface provided by the above embodiment. The input device 73, the output device 74, the memory 72 and the processor 71 can be connected by a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0104] The memory 72, as a computing device readable storage medium, can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the resolution switching method of the interactive interface provided in any embodiment of the present application (for example, the switching response module 61, the element determination module 62, the transition processing module 63 and the switching processing module 64 in the resolution switching device of the interactive interface). The memory 72 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 72 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 72 may further include a memory remotely arranged relative to the processor 71, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0105] The input device 73 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 74 may include a display device such as a display screen.

[0106] The processor 71 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 72, that is, implements the above-mentioned resolution switching method of the interactive interface.

[0107] The above-mentioned interactive interface resolution switching device, equipment and computer can be used to execute the interactive interface resolution switching method provided in any of the above-mentioned embodiments, and have corresponding functions and beneficial effects.

[0108] An embodiment of the present application also provides a storage medium storing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute the resolution switching method of the interactive interface provided in the above embodiment. The resolution switching method of the interactive interface includes: receiving a resolution switching instruction, and determining a target resolution corresponding to the resolution switching instruction; determining one or more interface elements displayed on the screen; performing image preprocessing on the current screen image according to the target resolution and the interface elements to obtain multiple switching transition images, and the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images; the resolution of the screen is switched from the current resolution to the target resolution, and the multiple switching transition images are displayed according to the sorting order.

[0109] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0110] Of course, the computer executable instructions of a storage medium storing computer executable instructions provided in an embodiment of the present application are not limited to the resolution switching method of the interactive interface provided above, and can also execute related operations in the resolution switching method of the interactive interface provided in any embodiment of the present application.

[0111] The resolution switching device, equipment and storage medium of the interactive interface provided in the above embodiments can execute the resolution switching method of the interactive interface provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the resolution switching method of the interactive interface provided in any embodiment of the present application.

[0112] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments provided herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A method for switching resolution of an interactive interface, characterized in that: include: receiving a resolution switching instruction, and determining a target resolution corresponding to the resolution switching instruction; determining one or more interface elements to display on the screen; Performing image preprocessing on the current screen image according to the target resolution and the interface element to obtain a plurality of switching transition images, wherein display parameters corresponding to the same interface element in the plurality of switching transition images are changed from display parameters corresponding to the current resolution to display parameters corresponding to the target resolution according to the sorting order of the plurality of switching transition images; The resolution of the screen is switched from the current resolution to the target resolution, and a plurality of the switching transition images are displayed according to the sorting order.

2. The method for switching the resolution of an interactive interface according to claim 1, characterized in that: The performing image preprocessing on the current screen image according to the target resolution and the interface element to obtain a plurality of switching transition images includes: Determine first size information and first position information of each of the interface elements at the current resolution; Determine the second size information and the second position information of each of the interface elements at the target resolution; The current screen image is preprocessed according to the first size information, the first position information, the second size information and the second position information of each of the interface elements to obtain a plurality of switching transition images.

3. The method for switching the resolution of an interactive interface according to claim 2, characterized in that: The performing image preprocessing on the current screen image according to the first size information, the first position information, the second size information, and the second position information of each of the interface elements to obtain a plurality of switching transition images includes: Determining, according to the first size information, the first position information, the second size information, and the second position information of each of the interface elements, a plurality of element change images from the current resolution to the target resolution of each of the interface elements; The current screen image is preprocessed according to the multiple element change images to obtain multiple switching transition images.

4. The method for switching the resolution of an interactive interface according to claim 3, characterized in that: The performing image preprocessing on the current screen image according to the multiple element change images to obtain multiple switching transition images includes: The plurality of element change images are subjected to image optimization processing, and a plurality of switching transition images are generated according to the plurality of element change images after the optimization processing.

5. The method for switching the resolution of an interactive interface according to claim 1, characterized in that: After performing image preprocessing on the current screen image according to the target resolution and the interface elements to obtain a plurality of switching transition images, the method further includes: Saving the plurality of switching transition images in a display buffer; The step of switching the resolution of the screen from the current resolution to the target resolution and displaying a plurality of the switching transition images according to the sorting order comprises: The resolution of the screen is switched from the current resolution to the target resolution, and the plurality of switching transition images in the display buffer are displayed according to the sorting order.

6. The method for switching the resolution of an interactive interface according to claim 1, characterized in that: After performing image preprocessing on the current screen image according to the target resolution and the interface elements to obtain a plurality of switching transition images, the method further includes: Saving the plurality of switching transition images in a set buffer; The step of switching the resolution of the screen from the current resolution to the target resolution and displaying a plurality of the switching transition images according to the sorting order comprises: When a resolution switching condition is met, the resolution of the screen is switched from the current resolution to the target resolution, and the plurality of switching transition images in the setting buffer are written into the display buffer; The plurality of switching transition images in the display buffer are displayed according to the sorting order.

7. The method for switching the resolution of an interactive interface according to claim 6, characterized in that: After the plurality of switching transition images are stored in a setting buffer, the method further includes: When a plurality of switching transition images of each of the interface elements from the current resolution to the target resolution are successfully saved in a set buffer, it is determined that the resolution switching condition is met.

8. A resolution switching device for an interactive interface, characterized in that: It includes a switching response module, an element determination module, a transition processing module and a switching processing module, wherein: The switching response module is used to receive a resolution switching instruction and determine a target resolution corresponding to the resolution switching instruction; The element determination module is used to determine one or more interface elements displayed on the screen; The transition processing module is used to perform image preprocessing on the current screen image according to the target resolution and the interface element to obtain multiple switching transition images, wherein the display parameters corresponding to the same interface element in the multiple switching transition images are changed from the display parameters corresponding to the current resolution to the display parameters corresponding to the target resolution according to the sorting order of the multiple switching transition images; The switching processing module is used to switch the resolution of the screen from the current resolution to the target resolution, and display a plurality of the switching transition images according to the sorting order.

9. A resolution switching device for an interactive interface, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the resolution switching method of the interactive interface as described in any one of claims 1-7.

10. A storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to execute the resolution switching method of the interactive interface as described in any one of claims 1-7 when executed by a computer processor.