Screen display method, device and terminal
By determining the virtual resolution of the virtual display screen based on the resolution of the current screen in the terminal, and mapping the touch coordinates of the sliding event to the virtual display screen, the problem of unsmooth sliding in high-resolution screens is solved and a smoother screen is achieved. changes to improve user experience.
Patent Information
- Application Number
- CN202011050647.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-09-29
AI Technical Summary
In a high-resolution game screen, when the user's actual sliding distance is less than the minimum movement unit, the terminal will cause the screen transition to be unsmooth and cause jitter problems, seriously affecting the user experience.
By responding to the sliding event detected by the touch screen, the virtual resolution of the virtual display screen is determined based on the resolution of the current screen, the touch coordinates corresponding to the sliding event are mapped to the virtual display screen, the virtual coordinates are obtained, and based on the virtual resolution and virtual coordinates Determine the virtual screen and realize the sliding of the screen in the real display screen. The virtual resolution is greater than the physical resolution of the real display screen.
The minimum movement unit of the display screen is reduced, the smoothness of screen changes is improved, the screen changes are smoother, and the user experience is improved.
Smart Images

Figure CN114327210B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a screen display method, device and terminal. Background Art
[0002] In recent years, with the development of terminal technology, terminals have been widely used in people's daily work and life. The touch screen has gradually become the mainstream human-computer interaction interface of the terminal due to its convenient operation.
[0003] The touch screen of the terminal is usually superimposed on the surface of the display screen, and the user can operate the terminal by touching the display screen. At present, when identifying the touch point, the touch coordinates reported by the touch screen are mapped to the relative position of the display screen based on the physical resolution of the display screen. At this time, when the touch slides, the identified sliding distance uses one pixel of the display screen as the minimum moving unit. In this way, when displaying a high-resolution game screen, if the user's actual sliding distance is less than the minimum moving unit, the device will slide the screen according to the minimum moving unit, making the screen transition not smooth and there is a jitter problem, which seriously affects the user experience. Summary of the invention
[0004] In view of this, the present disclosure provides a screen display method, device and terminal to solve the deficiencies in the related art.
[0005] According to a first aspect of an embodiment of the present disclosure, a screen display method is provided, the method being applied to a terminal, the method comprising:
[0006] In response to a sliding event detected by the touch screen for a current screen, determining a virtual resolution of a fictitious virtual display screen according to a resolution of the current screen; wherein the virtual resolution is greater than a physical resolution of a real display screen of the terminal;
[0007] Mapping the touch coordinates corresponding to the sliding event to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event;
[0008] Determine a virtual screen of the virtual display screen corresponding to the current screen according to the virtual resolution and the virtual coordinates;
[0009] The sliding of the current picture is realized in the real display screen according to the virtual picture.
[0010] According to a second aspect of an embodiment of the present disclosure, a screen display device is provided. The device is applied to a terminal, and the device includes a determination module, a mapping module, and a processing module, wherein:
[0011] The determination module is configured to determine a virtual resolution of a fictitious virtual display screen according to a resolution of the current screen in response to a sliding event detected by the touch screen for the current screen; wherein the virtual resolution is greater than a physical resolution of a real display screen of the terminal;
[0012] The mapping module is used to map the touch coordinates corresponding to the sliding event to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event;
[0013] The processing module is used to determine the virtual picture of the virtual display screen corresponding to the current picture according to the virtual resolution and the virtual coordinates, and implement the sliding of the current picture in the real display screen according to the virtual picture.
[0014] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute any screen display method provided in the first aspect of the present disclosure.
[0015] According to a fourth aspect of an embodiment of the present disclosure, a terminal is provided, the terminal including:
[0016] processor;
[0017] a memory for storing processor-executable instructions;
[0018] Among them, the processor is configured to implement any screen display method provided in the first aspect of the present disclosure.
[0019] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0020] In the disclosed embodiment, in response to a sliding event for the current screen detected by the touch screen, the virtual resolution of the fictitious virtual display screen is determined according to the resolution of the current screen, and then the touch coordinates corresponding to the sliding event are mapped to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event, thereby determining the virtual screen corresponding to the virtual display screen according to the virtual resolution and the virtual coordinates, and implementing the sliding of the current screen in the real display screen of the terminal according to the virtual screen. Among them, the virtual resolution is greater than the physical resolution of the real display screen. In this way, for sliding events, the minimum moving unit of the display screen can be reduced, and then the smoothness of the screen change can be improved, making the screen change smoother and improving the user experience.
[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0023] Figure 1 is a flow chart of a screen display method according to an embodiment of the present disclosure;
[0024] Figure 2 is a schematic diagram of a real display screen shown in an exemplary embodiment of the present disclosure;
[0025] Figure 3 is a schematic diagram of a virtual display screen shown in an exemplary embodiment of the present disclosure;
[0026] Figure 4 is a flow chart of a screen display method according to an embodiment of the present disclosure;
[0027] Figure 5 is a flow chart of a screen display method according to an embodiment of the present disclosure;
[0028] Figure 6 is a schematic block diagram of a screen display device according to an embodiment of the present disclosure;
[0029] Figure 7 It is a schematic block diagram of a terminal according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0031] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms "a", "the" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0032] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0033] Before introducing the screen display method and device provided by the present disclosure, the screen display method in the related art is first introduced:
[0034] Specifically, when the user slides the screen and triggers a slide event for the current screen, the touch screen will report the touch coordinates corresponding to the slide event. It should be noted that the touch coordinates corresponding to the slide event refer to the coordinates of the starting point and end point of the slide event on the touch screen.
[0035] Accordingly, the terminal maps the touch coordinates to the display screen to obtain the pixel coordinates corresponding to the sliding event. It should be noted that the pixel coordinates corresponding to the sliding event refer to the coordinates of the starting point and the end point corresponding to the sliding event on the display screen.
[0036] Furthermore, after obtaining the pixel coordinates corresponding to the sliding event, the sliding distance corresponding to the sliding event can be calculated, and then the current picture is motion compensated based on the sliding distance to obtain a motion compensated picture, thereby replacing the current picture with the motion compensated picture to visually achieve the effect of picture sliding.
[0037] Referring to the previous description, currently, when identifying touch points, the touch coordinates reported by the touch screen are mapped to the relative position of the display screen based on the physical resolution of the display screen (the physical resolution of the display screen refers to the maximum number of pixels that the display screen can display). At this time, when the touch slides, the identified sliding distance is based on one pixel of the display screen as the minimum moving unit. In this way, when displaying a high-resolution game screen, if the user's actual sliding distance is less than the minimum moving unit, the terminal will slide the screen according to the minimum moving unit, making the screen transition unsmooth and there is a jitter problem, which seriously affects the user experience.
[0038] In view of this, the present disclosure provides a screen display method, device and terminal to reduce display jitter caused by touch sliding operation.
[0039] Figure 1 This is a flow chart of a screen display method according to an embodiment of the present disclosure. The method provided in this embodiment is applied to a terminal. Please refer to Figure 1 , the method provided in this embodiment may include:
[0040] S101. In response to a sliding event on a current screen detected by a touch screen, determine a virtual resolution of a fictitious virtual display screen according to a resolution of the current screen; wherein the virtual resolution is greater than a physical resolution of a real display screen of the terminal.
[0041] The resolution of a picture refers to the number of pixels contained in the picture, and the physical resolution of the actual display screen of the terminal refers to the maximum number of pixels that the actual display screen can display. The resolution of the current picture can be the original resolution of the picture or the display resolution of the picture.
[0042] It should be noted that when a terminal displays a picture, in order to adapt to the physical resolution of the real display screen, the picture is generally scaled, wherein the original resolution of the picture refers to the number of pixels originally contained in the picture before the picture is scaled; and the display resolution of the picture refers to the number of pixels contained in the scaled picture obtained after the picture is scaled (it can be understood that the display resolution of the picture is less than or equal to the physical resolution of the real display screen). In addition, the resolution of the current picture can be obtained from the server corresponding to the client displaying the current picture.
[0043] In the present disclosure, for the convenience of explanation, the physical resolution of the actual display screen is recorded as B, the original resolution of the picture is recorded as A, and the display resolution of the picture is recorded as S.
[0044] Specifically, in one possible implementation, when A is greater than B, the virtual resolution of the virtual display screen may be equal to A. In another possible implementation, when A is less than B, the virtual resolution of the virtual display screen may be equal to an integer multiple of S.
[0045] For example, Figure 2 is a schematic diagram of a real display screen shown in an exemplary embodiment of the present disclosure. Figure 2 In this embodiment, the physical resolution of the actual display screen is 15*26. Assuming that the original resolution of the current screen is 30*52, Figure 3 FIG. 1 is a schematic diagram of a virtual display screen according to an exemplary embodiment of the present disclosure. Figure 3 In this embodiment, the virtual resolution of the virtual display screen is determined to be 30*52.
[0046] S102: Map the touch coordinates corresponding to the sliding event to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event.
[0047] The touch coordinates corresponding to the sliding event may be the coordinates of the starting point and the end point corresponding to the sliding event on the touch screen, and the virtual coordinates corresponding to the sliding event are the pixel coordinates of the starting point and the end point corresponding to the sliding event on the virtual display screen.
[0048] In addition, the specific implementation process of this step may include:
[0049] (1) Determine, according to the virtual resolution, a mapping relationship between a touch coordinate system corresponding to the touch screen of the terminal and a pixel coordinate system corresponding to the virtual display screen.
[0050] The specific implementation process and implementation principle of this step can be found in the description of the relevant technology, which will not be repeated here. For example, in one embodiment, the mapping relationship between the touch coordinate system and the pixel coordinate system corresponding to the virtual display screen is determined as:
[0051] X=K x *p
[0052] Y=K y *q
[0053] Among them, (p, q) is the touch coordinate reported by the touch screen, (X, Y) is the mapped virtual coordinate; Kx and Ky are coefficients related to the physical resolution of the touch screen, the interpolation coefficient and the virtual resolution of the virtual display screen.
[0054] For example, in one embodiment, the physical resolution of the touch screen is 5*5, the interpolation coefficient is 256, and the virtual resolution of the virtual display screen is 20*20. At this time, point (1-64) on the touch screen is mapped to point 1 on the virtual display screen.
[0055] (2) Based on the mapping relationship, the touch coordinates corresponding to the sliding event are mapped to corresponding positions of the virtual display screen to obtain the virtual coordinates corresponding to the sliding event.
[0056] In specific implementation, the touch coordinates may be substituted into the mapping relationship to obtain the corresponding virtual coordinates.
[0057] S103: Determine a virtual screen of the virtual display screen corresponding to the current screen according to the virtual resolution and the virtual coordinates.
[0058] S104: Sliding the current picture on the real display screen according to the virtual picture.
[0059] In a specific implementation, the current screen can be enlarged according to the virtual resolution to obtain the target screen, and then the sliding distance of the virtual display screen corresponding to the sliding event is calculated according to the virtual coordinates, and the target screen is moved and compensated according to the sliding distance to obtain the virtual screen. Furthermore, after obtaining the virtual screen, the virtual screen can be reduced according to the resolution of the current screen, and finally the reduced virtual screen is used to replace the current screen to achieve sliding of the current screen.
[0060] Combined with the above example, for example, the physical resolution of the real display screen is 15*26, the original resolution of the current screen is 30*52, the virtual resolution of the virtual display screen is 30*52, and the calculated sliding distance is 3 pixels upward. At this time, the current screen can be enlarged by 2 times to obtain the target screen, and then the upper 3 rows of pixels of the target screen are cut off, and 3 rows of pixels are added at the bottom to obtain the virtual screen. Then, the virtual screen is reduced to 1 / 2 of the original, and finally, the reduced virtual screen is used to replace the current screen. In this way, from a visual effect point of view, the user feels that the current screen has slid.
[0061] See the previous description. Please also refer to Figure 2 and Figure 3 , if the original resolution of the current screen is 30*52, when the physical resolution of the real display is 15*26, if the size of the real display is 30cm*52cm, then if the touch coordinates corresponding to the sliding event are mapped to the real display (mapped to Figure 2 The actual display screen shown in the figure), the minimum moving unit of the sliding event is a pixel on the actual display screen, which is 2 mm. If the user actually slides 1.1 mm, the screen will slide by 2 mm. At this time, there is a problem of screen jitter.
[0062] Based on the solution provided by the present disclosure, the touch coordinates corresponding to the sliding event are mapped to the virtual display screen, for example, mapped to a virtual display screen with a virtual resolution equal to 30*52 (mapped to Figure 3 In this case, the minimum moving unit of the sliding event is a pixel on the virtual display screen, which is 1 mm. Referring to the previous example, if the user actually slides 1.1 mm, the screen will slide by 1 mm, and the smoothness is greatly improved.
[0063] In the present disclosure, by mapping the touch coordinates corresponding to the sliding event to the virtual display screen, the minimum moving unit of the sliding event is a pixel on the virtual display screen, and the virtual resolution of the virtual display screen is greater than the physical resolution of the real display screen. In this way, when the size of the virtual display screen is the same as the size of the real display screen, the size of a pixel on the virtual display screen must be smaller than the size of a pixel on the real display screen, so that the minimum moving unit recognizable by the terminal becomes smaller, which can improve the accuracy of the recognized sliding distance, and then generate smoother picture changes based on this, which can improve the user experience.
[0064] The screen display method provided by the present disclosure determines the virtual resolution of the fictitious virtual display screen according to the resolution of the current screen in response to the sliding event detected by the touch screen for the current screen, and then maps the touch coordinates corresponding to the sliding event to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event, thereby determining the virtual screen corresponding to the virtual display screen according to the virtual resolution and the virtual coordinates, and sliding the current screen in the real display screen of the terminal according to the virtual screen. The virtual resolution is greater than the physical resolution of the real display screen. In this way, for sliding events, the minimum moving unit of the displayed screen can be reduced, and the smoothness of the screen change can be improved, so that the screen change is smoother and the user experience can be improved.
[0065] Figure 4 is a flow chart of a screen display method according to an embodiment of the present disclosure. Figure 4 The method provided in this embodiment, based on the above embodiment, step S101 may include:
[0066] S401: Select a target resolution from an original resolution and a display resolution of the current picture.
[0067] In a possible implementation, one of the original resolution A of the current picture and the display resolution S can be selected as the target resolution.
[0068] Of course, in another possible implementation of the present disclosure, when the original resolution is greater than or equal to the physical resolution, the original resolution may be determined as the target resolution; and when the original resolution is less than the physical resolution, the actual resolution may be determined as the target resolution.
[0069] For example, in one embodiment, the physical resolution of the actual display screen is 15*26, the original resolution of the currently displayed picture is 30*52, and the display resolution is 15*26 (when actually displayed, the picture is reduced and displayed). At this time, the original resolution is determined as the target resolution.
[0070] For another example, in one possible implementation, the physical resolution of the actual display screen is 20*30, the original resolution of the current picture is 10*15, and the display resolution is 20*30 (when actually displayed, the picture is enlarged and displayed). At this time, the display resolution is determined as the target resolution.
[0071] S402: Determine a candidate magnification factor according to the physical resolution and the target resolution.
[0072] Specifically, the amplification interval can be determined based on the physical resolution and the target resolution, and then the integer in the amplification interval is determined as the candidate amplification factor. The starting point of the amplification interval is the ratio of the physical resolution to the target resolution, and the end point of the amplification interval is the ratio of the physical resolution of the specified multiple to the target resolution. It should be noted that the specified multiple is set according to actual needs. For example, the specified multiple can be set based on the computing power of the terminal. In this embodiment, the specific value of the specified multiple is not limited. The following is an example of a specified multiple of 4.
[0073] Specifically, when the specified multiple is 4, the amplification interval can be expressed as: (B / A 4B / A], and the candidate amplification factor is an integer in this interval (B / A 4B / A].
[0074] For example, the physical resolution B of the actual display screen is 20*20, and the original resolution A of the current picture is 40*40. In one embodiment, the target resolution is determined to be the original resolution of the current picture (40*40). At this time, the magnification interval is determined to be (0.52], and the candidate magnification factors are determined to include 1 and 2.
[0075] S403: Determine the virtual resolution according to the candidate magnification factors and the target resolution.
[0076] Specifically, in one embodiment, the product of any candidate magnification factor and the target resolution may be determined as the virtual resolution. In combination with the above example, the virtual resolution may be determined to be A, or the virtual resolution may be determined to be 2A.
[0077] Of course, in a possible implementation, the maximum value among the candidate magnification factors can be determined as the target magnification factor, and then the product of the target magnification factor and the target resolution can be determined as the virtual resolution. In combination with the above example, at this time, the virtual resolution is determined to be 2A.
[0078] The method provided in this embodiment provides a method for determining the virtual resolution of a virtual display screen. Through this method, the virtual resolution of the virtual display screen can be determined, and then the touch coordinates corresponding to the sliding event are mapped to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event, thereby determining the virtual screen corresponding to the virtual display screen according to the virtual resolution and the virtual coordinates, and sliding the current screen in the real display screen according to the virtual screen. In this way, for sliding events, the minimum moving unit of the display screen can be reduced, and then the smoothness of the screen change can be improved, making the screen change smoother and improving the user experience.
[0079] Figure 5 is a flowchart of a screen display method according to an embodiment of the present disclosure. Figure 5The method provided in this embodiment, based on the above embodiment, step S103 may include:
[0080] S501 : Enlarge the current picture according to the virtual resolution to obtain a target picture.
[0081] In specific implementation, the current picture may be enlarged to obtain a target picture with a resolution equal to the virtual resolution.
[0082] It should be noted that when the virtual resolution is determined based on the original resolution of the current picture, the original image (the picture before scaling) corresponding to the current picture can be enlarged to obtain the target picture. When the virtual resolution is determined based on the display resolution of the current picture, the displayed image corresponding to the current picture (the original image may be scaled for display purposes, and the displayed image corresponding to the current picture refers to the scaled image) can be enlarged to obtain the target picture.
[0083] For example, in one embodiment, when the original resolution of the current picture is 20*20 and the virtual resolution is 40*40, the original image corresponding to the current picture can be enlarged by 2 times to obtain the target picture.
[0084] S502: Calculate, according to the virtual coordinates, a sliding distance of the sliding event corresponding to the virtual display screen.
[0085] Specifically, the sliding distance of the virtual display screen corresponding to the sliding event is equal to the virtual coordinates of the starting point corresponding to the sliding event minus the virtual coordinates of the end point. For example, in one embodiment, the calculated sliding distance is 3 pixels upward.
[0086] S503: Perform motion compensation on the target picture according to the sliding distance to obtain the virtual picture.
[0087] For the specific implementation principle of motion compensation, please refer to the description in the related art, which will not be repeated here. For example, when the sliding distance is 3 pixels downward, the 3 rows of pixels below the target image can be cut off and 3 rows of pixels can be filled on the top to obtain a virtual image.
[0088] S503: Sliding the current picture on the real display screen according to the virtual picture.
[0089] Specifically, the specific implementation process of this step may include:
[0090] (1) The virtual picture is reduced according to the resolution of the current picture.
[0091] Specifically, the virtual picture can be reduced so that the resolution of the reduced virtual picture is equal to the resolution of the current picture. In combination with the previous example, at this time, the virtual picture can be reduced to 1 / 2 of the original, and a reduced virtual picture with a resolution equal to 20*20 is obtained.
[0092] (2) The current picture is replaced with the reduced virtual picture to achieve sliding of the current picture.
[0093] Specifically, the reduced virtual picture can be displayed using the display strategy that originally displays the current picture. In this way, after the picture is updated, since the reduced virtual picture is different from the current picture, the user will feel that the original picture has been slid during the visual experience.
[0094] The method provided in this embodiment can reduce the minimum moving unit of the displayed screen for sliding events, thereby improving the smoothness of screen changes, making the screen changes more fluent and improving user experience.
[0095] Corresponding to the aforementioned method embodiments, the present disclosure also provides device embodiments.
[0096] like Figure 6 As shown, Figure 6 is a schematic block diagram of a screen display device according to an embodiment of the present disclosure, the device is applied to a terminal, the device includes a determination module 610, a mapping module 620 and a processing module 630, wherein:
[0097] The determination module 610 is configured to determine a virtual resolution of a fictitious virtual display screen according to a resolution of the current screen in response to a sliding event detected by the touch screen for the current screen; wherein the virtual resolution is greater than a physical resolution of a real display screen of the terminal;
[0098] The mapping module 620 is used to map the touch coordinates corresponding to the sliding event to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event;
[0099] The processing module 630 is used to determine the virtual picture of the virtual display screen corresponding to the current picture according to the virtual resolution and the virtual coordinates, and implement the sliding of the current picture in the real display screen according to the virtual picture.
[0100] The device of this embodiment can be used to implement Figure 1 The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be repeated here.
[0101] Furthermore, the determination module 610 is specifically used to select a target resolution from the original resolution and the display resolution of the current picture, and determine a candidate magnification factor based on the physical resolution and the target resolution, and determine the virtual resolution based on the candidate magnification factor and the target resolution.
[0102] Furthermore, the determination module 610 is specifically configured to determine a maximum value among the candidate magnification factors as a target magnification factor, and determine a product of the target magnification factor and the target resolution as the virtual resolution.
[0103] Furthermore, the determination module 610 is also specifically used to determine the original resolution as the target resolution when the original resolution is greater than or equal to the physical resolution, and to determine the display resolution as the target resolution when the original resolution is less than the physical resolution.
[0104] Furthermore, the processing module 630 is specifically used to enlarge the current picture according to the virtual resolution to obtain the target picture, and calculate the sliding distance of the virtual display screen corresponding to the sliding event according to the virtual coordinates, and perform movement compensation on the target picture according to the sliding distance to obtain the virtual picture.
[0105] Furthermore, the processing module 630 is specifically configured to reduce the virtual picture according to the resolution of the current picture, and replace the current picture with the reduced virtual picture to achieve sliding of the current picture.
[0106] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.
[0107] Correspondingly, the present disclosure further provides a readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute any screen display method provided in the first aspect of the present disclosure.
[0108] Specifically, computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (such as EPROM, EEPROM and flash memory devices), magnetic disks (such as internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks.
[0109] Accordingly, the present disclosure further provides a terminal, the terminal comprising:
[0110] processor;
[0111] a memory for storing processor-executable instructions;
[0112] Among them, the processor is configured to implement any screen display method provided in the first aspect of the present disclosure.
[0113] Figure 7 8 is a schematic block diagram of a terminal according to an embodiment of the present disclosure. For example, the terminal 800 may be a mobile phone, a tablet computer or the like.
[0114] Reference Figure 7 , the terminal 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 716 , and a communication component 718 .
[0115] The processing component 702 generally controls the overall operation of the terminal 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702. For another example, the processing component 702 can read executable instructions from a memory to implement the steps of a method provided in the above-mentioned embodiments.
[0116] The memory 704 is configured to store various types of data to support operations at the terminal 700. Examples of such data include instructions for any application or method operating on the terminal 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.
[0117] Power component 706 provides power to various components of terminal 700. Power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 700.
[0118] The multimedia component 708 includes a display screen that provides an output interface between the terminal 800 and the user. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the terminal 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0119] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the terminal 700 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 718. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0120] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0121] The sensor assembly 716 includes one or more sensors for providing various aspects of status assessment for the terminal 700. For example, the sensor assembly 716 can detect the open / closed state of the terminal 700, the relative positioning of the components, such as the display and keypad of the terminal 700, and the sensor assembly 716 can also detect the position change of the terminal 700 or a component of the terminal 700, the presence or absence of contact between the user and the terminal 700, the orientation or acceleration / deceleration of the terminal 700, and the temperature change of the terminal 700. The sensor assembly 716 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 716 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 716 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0122] The communication component 718 is configured to facilitate wired or wireless communication between the terminal 700 and other devices. The terminal 700 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 718 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 718 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0123] In an exemplary embodiment, terminal 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0124] In an exemplary embodiment, a non-transitory machine-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of a terminal 700 to perform the wireless charging method described above. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0125] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0126] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A screen display method, characterized in that: The method is applied to a terminal, and the method includes: In response to a sliding event detected by the touch screen for a current picture, a target resolution is selected from an original resolution and a display resolution of the current picture; the original resolution refers to the number of pixels originally included in the current picture before scaling the current picture, and the display resolution refers to the number of pixels included in the picture obtained after scaling the current picture; Determine the magnification interval according to the physical resolution and the target resolution; the physical resolution refers to the maximum number of pixels that can be displayed on the actual display screen; Determine an integer within the amplification interval as a candidate amplification factor; Determining a virtual resolution of a fictitious virtual display screen according to the candidate magnification factor and the target resolution; wherein the virtual resolution is greater than a physical resolution of a real display screen of the terminal; Mapping the touch coordinates corresponding to the sliding event to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event; Determine a virtual screen of the virtual display screen corresponding to the current screen according to the virtual resolution and the virtual coordinates; Scaling down the virtual picture according to the resolution of the current picture; The current picture is replaced with the reduced virtual picture to achieve sliding of the current picture.
2. The method according to claim 1, characterized in that: The step of determining a virtual resolution of the imaginary virtual display screen according to the candidate magnification factor and the target resolution includes: Determine the maximum value among the candidate amplification factors as the target amplification factor; The product of the target magnification factor and the target resolution is determined as the virtual resolution.
3. The method according to claim 1, characterized in that The selecting a target resolution from an original resolution and a display resolution of the current picture includes: When the original resolution is greater than or equal to the physical resolution, determining the original resolution as the target resolution; When the original resolution is smaller than the physical resolution, the display resolution is determined as the target resolution.
4. The method according to claim 1, characterized in that: The step of determining, according to the virtual resolution and the virtual coordinates, a virtual screen corresponding to the current screen on the virtual display screen includes: Enlarging the current picture according to the virtual resolution to obtain a target picture; Calculating, according to the virtual coordinates, a sliding distance of the sliding event corresponding to the virtual display screen; The target picture is subjected to motion compensation according to the sliding distance to obtain the virtual picture.
5. A screen display device, characterized in that: The device is applied to a terminal, and comprises a determination module, a mapping module and a processing module, wherein: The determination module is configured to, in response to a sliding event detected by the touch screen for a current picture, select a target resolution from an original resolution and a display resolution of the current picture, determine a zoom interval according to a physical resolution and the target resolution, determine an integer in the zoom interval as a candidate zoom factor, and determine a virtual resolution of a fictitious virtual display screen according to the candidate zoom factor and the target resolution; wherein the original resolution refers to the number of pixels originally contained in the current picture before the current picture is scaled, the display resolution refers to the number of pixels contained in a picture obtained after the current picture is scaled, the physical resolution refers to the maximum number of pixels that can be displayed on a real display screen, and the virtual resolution is greater than the physical resolution of the real display screen of the terminal; The mapping module is used to map the touch coordinates corresponding to the sliding event to the virtual display screen to obtain the virtual coordinates corresponding to the sliding event; The processing module is used to determine the virtual screen of the virtual display screen corresponding to the current screen according to the virtual resolution and the virtual coordinates, and to reduce the virtual screen according to the resolution of the current screen, and to replace the current screen with the reduced virtual screen to achieve sliding of the current screen.
6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the screen display method described in any one of claims 1 to 4 above.
7. A terminal, characterized in that: The terminal comprises: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the screen display method described in any one of claims 1 to 4.
Citation Information
Patent Citations
Image display touch control method and system thereof
CN101673185A
Method and apparatus for information processing during remote assistance process
CN102664924A
Systems and methods for networked in-context, high-resolution image viewing
CN103155585A
Picture display method and apparatus, storage medium, processor and terminal
CN108363535A
Picture display method and device based on artificial intelligence, computing equipment and storage medium
CN110597387A
