WO2021136158A1 - Video window picture displaying method and apparatus - Google Patents

Video window picture displaying method and apparatus Download PDF

Info

Publication number
WO2021136158A1
WO2021136158A1 PCT/CN2020/140063 CN2020140063W WO2021136158A1 WO 2021136158 A1 WO2021136158 A1 WO 2021136158A1 CN 2020140063 W CN2020140063 W CN 2020140063W WO 2021136158 A1 WO2021136158 A1 WO 2021136158A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
electronic device
system resolution
video
window size
Prior art date
Application number
PCT/CN2020/140063
Other languages
French (fr)
Chinese (zh)
Other versions
WO2021136158A8 (en
Inventor
陈乡军
Original Assignee
杭州海康威视数字技术股份有限公司
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
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2021136158A1 publication Critical patent/WO2021136158A1/en
Publication of WO2021136158A8 publication Critical patent/WO2021136158A8/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone

Definitions

  • This application relates to the field of computer technology, and in particular to a method and device for displaying a video window screen.
  • system resolution is: the resolution supported by the operating system of the electronic device.
  • the electronic device needs to refresh and render the video screen displayed in the video window in real time. Therefore, when the electronic device adopts the system When the resolution is higher, the CPU (Central Processing Unit) load of the electronic device may be too high, which will cause the video screen displayed in the video window to appear stuck, which affects the display effect of the video screen displayed in the video window. .
  • the CPU Central Processing Unit
  • the purpose of the embodiments of the present application is to provide a video window screen display method, device, electronic device, and storage medium, so as to improve the display effect of the video screen displayed by the video window.
  • the specific technical solutions are as follows:
  • an embodiment of the present application provides a method for displaying a video window screen, which is applied to an electronic device.
  • the method includes: determining a window size of a video window; and adjusting the system resolution of the electronic device to be the same as that of the window.
  • the target system resolution corresponding to the size; the screen of the video window is displayed according to the target system resolution corresponding to the window size.
  • the electronic device includes: an electronic device with video conferencing and electronic drawing board functions; the maximum system resolution of the electronic device is 4K resolution.
  • the target system resolution corresponding to the window size is: under the window size, used to ensure that the CPU load of the electronic device meets the target load condition
  • the step of determining the window size of the video window includes: determining the window size of the video window when the video window is opened; or, when opening video playback in the video window, determining all The window size of the video window; or, in the case of obtaining a window size adjustment instruction for the video window from small to large, determine the window size of the video window after responding to the window size adjustment instruction from small to large.
  • the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size includes: according to a preset window size and system resolution The corresponding relationship of the electronic device is to reduce the system resolution of the electronic device to the target system resolution corresponding to the window size; or, according to a preset resolution adjustment amount, the system resolution of the electronic device is reduced until the The CPU load of the electronic device satisfies the target load condition.
  • the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide; when the window size of the video window reaches a preset size
  • the target system resolution corresponding to the window size of the video window is: the resolution of the video picture.
  • the target system resolution corresponding to the window size of the video window is: The maximum system resolution provided.
  • the preset size is: the window size of the video window when the video window is displayed in full screen.
  • the system resolution of the electronic device is the first system resolution
  • the first system resolution includes: the initial system resolution of the electronic device or the maximum system resolution provided by the electronic device; displaying the video at the target system resolution corresponding to the window size
  • the method further includes: acquiring a state change instruction for the video window, wherein the state change instruction includes: a restoration instruction, a hiding instruction, a closing instruction, and a window reorganization instruction of the video window.
  • the restoration instruction is: an instruction for instructing to restore the window size of the video window to the window size before the window size adjustment instruction from the smallest to the largest;
  • the system resolution of the electronic device is adjusted to the first system resolution.
  • the method further includes: obtaining a window for the video window From large to small adjustment instruction; determine the current window size of the video window after responding to the large to small adjustment instruction of the window; increase the system resolution of the electronic device to the second system resolution, wherein the first The second system resolution is: the maximum system resolution used to ensure that the CPU load of the electronic device meets the target load condition under the current window size of the video window.
  • the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size includes: determining that the window size of the video window is full-screen In this case, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the full screen.
  • the method before the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size, the method further includes: detecting the electronic device Whether the CPU load of the device meets the target load condition; if not, execute the step of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size.
  • an embodiment of the present application provides a video window screen display device, which is applied to an electronic device, and the device includes: a first window size determining module for determining the window size of the video window; and a first resolution adjusting module , For adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size; a picture display module for displaying the picture of the video window according to the target system resolution corresponding to the window size .
  • the electronic device includes: an electronic device with video conferencing and electronic drawing board functions; the maximum system resolution of the electronic device is 4K resolution.
  • the target system resolution corresponding to the window size is: under the window size, used to ensure that the CPU load of the electronic device meets the target load condition
  • the first window size determination module is specifically configured to: determine the window size of the video window when opening the video window; or, when opening video playback in the video window, determine the The window size of the video window; or, in the case of obtaining a window size adjustment instruction for the video window from small to large, determine the window size of the video window after responding to the window size adjustment instruction from small to large.
  • the first resolution adjustment module is specifically configured to: reduce the system resolution of the electronic device to that of the system resolution according to the preset correspondence between the window size and the system resolution.
  • the target system resolution corresponding to the window size; or, according to a preset resolution adjustment amount, the system resolution of the electronic device is reduced until the CPU load of the electronic device meets the target load condition.
  • the device further includes: a relationship determination module, configured to: if the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide, When the window size of the video window reaches the preset size, it is determined that the system resolution corresponding to the window size of the video window is: the resolution of the video picture.
  • a relationship determination module configured to: if the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide, When the window size of the video window reaches the preset size, it is determined that the system resolution corresponding to the window size of the video window is: the resolution of the video picture.
  • the relationship determination module is further configured to determine that the target system resolution corresponding to the window size of the video window is: provided by the electronic device when the window size of the video window does not reach a preset size The maximum system resolution.
  • the preset size is: the window size of the video window when the video window is displayed in full screen.
  • the system resolution of the electronic device is the first system resolution
  • the first system resolution includes: the initial system resolution of the electronic device or the maximum system resolution provided by the electronic device; the device further includes: a change instruction acquisition module for After the step of displaying the screen of the video window at the target system resolution corresponding to the window size, a state change instruction for the video window is obtained, wherein the state change instruction includes: a restoration instruction and a hiding instruction of the video window At least one of a close instruction and a window adjustment instruction from large to small, where the restoration instruction is used to instruct to restore the window size of the video window to the one before responding to the window adjustment instruction from small to large Window size instruction; a second resolution adjustment module for adjusting the system resolution of the electronic device to the first system resolution.
  • the device further includes: an adjustment instruction obtaining module, configured to obtain after the step of displaying the image of the video window according to the target system resolution corresponding to the window size An instruction for adjusting the window of the video window from large to small; a second window size determining module for determining the current window size of the video window after responding to the instruction for adjusting the window from large to small; a resolution increasing module, Used to increase the system resolution of the electronic device to a second system resolution, where the second system resolution is: under the current window size of the video window, used to ensure the CPU load of the electronic device The maximum system resolution that meets the target load condition.
  • an adjustment instruction obtaining module configured to obtain after the step of displaying the image of the video window according to the target system resolution corresponding to the window size An instruction for adjusting the window of the video window from large to small
  • a second window size determining module for determining the current window size of the video window after responding to the instruction for adjusting the window from large to small
  • a resolution increasing module Used to increase the system resolution of the electronic device to
  • the first resolution adjustment module is specifically configured to: adjust the system resolution of the electronic device to be the same as the resolution of the electronic device when it is determined that the window size of the video window is full screen The target system resolution corresponding to the full screen.
  • the device further includes: a load detection module for adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size. Previously, it was detected whether the CPU load of the electronic device satisfies the target load condition; if not, the execution and triggering of the first resolution adjustment module were executed.
  • an embodiment of the present application provides an electronic device, including a processor and a memory, the memory is used to store a computer program; the processor is used to execute the program stored in the memory to implement the above-mentioned first aspect Provides the steps of any video window screen display method.
  • the electronic device further includes a communication interface and a communication bus; wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus.
  • an embodiment of the present application provides a computer-readable storage medium having a computer program stored in the computer-readable storage medium, and when the computer program is executed by a processor, any frequency provided by the above-mentioned first aspect is implemented.
  • the steps of the window screen display method are not limited to:
  • the embodiments of the present application provide a computer program product containing instructions that, when executed by a processor, implement the steps of any video window screen display method provided in the first aspect.
  • the solution provided by the embodiments of this application when conducting video calls, watching live broadcasts and other activities, you can first determine the window size of the video window, and then adjust the system resolution of the electronic device to correspond to the window size Target system resolution. In this way, the video screen displayed in the video window can be displayed according to the adjusted target system resolution. Based on this, by applying the solution provided by the embodiments of the present application, the system resolution adopted by the electronic device can be adjusted adaptively according to the window size of the video window, so that the CPU load of the electronic device can meet the requirements for processing the video screen displayed by the video window. The need for real-time refreshing and rendering, thereby improving the display effect of the video screen displayed in the video window.
  • Figure 1(a) is a schematic diagram of the display screen of the electronic device when the video call window is displayed in a small window;
  • Figure 1(b) is a schematic diagram of the display screen of the electronic device when the video call window is displayed in full screen;
  • FIG. 2 is a schematic flowchart of a method for displaying a video window screen provided by an embodiment of the application
  • Fig. 3(a) is a schematic flowchart of another video window screen display method provided by an embodiment of the application.
  • FIG. 3(b) is a schematic flowchart of another video window screen display method provided by an embodiment of the application.
  • FIG. 4(a) is a schematic flowchart of a video window screen display method provided by an embodiment of the present application based on the specific implementation shown in FIG. 3(a);
  • FIG. 4(b) is a schematic flowchart of a video window screen display method provided by an embodiment of the present application based on the specific implementation shown in FIG. 3(b);
  • FIG. 5(a) is a schematic flowchart of another video window screen display method provided by an embodiment of the present application on the basis of the specific implementation shown in FIG. 3(a);
  • Figure 5(b) is a schematic flowchart of another video window screen display method provided by an embodiment of the present application based on the specific implementation shown in Figure 3(b);
  • FIG. 6 is a schematic flowchart of another video window screen display method provided by an embodiment of the application.
  • FIG. 7 is a schematic structural diagram of a video window screen display device provided by an embodiment of the application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • an embodiment of the present application provides a method for displaying a video window screen.
  • the method can be applied to any electronic device that needs to display a video window and display a video screen in the video window, such as a mobile phone, a notebook computer, a tablet computer, etc., which is not specifically limited in the embodiment of the present application, as follows Referred to as electronic equipment.
  • the electronic device that implements the video window screen display mode may be: an electronic device having both a video conference function and an electronic drawing board function, such as an intelligent interactive all-in-one machine.
  • the so-called intelligent interactive all-in-one machine refers to: an intelligent interactive all-in-one machine that has both remote video conferencing functions and electronic drawing board functions.
  • the intelligent interactive all-in-one machine can be: an electronic device that integrates an operating system, a display screen that supports touch-screen operation, and a camera; preferably, the intelligent interactive all-in-one machine can run a set of electronic drawing board writing and document presentation. , Wireless projection, remote video conference and other interactive functions in one interactive software.
  • the operating system of the intelligent interactive all-in-one machine may be a Windows operating system
  • the camera of the intelligent interactive all-in-one machine may be an external camera or a built-in camera.
  • FIG. 1(a) it is a schematic diagram of the display screen of the electronic device when the video window is displayed in a small window.
  • the video window displayed in the small window is suspended in a corner of the display screen of the intelligent interactive all-in-one machine, and the intelligent interaction
  • the other area of the display screen of the all-in-one machine is an electronic drawing board, and the user can write on the electronic drawing board by touching the screen or using a stylus pen; among them, the video window is a small window display means: a display in the electronic device Or the video window area formed by multiple video windows only occupies a part of the area of the display screen of the electronic device, but does not occupy the entire area of the display screen of the electronic device.
  • FIG. 1(b) it is a schematic diagram of the display screen of the electronic device when the video window is displayed in full screen.
  • multiple video windows are tiled on the display screen of the intelligent interactive all-in-one machine, and occupy the area of the intelligent interactive all-in-one machine.
  • the entire area of the display screen; where the full-screen display of the video window means that the video window area composed of one or more video windows displayed in the electronic device occupies the entire area of the display screen of the electronic device.
  • the video window area formed by the one or more video windows is equivalent to a composite video window synthesized by the one or more video windows, and the window size of the composite video window is the full screen size.
  • the maximum system resolution of the electronic device may be 4K resolution.
  • 4K resolution refers to: in the display screen of the electronic device, the number of pixels in each pixel row in the horizontal direction can reach or close to a resolution of 4096.
  • the 4K resolution can usually be: 4096*2160 .
  • 4K resolution can also have various derivative resolutions.
  • Full Aperture 4K is: 4096*3112
  • Academy 4K is: 3656*2664
  • UHDTV standard is: 3840*2160, etc.
  • the above resolutions are all 4K resolutions. Category.
  • a method for displaying a video window screen may include:
  • the picture of the video window is displayed according to the target system resolution corresponding to the window size.
  • the solution provided by the embodiments of this application when conducting video calls, watching live broadcasts and other activities, you can first determine the window size of the video window, and then adjust the system resolution of the electronic device to correspond to the window size Target system resolution. In this way, the video screen displayed in the video window can be displayed according to the adjusted target system resolution. Based on this, by applying the solution provided by the embodiments of the present application, the system resolution adopted by the electronic device can be adjusted adaptively according to the window size of the video window, so that the CPU load of the electronic device can meet the requirements for processing the video screen displayed by the video window. The need for real-time refreshing and rendering, thereby improving the display effect of the video screen displayed in the video window.
  • FIG. 2 is a schematic flowchart of a method for displaying a video window screen provided by an embodiment of the application. As shown in FIG. 2, the method may include the following steps:
  • the electronic device can change the window size of the video window according to various instructions sent by the user to adjust the window size of the video window. Based on this, in order to ensure the display effect of the video screen displayed by the video window under different window sizes, the electronic device may first determine the window size of the video window.
  • the electronic device can display the video window on the display screen in a variety of display modes, and the window size of the video window can be different in different display modes, so that when the display mode of the video window is changed , The window size of the video window can be changed.
  • the electronic device when detecting a change in the display mode of the video window, the electronic device needs to re-determine the window size of the video window, thereby determining whether the system resolution needs to be adjusted.
  • the electronic device can determine the window size of the video window in a variety of ways, which is not specifically limited in the embodiment of the present application.
  • the electronic device may detect the display mode of the video window, so as to determine the window size of the video window according to the detected display mode.
  • the electronic device can detect the ratio of the area occupied by the video window on the display screen to the entire display screen, so that the size of the video window can be determined according to the ratio and the size of the display screen. The size of the window.
  • the electronic device may directly detect the length and width dimensions of the video window, and thereby, determine the window size of the video window according to the detected length and width dimensions.
  • the electronic device when the electronic device receives the full-screen display instruction, it can determine that the window size of the video window is the full-screen size, and then it can be determined that the window size of the video window is the size of the display screen of the electronic device.
  • the electronic device can continue to perform the above step S202 to adjust the system resolution of the electronic device to the target system resolution corresponding to the window size.
  • S203 Display the picture of the video window according to the target system resolution corresponding to the window size.
  • the system resolution of the electronic device is adjusted to the target system resolution corresponding to the determined window size, the electronic device can display the picture of the video window according to the target system resolution corresponding to the window size.
  • step S201 determining the window size of the video window
  • the electronic device may execute the above step S201 at different times to obtain the window size of the video window.
  • the target system resolution corresponding to the window size may be: under the window size, the system resolution used to ensure that the CPU load of the electronic device meets the target load condition.
  • the above step S201 may include the following steps:
  • the window size of the video window after responding to the adjustment instruction for the window from small to large is determined.
  • the electronic device can perform the above step S201 in three cases, wherein, in the three cases, the specific implementation manner of the electronic device is as follows:
  • the video window is opened; specifically, in this case, the electronic device can determine the window size of the opened video window when the video window is opened.
  • a video window can include three processes from the beginning of the display to the end of the display: opening the video window, displaying the video image in the video window, and closing the video window. Obviously, after the video window is opened, the video window starts to display the video image. Therefore, the electronic device needs to refresh and render the video image displayed in the video window in real time. Therefore, when the video window is opened, the electronic device needs to determine whether Need to adjust the system resolution. Based on this, the electronic device can determine the window size of the video window when the video window is opened.
  • the electronic device may preset a default display mode when the video window is opened, that is, preset a display mode used when the video window is started. In this way, the window size of the video window can be directly determined when the video window is opened.
  • video playback is started in the video window; specifically, in this case, the electronic device can determine the window size of the video window when starting video playback in the video window, that is, when the video screen starts to be displayed in the video window To determine the window size of the video window.
  • the video window is opened but the video playback is not started, that is, although there is a video window on the display screen of the electronic device, the video window does not display a video screen, or there is Although there is a video window on the display screen of the electronic device, the video picture displayed in the video window remains unchanged, that is, the video picture played by the video window is in a playback pause state. Then, in this case, although the video window is open, because there is no video screen displayed in the video window, or the played video screen is in a playback pause state, the electronic device does not need to display the video in the video window. The screen is refreshed and rendered in real time.
  • the electronic device may determine that the system resolution does not need to be adjusted, and therefore, the electronic device may not determine the window size of the video window. Furthermore, when video playback is started in the video window, since the video screen displayed in the video window may continue to change, the electronic device may start to need to refresh and render the video screen displayed in the video window in real time, thus, The electronic device needs to determine whether the system resolution needs to be adjusted. Based on this, when detecting that the video in the video window is started to play, the electronic device can determine the window size of the video window.
  • an adjustment instruction for the window of the video window from small to large is obtained; specifically, in this case, the electronic device first responds to the obtained adjustment instruction, and then determines the result obtained after responding to the adjustment instruction The window size of the video window.
  • the user can change the window size of the video window at any time.
  • the window size of the video window changes from small to large, after the window size change is completed, when the electronic device refreshes and renders the video screen displayed in the video window in real time, the number of pixels that need to be refreshed and rendered Will increase, and thus, the CPU load of the electronic device will increase accordingly.
  • the electronic device needs to adjust the system resolution so that the CPU load can meet the real-time refresh and rendering requirements of the video window. Ensure that the CPU load of the electronic device meets the target load condition.
  • the target load conditions include conditions that enable the CPU load of the electronic device to meet the requirements for real-time refreshing and rendering of the video screen displayed by the video window.
  • the foregoing target load condition may be: less than a target load threshold; or: within a target load range.
  • the target load threshold includes: the maximum CPU load threshold that the electronic device can bear when meeting the requirements for real-time refreshing and rendering of the video screen displayed in the video window.
  • the target load condition may be a condition preset in the electronic device, and specifically may be less than a preset load threshold, or may be within a preset load range.
  • the target load condition can also be other conditions that enable the CPU load of the electronic device to meet the requirements for real-time refreshing and rendering of the video screen displayed by the video window, thereby improving the display effect of the video screen displayed by the video window , This is all reasonable.
  • the electronic device can determine the window size of the video window in response to the small to large adjustment instruction of the window.
  • the above-mentioned adjustment instruction for the window of the video window from small to large may be a switch instruction for the video window from small screen display to full screen display.
  • the video window currently displayed in full screen can be switched to a small window display; for another example, when the user wants When viewing the expression of the caller in the video screen displayed in the video window more clearly, you can switch the video window currently displayed in the small window to full-screen display.
  • the size of the video window will change from small to large, so that the electronic device can determine the window size of the electronic device after the switching is completed.
  • the target system resolution corresponding to the window size is the system resolution used to ensure that the CPU load of the electronic device meets the target load condition under the window size. Therefore, after adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size of the video window, the electronic device can smoothly refresh and refresh the video screen displayed in the video window in real time under the window size. Rendering, thereby improving the display effect of the video screen displayed in the video window.
  • step S202 of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size will be described in detail.
  • the target system resolution corresponding to the window size may be: under the window size, the system resolution used to ensure that the CPU load of the electronic device meets the target load condition.
  • the electronic device can smoothly refresh and refresh the video screen displayed in the video window in real time under the window size. Rendering, thereby improving the display effect of the video screen displayed in the video window.
  • the system resolution of the electronic device can be adjusted It is the target system resolution corresponding to the full screen.
  • the system resolution of the electronic device may be adjusted to the target system resolution corresponding to the full screen only when the window size of the video window is determined to be the full screen.
  • adjusting the system resolution of an electronic device may cause the operation interface of the electronic device to be deformed.
  • the size of the icon in the operation interface or the aspect ratio of the icon changes, etc., and when it is only in the window size of the video window
  • the system resolution for full screen since the video window occupies the entire area of the display screen of the electronic device, the user can only see the video displayed in the full screen video window, but not The operation interface of the electronic device, therefore, even if the operation interface of the electronic device is deformed due to the adjustment of the system resolution, the user will not perceive it, so that the user experience can be improved.
  • step S202 may include the following steps:
  • S202A Decrease the system resolution of the electronic device to the target system resolution corresponding to the window size according to the preset correspondence between the window size and the system resolution.
  • the system resolution that can ensure that the CPU load of the electronic device meets the target load condition can be determined in advance, so that the corresponding relationship between the window size and the system resolution is established, and the corresponding relationship is recorded In electronic equipment.
  • the electronic device can directly read the target system resolution corresponding to the determined window size from the corresponding relationship.
  • the corresponding relationship between the window size and the system resolution may be determined according to the resolution of the video screen displayed in the video window (or the resolution of the code stream).
  • the resolution (or stream resolution) of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide, you can set: when the window size of the video window reaches the preset size, Determine the resolution (or stream resolution) of the video screen displayed in the video window as the system resolution corresponding to the window size.
  • the maximum system resolution that the electronic device can provide may be determined as the system resolution corresponding to the window size.
  • the maximum system resolution that electronic devices such as smart interactive all-in-one machines can provide is 4K resolution
  • the video screen resolution in the video window is 1920*1080, which is referred to as 1080P.
  • the preset size of the video window can be set to 50% of the display screen size of the above-mentioned smart interactive all-in-one electronic device, so that when the window size of the video window reaches the size of the display screen of the above-mentioned smart interactive all-in-one electronic device
  • the system resolution corresponding to the window size of the video window is determined to be 1080P
  • the window size of the video window does not reach 50% of the display screen size of the above-mentioned smart interactive all-in-one machine and other electronic devices, the window size of the video window
  • the corresponding system resolution is determined to be 4K resolution.
  • the window size and system resolution are determined according to the resolution (or stream resolution) of the video screen displayed in the video window.
  • the aforementioned preset size may be: the window size of the video window when the video window is displayed in full screen.
  • the system resolution corresponding to the window size of the video window is determined as: the resolution of the video screen;
  • the resolution corresponding to the window size of the video window is: the maximum system resolution provided by the electronic device.
  • the display mode of the video window in the above-mentioned smart interactive all-in-one electronic device includes small screen display and full screen display, you can set: when the display mode of the video window is small screen display, the system corresponding to the window size of the video window The resolution is determined as the initial system resolution of the electronic device or the maximum resolution that the electronic device can provide, such as 4K resolution; when the display mode of the video window is full-screen display, set the system resolution corresponding to the window size of the video window Set as the resolution (or stream resolution) of the video screen displayed in the video window, for example, 1080P.
  • the system resolution of the electronic device is adjusted to the resolution (or stream resolution) of the video screen displayed in the video window.
  • the resolution of the video screen displayed in the video window does not match It does not drop, but reduces the system resolution of the electronic device, thereby reducing the CPU resources consumed by the electronic device when performing operations such as decoding, refreshing, and rendering the video screen displayed in the video window, and improves the video screen displayed in the video window.
  • the smoothness of the video window improves the display effect of the video screen displayed in the video window.
  • the video window when the video window is displayed in full screen, since the video window occupies the entire area of the display screen of the electronic device, the user can only see the video window displayed in full screen, and not the operation interface of the electronic device. In this way, even if the operation interface of the electronic device is deformed due to the adjustment of the system resolution, the user will not perceive it, which can improve the user experience; in addition, the system resolution of the electronic device is reduced only when the video window is displayed in full screen, The maximum system resolution provided by the electronic device can be used when the video window is displayed on a small screen other than the full-screen display, so that when the video window is displayed on a small screen other than the full-screen display, the user can perform other tasks on the electronic device.
  • step S202 may include the following steps:
  • S202B Decrease the system resolution of the electronic device according to the preset resolution adjustment amount until the CPU load of the electronic device meets the target load condition.
  • the window size of the video window is when the electronic device opens the video window, or when the video playback is started in the video window, or when the window size adjustment instruction for the video window is obtained from small to large Therefore, in order to ensure that the CPU load of the electronic device meets the target load condition, the system resolution of the electronic device can be reduced.
  • the display screen can also have a higher definition, the electronic device can gradually reduce the system resolution of the electronic device according to the preset resolution adjustment amount, until The CPU load of the electronic device satisfies the target load condition.
  • the electronic device may calculate the current CPU load of the electronic device and detect whether the CPU load meets the target load condition. Furthermore, when the detection result is yes, stop reducing the system resolution, otherwise, you can adjust the preset resolution again to reduce the system resolution, and repeat the above calculation and detection process until the CPU load of the electronic device meets the target Load conditions.
  • step S202 is performed to adjust the system resolution of the electronic device to the target system resolution corresponding to the determined window size, the electronic device uses a certain system resolution to display its own display screen. contents.
  • the system resolution of the electronic device may be the first system resolution
  • the first system resolution may include: the initial system resolution of the electronic device or the maximum system resolution that the electronic device can provide.
  • the initial system resolution of the electronic device may be a system resolution not greater than the maximum system resolution that the electronic device can provide.
  • the first system resolution may also be other system resolutions besides the aforementioned initial system resolution and maximum system resolution.
  • the display state of the video window can be changed, so that the electronic device You can adjust the system resolution again.
  • this application implements The example provides a method for displaying a video window screen, which may also include the following steps:
  • the state change instruction includes: at least one instruction among the video window restoration instruction, hiding instruction, closing instruction, and window adjustment instruction from large to small; and, the restoration instruction is: used to instruct to restore the window size of the video window to Respond to the instruction of adjusting the size of the window before the instruction from small to large.
  • S205 Adjust the system resolution of the electronic device to the first system resolution.
  • the electronic device when the above state change instruction is a restore instruction or a window size adjustment instruction from large to small, the electronic device will reduce the window size of the video window; and when the above state change instruction is a close instruction or a hide instruction, the display screen will The video window is no longer displayed. Based on this, when the state change instruction for the video window is obtained, when the electronic device refreshes and renders the picture displayed in the video window in real time, the number of refreshed and rendered pixels will be reduced, or the electronic device It is no longer necessary to refresh and render the picture displayed in the video window in real time, and therefore, the CPU load of the electronic device will be reduced.
  • the current system resolution of the electronic device is the system resolution adjusted to after the above step S202 is executed, and according to the above-mentioned specific comparison shown in FIG. 3(a) and FIG. 3(b) Description of the implementation method, the current system resolution of the electronic device can be smaller than the first system resolution of the electronic device. Therefore, in order to improve the definition of the display screen of the electronic device, the electronic device can restore the system resolution to the first system resolution. Resolution.
  • the display can also be displayed in accordance with the first system resolution.
  • the picture displayed in the video window is a restoration command or a window adjustment command from large to small
  • the electronic device may record the first system resolution of the electronic device before performing step S202 above, so that the electronic device can directly read the recorded first system resolution of the electronic device after acquiring the state change instruction for the video window, and then execute the above-mentioned step S205.
  • the video window screen display method provided by the embodiment may further include the following steps:
  • S207 Determine the current window size of the video window after responding to the window adjustment instruction from large to small;
  • the second system resolution is: the maximum system resolution used to ensure that the CPU load of the electronic device meets the target load condition under the current window size of the video window.
  • the electronic device can continue to obtain the window size adjustment instruction for the video window from large to small, so that the electronic device can respond to the adjustment instruction to reduce the window size of the video window. Furthermore, the electronic device can determine the current window size of the video window after responding to the window adjustment instruction from large to small.
  • the display mode of the video window is first converted from a small screen display to a full screen display or a window display larger than a small screen video window, and then a full screen display or a window display larger than a small screen video window is converted to a small screen display.
  • the instruction acquired by the electronic device may be: a restoration instruction, and the restoration instruction may be a window size adjustment instruction for the video window.
  • the electronic device since the window size of the video window is reduced after responding to the window size adjustment command from large to small, the electronic device performs the operation on the video screen displayed by the video window after responding to the window size adjustment command from large to small.
  • the electronic device can increase the system resolution to the second system resolution.
  • the electronic device may also display the picture of the video window according to the second system resolution.
  • the maximum system resolution that can ensure that the CPU load of the electronic device meets the target load conditions can be determined in advance, thereby establishing the correspondence between the window size and the second system resolution, and The corresponding relationship is recorded in the electronic device.
  • the video window after the determined adjustment instruction of the response window from large to small can be directly read from the corresponding relationship.
  • the current window size corresponds to the second system resolution, thereby increasing the system resolution of the electronic device to the second system resolution.
  • the electronic device may gradually increase the system resolution according to a preset resolution adjustment amount until the CPU load of the electronic device does not meet the target load condition, and the difference between the CPU load of the electronic device and the target load threshold is the smallest.
  • the electronic device can calculate the current CPU load of the electronic device and detect whether the difference between the CPU load and the target load threshold is less than the preset resolution adjustment Then, when the detection result is yes, stop reducing the system resolution, otherwise, you can adjust the amount according to the preset resolution again to increase the system resolution, and repeat the above calculation and detection process until the CPU load of the electronic device is not The target load condition is met, and the difference between the CPU load of the electronic device and the target load threshold is the smallest.
  • the electronic device may not adjust the system resolution.
  • the video window screen display method provided in the embodiment of the present application may further include the following steps:
  • the electronic device can further detect whether the CPU load of the electronic device meets the target load condition. For example, detecting whether the CPU load of the electronic device is greater than the target load threshold; for another example, detecting whether the CPU load of the electronic device is within the target threshold range, and so on.
  • the electronic device may adjust the system resolution to the target system resolution corresponding to the window size of the video window.
  • the electronic device may also first detect whether the CPU load is greater than the target load threshold, and when the detection result is yes, determine the window size of the video window, and adjust the system resolution to the target system resolution corresponding to the window size of the video window. In this way, the number of times of adjusting the system resolution can be reduced, thereby reducing the number of times the operation interface of the electronic device is deformed. For the user, the interface layout seen by the user is more stable and the user experience is improved.
  • the embodiment of the present application also provides a video window screen display device.
  • FIG. 7 is a schematic structural diagram of a video window screen display device provided by an embodiment of the application. As shown in FIG. 7, the device may include the following modules:
  • the first window size determining module 710 is configured to determine the window size of the video window
  • the first resolution adjustment module 720 is configured to adjust the system resolution of the electronic device to a target system resolution corresponding to the window size
  • the screen display module 730 is configured to display the screen of the video window according to the target system resolution corresponding to the window size.
  • the solution provided by the embodiments of this application when conducting video calls, watching live broadcasts and other activities, you can first determine the window size of the video window, and then adjust the system resolution of the electronic device to correspond to the window size Target system resolution. In this way, the video screen displayed in the video window can be displayed according to the adjusted target system resolution. Based on this, by applying the solution provided by the embodiments of the present application, the system resolution adopted by the electronic device can be adjusted adaptively according to the window size of the video window, so that the CPU load of the electronic device can meet the requirements for processing the video screen displayed by the video window. The need for real-time refreshing and rendering, thereby improving the display effect of the video screen displayed in the video window.
  • the electronic device includes: an electronic device with video conferencing and electronic drawing board functions; the maximum system resolution of the electronic device is 4K resolution.
  • the first window size determining module 710 is specifically configured to:
  • the target system resolution corresponding to the window size is: under the window size, used to ensure that the CPU load of the electronic device meets the target load condition System resolution.
  • the first resolution adjustment module 720 is specifically configured to:
  • the device further includes: a relationship determination module, configured to: if the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide, When the window size of the video window reaches the preset size, it is determined that the system resolution corresponding to the window size of the video window is: the resolution of the video picture.
  • a relationship determination module configured to: if the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide, When the window size of the video window reaches the preset size, it is determined that the system resolution corresponding to the window size of the video window is: the resolution of the video picture.
  • the relationship determining module is further configured to determine the resolution corresponding to the window size of the video window when the window size of the video window does not reach a preset size: The maximum system resolution provided by the electronic device.
  • the preset size is: the window size of the video window when the video window is displayed in full screen.
  • the system resolution of the electronic device is the first system resolution
  • the first system resolution includes: the initial system resolution of the electronic device or the maximum system resolution provided by the electronic device; the apparatus further includes:
  • a change instruction obtaining module configured to obtain a state change instruction for the video window after the step of displaying the screen of the video window according to the target system resolution corresponding to the window size, wherein the state change instruction Including: at least one of a restoration instruction, a hiding instruction, a closing instruction, and a window adjustment instruction of the video window, and the restoration instruction is used to instruct to restore the window size of the video window to a response An instruction to adjust the size of the window before the instruction from small to large;
  • the second resolution adjustment module is configured to adjust the system resolution of the electronic device to the first system resolution.
  • the device further includes:
  • An adjustment instruction obtaining module configured to obtain an adjustment instruction for the window of the video window from large to small after the step of displaying the picture of the video window according to the target system resolution corresponding to the window size;
  • the second window size determining module is used to determine the current window size of the video window after responding to the window size adjustment instruction;
  • the resolution improvement module is used to increase the system resolution of the electronic device to a second system resolution, where the second system resolution is: under the current window size of the video window, used to ensure that the The maximum system resolution at which the CPU load of the electronic device satisfies the target load condition.
  • the first resolution adjustment module 720 is specifically configured to:
  • the system resolution of the electronic device is adjusted to the target system resolution corresponding to the full screen.
  • the device further includes:
  • a load detection module configured to detect whether the CPU load of the electronic device meets the target load condition before the step of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size;
  • an embodiment of the present application also provides an electronic device, as shown in FIG. 8, including a processor 801 and a memory 803,
  • the memory 803 is used to store computer programs
  • the processor 801 is configured to implement the video window screen display method provided in the above embodiment of the present application when executing the program stored in the memory 803.
  • the electronic device further includes a communication interface 802 and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804. Communication.
  • the communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into address bus, data bus, control bus and so on.
  • the figure is only represented by a thick line, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the above-mentioned electronic device and other devices.
  • the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage.
  • NVM non-Volatile Memory
  • the memory may also be at least one storage device located far away from the foregoing processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the embodiments of the present application also provide a computer-readable storage medium in which a computer program is stored, and the computer program is executed by a processor. When executed, the steps of any of the video window screen display methods provided in the above embodiments of the present application are implemented.
  • the embodiments of the present application also provide a computer program product containing instructions that, when executed by a processor, implement any video provided in the first aspect. The steps of the window screen display method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Picture Signal Circuits (AREA)

Abstract

The embodiments of the present application provide a video window picture displaying method and apparatus. Said method is applied to an electronic device, and comprises: determining the window size of a video window; adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size; and displaying a picture of the video window according to the target system resolution corresponding to the window size. Compared with the prior art, the use of the solution provided by the embodiments of the present application can improve the displaying effect of a video picture displayed in a video window.

Description

一种视频窗口画面显示方法及装置Method and device for displaying video window screen
本申请要求于2019年12月31日提交中国专利局、申请号为201911409627.1发明名称为“一种视频窗口画面显示方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on December 31, 2019, with an application number of 201911409627.1 and the title of the invention is "a method and device for displaying a video window screen", the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种视频窗口画面显示方法及装置。This application relates to the field of computer technology, and in particular to a method and device for displaying a video window screen.
背景技术Background technique
随着计算机技术的不断发展,各种电子设备在用户的工作生活中发挥着越来越重要的作用,而为了追求更好的用户体验,用户对电子设备所提供图像和视频的清晰度的要求也越来越高。相应的,电子设备所能提供的系统分辨率也随之提高。其中,所谓系统分辨率为:电子设备的操作系统所支持的分辨率。With the continuous development of computer technology, various electronic devices are playing an increasingly important role in users’ work and life. In order to pursue a better user experience, users require the clarity of images and videos provided by electronic devices. Also getting higher and higher. Correspondingly, the system resolution that electronic equipment can provide is also improved. Among them, the so-called system resolution is: the resolution supported by the operating system of the electronic device.
然而,当用户利用电子设备所显示的视频窗口进行视频通话、观看直播画面等活动时,由于电子设备需要对视频窗口所显示的视频画面进行实时刷新和渲染,因此,当电子设备所采用的系统分辨率较高时,可能导致电子设备的CPU(Central Processing Unit,中央处理器)负载过高,从而使得视频窗口所显示的视频画面出现卡顿现象,影响视频窗口所显示的视频画面的显示效果。However, when the user uses the video window displayed by the electronic device to make video calls, watch live broadcasts and other activities, the electronic device needs to refresh and render the video screen displayed in the video window in real time. Therefore, when the electronic device adopts the system When the resolution is higher, the CPU (Central Processing Unit) load of the electronic device may be too high, which will cause the video screen displayed in the video window to appear stuck, which affects the display effect of the video screen displayed in the video window. .
发明内容Summary of the invention
本申请实施例的目的在于提供一种视频窗口画面显示方法、装置、电子设备及存储介质,以提高视频窗口所显示的视频画面的显示效果。具体技术方案如下:The purpose of the embodiments of the present application is to provide a video window screen display method, device, electronic device, and storage medium, so as to improve the display effect of the video screen displayed by the video window. The specific technical solutions are as follows:
第一方面,本申请实施例提供了一种视频窗口画面显示方法,应用于电子设备,所述方法包括:确定视频窗口的窗口大小;将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率;按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面。In the first aspect, an embodiment of the present application provides a method for displaying a video window screen, which is applied to an electronic device. The method includes: determining a window size of a video window; and adjusting the system resolution of the electronic device to be the same as that of the window. The target system resolution corresponding to the size; the screen of the video window is displayed according to the target system resolution corresponding to the window size.
可选的,一种具体实现方式中,所述电子设备包括:具备视频会议及电子画板功能的电子设备;所述电子设备的最大系统分辨率为4K分辨率。Optionally, in a specific implementation manner, the electronic device includes: an electronic device with video conferencing and electronic drawing board functions; the maximum system resolution of the electronic device is 4K resolution.
可选的,一种具体实现方式中,所述与所述窗口大小对应的目标系统分辨率为:在所述窗口大小下,用于保证所述电子设备的中央处理器CPU负载满足目标负载条件的系统分辨率;所述确定视频窗口的窗口大小的步骤,包括:在开启所述视频窗口时,确定所述视频窗口的窗口大小;或者,在所述视频窗口中开启视频播放时,确定所述视频窗口的窗口大小;或者,在获取到针对所述视频窗口的窗口由小至大的调整指令的情况下,确定响应所述窗口由小至大的调整指令后的视频窗口的窗口大小。Optionally, in a specific implementation manner, the target system resolution corresponding to the window size is: under the window size, used to ensure that the CPU load of the electronic device meets the target load condition The step of determining the window size of the video window includes: determining the window size of the video window when the video window is opened; or, when opening video playback in the video window, determining all The window size of the video window; or, in the case of obtaining a window size adjustment instruction for the video window from small to large, determine the window size of the video window after responding to the window size adjustment instruction from small to large.
可选的,一种具体实现方式中,所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤,包括:根据预设的窗口大小与系统分辨率的对应关系,将所述电子设备的系统分辨率降低为与所述窗口大小对应的目标系统分辨率;或者,按照预设分辨率调整量,降低所述电子设备的系统分辨率,直至所述电子设备的CPU负载满足所述目标负载条件。Optionally, in a specific implementation manner, the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size includes: according to a preset window size and system resolution The corresponding relationship of the electronic device is to reduce the system resolution of the electronic device to the target system resolution corresponding to the window size; or, according to a preset resolution adjustment amount, the system resolution of the electronic device is reduced until the The CPU load of the electronic device satisfies the target load condition.
可选的,一种具体实现方式中,所述视频窗口所显示的视频画面的分辨率小于所述电 子设备所能提供的最大系统分辨率;在所述视频窗口的窗口大小达到预设大小的情况下,所述视频窗口的窗口大小对应的目标系统分辨率为:所述视频画面的分辨率。Optionally, in a specific implementation manner, the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide; when the window size of the video window reaches a preset size In this case, the target system resolution corresponding to the window size of the video window is: the resolution of the video picture.
可选的,一种具体实现方式中,在所述视频窗口的窗口大小未达到所述预设大小的情况下,所述视频窗口的窗口大小对应的目标系统分辨率为:所述电子设备所提供的最大系统分辨率。Optionally, in a specific implementation manner, when the window size of the video window does not reach the preset size, the target system resolution corresponding to the window size of the video window is: The maximum system resolution provided.
可选的,一种具体实现方式中,所述预设大小为:所述视频窗口为全屏显示时,所述视频窗口的窗口大小。Optionally, in a specific implementation manner, the preset size is: the window size of the video window when the video window is displayed in full screen.
可选的,一种具体实现方式中,在所述将电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率之前,所述电子设备的系统分辨率为第一系统分辨率,所述第一系统分辨率包括:所述电子设备的初始系统分辨率或所述电子设备所提供的最大系统分辨率;在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,所述方法还包括:获取针对所述视频窗口的状态变更指令,其中,所述状态变更指令包括:所述视频窗口的还原指令、隐藏指令、关闭指令和窗口由大至小的调整指令中的至少一个指令,所述还原指令为:用于指示将所述视频窗口的窗口大小还原为响应所述窗口由小至大的调整指令前的窗口大小的指令;将所述电子设备的系统分辨率调整为所述第一系统分辨率。Optionally, in a specific implementation manner, before the system resolution of the electronic device is adjusted to the target system resolution corresponding to the window size, the system resolution of the electronic device is the first system resolution , The first system resolution includes: the initial system resolution of the electronic device or the maximum system resolution provided by the electronic device; displaying the video at the target system resolution corresponding to the window size After the step of the screen of the window, the method further includes: acquiring a state change instruction for the video window, wherein the state change instruction includes: a restoration instruction, a hiding instruction, a closing instruction, and a window reorganization instruction of the video window. At least one instruction of the smallest adjustment instruction, the restoration instruction is: an instruction for instructing to restore the window size of the video window to the window size before the window size adjustment instruction from the smallest to the largest; The system resolution of the electronic device is adjusted to the first system resolution.
可选的,一种具体实现方式中,在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,所述方法还包括:获取针对所述视频窗口的窗口由大至小的调整指令;确定响应所述窗口由大至小的调整指令后的视频窗口的当前窗口大小;提高所述电子设备的系统分辨率至第二系统分辨率,其中,所述第二系统分辨率为:在所述视频窗口的当前窗口大小下,用于保证所述电子设备的CPU负载满足所述目标负载条件的最大系统分辨率。Optionally, in a specific implementation manner, after the step of displaying the picture of the video window according to the target system resolution corresponding to the window size, the method further includes: obtaining a window for the video window From large to small adjustment instruction; determine the current window size of the video window after responding to the large to small adjustment instruction of the window; increase the system resolution of the electronic device to the second system resolution, wherein the first The second system resolution is: the maximum system resolution used to ensure that the CPU load of the electronic device meets the target load condition under the current window size of the video window.
可选的,一种具体实现方式中,所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤,包括:在确定视频窗口的窗口大小为全屏的情况下,将所述电子设备的系统分辨率调整为与所述全屏对应的目标系统分辨率。Optionally, in a specific implementation manner, the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size includes: determining that the window size of the video window is full-screen In this case, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the full screen.
可选的,一种具体实现方式中,在所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤之前,所述方法还包括:检测所述电子设备的CPU负载是否满足目标负载条件;如果不满足,执行所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤。Optionally, in a specific implementation manner, before the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size, the method further includes: detecting the electronic device Whether the CPU load of the device meets the target load condition; if not, execute the step of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size.
第二方面,本申请实施例提供了一种视频窗口画面显示装置,应用于电子设备,所述装置包括:第一窗口大小确定模块,用于确定视频窗口的窗口大小;第一分辨率调整模块,用于将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率;画面显示模块,用于按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面。In a second aspect, an embodiment of the present application provides a video window screen display device, which is applied to an electronic device, and the device includes: a first window size determining module for determining the window size of the video window; and a first resolution adjusting module , For adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size; a picture display module for displaying the picture of the video window according to the target system resolution corresponding to the window size .
可选的,一种具体实现方式中,所述电子设备包括:具备视频会议及电子画板功能的电子设备;所述电子设备的最大系统分辨率为4K分辨率。Optionally, in a specific implementation manner, the electronic device includes: an electronic device with video conferencing and electronic drawing board functions; the maximum system resolution of the electronic device is 4K resolution.
可选的,一种具体实现方式中,所述与所述窗口大小对应的目标系统分辨率为:在所述窗口大小下,用于保证所述电子设备的中央处理器CPU负载满足目标负载条件的系统分 辨率;所述第一窗口大小确定模块具体用于:在开启所述视频窗口时,确定所述视频窗口的窗口大小;或者,在所述视频窗口中开启视频播放时,确定所述视频窗口的窗口大小;或者,在获取到针对所述视频窗口的窗口由小至大的调整指令的情况下,确定响应所述窗口由小至大的调整指令后的视频窗口的窗口大小。Optionally, in a specific implementation manner, the target system resolution corresponding to the window size is: under the window size, used to ensure that the CPU load of the electronic device meets the target load condition The first window size determination module is specifically configured to: determine the window size of the video window when opening the video window; or, when opening video playback in the video window, determine the The window size of the video window; or, in the case of obtaining a window size adjustment instruction for the video window from small to large, determine the window size of the video window after responding to the window size adjustment instruction from small to large.
可选的,一种具体实现方式中,所述第一分辨率调整模块具体用于:根据预设的窗口大小与系统分辨率的对应关系,将所述电子设备的系统分辨率降低为与所述窗口大小对应的目标系统分辨率;或者,按照预设分辨率调整量,降低所述电子设备的系统分辨率,直至所述电子设备的CPU负载满足所述目标负载条件。Optionally, in a specific implementation manner, the first resolution adjustment module is specifically configured to: reduce the system resolution of the electronic device to that of the system resolution according to the preset correspondence between the window size and the system resolution. The target system resolution corresponding to the window size; or, according to a preset resolution adjustment amount, the system resolution of the electronic device is reduced until the CPU load of the electronic device meets the target load condition.
可选的,一种具体实现方式中,所述装置还包括:关系确定模块,用于若所述视频窗口所显示的视频画面的分辨率小于所述电子设备所能提供的最大系统分辨率,在所述视频窗口的窗口大小达到预设大小的情况下,确定所述视频窗口的窗口大小对应的系统分辨率为:所述视频画面的分辨率。Optionally, in a specific implementation manner, the device further includes: a relationship determination module, configured to: if the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide, When the window size of the video window reaches the preset size, it is determined that the system resolution corresponding to the window size of the video window is: the resolution of the video picture.
可选的,关系确定模块,还用于在所述视频窗口的窗口大小未达到预设大小的情况下,确定所述视频窗口的窗口大小对应的目标系统分辨率为:所述电子设备所提供的最大系统分辨率。Optionally, the relationship determination module is further configured to determine that the target system resolution corresponding to the window size of the video window is: provided by the electronic device when the window size of the video window does not reach a preset size The maximum system resolution.
可选的,一种具体实现方式中,所述预设大小为:所述视频窗口为全屏显示时,所述视频窗口的窗口大小。Optionally, in a specific implementation manner, the preset size is: the window size of the video window when the video window is displayed in full screen.
可选的,一种具体实现方式中,在所述将电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率之前,所述电子设备的系统分辨率为第一系统分辨率,所述第一系统分辨率包括:所述电子设备的初始系统分辨率或所述电子设备所提供的最大系统分辨率;所述装置还包括:变更指令获取模块,用于在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,获取针对所述视频窗口的状态变更指令,其中,所述状态变更指令包括:所述视频窗口的还原指令、隐藏指令、关闭指令和窗口由大至小的调整指令中的至少一个指令,所述还原指令为:用于指示将所述视频窗口的窗口大小还原为响应所述窗口由小至大的调整指令前的窗口大小的指令;第二分辨率调整模块,用于将所述电子设备的系统分辨率调整为所述第一系统分辨率。Optionally, in a specific implementation manner, before the system resolution of the electronic device is adjusted to the target system resolution corresponding to the window size, the system resolution of the electronic device is the first system resolution , The first system resolution includes: the initial system resolution of the electronic device or the maximum system resolution provided by the electronic device; the device further includes: a change instruction acquisition module for After the step of displaying the screen of the video window at the target system resolution corresponding to the window size, a state change instruction for the video window is obtained, wherein the state change instruction includes: a restoration instruction and a hiding instruction of the video window At least one of a close instruction and a window adjustment instruction from large to small, where the restoration instruction is used to instruct to restore the window size of the video window to the one before responding to the window adjustment instruction from small to large Window size instruction; a second resolution adjustment module for adjusting the system resolution of the electronic device to the first system resolution.
可选的,一种具体实现方式中,所述装置还包括:调整指令获取模块,用于在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,获取针对所述视频窗口的窗口由大至小的调整指令;第二窗口大小确定模块,用于确定响应所述窗口由大至小的调整指令后的视频窗口的当前窗口大小;分辨率提高模块,用于提高所述电子设备的系统分辨率至第二系统分辨率,其中,所述第二系统分辨率为:在所述视频窗口的当前窗口大小下,用于保证所述电子设备的CPU负载满足所述目标负载条件的最大系统分辨率。Optionally, in a specific implementation manner, the device further includes: an adjustment instruction obtaining module, configured to obtain after the step of displaying the image of the video window according to the target system resolution corresponding to the window size An instruction for adjusting the window of the video window from large to small; a second window size determining module for determining the current window size of the video window after responding to the instruction for adjusting the window from large to small; a resolution increasing module, Used to increase the system resolution of the electronic device to a second system resolution, where the second system resolution is: under the current window size of the video window, used to ensure the CPU load of the electronic device The maximum system resolution that meets the target load condition.
可选的,一种具体实现方式中,所述第一分辨率调整模块具体用于:在确定视频窗口的窗口大小为全屏的情况下,将所述电子设备的系统分辨率调整为与所述全屏对应的目标系统分辨率。Optionally, in a specific implementation manner, the first resolution adjustment module is specifically configured to: adjust the system resolution of the electronic device to be the same as the resolution of the electronic device when it is determined that the window size of the video window is full screen The target system resolution corresponding to the full screen.
可选的,一种具体实现方式中,所述装置还包括:负载检测模块,用于在所述将所述 电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤之前,检测所述电子设备的CPU负载是否满足目标负载条件;如果不满足,执行触发所述第一分辨率调整模块。Optionally, in a specific implementation manner, the device further includes: a load detection module for adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size. Previously, it was detected whether the CPU load of the electronic device satisfies the target load condition; if not, the execution and triggering of the first resolution adjustment module were executed.
第三方面,本申请实施例提供了一种电子设备,包括处理器和存储器,存储器,用于存放计算机程序;处理器,用于执行所述存储器上所存放的程序时,实现上述第一方面提供的任一视频窗口画面显示方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory is used to store a computer program; the processor is used to execute the program stored in the memory to implement the above-mentioned first aspect Provides the steps of any video window screen display method.
可选的,一种具体实现方式中,所述电子设备还包括通信接口和通信总线;其中,所述处理器,所述通信接口,所述存储器通过通信总线完成相互间的通信。Optionally, in a specific implementation manner, the electronic device further includes a communication interface and a communication bus; wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面提供的任一频窗口画面显示方法的步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored in the computer-readable storage medium, and when the computer program is executed by a processor, any frequency provided by the above-mentioned first aspect is implemented. The steps of the window screen display method.
第五方面,本申请实施例提供了一种包含指令的计算机程序产品,当其被处理器执行时实现上述第一方面提供的任一视频窗口画面显示方法的步骤。In the fifth aspect, the embodiments of the present application provide a computer program product containing instructions that, when executed by a processor, implement the steps of any video window screen display method provided in the first aspect.
以上可见,应用本申请实施例提供的方案,在进行视频通话、观看直播画面等活动时,可以首先确定视频窗口的窗口大小,进而,将电子设备的系统分辨率调整为与该窗口大小对应的目标系统分辨率。这样,便可以按照所调整到的目标系统分辨率,显示视频窗口所显示的视频画面。基于此,应用本申请实施例提供的方案,可以根据视频窗口的窗口大小适应性地调整电子设备所采用的系统分辨率,以使得电子设备的CPU负载可以满足对视频窗口所显示的视频画面进行实时刷新和渲染的需求,从而,提高视频窗口所显示的视频画面的显示效果。As can be seen from the above, applying the solution provided by the embodiments of this application, when conducting video calls, watching live broadcasts and other activities, you can first determine the window size of the video window, and then adjust the system resolution of the electronic device to correspond to the window size Target system resolution. In this way, the video screen displayed in the video window can be displayed according to the adjusted target system resolution. Based on this, by applying the solution provided by the embodiments of the present application, the system resolution adopted by the electronic device can be adjusted adaptively according to the window size of the video window, so that the CPU load of the electronic device can meet the requirements for processing the video screen displayed by the video window. The need for real-time refreshing and rendering, thereby improving the display effect of the video screen displayed in the video window.
附图说明Description of the drawings
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application and the technical solutions of the prior art more clearly, the following briefly introduces the drawings that need to be used in the embodiments and the prior art. Obviously, the drawings in the following description are merely the present invention. For some of the embodiments of the application, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1(a)为视频通话窗口为小窗口显示时,电子设备的显示屏幕示意图;Figure 1(a) is a schematic diagram of the display screen of the electronic device when the video call window is displayed in a small window;
图1(b)为视频通话窗口为全屏显示时,电子设备的显示屏幕示意图;Figure 1(b) is a schematic diagram of the display screen of the electronic device when the video call window is displayed in full screen;
图2为本申请实施例提供的一种视频窗口画面显示方法的流程示意图;2 is a schematic flowchart of a method for displaying a video window screen provided by an embodiment of the application;
图3(a)为本申请实施例提供的另一种视频窗口画面显示方法的流程示意图;Fig. 3(a) is a schematic flowchart of another video window screen display method provided by an embodiment of the application;
图3(b)为本申请实施例提供的另一种视频窗口画面显示方法的流程示意图;FIG. 3(b) is a schematic flowchart of another video window screen display method provided by an embodiment of the application;
图4(a)为在图3(a)所示具体实现方式基础上,本申请实施例提供的一种视频窗口画面显示方法的流程示意图;FIG. 4(a) is a schematic flowchart of a video window screen display method provided by an embodiment of the present application based on the specific implementation shown in FIG. 3(a);
图4(b)为在图3(b)所示具体实现方式基础上,本申请实施例提供的一种视频窗口画面显示方法的流程示意图;FIG. 4(b) is a schematic flowchart of a video window screen display method provided by an embodiment of the present application based on the specific implementation shown in FIG. 3(b);
图5(a)为在图3(a)所示具体实现方式基础上,本申请实施例提供的另一种视频窗口画面显示方法的流程示意图;FIG. 5(a) is a schematic flowchart of another video window screen display method provided by an embodiment of the present application on the basis of the specific implementation shown in FIG. 3(a);
图5(b)为在图3(b)所示具体实现方式基础上,本申请实施例提供的另一种视频 窗口画面显示方法的流程示意图;Figure 5(b) is a schematic flowchart of another video window screen display method provided by an embodiment of the present application based on the specific implementation shown in Figure 3(b);
图6为本申请实施例提供的另一种视频窗口画面显示方法的流程示意图;6 is a schematic flowchart of another video window screen display method provided by an embodiment of the application;
图7为本申请实施例提供的一种视频窗口画面显示装置的结构示意图;FIG. 7 is a schematic structural diagram of a video window screen display device provided by an embodiment of the application;
图8为本申请实施例提供的一种电子设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of this application;
图9为本申请实施例提供的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
具体实施方式Detailed ways
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
在相关技术中,当用户利用电子设备所显示的视频窗口进行视频通话、观看直播画面等活动时,由于电子设备需要对视频窗口所显示的画面进行实时刷新和渲染,因此,当电子设备所采用的系统分辨率较高时,可能导致电子设备的CPU负载过高,从而使得视频窗口所显示的视频画面出现较为严重的卡顿现象,影响视频窗口所显示的视频画面的显示效果。In related technologies, when users use the video window displayed by the electronic device to make video calls, watch live broadcasts and other activities, since the electronic device needs to refresh and render the screen displayed in the video window in real time, when the electronic device uses When the system resolution is higher, the CPU load of the electronic device may be too high, which may cause serious freezes in the video screen displayed by the video window, and affect the display effect of the video screen displayed by the video window.
为了解决上述技术问题,本申请实施例提供了一种视频窗口画面显示方法。其中,该方法可以应用于任一需要显示视频窗口,并在视频窗口中显示视频画面的电子设备,例如,手机、笔记本电脑、平板电脑等,对此,本申请实施例不做具体限定,以下简称电子设备。In order to solve the above technical problem, an embodiment of the present application provides a method for displaying a video window screen. Among them, the method can be applied to any electronic device that needs to display a video window and display a video screen in the video window, such as a mobile phone, a notebook computer, a tablet computer, etc., which is not specifically limited in the embodiment of the present application, as follows Referred to as electronic equipment.
可选的,一种具体实现方式中,执行本申请实施例提供的一种视频窗口画面显示方式的电子设备可以为:同时具备视频会议功能和电子画板功能的电子设备,例如智能交互一体机。Optionally, in a specific implementation manner, the electronic device that implements the video window screen display mode provided by the embodiment of the present application may be: an electronic device having both a video conference function and an electronic drawing board function, such as an intelligent interactive all-in-one machine.
所谓智能交互一体机是指:同时具备远程视频会议功能和电子画板功能的智能交互一体机。其中,该智能交互一体机可以为:集操作系统、支持触屏操作的显示屏幕和摄像头为一体的电子设备;较优地,该智能交互一体机的内部可以运行有集电子画板书写、文件演示、无线投屏、远程视频会议等交互功能于一体的交互软件。此外,该智能交互一体机的操作系统可以为Windows操作系统,并且,该智能交互一体机的摄像头可以为外接摄像头,也可以为内置摄像头。The so-called intelligent interactive all-in-one machine refers to: an intelligent interactive all-in-one machine that has both remote video conferencing functions and electronic drawing board functions. Among them, the intelligent interactive all-in-one machine can be: an electronic device that integrates an operating system, a display screen that supports touch-screen operation, and a camera; preferably, the intelligent interactive all-in-one machine can run a set of electronic drawing board writing and document presentation. , Wireless projection, remote video conference and other interactive functions in one interactive software. In addition, the operating system of the intelligent interactive all-in-one machine may be a Windows operating system, and the camera of the intelligent interactive all-in-one machine may be an external camera or a built-in camera.
例如,如图1(a)所示,为视频窗口为小窗口显示时,电子设备的显示屏幕示意图,其中,小窗口显示的视频窗口悬浮在智能交互一体机的显示屏幕的一角,且智能交互一体机的显示屏幕中的其他区域为电子画板,用户可以通过触屏或使用手写笔等方式在该电子画板中进行书写;其中,视频窗口为小窗口显示是指:电子设备中所展示的一个或多个视频窗口构成的视频窗口区域仅仅占用了电子设备的显示屏幕的部分区域,而没有占用电子设备的显示屏幕的全部区域。For example, as shown in Figure 1(a), it is a schematic diagram of the display screen of the electronic device when the video window is displayed in a small window. The video window displayed in the small window is suspended in a corner of the display screen of the intelligent interactive all-in-one machine, and the intelligent interaction The other area of the display screen of the all-in-one machine is an electronic drawing board, and the user can write on the electronic drawing board by touching the screen or using a stylus pen; among them, the video window is a small window display means: a display in the electronic device Or the video window area formed by multiple video windows only occupies a part of the area of the display screen of the electronic device, but does not occupy the entire area of the display screen of the electronic device.
如图1(b)所示,为视频窗口为全屏显示时,电子设备的显示屏幕示意图,其中,多个视频窗口平铺在智能交互一体机的显示屏幕中,并占据了智能交互一体机的显示屏幕的全部区域;其中,视频窗口为全屏显示是指:电子设备中所展示的一个或多个视频窗口构成的视频窗口区域占用了电子设备的显示屏幕的全部区域。该一个或多个视频窗口构成的 视频窗口区域相当于是一个该一个或多个视频窗口合成的合成视频窗口,该合成视频窗口的窗口大小为全屏大小。As shown in Figure 1(b), it is a schematic diagram of the display screen of the electronic device when the video window is displayed in full screen. Among them, multiple video windows are tiled on the display screen of the intelligent interactive all-in-one machine, and occupy the area of the intelligent interactive all-in-one machine. The entire area of the display screen; where the full-screen display of the video window means that the video window area composed of one or more video windows displayed in the electronic device occupies the entire area of the display screen of the electronic device. The video window area formed by the one or more video windows is equivalent to a composite video window synthesized by the one or more video windows, and the window size of the composite video window is the full screen size.
其中,在本具体实现方式中,该电子设备的最大系统分辨率可以为4K分辨率。所谓4K分辨率是指:该电子设备的显示屏幕中,水平方向的每个像素行中的像素点的数量可以达到或接近4096个的分辨率,例如,4K分辨率通常可以为:4096*2160。并且,4K分辨率还可以存在各种衍生分辨率,例如,Full Aperture 4K为:4096*3112,Academy 4K为:3656*2664,UHDTV标准为:3840*2160等,上述分辨率均属于4K分辨率的范畴。Wherein, in this specific implementation manner, the maximum system resolution of the electronic device may be 4K resolution. The so-called 4K resolution refers to: in the display screen of the electronic device, the number of pixels in each pixel row in the horizontal direction can reach or close to a resolution of 4096. For example, the 4K resolution can usually be: 4096*2160 . In addition, 4K resolution can also have various derivative resolutions. For example, Full Aperture 4K is: 4096*3112, Academy 4K is: 3656*2664, UHDTV standard is: 3840*2160, etc. The above resolutions are all 4K resolutions. Category.
其中,本发明实施例提供的一种视频窗口画面显示方法可以包括:Wherein, a method for displaying a video window screen provided by an embodiment of the present invention may include:
确定视频窗口的窗口大小;Determine the window size of the video window;
将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率;Adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size;
按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面。The picture of the video window is displayed according to the target system resolution corresponding to the window size.
以上可见,应用本申请实施例提供的方案,在进行视频通话、观看直播画面等活动时,可以首先确定视频窗口的窗口大小,进而,将电子设备的系统分辨率调整为与该窗口大小对应的目标系统分辨率。这样,便可以按照所调整到的目标系统分辨率,显示视频窗口所显示的视频画面。基于此,应用本申请实施例提供的方案,可以根据视频窗口的窗口大小适应性地调整电子设备所采用的系统分辨率,以使得电子设备的CPU负载可以满足对视频窗口所显示的视频画面进行实时刷新和渲染的需求,从而,提高视频窗口所显示的视频画面的显示效果。As can be seen from the above, applying the solution provided by the embodiments of this application, when conducting video calls, watching live broadcasts and other activities, you can first determine the window size of the video window, and then adjust the system resolution of the electronic device to correspond to the window size Target system resolution. In this way, the video screen displayed in the video window can be displayed according to the adjusted target system resolution. Based on this, by applying the solution provided by the embodiments of the present application, the system resolution adopted by the electronic device can be adjusted adaptively according to the window size of the video window, so that the CPU load of the electronic device can meet the requirements for processing the video screen displayed by the video window. The need for real-time refreshing and rendering, thereby improving the display effect of the video screen displayed in the video window.
下面,对本申请实施例提供的一种视频窗口画面显示方法进行具体说明。Hereinafter, a method for displaying a video window screen provided by an embodiment of the present application will be described in detail.
图2为本申请实施例提供的一种视频窗口画面显示方法的流程示意图,如图2所示,该方法可以包括如下步骤:FIG. 2 is a schematic flowchart of a method for displaying a video window screen provided by an embodiment of the application. As shown in FIG. 2, the method may include the following steps:
S201:确定视频窗口的窗口大小;S201: Determine the window size of the video window;
可以理解的,在视频窗口显示视频画面的过程中,电子设备可以根据用户发送的对视频窗口的窗口大小进行调节的各类指令,改变视频窗口的窗口大小。基于此,为了保证不同的窗口大小下,视频窗口所显示的视频画面的显示效果,电子设备可以首先确定视频窗口的窗口大小。It is understandable that during the process of displaying the video picture in the video window, the electronic device can change the window size of the video window according to various instructions sent by the user to adjust the window size of the video window. Based on this, in order to ensure the display effect of the video screen displayed by the video window under different window sizes, the electronic device may first determine the window size of the video window.
其中,可选的,电子设备可以通过多种显示方式在显示屏幕中显示视频窗口,而在不同的显示方式下,视频窗口的窗口大小可以是不同的,从而,当改变视频窗口的显示方式时,视频窗口的窗口大小可以发生改变。Optionally, the electronic device can display the video window on the display screen in a variety of display modes, and the window size of the video window can be different in different display modes, so that when the display mode of the video window is changed , The window size of the video window can be changed.
这样,在检测到视频窗口的显示方式发生变化时,电子设备需要重新确定视频窗口的窗口大小,从而,确定是否需要对系统分辨率进行调整。In this way, when detecting a change in the display mode of the video window, the electronic device needs to re-determine the window size of the video window, thereby determining whether the system resolution needs to be adjusted.
其中,电子设备可以通过多种方式确定视频窗口的窗口大小,对此,本申请实施例不做具体限定。Among them, the electronic device can determine the window size of the video window in a variety of ways, which is not specifically limited in the embodiment of the present application.
可选的,一种具体实现方式中,电子设备可以检测视频窗口的显示方式,从而,根据所检测到的显示方式,确定视频窗口的窗口大小。Optionally, in a specific implementation manner, the electronic device may detect the display mode of the video window, so as to determine the window size of the video window according to the detected display mode.
可选的,一种具体实现方式中,电子设备可以检测视频窗口在显示屏幕中所占用的区域在整个显示屏幕中的比例,从而,便可以根据该比例和显示屏幕的大小,确定视频窗口 的窗口大小。Optionally, in a specific implementation manner, the electronic device can detect the ratio of the area occupied by the video window on the display screen to the entire display screen, so that the size of the video window can be determined according to the ratio and the size of the display screen. The size of the window.
可选的,一种具体实现方式中,电子设备可以直接检测视频窗口的长和宽的尺寸,从而,根据所检测到的长和宽的尺寸,确定视频窗口的窗口大小。Optionally, in a specific implementation manner, the electronic device may directly detect the length and width dimensions of the video window, and thereby, determine the window size of the video window according to the detected length and width dimensions.
可选的,一种具体实现方式中,电子设备在接收到全屏显示指令时,可以确定视频窗口的窗口大小为全屏大小,即可以确定视频窗口的窗口大小为电子设备的显示屏幕的大小。Optionally, in a specific implementation manner, when the electronic device receives the full-screen display instruction, it can determine that the window size of the video window is the full-screen size, and then it can be determined that the window size of the video window is the size of the display screen of the electronic device.
S202:将电子设备的系统分辨率调整为与窗口大小对应的目标系统分辨率;S202: Adjust the system resolution of the electronic device to the target system resolution corresponding to the window size;
在执行完上述步骤S201,确定视频窗口的窗口大小后,电子设备便可以继续执行上述步骤S202,将电子设备的系统分辨率调整为与窗口大小对应的目标系统分辨率。After performing the above step S201 and determining the window size of the video window, the electronic device can continue to perform the above step S202 to adjust the system resolution of the electronic device to the target system resolution corresponding to the window size.
S203:按照窗口大小对应的目标系统分辨率显示视频窗口的画面。S203: Display the picture of the video window according to the target system resolution corresponding to the window size.
在执行完上述步骤S202,将电子设备的系统分辨率调整为与所确定的窗口大小对应的目标系统分辨率后,电子设备便可以按照窗口大小对应的目标系统分辨率显示视频窗口的画面。After performing the above step S202, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the determined window size, the electronic device can display the picture of the video window according to the target system resolution corresponding to the window size.
下面,对上述步骤S201,确定视频窗口的窗口大小,进行具体说明:Next, the above step S201, determining the window size of the video window, will be specifically described:
根据实际应用中,视频窗口的不同显示状态,电子设备可以在不同时刻执行上述步骤S201,以得到视频窗口的窗口大小。According to different display states of the video window in actual applications, the electronic device may execute the above step S201 at different times to obtain the window size of the video window.
基于此,可选的,一种具体实现方式中,与窗口大小对应的目标系统分辨率可以为:在窗口大小下,用于保证电子设备的CPU负载满足目标负载条件的系统分辨率。进而,上述步骤S201,可以包括如下步骤:Based on this, optionally, in a specific implementation manner, the target system resolution corresponding to the window size may be: under the window size, the system resolution used to ensure that the CPU load of the electronic device meets the target load condition. Furthermore, the above step S201 may include the following steps:
在开启视频窗口时,确定视频窗口的窗口大小;When opening the video window, determine the window size of the video window;
或者,or,
在视频窗口中开启视频播放时,确定视频窗口的窗口大小;When starting video playback in the video window, determine the window size of the video window;
或者,or,
在获取到针对视频窗口的窗口由小至大的调整指令的情况下,确定响应该窗口由小至大的调整指令后的视频窗口的窗口大小。In the case of obtaining an adjustment instruction for the window from small to large for the video window, the window size of the video window after responding to the adjustment instruction for the window from small to large is determined.
也就是说,在本具体实现方式中,电子设备可以在三种情况下,执行上述步骤S201,其中,三种情况下,电子设备的具体实施方式如下:That is to say, in this specific implementation manner, the electronic device can perform the above step S201 in three cases, wherein, in the three cases, the specific implementation manner of the electronic device is as follows:
第一种情况,开启视频窗口;具体的,在该种情况下,电子设备可以在视频窗口开启时,确定所开启的视频窗口的窗口大小。In the first case, the video window is opened; specifically, in this case, the electronic device can determine the window size of the opened video window when the video window is opened.
一个视频窗口从开始显示到结束显示可以包括三个过程:开启视频窗口、视频窗口显示视频画面和关闭视频窗口。显然,在开启视频窗口后,视频窗口开始显示视频画面,从而,电子设备便需要对该视频窗口所显示的视频画面进行实时刷新和渲染,因此,在开启视频窗口时,电子设备便需要确定是否需要对系统分辨率进行调整。基于此,电子设备便可以在视频窗口开启时,确定视频窗口的窗口大小。A video window can include three processes from the beginning of the display to the end of the display: opening the video window, displaying the video image in the video window, and closing the video window. Obviously, after the video window is opened, the video window starts to display the video image. Therefore, the electronic device needs to refresh and render the video image displayed in the video window in real time. Therefore, when the video window is opened, the electronic device needs to determine whether Need to adjust the system resolution. Based on this, the electronic device can determine the window size of the video window when the video window is opened.
其中,可选的,电子设备可以预先设置视频窗口开启时的默认显示方式,即预先设置视频窗口启动时所采用的显示方式。这样,便可以在开启视频窗口时,直接确定视频窗口的窗口大小。Optionally, the electronic device may preset a default display mode when the video window is opened, that is, preset a display mode used when the video window is started. In this way, the window size of the video window can be directly determined when the video window is opened.
第二种情况,视频窗口中开启视频播放;具体的,在该种情况下,电子设备可以在视 频窗口中开启视频播放时,确定视频窗口的窗口大小,即在视频窗口中开始显示视频画面时,确定视频窗口的窗口大小。In the second case, video playback is started in the video window; specifically, in this case, the electronic device can determine the window size of the video window when starting video playback in the video window, that is, when the video screen starts to be displayed in the video window To determine the window size of the video window.
可以理解的,在很多情况下,存在视频窗口开启,但是视频播放未开启的情况,即存在电子设备的显示屏幕中虽然存在视频窗口,但是该视频窗口未显示有视频画面的情况,或者,存在电子设备的显示屏幕中虽然存在视频窗口,但是该视频窗口中所显示的视频画面保持不变的情况,即视频窗口所播放的视频画面处于播放暂停状态。那么,在这种情况下,虽然视频窗口开启,但是由于视频窗口中未显示有视频画面,或者,所播放的视频画面处于播放暂停状态,因此,电子设备并不需要对视频窗口所显示的视频画面进行实时刷新和渲染,进而,在这种情况下,电子设备可以确定不需要对系统分辨率进行调整,从而,电子设备可以不对视频窗口的窗口大小进行确定。进而,当视频窗口中开启视频播放时,由于视频窗口中所显示的视频画面将可能发生持续变化,因此,电子设备可能开始需要对视频窗口中所显示的视频画面进行实时刷新和渲染,从而,电子设备便需要确定是否需要对系统分辨率进行调整。基于此,在检测到视频窗口中视频开启播放时,电子设备可以确定视频窗口的窗口大小。It is understandable that in many cases, the video window is opened but the video playback is not started, that is, although there is a video window on the display screen of the electronic device, the video window does not display a video screen, or there is Although there is a video window on the display screen of the electronic device, the video picture displayed in the video window remains unchanged, that is, the video picture played by the video window is in a playback pause state. Then, in this case, although the video window is open, because there is no video screen displayed in the video window, or the played video screen is in a playback pause state, the electronic device does not need to display the video in the video window. The screen is refreshed and rendered in real time. Furthermore, in this case, the electronic device may determine that the system resolution does not need to be adjusted, and therefore, the electronic device may not determine the window size of the video window. Furthermore, when video playback is started in the video window, since the video screen displayed in the video window may continue to change, the electronic device may start to need to refresh and render the video screen displayed in the video window in real time, thus, The electronic device needs to determine whether the system resolution needs to be adjusted. Based on this, when detecting that the video in the video window is started to play, the electronic device can determine the window size of the video window.
第三种情况,获取到针对视频窗口的窗口由小至大的调整指令;具体的,在该种情况下,电子设备首先响应所获取到的调整指令,进而,确定响应该调整指令后所得到的视频窗口的窗口大小。In the third case, an adjustment instruction for the window of the video window from small to large is obtained; specifically, in this case, the electronic device first responds to the obtained adjustment instruction, and then determines the result obtained after responding to the adjustment instruction The window size of the video window.
在电子设备的显示屏幕显示视频窗口的过程中,用户可以随时改变视频窗口的窗口大小。其中,当视频窗口的窗口大小由小至大变化时,在窗口大小变化完成后,电子设备在对视频窗口所显示的视频画面进行实时刷新和渲染时,所需刷新和渲染的像素点的数量将增加,从而,电子设备的CPU负载将随之增加。基于此,在这种情况下,为了保证视频窗口所显示的视频画面的显示效果,电子设备需要对系统分辨率进行调整,以使CPU负载可以满足视频窗口的画面实时刷新和渲染的需求,即保证电子设备的CPU负载满足目标负载条件。目标负载条件包括:能够使得电子设备的CPU负载可以满足对视频窗口所显示的视频画面进行实时刷新和渲染的需求的条件。In the process of displaying the video window on the display screen of the electronic device, the user can change the window size of the video window at any time. Among them, when the window size of the video window changes from small to large, after the window size change is completed, when the electronic device refreshes and renders the video screen displayed in the video window in real time, the number of pixels that need to be refreshed and rendered Will increase, and thus, the CPU load of the electronic device will increase accordingly. Based on this, in this case, in order to ensure the display effect of the video screen displayed by the video window, the electronic device needs to adjust the system resolution so that the CPU load can meet the real-time refresh and rendering requirements of the video window. Ensure that the CPU load of the electronic device meets the target load condition. The target load conditions include conditions that enable the CPU load of the electronic device to meet the requirements for real-time refreshing and rendering of the video screen displayed by the video window.
其中,可选的,上述目标负载条件可以是:小于目标负载阈值;也可以是:处于目标负载范围内。Wherein, optionally, the foregoing target load condition may be: less than a target load threshold; or: within a target load range.
可选的,目标负载阈值包括:电子设备在满足对视频窗口所显示的视频画面进行实时刷新和渲染的需求时所能承受的最大CPU负载阈值。Optionally, the target load threshold includes: the maximum CPU load threshold that the electronic device can bear when meeting the requirements for real-time refreshing and rendering of the video screen displayed in the video window.
其中,目标负载条件可以是预设在电子设备中的条件,具体可以是小于预设负载阈值,也可以是处于预设负载范围内。Wherein, the target load condition may be a condition preset in the electronic device, and specifically may be less than a preset load threshold, or may be within a preset load range.
当然,该目标负载条件还可以是其他能够使得电子设备的CPU负载可以满足对视频窗口所显示的视频画面进行实时刷新和渲染的需求,从而,提高视频窗口所显示的视频画面的显示效果的条件,这都是合理的。Of course, the target load condition can also be other conditions that enable the CPU load of the electronic device to meet the requirements for real-time refreshing and rendering of the video screen displayed by the video window, thereby improving the display effect of the video screen displayed by the video window , This is all reasonable.
这样,在获取到针对视频窗口的窗口由小至大的调整指令的情况下,电子设备便可以确定响应窗口由小至大的调整指令后的视频窗口的窗口大小。In this way, in the case of obtaining the small to large adjustment instruction for the window of the video window, the electronic device can determine the window size of the video window in response to the small to large adjustment instruction of the window.
其中,可选的,在视频显示过程中,上述针对视频窗口的窗口由小至大的调整指令可以为针对视频窗口的由小画面显示至全屏显示的切换指令。Optionally, during the video display process, the above-mentioned adjustment instruction for the window of the video window from small to large may be a switch instruction for the video window from small screen display to full screen display.
例如,在进行视频通话时,当用户想要在电子设备中进行本地操作如在电子画板中进行书写时,便可以将当前全屏显示的视频窗口切换为小窗口显示;又例如,当用户想要更清晰地观看视频窗口所显示的视频画面中通话对象的表情时,便可以将当前小窗口显示的视频窗口切换为全屏显示。For example, during a video call, when the user wants to perform local operations in the electronic device, such as writing in an electronic drawing board, the video window currently displayed in full screen can be switched to a small window display; for another example, when the user wants When viewing the expression of the caller in the video screen displayed in the video window more clearly, you can switch the video window currently displayed in the small window to full-screen display.
显然,当视频窗口由小窗口显示切换至全屏显示时,视频窗口的大小将由小变大,从而,电子设备可以确定切换完成后的电子设备的窗口大小。Obviously, when the video window is switched from small window display to full screen display, the size of the video window will change from small to large, so that the electronic device can determine the window size of the electronic device after the switching is completed.
这样,在本具体实现方式中,由于与窗口大小对应的目标系统分辨率为在窗口大小下,用于保证电子设备的CPU负载满足目标负载条件的系统分辨率。因此,在将电子设备的系统分辨率调整为与视频窗口的窗口大小对应的目标系统分辨率后,电子设备便可以在该窗口大小下,流畅地对视频窗口所显示的视频画面进行实时刷新和渲染,从而,提高视频窗口所显示的视频画面的显示效果。In this way, in this specific implementation manner, since the target system resolution corresponding to the window size is the system resolution used to ensure that the CPU load of the electronic device meets the target load condition under the window size. Therefore, after adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size of the video window, the electronic device can smoothly refresh and refresh the video screen displayed in the video window in real time under the window size. Rendering, thereby improving the display effect of the video screen displayed in the video window.
下面,对上述步骤S202,将电子设备的系统分辨率调整为与窗口大小对应的目标系统分辨率,进行具体说明。Hereinafter, the above step S202 of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size will be described in detail.
可选的,一种具体实现方式中,与窗口大小对应的目标系统分辨率可以为:在窗口大小下,用于保证电子设备的CPU负载满足目标负载条件的系统分辨率。这样,在将电子设备的系统分辨率调整为与视频窗口的窗口大小对应的目标系统分辨率后,电子设备便可以在该窗口大小下,流畅地对视频窗口所显示的视频画面进行实时刷新和渲染,从而,提高视频窗口所显示的视频画面的显示效果。Optionally, in a specific implementation manner, the target system resolution corresponding to the window size may be: under the window size, the system resolution used to ensure that the CPU load of the electronic device meets the target load condition. In this way, after adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size of the video window, the electronic device can smoothly refresh and refresh the video screen displayed in the video window in real time under the window size. Rendering, thereby improving the display effect of the video screen displayed in the video window.
其中,可选的,在确定视频窗口的窗口大小与电子设备的显示屏幕的尺寸大小相同的情况下,即在确定视频窗口的窗口大小为全屏的情况下,可以将电子设备的系统分辨率调整为与全屏对应的目标系统分辨率。Optionally, when it is determined that the window size of the video window is the same as the size of the display screen of the electronic device, that is, when the window size of the video window is determined to be the full screen, the system resolution of the electronic device can be adjusted It is the target system resolution corresponding to the full screen.
较优地,可以只在确定视频窗口的窗口大小为全屏的情况下,将电子设备的系统分辨率调整为与全屏对应的目标系统分辨率。Preferably, the system resolution of the electronic device may be adjusted to the target system resolution corresponding to the full screen only when the window size of the video window is determined to be the full screen.
需要说明的是,调整电子设备的系统分辨率可能会导致电子设备的操作界面发生变形,例如,操作界面中的图标大小或者图标的长宽比例发生变化等,而当只在视频窗口的窗口大小为全屏的情况下调整系统分辨率时,由于视频窗口占据了电子设备的显示屏幕的全部区域,因此,用户只可以看到全屏显示的视频窗口中所显示的视频画面,而并不会看到电子设备的操作界面,从而,即使电子设备的操作界面因调整了系统分辨率而发生变形,用户也不会感知到,从而可以提升用户体验感。It should be noted that adjusting the system resolution of an electronic device may cause the operation interface of the electronic device to be deformed. For example, the size of the icon in the operation interface or the aspect ratio of the icon changes, etc., and when it is only in the window size of the video window When adjusting the system resolution for full screen, since the video window occupies the entire area of the display screen of the electronic device, the user can only see the video displayed in the full screen video window, but not The operation interface of the electronic device, therefore, even if the operation interface of the electronic device is deformed due to the adjustment of the system resolution, the user will not perceive it, so that the user experience can be improved.
可选的,在本具体实现方式的一种实施例中,如图3(a)所示,上述步骤S202可以包括如下步骤:Optionally, in an embodiment of this specific implementation, as shown in FIG. 3(a), the foregoing step S202 may include the following steps:
S202A:根据预设的窗口大小与系统分辨率的对应关系,将电子设备的系统分辨率降低为与窗口大小对应的目标系统分辨率。S202A: Decrease the system resolution of the electronic device to the target system resolution corresponding to the window size according to the preset correspondence between the window size and the system resolution.
具体的,可以预先确定视频窗口处于不同的窗口大小时,能够保证电子设备的CPU负载满足目标负载条件的系统分辨率,从而,建立窗口大小与系统分辨率的对应关系,并将 该对应关系记录在电子设备中。这样,当确定出视频窗口的窗口大小后,电子设备便可以从该对应关系中,直接读取所确定的窗口大小对应的目标系统分辨率。Specifically, when the video windows are in different window sizes, the system resolution that can ensure that the CPU load of the electronic device meets the target load condition can be determined in advance, so that the corresponding relationship between the window size and the system resolution is established, and the corresponding relationship is recorded In electronic equipment. In this way, after the window size of the video window is determined, the electronic device can directly read the target system resolution corresponding to the determined window size from the corresponding relationship.
其中,可选的,在确定上述对应关系时,可以根据电子设备的CPU型号及各项参数,计算视频窗口处于不同的窗口大小时,能够保证电子设备的CPU的负载满足目标负载条件的系统分辨率;Optionally, when determining the above-mentioned corresponding relationship, according to the CPU model and various parameters of the electronic device, it can be calculated that when the video window is in different window sizes, it can ensure that the CPU load of the electronic device meets the system resolution of the target load condition. rate;
可选的,在确定上述对应关系时,可以根据视频窗口所显示的视频画面的分辨率(或码流分辨率)确定窗口大小与系统分辨率的对应关系。Optionally, when determining the above-mentioned corresponding relationship, the corresponding relationship between the window size and the system resolution may be determined according to the resolution of the video screen displayed in the video window (or the resolution of the code stream).
具体的,如果视频窗口所显示的视频画面的分辨率(或码流分辨率)小于电子设备所能提供的最大系统分辨率,则可以设定:当视频窗口的窗口大小达到预设大小时,将视频窗口所显示的视频画面的分辨率(或码流分辨率)确定为该窗口大小对应的系统分辨率。Specifically, if the resolution (or stream resolution) of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide, you can set: when the window size of the video window reaches the preset size, Determine the resolution (or stream resolution) of the video screen displayed in the video window as the system resolution corresponding to the window size.
可选的,当视频窗口的窗口大小未达到上述预设大小时,可以将电子设备所能提供的最大系统分辨率确定为该窗口大小对应的系统分辨率。Optionally, when the window size of the video window does not reach the aforementioned preset size, the maximum system resolution that the electronic device can provide may be determined as the system resolution corresponding to the window size.
例如,智能交互一体机等电子设备所能提供的最大系统分辨率为4K分辨率,视频窗口中的视频画面分辨率为1920*1080,简称1080P。则可以将视频窗口的预设大小设定为上述智能交互一体机等电子设备的显示屏幕大小的50%,从而,当视频窗口的窗口大小达到上述智能交互一体机等电子设备的显示屏幕大小的50%时,将视频窗口的窗口大小对应的系统分辨率确定为1080P;当视频窗口的窗口大小未达到上述智能交互一体机等电子设备的显示屏幕大小的50%时,将视频窗口的窗口大小对应的系统分辨率确定为4K分辨率。For example, the maximum system resolution that electronic devices such as smart interactive all-in-one machines can provide is 4K resolution, and the video screen resolution in the video window is 1920*1080, which is referred to as 1080P. Then the preset size of the video window can be set to 50% of the display screen size of the above-mentioned smart interactive all-in-one electronic device, so that when the window size of the video window reaches the size of the display screen of the above-mentioned smart interactive all-in-one electronic device When 50%, the system resolution corresponding to the window size of the video window is determined to be 1080P; when the window size of the video window does not reach 50% of the display screen size of the above-mentioned smart interactive all-in-one machine and other electronic devices, the window size of the video window The corresponding system resolution is determined to be 4K resolution.
其中,可选的,对于视频窗口的显示方法包括小画面显示和全屏显示的电子设备而言,在根据视频窗口所显示的视频画面的分辨率(或码流分辨率)确定窗口大小与系统分辨率的对应关系时,上述预设大小可以为:视频窗口为全屏显示时,视频窗口的窗口大小。Optionally, for electronic devices that display video windows including small-screen display and full-screen display, the window size and system resolution are determined according to the resolution (or stream resolution) of the video screen displayed in the video window. For the corresponding relationship of the video rate, the aforementioned preset size may be: the window size of the video window when the video window is displayed in full screen.
也就是说,在视频窗口为全屏显示时,确定视频窗口的窗口大小对应的系统分辨率为:视频画面的分辨率;That is to say, when the video window is displayed in full screen, the system resolution corresponding to the window size of the video window is determined as: the resolution of the video screen;
而在视频窗口为小窗口显示时,确定视频窗口的窗口大小对应的分辨率为:电子设备所提供的最大系统分辨率。When the video window is displayed as a small window, it is determined that the resolution corresponding to the window size of the video window is: the maximum system resolution provided by the electronic device.
例如,上述智能交互一体机等电子设备中视频窗口的显示方式包括小画面显示和全屏显示,则可以设定:当视频窗口的显示方式为小画面显示时,将视频窗口的窗口大小对应的系统分辨率确定为电子设备的系统初始分辨率或电子设备所能提供的最大分辨率,例如4K分辨率;当视频窗口的显示方式为全屏显示时,将视频窗口的窗口大小对应的系统分辨率设定为视频窗口所显示的视频画面的分辨率(或码流分辨率),例如为1080P。For example, the display mode of the video window in the above-mentioned smart interactive all-in-one electronic device includes small screen display and full screen display, you can set: when the display mode of the video window is small screen display, the system corresponding to the window size of the video window The resolution is determined as the initial system resolution of the electronic device or the maximum resolution that the electronic device can provide, such as 4K resolution; when the display mode of the video window is full-screen display, set the system resolution corresponding to the window size of the video window Set as the resolution (or stream resolution) of the video screen displayed in the video window, for example, 1080P.
这样,在视频窗口全屏显示时,将电子设备的系统分辨率调整为视频窗口所显示的视频画面的分辨率(或码流分辨率),此时,视频窗口所显示的视频画面的分辨率并未下降,但是降低了电子设备的系统分辨率,从而,可以减少电子设备对视频窗口所显示的视频画面执行解码、刷新和渲染等操作时所消耗的CPU资源,提升视频窗口所显示的视频画面的流畅度,提升视频窗口所显示的视频画面的显示效果。In this way, when the video window is displayed in full screen, the system resolution of the electronic device is adjusted to the resolution (or stream resolution) of the video screen displayed in the video window. At this time, the resolution of the video screen displayed in the video window does not match It does not drop, but reduces the system resolution of the electronic device, thereby reducing the CPU resources consumed by the electronic device when performing operations such as decoding, refreshing, and rendering the video screen displayed in the video window, and improves the video screen displayed in the video window The smoothness of the video window improves the display effect of the video screen displayed in the video window.
并且,在视频窗口全屏显示时,由于视频窗口占据了电子设备的显示屏幕的全部区域,因此,用户只可以看到全屏显示的视频窗口,并不会看到电子设备的操作界面。这样,即 使电子设备的操作界面因调整了系统分辨率而发生变形,用户也不会感知到,从而可以提升用户体验感;此外,只在视频窗口全屏显示时,降低电子设备的系统分辨率,可以使得在除全屏显示外的小画面显示视频窗口时,使用电子设备所能提供的最大系统分辨率,从而,在除全屏显示外的小画面显示视频窗口时,使得用户在对电子设备执行其他操作(例如,在电子画板中进行书写)时,可以看到更清晰的操作画面;同时,可以使得在除全屏显示外的小画面显示视频窗口时,电子设备的操作界面不会出现因修改系统分辨率而变形的现象。Moreover, when the video window is displayed in full screen, since the video window occupies the entire area of the display screen of the electronic device, the user can only see the video window displayed in full screen, and not the operation interface of the electronic device. In this way, even if the operation interface of the electronic device is deformed due to the adjustment of the system resolution, the user will not perceive it, which can improve the user experience; in addition, the system resolution of the electronic device is reduced only when the video window is displayed in full screen, The maximum system resolution provided by the electronic device can be used when the video window is displayed on a small screen other than the full-screen display, so that when the video window is displayed on a small screen other than the full-screen display, the user can perform other tasks on the electronic device. During operation (for example, writing in the electronic drawing board), you can see a clearer operation screen; at the same time, it can make the operation interface of the electronic device not appear when the video window is displayed on a small screen except the full screen display. The phenomenon of distortion due to resolution.
可选的,在本具体实现方式的另一种实施例中,如图3(b)所示,上述步骤S202便可以包括如下步骤:Optionally, in another embodiment of this specific implementation, as shown in FIG. 3(b), the foregoing step S202 may include the following steps:
S202B:按照预设分辨率调整量,降低电子设备的系统分辨率,直至电子设备的CPU负载满足目标负载条件。S202B: Decrease the system resolution of the electronic device according to the preset resolution adjustment amount until the CPU load of the electronic device meets the target load condition.
在本实施例中,视频窗口的窗口大小,是电子设备在开启视频窗口时,或者,在视频窗口中开启视频播放时,又或者,在获取到针对视频窗口的窗口由小至大的调整指令的情况下,所确定的,因此,为了保证电子设备的CPU负载满足目标负载条件,可以降低电子设备的系统分辨率。In this embodiment, the window size of the video window is when the electronic device opens the video window, or when the video playback is started in the video window, or when the window size adjustment instruction for the video window is obtained from small to large Therefore, in order to ensure that the CPU load of the electronic device meets the target load condition, the system resolution of the electronic device can be reduced.
具体的,为了在保证电子设备的CPU负载满足目标负载条件的同时,显示屏幕还可以具有较高的清晰度,电子设备可以按照预设分辨率调整量,逐步降低电子设备的系统分辨率,直至电子设备的CPU负载满足目标负载条件。Specifically, in order to ensure that the CPU load of the electronic device meets the target load condition, the display screen can also have a higher definition, the electronic device can gradually reduce the system resolution of the electronic device according to the preset resolution adjustment amount, until The CPU load of the electronic device satisfies the target load condition.
其中,可选的,在每次按照预设分辨率调整量,降低系统分辨率后,电子设备可以计算电子设备当前时刻的CPU负载,并检测该CPU负载是否满足目标负载条件。进而,当检测结果为是时,则停止降低系统分辨率,否则,便可以再次按照预设分辨率调整量,降低系统分辨率,并重复上述计算和检测过程,直至电子设备的CPU负载满足目标负载条件。Optionally, after the system resolution is reduced by the preset resolution adjustment amount each time, the electronic device may calculate the current CPU load of the electronic device and detect whether the CPU load meets the target load condition. Furthermore, when the detection result is yes, stop reducing the system resolution, otherwise, you can adjust the preset resolution again to reduce the system resolution, and repeat the above calculation and detection process until the CPU load of the electronic device meets the target Load conditions.
可以理解的,在未执行上述步骤S202,将电子设备的系统分辨率调整为与所确定的窗口大小对应的目标系统分辨率之前,电子设备是采用某一系统分辨率显示自身的显示屏幕中的内容的。It is understandable that before the above step S202 is performed to adjust the system resolution of the electronic device to the target system resolution corresponding to the determined window size, the electronic device uses a certain system resolution to display its own display screen. contents.
基于此,可选的,一种具体实现方式中,在将电子设备的系统分辨率调整为与所确定的窗口大小对应的目标系统分辨率之前,电子设备的系统分辨率可以为第一系统分辨率,其中,该第一系统分辨率可以包括:电子设备的初始系统分辨率或电子设备所能提供的最大系统分辨率。Based on this, optionally, in a specific implementation manner, before the system resolution of the electronic device is adjusted to the target system resolution corresponding to the determined window size, the system resolution of the electronic device may be the first system resolution The first system resolution may include: the initial system resolution of the electronic device or the maximum system resolution that the electronic device can provide.
显然,电子设备的初始系统分辨率可以为不大于电子设备所能提供的最大系统分辨率的系统分辨率。当然,第一系统分辨率也可以是除上述初始系统分辨率和最大系统分辨率以外的其他系统分辨率。Obviously, the initial system resolution of the electronic device may be a system resolution not greater than the maximum system resolution that the electronic device can provide. Of course, the first system resolution may also be other system resolutions besides the aforementioned initial system resolution and maximum system resolution.
进一步的,在开启视频窗口后,或者,在视频窗口中开启视频播放,又或者,在响应调整指令将视频窗口由小至大调整后,视频窗口的显示状态均可以发生更改,从而,电子设备也就可以再次调整系统分辨率。Further, after the video window is opened, or the video playback is started in the video window, or, after the video window is adjusted from small to large in response to the adjustment instruction, the display state of the video window can be changed, so that the electronic device You can adjust the system resolution again.
基于此,在本具体实现方式中,在上述图3(a)和图3(b)所示具体实现方式的基础上,如图4(a)和图4(b)所示,本申请实施例提供的一种视频窗口画面显示方法,还可 以包括如下步骤:Based on this, in this specific implementation, on the basis of the specific implementation shown in Figures 3(a) and 3(b), as shown in Figures 4(a) and 4(b), this application implements The example provides a method for displaying a video window screen, which may also include the following steps:
S204:获取针对视频窗口的状态变更指令;S204: Obtain a state change instruction for the video window;
其中,状态变更指令包括:视频窗口的还原指令、隐藏指令、关闭指令和窗口由大至小的调整指令中的至少一个指令;并且,还原指令为:用于指示将视频窗口的窗口大小还原为响应窗口由小至大的调整指令前的窗口大小的指令。Among them, the state change instruction includes: at least one instruction among the video window restoration instruction, hiding instruction, closing instruction, and window adjustment instruction from large to small; and, the restoration instruction is: used to instruct to restore the window size of the video window to Respond to the instruction of adjusting the size of the window before the instruction from small to large.
S205:将电子设备的系统分辨率调整为第一系统分辨率。S205: Adjust the system resolution of the electronic device to the first system resolution.
显然,当上述状态变更指令为还原指令或者窗口由大至小的调整指令时,电子设备将减小视频窗口的窗口大小;而当上述状态变更指令为关闭指令或隐藏指令时,显示屏幕中将不再显示视频窗口。基于此,在获取到针对视频窗口的状态变更指令时,电子设备在对视频窗口所显示的画面进行实时刷新和渲染时,所刷新和渲染的像素点的个数将减小,或者,电子设备可以不再需要对视频窗口中所显示的画面进行实时刷新和渲染,因此,电子设备的CPU负载将减小。Obviously, when the above state change instruction is a restore instruction or a window size adjustment instruction from large to small, the electronic device will reduce the window size of the video window; and when the above state change instruction is a close instruction or a hide instruction, the display screen will The video window is no longer displayed. Based on this, when the state change instruction for the video window is obtained, when the electronic device refreshes and renders the picture displayed in the video window in real time, the number of refreshed and rendered pixels will be reduced, or the electronic device It is no longer necessary to refresh and render the picture displayed in the video window in real time, and therefore, the CPU load of the electronic device will be reduced.
进一步的,由于在本具体实现方式中,电子设备当前的系统分辨率为执行完上述步骤S202所调整至的系统分辨率,而根据上述对图3(a)和图3(b)所示具体实现方式的说明,电子设备的当前系统分辨率可以为小于电子设备的第一系统分辨率,因此,为了提高电子设备的显示屏幕的清晰度,电子设备可以将系统分辨率还原为该第一系统分辨率。Further, since in this specific implementation, the current system resolution of the electronic device is the system resolution adjusted to after the above step S202 is executed, and according to the above-mentioned specific comparison shown in FIG. 3(a) and FIG. 3(b) Description of the implementation method, the current system resolution of the electronic device can be smaller than the first system resolution of the electronic device. Therefore, in order to improve the definition of the display screen of the electronic device, the electronic device can restore the system resolution to the first system resolution. Resolution.
特别地,在上述状态变更指令为还原指令或者窗口由大至小的调整指令时,在将电子设备的系统分辨率还原为该第一系统分辨率后,还可以按照该第一系统分辨率显示视频窗口所显示的画面。In particular, when the above-mentioned state change command is a restoration command or a window adjustment command from large to small, after restoring the system resolution of the electronic device to the first system resolution, the display can also be displayed in accordance with the first system resolution. The picture displayed in the video window.
其中,在图4(a)和图4(b)所示的具体实现方式的一种实施例中,电子设备在执行上述步骤S202之前,可以记录电子设备的第一系统分辨率,从而,在该实施例中,电子设备在获取到针对视频窗口的状态变更指令后,可以直接读取所记录的电子设备的第一系统分辨率,进而,执行上述步骤S205。Wherein, in an embodiment of the specific implementation shown in FIG. 4(a) and FIG. 4(b), the electronic device may record the first system resolution of the electronic device before performing step S202 above, so that In this embodiment, the electronic device can directly read the recorded first system resolution of the electronic device after acquiring the state change instruction for the video window, and then execute the above-mentioned step S205.
可选的,一种具体实现方式中,在上述图3(a)和图3(b)所示具体实现方式的基础上,如图5(a)和图5(b)所示,本申请实施例提供的一种视频窗口画面显示方法,还可以包括如下步骤:Optionally, in a specific implementation manner, on the basis of the specific implementation manner shown in Figure 3(a) and Figure 3(b), as shown in Figure 5(a) and Figure 5(b), this application The video window screen display method provided by the embodiment may further include the following steps:
S206:获取针对视频窗口的窗口由大至小的调整指令;S206: Obtain a window size adjustment instruction for the video window from large to small;
S207:确定响应窗口由大至小的调整指令后的视频窗口的当前窗口大小;S207: Determine the current window size of the video window after responding to the window adjustment instruction from large to small;
S208:提高电子设备的系统分辨率至第二系统分辨率,S208: Increase the system resolution of the electronic device to the second system resolution,
其中,第二系统分辨率为:在视频窗口的当前窗口大小下,用于保证电子设备的CPU负载满足目标负载条件的最大系统分辨率。Wherein, the second system resolution is: the maximum system resolution used to ensure that the CPU load of the electronic device meets the target load condition under the current window size of the video window.
具体的,在执行完上述步骤S203之后,电子设备可以继续获取到针对视频窗口的窗口由大至小的调整指令,从而,电子设备可以响应该调整指令,减小视频窗口的窗口大小。进而,电子设备便可以确定响应窗口由大至小的调整指令后的视频窗口的当前窗口大小。Specifically, after performing the above step S203, the electronic device can continue to obtain the window size adjustment instruction for the video window from large to small, so that the electronic device can respond to the adjustment instruction to reduce the window size of the video window. Furthermore, the electronic device can determine the current window size of the video window after responding to the window adjustment instruction from large to small.
其中,在将视频窗口的显示方式先由小画面显示转为全屏显示或比小画面的视频窗口更大的窗口显示,再由全屏显示或比小画面的视频窗口更大的窗口显示转化为小画面显示 时,电子设备所获取到的指令可以是:还原指令,则该还原指令可以为一种针对视频窗口的窗口由大至小的调整指令。Among them, the display mode of the video window is first converted from a small screen display to a full screen display or a window display larger than a small screen video window, and then a full screen display or a window display larger than a small screen video window is converted to a small screen display. When the screen is displayed, the instruction acquired by the electronic device may be: a restoration instruction, and the restoration instruction may be a window size adjustment instruction for the video window.
其中,由于在响应窗口由大至小的调整指令后,视频窗口的窗口大小减小,因此,在响应窗口由大至小的调整指令后,电子设备在对视频窗口所显示的的视频画面进行实时刷新和渲染时,所刷新和渲染的像素点的数量将较小。基于此,电子设备便可以将系统分辨率提高至第二系统分辨率。Among them, since the window size of the video window is reduced after responding to the window size adjustment command from large to small, the electronic device performs the operation on the video screen displayed by the video window after responding to the window size adjustment command from large to small. When refreshing and rendering in real time, the number of refreshed and rendered pixels will be smaller. Based on this, the electronic device can increase the system resolution to the second system resolution.
特别地,在将电子设备的系统分辨率提高至该第二系统分辨率后,电子设备还可以按照该第二系统分辨率显示视频窗口的画面。In particular, after the system resolution of the electronic device is increased to the second system resolution, the electronic device may also display the picture of the video window according to the second system resolution.
可选的,可以预先确定视频窗口处于不同的窗口大小时,能够保证电子设备的CPU负载满足目标负载条件的最大系统分辨率,从而,建立窗口大小和第二系统分辨率的对应关系,并将该对应关系记录在电子设备中。这样,在确定响应窗口由大至小的调整指令后的视频窗口的当前窗口大小后,便可以直接从该对应关系中,读取所确定的响应窗口由大至小的调整指令后的视频窗口的当前窗口大小对应的第二系统分辨率,从而,提高电子设备的系统分辨率至第二系统分辨率。Optionally, when the video windows are in different window sizes, the maximum system resolution that can ensure that the CPU load of the electronic device meets the target load conditions can be determined in advance, thereby establishing the correspondence between the window size and the second system resolution, and The corresponding relationship is recorded in the electronic device. In this way, after the current window size of the video window after the adjustment instruction of the response window is determined from large to small, the video window after the determined adjustment instruction of the response window from large to small can be directly read from the corresponding relationship. The current window size corresponds to the second system resolution, thereby increasing the system resolution of the electronic device to the second system resolution.
可选的,电子设备也可以按照预设分辨率调整量,逐步提高系统分辨率,直至电子设备的CPU负载不满足目标负载条件,且电子设备的CPU负载与目标负载阈值的差值最小。Optionally, the electronic device may gradually increase the system resolution according to a preset resolution adjustment amount until the CPU load of the electronic device does not meet the target load condition, and the difference between the CPU load of the electronic device and the target load threshold is the smallest.
其中,在每次按照预设分辨率调整量,提高系统分辨率后,电子设备可以计算电子设备当前时刻的CPU负载,并检测该CPU负载与目标负载阈值的差值是否小于预设分辨率调整量,进而,当检测结果为是时,停止降低系统分辨率,否则,便可以再次按照预设分辨率调整量,提高系统分辨率,并重复上述计算和检测过程,直至电子设备的CPU负载不满足目标负载条件,且电子设备的CPU负载与目标负载阈值的差值最小。Among them, each time the system resolution is increased according to the preset resolution adjustment amount, the electronic device can calculate the current CPU load of the electronic device and detect whether the difference between the CPU load and the target load threshold is less than the preset resolution adjustment Then, when the detection result is yes, stop reducing the system resolution, otherwise, you can adjust the amount according to the preset resolution again to increase the system resolution, and repeat the above calculation and detection process until the CPU load of the electronic device is not The target load condition is met, and the difference between the CPU load of the electronic device and the target load threshold is the smallest.
此外,可以理解的,可以存在视频窗口的窗口大小较大,而电子设备的CPU负载仍然低于目标负载阈值的情况,则在这种情况下,电子设备可以不调整系统分辨率。In addition, it is understandable that there may be a situation where the window size of the video window is relatively large and the CPU load of the electronic device is still lower than the target load threshold. In this case, the electronic device may not adjust the system resolution.
基于此,可选的,一种具体实现方式中,如图6所示,本申请实施例提供的一种视频窗口画面显示方法还可以包括如下步骤:Based on this, optionally, in a specific implementation manner, as shown in FIG. 6, the video window screen display method provided in the embodiment of the present application may further include the following steps:
S201A:检测电子设备的CPU负载是否满足目标负载条件;如果不满足,执行上述步骤S202。S201A: Detect whether the CPU load of the electronic device meets the target load condition; if not, execute the above step S202.
本申请实施例中,在确定视频窗口的窗口大小后,电子设备可以进一步检测电子设备的CPU负载是否满足目标负载条件。例如,检测电子设备的CPU负载是否大于目标负载阈值;又例如,检测电子设备的CPU负载是否位于目标阈值范围等。In the embodiment of the present application, after the window size of the video window is determined, the electronic device can further detect whether the CPU load of the electronic device meets the target load condition. For example, detecting whether the CPU load of the electronic device is greater than the target load threshold; for another example, detecting whether the CPU load of the electronic device is within the target threshold range, and so on.
进而,当检测结果为不满足时,为了保证视频窗口所显示的视频画面的显示效果,电子设备可以将系统分辨率调整为与视频窗口的窗口大小对应的目标系统分辨率。当然,也可以电子设备先检测CPU负载是否大于目标负载阈值,当检测结果为是时,确定视频窗口的窗口大小,并将系统分辨率调整为与视频窗口的窗口大小对应的目标系统分辨率。这样,可以减少调整系统分辨率的次数,从而可以减少电子设备的操作界面发生变形的次数,对于用户而言,所看到的界面布局更加稳定,提升用户体验感。Furthermore, when the detection result is unsatisfactory, in order to ensure the display effect of the video picture displayed by the video window, the electronic device may adjust the system resolution to the target system resolution corresponding to the window size of the video window. Of course, the electronic device may also first detect whether the CPU load is greater than the target load threshold, and when the detection result is yes, determine the window size of the video window, and adjust the system resolution to the target system resolution corresponding to the window size of the video window. In this way, the number of times of adjusting the system resolution can be reduced, thereby reducing the number of times the operation interface of the electronic device is deformed. For the user, the interface layout seen by the user is more stable and the user experience is improved.
相应于上述本申请实施例提供的一种视频窗口画面显示方法,本申请实施例还提供了 一种视频窗口画面显示装置。Corresponding to the video window screen display method provided in the foregoing embodiment of the present application, the embodiment of the present application also provides a video window screen display device.
图7为本申请实施例提供的一种视频窗口画面显示装置的结构示意图,如图7所示,所述装置可以包括如下模块:FIG. 7 is a schematic structural diagram of a video window screen display device provided by an embodiment of the application. As shown in FIG. 7, the device may include the following modules:
第一窗口大小确定模块710,用于确定视频窗口的窗口大小;The first window size determining module 710 is configured to determine the window size of the video window;
第一分辨率调整模块720,用于将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率;The first resolution adjustment module 720 is configured to adjust the system resolution of the electronic device to a target system resolution corresponding to the window size;
画面显示模块730,用于按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面。The screen display module 730 is configured to display the screen of the video window according to the target system resolution corresponding to the window size.
以上可见,应用本申请实施例提供的方案,在进行视频通话、观看直播画面等活动时,可以首先确定视频窗口的窗口大小,进而,将电子设备的系统分辨率调整为与该窗口大小对应的目标系统分辨率。这样,便可以按照所调整到的目标系统分辨率,显示视频窗口所显示的视频画面。基于此,应用本申请实施例提供的方案,可以根据视频窗口的窗口大小适应性地调整电子设备所采用的系统分辨率,以使得电子设备的CPU负载可以满足对视频窗口所显示的视频画面进行实时刷新和渲染的需求,从而,提高视频窗口所显示的视频画面的显示效果。As can be seen from the above, applying the solution provided by the embodiments of this application, when conducting video calls, watching live broadcasts and other activities, you can first determine the window size of the video window, and then adjust the system resolution of the electronic device to correspond to the window size Target system resolution. In this way, the video screen displayed in the video window can be displayed according to the adjusted target system resolution. Based on this, by applying the solution provided by the embodiments of the present application, the system resolution adopted by the electronic device can be adjusted adaptively according to the window size of the video window, so that the CPU load of the electronic device can meet the requirements for processing the video screen displayed by the video window. The need for real-time refreshing and rendering, thereby improving the display effect of the video screen displayed in the video window.
可选的,一种具体实现方式中,所述电子设备包括:具备视频会议及电子画板功能的电子设备;所述电子设备的最大系统分辨率为4K分辨率。Optionally, in a specific implementation manner, the electronic device includes: an electronic device with video conferencing and electronic drawing board functions; the maximum system resolution of the electronic device is 4K resolution.
可选的,一种具体实现方式中,所述第一窗口大小确定模块710具体用于:Optionally, in a specific implementation manner, the first window size determining module 710 is specifically configured to:
在开启所述视频窗口时,确定所述视频窗口的窗口大小;或者,When opening the video window, determine the window size of the video window; or,
在所述视频窗口中开启视频播放时,确定所述视频窗口的窗口大小;或者,When starting video playback in the video window, determine the window size of the video window; or,
在获取到针对所述视频窗口的窗口由小至大的调整指令的情况下,确定响应所述窗口由小至大的调整指令后的视频窗口的窗口大小。In the case of obtaining an adjustment instruction for the window from small to large for the video window, determine the window size of the video window after responding to the instruction for adjusting the window from small to large.
可选的,一种具体实现方式中,所述与所述窗口大小对应的目标系统分辨率为:在所述窗口大小下,用于保证所述电子设备的中央处理器CPU负载满足目标负载条件的系统分辨率。Optionally, in a specific implementation manner, the target system resolution corresponding to the window size is: under the window size, used to ensure that the CPU load of the electronic device meets the target load condition System resolution.
可选的,一种具体实现方式中,所述第一分辨率调整模块720具体用于:Optionally, in a specific implementation manner, the first resolution adjustment module 720 is specifically configured to:
根据预设的窗口大小与系统分辨率的对应关系,将所述电子设备的系统分辨率降低为与所述窗口大小对应的目标系统分辨率;或者,Reduce the system resolution of the electronic device to the target system resolution corresponding to the window size according to the preset correspondence between the window size and the system resolution; or,
按照预设分辨率调整量,降低所述电子设备的系统分辨率,直至所述电子设备的CPU负载小于所述目标负载阈值。Decrease the system resolution of the electronic device according to the preset resolution adjustment amount until the CPU load of the electronic device is less than the target load threshold.
可选的,一种具体实现方式中,所述装置还包括:关系确定模块,用于若所述视频窗口所显示的视频画面的分辨率小于所述电子设备所能提供的最大系统分辨率,在所述视频窗口的窗口大小达到预设大小的情况下,确定所述视频窗口的窗口大小对应的系统分辨率为:所述视频画面的分辨率。Optionally, in a specific implementation manner, the device further includes: a relationship determination module, configured to: if the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide, When the window size of the video window reaches the preset size, it is determined that the system resolution corresponding to the window size of the video window is: the resolution of the video picture.
可选的,一种具体实现方式中,关系确定模块,还用于在所述视频窗口的窗口大小未达到预设大小的情况下,确定所述视频窗口的窗口大小对应的分辨率为:所述电子设备所提供的最大系统分辨率。Optionally, in a specific implementation manner, the relationship determining module is further configured to determine the resolution corresponding to the window size of the video window when the window size of the video window does not reach a preset size: The maximum system resolution provided by the electronic device.
可选的,一种具体实现方式中,所述预设大小为:所述视频窗口为全屏显示时,所述视频窗口的窗口大小。Optionally, in a specific implementation manner, the preset size is: the window size of the video window when the video window is displayed in full screen.
可选的,一种具体实现方式中,在所述将电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率之前,所述电子设备的系统分辨率为第一系统分辨率,所述第一系统分辨率包括:所述电子设备的初始系统分辨率或所述电子设备所提供的最大系统分辨率;所述装置还包括:Optionally, in a specific implementation manner, before the system resolution of the electronic device is adjusted to the target system resolution corresponding to the window size, the system resolution of the electronic device is the first system resolution , The first system resolution includes: the initial system resolution of the electronic device or the maximum system resolution provided by the electronic device; the apparatus further includes:
变更指令获取模块,用于在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,获取针对所述视频窗口的状态变更指令,其中,所述状态变更指令包括:所述视频窗口的还原指令、隐藏指令、关闭指令和窗口由大至小的调整指令中的至少一个指令,所述还原指令为:用于指示将所述视频窗口的窗口大小还原为响应所述窗口由小至大的调整指令前的窗口大小的指令;A change instruction obtaining module, configured to obtain a state change instruction for the video window after the step of displaying the screen of the video window according to the target system resolution corresponding to the window size, wherein the state change instruction Including: at least one of a restoration instruction, a hiding instruction, a closing instruction, and a window adjustment instruction of the video window, and the restoration instruction is used to instruct to restore the window size of the video window to a response An instruction to adjust the size of the window before the instruction from small to large;
第二分辨率调整模块,用于将所述电子设备的系统分辨率调整为所述第一系统分辨率。The second resolution adjustment module is configured to adjust the system resolution of the electronic device to the first system resolution.
可选的,一种具体实现方式中,所述装置还包括:Optionally, in a specific implementation manner, the device further includes:
调整指令获取模块,用于在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,获取针对所述视频窗口的窗口由大至小的调整指令;An adjustment instruction obtaining module, configured to obtain an adjustment instruction for the window of the video window from large to small after the step of displaying the picture of the video window according to the target system resolution corresponding to the window size;
第二窗口大小确定模块,用于确定响应所述窗口由大至小的调整指令后的视频窗口的当前窗口大小;The second window size determining module is used to determine the current window size of the video window after responding to the window size adjustment instruction;
分辨率提高模块,用于提高所述电子设备的系统分辨率至第二系统分辨率,其中,所述第二系统分辨率为:在所述视频窗口的当前窗口大小下,用于保证所述电子设备的CPU负载满足所述目标负载条件的最大系统分辨率。The resolution improvement module is used to increase the system resolution of the electronic device to a second system resolution, where the second system resolution is: under the current window size of the video window, used to ensure that the The maximum system resolution at which the CPU load of the electronic device satisfies the target load condition.
可选的,一种具体实现方式中,所述第一分辨率调整模块720具体用于:Optionally, in a specific implementation manner, the first resolution adjustment module 720 is specifically configured to:
在确定视频窗口的窗口大小为全屏的情况下,将所述电子设备的系统分辨率调整为与所述全屏对应的目标系统分辨率。When it is determined that the window size of the video window is the full screen, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the full screen.
可选的,一种具体实现方式中,所述装置还包括:Optionally, in a specific implementation manner, the device further includes:
负载检测模块,用于在所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤之前,检测所述电子设备的CPU负载是否满足目标负载条件;A load detection module, configured to detect whether the CPU load of the electronic device meets the target load condition before the step of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size;
如果不满足,执行触发所述第一分辨率调整模块。If it is not satisfied, execute the triggering of the first resolution adjustment module.
相应于上述本申请实施例提供的一种视频窗口画面显示方法,本申请实施例还提供了一种电子设备,如图8所示,包括处理器801和存储器803,Corresponding to the video window screen display method provided in the foregoing embodiment of the present application, an embodiment of the present application also provides an electronic device, as shown in FIG. 8, including a processor 801 and a memory 803,
存储器803,用于存放计算机程序;The memory 803 is used to store computer programs;
处理器801,用于执行所述存储器803上所存放的程序时,实现上述本申请实施例提供的一种视频窗口画面显示方法。The processor 801 is configured to implement the video window screen display method provided in the above embodiment of the present application when executing the program stored in the memory 803.
可选的,一种具体实现方式,如图9所示,所述电子设备还包括通信接口802和通信总线804,其中,处理器801,通信接口802,存储器803通过通信总线804完成相互间的通信。Optionally, in a specific implementation manner, as shown in FIG. 9, the electronic device further includes a communication interface 802 and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804. Communication.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用 一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into address bus, data bus, control bus and so on. For ease of representation, the figure is only represented by a thick line, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above-mentioned electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located far away from the foregoing processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
相应于上述本申请实施例提供的一种视频窗口画面显示方法,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,该计算机程序被处理器执行时实现上述本申请实施例提供的任一种视频窗口画面显示方法的步骤。Corresponding to the video window screen display method provided in the above embodiments of the present application, the embodiments of the present application also provide a computer-readable storage medium in which a computer program is stored, and the computer program is executed by a processor. When executed, the steps of any of the video window screen display methods provided in the above embodiments of the present application are implemented.
相应于上述本申请实施例提供的一种视频窗口画面显示方法,本申请实施例还提供了一种包含指令的计算机程序产品,当其被处理器执行时实现上述第一方面提供的任一视频窗口画面显示方法的步骤。Corresponding to the video window screen display method provided by the above embodiments of the present application, the embodiments of the present application also provide a computer program product containing instructions that, when executed by a processor, implement any video provided in the first aspect. The steps of the window screen display method.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例、电子设备实施例、计算机可读存储介质实施例和计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiments, electronic device embodiments, computer-readable storage medium embodiments, and computer program product embodiments, since they are basically similar to the method embodiments, the descriptions are relatively simple, and for relevant details, please refer to the method embodiments. Part of the description can be.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above are only preferred embodiments of this application, and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection of this application. Within the range.

Claims (24)

  1. 一种视频窗口画面显示方法,其特征在于,应用于电子设备,所述方法包括:A method for displaying a video window screen, characterized in that it is applied to an electronic device, and the method includes:
    确定视频窗口的窗口大小;Determine the window size of the video window;
    将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率;Adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size;
    按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面。The picture of the video window is displayed according to the target system resolution corresponding to the window size.
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备包括:具备视频会议及电子画板功能的电子设备;所述电子设备的最大系统分辨率为4K分辨率。The method according to claim 1, wherein the electronic device comprises: an electronic device with video conferencing and electronic drawing board functions; the maximum system resolution of the electronic device is 4K resolution.
  3. 根据权利要求1所述的方法,其特征在于,所述与所述窗口大小对应的目标系统分辨率为:在所述窗口大小下,用于保证所述电子设备的中央处理器CPU负载满足目标负载条件的系统分辨率;The method according to claim 1, wherein the target system resolution corresponding to the window size is: under the window size, used to ensure that the CPU load of the electronic device meets the target System resolution of load conditions;
    所述确定视频窗口的窗口大小的步骤,包括:The step of determining the window size of the video window includes:
    在开启所述视频窗口时,确定所述视频窗口的窗口大小;或者,When opening the video window, determine the window size of the video window; or,
    在所述视频窗口中开启视频播放时,确定所述视频窗口的窗口大小;或者,When starting video playback in the video window, determine the window size of the video window; or,
    在获取到针对所述视频窗口的窗口由小至大的调整指令的情况下,确定响应所述窗口由小至大的调整指令后的视频窗口的窗口大小。In the case of obtaining an adjustment instruction for the window from small to large for the video window, determine the window size of the video window after responding to the instruction for adjusting the window from small to large.
  4. 根据权利要求3所述的方法,其特征在于,所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤,包括:The method according to claim 3, wherein the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size comprises:
    根据预设的窗口大小与系统分辨率的对应关系,将所述电子设备的系统分辨率降低为与所述窗口大小对应的目标系统分辨率;或者,Reduce the system resolution of the electronic device to the target system resolution corresponding to the window size according to the preset correspondence between the window size and the system resolution; or,
    按照预设分辨率调整量,降低所述电子设备的系统分辨率,直至所述电子设备的CPU负载满足所述目标负载条件。According to the preset resolution adjustment amount, the system resolution of the electronic device is reduced until the CPU load of the electronic device meets the target load condition.
  5. 根据权利要求1所述的方法,其特征在于,所述视频窗口所显示的视频画面的分辨率小于所述电子设备所能提供的最大系统分辨率;The method according to claim 1, wherein the resolution of the video picture displayed by the video window is less than the maximum system resolution that the electronic device can provide;
    在所述视频窗口的窗口大小达到预设大小的情况下,所述视频窗口的窗口大小对应的目标系统分辨率为:所述视频画面的分辨率。When the window size of the video window reaches the preset size, the target system resolution corresponding to the window size of the video window is: the resolution of the video screen.
  6. 根据权利要求5所述的方法,其特征在于,所述预设大小为:所述视频窗口为全屏显示时,所述视频窗口的窗口大小;The method according to claim 5, wherein the preset size is: the window size of the video window when the video window is displayed in full screen;
    在所述视频窗口的窗口大小未达到所述预设大小的情况下,所述视频窗口的窗口大小对应的目标系统分辨率为:所述电子设备所提供的最大系统分辨率。In the case that the window size of the video window does not reach the preset size, the target system resolution corresponding to the window size of the video window is: the maximum system resolution provided by the electronic device.
  7. 根据权利要求3所述的方法,其特征在于,在所述将电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率之前,所述电子设备的系统分辨率为第一系统分辨率,所述第一系统分辨率包括:所述电子设备的初始系统分辨率或所述电子设备所提供的最大系统分辨率;The method according to claim 3, wherein before the adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size, the system resolution of the electronic device is the first system resolution Resolution, the first system resolution includes: the initial system resolution of the electronic device or the maximum system resolution provided by the electronic device;
    在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,所述方法还包括:After the step of displaying the picture of the video window according to the target system resolution corresponding to the window size, the method further includes:
    获取针对所述视频窗口的状态变更指令,其中,所述状态变更指令包括:所述视频窗口的还原指令、隐藏指令、关闭指令和窗口由大至小的调整指令中的至少一个指令,所述 还原指令为:用于指示将所述视频窗口的窗口大小还原为响应所述窗口由小至大的调整指令前的窗口大小的指令;Acquire a state change instruction for the video window, where the state change instruction includes: at least one instruction of a restoration instruction, a hiding instruction, a closing instruction, and an adjustment instruction of the window from a large to a small size of the video window, the The restoration instruction is: an instruction for instructing to restore the window size of the video window to the window size before responding to the window size adjustment instruction from small to large;
    将所述电子设备的系统分辨率调整为所述第一系统分辨率。The system resolution of the electronic device is adjusted to the first system resolution.
  8. 根据权利要求3所述的方法,其特征在于,在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,所述方法还包括:The method according to claim 3, wherein after the step of displaying the picture of the video window according to the target system resolution corresponding to the window size, the method further comprises:
    获取针对所述视频窗口的窗口由大至小的调整指令;Obtaining a window size adjustment instruction for the video window from large to small;
    确定响应所述窗口由大至小的调整指令后的视频窗口的当前窗口大小;Determining the current window size of the video window after responding to the window adjustment instruction from large to small;
    提高所述电子设备的系统分辨率至第二系统分辨率,其中,所述第二系统分辨率为:在所述视频窗口的当前窗口大小下,用于保证所述电子设备的CPU负载满足所述目标负载条件的最大系统分辨率。Increase the system resolution of the electronic device to a second system resolution, where the second system resolution is: under the current window size of the video window, used to ensure that the CPU load of the electronic device meets all requirements. The maximum system resolution for the stated target load conditions.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤,包括:The method according to any one of claims 1-8, wherein the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size comprises:
    在确定视频窗口的窗口大小为全屏的情况下,将所述电子设备的系统分辨率调整为与所述全屏对应的目标系统分辨率。When it is determined that the window size of the video window is the full screen, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the full screen.
  10. 根据权利要求1-8任一项所述的方法,其特征在于,在所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤之前,所述方法还包括:The method according to any one of claims 1-8, wherein before the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size, the method Also includes:
    检测所述电子设备的CPU负载是否满足目标负载条件;Detecting whether the CPU load of the electronic device meets the target load condition;
    如果不满足,执行所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤。If not, execute the step of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size.
  11. 一种视频窗口画面显示装置,其特征在于,应用于电子设备,所述装置包括:A video window screen display device, characterized in that it is applied to electronic equipment, and the device includes:
    第一窗口大小确定模块,用于确定视频窗口的窗口大小;The first window size determining module is used to determine the window size of the video window;
    第一分辨率调整模块,用于将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率;A first resolution adjustment module, configured to adjust the system resolution of the electronic device to a target system resolution corresponding to the window size;
    画面显示模块,用于按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面。The picture display module is configured to display the picture of the video window according to the target system resolution corresponding to the window size.
  12. 根据权利要求11所述的装置,其特征在于,所述电子设备包括:具备视频会议及电子画板功能的电子设备;所述电子设备的最大系统分辨率为4K分辨率。The apparatus according to claim 11, wherein the electronic device comprises: an electronic device with video conference and electronic drawing board functions; the maximum system resolution of the electronic device is 4K resolution.
  13. 根据权利要求11所述的装置,其特征在于,所述与所述窗口大小对应的目标系统分辨率为:在所述窗口大小下,用于保证所述电子设备的中央处理器CPU负载满足目标负载条件的系统分辨率;The apparatus according to claim 11, wherein the target system resolution corresponding to the window size is: at the window size, used to ensure that the CPU load of the electronic device meets the target System resolution of load conditions;
    所述第一窗口大小确定模块具体用于:The first window size determining module is specifically configured to:
    在开启所述视频窗口时,确定所述视频窗口的窗口大小;或者,When opening the video window, determine the window size of the video window; or,
    在所述视频窗口中开启视频播放时,确定所述视频窗口的窗口大小;或者,When starting video playback in the video window, determine the window size of the video window; or,
    在获取到针对所述视频窗口的窗口由小至大的调整指令的情况下,确定响应所述窗口由小至大的调整指令后的视频窗口的窗口大小。In the case of obtaining an adjustment instruction for the window from small to large for the video window, determine the window size of the video window after responding to the instruction for adjusting the window from small to large.
  14. 根据权利要求13所述的装置,其特征在于,所述第一分辨率调整模块具体用于:The device according to claim 13, wherein the first resolution adjustment module is specifically configured to:
    根据预设的窗口大小与系统分辨率的对应关系,将所述电子设备的系统分辨率降低为 与所述窗口大小对应的目标系统分辨率;或者,Reduce the system resolution of the electronic device to the target system resolution corresponding to the window size according to the preset correspondence between the window size and the system resolution; or,
    按照预设分辨率调整量,降低所述电子设备的系统分辨率,直至所述电子设备的CPU负载满足所述目标负载条件。According to the preset resolution adjustment amount, the system resolution of the electronic device is reduced until the CPU load of the electronic device meets the target load condition.
  15. 根据权利要求11所述的装置,其特征在于,所述装置还包括:关系确定模块,用于若所述视频窗口所显示的视频画面的分辨率小于所述电子设备所能提供的最大系统分辨率,在所述视频窗口的窗口大小达到预设大小的情况下,确定所述视频窗口的窗口大小对应的目标系统分辨率为:所述视频画面的分辨率。The device according to claim 11, wherein the device further comprises: a relationship determination module, configured to: if the resolution of the video screen displayed by the video window is less than the maximum system resolution that the electronic device can provide When the window size of the video window reaches a preset size, it is determined that the target system resolution corresponding to the window size of the video window is: the resolution of the video screen.
  16. 根据权利要求15所述的装置,其特征在于,所述预设大小为:所述视频窗口为全屏显示时,所述视频窗口的窗口大小;The device according to claim 15, wherein the preset size is: the window size of the video window when the video window is displayed in full screen;
    所述关系确定模块,还用于在所述视频窗口的窗口大小未达到预设大小的情况下,确定所述视频窗口的窗口大小对应的目标系统分辨率为:所述电子设备所提供的最大系统分辨率。The relationship determination module is further configured to determine that the target system resolution corresponding to the window size of the video window is: the maximum resolution provided by the electronic device when the window size of the video window does not reach a preset size System resolution.
  17. 根据权利要求13所述的装置,其特征在于,在所述将电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率之前,所述电子设备的系统分辨率为第一系统分辨率,所述第一系统分辨率包括:所述电子设备的初始系统分辨率或所述电子设备所提供的最大系统分辨率;所述装置还包括:The apparatus according to claim 13, wherein before the system resolution of the electronic device is adjusted to the target system resolution corresponding to the window size, the system resolution of the electronic device is the first system resolution Resolution, the first system resolution includes: the initial system resolution of the electronic device or the maximum system resolution provided by the electronic device; the apparatus further includes:
    变更指令获取模块,用于在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,获取针对所述视频窗口的状态变更指令,其中,所述状态变更指令包括:所述视频窗口的还原指令、隐藏指令、关闭指令和窗口由大至小的调整指令中的至少一个指令,所述还原指令为:用于指示将所述视频窗口的窗口大小还原为响应所述窗口由小至大的调整指令前的窗口大小的指令;A change instruction obtaining module, configured to obtain a state change instruction for the video window after the step of displaying the screen of the video window according to the target system resolution corresponding to the window size, wherein the state change instruction Including: at least one of a restoration instruction, a hiding instruction, a closing instruction, and a window adjustment instruction of the video window, and the restoration instruction is used to instruct to restore the window size of the video window to a response An instruction to adjust the size of the window before the instruction from small to large;
    第二分辨率调整模块,用于将所述电子设备的系统分辨率调整为所述第一系统分辨率。The second resolution adjustment module is configured to adjust the system resolution of the electronic device to the first system resolution.
  18. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    调整指令获取模块,用于在所述按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面的步骤之后,获取针对所述视频窗口的窗口由大至小的调整指令;An adjustment instruction obtaining module, configured to obtain an adjustment instruction for the window of the video window from large to small after the step of displaying the picture of the video window according to the target system resolution corresponding to the window size;
    第二窗口大小确定模块,用于确定响应所述窗口由大至小的调整指令后的视频窗口的当前窗口大小;The second window size determining module is used to determine the current window size of the video window after responding to the window size adjustment instruction;
    分辨率提高模块,用于提高所述电子设备的系统分辨率至第二系统分辨率,其中,所述第二系统分辨率为:在所述视频窗口的当前窗口大小下,用于保证所述电子设备的CPU负载满足所述目标负载条件的最大系统分辨率。The resolution improvement module is used to increase the system resolution of the electronic device to a second system resolution, where the second system resolution is: under the current window size of the video window, used to ensure The maximum system resolution at which the CPU load of the electronic device satisfies the target load condition.
  19. 根据权利要求11-18任一项所述的装置,其特征在于,所述第一分辨率调整模块具体用于:The device according to any one of claims 11-18, wherein the first resolution adjustment module is specifically configured to:
    在确定视频窗口的窗口大小为全屏的情况下,将所述电子设备的系统分辨率调整为与所述全屏对应的目标系统分辨率。When it is determined that the window size of the video window is the full screen, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the full screen.
  20. 根据权利要求11-18任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 11-18, wherein the device further comprises:
    负载检测模块,用于在所述将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率的步骤之前,检测所述电子设备的CPU负载是否满足目标负载条件;A load detection module, configured to detect whether the CPU load of the electronic device meets the target load condition before the step of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size;
    如果不满足,执行触发所述第一分辨率调整模块。If it is not satisfied, execute the triggering of the first resolution adjustment module.
  21. 一种电子设备,其特征在于,包括处理器和存储器;An electronic device, characterized in that it comprises a processor and a memory;
    存储器,用于存放计算机程序;Memory, used to store computer programs;
    处理器,用于执行所述存储器上所存放的程序时,实现权利要求1-10任一所述的方法步骤。The processor is configured to implement the method steps of any one of claims 1-10 when executing the program stored on the memory.
  22. 根据权利要求21所述的电子设备,其特征在于,所述电子设备还包括通信接口和通信总线;其中,所述处理器,所述通信接口,所述存储器通过通信总线完成相互间的通信。21. The electronic device according to claim 21, wherein the electronic device further comprises a communication interface and a communication bus; wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus.
  23. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-10任一所述的方法步骤。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps according to any one of claims 1-10 are realized.
  24. 一种计算机程序产品,其特征在于,当所述计算机程序产品被处理器执行时实现权利要求1-10任一所述的方法步骤。A computer program product, characterized in that, when the computer program product is executed by a processor, the method steps of any one of claims 1-10 are realized.
PCT/CN2020/140063 2019-12-31 2020-12-28 Video window picture displaying method and apparatus WO2021136158A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911409627.1A CN111432261A (en) 2019-12-31 2019-12-31 Video window picture display method and device
CN201911409627.1 2019-12-31

Publications (2)

Publication Number Publication Date
WO2021136158A1 true WO2021136158A1 (en) 2021-07-08
WO2021136158A8 WO2021136158A8 (en) 2021-08-12

Family

ID=71546964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/140063 WO2021136158A1 (en) 2019-12-31 2020-12-28 Video window picture displaying method and apparatus

Country Status (2)

Country Link
CN (1) CN111432261A (en)
WO (1) WO2021136158A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432261A (en) * 2019-12-31 2020-07-17 杭州海康威视数字技术股份有限公司 Video window picture display method and device
CN113691846A (en) * 2020-09-10 2021-11-23 华为终端有限公司 Multi-window screen projection method and electronic equipment
CN113271429A (en) * 2020-09-30 2021-08-17 常熟九城智能科技有限公司 Video conference information processing method and device, electronic equipment and system
CN115917472A (en) * 2020-12-31 2023-04-04 华为技术有限公司 Terminal control method and device and electronic equipment
CN113596584B (en) * 2021-08-11 2023-03-28 抖音视界有限公司 Video playing method, device and storage medium
CN118283407A (en) * 2022-12-29 2024-07-02 华为技术有限公司 Display method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1746843A (en) * 2004-09-08 2006-03-15 英业达股份有限公司 Window and icon set system and method
CN102662593A (en) * 2012-04-16 2012-09-12 华为终端有限公司 Multi-size display method and terminal
CN102681648A (en) * 2012-03-28 2012-09-19 中兴通讯股份有限公司 Large screen terminal power saving method and device
CN103135742A (en) * 2013-01-15 2013-06-05 广东欧珀移动通信有限公司 Method for improving endurance of mobile terminal
CN103295510A (en) * 2012-03-05 2013-09-11 联想(北京)有限公司 Electronic equipment and method for adjusting resolution ratios
WO2017026709A1 (en) * 2015-08-12 2017-02-16 삼성전자 주식회사 Method and device for adjusting resolution of electronic device
CN111432261A (en) * 2019-12-31 2020-07-17 杭州海康威视数字技术股份有限公司 Video window picture display method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100117709A (en) * 2009-04-27 2010-11-04 이노디지털 주식회사 Graphic user interface and display method for the same
KR102454196B1 (en) * 2014-05-27 2022-10-14 삼성전자 주식회사 Method for controlling display and electronic device supporting the same
CN106293047B (en) * 2015-06-26 2020-01-10 微软技术许可有限责任公司 Reducing power consumption of mobile devices by dynamic resolution scaling
CN105139792B (en) * 2015-08-18 2018-04-20 京东方科技集团股份有限公司 Display methods and display device
CN109801940A (en) * 2017-11-17 2019-05-24 上海和辉光电有限公司 A kind of display panel
WO2019212575A1 (en) * 2018-04-30 2019-11-07 Ramzi Khalil Maalouf System, apparatus, and method for optimizing viewing experience on an intelligent terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1746843A (en) * 2004-09-08 2006-03-15 英业达股份有限公司 Window and icon set system and method
CN103295510A (en) * 2012-03-05 2013-09-11 联想(北京)有限公司 Electronic equipment and method for adjusting resolution ratios
CN102681648A (en) * 2012-03-28 2012-09-19 中兴通讯股份有限公司 Large screen terminal power saving method and device
CN102662593A (en) * 2012-04-16 2012-09-12 华为终端有限公司 Multi-size display method and terminal
CN103135742A (en) * 2013-01-15 2013-06-05 广东欧珀移动通信有限公司 Method for improving endurance of mobile terminal
WO2017026709A1 (en) * 2015-08-12 2017-02-16 삼성전자 주식회사 Method and device for adjusting resolution of electronic device
CN111432261A (en) * 2019-12-31 2020-07-17 杭州海康威视数字技术股份有限公司 Video window picture display method and device

Also Published As

Publication number Publication date
WO2021136158A8 (en) 2021-08-12
CN111432261A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
WO2021136158A1 (en) Video window picture displaying method and apparatus
CN113055629B (en) Display device and control method thereof
CN114302195B (en) Display device, external device and play control method
WO2021008424A1 (en) Method and device for image synthesis, electronic apparatus and storage medium
US9826276B2 (en) Method and computing device for performing virtual camera functions during playback of media content
WO2020024580A1 (en) Graphic drawing method and apparatus, device, and storage medium
WO2020249044A1 (en) Method for window-level switching, device, equipment, and storage medium
WO2016082586A1 (en) Webpage update method and apparatus
WO2020224337A1 (en) Split-screen playback method and apparatus for screen-locked video, device, and storage medium
TW201913375A (en) Electronic device and method for adjusting refresh rate of display screen
WO2014187043A1 (en) Application display processing method and apparatus
WO2021244666A1 (en) Video playing control method and apparatus, and computer device and storage medium
US11249630B2 (en) Method, apparatus, terminal device, and storage medium for switching global special effects
CN103888840B (en) A kind of video mobile terminal Real Time Dragging and the method and device for scaling
US20150363091A1 (en) Electronic device and method of controlling same
CN104571802B (en) A kind of information processing method and electronic equipment
TW201421344A (en) User interface generating apparatus and associated method
CN111918099A (en) Video processing method and device, electronic equipment and storage medium
CN113282262A (en) Control method and device for screen projection display picture, mobile terminal and storage medium
JP2011223163A (en) Mobile terminal
US11126399B2 (en) Method and device for displaying sound volume, terminal equipment and storage medium
WO2023160240A1 (en) Screen mirroring control method and apparatus, electronic device, and computer-readable storage medium
WO2023197679A1 (en) Video playing method and apparatus, electronic device and storage medium
TWI699670B (en) Electronic system and method of freezing screen
WO2020224158A1 (en) Editing method, computer-readable storage medium, and terminal

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: 20910884

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: 20910884

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.05.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20910884

Country of ref document: EP

Kind code of ref document: A1