A picture display method, a storage medium and a terminal device

CN114630158BActive Publication Date: 2026-10-23TCL TECHNOLOGY GROUP CORPORATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011438800.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-10
Publication Date
2026-10-23
Estimated Expiration
2040-12-10

AI Technical Summary

Technical Problem

[0003]本申请实施例提供了一种画面显示方法、计算机可读存储介质及终端设备,可以解决现有的显示终端对于竖屏模式的照片、视频等内容存在显示效果差的问题

Benefits of technology

[0051]本申请实施例中,在获取到待显示画面时,启动显示终端对应的驱动装置,所述驱动装置与所述显示终端连接,以通过所述驱动装置驱动所述显示终端运动,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。即本申请实施例在进行待显示画面的显示时,可通过驱动装置调整显示终端,而在调整显示终端时,可根据显示终端的第一调整速率和第一调整方向确定待显示画面的第二调整速率和第二调整方向,以根据第二调整速率和第二调整方向进行待显示画面的同步调整,确保显示终端调整过程中显示画面始终以正向显示方式向用户显示,提高画面显示效果,提升用户的观看体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114630158B_ABST
    Figure CN114630158B_ABST
Patent Text Reader

Abstract

The application is suitable for the terminal technical field, and particularly relates to a picture display method, a storage medium and a terminal device. The method comprises the following steps: when a to-be-displayed picture is acquired, a driving device corresponding to a display terminal is started, the driving device is connected with the display terminal, the display terminal is driven to move through the driving device, and a first adjustment speed and a first adjustment direction of the display terminal are acquired; a second adjustment speed and a second adjustment direction of the to-be-displayed picture are determined according to the first adjustment speed and the first adjustment direction; the to-be-displayed picture is adjusted based on the second adjustment speed and the second adjustment direction, and the adjusted to-be-displayed picture is displayed in the display terminal adjusted according to the first adjustment speed and the first adjustment direction, so as to reduce display blank when the terminal displays the picture, ensure that the display picture is always displayed to the user in a positive display mode during the terminal adjustment process, and improve the picture display effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of terminal technology, and in particular relates to a screen display method, a computer-readable storage medium, and a terminal device. Background Technology

[0002] With the development of smartphones, viewing photos and videos on smartphones has become increasingly popular. Due to the small screen size of smartphones, many users project photos and videos onto TVs or other display devices for a better viewing experience. However, existing TVs and other display devices are generally fixed in landscape mode, suitable for displaying landscape photos and videos, but offering poor display quality for portrait photos and videos. Summary of the Invention

[0003] This application provides a screen display method, a computer-readable storage medium, and a terminal device, which can solve the problem that existing display terminals have poor display effects for photos, videos, and other content in portrait mode.

[0004] In a first aspect, embodiments of this application provide a screen display method, including:

[0005] When the image to be displayed is acquired, the driving device corresponding to the display terminal is activated. The driving device is connected to the display terminal so as to drive the display terminal to move and acquire the first adjustment rate and the first adjustment direction of the display terminal. The image to be displayed is the display image formed by the display terminal.

[0006] The second adjustment rate and the second adjustment direction of the image to be displayed are determined based on the first adjustment rate and the first adjustment direction.

[0007] The screen to be displayed is adjusted based on the second adjustment rate and the second adjustment direction, and the adjusted screen to be displayed is displayed on a display terminal that is adjusted according to the first adjustment rate and the first adjustment direction.

[0008] Optionally, the second adjustment rate is the same as the first adjustment rate, and the second adjustment direction is opposite to the first adjustment direction.

[0009] Optionally, after obtaining the first adjustment rate and the first adjustment direction of the display terminal, the process includes:

[0010] The adjustment time of the display terminal is obtained, and the first adjustment angle of the display terminal is determined based on the first adjustment rate and the adjustment time;

[0011] Determining the second adjustment rate and second adjustment direction of the image to be displayed based on the first adjustment rate and the first adjustment direction includes:

[0012] The second adjustment angle and the second adjustment direction of the image to be displayed are determined based on the first adjustment angle and the first adjustment direction, wherein the second adjustment angle is the same as the first adjustment angle.

[0013] The step of adjusting the screen to be displayed based on the second adjustment rate and the second adjustment direction, and displaying the adjusted screen to be displayed in a display terminal adjusted according to the first adjustment rate and the first adjustment direction, includes:

[0014] The screen to be displayed is adjusted according to the second adjustment angle and the second adjustment direction, and the adjusted screen to be displayed is displayed on the display terminal that is adjusted according to the first adjustment angle and the first adjustment direction.

[0015] Optionally, adjusting the image to be displayed based on the second adjustment angle and the second adjustment direction, and displaying the adjusted image to be displayed in a display terminal adjusted according to the first adjustment angle and the first adjustment direction, includes:

[0016] The stretching ratio of the image to be displayed is determined based on the second adjustment angle;

[0017] The image to be displayed is stretched using the stretching ratio to obtain the target display image;

[0018] The target display screen is adjusted based on the second adjustment angle and the second adjustment direction, and the adjusted target display screen is displayed on the display terminal adjusted according to the first adjustment angle and the first adjustment direction.

