Video window picture display method and device

文档序号:1342041 发布日期:2020-07-17 浏览:8次 中文

阅读说明:本技术 一种视频窗口画面显示方法及装置 (Video window picture display method and device ) 是由 陈乡军 于 2019-12-31 设计创作,主要内容包括:本发明实施例提供了一种视频窗口画面显示方法及装置。该方法应用于电子设备,包括:确定视频窗口的窗口大小;将所述电子设备的系统分辨率调整为与所述窗口大小对应的目标系统分辨率;按照所述窗口大小对应的目标系统分辨率显示所述视频窗口的画面。与现有技术相比,应用本发明实施例提供的方案,能够提高视频窗口的画面显示效果。(The embodiment of the invention provides a method and a device for displaying a video window picture. The method is applied to the electronic equipment and comprises the following steps: determining the window size of a video window; adjusting a system resolution of the electronic device to a target system resolution corresponding to the window size; and displaying the picture of the video window according to the target system resolution corresponding to the window size. Compared with the prior art, the scheme provided by the embodiment of the invention can improve the picture display effect of the video window.)

1. A video window picture display method is applied to electronic equipment, and the method comprises the following steps:

determining the window size of a video window;

adjusting a system resolution of the electronic device to a target system resolution corresponding to the window size;

and displaying the picture of the video window according to the target system resolution corresponding to the window size.

2. The method of claim 1, wherein the electronic device comprises: the electronic equipment has the functions of video conference and electronic drawing board; the maximum system resolution of the electronic device is 4K resolution.

3. The method of claim 1, wherein the target system resolution corresponding to the window size is: under the size of the window, the system resolution ratio is used for ensuring that the CPU load of the central processing unit of the electronic equipment is smaller than a preset load threshold value;

the step of determining the window size of the video window comprises:

when the video window is opened, determining the window size of the video window; alternatively, the first and second electrodes may be,

when video playing is started in the video window, the window size of the video window is determined; alternatively, the first and second electrodes may be,

and under the condition that an adjusting instruction for the video window from small to large is obtained, determining the window size of the video window after the adjusting instruction for the window from small to large is responded.

4. The method of 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:

according to the corresponding relation between the preset video window size and the system resolution, reducing the system resolution of the electronic equipment to the target system resolution corresponding to the window size; alternatively, the first and second electrodes may be,

and reducing the system resolution of the electronic equipment according to the preset resolution adjustment amount until the CPU load of the electronic equipment is smaller than the preset load threshold.

5. The method of claim 3, wherein prior to 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 a first system resolution, the first system resolution comprising: an initial system resolution of the electronic device or a maximum system resolution provided by the electronic device;

after the step of displaying the picture of the video window at the target system resolution corresponding to the window size, the method further comprises:

obtaining a state change instruction for the video window, wherein the state change instruction comprises: at least one of a restoring instruction, a hiding instruction, a closing instruction and a window size adjusting instruction of the video window is as follows: instructions for instructing to reduce the window size of the video window to a window size before responding to the window-from-small-to-large adjustment instruction;

adjusting a system resolution of the electronic device to the first system resolution.

6. The method of claim 3, wherein after the step of displaying the pictures of the video window at the target system resolution corresponding to the window size, the method further comprises:

acquiring a window size-from-large adjustment instruction for the video window;

determining the current window size of the video window after responding to the adjustment instruction of the window from big to small;

increasing a system resolution of the electronic device to a second system resolution, wherein the second system resolution is: and under the current window size of the video window, the maximum system resolution ratio for ensuring that the CPU load of the electronic equipment is smaller than a preset load threshold value is obtained.

7. The method of any of claims 1-6, wherein the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size comprises:

and under the condition that the window size of the video window is determined to be a full screen, adjusting the system resolution of the electronic equipment to a target system resolution corresponding to the full screen.

8. The method of any of claims 1-6, wherein prior to the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size, the method further comprises:

detecting whether the CPU load of the electronic equipment is greater than a preset load threshold value or not;

and if so, executing the step of adjusting the system resolution of the electronic equipment to the target system resolution corresponding to the window size.

9. A video window picture display device applied to an electronic device, the device comprising:

the first window size determining module is used for determining the window size of a video window;

a first resolution adjustment module, configured to adjust a system resolution of the electronic device to a target system resolution corresponding to the window size;

and the picture display module is used for displaying the picture of the video window according to the target system resolution corresponding to the window size.

10. The apparatus of claim 9, wherein the electronic device comprises: the electronic equipment has the functions of video conference and electronic drawing board; the maximum system resolution of the electronic device is 4K resolution.

11. The apparatus of claim 9, wherein the target system resolution corresponding to the window size is: under the size of the window, the system resolution ratio is used for ensuring that the CPU load of the central processing unit of the electronic equipment is smaller than a preset load threshold value;

the first window size determining module is specifically configured to:

when the video window is opened, determining the window size of the video window; alternatively, the first and second electrodes may be,

when video playing is started in the video window, the window size of the video window is determined; alternatively, the first and second electrodes may be,

and under the condition that an adjusting instruction for the video window from small to large is obtained, determining the window size of the video window after the adjusting instruction for the window from small to large is responded.

12. The apparatus of claim 11, wherein the first resolution adjustment module is specifically configured to:

according to the corresponding relation between the preset video window size and the system resolution, reducing the system resolution of the electronic equipment to the target system resolution corresponding to the window size; alternatively, the first and second electrodes may be,

and reducing the system resolution of the electronic equipment according to the preset resolution adjustment amount until the CPU load of the electronic equipment is smaller than the preset load threshold.

13. The apparatus of claim 11, wherein prior to 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 a first system resolution, the first system resolution comprising: an initial system resolution of the electronic device or a maximum system resolution provided by the electronic device; the device further comprises:

a change instruction obtaining module, configured to obtain a state change instruction for the video window after the step of displaying the picture of the video window according to the target system resolution corresponding to the window size, where the state change instruction includes: at least one of a restoring instruction, a hiding instruction, a closing instruction and a window size adjusting instruction of the video window is as follows: instructions for instructing to reduce the window size of the video window to a window size before responding to the window-from-small-to-large adjustment instruction;

and the second resolution adjusting module is used for adjusting the system resolution of the electronic equipment to the first system resolution.

14. The apparatus of claim 11, further comprising:

an adjustment instruction obtaining module, configured to obtain an adjustment instruction for a 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 for determining the current window size of the video window after responding to the adjustment instruction of the window from big to small;

a resolution increasing module, configured to increase a system resolution of the electronic device to a second system resolution, where the second system resolution is: and under the current window size of the video window, the maximum system resolution ratio for ensuring that the CPU load of the electronic equipment is smaller than a preset load threshold value is obtained.

15. The apparatus according to any of claims 9-14, wherein the first resolution adjustment module is specifically configured to:

and under the condition that the window size of the video window is determined to be a full screen, adjusting the system resolution of the electronic equipment to a target system resolution corresponding to the full screen.

16. The apparatus according to any one of claims 9-14, further comprising:

a load detection module, configured to detect whether a CPU load of the electronic device is greater than a preset load threshold before the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size;

if yes, the first resolution adjusting module is triggered.

Technical Field

The invention relates to the technical field of computers, in particular to a method and a device for displaying a video window picture.

Background

With the continuous development of computer technology, various electronic devices play more and more important roles in the work and life of users, and in order to pursue better user experience, the requirements of users on the definition of images and videos provided by the electronic devices are higher and higher. Accordingly, the system resolution provided by the electronic device is also increased. Among them, the system resolution is: a resolution supported by an operating system of the electronic device.

However, when a user uses a video window displayed by the electronic device to perform activities such as video call, live-cast picture watching, and the like, because the electronic device needs to refresh and render the picture in the video window in real time, when the system resolution adopted by the electronic device is high, the load of a CPU of the electronic device may be too high, so that the picture of the video window is jammed seriously, and the picture display effect of the video window is affected.

Disclosure of Invention

The embodiment of the invention aims to provide a method and a device for updating a picture of a video call window, electronic equipment and a storage medium, so as to improve the picture display effect of the video call window. The specific technical scheme is as follows:

in a first aspect, an embodiment of the present invention provides a video window screen display method, which is applied to an electronic device, and the method includes:

determining the window size of a video window;

adjusting a system resolution of the electronic device to a target system resolution corresponding to the window size;

and displaying the picture of the video window according to the target system resolution corresponding to the window size.

Optionally, in a specific implementation manner, the electronic device includes: the electronic equipment has the functions of video conference and electronic drawing board; the maximum system resolution of the electronic device is 4K resolution. .

Optionally, in a specific implementation manner, the target system resolution corresponding to the window size is: under the size of the window, the system resolution ratio is used for ensuring that the CPU load of the central processing unit of the electronic equipment is smaller than a preset load threshold value;

the step of determining the window size of the video window comprises:

when the video window is opened, determining the window size of the video window; alternatively, the first and second electrodes may be,

when video playing is started in the video window, the window size of the video window is determined; alternatively, the first and second electrodes may be,

and under the condition that an adjusting instruction for the video window from small to large is obtained, determining the window size of the video window after the adjusting instruction for the window from small to large is responded.

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 the corresponding relation between the preset video window size and the system resolution, reducing the system resolution of the electronic equipment to the target system resolution corresponding to the window size; alternatively, the first and second electrodes may be,

and reducing the system resolution of the electronic equipment according to the preset resolution adjustment amount until the CPU load of the electronic equipment is smaller than the preset load threshold.

Optionally, in a specific implementation manner, 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 a first system resolution, where the first system resolution includes: an initial system resolution of the electronic device or a maximum system resolution provided by the electronic device;

after the step of displaying the picture of the video window at the target system resolution corresponding to the window size, the method further comprises:

obtaining a state change instruction for the video window, wherein the state change instruction comprises: at least one of a restoring instruction, a hiding instruction, a closing instruction and a window size adjusting instruction of the video window is as follows: instructions for instructing to reduce the window size of the video window to a window size before responding to the window-from-small-to-large adjustment instruction;

adjusting a system resolution of the electronic device to the first system resolution.

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:

acquiring a window size-from-large adjustment instruction for the video window;

determining the current window size of the video window after responding to the adjustment instruction of the window from big to small;

increasing a system resolution of the electronic device to a second system resolution, wherein the second system resolution is: and under the current window size of the video window, the maximum system resolution ratio for ensuring that the CPU load of the electronic equipment is smaller than a preset load threshold value is obtained.

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:

