WO2021136310A1 - Frame display method, storage medium, and terminal apparatus - Google Patents

Frame display method, storage medium, and terminal apparatus 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
French (fr)
Chinese (zh)
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/en
Priority claimed from CN202011438800.3A external-priority patent/CN114630158A/en
Application filed by Tcl科技集团股份有限公司 filed Critical Tcl科技集团股份有限公司
Publication of WO2021136310A1 publication Critical patent/WO2021136310A1/en

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

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

A frame display method, a storage medium, and a terminal apparatus. The frame display method comprises: adjusting, upon acquiring a frame to be displayed, a display terminal, and acquiring a first adjustment rate and a first adjustment direction of the display terminal, the frame to be displayed being a display frame formed by the display terminal (S101); determining, according to the first adjustment rate and the first adjustment direction, a second adjustment rate and a second adjustment direction of the frame to be displayed (S102); and adjusting the frame to be displayed on the basis of the second adjustment rate and the second adjustment direction, and displaying the adjusted frame in the display terminal adjusted according to the first adjustment rate and the first adjustment direction (S103). The invention reduces the occurrence of a blank display when a terminal is displaying a frame, and ensures that a display frame is always displayed in an upright manner for users during a terminal adjustment process, thereby improving frame display performance.

Description

一种画面显示方法、存储介质及终端设备Screen display method, storage medium and terminal equipment
本申请要求于2019年12月31日在中国专利局提交的、申请号为201911420590.2、发明名称为“一种画面显示方法、存储介质及终端设备”的中国专利申请的优先权,以及要求于2020年12月10在中国专利局提交的、申请号为202011438800.3、发明名称为“一种画面显示方法、存储介质及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed at the Chinese Patent Office on December 31, 2019, with the application number 201911420590.2, and the title of the invention "a screen display method, storage medium and terminal device", and the claim is in 2020 Priority of the Chinese patent application filed at the Chinese Patent Office on December 10, 2010 with the application number 202011438800.3 and the invention title "A screen display method, storage medium and terminal device", the entire content of which is incorporated into this application by reference .
技术领域Technical field
本申请属于终端技术领域,尤其涉及一种画面显示方法、计算机可读存储介质及终端设备。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 technique
随着智能手机的发展,通过智能手机进行照片、视频等内容的观看也越来越普及。由于智能手机的屏幕尺寸较小,为获取更好的观看效果,很多用户会将智能手机上显示的照片、视频等内容投屏至电视等显示终端上观看,但现有的电视等显示终端一般都是固定的横屏模式,适合进行横屏模式的照片、视频等内容的显示,而对于竖屏模式的照片、视频等内容则存在显示效果差的问题。With the development of smart phones, viewing photos, videos and other content through smart phones has become more and more popular. Due to the small screen size of smart phones, in order to obtain better viewing results, many users will project photos, videos and other content displayed on smart phones to display terminals such as TVs for viewing, but existing display terminals such as TVs generally They are all fixed horizontal screen modes, which are suitable for displaying photos, videos and other content in horizontal screen mode. However, there is a problem of poor display effect for photos and videos in vertical screen mode.
技术问题technical problem
本申请实施例提供了一种画面显示方法、计算机可读存储介质及终端设备,可以解决现有的显示终端对于竖屏模式的照片、视频等内容存在显示效果差的问题。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.
技术解决方案Technical solutions
第一方面,本申请实施例提供了一种画面显示方法,包括:In the first aspect, an embodiment of the present application provides a screen display method, including:
在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;When a picture to be displayed is acquired, adjusting a display terminal, and acquiring a first adjustment rate and a first adjustment direction of the display terminal, where the picture to be displayed is a display picture formed by the display terminal;
根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;Determining 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;
基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。Adjust the to-be-displayed picture based on the second adjustment rate and the second adjustment direction, and display the adjusted to-be-displayed picture on a display adjusted according to the first adjustment rate and the first adjustment direction In the terminal.
可选地,所述第二调整速率与所述第一调整速率相同,所述第二调整方向与所述第一调整方向相反。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.
可选地,在所述获取所述显示终端的第一调整速率和第一调整方向之后,包括:Optionally, after the acquiring the first adjustment rate and the first adjustment direction of the display terminal, the method includes:
获取所述显示终端的调整时间,并根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;Acquiring the adjustment time of the display terminal, and determining the first adjustment angle of the display terminal according to the first adjustment rate and the adjustment time;
所述根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向,包括: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:
根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同;Determining 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, where the second adjustment angle is the same as the first adjustment angle;
所述基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中,包括:The adjusting the to-be-displayed picture based on the second adjustment rate and the second adjustment direction, and displaying the adjusted to-be-displayed picture in the adjustment according to the first adjustment rate and the first adjustment direction The display terminal includes:
基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。Adjust the to-be-displayed picture based on the second adjustment angle and the second adjustment direction, and display the adjusted to-be-displayed picture on a display adjusted according to the first adjustment angle and the first adjustment direction In the terminal.
可选地,所述基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中,包括:Optionally, the image to be displayed is adjusted based on the second adjustment angle and the second adjustment direction, and the adjusted image to be displayed is displayed according to the first adjustment angle and the first adjustment angle. A display terminal with adjustment direction adjustment includes:
根据所述第二调整角度确定所述待显示画面的拉伸比例;Determining the stretching ratio of the picture to be displayed according to the second adjustment angle;
利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面;Stretch the to-be-displayed picture by using the stretching ratio to obtain a target display picture;
基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,并将调整后的目标显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。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 .
在第一方面的一种可能的实现方式中,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,包括:In a possible implementation manner of the first aspect, the determining the stretching ratio of the picture to be displayed according to the second adjustment angle includes:
获取所述显示终端的屏幕高度和所述待显示画面的初始画面宽度;Acquiring the screen height of the display terminal and the initial picture width of the picture to be displayed;
根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度;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;
基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例。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.
可选地,所述根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度,包括:Optionally, 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:
利用下述公式确定所述待显示画面的目标画面宽度:Use the following formula to determine the target picture width of the picture to be displayed:
Width tar = 2R*(Height tv - Width pri)/π+ Width priWidth tar = 2R*(Height tv -Width pri )/π+ Width pri ;
其中,Width tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Height tv为所述显示终端的屏幕高度,Width pri为所述待显示画面的初始画面宽度。 Wherein, 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, and Width pri is the initial picture width of the picture to be displayed.
具体地,所述基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例,包括:Specifically, 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:
根据下述公式确定所述待显示画面的拉伸比例Pro:Determine the stretching ratio Pro of the picture to be displayed according to the following formula:
Pro = Width tar / Width priPro = Width tar / Width pri .
在第一方面的一种可能的实现方式中,在所述利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面之后,包括:In a possible implementation manner of the first aspect, after the stretching the to-be-displayed picture by using the stretching ratio to obtain the target display picture, the method includes:
获取所述目标显示画面的目标画面高度;Acquiring the target screen height of the target display screen;
确定所述目标画面高度是否大于所述显示终端的屏幕高度;Determining whether the height of the target screen is greater than the height of the screen of the display terminal;
若所述目标画面高度大于所述显示终端的屏幕高度,则根据所述显示终端的屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。If the target screen height is greater than the screen height of the display terminal, the target screen height and target screen width of the target display screen are adjusted according to the screen height of the display terminal.
可选地,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,包括:Optionally, the determining the stretching ratio of the picture to be displayed according to the second adjustment angle includes:
获取所述显示终端的屏幕宽度和所述待显示画面的初始画面高度;Acquiring the screen width of the display terminal and the initial picture height of the picture to be displayed;
根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度;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;
基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例。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.
具体地,所述根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度,包括:Specifically, 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:
利用下述公式确定所述待显示画面的目标画面高度:Use the following formula to determine the target picture height of the picture to be displayed:
Height tar = 2R*(Width tv- Height pri)/π+ Height priHeight tar = 2R*(Width tv -Height pri )/π+ Height pri ;
其中,Heigh tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Width tv为所述显示终端的屏幕宽度,Height pri为所述待显示画面的初始画面高度。 Wherein, 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, and Height pri is the initial picture height of the picture to be displayed.
示例性的,所述待显示画面为媒体信息输出至所述显示终端形成的显示画面。Exemplarily, the picture to be displayed is a display picture formed by outputting media information to the display terminal.
可选地,所述根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向,包括:Optionally, 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:
根据所述第一调整速率、所述第一调整方向以及预设对应关系确定所述待显示画面的第二调整速率和第二调整方向;Determining the second adjustment rate and the second adjustment direction of the picture to be displayed according to the first adjustment rate, the first adjustment direction, and a preset correspondence relationship;
所述基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中,包括:The adjusting the to-be-displayed picture based on the second adjustment rate and the second adjustment direction, and displaying the adjusted to-be-displayed picture in the adjustment according to the first adjustment rate and the first adjustment direction The display terminal includes:
在根据所述第一调整速率和所述第一调整方向调整所述显示终端时,同时根据所述第二调整速率和第二调整方向调整所述待显示画面,并将调整后的待显示画面显示在调整后的显示终端中。When the display terminal is adjusted according to the first adjustment rate and the first adjustment direction, 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.
可选地,所述在获取到待显示画面时,调整显示终端,包括:Optionally, the adjusting the display terminal when the picture to be displayed is obtained includes:
在获取所述待显示画面时,获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端;When acquiring the to-be-displayed picture, acquiring the display mode corresponding to the to-be-displayed picture, and determining whether to adjust the display terminal according to the display mode corresponding to the to-be-displayed picture;
当根据所述待显示画面对应的显示模式确定调整所述显示终端,调整所述显示终端。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.
示例性的,所述获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端,包括:Exemplarily, 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:
获取所述待显示画面的初始画面宽度和初始画面高度以及所述显示终端的屏幕宽度和屏幕高度;Acquiring 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;
根据所述初始画面宽度和所述初始画面高度确定所述待显示画面对应的第一显示模式,并根据所述屏幕宽度和所述屏幕高度确定所述显示终端对应的第二显示模式;Determining a first display mode corresponding to the picture to be displayed according to the initial picture width and the initial picture height, and determining a second display mode corresponding to the display terminal according to the screen width and the screen height;
确定所述第一显示模式与所述第二显示模式是否相同;Determining whether the first display mode and the second display mode are the same;
当所述第一显示模式与所述第二显示模式不相同时,确定调整所述显示终端。When the first display mode is different from the second display mode, it is determined to adjust the display terminal.
第二方面,本申请实施例提供了一种画面显示装置,包括:In the second aspect, 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. A display terminal with adjustment direction adjustment.
第三方面,本申请实施例提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面中任一项所述的画面显示方法。In the third aspect, 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. When the processor executes the computer program, The screen display method described in any one of the foregoing first aspect is implemented.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面中任一项所述的画面显示方法。In a fourth aspect, 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.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项所述的画面显示方法。In a fifth aspect, 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.
有益效果Beneficial effect
本申请实施例与现有技术相比存在的有益效果是:Compared with the prior art, the embodiments of this application have the following beneficial effects:
本申请实施例中,在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。即本申请实施例在进行待显示画面的显示时,可调整显示终端,而在调整显示终端时,可根据显示终端的第一调整速率和第一调整方向确定待显示画面的第二调整速率和第二调整方向,以根据第二调整速率和第二调整方向进行待显示画面的同步调整,确保显示终端调整过程中显示画面始终以正向显示方式向用户显示,提高画面显示效果,提升用户的观看体验。In the embodiment of the present application, 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. That is, in the embodiment of the present application, 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.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only of the present application. For some embodiments, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative labor.
图1是本申请一实施例提供的画面显示方法的流程示意图;FIG. 1 is a schematic flowchart of a screen display method provided by an embodiment of the present application;
图2a示出了本申请实施例提供的驱动装置的整体示意图;Figure 2a shows an overall schematic diagram of a driving device provided by an embodiment of the present application;
图2b是本申请一实施例提供的画面显示图;Figure 2b is a screen display diagram provided by an embodiment of the present application;
图3是本申请一实施例提供的画面显示方法在一个应用场景下确定待显示画面的拉伸比例的流程示意图;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;
图4是本申请一实施例提供的画面显示方法在另一个应用场景下确定待显示画面的拉伸比例的流程示意图;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是本申请一实施例提供的显示终端调整过程中的画面显示图;4a is a screen display diagram during the adjustment process of the display terminal according to an embodiment of the present application;
图4b是本申请一实施例提供的显示终端调整至目标角度的画面显示图;4b is a screen display diagram of a display terminal adjusted to a target angle according to an embodiment of the present application;
图5是本申请实施例提供的画面显示装置的结构示意图;FIG. 5 is a schematic structural diagram of a screen display device provided by an embodiment of the present application;
图6是本申请实施例提供的终端设备的结构示意图。Fig. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the specification and appended claims of this application, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other The existence or addition of features, wholes, steps, operations, elements, components, and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the description of this application and the appended claims, the term "if" can be construed as "when" or "once" or "in response to determination" or "in response to detecting ". Similarly, 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]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" described in the specification of this application means that one or more embodiments of this application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the sentences "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
如图1所示,本申请实施例提供了一种画面显示方法。本申请实施例的执行主体可以为终端设备,所述终端设备可以为电视等显示终端,也可以为与电视等显示终端连接的桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。作为示例而非限定,下面将以执行主体为进行画面显示的电视等显示终端为例来对本申请实施例提供的画面显示方法进行详细说明。其中,所述画面显示方法可以包括:As shown in FIG. 1, 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. As an example and not a limitation, 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. Wherein, the screen display method may include:
S101、在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;S101. When a picture to be displayed is acquired, adjust a display terminal, and acquire a first adjustment rate and a first adjustment direction of the display terminal, where the picture to be displayed is a display picture formed by the display terminal;
可以理解的是,所述待显示画面可以为媒体信息输出至所述显示终端形成的显示画面。示例的,所述媒体信息可以是手机、平板电脑、可穿戴设备等移动终端投屏至电视等显示终端上呈现的图片或者视频等内容画面。具体地,可以事先建立移动终端与显示终端之间的连接,并可在所述移动终端监测到用户需要将所述移动终端上浏览的图片或者视频等内容画面投屏至所述显示终端上显示时,可向所述显示终端发送投屏请求,例如,可在所述移动终端监测到用户的摇一摇操作或者用户点击所述移动终端屏幕中的投屏按钮等指定操作时,向所述显示终端发送投屏请求。所述显示终端接收到所述投屏请求后,可根据具体情况确定是否接收所述投屏请求,若确定接收所述投屏请求,则可向所述移动终端发送接收指令,所述移动终端即可根据所述接收指令向所述显示终端发送图片或者视频等内容画面。例如,所述移动终端可以一定帧率录制所述移动终端屏幕中显示的图片或者视频等内容画面,同时同步录制图片或者视频等内容画面所对应的声音,并对所录制的图片或者视频等内容画面与所录制的声音进行分别编码后实时流式发送至所述显示终端。It is understandable that the picture to be displayed may be a display picture formed by outputting media information to the display terminal. For example, 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. Specifically, 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 When the mobile terminal monitors the user’s shake operation or when the user clicks on the screen projection button on the mobile terminal screen and other designated operations, 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. After receiving the 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. For example, 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.
在此,所述显示终端在接收到所述移动终端发送的编码后的内容画面时,可以首先通过对其进行解码,以此获取所述移动终端发送的待显示画面(即图片或者视频等内容画面),然后可以根据所述待显示画面确定是否调整所述显示终端。例如,可以根据所述待显示画面对应的显示模式来确定是否调整所述显示终端,若确定调整所述显示终端,则可以控制所述显示终端调整,并可以获取所述显示终端调整过程中的第一调整速率和第一调整方向。例如,在所述显示终端调整过程中,可通过所述显示终端中设置陀螺仪等测量装置实时测量所述显示终端在水平方向上或竖直方向上的第一调整速率和第一调整方向,即所述第一调整速率和第一调整方向可以是所述显示终端相对于水平方向上的调整速率和调整方向,也可以是所述显示终端相对于竖直方向上的调整速率和调整方向。Here, 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. For example, during the adjustment process of the display terminal, 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.
本申请实施例中,可以通过启动所述显示终端对应的驱动装置,以通过所述驱动装置驱动所述显示终端运动,来调整所述显示终端。其中,所述显示终端设备对应的驱动装置可以为与所述显示终端连接的驱动装置。In the embodiment of the present application, 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. Wherein, the driving device corresponding to the display terminal device may be a driving device connected to the display terminal.
请参阅图2a,图2a示出了本申请实施例提供的驱动装置的整体示意图。如图2a所述,所述驱动装置20可以与所述显示终端30连接,或者可以与用于安装所述显示终端30的连接板40连接。所述驱动装置20可以包括减速机21和电动机22,所述减速机21位于所述显示终端30与所述电动机22之间,所述减速机21的转轴水平向前延伸并与所述显示终端30连接,或者与所述连接板40连接,从而将所述显示终端30或者所述连接板40与所述电动机22连接;所述减速机21和所述电动机22同步启动,驱动所述显示终端30运动,或者驱动所述连接板40运动,从而带动所述显示终端30运动。Please refer to FIG. 2a. FIG. 2a shows an overall schematic diagram of a driving device provided by an embodiment of the present application. As shown in FIG. 2a, 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.
本申请实施例中,调整显示终端是指将显示终端由横屏模式调整至竖屏模式,或者将显示终端由竖屏模式调整至横屏模式等。第一调整方向是指通过顺时针方向进行显示终端的调整,或者通过逆时针方向进行显示终端的调整。第一调整速率可以为每秒对显示终端进行调整的角度。In the embodiments of the present application, 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.
示例性的,本申请实施例中的调整显示终端可以是指对显示终端进行旋转操作,调整速率可以为旋转速率,调整方向可以为旋转方向,即所述第一调整速率可以为对所述显示终端进行旋转的第一旋转速率,所述第一调整方向可以为对所述显示终端进行旋转的第一旋转方向。类似的,后续描述的第二调整速率可以为对所述显示终端进行旋转的第二旋转速率,所述第二调整方向可以为对所述显示终端进行旋转的第二旋转方向。Exemplarily, 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. Similarly, 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.
在一种可能的实现方式中,所述显示终端可以首先获取所述待显示画面的初始画面宽度和初始画面高度以及所述显示终端的屏幕宽度和屏幕高度;然后可以根据所述初始画面宽度和所述初始画面高度确定所述待显示画面对应的第一显示模式,并根据所述屏幕宽度和所述屏幕高度确定所述显示终端对应的第二显示模式;最后可以根据所述第一显示模式和所述第二显示模式确定是否调整所述显示终端;若根据所述第一显示模式和所述第二显示模式确定调整所述显示终端,则调整所述显示终端。In a possible implementation manner, 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.
应理解,投屏至显示终端上显示的待显示画面存在显示效果较差的问题往往与所述待显示画面对应的显示模式是否与所述显示终端对应的显示模式相匹配相关。本申请实施例中,可以首先获取所述待显示画面的初始画面宽度和初始画面高度以及获取所述显示终端的屏幕高度和屏幕宽度。其中,所述初始画面宽度为所述待显示画面横向上的像素值,所述初始画面高度为所述待显示画面纵向上的像素值,类似的,所述屏幕宽度和所述屏幕高度也均通过像素值衡量。然后可以根据所述待显示画面的初始画面宽度和初始画面高度确定所述待显示画面对应的第一显示模式,并可以根据所述显示终端的屏幕宽度和屏幕高度确定所述显示终端对应的第二显示模式。其中,所述第一显示模式和所述第二显示模式均可以为横屏模式和竖屏模式中的任一种。It should be understood that 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. In the embodiment of the present application, 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. Wherein, the initial picture width is the pixel value in the horizontal direction of the picture to be displayed, and the initial picture height is the pixel value in the vertical direction of the picture to be displayed. Similarly, the screen width and the screen height are also both Measured by pixel value. Then, 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,其中,Bp=初始画面宽度/初始画面高度,或者Bp=初始画面高度/初始画面宽度,然后可以根据Bp与预设值的大小关系来确定所述待显示画面对应的第一显示模式。其中,所述预设值可以为1。例如当Bp=初始画面宽度/初始画面高度时,若计算得到Bp小于1,如计算得到Bp为9/16时,则可以确定所述待显示画面对应的第一显示模式为竖屏模式;若计算得到Bp大于或等于1,如计算得到Bp为16/9时,则可以确定所述待显示画面对应的第一显示模式为横屏模式。又如当Bp=初始画面高度/初始画面宽度,若计算得到Bp大于1,则可以确定所述待显示画面对应的第一显示模式为竖屏模式,若计算得到Bp小于或等于1,则可以确定所述待显示画面对应的第一显示模式为横屏模式。类似地,所述显示终端对应的第二显示模式也可以类似确定,即BT=屏幕宽度/屏幕高度,或者BT=屏幕高度/屏幕宽度。In a specific application scenario, you can first calculate the ratio Bp between the initial picture width and the initial picture height of the picture to be displayed, where Bp=initial picture width/initial picture height, or 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. Wherein, the preset value may be 1. For example, when Bp=initial screen width/initial screen height, if Bp is calculated to be less than 1, for example, when Bp is calculated to be 9/16, it can be determined that the first display mode corresponding to the to-be-displayed screen is the portrait mode; if The calculated Bp is greater than or equal to 1, if the calculated Bp is 16/9, it can be determined that the first display mode corresponding to the to-be-displayed picture is the landscape mode. For another example, when Bp=initial picture height/initial picture width, if Bp is calculated to be greater than 1, it can be determined that the first display mode corresponding to the picture to be displayed is portrait mode, and if Bp is calculated to be less than or equal to 1, then you can It is determined that the first display mode corresponding to the picture to be displayed is a landscape mode. Similarly, the second display mode corresponding to the display terminal can also be similarly determined, that is, BT=screen width/screen height, or BT=screen height/screen width.
在此,所述显示终端在获取到所述待显示画面对应的第一显示模式和所述显示终端对应的第二显示模式后,可以根据所述第一显示模式和所述第二显示模式来确定是否调整所述显示终端,并可根据所述第一显示模式和所述第二显示模式确定所述显示终端的目标角度和目标方向。Here, after the display terminal obtains the first display mode corresponding to the to-be-displayed screen and the second display mode corresponding to the display terminal, 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.
具体地,当所述第一显示模式与所述第二显示模式不相同时,例如,如图2b所示,当所述第一显示模式为竖屏模式,而所述第二显示模式为横屏模式时,则可以确定调整所述显示终端,并可以确定所述显示终端调整的目标角度和目标方向为竖直方向90度,以将所述显示终端调整至所述目标角度和目标方向。其中,图2b中,O为所述显示终端和所述待显示画面的中心点,X轴方向为水平方向,Y轴方向为竖直方向,同时Y轴方向为画面的正向显示方向,且在调整过程中,所述显示终端和所述待显示画面的中心点保持不变;或者,当所述第一显示模式为横屏模式,而所述第二显示模式为竖屏模式时,则可以确定调整所述显示终端,并可以确定所述显示终端调整的目标角度和目标方向为水平方向0度,以将所述显示终端调整至所述目标角度和目标方向。Specifically, when the first display mode is different from the second display mode, for example, as shown in FIG. 2b, when the first display mode is a portrait mode, and the second display mode is a landscape mode. In the screen 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. Wherein, in Figure 2b, 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, and the Y-axis direction is the positive display direction of the screen, and During the adjustment process, the center point of the display terminal and the picture to be displayed remains unchanged; or, when the first display mode is the landscape mode and the second display mode is the portrait mode, then The display terminal may be determined to be adjusted, and the target angle and target direction adjusted by the display terminal may be determined to be 0 degrees in the horizontal direction, so as to adjust the display terminal to the target angle and target direction.
S102、根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;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;
在一种可能的实现方式中,所确定的第二调整速率与所述第一调整速率相同,而所确定的第二调整方向与所述第一调整方向相反。例如,当所述第一调整速率为1度/S,所述第一调整方向为顺时针方向时,则所确定的第二调整角度也为1度/S,而所确定的第二调整方向则为逆时针方向。In a possible implementation manner, 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. 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 It is counterclockwise.
S103、基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。S103. Adjust the to-be-displayed picture based on the second adjustment rate and the second adjustment direction, and display the adjusted to-be-displayed picture in an adjustment according to the first adjustment rate and the first adjustment direction. In the display terminal.
本申请实施例中,所述显示终端在确定所述待显示画面对应的第二调整速率和第二调整方向后,可以在根据所述第一调整速率和所述第一调整方向对所述显示终端进行调整的过程中,基于所述第二调整速率和所述第二调整方向调整所述待显示画面。例如可以通过调用矩阵变换Matrix对象的setRotate(-R)来对所述待显示画面进行所述第二调整速率和所述第二调整方向的调整,并可以将调整后的待显示画面同步显示在调整中的显示终端中,以确保在所述显示终端调整至目标角度的过程中,可以使得所述显示终端中所显示的显示画面始终以正向显示方式向用户显示,提高画面显示效果,提升用户的观看体验。In the embodiment of the present application, after determining the second adjustment rate and the second adjustment direction corresponding to the picture to be displayed, the display terminal may display the display terminal according to the first adjustment rate and the first adjustment direction. During the adjustment process of the terminal, the picture to be displayed is adjusted based on the second adjustment rate and the second adjustment direction. For example, 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.
在一种可能的实现方式中,显示终端中可以事先设置有第一调整速率和第一调整方向与第二调整速率和第二调整方向之间的预设对应关系。在需要调整显示终端时,显示终端可以先获取第一调整速率和第一调整方向;然后可以根据第一调整速率、第一调整方向以及预设对应关系确定待显示画面的第二调整速率和第二调整方向。因此,在根据第一调整速率和第一调整方向调整显示终端时,可以同时根据第二调整速率和第二调整方向调整待显示画面,并将调整后的待显示画面显示在调整后的显示终端中,以实现显示终端与待显示画面的同步调整,提高画面显示效果。In a possible implementation manner, 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. When the display terminal needs to be adjusted, 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. Therefore, when the display terminal is adjusted according to the first adjustment rate and the first adjustment 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.
本申请实施例中,在进行横屏模式下的显示终端调整时,所述目标角度可以为所述显示终端为竖屏模式下的角度,而在进行竖屏模式下的显示终端调整时,所述目标角度可以为所述显示终端为横屏模式下的角度。In the embodiment of the present application, 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.
在另一种可能的实现方式中,所述待显示画面也可以基于所述显示终端的调整角度和调整方向进行调整。具体地,所述显示终端在获取所述显示终端的第一调整速率和第一调整方向之后,还可以获取所述显示终端的调整时间,并可根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;或者也可以直接通过角度传感器测量得到所述显示终端的第一调整角度。在确定所述显示终端的第一调整角度后,所述显示终端则可以首先根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同,所述第二调整方向与所述第一调整方向相反;然后可以基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并可以将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。In another possible implementation manner, 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. After determining the first adjustment angle of the display terminal, 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.
可选地,所述基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中,可以包括:Optionally, the image to be displayed is adjusted based on the second adjustment angle and the second adjustment direction, and the adjusted image to be displayed is displayed according to the first adjustment angle and the first adjustment angle. A display terminal with adjustment direction adjustment may include:
步骤a、根据所述第二调整角度确定所述待显示画面的拉伸比例;Step a: Determine the stretching ratio of the picture to be displayed according to the second adjustment angle;
在一种可能的实现方式中,可以结合所述显示终端的屏幕高度和所述待显示画面的初始画面宽度来确定所述拉伸比例,以使得在将所述显示终端和所述待显示画面调整至目标角度时,可以使得所述待显示画面优先填满所述显示终端的屏幕宽度。其中,所述目标角度可以根据具体情况确定,例如在进行横屏模式下的显示终端的调整时,所述目标角度可以为所述显示终端为竖屏模式下的角度,在进行竖屏模式下的显示终端的调整时,所述目标角度则可以为所述显示终端为横屏模式下的角度。所述拉伸比例是指对所述待显示画面的初始画面高度和初始画面宽度进行放大的倍数。In a possible implementation manner, 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 When the angle is adjusted to the target angle, the picture to be displayed can be made to fill up the screen width of the display terminal preferentially. Wherein, 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.
具体地,如图3所示,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,可以包括:Specifically, as shown in FIG. 3, the determining the stretching ratio of the picture to be displayed according to the second adjustment angle may include:
S301、获取所述显示终端的屏幕高度和所述待显示画面的初始画面宽度;S301: Obtain the screen height of the display terminal and the initial picture width of the picture to be displayed;
S302、根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度;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;
在此,所述根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度,可以包括:Here, 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:
利用下述公式确定所述待显示画面的目标画面宽度:Use the following formula to determine the target picture width of the picture to be displayed:
Width tar = 2R*(Height tv- Width pri)/π+ Width priWidth tar = 2R*(Height tv -Width pri )/π+ Width pri ;
其中,Width tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Height tv为所述显示终端的屏幕高度,Width pri为所述待显示画面的初始画面宽度。 Wherein, 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, and Width pri is the initial picture width of the picture to be displayed.
S303、基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例。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.
具体地,所述基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例,可以包括:Specifically, 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:
根据下述公式确定所述待显示画面的缩放比例Pro:Determine the zoom ratio Pro of the picture to be displayed according to the following formula:
Pro = Width tar / Width priPro = Width tar / Width pri .
在另一种可能的实现方式中,也可以结合所述显示终端的屏幕宽度和所述待显示画面的初始画面高度来确定所述拉伸比例,以使得在将所述显示终端和所述待显示画面调整至目标角度时,可以使得所述待显示画面优先填满所述显示终端的屏幕高度。具体地,如图4所示,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,可以包括:In another possible implementation manner, 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 When the display picture is adjusted to the target angle, the picture to be displayed can be made to fill up the screen height of the display terminal preferentially. Specifically, as shown in FIG. 4, the determining the stretching ratio of the picture to be displayed according to the second adjustment angle may include:
S401、获取所述显示终端的屏幕宽度和所述待显示画面的初始画面高度;S401. Obtain the screen width of the display terminal and the initial picture height of the picture to be displayed.
S402、根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度;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;
在此,所述根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度,可以包括:Here, 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:
利用下述公式确定所述待显示画面的目标画面高度:Use the following formula to determine the target picture height of the picture to be displayed:
Height tar = 2R*(Width tv- Height pri)/π+ Height priHeight tar = 2R*(Width tv -Height pri )/π+ Height pri ;
其中,Heigh tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Width tv为所述显示终端的屏幕宽度,Height pri为所述待显示画面的初始画面高度。 Wherein, 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, and Height pri is the initial picture height of the picture to be displayed.
S403、基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例。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.
具体地,所述基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例,可以包括:Specifically, 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:
根据下述公式确定所述待显示画面的拉伸比例Pro:Determine the stretching ratio Pro of the picture to be displayed according to the following formula:
Pro = Height tar / Height priPro = Height tar / Height pri .
步骤b、利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面;Step b: Stretch the to-be-displayed picture by using the stretching ratio to obtain a target display picture;
步骤c、基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,并将调整后的目标显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。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.
需要说明的是,所述显示终端在确定所述待显示画面的拉伸比例后,则可以通过所述拉伸比例来拉伸所述待显示画面,以通过对所述待显示画面进行拉伸处理,得到目标显示画面,并基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,使得调整后的目标显示画面在所述显示终端中进行显示时,可减少所述显示终端的显示空白,从而提高画面显示效果,提升用户的观看体验。在此,所述显示终端可以通过调用矩阵变换Matrix对象的setScale(Pro,Pro)方法和Bitmap对象的createBitmap方法来拉伸所述待显示画面,得到拉伸后的目标显示画面。即在待显示画面的同步调整过程中,还可根据第二调整角度进行待显示画面的拉伸处理,以减少显示终端显示画面时的显示空白,提高画面显示效果,提升用户的观看体验。It should be noted that, after determining the stretching ratio of the to-be-displayed picture, 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. Here, 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. That is, during the synchronization adjustment process of the to-be-displayed 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.
例如,在根据图2b所示的待显示画面进行显示终端的调整时,可以对所述待显示画面进行拉伸与同步调整,以确保所述显示终端中的显示画面可以始终以正向显示方式显示给用户,比如在某一具体时刻,可以如图4a所示的正向显示方式在所述显示终端中进行显示画面的显示;又比如在所述显示终端调整至目标角度时,可以如图4b所示的正向显示方式在所述显示终端中进行显示画面的显示。For example, when the display terminal is adjusted according to the to-be-displayed picture shown in FIG. 2b, 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. Displayed to the user, for example, at a specific moment, 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.
应理解,在所述拉伸比例是结合所述显示终端的屏幕高度和所述待显示画面的初始画面宽度所确定的应用场景中,在所述利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面之后,还可以包括:It should be understood that in an application scenario where 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, in the use of the stretching ratio to stretch the to-be-displayed picture Screen, after getting the target display screen, it can also include:
步骤d、获取所述目标显示画面的目标画面高度;Step d: Obtain the target screen height of the target display screen;
步骤e、确定所述目标画面高度是否大于所述显示终端的屏幕高度;Step e: Determine whether the height of the target screen is greater than the screen height of the display terminal;
步骤f、若所述目标画面高度大于所述显示终端的屏幕高度,则根据所述显示终端的屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。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.
对于上述步骤d至步骤f,所述拉伸比例是基于优先填满所述显示终端的屏幕宽度所确定的,因此,基于所述拉伸比例得到的所述目标显示画面的目标画面宽度往往不会超过所述显示终端的屏幕宽度,但可能会使得所述目标显示画面的目标画面高度超过所述显示终端的屏幕高度,此时若直接将所述目标显示画面显示在所述显示终端上,则可能会使得所述目标显示画面中超过所述屏幕高度的部分画面无法在所述显示终端中显示出,造成所述目标显示画面存在显示不全的问题,明显降低了画面显示效果。在此,本场景中,在确定所述目标画面高度超过所述屏幕高度时,即在确定所述目标画面高度大于所述屏幕高度时,所述显示终端可根据所述屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。例如,可以将所述目标显示画面的目标画面高度调整至所述屏幕高度,并可以根据所述目标画面高度和所述屏幕高度确定调整所对应的调整比例,然后可以根据该调整比例等比例调整所述目标显示画面的目标画面宽度,以在确保所述目标显示画面显示完整的基础上,保证画面不变形,从而提高画面显示效果,提升用户的观看体验。For the above steps d to f, 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. Here, in this scenario, when it is determined that the height of the target picture exceeds the height of the screen, that is, when it is determined that the height of the target picture is greater than the height of the screen, 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.
应理解,在所述拉伸比例是结合所述显示终端的屏幕宽度和所述待显示画面的原始画面高度所确定的应用场景中,在所述利用所述拉伸比例缩放所述待显示画面,得到目标显示画面之后,还可以包括:It should be understood that in an application scenario where 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, in the use of the stretching ratio to zoom the to-be-displayed picture After getting the target display screen, it can also include:
步骤g、获取所述目标显示画面的目标画面宽度;Step g: Obtain the target screen width of the target display screen;
步骤h、确定所述目标画面宽度是否大于所述显示终端的屏幕宽度;Step h: Determine whether the target screen width is greater than the screen width of the display terminal;
步骤i、若所述目标画面宽度大于所述显示终端的屏幕宽度,则根据所述显示终端的屏幕宽度调整所述目标显示画面的目标画面高度和目标画面宽度。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.
对于上述步骤g至步骤i,所述拉伸比例是基于优先填满所述显示终端的屏幕高度所确定的,因此,基于所述拉伸比例得到的所述目标显示画面的目标画面高度往往不会超过所述显示终端的屏幕高度,但可能会使得所述目标显示画面的目标画面宽度超过所述显示终端的屏幕宽度,此时若直接将所述目标显示画面显示在所述显示终端上,则可能会使得所述目标显示画面中超过所述屏幕宽度的部分画面无法在所述显示终端中显示出,造成所述目标显示画面存在显示不全的问题,明显降低了画面显示效果。在此,本场景中,在确定所述目标画面宽度超过所述屏幕宽度时,即在确定所述目标画面宽度大于所述屏幕宽度时,所述显示终端可根据所述屏幕宽度调整所述目标显示画面的目标画面高度和目标画面宽度。例如,可以将所述目标显示画面的目标画面宽度调整至所述屏幕宽度,并可以根据所述目标画面宽度和所述屏幕宽度确定调整所对应的调整比例,然后可以根据该调整比例等比例调整所述目标显示画面的目标画面高度,以在确保所述目标显示画面显示完整的基础上,保证画面不变形,从而提高画面显示效果,提升用户的观看体验。For the above steps g to i, 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. Here, in this scenario, when it is determined that the target screen width exceeds the screen width, that is, when it is determined that the target screen width is greater than the screen width, the display terminal may adjust the target according to the screen width. The target screen height and target screen width of the display screen. For example, the target screen width of the target 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.
本申请实施例中,在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。即本申请实施例在进行待显示画面的显示时,可调整显示终端,而调整显示终端时,可根据显示终端的第一调整速率和第一调整方向确定待显示画面的第二调整速率和第二调整方向,以根据第二调整速率和第二调整方向进行待显示画面的同步调整,以确保显示终端调整过程中显示画面始终以正向显示方式向用户显示,提高画面显示效果,提升用户的观看体验。In the embodiment of the present application, 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. That is, in the embodiment of the present application, 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.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
对应于上文实施例所述的画面显示方法,图5示出了本申请实施例提供的画面显示装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the screen display method described in the above embodiments, 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.
如图5所示,所述画面显示装置,可以包括:As shown in FIG. 5, the picture display device may include:
第一速率方向获取模块501,用于在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;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;
第二速率方向确定模块502,用于根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;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;
画面显示模块503,用于基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。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.
示例性的,所述第二调整速率与所述第一调整速率相同,所述第二调整方向与所述第一调整方向相反。Exemplarily, the second adjustment rate is the same as the first adjustment rate, and the second adjustment direction is opposite to the first adjustment direction.
在一种可能的实现方式中,所述画面显示装置,还可以包括:In a possible implementation manner, 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;
所述第二速率方向确定模块502,还可以用于根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同。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.
所述画面显示模块503,还可以用于基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。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.
可选地,所述画面显示模块503,可以包括:Optionally, 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.
在一种可能的实现方式中,所述拉伸比例确定单元,可以包括:In a possible implementation manner, 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.
可选地,所述目标画面宽度确定分单元,具体用于利用下述公式确定所述待显示画面的目标画面宽度:Optionally, 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 priWidth tar = 2R*(Height tv -Width pri )/π+ Width pri ;
其中,Width tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Height tv为所述显示终端的屏幕高度,Width pri为所述待显示画面的初始画面宽度。 Wherein, 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, and Width pri is the initial picture width of the picture to be displayed.
具体地,所述第一拉伸比例确定分单元,具体用于根据下述公式确定所述待显示画面的拉伸比例Pro:Specifically, 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:
Pro = Width tar / Width priPro = Width tar / Width pri .
在一种可能的实现方式中,所述画面显示装置,还可以包括:In a possible implementation manner, 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.
可选地,所述拉伸比例确定单元,还可以包括:Optionally, 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.
示例性的,所述目标画面高度确定分单元,用于利用下述公式确定所述待显示画面的目标画面高度:Exemplarily, 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 priHeight tar = 2R*(Width tv -Height pri )/π+ Height pri ;
其中,Heigh tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Width tv为所述显示终端的屏幕宽度,Height pri为所述待显示画面的初始画面高度。 Wherein, 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, and Height pri is the initial picture height of the picture to be displayed.
示例性的,所述待显示画面为媒体信息输出至所述显示终端形成的显示画面。Exemplarily, the picture to be displayed is a display picture formed by outputting media information to the display terminal.
在一种可能的实现方式中,所述第二速率方向确定模块502,还可以用于根据所述第一调整速率、所述第一调整方向以及预设对应关系确定所述待显示画面的第二调整速率和第二调整方向;In a possible implementation manner, 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;
所述画面显示模块503,还可以用于在根据所述第一调整速率和所述第一调整方向调整所述显示终端时,同时根据所述第二调整速率和第二调整方向调整所述待显示画面,并将调整后的待显示画面显示在调整后的显示终端中。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.
可选地,所述第一速率方向获取模块501,可以包括:Optionally, 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.
示例性的,所述显示模式获取单元,可以包括:Exemplarily, 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.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。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 embodiment of this application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat it here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as required. Module completion, that is, the internal structure of the device is 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 alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
图6为本申请一实施例提供的终端设备的结构示意图。如图6所示,该实施例的终端设备6包括:至少一个处理器60(图6中仅示出一个)、存储器61以及存储在所述存储器61中并可在所述至少一个处理器60上运行的计算机程序62,所述处理器60执行所述计算机程序62时实现上述任意各个画面显示方法实施例中的步骤。FIG. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the application. As shown in FIG. 6, 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 When the processor 60 executes the computer program 62, the steps in any of the above-mentioned screen display method embodiments are implemented.
所述终端设备6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该终端设备可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图6仅仅是终端设备6的举例,并不构成对终端设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。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. Those skilled in the art can understand that 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.
所述处理器60可以是中央处理单元(Central Processing Unit,CPU),该处理器60还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。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.
所述存储器61在一些实施例中可以是所述终端设备6的内部存储单元,例如终端设备6的硬盘或内存。所述存储器61在另一些实施例中也可以是所述终端设备6的外部存储设备,例如所述终端设备6上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器61还可以既包括所述终端设备6的内部存储单元也包括外部存储设备。所述存储器61用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。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. When the computer program product runs on a terminal device, the terminal device can implement the steps in the foregoing method embodiments when executed.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If 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. Based on this understanding, the implementation of all or part of the processes in the above-mentioned embodiment methods in this application can be accomplished by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. The computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, 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. Such as U disk, mobile hard disk, floppy disk or CD-ROM, etc. In some jurisdictions, according to legislation and patent practices, computer-readable media cannot be electrical carrier signals and telecommunication signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/terminal device and method may be implemented in other ways. For example, the device/terminal device embodiments described above are only illustrative. For example, 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. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, 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.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements 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 the application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种画面显示方法,其特征在于,包括: A screen display method, characterized in that it comprises:
    在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;When a picture to be displayed is acquired, adjusting a display terminal, and acquiring a first adjustment rate and a first adjustment direction of the display terminal, where the picture to be displayed is a display picture formed by the display terminal;
    根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向;Determining 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;
    基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中。Adjust the to-be-displayed picture based on the second adjustment rate and the second adjustment direction, and display the adjusted to-be-displayed picture on a display adjusted according to the first adjustment rate and the first adjustment direction In the terminal.
  2. 如权利要求1所述的画面显示方法,其特征在于,所述第二调整速率与所述第一调整速率相同,所述第二调整方向与所述第一调整方向相反。 8. The picture display method of claim 1, wherein 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. 如权利要求1所述的画面显示方法,其特征在于,在所述获取所述显示终端的第一调整速率和第一调整方向之后,包括: 5. The screen display method according to claim 1, wherein after said obtaining the first adjustment rate and the first adjustment direction of the display terminal, the method comprises:
    获取所述显示终端的调整时间,并根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;Acquiring the adjustment time of the display terminal, and determining the first adjustment angle of the display terminal according to the first adjustment rate and the adjustment time;
    所述根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向,包括: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:
    根据所述第一调整角度和所述第一调整方向确定所述待显示画面的第二调整角度和第二调整方向,所述第二调整角度与所述第一调整角度相同;Determining 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, where the second adjustment angle is the same as the first adjustment angle;
    所述基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中,包括:The adjusting the to-be-displayed picture based on the second adjustment rate and the second adjustment direction, and displaying the adjusted to-be-displayed picture in the adjustment according to the first adjustment rate and the first adjustment direction The display terminal includes:
    基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。Adjust the to-be-displayed picture based on the second adjustment angle and the second adjustment direction, and display the adjusted to-be-displayed picture on a display adjusted according to the first adjustment angle and the first adjustment direction In the terminal.
  4. 如权利要求3所述的画面显示方法,其特征在于,所述基于所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中,包括: The picture display method of claim 3, wherein the picture to be displayed is adjusted based on the second adjustment angle and the second adjustment direction, and the picture to be displayed after adjustment is displayed on The display terminal adjusted according to the first adjustment angle and the first adjustment direction includes:
    根据所述第二调整角度确定所述待显示画面的拉伸比例;Determining the stretching ratio of the picture to be displayed according to the second adjustment angle;
    利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面;Stretch the to-be-displayed picture by using the stretching ratio to obtain a target display picture;
    基于所述第二调整角度和所述第二调整方向调整所述目标显示画面,并将调整后的目标显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。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 .
  5. 如权利要求4所述的画面显示方法,其特征在于,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,包括: 5. The picture display method of claim 4, wherein the determining the stretching ratio of the picture to be displayed according to the second adjustment angle comprises:
    获取所述显示终端的屏幕高度和所述待显示画面的初始画面宽度;Acquiring the screen height of the display terminal and the initial picture width of the picture to be displayed;
    根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度;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;
    基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例。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.
  6. 如权利要求5所述的画面显示方法,其特征在于,所述根据所述显示终端的屏幕高度、所述待显示画面的初始画面宽度和所述第二调整角度确定所述待显示画面的目标画面宽度,包括: The screen display method of claim 5, wherein the target of the screen to be displayed is determined according to the screen height of the display terminal, the initial screen width of the screen to be displayed, and the second adjustment angle Picture width, including:
    利用下述公式确定所述待显示画面的目标画面宽度:Use the following formula to determine the target picture width of the picture to be displayed:
    Width tar = 2R*(Height tv- Width pri)/π+ Width priWidth tar = 2R*(Height tv -Width pri )/π+ Width pri ;
    其中,Width tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Height tv为所述显示终端的屏幕高度,Width pri为所述待显示画面的初始画面宽度。 Wherein, 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, and Width pri is the initial picture width of the picture to be displayed.
  7. 如权利要求6所述的画面显示方法,其特征在于,所述基于所述待显示画面的初始画面宽度和目标画面宽度确定所述待显示画面的拉伸比例,包括: 7. The picture display method of claim 6, wherein 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 comprises:
    根据下述公式确定所述待显示画面的拉伸比例Pro:Determine the stretching ratio Pro of the picture to be displayed according to the following formula:
    Pro = Width tar / Width priPro = Width tar / Width pri .
  8. 如权利要求4至7中任一项所述的画面显示方法,其特征在于,在所述利用所述拉伸比例拉伸所述待显示画面,得到目标显示画面之后,包括: 7. The screen display method according to any one of claims 4 to 7, characterized in that, after said using said stretching ratio to stretch said to-be-displayed screen to obtain a target display screen, the method comprises:
    获取所述目标显示画面的目标画面高度;Acquiring the target screen height of the target display screen;
    确定所述目标画面高度是否大于所述显示终端的屏幕高度;Determining whether the height of the target screen is greater than the height of the screen of the display terminal;
    若所述目标画面高度大于所述显示终端的屏幕高度,则根据所述显示终端的屏幕高度调整所述目标显示画面的目标画面高度和目标画面宽度。If the target screen height is greater than the screen height of the display terminal, the target screen height and target screen width of the target display screen are adjusted according to the screen height of the display terminal.
  9. 如权利要求4所述的画面显示方法,其特征在于,所述根据所述第二调整角度确定所述待显示画面的拉伸比例,包括: 5. The picture display method of claim 4, wherein the determining the stretching ratio of the picture to be displayed according to the second adjustment angle comprises:
    获取所述显示终端的屏幕宽度和所述待显示画面的初始画面高度;Acquiring the screen width of the display terminal and the initial picture height of the picture to be displayed;
    根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度;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;
    基于所述待显示画面的初始画面高度和目标画面高度确定所述待显示画面的拉伸比例。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.
  10. 如权利要求9所述的画面显示方法,其特征在于,所述根据所述显示终端的屏幕宽度、所述待显示画面的初始画面高度和所述第二调整角度确定所述待显示画面的目标画面高度,包括: The screen display method of claim 9, wherein the target of the screen to be displayed is determined according to the screen width of the display terminal, the initial screen height of the screen to be displayed, and the second adjustment angle Picture height, including:
    利用下述公式确定所述待显示画面的目标画面高度:Use the following formula to determine the target picture height of the picture to be displayed:
    Height tar = 2R*(Width tv- Height pri)/π+ Height priHeight tar = 2R*(Width tv -Height pri )/π+ Height pri ;
    其中,Heigh tar为所述待显示画面的目标画面宽度,R为所述第二调整角度,Width tv为所述显示终端的屏幕宽度,Height pri为所述待显示画面的初始画面高度。 Wherein, 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, and Height pri is the initial picture height of the picture to be displayed.
  11. 如权利要求1或2所述的画面显示方法,其特征在于,所述待显示画面为媒体信息输出至所述显示终端形成的显示画面。 The screen display method according to claim 1 or 2, wherein the screen to be displayed is a display screen formed by outputting media information to the display terminal.
  12. 如权利要求1或2所述的画面显示方法,其特征在于,所述根据所述第一调整速率和所述第一调整方向确定所述待显示画面的第二调整速率和第二调整方向包括: The picture display method according to claim 1 or 2, wherein 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 comprises :
    根据所述第一调整速率、所述第一调整方向以及预设对应关系确定所述待显示画面的第二调整速率和第二调整方向;Determining the second adjustment rate and the second adjustment direction of the picture to be displayed according to the first adjustment rate, the first adjustment direction, and a preset correspondence relationship;
    所述基于所述第二调整速率和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整速率和所述第一调整方向调整的显示终端中包括:The adjusting the to-be-displayed picture based on the second adjustment rate and the second adjustment direction, and displaying the adjusted to-be-displayed picture in the adjustment according to the first adjustment rate and the first adjustment direction The display terminal includes:
    在根据所述第一调整速率和所述第一调整方向调整所述显示终端时,同时根据所述第二调整速率和第二调整方向调整所述待显示画面,并将调整后的待显示画面显示在调整后的显示终端中。When the display terminal is adjusted according to the first adjustment rate and the first adjustment direction, 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.
  13. 如权利要求1所述的画面显示方法,其特征在于,所述在获取到待显示画面时,调整显示终端包括: 8. The screen display method according to claim 1, wherein, when the screen to be displayed is acquired, adjusting the display terminal comprises:
    在获取所述待显示画面时,获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端;When acquiring the to-be-displayed picture, acquiring the display mode corresponding to the to-be-displayed picture, and determining whether to adjust the display terminal according to the display mode corresponding to the to-be-displayed picture;
    当根据所述待显示画面对应的显示模式确定调整所述显示终端,调整所述显示终端。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.
  14. 如权利要求13所述的画面显示方法,其特征在于,所述获取所述待显示画面对应的显示模式,并根据所述待显示画面对应的显示模式确定是否调整所述显示终端包括: The screen display method according to claim 13, wherein the obtaining the display mode corresponding to the screen to be displayed, and determining whether to adjust the display terminal according to the display mode corresponding to the screen to be displayed comprises:
    获取所述待显示画面的初始画面宽度和初始画面高度以及所述显示终端的屏幕宽度和屏幕高度;Acquiring 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;
    根据所述初始画面宽度和所述初始画面高度确定所述待显示画面对应的第一显示模式,并根据所述屏幕宽度和所述屏幕高度确定所述显示终端对应的第二显示模式;Determining a first display mode corresponding to the picture to be displayed according to the initial picture width and the initial picture height, and determining a second display mode corresponding to the display terminal according to the screen width and the screen height;
    确定所述第一显示模式与所述第二显示模式是否相同;Determining whether the first display mode and the second display mode are the same;
    当所述第一显示模式与所述第二显示模式不相同时,确定调整所述显示终端。When the first display mode is different from the second display mode, it is determined to adjust the display terminal.
  15. 一种画面显示装置,其特征在于,包括: A picture display device, characterized in that it comprises:
    第一速率方向获取模块,用于在获取到待显示画面时,调整显示终端,并获取所述显示终端的第一调整速率和第一调整方向,所述待显示画面为所述显示终端形成的显示画面;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. A display terminal with adjustment direction adjustment.
  16. 如权利要求15所述的画面显示装置,其特征在于,所述第二调整速率与所述第一调整速率相同,所述第二调整方向与所述第一调整方向相反。 15. The picture display device of claim 15, wherein the second adjustment rate is the same as the first adjustment rate, and the second adjustment direction is opposite to the first adjustment direction.
  17. 如权利要求15所述的画面显示装置,其特征在于,还包括: 15. The picture display device of claim 15, further comprising:
    第一调整角度确定模块,用于获取所述显示终端的调整时间,并根据所述第一调整速率和所述调整时间确定所述显示终端的第一调整角度;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 rate direction determining module is further 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 angle is the same as The first adjustment angle is the same;
    所述画面显示模块,还用于根据所述第二调整角度和所述第二调整方向调整所述待显示画面,并将调整后的所述待显示画面显示在根据所述第一调整角度和所述第一调整方向调整的显示终端中。The picture display module is further configured to adjust the picture to be displayed according to the second adjustment angle and the second adjustment direction, and to display the adjusted picture to be displayed in accordance with the first adjustment angle and In the display terminal adjusted in the first adjustment direction.
  18. 如权利要求17所述的画面显示装置,其特征在于,所述画面显示模块,包括: 17. The picture display device of claim 17, wherein the picture display module comprises:
    拉伸比例确定单元,用于根据所述第二调整角度确定所述待显示画面的拉伸比例;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 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 in accordance with the first adjustment angle and the first adjustment In the display terminal with orientation adjustment.
  19. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至14中任一项所述的画面显示方法。 A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program as claimed in claims 1 to 14. The screen display method described in any one of 14.
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至14中任一项所述的画面显示方法。A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the screen display method according to any one of claims 1 to 14 .
PCT/CN2020/141105 2019-12-31 2020-12-29 Frame display method, storage medium, and terminal apparatus WO2021136310A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201911420590.2A CN113126836B (en) 2019-12-31 2019-12-31 Picture display method, storage medium and terminal equipment
CN201911420590.2 2019-12-31
CN202011438800.3 2020-12-10
CN202011438800.3A CN114630158A (en) 2020-12-10 2020-12-10 Picture display method, storage medium and terminal equipment