[0019] In one possible implementation of the first aspect, determining the stretching ratio of the image to be displayed based on the second adjustment angle includes:

[0020] Obtain the screen height of the display terminal and the initial screen width of the image to be displayed;

[0021] The target screen width of the image to be displayed is determined based on the screen height of the display terminal, the initial screen width of the image to be displayed, and the second adjustment angle.

[0022] The stretching ratio of the image to be displayed is determined based on the initial image width and the target image width.

[0023] Optionally, determining the target screen width of the image to be displayed based on the screen height of the display terminal, the initial screen width of the image to be displayed, and the second adjustment angle includes:

[0024] The target screen width of the image to be displayed is determined using the following formula:

[0025] Width tar =2R*(Height) tv Width pri ) / π+Width pri ;

[0026] Among them, Width tar R is the target screen width of the image to be displayed, and R is the second adjustment angle. tv Width is the screen height of the display terminal. pri The initial screen width is the width of the image to be displayed.

[0027] Specifically, determining the stretching ratio of the image to be displayed based on the initial image width and the target image width includes:

[0028] The stretching ratio Pro of the image to be displayed is determined according to the following formula:

[0029] Pro = Width tar / Width pri .

[0030] In one possible implementation of the first aspect, after stretching the image to be displayed using the stretching ratio to obtain the target display image, the following steps are included:

[0031] Obtain the target screen height of the target display screen;

[0032] Determine whether the height of the target image is greater than the screen height of the display terminal;

[0033] If the height of the target image is greater than the screen height of the display terminal, then the target image height and target image width of the target display image are adjusted according to the screen height of the display terminal.

[0034] Optionally, determining the stretching ratio of the image to be displayed based on the second adjustment angle includes:

[0035] Obtain the screen width of the display terminal and the initial screen height of the image to be displayed;

[0036] The target image height of the image to be displayed is determined based on the screen width of the display terminal, the initial image height of the image to be displayed, and the second adjustment angle.

[0037] The stretching ratio of the image to be displayed is determined based on the initial image height and the target image height.

[0038] For example, the screen to be displayed is a display screen formed by media information output to the display terminal.

[0039] Optionally, determining the second adjustment rate and second adjustment direction of the image to be displayed based on the first adjustment rate and the first adjustment direction includes:

[0040] The second adjustment rate and the second adjustment direction of the screen to be displayed are determined based on the first adjustment rate, the first adjustment direction, and a preset correspondence.

[0041] The step of adjusting the screen to be displayed based on the second adjustment rate and the second adjustment direction, and displaying the adjusted screen to be displayed in a display terminal adjusted according to the first adjustment rate and the first adjustment direction, includes:

[0042] While adjusting the display terminal according to the first adjustment rate and the first adjustment direction, the screen to be displayed is simultaneously adjusted according to the second adjustment rate and the second adjustment direction, and the adjusted screen to be displayed is displayed on the adjusted display terminal.

[0043] Secondly, embodiments of this application provide a screen display device, including:

[0044] The first rate and direction acquisition module is used to activate the driving device corresponding to the display terminal when the image to be displayed is acquired. The driving device is connected to the display terminal so as to drive the display terminal to move through the driving device and acquire the first adjustment rate and the first adjustment direction of the display terminal. The image to be displayed is the display image formed by the display terminal.

[0045] The second rate direction determination module is used to determine the second adjustment rate and the second adjustment direction of the screen to be displayed based on the first adjustment rate and the first adjustment direction.

[0046] The screen display module is used to adjust the screen to be displayed based on the second adjustment rate and the second adjustment direction, and to display the adjusted screen to be displayed in a display terminal that is adjusted according to the first adjustment rate and the first adjustment direction.

[0047] Thirdly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the screen display method described in any one of the first aspects above.

[0048] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the screen display method described in any one of the first aspects above.

[0049] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the screen display method described in any one of the first aspects.

[0050] The beneficial effects of the embodiments in this application compared with the prior art are:

[0051] In this embodiment, when a screen to be displayed is acquired, a driving device corresponding to the display terminal is activated. The driving device is connected to the display terminal to drive the display terminal to move, and a first adjustment rate and a first adjustment direction of the display terminal are acquired. The screen to be displayed is the display image formed by the display terminal. A second adjustment rate and a second adjustment direction of the screen to be displayed are determined based on the first adjustment rate and the first adjustment direction. The screen to be displayed is adjusted based on the second adjustment rate and the second adjustment direction, and the adjusted screen to be displayed is displayed on the display terminal adjusted according to the first adjustment rate and the first adjustment direction. That is, in this embodiment, when displaying a screen to be displayed, the display terminal can be adjusted by the driving device. When adjusting the display terminal, a second adjustment rate and a second adjustment direction of the screen to be displayed can be determined based on the first adjustment rate and the first adjustment direction of the display terminal, so as to synchronously adjust the screen to be displayed according to the second adjustment rate and the second adjustment direction, ensuring that the display image is always displayed to the user in a positive display mode during the adjustment process of the display terminal, improving the display effect and enhancing the user's viewing experience. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a schematic flowchart of a screen display method provided in an embodiment of this application;

[0054] Figure 2a A schematic diagram of the driving device provided in an embodiment of this application is shown;