and under the condition that the window size of the video window is determined to be a full screen, adjusting the system resolution of the electronic equipment to a target system resolution corresponding to the full screen.

Optionally, in a specific implementation manner, before the step of adjusting the system resolution of the electronic device to the target system resolution corresponding to the window size, the method further includes:

detecting whether the CPU load of the electronic equipment is greater than a preset load threshold value or not;

and if so, executing the step of adjusting the system resolution of the electronic equipment to the target system resolution corresponding to the window size.

In a second aspect, an embodiment of the present invention provides a video window screen display apparatus applied to an electronic device, where the apparatus includes:

the first window size determining module is used for determining the window size of a video window;

a first resolution adjustment module, configured to adjust a system resolution of the electronic device to a target system resolution corresponding to the window size;

and the picture display module is used for displaying the picture of the video window according to the target system resolution corresponding to the window size.

Optionally, in a specific implementation manner, the electronic device includes: the electronic equipment has the functions of video conference and electronic drawing board; the maximum system resolution of the electronic device is 4K resolution.

Optionally, in a specific implementation manner, the target system resolution corresponding to the window size is: under the size of the window, the system resolution ratio is used for ensuring that the CPU load of the central processing unit of the electronic equipment is smaller than a preset load threshold value;

the first window size determining module is specifically configured to:

when the video window is opened, determining the window size of the video window; alternatively, the first and second electrodes may be,

when video playing is started in the video window, the window size of the video window is determined; alternatively, the first and second electrodes may be,

and under the condition that an adjusting instruction for the video window from small to large is obtained, determining the window size of the video window after the adjusting instruction for the window from small to large is responded.

Optionally, in a specific implementation manner, the first resolution adjusting module is specifically configured to:

according to the corresponding relation between the preset video window size and the system resolution, reducing the system resolution of the electronic equipment to the target system resolution corresponding to the window size; alternatively, the first and second electrodes may be,

and reducing the system resolution of the electronic equipment according to the preset resolution adjustment amount until the CPU load of the electronic equipment is smaller than the preset load threshold.

Optionally, in a specific implementation manner, 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 a first system resolution, where the first system resolution includes: an initial system resolution of the electronic device or a maximum system resolution provided by the electronic device; the device further comprises:

a change instruction obtaining module, configured to obtain a state change instruction for the video window after the step of displaying the picture of the video window according to the target system resolution corresponding to the window size, where the state change instruction includes: at least one of a restoring instruction, a hiding instruction, a closing instruction and a window size adjusting instruction of the video window is as follows: instructions for instructing to reduce the window size of the video window to a window size before responding to the window-from-small-to-large adjustment instruction;

and the second resolution adjusting module is used for adjusting the system resolution of the electronic equipment to the first system resolution.

Optionally, the apparatus further comprises:

an adjustment instruction obtaining module, configured to obtain an adjustment instruction for a 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 for determining the current window size of the video window after responding to the adjustment instruction of the window from big to small;

a resolution increasing module, configured to increase a system resolution of the electronic device to a second system resolution, where the second system resolution is: and under the current window size of the video window, the maximum system resolution ratio for ensuring that the CPU load of the electronic equipment is smaller than a preset load threshold value is obtained.

Optionally, in a specific implementation manner, the first resolution adjusting module is specifically configured to:

and under the condition that the window size of the video window is determined to be a full screen, adjusting the system resolution of the electronic equipment to a target system resolution corresponding to the full screen.

Optionally, in a specific implementation manner, the apparatus further includes:

a load detection module, configured to detect whether a CPU load of the electronic device is greater than a preset load threshold before the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size;

if yes, the first resolution adjusting module is triggered.

In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;

a memory for storing a computer program;

and a processor, configured to implement the steps of any one of the video window screen display methods provided by the first aspect when executing the program stored in the memory.

In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of any one of the frequency window screen display methods provided in the first aspect.

In a fifth aspect, an embodiment of the present invention provides a computer program product containing instructions, which when executed by a processor, implement the steps of any one of the video window screen display methods provided in the first aspect.

As can be seen from the above, with the adoption of the scheme provided by the embodiment of the present invention, when activities such as video call, live view and the like are performed, the window size of the video window can be determined first, and then, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the window size. Thus, the frame of the video window can be displayed according to the adjusted target system resolution. Obviously, in the embodiment of the present invention, the system resolution adopted by the electronic device may be adaptively adjusted according to the window size of the video window, so that the CPU load of the electronic device may meet the requirements of real-time updating and rendering of the picture of the video window, thereby improving the picture display effect of the video window.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1(a) is a schematic diagram of a display screen of an electronic device when a video call window is displayed as a small window;

FIG. 1(b) is a schematic diagram of a display screen of an electronic device when a video call window is displayed in a full screen;

fig. 2 is a schematic flowchart of a video window frame displaying method according to an embodiment of the present invention;

FIG. 3(a) is a flowchart illustrating another method for displaying a video window according to an embodiment of the present invention;

FIG. 3(b) is a flowchart illustrating another method for displaying a video window according to an embodiment of the present invention;

fig. 4(a) is a schematic flowchart of a method for displaying a video window frame according to an embodiment of the present invention based on the specific implementation shown in fig. 3 (a);

