WO2017107450A1 - 视频显示窗口的切换方法及装置 - Google Patents
视频显示窗口的切换方法及装置 Download PDFInfo
- Publication number
- WO2017107450A1 WO2017107450A1 PCT/CN2016/088997 CN2016088997W WO2017107450A1 WO 2017107450 A1 WO2017107450 A1 WO 2017107450A1 CN 2016088997 W CN2016088997 W CN 2016088997W WO 2017107450 A1 WO2017107450 A1 WO 2017107450A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- aspect ratio
- display window
- video display
- video
- target video
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
Definitions
- the embodiments of the present disclosure relate to the field of video processing technologies, for example, to a method and an apparatus for switching a video display window.
- the video played in full screen is often scaled according to the size of the small window.
- the inventors have found that at least the following problems exist in the related art: since there are many types of screen display ratios in the related art, for example, the aspect ratios may be 16:9 and 4:3, etc., when the full screen is displayed and When the small window displays are converted to each other, the distortion of the video display screen may occur due to the difference in length and width, which affects the normal viewing of the user.
- the present application provides a method and apparatus for switching a video display window to solve the problem of video distortion distortion caused by switching a video display window.
- an embodiment of the present application provides a method for switching a video display window, including:
- the aspect ratio of the target video display window is adjusted to the aspect ratio of the video.
- the embodiment of the present invention further provides a switching device for a video display window, including:
- the aspect ratio obtaining module is configured to acquire an aspect ratio of a video displayed by the current video display window and an aspect ratio of the target video display window when the video display window switching instruction is monitored;
- An aspect ratio comparison module configured to compare an aspect ratio of the video with an aspect ratio of the target video display window
- a first aspect ratio adjustment module configured to adjust an aspect ratio of the target video display window to a width of the video when an aspect ratio of the video and an aspect ratio of the target video display window are inconsistent High ratio.
- the embodiment of the present application further provides a non-volatile computer storage medium, where computer-executable instructions are stored, and the computer-executable instructions are used to perform a switching method of any video display window in the embodiment of the present application. .
- the embodiment of the present application further provides a hardware device for performing a method for switching a video display window, including:
- At least one processor and,
- the memory stores a program executable by the at least one processor, the processor for executing the program stored by the memory, and performing the following steps:
- the aspect ratio of the target video display window is adjusted to the aspect ratio of the video.
- the present application acquires the aspect ratio of the video displayed in the current video display window and the aspect ratio of the target video display window when the video display window switching instruction is monitored, and displays the video displayed in the current video display window and the target.
- the aspect ratio of the video display window is compared.
- the target video display window is Adjusting the aspect ratio to the aspect ratio of the video, achieving an effect of changing the aspect ratio of the displayed video after switching the current video display window to the target video window, preventing the video distortion distortion In order to ensure that users can feel good visual effects when watching videos.
- FIG. 1 is a schematic flowchart of a method for switching a video display window according to Embodiment 1 of the present application;
- FIG. 2 is a schematic flowchart of a method for switching a video display window according to Embodiment 2 of the present application
- FIG. 3 is a schematic structural diagram of a device for switching a video display window according to Embodiment 3 of the present application.
- FIG. 4 is a schematic structural diagram of hardware of a device according to Embodiment 5 of the present application.
- Embodiment 1 is a flowchart of a method for switching a video display window according to Embodiment 1 of the present application.
- the present embodiment is applicable to switching a video window, and the method may be performed by a switching device of a video display window, as shown in FIG.
- a method for switching a video display window provided in Embodiment 1 of the present application includes the following operations:
- the video display window switching instruction may be sent by the user immediately, or may be preset with a timing switching instruction. This operation can be used as a basis for subsequent steps to compare the aspect ratio of the video with the aspect ratio operation of the target video display window.
- the operation may be used as a basis for adjusting whether the aspect ratio of the target video display window is adjusted.
- the aspect ratio of the video is consistent with the aspect ratio of the target video display window, no follow-up is performed. operating.
- the aspect ratio of the video displayed in the current video display window and the aspect ratio of the target video display window are acquired, and the video displayed in the current video display window and the video are displayed. Comparing the aspect ratio of the target video display window, adjusting the aspect ratio of the target video display window to the video when the aspect ratio of the video and the aspect ratio of the target video display window are inconsistent
- the aspect ratio is such that the video picture displayed after switching the current video display window to the target video window is not distorted by deformation, thereby ensuring that the user can feel a good visual effect when watching the video.
- the adjusting the aspect ratio of the target video display window to the aspect ratio of the current video display window includes:
- Adjusting the width and/or length of the target video display window to adjust the aspect ratio of the target video display window to the aspect ratio of the video is adjusted.
- the width of the target video display window is adjusted, the length of the target video display window is unchanged; or, when the length of the target video display window is adjusted, the target video display
- the width of the window is unchanged; or, when the height and width of the target video display window are simultaneously adjusted, the diagonal length of the target video display window may remain unchanged, according to the current video display window
- the aspect ratio adjusts the height and width of the target video display window at the same time, and is merely illustrative and not limiting.
- the acquiring an aspect ratio of the video displayed by the current video display window may include:
- the aspect ratio of the video is obtained by decoding the video displayed by the current video display window.
- the original width and the original height of the video may be obtained by decoding the video displayed by the current video display window, and then the aspect ratio of the video is calculated according to the original height and the original width of the video.
- the resolution of the video is 480P (640 pixels ⁇ 480 pixels)
- the original width of the video is 640 pixels
- the original height is 480 pixels
- the aspect ratio is 4/3
- the video is resolved
- the rate is 720P (1280 pixels ⁇ 720 pixels
- the original width of the video is 1280
- the pixel has an original height of 720 pixels and an aspect ratio of 16/9.
- the current video display window may be displayed simultaneously with the target video display window.
- the current video display window may be a full-screen display window, the target display window is a small window that is not full-screen display, and the small window is located above the full-screen display window to block a part of the full-screen display window;
- the current video display window may be a large window that is not full screen display, and the target display window is a small window that is not full screen display, and the large window is displayed simultaneously with the small window and is not blocked from each other. It should be noted that the number of the small windows is not limited and may be one or more.
- the current video display window may be a full screen display window
- the target video display window may be a preview window that is not full screen display.
- the above method can be used for display:
- the aspect ratio of the video displayed in the full screen display window and the aspect ratio of the preview window to be switched to the non-full screen display are obtained;
- the aspect ratio of the preview window is adjusted to the aspect ratio of the video for display.
- the advantage of this setting is that when the user performs video viewing in the switching window, the aspect ratio of the video displayed in the full screen display window is consistent with the aspect ratio of the preview window, and the vertical direction of the video display screen does not occur.
- the horizontal stretching causes the distortion of the picture to be distorted, which improves the viewing experience of the user.
- FIG. 2 is a flowchart of a method for switching a video display window according to Embodiment 2 of the present application. As shown in FIG. 2, a method for switching a video display window provided in Embodiment 2 of the present application includes the following operations:
- the black space may not exist between the outer frame and the target video display window, and the area enclosed by the outer frame of the target video display window is occupied, and the area of the display screen is occupied, thereby improving the user's Visual experience and display usage.
- the aspect ratio of the target video display window is consistent with the aspect ratio of the video displayed by the current video display window, so that the user performs window switching.
- the visual perception of the video being stretched horizontally or vertically is not caused by the difference in the aspect ratio of the window before and after switching, thereby improving the user's visual experience.
- the aspect ratio of the outer frame of the target display window is adjusted to the aspect ratio of the target video display window.
- the advantage of the setting is that there is a black area between the outer frame and the target video display window caused by the inconsistency between the outer frame and the target video display window, which affects the user's perception; Avoid the waste of the display area of the display and the display of other content on this display.
- FIG. 3 is a schematic structural diagram of a device for switching a video display window according to Embodiment 3 of the present application.
- a switching device for a video display window according to Embodiment 3 of the present application mainly includes:
- the aspect ratio acquisition module 310 the aspect ratio comparison module 320, and the first aspect ratio adjustment module 330.
- the aspect ratio obtaining module 310 is configured to: when the video display window switching instruction is monitored, acquire an aspect ratio of the video displayed by the current video display window and an aspect ratio of the target video display window;
- the aspect ratio comparison module 320 is configured to compare an aspect ratio of the video with an aspect ratio of the target video display window
- the first aspect ratio adjustment module 330 is configured to display an aspect ratio of the video and the target video When the aspect ratio of the window is inconsistent, the aspect ratio of the target video display window is adjusted to the aspect ratio of the video.
- the aspect ratio adjustment module 330 adjusts an aspect ratio of the target video display window to an aspect ratio of the video, such that a video displayed after switching the current video display window to the target video window is not distorted by deformation In order to ensure that users can feel good visual effects when watching videos.
- the switching device of the video display window in this embodiment may further include:
- the second aspect ratio adjustment module 340 is configured to adjust an aspect ratio of the target video display window to the video when the aspect ratio of the video and the aspect ratio of the target video display window are inconsistent After the aspect ratio, when the aspect ratio of the outer frame of the target video display window is inconsistent with the aspect ratio of the target video display window, adjusting the aspect ratio of the outer frame to the target video display window The aspect ratio.
- the first aspect ratio adjustment module 330 in this embodiment is further configured to:
- the aspect ratio obtaining module 310 is further configured to:
- the aspect ratio of the video is obtained by decoding the video displayed by the current video display window.
- the current video display window may be a full screen display window
- the target video display window may be a preview window that is not full screen display.
- the switching device of the above video display window can perform the switching method of the video display window provided by any embodiment of the present application, and has a function module corresponding to the switching method of executing the video display window.
- the embodiment of the present application provides a non-volatile computer storage medium storing computer-executable instructions, which can perform a method for switching a video display window in any of the foregoing method embodiments.
- the device includes:
- One or more processors 701 and memory 702, one processor 701 is taken as an example in FIG.
- the device may also include an input device 703 and an output device 704.
- the processor 701, the memory 702, the input device 703, and the output device 704 in the device may be connected by a bus or other means, and the connection through the bus is taken as an example in FIG.
- the memory 702 is a non-volatile computer readable storage medium storing a program executable by the at least one processor 701, the processor 701 is configured to execute a program stored in the memory 702, and execute A method for switching a video display window in any of the above method embodiments.
- the memory 702 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like.
- memory 702 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
- memory 702 can optionally include memory remotely located relative to processor 701 that can be connected to the terminal device over a network.
- networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Input device 703 can be used to receive input digital or character information and to generate key signal inputs related to user settings and function control of the terminal.
- Output device 704 can include a display device such as a display screen.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请公开了一种视频显示窗口的切换方法及装置。该视频显示窗口的切换方法,包括:当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比;将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比;当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
Description
本申请要求在2015年12月25日提交中国专利局、申请号为201510996490X、发明名称为“一种视频显示窗口的切换方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
本申请实施例涉及视频处理技术领域,例如涉及一种视频显示窗口的切换方法及装置。
由于在网上看视频可以自由选择,不再受时间和地域的限制,所以在电脑等显示装置上通过网络看视频变得越来越普遍。
在观看视频时,很多用户喜欢小窗口播放,而相关技术中在进行小窗口播放视频时,往往是将全屏播放的视频按照小窗口的尺寸进行缩放。在实现本申请过程中,发明人发现相关技术中至少存在如下问题:由于相关技术中的画面显示比例种类有很多,例如长宽比可以是16∶9和4∶3等,所以当全屏显示与小窗口显示之间相互转换时,可能会因长和宽的比例不同出现视频显示画面失真的情况,影响用户的正常观看。
发明内容
本申请提供一种视频显示窗口的切换方法及装置,以解决切换视频显示窗口导致的视频变形失真的问题。
第一方面,本申请实施例提供了一种视频显示窗口的切换方法,包括:
当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比;
将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比;以及
当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述
目标视频显示窗口的宽高比调整至所述视频的宽高比。
第二方面,本发明申请实施例还提供了一种视频显示窗口的切换装置,包括:
宽高比获取模块,设置为当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比;
宽高比对比模块,设置为将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比;以及
第一宽高比调整模块,设置为当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
第三方面,本申请实施例还提供了一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行本申请实施例中任一视频显示窗口的切换方法。
第四方面,本申请实施例还提供了一种执行视频显示窗口的切换方法的硬件设备,包括:
至少一个处理器;以及,
存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的程序,所述处理器用于执行该存储器存储的程序,执行以下步骤操作:
当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比;
将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比;以及
当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
本申请通过当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比,并对所述当前视频显示窗口显示的视频以及所述目标视频显示窗口的宽高比进行对比。当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的
宽高比调整至所述视频的宽高比,实现了在将所述当前视频显示窗口切换至所述目标视频窗口后所显示的视频宽高比不变的效果,防止了所述视频变形失真,从而保证了用户观看视频时能够感受到良好的视觉效果。
图1为本申请实施例一提供的一种视频显示窗口的切换方法的流程示意图;
图2为本申请实施例二提供的一种视频显示窗口的切换方法的流程示意图;
图3为本申请实施例三提供的一种视频显示窗口的切换装置的结构示意图;
图4是本申请实施例五提供的一种设备的硬件结构示意图。
实施方式
下面结合附图和实施例对本申请作的详细说明。可以理解的是,此处所描述的实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。
实施例一
图1为本申请实施例一提供的一种视频显示窗口的切换方法的流程图,本实施例可适用于对视频窗口进行切换情况,该方法可以由视频显示窗口的切换装置来执行,如图1所示,本申请实施例一提供的视频显示窗口的切换方法,包括如下操作:
S110、当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比。
可选的,所述视频显示窗口切换指令可以是用户即时发出的,也可以预先设置的定时切换指令。本操作可以作为后续步骤对比所述视频的宽高比与所述目标视频显示窗口的宽高比操作的依据。
S120、将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比;
本操作可以作为是否对所述目标视频显示窗口的宽高比进行调整的依据,当所述视频的宽高比与所述目标视频显示窗口的宽高比一致时,则不进行后续
操作。
S130、当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
本实施例通过在监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比,并对所述当前视频显示窗口显示的视频以及所述目标视频显示窗口的宽高比进行对比,当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比,使得在将所述当前视频显示窗口切换至所述目标视频窗口后所显示的视频画面不会因变形而失真,从而保证了用户观看视频时能够感受到良好的视觉效果。
可选的,在上述实施例的基础上,所述将所述目标视频显示窗口的宽高比调整至所述当前视频显示窗口的宽高比,包括:
对所述目标视频显示窗口的宽度和/或长度进行调整,使所述目标视频显示窗口的宽高比调整至所述视频的宽高比。示例性的,当对所述目标视频显示窗口的宽度进行调整时,所述目标视频显示窗口的长度不变;或者,当对所述目标视频显示窗口的长度进行调整时,所述目标视频显示窗口的宽度不变;或者,当对所述目标视频显示窗口的高度和宽度同时进行调整时,可以是所述目标视频显示窗口的对角线长度保持不变,根据所述当前视频显示窗口的宽高比对所述目标视频显示窗口的高度和宽度同时进行调整,在此仅是举例说明,并非限定。
可选的,在上述实施例的基础上,所述获取当前视频显示窗口显示的视频的宽高比,可以包括:
通过对所述当前视频显示窗口显示的视频进行解码,获取所述视频的宽高比。可以是,通过对所述当前视频显示窗口显示的视频进行解码得到所述视频的原始宽度和原始高度,然后根据所述视频的原始高度和原始宽度计算得出所述视频的宽高比。示例性的,当所述视频的分辨率为480P(640像素×480像素)时,所述视频的原始宽度为640像素、原始高度为480像素,则宽高比为4/3;当视频分辨率为720P(1280像素×720像素)时,所述视频的原始宽度为1280
像素,原始高度为720像素,则宽高比为16/9。
可选的,在上述实施例的基础上,所述当前视频显示窗口可以是与所述目标视频显示窗口同时显示。可以是所述当前视频显示窗口为全屏显示窗口,所述目标显示窗口为非全屏显示的小窗口,所述小窗口位于所述全屏显示窗口的上方,遮挡所述全屏显示窗口的部分区域;还可以是所述当前视频显示窗口为非全屏显示的大窗口,所述目标显示窗口为非全屏显示的小窗口,所述大窗口与所述小窗口同时显示并且互不遮挡。值得说明的是,对所述小窗口的个数不作限定,可以是一个或多个。
可选的,在上述实施例的基础上,所述当前视频显示窗口可以为全屏显示窗口,所述目标视频显示窗口可以为非全屏显示的预览窗口。
下面对上述实施例中的技术方案进行举例说明:
示例性的,当用户正在利用电视机全屏观看某视频时,就可以采用上述方法进行显示:
当监测到视频显示窗口切换指令时,获取全屏显示窗口显示的视频的宽高比以及欲切换至的非全屏显示的预览窗口的宽高比;
将所述视频的宽高比与所述预览窗口的宽高比进行对比;
当所述视频的宽高比和所述预览窗口的宽高比不一致时,将所述预览窗口的宽高比调整至所述视频的宽高比,进行显示。
这样设置的好处在于,当用户在切换窗口进行视频观看时,全屏显示窗口显示的视频的宽高比与所述所述预览窗口的宽高比是一致的,不会出现视频显示画面的纵向或横向的拉伸导致画面变形失真的情况,提升了用户的观看体验。
需要说明的是,上述只是对上述实施例适用情况的举例说明,并非限定。
实施例二
图2为本申请实施例二提供的视频显示窗口的切换方法的流程图。如图2所示,本申请实施例二提供的视频显示窗口的切换方法,包括如下操作:
S210、当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比。
S220、将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比。
S230、当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
S240、当所述目标视频显示窗口的外边框的宽高比与所述目标视频显示窗口的宽高比不一致时,将所述外边框的宽高比调整至所述目标视频显示窗口的宽高比。
通过本操作可以使得所述外边框与所述目标视频显示窗口之间不存在黑色区域,减小了所述目标视频显示窗口的外边框所包围区域占用所述显示屏的面积,提升了用户的视觉体验和显示屏的使用率。
本实施例通过对所述目标视频显示窗口的宽高比进行调整,使目标视频显示窗口的宽高比与所述当前视频显示窗口显示的视频的宽高比一致,使得用户在进行窗口切换时,不会因为切换前后窗口的宽高比不同而产生视频被横向或纵向拉伸的视觉感受,提升了用户的视觉体验。并且在进行窗口切换时,将所述目标显示窗口的外边框的宽高比调整至所述目标视频显示窗口的宽高比。这样设置的好处在于,可以避免由于所述外边框与所述目标视频显示窗口比例不一致所导致的所述外边框与所述目标视频显示窗口之间有存在黑色区域,影响用户的观感;还可以避免由此造成显示屏显示面积的浪费,以及影响在此显示屏上进行其他内容的显示等问题。
实施例三
图3为本申请实施例三提供的一种视频显示窗口的切换装置的结构示意图。如图3所示,本申请实施例三提供的一种视频显示窗口的切换装置,主要包括:
宽高比获取模块310、宽高比对比模块320以及第一宽高比调整模块330。
其中,宽高比获取模块310,设置为当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比;
宽高比对比模块320,设置为将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比;
第一宽高比调整模块330,设置为当所述视频的宽高比和所述目标视频显示
窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
本实施例通过在宽高比获取模块310监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比,宽高比对比模块320对所述当前视频显示窗口显示的视频以及所述目标视频显示窗口的宽高比进行对比,当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,第一宽高比调整模块330将所述目标视频显示窗口的宽高比调整至所述视频的宽高比,使得在将所述当前视频显示窗口切换至所述目标视频窗口后所显示的视频不会因变形而失真,从而保证了用户观看视频时能够感受到良好的视觉效果。
可选的,本实施例中所述视频显示窗口的切换装置,还可以包括:
第二宽高比调整模块340,设置为当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比之后,当所述目标视频显示窗口的外边框的宽高比与所述目标视频显示窗口的宽高比不一致时,将所述外边框的宽高比调整至所述目标视频显示窗口的宽高比。
可选的,本实施例中第一宽高比调整模块330,还设置为:
对所述目标视频显示窗口的宽度和/或长度进行调整,使所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
可选的,所述宽高比获取模块310,还设置为:
通过对所述当前视频显示窗口显示的视频进行解码,获取所述视频的宽高比。
可选的,上述所有实施例中,所述当前视频显示窗口可以为全屏显示窗口,所述目标视频显示窗口可以为非全屏显示的预览窗口。
上述视频显示窗口的切换装置可执行本申请任意实施例所提供的视频显示窗口的切换方法,具备执行视频显示窗口的切换方法相应的功能模块。
实施例四
本申请实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的视频显示窗口的切换方法。
实施例五
图4为本申请实施例五提供的一种执行视频显示窗口的切换方法的硬件结构示意图,如图4所示,该设备包括:
一个或多个处理器701以及存储器702,图4中以一个处理器701为例。
所述设备还可以包括:输入装置703和输出装置704。
所述设备中的处理器701、存储器702、输入装置703和输出装置704可以通过总线或者其他方式连接,图4中以通过总线连接为例。
存储器702作为一种非易失性计算机可读存储介质,所述存储器702存储有可被所述至少一个处理器701执行的程序,所述处理器701用于执行该存储器702存储的程序,执行上述任一方法实施例中的视频显示窗口的切换方法。存储器702可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器702可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器702可选包括相对于处理器701远程设置的存储器,这些远程存储器可以通过网络连接至终端设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置703可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。输出装置704可包括显示屏等显示设备。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
Claims (11)
- 一种视频显示窗口的切换方法,包括:当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比;将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比;以及当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
- 根据权利要求1所述的切换方法,当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比之后,还包括:当所述目标视频显示窗口的外边框的宽高比与所述目标视频显示窗口的宽高比不一致时,将所述外边框的宽高比调整至所述目标视频显示窗口的宽高比。
- 根据权利要求1所述的切换方法,所述将所述目标视频显示窗口的宽高比调整至所述当前视频显示窗口的宽高比,包括:对所述目标视频显示窗口的宽度和/或长度进行调整,使所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
- 根据权利要求1所述的切换方法,所述获取当前视频显示窗口显示的视频的宽高比,包括:通过对所述当前视频显示窗口显示的视频进行解码,获取所述视频的宽高比。
- 根据权利要求1-4任一所述的切换方法,所述当前视频显示窗口为全屏显示窗口,所述目标视频显示窗口为非全屏显示的预览窗口。
- 一种视频显示窗口的切换装置,包括:宽高比获取模块,设置为当监测到视频显示窗口切换指令时,获取当前视频显示窗口显示的视频的宽高比以及目标视频显示窗口的宽高比;宽高比对比模块,设置为将所述视频的宽高比与所述目标视频显示窗口的宽高比进行对比;以及第一宽高比调整模块,设置为当所述视频的宽高比和所述目标视频显示窗口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
- 根据权利要求6所述的切换装置,还包括:第二宽高比调整模块,设置为当所述视频的宽高比和所述目标视频显示窗 口的宽高比不一致时,将所述目标视频显示窗口的宽高比调整至所述视频的宽高比之后,当所述目标视频显示窗口的外边框的宽高比与所述目标视频显示窗口的宽高比不一致时,将所述外边框的宽高比调整至所述目标视频显示窗口的宽高比。
- 根据权利要求6所述的切换装置,所述第一宽高比调整模块,还设置为:对所述目标视频显示窗口的宽度和/或长度进行调整,使所述目标视频显示窗口的宽高比调整至所述视频的宽高比。
- 根据权利要求6所述的切换装置,所述宽高比获取模块,还设置为:通过对所述当前视频显示窗口显示的视频进行解码,获取所述视频的宽高比。
- 根据权利要求6-9所述的切换装置,所述当前视频显示窗口为全屏显示窗口,所述目标视频显示窗口为非全屏显示的预览窗口。
- 一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的视频显示窗口的切换方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/243,840 US20170187927A1 (en) | 2015-12-25 | 2016-08-22 | Method and electronic device for switching video display window |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510996490.X | 2015-12-25 | ||
| CN201510996490.XA CN105898615A (zh) | 2015-12-25 | 2015-12-25 | 一种视频显示窗口的切换方法及装置 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US15/243,840 Continuation US20170187927A1 (en) | 2015-12-25 | 2016-08-22 | Method and electronic device for switching video display window |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017107450A1 true WO2017107450A1 (zh) | 2017-06-29 |
Family
ID=57002719
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/088997 Ceased WO2017107450A1 (zh) | 2015-12-25 | 2016-07-06 | 视频显示窗口的切换方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105898615A (zh) |
| WO (1) | WO2017107450A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114449177A (zh) * | 2020-11-05 | 2022-05-06 | 北京嗨动视觉科技有限公司 | 视频源显示方法和装置 |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107105184A (zh) * | 2017-04-01 | 2017-08-29 | 深圳市蓝莓派科技有限公司 | 一种移动终端在竖屏广告机上的同屏投射方法 |
| CN107888984B (zh) * | 2017-11-15 | 2021-03-09 | 北京小米移动软件有限公司 | 短视频播放方法及装置 |
| CN109151504B (zh) * | 2018-09-28 | 2021-03-02 | 上海哔哩哔哩科技有限公司 | 一种视频自适应播放方法、装置和存储介质 |
| CN110446110B (zh) * | 2019-07-29 | 2022-04-22 | 深圳市东微智能科技股份有限公司 | 视频的播放方法、视频播放设备及存储介质 |
| CN110611739B (zh) * | 2019-08-15 | 2021-05-25 | 咪咕音乐有限公司 | 视频彩铃播放方法、终端及计算机可读存储介质 |
| CN111417027A (zh) * | 2020-03-23 | 2020-07-14 | 青岛海信传媒网络技术有限公司 | 网页视频全屏播放切换小窗口播放的方法及显示设备 |
| CN121785693A (zh) * | 2020-04-15 | 2026-04-03 | 华为技术有限公司 | 全屏显示方法、装置和电子设备 |
| CN114143588B (zh) * | 2020-09-03 | 2023-06-06 | 华为技术有限公司 | 一种播放控制方法以及电子设备 |
| JP7561841B2 (ja) | 2021-04-07 | 2024-10-04 | グーグル エルエルシー | コンテンツスロットのアスペクト比を調整するためのシステムおよび方法 |
| CN113377995A (zh) * | 2021-06-18 | 2021-09-10 | 广州酷狗计算机科技有限公司 | 媒体资源的播放方法、装置和存储介质及电子设备 |
| CN116095403A (zh) * | 2021-11-05 | 2023-05-09 | 海信视像科技股份有限公司 | 一种智能设备及显示方法 |
| CN114911399B (zh) | 2022-05-06 | 2025-01-28 | 北京字跳网络技术有限公司 | 信息展示方法、装置、设备及存储介质 |
| CN114727050B (zh) * | 2022-05-23 | 2022-08-30 | 北京创新乐知网络技术有限公司 | 一种多人连麦直播会议的视频数据生成方法及装置 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030117419A1 (en) * | 2001-12-12 | 2003-06-26 | Stmicroelectronics, Inc. | Method and system of continuously scaling video images |
| CN101118734A (zh) * | 2007-07-10 | 2008-02-06 | 南京Lg新港显示有限公司 | 显示器中调整显示图像的比例的方法和装置 |
| CN102377960A (zh) * | 2010-08-24 | 2012-03-14 | 腾讯科技(深圳)有限公司 | 视频画面显示方法及装置 |
| CN103700360A (zh) * | 2013-12-09 | 2014-04-02 | 乐视致新电子科技(天津)有限公司 | 一种屏幕显示比例调整方法和电子设备 |
| CN103996167A (zh) * | 2014-05-30 | 2014-08-20 | 广州金山网络科技有限公司 | 一种缩略图的显示方法以及用户设备 |
| CN104243874A (zh) * | 2013-06-20 | 2014-12-24 | 冠捷投资有限公司 | 显示器的子画面显示方法 |
| CN104461295A (zh) * | 2014-12-03 | 2015-03-25 | 广东威创视讯科技股份有限公司 | 拼接墙的视频显示窗口调整方法和系统 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101207749A (zh) * | 2006-12-15 | 2008-06-25 | 北京海尔集成电路设计有限公司 | 多画面动态显示多路电视节目内容的装置与方法 |
| CN105159578A (zh) * | 2015-08-24 | 2015-12-16 | 小米科技有限责任公司 | 视频显示模式的切换方法和装置 |
-
2015
- 2015-12-25 CN CN201510996490.XA patent/CN105898615A/zh active Pending
-
2016
- 2016-07-06 WO PCT/CN2016/088997 patent/WO2017107450A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030117419A1 (en) * | 2001-12-12 | 2003-06-26 | Stmicroelectronics, Inc. | Method and system of continuously scaling video images |
| CN101118734A (zh) * | 2007-07-10 | 2008-02-06 | 南京Lg新港显示有限公司 | 显示器中调整显示图像的比例的方法和装置 |
| CN102377960A (zh) * | 2010-08-24 | 2012-03-14 | 腾讯科技(深圳)有限公司 | 视频画面显示方法及装置 |
| CN104243874A (zh) * | 2013-06-20 | 2014-12-24 | 冠捷投资有限公司 | 显示器的子画面显示方法 |
| CN103700360A (zh) * | 2013-12-09 | 2014-04-02 | 乐视致新电子科技(天津)有限公司 | 一种屏幕显示比例调整方法和电子设备 |
| CN103996167A (zh) * | 2014-05-30 | 2014-08-20 | 广州金山网络科技有限公司 | 一种缩略图的显示方法以及用户设备 |
| CN104461295A (zh) * | 2014-12-03 | 2015-03-25 | 广东威创视讯科技股份有限公司 | 拼接墙的视频显示窗口调整方法和系统 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114449177A (zh) * | 2020-11-05 | 2022-05-06 | 北京嗨动视觉科技有限公司 | 视频源显示方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105898615A (zh) | 2016-08-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017107450A1 (zh) | 视频显示窗口的切换方法及装置 | |
| CN105376642B (zh) | 视频播放分辨率切换方法及系统 | |
| WO2017211250A1 (zh) | 图像的叠加显示方法和系统 | |
| CN110446110B (zh) | 视频的播放方法、视频播放设备及存储介质 | |
| WO2019153723A1 (zh) | 视频画面显示方法、装置、电视机及存储介质 | |
| EP3751862A1 (en) | Display method and device, television set, and storage medium | |
| US11532075B2 (en) | Display apparatus for restoring high-frequency component of input image and image processing method thereof | |
| CN106878631B (zh) | 一种图像显示方法及装置 | |
| CN103561312A (zh) | 一种视频播放界面调整的方法和装置 | |
| US9666159B2 (en) | Display, display system and data processing method | |
| CN113225619A (zh) | 帧率自适应方法、装置、设备及可读存储介质 | |
| JP2012182673A (ja) | 映像表示装置及び映像処理方法 | |
| JP4691193B1 (ja) | 映像表示装置および映像処理方法 | |
| CN113905268A (zh) | 移动终端投屏显示的去黑边方法 | |
| CN105681720A (zh) | 视频播放的处理方法及装置 | |
| US11282483B2 (en) | Full-screen displays | |
| WO2014030405A1 (ja) | 表示装置、表示方法、テレビジョン受信機及び表示制御装置 | |
| CN111294651A (zh) | 基于播放数据流的静止画面防残影方法、装置及存储介质 | |
| WO2017166879A1 (zh) | 教学录播用锁定画面的方法及装置 | |
| CN106792084B (zh) | 电视信号显示参数的调整方法及装置、电视信号显示方法 | |
| US20180091852A1 (en) | Systems and methods for performing distributed playback of 360-degree video in a plurality of viewing windows | |
| US20170187927A1 (en) | Method and electronic device for switching video display window | |
| US20160269670A1 (en) | Method and apparatus for transmitting video signal | |
| TW202011738A (zh) | 投影方法及投影機 | |
| US20130033515A1 (en) | Image Display Apparatus and Image Display Method |
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: 16877262 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: 16877262 Country of ref document: EP Kind code of ref document: A1 |