[0055] Figure 2b This is a screen display diagram provided in an embodiment of this application;

[0056] Figure 3 This is a flowchart illustrating the process of determining the stretching ratio of the screen to be displayed in an application scenario using a screen display method provided in one embodiment of this application.

[0057] Figure 4 This is a flowchart illustrating the process of determining the stretching ratio of the screen to be displayed in another application scenario using the screen display method provided in one embodiment of this application.

[0058] Figure 4a This is a screen display diagram of the adjustment process of a display terminal provided in an embodiment of this application;

[0059] Figure 4b This is a display image of a display terminal adjusted to a target angle according to an embodiment of this application;

[0060] Figure 5 This is a schematic diagram of the screen display device provided in the embodiments of this application;

[0061] Figure 6 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. Detailed Implementation

[0062] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0063] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0064] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0065] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0066] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0067] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0068] like Figure 1 As shown, this application provides a screen display method. The executing entity of this application embodiment can be a terminal device, which can be a display terminal such as a television, or a computing device such as a desktop computer, laptop, handheld computer, or cloud server connected to a display terminal such as a television. As an example and not a limitation, the screen display method provided in this application embodiment will be described in detail below using a display terminal such as a television for screen display as the executing entity. The screen display method may include:

[0069] S101. When the screen to be displayed is obtained, the driving device corresponding to the display terminal is activated. The driving device is connected to the display terminal so as to drive the display terminal to move and obtain the first adjustment rate and the first adjustment direction of the display terminal. The screen to be displayed is the display screen formed by the display terminal.

[0070] It is understood that the screen to be displayed is a display screen formed by media information output to the display terminal. For example, the media information can be images or videos projected from a mobile terminal such as a mobile phone, tablet, or wearable device onto a display terminal such as a television. Specifically, a connection can be established between the mobile terminal and the display terminal in advance. When the mobile terminal detects that the user needs to project images or videos viewed on the mobile terminal onto the display terminal, it can send a projection request to the display terminal. For example, the mobile terminal can send a projection request to the display terminal when it detects a user's shake operation or when the user clicks a projection button on the mobile terminal screen. After receiving the projection request, the display terminal can determine whether to accept the projection request based on the specific situation. If it determines to accept the projection request, it can send a receive command to the mobile terminal, and the mobile terminal can then send images or videos to the display terminal according to the receive command. For example, the mobile terminal can record images or videos displayed on the mobile terminal screen at a certain frame rate, and simultaneously record the corresponding audio. The recorded images or videos and the recorded audio are then encoded separately and streamed to the display terminal in real time.

[0071] Here, when the display terminal receives the encoded content image sent by the mobile terminal, it can first decode it to obtain the image to be displayed (i.e., image or video content) sent by the mobile terminal. Then, it can determine whether to adjust the display terminal based on the image to be displayed. For example, it can determine whether to adjust the display terminal based on the display mode corresponding to the image to be displayed. If it is determined to adjust the display terminal, it can be adjusted, and the first adjustment rate and first adjustment direction during the adjustment process can be obtained. For example, during the adjustment process, the first adjustment rate and first adjustment direction of the display terminal in the horizontal or vertical direction can be measured in real time by a measuring device such as a gyroscope installed in the display terminal. That is, the first adjustment rate and first adjustment direction can be the adjustment rate and direction of the display terminal relative to the horizontal direction, or the adjustment rate and direction of the display terminal relative to the vertical direction.

[0072] Please see Figure 2a , Figure 2a A schematic diagram of the driving device provided in an embodiment of this application is shown. Figure 2aThe driving device 20 can be connected to the display terminal 30 or to a connecting plate 40 for mounting the display terminal 30. The driving device 20 may include a reducer 21 and a motor 22. The reducer 21 is located between the display terminal 30 and the motor 22. The shaft of the reducer 21 extends horizontally forward and is connected to the display terminal 30 or the connecting plate 40, thereby connecting the display terminal 30 or the connecting plate 40 to the motor 22. The reducer 21 and the motor 22 start synchronously, driving the display terminal 30 to move or driving the connecting plate 40 to move, thereby moving the display terminal 30.

[0073] In this embodiment, adjusting the display terminal refers to changing the display terminal from landscape mode to portrait mode, or vice versa. The first adjustment direction refers to adjusting the display terminal clockwise or counter-clockwise. The first adjustment rate can be the angle adjusted per second.

[0074] For example, adjusting the display terminal in this embodiment of the application can refer to rotating the display terminal. The adjustment rate can be the rotation rate, and the adjustment direction can be the rotation direction. That is, the first adjustment rate can be a first rotation rate at which the display terminal is rotated, and the first adjustment direction can be a first rotation direction at which the display terminal is rotated. Similarly, the second adjustment rate described later can be a second rotation rate at which the display terminal is rotated, and the second adjustment direction can be a second rotation direction at which the display terminal is rotated.

[0075] In one possible implementation, the display terminal may first obtain the initial screen width and initial screen height of the image to be displayed, as well as the screen width and screen height of the display terminal; then, it may determine a first display mode corresponding to the image to be displayed based on the initial screen width and initial screen height, and determine a second display mode corresponding to the display terminal based on the screen width and screen height; finally, it may determine whether to adjust the display terminal based on the first display mode and the second display mode; if it is determined that the display terminal should be adjusted based on the first display mode and the second display mode, then the display terminal is adjusted.