fig. 4(b) is a schematic flowchart of a method for displaying a video window frame according to an embodiment of the present invention based on the specific implementation shown in fig. 3 (b);

fig. 5(a) is a schematic flowchart of another video window screen display method according to an embodiment of the present invention based on the specific implementation shown in fig. 3 (a);

fig. 5(b) is a schematic flowchart of a method for displaying a video window frame according to an embodiment of the present invention based on the specific implementation shown in fig. 3 (b);

FIG. 6 is a flowchart illustrating another method for displaying a video window according to an embodiment of the present invention;

fig. 7 is a schematic structural diagram of a video window frame display device according to an embodiment of the present invention;

fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In the related art, when a user uses a video window displayed by an electronic device to perform activities such as video call, live-cast picture watching, and the like, since the electronic device needs to refresh and render pictures in the video window in real time, when a system resolution adopted by the electronic device is high, a load of a CPU of the electronic device may be too high, which affects a picture display effect of the video window.

In order to solve the above technical problem, an embodiment of the present invention provides a method for displaying a video window frame. The method is applied to the electronic equipment and comprises the following steps:

determining the window size of a video window;

adjusting a system resolution of the electronic device to a target system resolution corresponding to the window size;

and displaying the picture of the video window according to the target system resolution corresponding to the window size.

As can be seen from the above, with the adoption of the scheme provided by the embodiment of the present invention, when activities such as video call, live view and the like are performed, the window size of the video window can be determined first, and then, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the window size. Thus, the frame of the video window can be displayed according to the adjusted target system resolution. Obviously, in the embodiment of the present invention, the system resolution adopted by the electronic device may be adaptively adjusted according to the window size of the video window, so that the CPU load of the electronic device may meet the requirements of real-time updating and rendering of the picture of the video window, thereby improving the picture display effect of the video window.

The electronic device may be any electronic device capable of displaying a video window and displaying a video picture in the video window, for example, a mobile phone, a notebook computer, a tablet computer, and the like.

Optionally, in a specific implementation manner, the electronic device executing the video window picture display manner provided by the embodiment of the present invention may be an electronic device with a video conference function and an electronic drawing board function, such as an intelligent interactive all-in-one machine.

The intelligent interactive all-in-one machine has a remote video conference function and an electronic drawing board function; the intelligent interactive all-in-one machine can be as follows: the electronic equipment integrates an operating system, a display screen supporting touch screen operation and a camera; preferably, interactive software integrating interactive functions such as electronic drawing board writing, file demonstration, wireless screen projection and remote video conference can be operated in the intelligent interactive all-in-one machine. The operating system of the intelligent interactive all-in-one machine can be a Windows operating system, and the camera can be an external camera or a built-in camera.

For example, as shown in fig. 1(a), a screen display schematic diagram of a video call window displayed for an electronic device is shown, where the video call window displayed by a small window is suspended at a corner of a display screen, and other areas in the display screen are panels written on an electronic drawing board, and a user can perform touch screen writing; as shown in fig. 1(b), another screen display diagram for displaying a video call window for an electronic device is shown.

Accordingly, in this specific implementation, the maximum system resolution of the electronic device may be 4K resolution. Wherein, 4K resolution means: the number of pixels per line in the horizontal direction reaches or approaches to a resolution of 4096, which is generally: 4096 × 2160, while there are various derivative resolutions for 4K resolution, e.g., Full alert 4K is: 4096 × 3112, Academy 4K is: 3656 2664, the UHDTV standard is: 3840 × 2160, etc., all fall within the category of 4K resolution.

A method for displaying a video window image according to an embodiment of the present invention is specifically described below.

Fig. 2 is a schematic flowchart of a video window screen display method according to an embodiment of the present invention, and as shown in fig. 2, the method may include the following steps:

s201: determining the window size of a video window;

it can be understood that, in the video display process, the electronic device may 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, and based on this, in order to ensure the picture display effect of the video picture under different window sizes, the electronic device may first determine the window size of the video window.

Optionally, the electronic device may display the video window in the display screen through multiple display modes, and the window size of the video window may 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 may be changed. In this way, when it is detected that the display mode for the video window is changed, the electronic device needs to determine the window size of the video window again, so as to determine whether the system resolution needs to be adjusted.

The electronic device may determine the window size of the video window in various ways, which is not limited in the embodiments of the present invention.

Optionally, in a specific implementation manner, the electronic device may detect a display manner of the video window, and thereby determine the window size of the video window according to the detected display manner.

Optionally, in a specific implementation manner, the electronic device may detect a ratio of the display screen occupied by the video window, and determine the window size of the video window according to the ratio and the size of the display screen.

Optionally, in a specific implementation, the electronic device may directly detect the size of the length and the width of the video window, so as to determine the window size of the video window according to the size.

S202: adjusting the system resolution of the electronic equipment to a target system resolution corresponding to the window size;

after the step S201 is executed and the window size of the video window is determined, the electronic device may continue to execute the step S202, and adjust the system resolution of the electronic device to the target system resolution corresponding to the window size.

S203: and displaying the picture of the video window according to the target system resolution corresponding to the window size.

After the step S202 is executed, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the determined window size, and then the electronic device may display the picture of the video window according to the target system resolution corresponding to the window size.