Publications (1)

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

Family

ID=76686552

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141105 WO2021136310A1 (en) 2019-12-31 2020-12-29 Frame display method, storage medium, and terminal apparatus

Country Status (1)

Country Link
WO (1) WO2021136310A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609081A (en) * 2011-01-25 2012-07-25 深圳富泰宏精密工业有限公司 Game picture adjusting system and game picture adjusting method
CN104635755A (en) * 2014-12-03 2015-05-20 北京智谷睿拓技术服务有限公司 Display adjustment method and device
CN104731311A (en) * 2013-12-24 2015-06-24 鸿富锦精密工业(深圳)有限公司 Display device and method
CN105159640A (en) * 2015-08-28 2015-12-16 小米科技有限责任公司 Display interface rotation method and device, and mobile terminal
US20180060015A1 (en) * 2016-08-30 2018-03-01 Samsung Electronics Co., Ltd. Image display apparatus and operating method of the same
CN108446085A (en) * 2018-03-14 2018-08-24 维沃移动通信有限公司 A kind of throwing screen display methods and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609081A (en) * 2011-01-25 2012-07-25 深圳富泰宏精密工业有限公司 Game picture adjusting system and game picture adjusting method
CN104731311A (en) * 2013-12-24 2015-06-24 鸿富锦精密工业(深圳)有限公司 Display device and method
CN104635755A (en) * 2014-12-03 2015-05-20 北京智谷睿拓技术服务有限公司 Display adjustment method and device
CN105159640A (en) * 2015-08-28 2015-12-16 小米科技有限责任公司 Display interface rotation method and device, and mobile terminal
US20180060015A1 (en) * 2016-08-30 2018-03-01 Samsung Electronics Co., Ltd. Image display apparatus and operating method of the same
CN108446085A (en) * 2018-03-14 2018-08-24 维沃移动通信有限公司 A kind of throwing screen display methods and mobile terminal