[0076] It should be understood that poor display quality of the image projected onto a display terminal is often related to whether the display mode of the image to be displayed matches the display mode of the display terminal. In this embodiment, the initial screen width and initial screen height of the image to be displayed, as well as the screen height and screen width of the display terminal, can be obtained first. The initial screen width is the pixel value in the horizontal direction of the image to be displayed, and the initial screen height is the pixel value in the vertical direction. Similarly, the screen width and screen height are also measured in pixel values. Then, a first display mode corresponding to the image to be displayed can be determined based on the initial screen width and initial screen height, and a second display mode corresponding to the display terminal can be determined based on the screen width and screen height of the display terminal. Both the first and second display modes can be either landscape or portrait modes.

[0077] In a specific application scenario, the ratio Bp between the initial screen width and the initial screen height of the image to be displayed can be calculated first, where Bp = initial screen width / initial screen height, or Bp = initial screen height / initial screen width. Then, the first display mode corresponding to the image to be displayed can be determined based on the relationship between Bp and a preset value. The preset value can be 1. For example, when Bp = initial screen width / initial screen height, if the calculated Bp is less than 1, such as 9 / 16, the first display mode corresponding to the image to be displayed can be determined to be portrait mode; if the calculated Bp is greater than or equal to 1, such as 16 / 9, the first display mode corresponding to the image to be displayed can be determined to be landscape mode. Similarly, when Bp = initial screen height / initial screen width, if the calculated Bp is greater than 1, the first display mode corresponding to the image to be displayed can be determined to be portrait mode; if the calculated Bp is less than or equal to 1, the first display mode corresponding to the image to be displayed can be determined to be landscape mode. Similarly, the second display mode corresponding to the display terminal can also be determined in a similar way, that is, BT = screen width / screen height, or BT = screen height / screen width.

[0078] Here, after obtaining the first display mode corresponding to the screen to be displayed and the second display mode corresponding to the display terminal, the display terminal can determine whether to adjust the display terminal based on the first display mode and the second display mode, and can determine the target angle and target direction of the display terminal based on the first display mode and the second display mode.

[0079] Specifically, when the first display mode and the second display mode are not the same, for example, such as Figure 2bAs shown, when the first display mode is portrait mode and the second display mode is landscape mode, it can be determined that the display terminal needs to be adjusted, and the target angle and direction of the adjustment can be determined to be 90 degrees vertically, so that the display terminal is adjusted to the target angle and direction. Figure 2b In this context, O represents the center point of the display terminal and the screen to be displayed. The X-axis is horizontal, and the Y-axis is vertical, with the Y-axis also representing the forward display direction of the screen. During the adjustment process, the center point of the display terminal and the screen to be displayed remains unchanged. Alternatively, when the first display mode is landscape mode and the second display mode is portrait mode, the display terminal can be adjusted, and the target angle and direction of the adjustment can be determined to be 0 degrees horizontally, so that the display terminal is adjusted to the target angle and direction.

[0080] S102. Determine the second adjustment rate and the second adjustment direction of the image to be displayed based on the first adjustment rate and the first adjustment direction;

[0081] In one possible implementation, the determined second adjustment rate is the same as the first adjustment rate, while the determined second adjustment direction is opposite to the first adjustment direction. For example, when the first adjustment rate is 1 degree / s and the first adjustment direction is clockwise, the determined second adjustment angle is also 1 degree / s, and the determined second adjustment direction is counterclockwise.

[0082] S103. Adjust the screen to be displayed based on the second adjustment rate and the second adjustment direction, and display the adjusted screen to be displayed in the display terminal adjusted according to the first adjustment rate and the first adjustment direction.

[0083] In this embodiment, after determining the second adjustment rate and second adjustment direction corresponding to the image to be displayed, the display terminal can adjust the image to be displayed based on the second adjustment rate and second adjustment direction while adjusting the display terminal according to the first adjustment rate and first adjustment direction. For example, the second adjustment rate and second adjustment direction of the image to be displayed can be adjusted by calling the setRotate(-R) function of the Matrix object, and the adjusted image to be displayed can be synchronously displayed on the display terminal during the adjustment process. This ensures that the image displayed on the display terminal is always displayed to the user in a positive orientation while the display terminal is adjusted to the target angle, improving the image display effect and enhancing the user's viewing experience.

[0084] In one possible implementation, the display terminal may have a pre-set correspondence between a first adjustment rate and a first adjustment direction, and a second adjustment rate and a second adjustment direction. When the display terminal needs to be adjusted, it can first acquire the first adjustment rate and the first adjustment direction; then, based on the first adjustment rate, the first adjustment direction, and the pre-set correspondence, it can determine the second adjustment rate and the second adjustment direction of the image to be displayed. Therefore, when adjusting the display terminal according to the first adjustment rate and the first adjustment direction, the image to be displayed can be adjusted simultaneously according to the second adjustment rate and the second adjustment direction, and the adjusted image to be displayed can be displayed on the adjusted display terminal, thereby achieving synchronous adjustment between the display terminal and the image to be displayed and improving the image display effect.