According to different display states of the video window in practical applications, the electronic device may perform the step S201 at different times to obtain the window size of the video window. Based on this, optionally, in a specific implementation manner, the step S201 may include the following steps:

when a video window is opened, determining the window size of the video window; alternatively, the first and second electrodes may be,

when video playing is started in a video window, the window size of the video window is determined; alternatively, the first and second electrodes may be,

and under the condition that an adjusting instruction for the video window from small to large is obtained, determining the window size of the video window after the adjusting instruction for the video window from small to large is responded.

For the first case described above: the electronic device may determine a window size of a video window that is opened when the video window is opened.

A video window may include three processes from beginning to end of display: opening a video window, displaying the video window and closing the video window. Obviously, when the video window is opened, the electronic device may start displaying the picture of the video window, and since the electronic device needs to update and render the picture in real time in the display process, the electronic device may determine whether the system resolution needs to be adjusted when the video window is opened, and thus, the electronic device may determine the window size of the video window when the video window is opened.

Optionally, the electronic device may preset a default starting display mode of the video window, that is, preset a display mode adopted by the starting of the video window. In this way, the window size of the video window is determined when the video window is opened, i.e., when the video window is displayed in the display screen.

For the second case described above: when video playing is started in the video window, the window size of the video window is determined.

It can be understood that, in many cases, there may be a case where a video window is opened but a video picture is not displayed, and at this time, although the video window is opened, the electronic device does not need to display a picture of the video window, and at this time, the electronic device may determine not to adjust the system resolution, and thus, may not determine the window size of the video window. Furthermore, when the video playing is started in the video window, the electronic device starts to update and render the picture in real time, so that the electronic device can determine whether the system resolution needs to be adjusted. Based on this, when it is detected that the video starts playing in the video window, the electronic device may determine the window size of the video window.

For the third case described above: and under the condition that an adjusting instruction for the video window from small to large is obtained, determining the window size of the video window after the adjusting instruction for the video window from small to large is responded.

In the display process of the video window, the user can change the window size of the video window at any time. When the window size of the video window changes from small to large, after the window size changes, the number of pixel points needing to be refreshed and rendered in real time is increased when the electronic equipment displays the picture of the video window, and therefore the CPU load of the electronic equipment is increased accordingly. In this case, in order to ensure the picture display effect of the video window, the electronic device needs to adjust the resolution of the system, so that the CPU load can meet the requirements of real-time updating and rendering of the picture of the video window. Based on this, in the case that an adjustment instruction for the window of the video window from small to large is obtained, the electronic device may determine the window size of the video window after responding to the adjustment instruction for the window from small to large.

Optionally, in the video display process, the instruction for adjusting the window of the video window from small to large may be a switching instruction for switching the video window from small-screen display to full-screen display.

For example, when a user wants to perform local operations in the electronic device, such as writing on an electronic drawing board, while a video call is being performed, a video window displayed in a full screen currently can be switched to be displayed in a small window; for another example, when the user wants to watch the expression of the other party in the video window picture more clearly, the video window displayed by the current small window can be switched 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 be changed from small to large, and thus, the electronic device can determine the window size of the electronic device after the switching is completed.

Optionally, in a specific implementation manner, the target system resolution corresponding to the window size may be: and under the window size, the system resolution ratio is used for ensuring that the CPU load of the electronic equipment is smaller than a preset load threshold value. Therefore, under the size of the window, the electronic equipment can smoothly refresh and render the video window in real time, so that the picture display effect of the video window is improved.

Optionally, under the condition that the window size of the video window is determined to be a full screen, the system resolution of the electronic device may be adjusted to a 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 if the window size of the video window is determined to be the full screen.

It should be noted that adjusting the system resolution of the electronic device may cause the operation interface of the electronic device to deform, and only adjusting the system resolution when the window size of the video window is full screen, because the user only sees the video window displayed in full screen at this time, and does not see the operation interface of the electronic device, even if the operation interface of the electronic device deforms due to the modification of the system resolution, the user does not perceive, thereby improving the user experience.

Accordingly, in an embodiment of this specific implementation manner, as shown in fig. 3(a), the step S202 may include the following steps:

S202A: and reducing the system resolution of the electronic equipment to a target system resolution corresponding to the window size according to the corresponding relation between the preset video window size and the system resolution.

Specifically, the system resolution that can ensure that the load of the CPU of the electronic device is smaller than the preset load threshold value under different window sizes may be predetermined, and the correspondence is recorded in the electronic device. Therefore, after the window size of the video window is determined, the electronic equipment can directly read the target system resolution corresponding to the determined window size from the corresponding relation.

Optionally, when the corresponding relationship is determined, the system resolution that the load of the CPU of the electronic device is smaller than the preset load threshold value can be ensured under the condition of calculating different window sizes according to the model and various parameters of the CPU of the electronic device;

optionally, when determining the correspondence, the correspondence between the size of the video window and the system resolution may be determined according to the video picture resolution (or the code stream resolution) in the video window.

Specifically, if the video picture resolution (or the code stream resolution) in the video window is smaller than the maximum system resolution of the electronic device, it may be set that when the window size of the video window reaches a preset size, the video picture resolution (or the code stream resolution) in the video window may be determined as the system resolution corresponding to the window size; correspondingly, when the window size of the video window does not reach the preset size, the maximum system resolution of the electronic device can be determined as the system resolution corresponding to the window size.