Similar Documents

Publication Publication Date Title
WO2021135683A1 (en) Display terminal adjustment method and display terminal
WO2022037251A1 (en) Video data processing method and apparatus
WO2021147657A1 (en) Frame interpolation processing method and related product
WO2021008424A1 (en) Method and device for image synthesis, electronic apparatus and storage medium
CN109831662B (en) Real-time picture projection method and device of AR (augmented reality) glasses screen, controller and medium
WO2021170123A1 (en) Video generation method and device, and corresponding storage medium
US20150194131A1 (en) Image data output control method and electronic device supporting the same
WO2021227688A1 (en) Screen extension method and apparatus, and terminal device and computer-readable storage medium
WO2022057601A1 (en) Method and apparatus for sending image data
WO2017041513A1 (en) Video playback content insertion method, device and storage medium
WO2020147698A1 (en) Picture optimization method and device, terminal and corresponding storage medium
WO2020135580A1 (en) Panoramic image splicing method, device, terminal and corresponding storage medium
WO2023174123A1 (en) Display control chip, display panel, and related device, method and apparatus
WO2017096910A1 (en) Method and system for adaptively adjusting display scale of office software
US11770603B2 (en) Image display method having visual effect of increasing size of target image, mobile terminal, and computer-readable storage medium
CN111918098A (en) Video processing method and device, electronic equipment, server and storage medium
KR20130081439A (en) Apparatus and method for displaying camera view area in a portable terminal
WO2021238942A1 (en) Anti-shake method, anti-shake apparatus, and electronic device
WO2023193598A1 (en) Image processing method, apparatus and device, and storage medium
CN116419049A (en) Image processing method, image processing system, device and electronic equipment
CN111741343B (en) Video processing method and device and electronic equipment
WO2021136310A1 (en) Frame display method, storage medium, and terminal apparatus
WO2023125273A1 (en) Image display method of electronic equipment, image processing circuit and electronic equipment
US10592194B2 (en) Method and system for multiple display device projection
CN113126836B (en) Picture display method, storage medium and terminal equipment

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