[0085] In this embodiment of the application, when adjusting the display terminal in landscape mode, the target angle can be the angle of the display terminal in portrait mode, and when adjusting the display terminal in portrait mode, the target angle can be the angle of the display terminal in landscape mode.

[0086] In another possible implementation, the image to be displayed can also be adjusted based on the adjustment angle and adjustment direction of the display terminal. Specifically, after acquiring the first adjustment rate and the first adjustment direction of the display terminal, the display terminal can also acquire the adjustment time of the display terminal, and determine the first adjustment angle of the display terminal based on the first adjustment rate and the adjustment time; or the first adjustment angle of the display terminal can be directly measured by an angle sensor. After determining the first adjustment angle of the display terminal, the display terminal can first determine the second adjustment angle and the second adjustment direction of the image to be displayed based on the first adjustment angle and the first adjustment direction, wherein the second adjustment angle is the same as the first adjustment angle and the second adjustment direction is opposite to the first adjustment direction; then the image to be displayed can be adjusted according to the second adjustment angle and the second adjustment direction, and the adjusted image to be displayed can be displayed on the display terminal adjusted according to the first adjustment angle and the first adjustment direction.

[0087] Optionally, adjusting the image to be displayed based on the second adjustment angle and the second adjustment direction, and displaying the adjusted image to be displayed in a display terminal adjusted according to the first adjustment angle and the first adjustment direction, may include:

[0088] Step a: Determine the stretching ratio of the image to be displayed based on the second adjustment angle;

[0089] In one possible implementation, the stretching ratio can be determined by combining the screen height of the display terminal and the initial screen width of the image to be displayed. This ensures that when the display terminal and the image to be displayed are adjusted to a target angle, the image to be displayed will primarily fill the screen width of the display terminal. The target angle can be determined based on specific circumstances. For example, when adjusting the display terminal in landscape mode, the target angle can be the angle of the display terminal in portrait mode; conversely, when adjusting the display terminal in portrait mode, the target angle can be the angle of the display terminal in landscape mode. The stretching ratio refers to the factor by which the initial screen height and initial screen width of the image to be displayed are magnified.

[0090] Specifically, such as Figure 3 As shown, determining the stretching ratio of the image to be displayed based on the second adjustment angle may include:

[0091] S301. Obtain the screen height of the display terminal and the initial screen width of the image to be displayed;

[0092] S302. Determine the target screen width of the screen to be displayed based on the screen height of the display terminal, the initial screen width of the screen to be displayed, and the second adjustment angle;

[0093] Here, determining the target screen width of the image to be displayed based on the screen height of the display terminal, the initial screen width of the image to be displayed, and the second adjustment angle may include:

[0094] The target screen width of the image to be displayed is determined using the following formula:

[0095] Width tar =2R*(Height) tv Width pri ) / π+Width pri ;

[0096] Among them, Width tar R is the target screen width of the image to be displayed, and R is the second adjustment angle. tv Width is the screen height of the display terminal. pri The initial screen width is the width of the image to be displayed.

[0097] S303. Determine the stretching ratio of the image to be displayed based on the initial image width and the target image width.

[0098] Specifically, determining the stretching ratio of the image to be displayed based on the initial image width and the target image width may include:

[0099] The scaling factor Pro of the image to be displayed is determined according to the following formula:

[0100] Pro = Width tar / Width pri .

[0101] In another possible implementation, the stretching ratio can be determined by combining the screen width of the display terminal and the initial height of the image to be displayed, so that when the display terminal and the image to be displayed are adjusted to the target angle, the image to be displayed can preferentially fill the screen height of the display terminal. Specifically, as shown... Figure 4 As shown, determining the stretching ratio of the image to be displayed based on the second adjustment angle may include:

[0102] S401. Obtain the screen width of the display terminal and the initial screen height of the image to be displayed;

[0103] S402. Determine the target image height of the image to be displayed based on the screen width of the display terminal, the initial image height of the image to be displayed, and the second adjustment angle.

[0104] Here, determining the target image height of the image to be displayed based on the screen width of the display terminal, the initial image height of the image to be displayed, and the second adjustment angle may include:

[0105] The target screen height of the image to be displayed is determined using the following formula:

[0106] Height tar =2R*(Width) tv -Height pri ) / π+Height pri ;

[0107] Among them, Heigh tar R is the target screen width of the image to be displayed, and R is the second adjustment angle. tv The screen width and height of the display terminal are given. pri The initial screen height is the height of the image to be displayed.

[0108] S403. Determine the stretching ratio of the image to be displayed based on the initial image height and the target image height.

[0109] Specifically, determining the stretching ratio of the image to be displayed based on the initial image height and the target image height may include:

[0110] The stretching ratio Pro of the image to be displayed is determined according to the following formula:

[0111] Pro = Height tar / Height pri .

[0112] Step b: Stretch the image to be displayed using the stretching ratio to obtain the target display image;

[0113] Step c: Adjust the target display screen based on the second adjustment angle and the second adjustment direction, and display the adjusted target display screen in the display terminal adjusted according to the first adjustment angle and the first adjustment direction.