For example, the maximum system resolution of an electronic device such as an intelligent interactive all-in-one machine is 4K resolution, and the resolution of a video picture in a video window is 1920 × 1080, 1080P for short. The preset size may be set to 50% of the display screen size, so that when the window size of the video window reaches 50% of the display screen size, the apparent corresponding system resolution may be determined to be 1080P at this time; accordingly, when the window size of the video window does not reach 50% of the display screen size, the corresponding system resolution may be determined to be 4K resolution.

Further, when the display mode of the video window in the electronic device such as the intelligent interactive all-in-one machine comprises small-screen display and full-screen display, it can be set that when the display mode of the video window is small-screen display, the corresponding system resolution is set as the system initial resolution or the maximum resolution of the electronic device, for example, 4K resolution; when the display mode of the video window is full-screen display, the corresponding system resolution is set to the video picture resolution or the video stream resolution in the video window, for example, 1080P. Therefore, when the video window is displayed in a full screen mode, the system resolution of the electronic equipment is adjusted to be the video picture resolution or the video code stream resolution in the video window, the resolution of video playing is not reduced, but the system resolution of the electronic equipment is reduced, CPU resources consumed by the electronic equipment for decoding, refreshing and rendering can be reduced, the picture display fluency of the video window is improved, and the picture display effect of the video window is improved; meanwhile, the user only sees the video window displayed in the full screen at the moment and does not see the operation interface of the electronic equipment, so that the user cannot perceive the operation interface of the electronic equipment even if the operation interface of the electronic equipment is deformed due to the fact that the resolution of the system is modified, and the user experience is improved; in addition, the system resolution is reduced only when the video window is displayed in the full screen, and the system maximum resolution of the electronic equipment is used when the video window is displayed in a small picture except the full screen, so that a user can see a clearer operation picture when performing other operations (such as writing on an electronic drawing board) on the electronic equipment, and the situation of deformation caused by modifying the system resolution cannot occur in the process.

Accordingly, in another embodiment of this specific implementation manner, as shown in fig. 3(b), the step S202 may include the following steps:

S202B: and reducing the system resolution of the electronic equipment according to the preset resolution adjustment amount until the CPU load of the electronic equipment is smaller than a preset load threshold value.

In this embodiment, the window size of the video window is determined when the electronic device starts the video window, or starts video playing in the video window, or under the condition that an adjustment instruction for the window of the video window from small to large is obtained, so that the system resolution of the electronic device can be reduced in order to ensure that the CPU load of the electronic device is smaller than the preset load threshold.

Specifically, in order to ensure that the CPU load of the electronic device is less than the preset load threshold, and the display screen may have higher definition, the electronic device may gradually 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 preset load threshold.

Optionally, after the system resolution is reduced according to the preset resolution adjustment amount each time, the electronic device may calculate a CPU load of the electronic device at the current time, and detect whether the CPU load is smaller than a preset load threshold. And further, when the detection result is yes, stopping reducing the system resolution, otherwise, adjusting the amount according to the preset resolution again, reducing the system resolution, and repeating the calculation and detection processes until the CPU load of the electronic equipment is smaller than the preset load threshold.

It is understood that, before the step S202 is not executed, the electronic device adjusts the system resolution of the electronic device to the target system resolution corresponding to the determined window size, the electronic device displays the content in its display screen at a certain system resolution. Based on this, optionally, in a specific implementation manner, before adjusting the system resolution of the electronic device to the target system resolution corresponding to the determined window size, the system resolution of the electronic device may be a first system resolution, where the first system resolution may include: an initial system resolution of the electronic device or a maximum system resolution that the electronic device is capable of providing. The first system resolution may also be a system resolution other than the initial system resolution or the maximum system resolution.

It is apparent that the initial system resolution of the electronic device may not be greater than the maximum system resolution that the electronic device is capable of providing.

Further, after the video window is opened, or the video playing is opened 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 again by the electronic device, so that the system resolution can be adjusted again by the electronic device.

Based on this, in this specific implementation manner, on the basis of the specific implementation manner shown in fig. 3(a) and fig. 3(b), as shown in fig. 4(a) and fig. 4(b), the method for displaying a video window screen according to the embodiment of the present invention may further include the following steps:

s204: acquiring a state change instruction for a video window;

wherein, the state change instruction comprises: at least one instruction of a restoring instruction, a hiding instruction, a closing instruction and a window size-from-large adjusting instruction of the video window; and, the restore instruction is: and instructions for instructing to reduce the window size of the video window to a window size before the adjustment instruction in response to the window size changing from small to large.

S205: the system resolution of the electronic device is adjusted to a first system resolution.

Obviously, when the state change instruction is a restore instruction or an adjustment instruction for adjusting the window from large to small, the electronic device reduces the window size of the video window; and when the state change instruction is a closing instruction or a hiding instruction, the video window is not displayed on the display screen. Based on this, when the state change instruction for the video window is acquired, the number of pixel points which are refreshed and rendered in real time by the electronic device is reduced, so that the load of the CPU of the electronic device is reduced.

