WO2021136310A1 - 一种画面显示方法、存储介质及终端设备 - Google Patents

一种画面显示方法、存储介质及终端设备 Download PDF

Info

Publication number
WO2021136310A1
WO2021136310A1 PCT/CN2020/141105 CN2020141105W WO2021136310A1 WO 2021136310 A1 WO2021136310 A1 WO 2021136310A1 CN 2020141105 W CN2020141105 W CN 2020141105W WO 2021136310 A1 WO2021136310 A1 WO 2021136310A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
adjustment
displayed
display
screen
Prior art date
Application number
PCT/CN2020/141105
Other languages
English (en)
French (fr)
Inventor
李洋
李宏伟
Original Assignee
Tcl科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201911420590.2A external-priority patent/CN113126836B/zh
Priority claimed from CN202011438800.3A external-priority patent/CN114630158A/zh
Application filed by Tcl科技集团股份有限公司 filed Critical Tcl科技集团股份有限公司
Publication of WO2021136310A1 publication Critical patent/WO2021136310A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • 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.
  • the embodiments of the present application provide a screen display method, a computer-readable storage medium, and a terminal device, which can solve the problem of poor display effects of existing display terminals for content such as photos and videos in portrait mode.
  • an embodiment of the present application provides a screen display method, including:
  • the second adjustment rate is the same as the first adjustment rate, and the second adjustment direction is opposite to the first adjustment direction.
  • the method includes:
  • the determining the second adjustment rate and the second adjustment direction of the picture to be displayed according to the first adjustment rate and the first adjustment direction includes:
  • the display terminal includes:
  • a display terminal with adjustment direction adjustment includes:
  • 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 in a display terminal adjusted according to the first adjustment angle and the first adjustment direction .
  • the determining the stretching ratio of the picture to be displayed according to the second adjustment angle includes:
  • the stretching ratio of the picture to be displayed is determined based on the initial picture width and the target picture width of the picture to be displayed.
  • the determining the target picture width of the picture to be displayed according to the screen height of the display terminal, the initial picture width of the picture to be displayed and the second adjustment angle includes:
  • Width tar 2R*(Height tv -Width pri )/ ⁇ + Width pri ;
  • Width tar is the target picture width of the picture to be displayed
  • R is the second adjustment angle
  • Height tv is the screen height of the display terminal
  • Width pri is the initial picture width of the picture to be displayed.
  • the determining the stretching ratio of the picture to be displayed based on the initial picture width and the target picture width of the picture to be displayed includes:
  • Width tar / Width pri Width tar / Width pri .
  • the method includes:
  • the target screen height and target screen width of the target display screen are adjusted according to the screen height of the display terminal.
  • the determining the stretching ratio of the picture to be displayed according to the second adjustment angle includes:
  • the stretching ratio of the picture to be displayed is determined based on the initial picture height and the target picture height of the picture to be displayed.
  • the determining the target picture height of the picture to be displayed according to the screen width of the display terminal, the initial picture height of the picture to be displayed and the second adjustment angle includes:
  • Height tar 2R*(Width tv -Height pri )/ ⁇ + Height pri ;
  • Heigh tar is the target picture width of the picture to be displayed
  • R is the second adjustment angle
  • Width tv is the screen width of the display terminal
  • Height pri is the initial picture height of the picture to be displayed.
  • the picture to be displayed is a display picture formed by outputting media information to the display terminal.
  • the determining the second adjustment rate and the second adjustment direction of the picture to be displayed according to the first adjustment rate and the first adjustment direction includes:
  • the display terminal includes:
  • the to-be-displayed image is adjusted according to the second adjustment rate and the second adjustment direction at the same time, and the adjusted to-be-displayed image is adjusted Displayed in the adjusted display terminal.
  • the adjusting the display terminal when the picture to be displayed is obtained includes:
  • the display terminal When it is determined to adjust the display terminal according to the display mode corresponding to the picture to be displayed, the display terminal is adjusted.
  • the acquiring the display mode corresponding to the picture to be displayed, and determining whether to adjust the display terminal according to the display mode corresponding to the picture to be displayed includes:
  • an embodiment of the present application provides a screen display device, including:
  • the first rate direction acquisition module is configured to adjust the display terminal when the picture to be displayed is acquired, and obtain the first adjustment rate and the first adjustment direction of the display terminal, and the picture to be displayed is formed by the display terminal Display screen
  • a second rate direction determining module configured to determine a second adjustment rate and a second adjustment direction of the picture to be displayed according to the first adjustment rate and the first adjustment direction;
  • the picture display module is configured to adjust the picture to be displayed based on the second adjustment rate and the second adjustment direction, and display the adjusted picture to be displayed according to the first adjustment rate and the first adjustment rate.
  • an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, The screen display method described in any one of the foregoing first aspect is implemented.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program that, when executed by a processor, implements any one of the above-mentioned aspects of the first aspect The screen display method.
  • embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the screen display method described in any one of the above-mentioned first aspects.
  • the display terminal when a to-be-displayed image is obtained, the display terminal is adjusted, and the first adjustment rate and the first adjustment direction of the display terminal are obtained, and the to-be-displayed image is a display image formed by the display terminal; Determine the second adjustment rate and the second adjustment direction of the picture to be displayed according to the first adjustment rate and the first adjustment direction; adjust the to be displayed based on the second adjustment rate and the second adjustment direction And display the adjusted to-be-displayed image in a display terminal adjusted according to the first adjustment rate and the first adjustment direction.
  • the display terminal can be adjusted when displaying the picture to be displayed, and when the display terminal is adjusted, the second adjustment rate and the second adjustment rate of the picture to be displayed can be determined according to the first adjustment rate and the first adjustment direction of the display terminal.
  • the second adjustment direction is to perform synchronous adjustment of the picture to be displayed according to the second adjustment rate and the second adjustment direction to ensure that the display screen is always displayed to the user in a forward display mode during the adjustment process of the display terminal, which improves the screen display effect and enhances the user’s The viewing experience.
  • FIG. 1 is a schematic flowchart of a screen display method provided by an embodiment of the present application
  • Figure 2a shows an overall schematic diagram of a driving device provided by an embodiment of the present application
  • Figure 2b is a screen display diagram provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a screen display method according to an embodiment of the present application for determining a stretching ratio of a screen to be displayed in an application scenario;
  • FIG. 4 is a schematic flow chart of determining the stretching ratio of a picture to be displayed in another application scenario of the picture display method provided by an embodiment of the present application;
  • 4a is a screen display diagram during the adjustment process of the display terminal according to an embodiment of the present application.
  • 4b is a screen display diagram of a display terminal adjusted to a target angle according to an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of a screen display device provided by an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • an embodiment of the present application provides a screen display method.
  • the execution subject of the embodiments of the present application may be a terminal device.
  • the terminal device may be a display terminal such as a TV, or a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server connected to a display terminal such as a TV.
  • the screen display method provided in the embodiment of the present application will be described in detail below by taking a display terminal such as a TV that performs screen display as an example.
  • the screen display method may include:
  • the picture to be displayed may be a display picture formed by outputting media information to the display terminal.
  • the media information may be a content screen such as a picture or video displayed on a display terminal such as a TV, which is screened by a mobile terminal such as a mobile phone, a tablet computer, and a wearable device.
  • the connection between the mobile terminal and the display terminal can be established in advance, and it can be monitored on the mobile terminal that the user needs to project the content screens such as pictures or videos browsed on the mobile terminal to the display terminal for display
  • the screen projection request can be sent to the display terminal, for example, the screen projection request can be sent to the display terminal.
  • the display terminal sends a screen projection request.
  • the display terminal may determine whether to receive the screen projection request according to specific conditions, and if it is determined to receive the screen projection request, it may send a receiving instruction to the mobile terminal, and the mobile terminal Then, according to the received instruction, a content screen such as a picture or video is sent to the display terminal.
  • the mobile terminal may record content screens such as pictures or videos displayed on the screen of the mobile terminal at a certain frame rate, and simultaneously record the sound corresponding to the content screens such as the pictures or videos, and compare the recorded pictures or videos. The picture and the recorded sound are separately encoded and then streamed to the display terminal in real time.
  • the display terminal when the display terminal receives the encoded content picture sent by the mobile terminal, it may first decode it to obtain the to-be-displayed picture (that is, content such as a picture or video) sent by the mobile terminal. Screen), and then determine whether to adjust the display terminal according to the to-be-displayed screen. For example, it can be determined whether to adjust the display terminal according to the display mode corresponding to the picture to be displayed. If it is determined to adjust the display terminal, the display terminal can be controlled to adjust, and the display terminal adjustment process can be obtained. The first adjustment rate and the first adjustment direction.
  • the to-be-displayed picture that is, content such as a picture or video
  • Screen screen
  • determine whether to adjust the display terminal according to the to-be-displayed screen For example, it can be determined whether to adjust the display terminal according to the display mode corresponding to the picture to be displayed. If it is determined to adjust the display terminal, the display terminal can be controlled to adjust, and the display terminal adjustment process can be obtained.
  • the first adjustment rate and the first adjustment direction of the display terminal in the horizontal or vertical direction can be measured in real time by setting a measuring device such as a gyroscope in the display terminal, That is, the first adjustment rate and the first adjustment direction may be the adjustment rate and the adjustment direction of the display terminal relative to the horizontal direction, or the adjustment rate and the adjustment direction of the display terminal relative to the vertical direction.
  • the display terminal may be adjusted by activating the driving device corresponding to the display terminal to drive the display terminal to move through the driving device.
  • the driving device corresponding to the display terminal device may be a driving device connected to the display terminal.
  • FIG. 2a shows an overall schematic diagram of a driving device provided by an embodiment of the present application.
  • the driving device 20 may be connected to the display terminal 30, or may be connected to the connecting board 40 for installing the display terminal 30.
  • the driving device 20 may include a reducer 21 and an electric motor 22, the reducer 21 is located between the display terminal 30 and the electric motor 22, and the rotating shaft of the reducer 21 extends horizontally forward and is connected to the display terminal.
  • 30 is connected, or connected to the connecting board 40, so as to connect the display terminal 30 or the connecting board 40 to the motor 22; the reducer 21 and the motor 22 start synchronously to drive the display terminal 30 moves, or drives the connecting plate 40 to move, thereby driving the display terminal 30 to move.
  • adjusting the display terminal refers to adjusting the display terminal from a horizontal screen mode to a vertical screen mode, or adjusting the display terminal from a vertical screen mode to a horizontal screen mode, and so on.
  • the first adjustment direction refers to adjusting the display terminal in a clockwise direction or adjusting the display terminal in a counterclockwise direction.
  • the first adjustment rate may be an angle at which the display terminal is adjusted per second.
  • adjusting the display terminal in the embodiment of the present application may refer to performing a rotating operation on the display terminal, the adjustment rate may be the rotation rate, and the adjustment direction may be the rotation direction, that is, the first adjustment rate may be the display terminal The first rotation rate at which the terminal rotates, and the first adjustment direction may be a first rotation direction for rotating the display terminal.
  • the second adjustment rate described later may be a second rotation rate for rotating the display terminal, and the second adjustment direction may be a second rotation direction for rotating the display terminal.
  • the display terminal may first obtain the initial picture width and initial picture height of the picture to be displayed and the screen width and screen height of the display terminal; The initial picture height determines the first display mode corresponding to the picture to be displayed, and the second display mode corresponding to the display terminal is determined according to the screen width and the screen height; finally, the first display mode can be determined according to the first display mode. And the second display mode to determine whether to adjust the display terminal; if the display terminal is determined to be adjusted according to the first display mode and the second display mode, then the display terminal is adjusted.
  • the problem of poor display effect of the to-be-displayed picture that is projected to the display terminal is often related to whether the display mode corresponding to the to-be-displayed picture matches the display mode corresponding to the display terminal.
  • the initial picture width and initial picture height of the to-be-displayed picture and the screen height and screen width of the display terminal may be acquired first.
  • the initial picture width is the pixel value in the horizontal direction of the picture to be displayed
  • the initial picture height is the pixel value in the vertical direction of the picture to be displayed.
  • the screen width and the screen height are also both Measured by pixel value.
  • the first display mode corresponding to the to-be-displayed picture can be determined according to the initial picture width and initial picture height of the to-be-displayed picture, and the first display mode corresponding to the display terminal can be determined according to the screen width and the screen height of the display terminal.
  • Two display mode. Wherein, both the first display mode and the second display mode may be any one of a landscape mode and a portrait mode.
  • Bp initial picture width/initial picture height
  • Bp initial picture height/initial picture
  • the width, and then the first display mode corresponding to the picture to be displayed can be determined according to the size relationship between Bp and the preset value.
  • the preset value may be 1.
  • Bp initial screen width/initial screen height
  • Bp is calculated to be less than 1
  • Bp is calculated to be 9/16
  • the first display mode corresponding to the to-be-displayed screen is the portrait mode
  • the calculated Bp is greater than or equal to 1
  • the calculated Bp is 16/9
  • the first display mode corresponding to the to-be-displayed picture is the landscape mode.
  • Bp initial picture height/initial picture width
  • BT screen width/screen height
  • BT screen height/screen width
  • the display terminal may perform the function according to the first display mode and the second display mode. It is determined whether to adjust the display terminal, and the target angle and target direction of the display terminal can be determined according to the first display mode and the second display mode.
  • the display terminal can be determined to be adjusted, and the target angle and target direction adjusted by the display terminal can be determined to be 90 degrees in the vertical direction, so as to adjust the display terminal to the target angle and target direction.
  • O is the center point of the display terminal and the screen to be displayed
  • the X-axis direction is the horizontal direction
  • the Y-axis direction is the vertical direction
  • the Y-axis direction is the positive display direction of the screen
  • S102 Determine a second adjustment rate and a second adjustment direction of the picture to be displayed according to the first adjustment rate and the first adjustment direction;
  • the determined second adjustment rate is the same as the first adjustment rate, and the determined second adjustment direction is opposite to the first adjustment direction.
  • the determined second adjustment angle is also 1 degree/S, and the determined second adjustment direction It is counterclockwise.
  • the display terminal may display the display terminal according to the first adjustment rate and the first adjustment direction.
  • the picture to be displayed is adjusted based on the second adjustment rate and the second adjustment direction.
  • the second adjustment rate and the second adjustment direction can be adjusted on the to-be-displayed picture by calling the setRotate(-R) of the Matrix object, and the adjusted to-be-displayed picture can be synchronously displayed in In the display terminal under adjustment, to ensure that when the display terminal is adjusted to the target angle, the display screen displayed on the display terminal can always be displayed to the user in a forward display mode, which improves the screen display effect and enhances The user’s viewing experience.
  • a preset correspondence relationship between the first adjustment rate and the first adjustment direction and the second adjustment rate and the second adjustment direction may be set in the display terminal in advance.
  • the display terminal can first obtain the first adjustment rate and the first adjustment direction; then, according to the first adjustment rate, the first adjustment direction, and the preset correspondence relationship, the second adjustment rate and the first adjustment rate of the picture to be displayed can be determined. 2. Adjust the direction.
  • the picture to be displayed can be adjusted simultaneously according to the second adjustment rate and the second adjustment direction, and the adjusted picture to be displayed can be displayed on the adjusted display terminal In order to realize the synchronous adjustment of the display terminal and the picture to be displayed, and improve the picture display effect.
  • the target angle when the display terminal is adjusted in the landscape mode, the target angle may be the angle when the display terminal is in the portrait mode, and when the display terminal is adjusted in the portrait mode, the target angle may be the angle when the display terminal is adjusted in the portrait mode.
  • the target angle may be an angle when the display terminal is in a landscape mode.
  • the to-be-displayed picture may also be adjusted based on the adjustment angle and adjustment direction of the display terminal. Specifically, after obtaining the first adjustment rate and the first adjustment direction of the display terminal, the display terminal may also obtain the adjustment time of the display terminal, and may also obtain the adjustment time according to the first adjustment rate and the adjustment time. The first adjustment angle of the display terminal is determined; or the first adjustment angle of the display terminal may be directly measured by an angle sensor.
  • the display terminal may first determine the second adjustment angle and the second adjustment direction of the picture to be displayed according to the first adjustment angle and the first adjustment direction ,
  • 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 second adjustment angle may be adjusted based on the second adjustment angle and the second adjustment direction.
  • a picture to be displayed, and the adjusted picture to be displayed may be displayed in a display terminal adjusted according to the first adjustment angle and the first adjustment direction.
  • a display terminal with adjustment direction adjustment may include:
  • Step a Determine the stretching ratio of the picture to be displayed according to the second adjustment angle
  • the screen height of the display terminal and the initial screen width of the to-be-displayed screen may be combined to determine the stretching ratio, so that when the display terminal and the to-be-displayed screen are combined
  • the target angle may be determined according to specific circumstances. For example, when the display terminal is adjusted in the landscape mode, the target angle may be the angle when the display terminal is in the portrait mode, and when the display terminal is in the portrait mode, During the adjustment of the display terminal, the target angle may be the angle when the display terminal is in the landscape mode.
  • the stretch ratio refers to the magnification of the initial picture height and initial picture width of the picture to be displayed.
  • the determining the stretching ratio of the picture to be displayed according to the second adjustment angle may include:
  • S302 Determine the target picture width of the picture to be displayed according to the screen height of the display terminal, the initial picture width of the picture to be displayed and the second adjustment angle;
  • the determining the target picture width of the picture to be displayed according to the screen height of the display terminal, the initial picture width of the picture to be displayed and the second adjustment angle may include:
  • Width tar 2R*(Height tv -Width pri )/ ⁇ + Width pri ;
  • Width tar is the target picture width of the picture to be displayed
  • R is the second adjustment angle
  • Height tv is the screen height of the display terminal
  • Width pri is the initial picture width of the picture to be displayed.
  • S303 Determine a stretching ratio of the picture to be displayed based on the initial picture width and the target picture width of the picture to be displayed.
  • the determining the stretching ratio of the picture to be displayed based on the initial picture width and the target picture width of the picture to be displayed may include:
  • Width tar / Width pri Width tar / Width pri .
  • the screen width of the display terminal and the initial screen height of the to-be-displayed screen may also be combined to determine the stretching ratio, so that when the display terminal and the to-be-displayed screen are combined
  • the determining the stretching ratio of the picture to be displayed according to the second adjustment angle may include:
  • S402 Determine the target picture height of the picture to be displayed according to the screen width of the display terminal, the initial picture height of the picture to be displayed and the second adjustment angle;
  • the determining the target picture height of the picture to be displayed according to the screen width of the display terminal, the initial picture height of the picture to be displayed and the second adjustment angle may include:
  • Height tar 2R*(Width tv -Height pri )/ ⁇ + Height pri ;
  • Heigh tar is the target picture width of the picture to be displayed
  • R is the second adjustment angle
  • Width tv is the screen width of the display terminal
  • Height pri is the initial picture height of the picture to be displayed.
  • S403 Determine a stretching ratio of the picture to be displayed based on the initial picture height and the target picture height of the picture to be displayed.
  • the determining the stretching ratio of the picture to be displayed based on the initial picture height and the target picture height of the picture to be displayed may include:
  • Step b Stretch the to-be-displayed picture by using the stretching ratio to obtain a target display picture
  • 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 on the screen adjusted according to the first adjustment angle and the first adjustment direction. Display terminal.
  • the display terminal may stretch the to-be-displayed picture by the stretching ratio, so as to stretch the picture to be displayed. Processing to obtain a target display screen, and adjust the target display screen based on the second adjustment angle and the second adjustment direction, so that when the adjusted target display screen is displayed on the display terminal, the The display of the display terminal is blank, thereby improving the screen display effect and enhancing the user's viewing experience.
  • the display terminal may stretch the to-be-displayed picture 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 picture.
  • the to-be-displayed picture can also be stretched according to the second adjustment angle to reduce the display blank when the display terminal displays the picture, improve the picture display effect, and enhance the user’s viewing experience.
  • the to-be-displayed picture can be stretched and synchronized adjustment to ensure that the display picture in the display terminal can always be displayed in a forward direction.
  • the display screen can be displayed on the display terminal in the forward display mode as shown in Figure 4a; for example, when the display terminal is adjusted to the target angle, the display can be displayed as shown in Figure 4a.
  • the forward display mode shown in 4b displays the display screen in the display terminal.
  • the stretching ratio is determined by combining the screen height of the display terminal and the initial picture width of the to-be-displayed picture
  • the stretching ratio can also include:
  • Step d Obtain the target screen height of the target display screen
  • Step e Determine whether the height of the target screen is greater than the screen height of the display terminal
  • Step f If the target screen height is greater than the screen height of the display terminal, adjust the target screen height and target screen width of the target display screen according to the screen height of the display terminal.
  • the stretching ratio is determined based on preferentially filling the screen width of the display terminal. Therefore, the target screen width of the target display screen obtained based on the stretching ratio is often not May exceed the screen width of the display terminal, but may cause the target screen height of the target display screen to exceed the screen height of the display terminal. At this time, if the target display screen is directly displayed on the display terminal, As a result, part of the screen in the target display screen that exceeds the height of the screen may not be displayed on the display terminal, causing the target display screen to be incompletely displayed, and the screen display effect is significantly reduced.
  • the display terminal may adjust the target according to the height of the screen.
  • the target screen height and target screen width of the display screen For example, the target screen height of the target display screen can be adjusted to the screen height, and the adjustment ratio corresponding to the adjustment can be determined according to the target screen height and the screen height, and then the adjustment ratio can be adjusted in equal proportions.
  • the target screen width of the target display screen is to ensure that the target display screen is displayed intact and the screen is not deformed, thereby improving the screen display effect and enhancing the user's viewing experience.
  • the stretching ratio is determined by combining the screen width of the display terminal and the original picture height of the to-be-displayed picture
  • the stretching ratio can also include:
  • Step g Obtain the target screen width of the target display screen
  • Step h Determine whether the target screen width is greater than the screen width of the display terminal
  • Step i If the target screen width is greater than the screen width of the display terminal, adjust the target screen height and target screen width of the target display screen according to the screen width of the display terminal.
  • the stretching ratio is determined based on the screen height of the display terminal being filled preferentially. Therefore, the target screen height of the target display screen obtained based on the stretching ratio is often not May exceed the screen height of the display terminal, but may cause the target screen width of the target display screen to exceed the screen width of the display terminal. At this time, if the target display screen is directly displayed on the display terminal, As a result, part of the screen in the target display screen that exceeds the screen width may not be displayed on the display terminal, causing the target display screen to be incompletely displayed, and the screen display effect is significantly reduced.
  • the display terminal may adjust the target according to the screen width.
  • the target screen height and target screen width of the display screen can be adjusted to the screen width, and the adjustment ratio corresponding to the adjustment can be determined according to the target screen width and the screen width, and then the adjustment ratio can be adjusted in equal proportions.
  • the height of the target screen of the target display screen is to ensure that the target display screen is displayed intact and the screen is not deformed, thereby improving the screen display effect and enhancing the user's viewing experience.
  • the display terminal when a to-be-displayed image is obtained, the display terminal is adjusted, and the first adjustment rate and the first adjustment direction of the display terminal are obtained, and the to-be-displayed image is a display image formed by the display terminal; Determine the second adjustment rate and the second adjustment direction of the picture to be displayed according to the first adjustment rate and the first adjustment direction; adjust the to be displayed based on the second adjustment rate and the second adjustment direction And display the adjusted to-be-displayed image in a display terminal adjusted according to the first adjustment rate and the first adjustment direction.
  • the display terminal can be adjusted when displaying the picture to be displayed, and when the display terminal is adjusted, the second adjustment rate and the first adjustment rate of the picture to be displayed can be determined according to the first adjustment rate and the first adjustment direction of the display terminal.
  • the second adjustment direction is to perform synchronous adjustment of the picture to be displayed according to the second adjustment rate and the second adjustment direction to ensure that the display screen is always displayed to the user in a positive display mode during the adjustment process of the display terminal, which improves the screen display effect and enhances the user’s The viewing experience.
  • FIG. 5 shows a structural block diagram of a screen display device provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the picture display device may include:
  • the first rate direction obtaining module 501 is configured to adjust the display terminal when obtaining the picture to be displayed, and obtain the first adjustment rate and the first adjustment direction of the display terminal, and the picture to be displayed is formed by the display terminal Display screen;
  • a second rate direction determining module 502 configured to determine a second adjustment rate and a second adjustment direction of the picture to be displayed according to the first adjustment rate and the first adjustment direction;
  • the picture display module 503 is configured to adjust the picture to be displayed based on the second adjustment rate and the second adjustment direction, and display the adjusted picture to be displayed according to the first adjustment rate and the The first adjustment direction is adjusted in the display terminal.
  • the second adjustment rate is the same as the first adjustment rate, and the second adjustment direction is opposite to the first adjustment direction.
  • the screen display device may further include:
  • a first adjustment angle determination module configured to obtain the adjustment time of the display terminal, and determine the first adjustment angle of the display terminal according to the first adjustment rate and the adjustment time;
  • the second speed direction determining module 502 may also be configured to determine a second adjustment angle and a second adjustment direction of the picture to be displayed according to the first adjustment angle and the first adjustment direction, and the second adjustment The angle is the same as the first adjustment angle.
  • the picture display module 503 may also be used to adjust the picture to be displayed based on the second adjustment angle and the second adjustment direction, and display the adjusted picture to be displayed on the basis of the first adjustment.
  • the angle and the first adjustment direction are adjusted in the display terminal.
  • the screen display module 503 may include:
  • a stretching ratio determining unit configured to determine the stretching ratio of the picture to be displayed according to the second adjustment angle
  • the screen stretching unit is configured to stretch the to-be-displayed screen by using the stretching ratio to obtain a target display screen
  • the screen display unit is configured to adjust the target display screen based on the second adjustment angle and the second adjustment direction, and display the adjusted target display screen on the basis of the first adjustment angle and the first adjustment In the display terminal with orientation adjustment.
  • the stretching ratio determination unit may include:
  • the screen height acquisition subunit is used to acquire the screen height of the display terminal and the initial picture width of the picture to be displayed;
  • the target picture width determination subunit is configured to determine the target picture width of the picture to be displayed according to the screen height of the display terminal, the initial picture width of the picture to be displayed and the second adjustment angle;
  • the first stretching ratio determination sub-unit is used to determine the stretching ratio of the picture to be displayed based on the initial picture width and the target picture width of the picture to be displayed.
  • the target picture width determination subunit is specifically configured to determine the target picture width of the picture to be displayed by using the following formula:
  • Width tar 2R*(Height tv -Width pri )/ ⁇ + Width pri ;
  • Width tar is the target picture width of the picture to be displayed
  • R is the second adjustment angle
  • Height tv is the screen height of the display terminal
  • Width pri is the initial picture width of the picture to be displayed.
  • the first stretching ratio determination subunit is specifically configured to determine the stretching ratio Pro of the picture to be displayed according to the following formula:
  • Width tar / Width pri Width tar / Width pri .
  • the screen display device may further include:
  • the target screen height obtaining module is used to obtain the target screen height of the target display screen
  • the target screen height judgment module is used to determine whether the target screen height is greater than the screen height of the display terminal
  • the target screen adjustment module is configured to adjust the target screen height and target screen width of the target display screen according to the screen height of the display terminal if the target screen height is greater than the screen height of the display terminal.
  • the stretching ratio determining unit may further include:
  • a screen width acquisition sub-unit for acquiring the screen width of the display terminal and the initial picture height of the picture to be displayed
  • the target picture height determination subunit is configured to determine the target picture height of the picture to be displayed according to the screen width of the display terminal, the initial picture height of the picture to be displayed and the second adjustment angle;
  • the second stretching ratio determination subunit is used to determine the stretching ratio of the picture to be displayed based on the initial picture height and the target picture height of the picture to be displayed.
  • the target picture height determination subunit is used to determine the target picture height of the picture to be displayed by using the following formula:
  • Height tar 2R*(Width tv -Height pri )/ ⁇ + Height pri ;
  • Heigh tar is the target picture width of the picture to be displayed
  • R is the second adjustment angle
  • Width tv is the screen width of the display terminal
  • Height pri is the initial picture height of the picture to be displayed.
  • the picture to be displayed is a display picture formed by outputting media information to the display terminal.
  • the second rate direction determining module 502 may also be configured to determine the second rate of the picture to be displayed according to the first adjustment rate, the first adjustment direction, and a preset correspondence relationship. 2. Adjustment rate and second adjustment direction;
  • the screen display module 503 may also be used to adjust the standby mode according to the second adjustment rate and the second adjustment direction when the display terminal is adjusted according to the first adjustment rate and the first adjustment direction. Display the screen, and display the adjusted to-be-displayed screen on the adjusted display terminal.
  • the first rate direction obtaining module 501 may include:
  • a display mode acquiring unit configured to acquire the display mode corresponding to the to-be-displayed picture when acquiring the to-be-displayed picture, and determine whether to adjust the display terminal according to the display mode corresponding to the to-be-displayed picture;
  • the display terminal adjustment unit is configured to adjust the display terminal when it is determined to adjust the display terminal according to the display mode corresponding to the picture to be displayed.
  • the display mode acquisition unit may include:
  • the initial height acquisition subunit is used to acquire the initial picture width and initial picture height of the picture to be displayed and the screen width and screen height of the display terminal;
  • the display mode acquisition subunit is configured to determine the first display mode corresponding to the picture to be displayed according to the initial picture width and the initial picture height, and to determine the corresponding display terminal according to the screen width and the screen height The second display mode;
  • the display mode judgment subunit is used to determine whether the first display mode and the second display mode are the same;
  • the adjustment determination sub-unit is configured to determine to adjust the display terminal when the first display mode is different from the second display mode.
  • FIG. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the application.
  • the terminal device 6 of this embodiment includes: at least one processor 60 (only one is shown in FIG. 6), a memory 61, and stored in the memory 61 and can be stored in the at least one processor 60
  • the processor 60 executes the computer program 62, the steps in any of the above-mentioned screen display method embodiments are implemented.
  • the terminal device 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 60 and a memory 61.
  • FIG. 6 is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or less components than shown in the figure, or a combination of certain components, or different components. , For example, can also include input and output devices, network access devices, and so on.
  • the processor 60 may be a central processing unit (Central Processing Unit, CPU), and the processor 60 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (Application Specific Integrated Circuits). Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the terminal device 6 in some embodiments, such as a hard disk or a memory of the terminal device 6. In other embodiments, the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk equipped on the terminal device 6, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, flash card (Flash Card), etc. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device.
  • the memory 61 is used to store an operating system, an application program, a boot loader (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.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be implemented.
  • the embodiments of the present application provide a computer program product.
  • the terminal device can implement the steps in the foregoing method embodiments when executed.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium.
  • the computer program can be stored in a computer-readable storage medium.
  • the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunications signals
  • software distribution media Such as U disk, mobile hard disk, floppy disk or CD-ROM, etc.
  • computer-readable media cannot be electrical carrier signals and telecommunication signals.
  • the disclosed device/terminal device and method may be implemented in other ways.
  • the device/terminal device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • 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 units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

一种画面显示方法、存储介质及终端设备,该画面显示方法包括在获取到待显示画面时,调整显示终端,并获取显示终端的第一调整速率和第一调整方向,待显示画面为显示终端形成的显示画面(S101);根据第一调整速率和第一调整方向确定待显示画面的第二调整速率和第二调整方向(S102);基于第二调整速率和第二调整方向调整待显示画面,并将调整后的待显示画面显示在根据第一调整速率和第一调整方向调整的显示终端中(S103),以减少终端显示画面时的显示空白,并确保终端调整过程中显示画面始终以正向显示方式向用户显示,提高画面显示效果。

Description

一种画面显示方法、存储介质及终端设备
本申请要求于2019年12月31日在中国专利局提交的、申请号为201911420590.2、发明名称为“一种画面显示方法、存储介质及终端设备”的中国专利申请的优先权,以及要求于2020年12月10在中国专利局提交的、申请号为202011438800.3、发明名称为“一种画面显示方法、存储介质及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于终端技术领域,尤其涉及一种画面显示方法、计算机可读存储介质及终端设备。
背景技术
随着智能手机的发展,通过智能手机进行照片、视频等内容的观看也越来越普及。由于智能手机的屏幕尺寸较小,为获取更好的观看效果,很多用户会将智能手机上显示的照片、视频等内容投屏至电视等显示终端上观看,但现有的电视等显示终端一般都是固定的横屏模式,适合进行横屏模式的照片、视频等内容的显示,而对于竖屏模式的照片、视频等内容则存在显示效果差的问题。
技术问题
本申请实施例提供了一种画面显示方法、计算机可读存储介质及终端设备,可以解决现有的显示终端对于竖屏模式的照片、视频等内容存在显示效果差的问题。
技术解决方案
第一方面,本申请实施例提供了一种画面显示方法,包括:
在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;
根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;
基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。
可选地,所述第二调整速率与所述第一调整速率相同,所述第二调整方向与所述第一调整方向相反。
可选地,在所述获取所述显示终端的第一调整速率和第一调整方向之后,包括:
获取所述显示终端的调整时间,并根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;
所述根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向,包括:
根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同;
所述基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中,包括:
基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
可选地,所述基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中,包括:
根据所述第二调整角度确定所述待显示画面的拉伸比例;
利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面;
基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,并将调整后的目标显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
在第一方面的一种可能的实现方式中,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,包括:
获取所述显示终端的屏幕高度和所述待显示画面的初始画面宽度;
根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度;
基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例。
可选地,所述根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度,包括:
利用下述公式确定所述待显示画面的目标画面宽度:
Width tar = 2R*(Height tv - Width pri)/π+ Width pri
其中,Width tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Height tv为所述显示终端的屏幕高度,Width pri为所述待显示画面的初始画面宽度。
具体地,所述基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例,包括:
根据下述公式确定所述待显示画面的拉伸比例Pro:
Pro = Width tar / Width pri
在第一方面的一种可能的实现方式中,在所述利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面之后,包括:
获取所述目标显示画面的目标画面高度;
确定所述目标画面高度是否大于所述显示终端的屏幕高度;
若所述目标画面高度大于所述显示终端的屏幕高度,则根据所述显示终端的屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。
可选地,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,包括:
获取所述显示终端的屏幕宽度和所述待显示画面的初始画面高度;
根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度;
基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例。
具体地,所述根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度,包括:
利用下述公式确定所述待显示画面的目标画面高度:
Height tar = 2R*(Width tv- Height pri)/π+ Height pri
其中,Heigh tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Width tv为所述显示终端的屏幕宽度,Height pri为所述待显示画面的初始画面高度。
示例性的,所述待显示画面为媒体信息输出至所述显示终端形成的显示画面。
可选地,所述根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向,包括:
根据所述第一调整速率、所述第一调整方向以及预设对应关系确定所述待显示画面的第二调整速率和第二调整方向;
所述基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中,包括:
在根据所述第一调整速率和所述第一调整方向调整所述显示终端时,同时根据所述第二调整速率和第二调整方向调整所述待显示画面,并将调整后的待显示画面显示在调整后的显示终端中。
可选地,所述在获取到待显示画面时,调整显示终端,包括:
在获取所述待显示画面时,获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端;
当根据所述待显示画面对应的显示模式确定调整所述显示终端,调整所述显示终端。
示例性的,所述获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端,包括:
获取所述待显示画面的初始画面宽度和初始画面高度以及所述显示终端的屏幕宽度和屏幕高度;
根据所述初始画面宽度和所述初始画面高度确定所述待显示画面对应的第一显示模式,并根据所述屏幕宽度和所述屏幕高度确定所述显示终端对应的第二显示模式;
确定所述第一显示模式与所述第二显示模式是否相同;
当所述第一显示模式与所述第二显示模式不相同时,确定调整所述显示终端。
第二方面,本申请实施例提供了一种画面显示装置,包括:
第一速率方向获取模块,用于在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;
第二速率方向确定模块,用于根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;
画面显示模块,用于基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。
第三方面,本申请实施例提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面中任一项所述的画面显示方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面中任一项所述的画面显示方法。
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项所述的画面显示方法。
有益效果
本申请实施例与现有技术相比存在的有益效果是:
本申请实施例中,在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。即本申请实施例在进行待显示画面的显示时,可调整显示终端,而在调整显示终端时,可根据显示终端的第一调整速率和第一调整方向确定待显示画面的第二调整速率和第二调整方向,以根据第二调整速率和第二调整方向进行待显示画面的同步调整,确保显示终端调整过程中显示画面始终以正向显示方式向用户显示,提高画面显示效果,提升用户的观看体验。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一实施例提供的画面显示方法的流程示意图;
图2a示出了本申请实施例提供的驱动装置的整体示意图;
图2b是本申请一实施例提供的画面显示图;
图3是本申请一实施例提供的画面显示方法在一个应用场景下确定待显示画面的拉伸比例的流程示意图;
图4是本申请一实施例提供的画面显示方法在另一个应用场景下确定待显示画面的拉伸比例的流程示意图;
图4a是本申请一实施例提供的显示终端调整过程中的画面显示图;
图4b是本申请一实施例提供的显示终端调整至目标角度的画面显示图;
图5是本申请实施例提供的画面显示装置的结构示意图;
图6是本申请实施例提供的终端设备的结构示意图。
本发明的实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定***结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的***、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
如图1所示,本申请实施例提供了一种画面显示方法。本申请实施例的执行主体可以为终端设备,所述终端设备可以为电视等显示终端,也可以为与电视等显示终端连接的桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。作为示例而非限定,下面将以执行主体为进行画面显示的电视等显示终端为例来对本申请实施例提供的画面显示方法进行详细说明。其中,所述画面显示方法可以包括:
S101、在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;
可以理解的是,所述待显示画面可以为媒体信息输出至所述显示终端形成的显示画面。示例的,所述媒体信息可以是手机、平板电脑、可穿戴设备等移动终端投屏至电视等显示终端上呈现的图片或者视频等内容画面。具体地,可以事先建立移动终端与显示终端之间的连接,并可在所述移动终端监测到用户需要将所述移动终端上浏览的图片或者视频等内容画面投屏至所述显示终端上显示时,可向所述显示终端发送投屏请求,例如,可在所述移动终端监测到用户的摇一摇操作或者用户点击所述移动终端屏幕中的投屏按钮等指定操作时,向所述显示终端发送投屏请求。所述显示终端接收到所述投屏请求后,可根据具体情况确定是否接收所述投屏请求,若确定接收所述投屏请求,则可向所述移动终端发送接收指令,所述移动终端即可根据所述接收指令向所述显示终端发送图片或者视频等内容画面。例如,所述移动终端可以一定帧率录制所述移动终端屏幕中显示的图片或者视频等内容画面,同时同步录制图片或者视频等内容画面所对应的声音,并对所录制的图片或者视频等内容画面与所录制的声音进行分别编码后实时流式发送至所述显示终端。
在此,所述显示终端在接收到所述移动终端发送的编码后的内容画面时,可以首先通过对其进行解码,以此获取所述移动终端发送的待显示画面(即图片或者视频等内容画面),然后可以根据所述待显示画面确定是否调整所述显示终端。例如,可以根据所述待显示画面对应的显示模式来确定是否调整所述显示终端,若确定调整所述显示终端,则可以控制所述显示终端调整,并可以获取所述显示终端调整过程中的第一调整速率和第一调整方向。例如,在所述显示终端调整过程中,可通过所述显示终端中设置陀螺仪等测量装置实时测量所述显示终端在水平方向上或竖直方向上的第一调整速率和第一调整方向,即所述第一调整速率和第一调整方向可以是所述显示终端相对于水平方向上的调整速率和调整方向,也可以是所述显示终端相对于竖直方向上的调整速率和调整方向。
本申请实施例中,可以通过启动所述显示终端对应的驱动装置,以通过所述驱动装置驱动所述显示终端运动,来调整所述显示终端。其中,所述显示终端设备对应的驱动装置可以为与所述显示终端连接的驱动装置。
请参阅图2a,图2a示出了本申请实施例提供的驱动装置的整体示意图。如图2a所述,所述驱动装置20可以与所述显示终端30连接,或者可以与用于安装所述显示终端30的连接板40连接。所述驱动装置20可以包括减速机21和电动机22,所述减速机21位于所述显示终端30与所述电动机22之间,所述减速机21的转轴水平向前延伸并与所述显示终端30连接,或者与所述连接板40连接,从而将所述显示终端30或者所述连接板40与所述电动机22连接;所述减速机21和所述电动机22同步启动,驱动所述显示终端30运动,或者驱动所述连接板40运动,从而带动所述显示终端30运动。
本申请实施例中,调整显示终端是指将显示终端由横屏模式调整至竖屏模式,或者将显示终端由竖屏模式调整至横屏模式等。第一调整方向是指通过顺时针方向进行显示终端的调整,或者通过逆时针方向进行显示终端的调整。第一调整速率可以为每秒对显示终端进行调整的角度。
示例性的,本申请实施例中的调整显示终端可以是指对显示终端进行旋转操作,调整速率可以为旋转速率,调整方向可以为旋转方向,即所述第一调整速率可以为对所述显示终端进行旋转的第一旋转速率,所述第一调整方向可以为对所述显示终端进行旋转的第一旋转方向。类似的,后续描述的第二调整速率可以为对所述显示终端进行旋转的第二旋转速率,所述第二调整方向可以为对所述显示终端进行旋转的第二旋转方向。
在一种可能的实现方式中,所述显示终端可以首先获取所述待显示画面的初始画面宽度和初始画面高度以及所述显示终端的屏幕宽度和屏幕高度;然后可以根据所述初始画面宽度和所述初始画面高度确定所述待显示画面对应的第一显示模式,并根据所述屏幕宽度和所述屏幕高度确定所述显示终端对应的第二显示模式;最后可以根据所述第一显示模式和所述第二显示模式确定是否调整所述显示终端;若根据所述第一显示模式和所述第二显示模式确定调整所述显示终端,则调整所述显示终端。
应理解,投屏至显示终端上显示的待显示画面存在显示效果较差的问题往往与所述待显示画面对应的显示模式是否与所述显示终端对应的显示模式相匹配相关。本申请实施例中,可以首先获取所述待显示画面的初始画面宽度和初始画面高度以及获取所述显示终端的屏幕高度和屏幕宽度。其中,所述初始画面宽度为所述待显示画面横向上的像素值,所述初始画面高度为所述待显示画面纵向上的像素值,类似的,所述屏幕宽度和所述屏幕高度也均通过像素值衡量。然后可以根据所述待显示画面的初始画面宽度和初始画面高度确定所述待显示画面对应的第一显示模式,并可以根据所述显示终端的屏幕宽度和屏幕高度确定所述显示终端对应的第二显示模式。其中,所述第一显示模式和所述第二显示模式均可以为横屏模式和竖屏模式中的任一种。
在一个具体应用场景中,可以首先计算所述待显示画面的初始画面宽度和初始画面高度之间的比值Bp,其中,Bp=初始画面宽度/初始画面高度,或者Bp=初始画面高度/初始画面宽度,然后可以根据Bp与预设值的大小关系来确定所述待显示画面对应的第一显示模式。其中,所述预设值可以为1。例如当Bp=初始画面宽度/初始画面高度时,若计算得到Bp小于1,如计算得到Bp为9/16时,则可以确定所述待显示画面对应的第一显示模式为竖屏模式;若计算得到Bp大于或等于1,如计算得到Bp为16/9时,则可以确定所述待显示画面对应的第一显示模式为横屏模式。又如当Bp=初始画面高度/初始画面宽度,若计算得到Bp大于1,则可以确定所述待显示画面对应的第一显示模式为竖屏模式,若计算得到Bp小于或等于1,则可以确定所述待显示画面对应的第一显示模式为横屏模式。类似地,所述显示终端对应的第二显示模式也可以类似确定,即BT=屏幕宽度/屏幕高度,或者BT=屏幕高度/屏幕宽度。
在此,所述显示终端在获取到所述待显示画面对应的第一显示模式和所述显示终端对应的第二显示模式后,可以根据所述第一显示模式和所述第二显示模式来确定是否调整所述显示终端,并可根据所述第一显示模式和所述第二显示模式确定所述显示终端的目标角度和目标方向。
具体地,当所述第一显示模式与所述第二显示模式不相同时,例如,如图2b所示,当所述第一显示模式为竖屏模式,而所述第二显示模式为横屏模式时,则可以确定调整所述显示终端,并可以确定所述显示终端调整的目标角度和目标方向为竖直方向90度,以将所述显示终端调整至所述目标角度和目标方向。其中,图2b中,O为所述显示终端和所述待显示画面的中心点,X轴方向为水平方向,Y轴方向为竖直方向,同时Y轴方向为画面的正向显示方向,且在调整过程中,所述显示终端和所述待显示画面的中心点保持不变;或者,当所述第一显示模式为横屏模式,而所述第二显示模式为竖屏模式时,则可以确定调整所述显示终端,并可以确定所述显示终端调整的目标角度和目标方向为水平方向0度,以将所述显示终端调整至所述目标角度和目标方向。
S102、根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;
在一种可能的实现方式中,所确定的第二调整速率与所述第一调整速率相同,而所确定的第二调整方向与所述第一调整方向相反。例如,当所述第一调整速率为1度/S,所述第一调整方向为顺时针方向时,则所确定的第二调整角度也为1度/S,而所确定的第二调整方向则为逆时针方向。
S103、基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。
本申请实施例中,所述显示终端在确定所述待显示画面对应的第二调整速率和第二调整方向后,可以在根据所述第一调整速率和所述第一调整方向对所述显示终端进行调整的过程中,基于所述第二调整速率和所述第二调整方向调整所述待显示画面。例如可以通过调用矩阵变换Matrix对象的setRotate(-R)来对所述待显示画面进行所述第二调整速率和所述第二调整方向的调整,并可以将调整后的待显示画面同步显示在调整中的显示终端中,以确保在所述显示终端调整至目标角度的过程中,可以使得所述显示终端中所显示的显示画面始终以正向显示方式向用户显示,提高画面显示效果,提升用户的观看体验。
在一种可能的实现方式中,显示终端中可以事先设置有第一调整速率和第一调整方向与第二调整速率和第二调整方向之间的预设对应关系。在需要调整显示终端时,显示终端可以先获取第一调整速率和第一调整方向;然后可以根据第一调整速率、第一调整方向以及预设对应关系确定待显示画面的第二调整速率和第二调整方向。因此,在根据第一调整速率和第一调整方向调整显示终端时,可以同时根据第二调整速率和第二调整方向调整待显示画面,并将调整后的待显示画面显示在调整后的显示终端中,以实现显示终端与待显示画面的同步调整,提高画面显示效果。
本申请实施例中,在进行横屏模式下的显示终端调整时,所述目标角度可以为所述显示终端为竖屏模式下的角度,而在进行竖屏模式下的显示终端调整时,所述目标角度可以为所述显示终端为横屏模式下的角度。
在另一种可能的实现方式中,所述待显示画面也可以基于所述显示终端的调整角度和调整方向进行调整。具体地,所述显示终端在获取所述显示终端的第一调整速率和第一调整方向之后,还可以获取所述显示终端的调整时间,并可根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;或者也可以直接通过角度传感器测量得到所述显示终端的第一调整角度。在确定所述显示终端的第一调整角度后,所述显示终端则可以首先根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同,所述第二调整方向与所述第一调整方向相反;然后可以基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并可以将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
可选地,所述基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中,可以包括:
步骤a、根据所述第二调整角度确定所述待显示画面的拉伸比例;
在一种可能的实现方式中,可以结合所述显示终端的屏幕高度和所述待显示画面的初始画面宽度来确定所述拉伸比例,以使得在将所述显示终端和所述待显示画面调整至目标角度时,可以使得所述待显示画面优先填满所述显示终端的屏幕宽度。其中,所述目标角度可以根据具体情况确定,例如在进行横屏模式下的显示终端的调整时,所述目标角度可以为所述显示终端为竖屏模式下的角度,在进行竖屏模式下的显示终端的调整时,所述目标角度则可以为所述显示终端为横屏模式下的角度。所述拉伸比例是指对所述待显示画面的初始画面高度和初始画面宽度进行放大的倍数。
具体地,如图3所示,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,可以包括:
S301、获取所述显示终端的屏幕高度和所述待显示画面的初始画面宽度;
S302、根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度;
在此,所述根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度,可以包括:
利用下述公式确定所述待显示画面的目标画面宽度:
Width tar = 2R*(Height tv- Width pri)/π+ Width pri
其中,Width tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Height tv为所述显示终端的屏幕高度,Width pri为所述待显示画面的初始画面宽度。
S303、基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例。
具体地,所述基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例,可以包括:
根据下述公式确定所述待显示画面的缩放比例Pro:
Pro = Width tar / Width pri
在另一种可能的实现方式中,也可以结合所述显示终端的屏幕宽度和所述待显示画面的初始画面高度来确定所述拉伸比例,以使得在将所述显示终端和所述待显示画面调整至目标角度时,可以使得所述待显示画面优先填满所述显示终端的屏幕高度。具体地,如图4所示,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,可以包括:
S401、获取所述显示终端的屏幕宽度和所述待显示画面的初始画面高度;
S402、根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度;
在此,所述根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度,可以包括:
利用下述公式确定所述待显示画面的目标画面高度:
Height tar = 2R*(Width tv- Height pri)/π+ Height pri
其中,Heigh tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Width tv为所述显示终端的屏幕宽度,Height pri为所述待显示画面的初始画面高度。
S403、基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例。
具体地,所述基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例,可以包括:
根据下述公式确定所述待显示画面的拉伸比例Pro:
Pro = Height tar / Height pri
步骤b、利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面;
步骤c、基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,并将调整后的目标显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
需要说明的是,所述显示终端在确定所述待显示画面的拉伸比例后,则可以通过所述拉伸比例来拉伸所述待显示画面,以通过对所述待显示画面进行拉伸处理,得到目标显示画面,并基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,使得调整后的目标显示画面在所述显示终端中进行显示时,可减少所述显示终端的显示空白,从而提高画面显示效果,提升用户的观看体验。在此,所述显示终端可以通过调用矩阵变换Matrix对象的setScale(Pro,Pro)方法和Bitmap对象的createBitmap方法来拉伸所述待显示画面,得到拉伸后的目标显示画面。即在待显示画面的同步调整过程中,还可根据第二调整角度进行待显示画面的拉伸处理,以减少显示终端显示画面时的显示空白,提高画面显示效果,提升用户的观看体验。
例如,在根据图2b所示的待显示画面进行显示终端的调整时,可以对所述待显示画面进行拉伸与同步调整,以确保所述显示终端中的显示画面可以始终以正向显示方式显示给用户,比如在某一具体时刻,可以如图4a所示的正向显示方式在所述显示终端中进行显示画面的显示;又比如在所述显示终端调整至目标角度时,可以如图4b所示的正向显示方式在所述显示终端中进行显示画面的显示。
应理解,在所述拉伸比例是结合所述显示终端的屏幕高度和所述待显示画面的初始画面宽度所确定的应用场景中,在所述利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面之后,还可以包括:
步骤d、获取所述目标显示画面的目标画面高度;
步骤e、确定所述目标画面高度是否大于所述显示终端的屏幕高度;
步骤f、若所述目标画面高度大于所述显示终端的屏幕高度,则根据所述显示终端的屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。
对于上述步骤d至步骤f,所述拉伸比例是基于优先填满所述显示终端的屏幕宽度所确定的,因此,基于所述拉伸比例得到的所述目标显示画面的目标画面宽度往往不会超过所述显示终端的屏幕宽度,但可能会使得所述目标显示画面的目标画面高度超过所述显示终端的屏幕高度,此时若直接将所述目标显示画面显示在所述显示终端上,则可能会使得所述目标显示画面中超过所述屏幕高度的部分画面无法在所述显示终端中显示出,造成所述目标显示画面存在显示不全的问题,明显降低了画面显示效果。在此,本场景中,在确定所述目标画面高度超过所述屏幕高度时,即在确定所述目标画面高度大于所述屏幕高度时,所述显示终端可根据所述屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。例如,可以将所述目标显示画面的目标画面高度调整至所述屏幕高度,并可以根据所述目标画面高度和所述屏幕高度确定调整所对应的调整比例,然后可以根据该调整比例等比例调整所述目标显示画面的目标画面宽度,以在确保所述目标显示画面显示完整的基础上,保证画面不变形,从而提高画面显示效果,提升用户的观看体验。
应理解,在所述拉伸比例是结合所述显示终端的屏幕宽度和所述待显示画面的原始画面高度所确定的应用场景中,在所述利用所述拉伸比例缩放所述待显示画面,得到目标显示画面之后,还可以包括:
步骤g、获取所述目标显示画面的目标画面宽度;
步骤h、确定所述目标画面宽度是否大于所述显示终端的屏幕宽度;
步骤i、若所述目标画面宽度大于所述显示终端的屏幕宽度,则根据所述显示终端的屏幕宽度调整所述目标显示画面的目标画面高度和目标画面宽度。
对于上述步骤g至步骤i,所述拉伸比例是基于优先填满所述显示终端的屏幕高度所确定的,因此,基于所述拉伸比例得到的所述目标显示画面的目标画面高度往往不会超过所述显示终端的屏幕高度,但可能会使得所述目标显示画面的目标画面宽度超过所述显示终端的屏幕宽度,此时若直接将所述目标显示画面显示在所述显示终端上,则可能会使得所述目标显示画面中超过所述屏幕宽度的部分画面无法在所述显示终端中显示出,造成所述目标显示画面存在显示不全的问题,明显降低了画面显示效果。在此,本场景中,在确定所述目标画面宽度超过所述屏幕宽度时,即在确定所述目标画面宽度大于所述屏幕宽度时,所述显示终端可根据所述屏幕宽度调整所述目标显示画面的目标画面高度和目标画面宽度。例如,可以将所述目标显示画面的目标画面宽度调整至所述屏幕宽度,并可以根据所述目标画面宽度和所述屏幕宽度确定调整所对应的调整比例,然后可以根据该调整比例等比例调整所述目标显示画面的目标画面高度,以在确保所述目标显示画面显示完整的基础上,保证画面不变形,从而提高画面显示效果,提升用户的观看体验。
本申请实施例中,在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。即本申请实施例在进行待显示画面的显示时,可调整显示终端,而调整显示终端时,可根据显示终端的第一调整速率和第一调整方向确定待显示画面的第二调整速率和第二调整方向,以根据第二调整速率和第二调整方向进行待显示画面的同步调整,以确保显示终端调整过程中显示画面始终以正向显示方式向用户显示,提高画面显示效果,提升用户的观看体验。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于上文实施例所述的画面显示方法,图5示出了本申请实施例提供的画面显示装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。
如图5所示,所述画面显示装置,可以包括:
第一速率方向获取模块501,用于在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;
第二速率方向确定模块502,用于根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;
画面显示模块503,用于基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。
示例性的,所述第二调整速率与所述第一调整速率相同,所述第二调整方向与所述第一调整方向相反。
在一种可能的实现方式中,所述画面显示装置,还可以包括:
第一调整角度确定模块,用于获取所述显示终端的调整时间,并根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;
所述第二速率方向确定模块502,还可以用于根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同。
所述画面显示模块503,还可以用于基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
可选地,所述画面显示模块503,可以包括:
拉伸比例确定单元,用于根据所述第二调整角度确定所述待显示画面的拉伸比例;
画面拉伸单元,用于利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面;
画面显示单元,用于基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,并将调整后的目标显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
在一种可能的实现方式中,所述拉伸比例确定单元,可以包括:
屏幕高度获取分单元,用于获取所述显示终端的屏幕高度和所述待显示画面的初始画面宽度;
目标画面宽度确定分单元,用于根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度;
第一拉伸比例确定分单元,用于基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例。
可选地,所述目标画面宽度确定分单元,具体用于利用下述公式确定所述待显示画面的目标画面宽度:
Width tar = 2R*(Height tv- Width pri)/π+ Width pri
其中,Width tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Height tv为所述显示终端的屏幕高度,Width pri为所述待显示画面的初始画面宽度。
具体地,所述第一拉伸比例确定分单元,具体用于根据下述公式确定所述待显示画面的拉伸比例Pro:
Pro = Width tar / Width pri
在一种可能的实现方式中,所述画面显示装置,还可以包括:
目标画面高度获取模块,用于获取所述目标显示画面的目标画面高度;
目标画面高度判断模块,用于确定所述目标画面高度是否大于所述显示终端的屏幕高度;
目标画面调整模块,用于若所述目标画面高度大于所述显示终端的屏幕高度,则根据所述显示终端的屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。
可选地,所述拉伸比例确定单元,还可以包括:
屏幕宽度获取分单元,用于获取所述显示终端的屏幕宽度和所述待显示画面的初始画面高度;
目标画面高度确定分单元,用于根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度;
第二拉伸比例确定分单元,用于基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例。
示例性的,所述目标画面高度确定分单元,用于利用下述公式确定所述待显示画面的目标画面高度:
Height tar = 2R*(Width tv- Height pri)/π+ Height pri
其中,Heigh tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Width tv为所述显示终端的屏幕宽度,Height pri为所述待显示画面的初始画面高度。
示例性的,所述待显示画面为媒体信息输出至所述显示终端形成的显示画面。
在一种可能的实现方式中,所述第二速率方向确定模块502,还可以用于根据所述第一调整速率、所述第一调整方向以及预设对应关系确定所述待显示画面的第二调整速率和第二调整方向;
所述画面显示模块503,还可以用于在根据所述第一调整速率和所述第一调整方向调整所述显示终端时,同时根据所述第二调整速率和第二调整方向调整所述待显示画面,并将调整后的待显示画面显示在调整后的显示终端中。
可选地,所述第一速率方向获取模块501,可以包括:
显示模式获取单元,用于在获取所述待显示画面时,获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端;
显示终端调整单元,用于当根据所述待显示画面对应的显示模式确定调整所述显示终端,调整所述显示终端。
示例性的,所述显示模式获取单元,可以包括:
初始高度获取分单元,用于获取所述待显示画面的初始画面宽度和初始画面高度以及所述显示终端的屏幕宽度和屏幕高度;
显示模式获取分单元,用于根据所述初始画面宽度和所述初始画面高度确定所述待显示画面对应的第一显示模式,并根据所述屏幕宽度和所述屏幕高度确定所述显示终端对应的第二显示模式;
显示模式判断分单元,用于确定所述第一显示模式与所述第二显示模式是否相同;
调整确定分单元,用于当所述第一显示模式与所述第二显示模式不相同时,确定调整所述显示终端。
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述***中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
图6为本申请一实施例提供的终端设备的结构示意图。如图6所示,该实施例的终端设备6包括:至少一个处理器60(图6中仅示出一个)、存储器61以及存储在所述存储器61中并可在所述至少一个处理器60上运行的计算机程序62,所述处理器60执行所述计算机程序62时实现上述任意各个画面显示方法实施例中的步骤。
所述终端设备6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该终端设备可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图6仅仅是终端设备6的举例,并不构成对终端设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。
所述处理器60可以是中央处理单元(Central Processing Unit,CPU),该处理器60还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器61在一些实施例中可以是所述终端设备6的内部存储单元,例如终端设备6的硬盘或内存。所述存储器61在另一些实施例中也可以是所述终端设备6的外部存储设备,例如所述终端设备6上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器61还可以既包括所述终端设备6的内部存储单元也包括外部存储设备。所述存储器61用于存储操作***、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时可实现上述各个方法实施例中的步骤。
本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时可实现上述各个方法实施例中的步骤。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种画面显示方法,其特征在于,包括:
    在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;
    根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;
    基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。
  2. 如权利要求1所述的画面显示方法,其特征在于,所述第二调整速率与所述第一调整速率相同,所述第二调整方向与所述第一调整方向相反。
  3. 如权利要求1所述的画面显示方法,其特征在于,在所述获取所述显示终端的第一调整速率和第一调整方向之后,包括:
    获取所述显示终端的调整时间,并根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;
    所述根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向,包括:
    根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同;
    所述基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中,包括:
    基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
  4. 如权利要求3所述的画面显示方法,其特征在于,所述基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中,包括:
    根据所述第二调整角度确定所述待显示画面的拉伸比例;
    利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面;
    基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,并将调整后的目标显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
  5. 如权利要求4所述的画面显示方法,其特征在于,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,包括:
    获取所述显示终端的屏幕高度和所述待显示画面的初始画面宽度;
    根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度;
    基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例。
  6. 如权利要求5所述的画面显示方法,其特征在于,所述根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度,包括:
    利用下述公式确定所述待显示画面的目标画面宽度:
    Width tar = 2R*(Height tv- Width pri)/π+ Width pri
    其中,Width tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Height tv为所述显示终端的屏幕高度,Width pri为所述待显示画面的初始画面宽度。
  7. 如权利要求6所述的画面显示方法,其特征在于,所述基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例,包括:
    根据下述公式确定所述待显示画面的拉伸比例Pro:
    Pro = Width tar / Width pri
  8. 如权利要求4至7中任一项所述的画面显示方法,其特征在于,在所述利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面之后,包括:
    获取所述目标显示画面的目标画面高度;
    确定所述目标画面高度是否大于所述显示终端的屏幕高度;
    若所述目标画面高度大于所述显示终端的屏幕高度,则根据所述显示终端的屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。
  9. 如权利要求4所述的画面显示方法,其特征在于,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,包括:
    获取所述显示终端的屏幕宽度和所述待显示画面的初始画面高度;
    根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度;
    基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例。
  10. 如权利要求9所述的画面显示方法,其特征在于,所述根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度,包括:
    利用下述公式确定所述待显示画面的目标画面高度:
    Height tar = 2R*(Width tv- Height pri)/π+ Height pri
    其中,Heigh tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Width tv为所述显示终端的屏幕宽度,Height pri为所述待显示画面的初始画面高度。
  11. 如权利要求1或2所述的画面显示方法,其特征在于,所述待显示画面为媒体信息输出至所述显示终端形成的显示画面。
  12. 如权利要求1或2所述的画面显示方法,其特征在于,所述根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向包括:
    根据所述第一调整速率、所述第一调整方向以及预设对应关系确定所述待显示画面的第二调整速率和第二调整方向;
    所述基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中包括:
    在根据所述第一调整速率和所述第一调整方向调整所述显示终端时,同时根据所述第二调整速率和第二调整方向调整所述待显示画面,并将调整后的待显示画面显示在调整后的显示终端中。
  13. 如权利要求1所述的画面显示方法,其特征在于,所述在获取到待显示画面时,调整显示终端包括:
    在获取所述待显示画面时,获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端;
    当根据所述待显示画面对应的显示模式确定调整所述显示终端,调整所述显示终端。
  14. 如权利要求13所述的画面显示方法,其特征在于,所述获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端包括:
    获取所述待显示画面的初始画面宽度和初始画面高度以及所述显示终端的屏幕宽度和屏幕高度;
    根据所述初始画面宽度和所述初始画面高度确定所述待显示画面对应的第一显示模式,并根据所述屏幕宽度和所述屏幕高度确定所述显示终端对应的第二显示模式;
    确定所述第一显示模式与所述第二显示模式是否相同;
    当所述第一显示模式与所述第二显示模式不相同时,确定调整所述显示终端。
  15. 一种画面显示装置,其特征在于,包括:
    第一速率方向获取模块,用于在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;
    第二速率方向确定模块,用于根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;
    画面显示模块,用于基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。
  16. 如权利要求15所述的画面显示装置,其特征在于,所述第二调整速率与所述第一调整速率相同,所述第二调整方向与所述第一调整方向相反。
  17. 如权利要求15所述的画面显示装置,其特征在于,还包括:
    第一调整角度确定模块,用于获取所述显示终端的调整时间,并根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;
    所述第二速率方向确定模块,还用于根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同;
    所述画面显示模块,还用于根据所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
  18. 如权利要求17所述的画面显示装置,其特征在于,所述画面显示模块,包括:
    拉伸比例确定单元,用于根据所述第二调整角度确定所述待显示画面的拉伸比例;
    画面拉伸单元,用于利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面;
    画面显示单元,用于基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,并将调整后的目标显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。
  19. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至14中任一项所述的画面显示方法。
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至14中任一项所述的画面显示方法。
PCT/CN2020/141105 2019-12-31 2020-12-29 一种画面显示方法、存储介质及终端设备 WO2021136310A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201911420590.2 2019-12-31
CN201911420590.2A CN113126836B (zh) 2019-12-31 2019-12-31 一种画面显示方法、存储介质及终端设备
CN202011438800.3A CN114630158A (zh) 2020-12-10 2020-12-10 一种画面显示方法、存储介质及终端设备
CN202011438800.3 2020-12-10

Publications (1)

Publication Number Publication Date
WO2021136310A1 true WO2021136310A1 (zh) 2021-07-08

Family

ID=76686552

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141105 WO2021136310A1 (zh) 2019-12-31 2020-12-29 一种画面显示方法、存储介质及终端设备

Country Status (1)

Country Link
WO (1) WO2021136310A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609081A (zh) * 2011-01-25 2012-07-25 深圳富泰宏精密工业有限公司 游戏画面调整***及方法
CN104635755A (zh) * 2014-12-03 2015-05-20 北京智谷睿拓技术服务有限公司 显示器调整方法和设备
CN104731311A (zh) * 2013-12-24 2015-06-24 鸿富锦精密工业(深圳)有限公司 显示装置及显示方法
CN105159640A (zh) * 2015-08-28 2015-12-16 小米科技有限责任公司 显示界面旋转方法、装置和移动终端
US20180060015A1 (en) * 2016-08-30 2018-03-01 Samsung Electronics Co., Ltd. Image display apparatus and operating method of the same
CN108446085A (zh) * 2018-03-14 2018-08-24 维沃移动通信有限公司 一种投屏显示方法及移动终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609081A (zh) * 2011-01-25 2012-07-25 深圳富泰宏精密工业有限公司 游戏画面调整***及方法
CN104731311A (zh) * 2013-12-24 2015-06-24 鸿富锦精密工业(深圳)有限公司 显示装置及显示方法
CN104635755A (zh) * 2014-12-03 2015-05-20 北京智谷睿拓技术服务有限公司 显示器调整方法和设备
CN105159640A (zh) * 2015-08-28 2015-12-16 小米科技有限责任公司 显示界面旋转方法、装置和移动终端
US20180060015A1 (en) * 2016-08-30 2018-03-01 Samsung Electronics Co., Ltd. Image display apparatus and operating method of the same
CN108446085A (zh) * 2018-03-14 2018-08-24 维沃移动通信有限公司 一种投屏显示方法及移动终端

Similar Documents

Publication Publication Date Title
WO2021135683A1 (zh) 一种显示终端调整方法及显示终端
WO2021147657A1 (zh) 插帧处理方法及相关产品
WO2021008424A1 (zh) 图像合成方法、装置、电子设备及存储介质
WO2021031850A1 (zh) 图像处理的方法、装置、电子设备及存储介质
CN109831662B (zh) Ar眼镜屏幕的实时画面投射方法、装置及控制器和介质
WO2022096017A1 (zh) 内容显示方法及装置
WO2021227688A1 (zh) 屏幕扩展方法、装置、终端设备及计算机可读存储介质
WO2022057601A1 (zh) 发送图像数据的方法及装置
WO2021170123A1 (zh) 视频生成方法、装置及对应的存储介质
US20150194131A1 (en) Image data output control method and electronic device supporting the same
WO2023125677A1 (zh) 独显插帧电路、方法、装置、芯片、电子设备及介质
WO2020147698A1 (zh) 画面优化方法、装置、终端及对应的存储介质
WO2017041513A1 (zh) 视频播放内容***方法、装置和存储介质
WO2023174123A1 (zh) 显示控制芯片、显示面板及相关设备、方法和装置
WO2020135580A1 (zh) 全景画面拼接方法、装置、终端及对应的存储介质
WO2017096910A1 (zh) 自适应调整办公软件的显示比例的方法和***
CN111918098A (zh) 视频处理方法、装置、电子设备、服务器及存储介质
US10764511B1 (en) Image version selection based on device orientation
KR20130081439A (ko) 휴대 단말기에서 카메라 뷰 영역을 표시하는 장치 및 방법
WO2021238942A1 (zh) 防抖方法、防抖装置和电子设备
WO2023193598A1 (zh) 一种图像处理方法、装置、设备及存储介质
CN116419049A (zh) 图像处理方法、图像处理***、装置和电子设备
WO2021248988A1 (zh) 跨终端录屏方法、终端设备及存储介质
EP4009624A1 (en) Image display method, image display apparatus, and mobile terminal
CN111741343B (zh) 视频处理方法及装置、电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20908885

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20908885

Country of ref document: EP

Kind code of ref document: A1