[0114] It should be noted that after determining the stretching ratio of the image to be displayed, the display terminal can stretch the image to be displayed using the stretching ratio. By stretching the image to be displayed, a target display image is obtained. The target display image is then adjusted based on the second adjustment angle and the second adjustment direction. This reduces the display blank space on the display terminal when the adjusted target display image is displayed, thereby improving the image display effect and enhancing the user's viewing experience. Here, the display terminal can stretch the image to be displayed by calling the `setScale(Pro, Pro)` method of the `Matrix` object and the `createBitmap` method of the `Bitmap` object to obtain the stretched target display image. That is, during the synchronous adjustment of the image to be displayed, the image can also be stretched according to the second adjustment angle to reduce the display blank space when the image is displayed on the display terminal, improving the image display effect and enhancing the user's viewing experience.

[0115] For example, according to Figure 2b When adjusting the display terminal, the screen to be displayed can be stretched and synchronously adjusted to ensure that the screen on the display terminal can always be displayed to the user in a positive orientation. For example, at a specific moment, it can be adjusted as follows: Figure 4a The forward display method shown is used to display the image on the display terminal; for example, when the display terminal is adjusted to the target angle, it can be displayed as follows: Figure 4b The forward display method shown is used to display the image on the display terminal.

[0116] It should be understood that in application scenarios where the stretching ratio is determined by combining the screen height of the display terminal and the initial screen width of the image to be displayed, after stretching the image to be displayed using the stretching ratio to obtain the target display image, the process may further include:

[0117] Step d: Obtain the target screen height of the target display screen;

[0118] Step e: Determine whether the height of the target image is greater than the screen height of the display terminal;

[0119] Step f: If the height of the target image is greater than the screen height of the display terminal, then adjust the target image height and target image width according to the screen height of the display terminal.

[0120] For steps d to f above, the stretching ratio is determined based on prioritizing filling the screen width of the display terminal. Therefore, the target screen width of the target display image obtained based on the stretching ratio often does not exceed the screen width of the display terminal, but the target screen height may exceed the screen height of the display terminal. In this case, if the target display image is directly displayed on the display terminal, the portion of the target display image exceeding the screen height may not be displayed on the display terminal, resulting in incomplete display and significantly reducing the display effect. Therefore, in this scenario, when it is determined that the target screen height exceeds the screen height (i.e., when it is determined that the target screen height is greater than the screen height), the display terminal can adjust the target screen height and target screen width according to the screen height. For example, the target screen height can be adjusted to the screen height, and the adjustment ratio can be determined according to the target screen height and the screen height. Then, the target screen width can be adjusted proportionally according to the adjustment ratio to ensure that the target screen is displayed completely and that the image is not distorted, thereby improving the image display effect and enhancing the user's viewing experience.

[0121] It should be understood that in application scenarios where the stretching ratio is determined by combining the screen width of the display terminal and the original image height of the image to be displayed, after scaling the image to be displayed using the stretching ratio to obtain the target display image, the process may further include:

[0122] Step g: Obtain the target screen width of the target display screen;

[0123] Step h: Determine whether the width of the target image is greater than the screen width of the display terminal;

[0124] Step i: If the width of the target image is greater than the screen width of the display terminal, then adjust the target image height and target image width according to the screen width of the display terminal.

[0125] For steps g to i above, the stretching ratio is determined based on prioritizing filling the screen height of the display terminal. Therefore, the target image height of the target display image obtained based on the stretching ratio often does not exceed the screen height of the display terminal, but the target image width may exceed the screen width of the display terminal. In this case, if the target image is directly displayed on the display terminal, the portion of the target image exceeding the screen width may not be displayed on the display terminal, resulting in incomplete display and significantly reducing the image display effect. Therefore, in this scenario, when it is determined that the target image width exceeds the screen width (i.e., when it is determined that the target image width is greater than the screen width), the display terminal can adjust the target image height and target image width according to the screen width. For example, the target screen width of the target display can be adjusted to the screen width, and the adjustment ratio can be determined according to the target screen width and the screen width. Then, the target screen height can be adjusted proportionally according to the adjustment ratio to ensure that the target display is displayed completely and that the image is not distorted, thereby improving the display effect and enhancing the user's viewing experience.

[0126] In this embodiment, when a screen to be displayed is acquired, a driving device corresponding to the display terminal is activated. The driving device is connected to the display terminal to drive the display terminal to move. A first adjustment rate and a first adjustment direction of the display terminal are acquired. The screen to be displayed is the display image formed by the display terminal. A second adjustment rate and a second adjustment direction of the screen to be displayed are determined based on the first adjustment rate and the first adjustment direction. The screen to be displayed is adjusted based on the second adjustment rate and the second adjustment direction, and the adjusted screen to be displayed is displayed on the display terminal adjusted according to the first adjustment rate and the first adjustment direction. That is, in this embodiment, when displaying a screen to be displayed, the display terminal can be adjusted. When adjusting the display terminal, a second adjustment rate and a second adjustment direction of the screen to be displayed can be determined based on the first adjustment rate and the first adjustment direction of the display terminal. This allows for synchronous adjustment of the screen to be displayed based on the second adjustment rate and the second adjustment direction, ensuring that the display image is always displayed to the user in a positive orientation during the adjustment process, improving the display effect and enhancing the user's viewing experience.