Further, since in the present embodiment, the current system resolution of the electronic device is the system resolution adjusted by performing the step S202, according to the above description of the embodiment shown in fig. 3(a) and fig. 3(b), the current system resolution of the electronic device may be smaller than the first system resolution of the electronic device. Based on this, in order to improve the definition of the display screen, the electronic device may restore the system resolution of the electronic device to the first system resolution. In particular, when the state change instruction is a restore instruction or a window size adjustment instruction, the screen of the video window may be displayed according to the first system resolution after the system resolution of the electronic device is restored to the first system resolution.

In an embodiment of the specific implementation manner shown in fig. 4(a) and 4(b), before the electronic device performs step S202, the electronic device may record the first system resolution of the electronic device, so that, in this embodiment, after the electronic device acquires the state change instruction for the video window, the electronic device may directly read the recorded first system resolution of the electronic device, and then perform step S205.

Optionally, in a specific implementation manner, on the basis of the specific implementation manners shown in fig. 3(a) and fig. 3(b), as shown in fig. 5(a) and fig. 5(b), the method for displaying a video window picture according to the embodiment of the present invention may further include the following steps:

s206: acquiring a window size adjusting instruction for a video window;

s207: determining the current window size of the video window after the adjustment instruction of the response window from big to small;

s208: increasing the system resolution of the electronic device to a second system resolution,

wherein the second system resolution is: and under the current window size of the video window, the maximum system resolution ratio for ensuring that the CPU load of the electronic equipment is smaller than a preset load threshold value is obtained.

Specifically, after the step S203 is executed, the electronic device may continue to acquire the adjustment instruction for the window of the video window from the largest size to the smallest size, so that the electronic device may respond to the adjustment instruction, thereby reducing the window size of the video window. Furthermore, the electronic device may determine the current window size of the video window after responding to the window size-from-large adjustment instruction.

After the adjustment instruction of the response window from large to small is responded, the window size of the video window is reduced, so that the number of pixels which are refreshed and rendered in real time is smaller when the electronic equipment displays the picture of the video window after the adjustment instruction of the response window from large to small is responded. Based on this, the electronic device may increase the system resolution to a second system resolution, and then may display the pictures of the video window at the second system resolution.

Optionally, the maximum system resolution for ensuring that the CPU load of the electronic device is smaller than the preset load threshold under different window sizes may be predetermined, so as to establish a corresponding relationship between different window sizes and the second system resolution, and thus, when the step S208 is executed, the second system resolution corresponding to the current window size of the video window after the determined adjustment instruction for the response window from large to small may be directly read from the corresponding relationship, so as to improve the system resolution of the electronic device to the second system resolution.

Optionally, the system resolution of the electronic device may be increased according to the preset resolution adjustment amount until the CPU load of the electronic device is not greater than the preset load threshold, and the difference between the CPU load of the electronic device and the preset load threshold is minimum.

After the system resolution is increased according to the preset resolution adjustment amount each time, the electronic device can calculate the CPU load of the electronic device at the current moment, and detect whether the difference value between the CPU load and the preset load threshold is smaller than the preset resolution adjustment amount, and then, when the detection result is yes, the system resolution is stopped being reduced, otherwise, the system resolution can be increased according to the preset resolution adjustment amount again, and the calculation and detection processes are repeated until the CPU load of the electronic device is not larger than the preset load threshold, and the difference value between the CPU load of the electronic device and the preset load threshold is minimum.

Furthermore, it is understood that there may be situations where the window size of the video window is large, and the CPU load of the electronic device is still below the preset load threshold, in which case the electronic device may adjust the system resolution differently. Based on this, optionally, in a specific implementation manner, as shown in fig. 6, the method for displaying a video window picture provided in the embodiment of the present invention may further include the following steps:

S201A: detecting whether the CPU load of the electronic equipment is greater than a preset load threshold value or not; if so, the above step S202 is executed.

In the embodiment of the invention, after the window size of the video window is determined, the electronic device can further detect whether the CPU load of the electronic device is greater than a preset load threshold. Furthermore, when the detection result is yes, in order to ensure the picture display effect of the video window, the electronic device may adjust the system resolution of the electronic device to a target system resolution corresponding to the window size. Of course, the electronic device may also detect whether the CPU load of the electronic device is greater than a preset load threshold first, and when the detection result is yes, determine the window size of the video window, and adjust the system resolution of the electronic device to the target system resolution corresponding to the window size. Therefore, the times of adjusting the resolution of the system can be reduced, the times of deformation of the operation interface of the electronic equipment can be reduced, the interface layout seen by a user is more stable, and the user experience is improved.

Corresponding to the video window picture display method provided by the embodiment of the invention, the embodiment of the invention also provides a video window picture display device.

Fig. 7 is a schematic structural diagram of a video window screen display apparatus according to an embodiment of the present invention, and as shown in fig. 7, the apparatus may include the following modules:

a first window size determining module 710 for determining a window size of a video window;

a first resolution adjustment module 720, configured to adjust a system resolution of the electronic device to a target system resolution corresponding to the window size;

and the picture display module 730 is configured to display the picture of the video window according to the target system resolution corresponding to the window size.

As can be seen from the above, with the adoption of the scheme provided by the embodiment of the present invention, when activities such as video call, live view and the like are performed, the window size of the video window can be determined first, and then, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the window size. Thus, the frame of the video window can be displayed according to the adjusted target system resolution. Obviously, in the embodiment of the present invention, the system resolution adopted by the electronic device may be adaptively adjusted according to the window size of the video window, so that the CPU load of the electronic device may meet the requirements of real-time updating and rendering of the picture of the video window, thereby improving the picture display effect of the video window.

Optionally, in a specific implementation manner, the electronic device includes: the electronic equipment has the functions of video conference and electronic drawing board; the maximum system resolution of the electronic device is 4K resolution.

Optionally, in a specific implementation manner, the first window size determining module 710 is specifically configured to:

when the video window is opened, determining the window size of the video window; alternatively, the first and second electrodes may be,

when video playing is started in the video window, the window size of the video window is determined; alternatively, the first and second electrodes may be,

and under the condition that an adjusting instruction for the video window from small to large is obtained, determining the window size of the video window after the adjusting instruction for the window from small to large is responded.

Optionally, in a specific implementation manner, the target system resolution corresponding to the window size is: and under the size of the window, the system resolution ratio is used for ensuring that the CPU load of the central processing unit of the electronic equipment is smaller than a preset load threshold value.

Optionally, in a specific implementation manner, the first resolution adjusting module 720 is specifically configured to:

according to the corresponding relation between the preset video window size and the system resolution, reducing the system resolution of the electronic equipment to the target system resolution corresponding to the window size; alternatively, the first and second electrodes may be,

and reducing the system resolution of the electronic equipment according to the preset resolution adjustment amount until the CPU load of the electronic equipment is smaller than the preset load threshold.

Optionally, in a specific implementation manner, 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 a first system resolution, where the first system resolution includes: an initial system resolution of the electronic device or a maximum system resolution provided by the electronic device; the device further comprises:

a change instruction obtaining module, configured to obtain a state change instruction for the video window after the step of displaying the picture of the video window according to the target system resolution corresponding to the window size, where the state change instruction includes: at least one of a restoring instruction, a hiding instruction, a closing instruction and a window size adjusting instruction of the video window is as follows: instructions for instructing to reduce the window size of the video window to a window size before responding to the window-from-small-to-large adjustment instruction;

and the second resolution adjusting module is used for adjusting the system resolution of the electronic equipment to the first system resolution.

Optionally, in a specific implementation manner, the apparatus further includes:

an adjustment instruction obtaining module, configured to obtain an adjustment instruction for a 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 for determining the current window size of the video window after responding to the adjustment instruction of the window from big to small;

a resolution increasing module, configured to increase a system resolution of the electronic device to a second system resolution, where the second system resolution is: and under the current window size of the video window, the maximum system resolution ratio for ensuring that the CPU load of the electronic equipment is smaller than a preset load threshold value is obtained.

Optionally, in a specific implementation manner, the first resolution adjusting module 720 is specifically configured to:

and under the condition that the window size of the video window is determined to be a full screen, adjusting the system resolution of the electronic equipment to a target system resolution corresponding to the full screen.

Optionally, in a specific implementation manner, the apparatus further includes:

a load detection module, configured to detect whether a CPU load of the electronic device is greater than a preset load threshold before the step of adjusting the system resolution of the electronic device to a target system resolution corresponding to the window size;

if yes, the first resolution adjusting module is triggered.

Corresponding to the video window screen display method provided by the above-mentioned embodiment of the present invention, the embodiment of the present invention further provides an electronic device, as shown in fig. 8, which includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802 and the memory 803 complete mutual communication through the communication bus 804,

a memory 803 for storing a computer program;

the processor 801 is configured to implement the method for displaying a video window screen according to the embodiment of the present invention when executing the program stored in the memory 803.

Specifically, the method for displaying the video window picture includes:

determining the window size of a video window;

adjusting a system resolution of the electronic device to a target system resolution corresponding to the window size;

and displaying the picture of the video window according to the target system resolution corresponding to the window size.

It should be noted that other implementation manners of the video window picture display method implemented by the processor 801 executing the program stored in the memory 803 are the same as the video window picture display method provided in the foregoing method embodiment, and are not described herein again. As can be seen from the above, with the adoption of the scheme provided by the embodiment of the present invention, when activities such as video call, live view and the like are performed, the window size of the video window can be determined first, and then, the system resolution of the electronic device is adjusted to the target system resolution corresponding to the window size. Thus, the frame of the video window can be displayed according to the adjusted target system resolution. Obviously, in the embodiment of the present invention, the system resolution adopted by the electronic device may be adaptively adjusted according to the window size of the video window, so that the CPU load of the electronic device may meet the requirements of real-time updating and rendering of the picture of the video window, thereby improving the picture display effect of the video window.

The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.

The communication interface is used for communication between the electronic equipment and other equipment.

The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.

The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component.

Corresponding to the video window image display method provided by the above embodiment of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any of the steps of the video window image display method provided by the above embodiment of the present invention.

Corresponding to the video window screen display method provided in the foregoing embodiments of the present invention, an embodiment of the present invention further provides a computer program product containing instructions, which when executed by a processor, implement the steps of any of the video window screen display methods provided in the foregoing first aspect.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, the electronic device embodiment and the computer-readable storage medium embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.

The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:页面视频渲染方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类