[0127] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0128] Corresponding to the screen display method described in the above embodiments, Figure 5 A structural block diagram of a screen display device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0129] like Figure 5 As shown, the screen display device may include:

[0130] The first rate and direction acquisition module 501 is used to activate the driving device corresponding to the display terminal when the image to be displayed is acquired. The driving device is connected to the display terminal so as to drive the display terminal to move through the driving device and acquire the first adjustment rate and first adjustment direction of the display terminal. The image to be displayed is the display image formed by the display terminal.

[0131] The second rate direction determination module 502 is used to determine the second adjustment rate and the second adjustment direction of the screen to be displayed based on the first adjustment rate and the first adjustment direction.

[0132] The screen display module 503 is used to adjust the screen to be displayed based on the second adjustment rate and the second adjustment direction, and to display the adjusted screen to be displayed in a display terminal that is adjusted according to the first adjustment rate and the first adjustment direction.

[0133] For example, the second adjustment rate is the same as the first adjustment rate, and the second adjustment direction is opposite to the first adjustment direction.

[0134] In one possible implementation, the screen display device may further include:

[0135] The first adjustment angle determination module is used to obtain the adjustment time of the display terminal and determine the first adjustment angle of the display terminal based on the first adjustment rate and the adjustment time.

[0136] The second rate direction determination module 502 can also be used to determine a second adjustment angle and a second adjustment direction of the screen to be displayed based on the first adjustment angle and the first adjustment direction, wherein the second adjustment angle is the same as the first adjustment angle.

[0137] The screen display module 503 can also be used to adjust the screen to be displayed according to the second adjustment angle and the second adjustment direction, and display the adjusted screen to be displayed in the display terminal adjusted according to the first adjustment angle and the first adjustment direction.

[0138] Optionally, the screen display module 503 may include:

[0139] The stretching ratio determination unit is used to determine the stretching ratio of the image to be displayed based on the second adjustment angle;

[0140] The screen stretching unit is used to stretch the screen to be displayed using the stretching ratio to obtain the target display screen;

[0141] The screen display unit is used to adjust the target display screen based on the second adjustment angle and the second adjustment direction, and display the adjusted target display screen in the display terminal adjusted according to the first adjustment angle and the first adjustment direction.

[0142] In one possible implementation, the stretching ratio determination unit may include:

[0143] The screen height acquisition unit is used to acquire the screen height of the display terminal and the initial screen width of the image to be displayed.

[0144] The target screen width determination unit is used to determine the target screen width of the screen to be displayed based on the screen height of the display terminal, the initial screen width of the screen to be displayed, and the second adjustment angle.

[0145] The first stretching ratio determination unit is used to determine the stretching ratio of the image to be displayed based on the initial image width and the target image width.

[0146] Optionally, the target screen width determination unit is specifically used to determine the target screen width of the screen to be displayed using the following formula:

[0147] Width tar =2R*(Height) tv Width pri ) / π+Width pri ;

[0148] Among them, Width tar R is the target screen width of the image to be displayed, and R is the second adjustment angle. tv Width is the screen height of the display terminal. pri The initial screen width is the width of the image to be displayed.

[0149] Specifically, the first stretching ratio determination unit is used to determine the stretching ratio Pro of the image to be displayed according to the following formula:

[0150] Pro = Width tar / Width pri .

[0151] In one possible implementation, the screen display device may further include:

[0152] The target screen height acquisition module is used to acquire the target screen height of the target display screen;

[0153] The target screen height determination module is used to determine whether the height of the target screen is greater than the screen height of the display terminal;

[0154] The target screen adjustment module is used to adjust the target screen height and target screen width according to the screen height of the display terminal if the target screen height is greater than the screen height of the display terminal.

[0155] Optionally, the stretching ratio determining unit may further include:

[0156] The screen width acquisition unit is used to acquire the screen width of the display terminal and the initial screen height of the image to be displayed.

[0157] The target screen height determination unit is used to determine the target screen height of the screen to be displayed based on the screen width of the display terminal, the initial screen height of the screen to be displayed, and the second adjustment angle.

[0158] The second stretching ratio determination subunit is used to determine the stretching ratio of the image to be displayed based on the initial image height and the target image height.

[0159] For example, the screen to be displayed is a display screen formed by media information output to the display terminal.

[0160] In one possible implementation, the second rate direction determination module 502 can also be used to determine the second adjustment rate and the second adjustment direction of the screen to be displayed based on the first adjustment rate, the first adjustment direction and the preset correspondence.

[0161] The screen display module 503 can also be used to adjust the screen to be displayed according to the second adjustment rate and the second adjustment direction when adjusting the display terminal according to the first adjustment rate and the first adjustment direction, and display the adjusted screen to be displayed in the adjusted display terminal.

[0162] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0163] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0164] Figure 6 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Figure 6 As shown, the terminal device 6 in this embodiment includes: at least one processor 60 ( Figure 6 (Only one is shown in the image), memory 61, and computer program 62 stored in the memory 61 and executable on the at least one processor 60, wherein the processor 60 executes the computer program 62 to implement the steps in any of the above-described screen display method embodiments.

[0165] The terminal device 6 can be a desktop computer, laptop, handheld computer, or cloud server, etc. This terminal device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will understand that... Figure 6 This is merely an example of terminal device 6 and does not constitute a limitation on terminal device 6. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.

[0166] The processor 60 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0167] In some embodiments, the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. In other embodiments, the memory 61 may be an external storage device of the terminal device 6, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device 6. Furthermore, the memory 61 may include both internal and external storage units of the terminal device 6. The memory 61 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 61 can also be used to temporarily store data that has been output or will be output.

[0168] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the above-described method embodiments.

[0169] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the various method embodiments.

[0170] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / terminal equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0171] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0172] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0173] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0174] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0175] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for displaying a screen, characterized in that, include: When the image to be displayed is acquired, the driving device corresponding to the display terminal is activated. The driving device is connected to the display terminal so as to drive the display terminal to move and acquire the first adjustment rate and the first adjustment direction of the display terminal. The image to be displayed is the display image formed by the display terminal. The second adjustment rate and the second adjustment direction of the image to be displayed are determined based on the first adjustment rate and the first adjustment direction. The display terminal's screen height and the initial screen width of the image to be displayed are obtained. A target screen width of the image to be displayed is determined based on the display terminal's screen height, the initial screen width of the image to be displayed, and a second adjustment angle. A stretching ratio of the image to be displayed is then determined based on the initial screen width and the target screen width. Alternatively, the display terminal's screen width and the initial screen height of the image to be displayed are obtained. A target screen height of the image to be displayed is determined based on the display terminal's screen width, the initial screen height of the image to be displayed, and the second adjustment angle. A stretching ratio of the image to be displayed is then determined based on the initial screen height and the target screen height. The second adjustment angle is determined based on a first adjustment angle and a first adjustment direction. The first adjustment angle is determined based on a first adjustment rate and the display terminal's adjustment time. The image to be displayed is stretched using the stretching ratio to obtain the target display image; The target display screen is adjusted based on the second adjustment angle and the second adjustment direction, and the adjusted target display screen is displayed on the display terminal adjusted according to the first adjustment angle and the first adjustment direction.

2. The screen display method as described in claim 1, characterized in that, The second adjustment rate is the same as the first adjustment rate, and the second adjustment direction is opposite to the first adjustment direction.

3. The screen display method as described in claim 1, characterized in that, After obtaining the first adjustment rate and the first adjustment direction of the display terminal, the process includes: The adjustment time of the display terminal is obtained, and the first adjustment angle of the display terminal is determined based on the first adjustment rate and the adjustment time; Determining the second adjustment rate and second adjustment direction of the image to be displayed based on the first adjustment rate and the first adjustment direction includes: The second adjustment angle and the second adjustment direction of the image to be displayed are determined based on the first adjustment angle and the first adjustment direction, wherein the second adjustment angle is the same as the first adjustment angle.

4. The screen display method as described in claim 3, characterized in that, Determining the target screen width of the image to be displayed based on the screen height of the display terminal, the initial screen width of the image to be displayed, and the second adjustment angle includes: The target screen width of the image to be displayed is determined using the following formula: Width tar = 2R (Height tv - Width pri ) / π+ Width pri ; Among them, Width tar R is the target screen width of the image to be displayed, and R is the second adjustment angle. tv Width is the screen height of the display terminal. pri The initial screen width is the width of the image to be displayed.

5. The screen display method as described in claim 4, characterized in that, Determining the stretching ratio of the image to be displayed based on the initial image width and the target image width includes: The stretching ratio Pro of the image to be displayed is determined according to the following formula: Pro = Width tar / Width pri 。 6. The screen display method as described in any one of claims 3 to 5, characterized in that, After stretching the image to be displayed using the stretching ratio to obtain the target display image, the process includes: Obtain the target screen height of the target display screen; Determine whether the height of the target image is greater than the screen height of the display terminal; If the height of the target image is greater than the screen height of the display terminal, then the target image height and target image width of the target display image are adjusted according to the screen height of the display terminal.

7. The screen display method as described in claim 1 or 2, characterized in that, The image to be displayed is the image formed by the output of media information to the display terminal.

8. The screen display method as described in claim 1 or 2, characterized in that, Determining the second adjustment rate and second adjustment direction of the image to be displayed based on the first adjustment rate and the first adjustment direction includes: The second adjustment rate and the second adjustment direction of the screen to be displayed are determined based on the first adjustment rate, the first adjustment direction, and a preset correspondence. The step of adjusting the screen to be displayed based on the second adjustment rate and the second adjustment direction, and displaying the adjusted screen to be displayed in a display terminal adjusted according to the first adjustment rate and the first adjustment direction, includes: While adjusting the display terminal according to the first adjustment rate and the first adjustment direction, the screen to be displayed is simultaneously adjusted according to the second adjustment rate and the second adjustment direction, and the adjusted screen to be displayed is displayed on the adjusted display terminal.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the screen display method as described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the screen display method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Picture adjustment method and device, computer-readable storage medium, and terminal

    CN109308153A