CN106873963B - Method and device for forming background of computer video desktop - Google Patents

Method and device for forming background of computer video desktop Download PDF

Info

Publication number
CN106873963B
CN106873963B CN201611201483.7A CN201611201483A CN106873963B CN 106873963 B CN106873963 B CN 106873963B CN 201611201483 A CN201611201483 A CN 201611201483A CN 106873963 B CN106873963 B CN 106873963B
Authority
CN
China
Prior art keywords
background video
computer screen
height
width
playing area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611201483.7A
Other languages
Chinese (zh)
Other versions
CN106873963A (en
Inventor
韩壮
李红义
梁飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xinhai Nano Network Technology Co Ltd
Original Assignee
Beijing Xinhai Nano Network Technology Co Ltd
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 Beijing Xinhai Nano Network Technology Co Ltd filed Critical Beijing Xinhai Nano Network Technology Co Ltd
Priority to CN201611201483.7A priority Critical patent/CN106873963B/en
Publication of CN106873963A publication Critical patent/CN106873963A/en
Application granted granted Critical
Publication of CN106873963B publication Critical patent/CN106873963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method and a device for forming a background of a computer video desktop, wherein the method comprises the following steps: acquiring background video bandwidth height information of a computer video desktop; setting a background video window with the same aspect ratio as the background video width height ratio, the same width as the computer screen and the same height as the computer screen according to the background video width height information; and loading the background video in the background video window to form a background of a computer video desktop which completely covers a computer screen. The technical scheme provided by the invention is beneficial to improving the viscosity of the computer video desktop, and can enable the computer video desktop to bring richer visual experience to users.

Description

Method and device for forming background of computer video desktop
Technical Field
The present invention relates to computer technology, and more particularly, to a method for forming a background of a computer video desktop and an apparatus for forming a background of a computer video desktop.
Background
At present, the background of the computer desktop is mostly in a static state, for example, a high-definition wallpaper is used as the background of the computer desktop, so as to form the computer desktop with the static state as the background. In order to provide a user with a more cool desktop effect, computer video desktop applications with a dynamic video as a background have appeared, that is, the applications form a computer video desktop by making the background of the computer desktop present a video playing form.
The inventor finds that the computer video desktop provides rich desktop effects for users in the process of implementing the invention, but due to the wide and high diversity of the background video and the wide and high diversity of the computer screen, the background video of the computer video desktop has the phenomena that the background video picture is stretched and deformed or black edges appear at the upper and lower parts or at the left and right parts in the actual application scene, and the like, so that the aesthetic feeling of the video desktop is damaged, and the use experience of the users is influenced; how to make the computer video desktop bring better visual perception to users is a technical problem worthy of attention.
Disclosure of Invention
The invention aims to provide a method and a device for forming a background of a computer video desktop, so that the computer video desktop brings better visual perception to a user.
According to a first aspect of the present invention, there is provided a method for forming a background of a computer video desktop, the method consisting essentially of: acquiring background video bandwidth height information of a computer video desktop; setting a background video window with the same aspect ratio as the background video width height ratio, the same width as the computer screen and the same height as the computer screen according to the background video width height information; and loading the background video in the background video window to form a background of a computer video desktop which completely covers a computer screen.
Optionally, the method for forming a background of a computer video desktop, wherein the step of obtaining the background video bandwidth height information of the computer video desktop includes: and when a control instruction for enabling the background video window to adapt to the computer screen is received, acquiring the background video bandwidth height information of the computer video desktop.
Optionally, the method for forming a background of a computer video desktop, wherein the step of setting, according to the background video width height information, a background video window having an aspect ratio that is the same as the background video width height ratio, a width that is not less than a width of a computer screen, and a height that is not less than a height of the computer screen includes: under the condition that the height-width ratio of the background video is smaller than the width-height ratio of the computer screen, setting the width of a background video window as the width of the computer screen, and setting the height of the background video window as the quotient of the product of the width of the computer screen and the height of the background video and the width of the background video; or, in the case that the height-width ratio of the background video is greater than the height-width ratio of the computer screen, the height of the background video window is set to be the height of the computer screen, and the width of the background video window is set to be the quotient of the product of the height of the computer screen and the width of the background video and the height of the background video.
Optionally, in the method for forming a background of a computer video desktop, a central axis of the background video window in the horizontal direction coincides with a central axis of a computer screen in the horizontal direction; and/or the central axis of the background video window in the vertical direction is superposed with the central axis of the computer screen in the vertical direction.
Optionally, the method for forming a background of a computer video desktop, wherein the method further includes: under the condition of receiving a background video window zooming instruction, when judging that a target background video window completely covers a computer screen according to zooming information in the zooming instruction and width and height information of a current background video window, adjusting the background video window into the target background video window; or, under the condition that a background video window position adjusting instruction is received, when the background video window positioned at the target position completely covers the computer screen is judged according to the background video window displacement information in the position adjusting instruction and the current position of the background video window in the computer screen, the background video window is adjusted to the target position.
According to a second aspect of the present invention, there is provided a method for forming a background of a computer video desktop, the method consisting essentially of: acquiring background video bandwidth height information of a computer video desktop; determining a playing area which is positioned in a background video window and has the same height ratio with the background video, the width of the playing area is not less than the width of a computer screen and the height of the playing area is not less than the height of the computer screen according to the background video width height information, wherein at least one frame of the background video window is positioned at the outer side of the computer screen, and at least one frame of the background video window is positioned at the outer side of the playing area; and loading the background video in the playing area of the background video window.
Optionally, the method for forming a background of a computer video desktop, wherein the step of obtaining the background video bandwidth height information of the computer video desktop includes: and when a control instruction for adapting the playing area to the computer screen is received, acquiring background video bandwidth height information of the video desktop of the computer.
Optionally, the method for forming the background of the computer video desktop, wherein the step of determining, according to the background video width height information, a playing area located in the background video window, which is the same as the background video width height ratio, has a width not less than the computer screen width and a height not less than the computer screen height, includes: determining the coordinate position of a playing area which has the same height ratio with the background video width, is not less than the computer screen width and is not less than the computer screen height in a coordinate system of the computer screen according to the background video width height information, and determining the coordinate position of a background video window completely containing the playing area in the coordinate system of the computer screen according to the coordinate position of the playing area in the coordinate system of the computer screen; or acquiring the coordinate position of the background video window in the coordinate system of the computer screen, and determining the relative position of a playing area which is completely positioned in the background video window and has the same height ratio with the background video bandwidth, the width of the playing area is not less than the width of the computer screen, and the height of the playing area is not less than the height of the computer screen in the background video window according to the coordinate position of the background video window in the coordinate system of the computer screen.
Optionally, the method for forming the background of the computer video desktop, wherein the step of determining, according to the background video width height information of the computer video desktop, a playing area having the same height ratio as the background video width, the width not less than the width of the computer screen, and the height not less than the height of the computer screen includes: under the condition that the height-width ratio of the background video is smaller than the width-height ratio of the computer screen, setting the width of the playing area as the width of the computer screen, and setting the height of the playing area as the quotient of the product of the width of the computer screen and the height of the background video and the width of the background video; or, in the case that the height ratio of the background video is greater than the height ratio of the computer screen, the height of the playing area is set to be the height of the computer screen, and the width of the playing area is set to be the quotient of the product of the height of the computer screen and the width of the background video and the height of the background video.
Optionally, in the method for forming a background of a computer video desktop, a central axis of the background video window in the horizontal direction coincides with a central axis of a computer screen in the horizontal direction; and/or the central axis of the background video window in the vertical direction is superposed with the central axis of the computer screen in the vertical direction; and/or the central axis of the playing area in the horizontal direction is superposed with the central axis of the computer screen in the horizontal direction; and/or the central axis of the playing area in the vertical direction is superposed with the central axis of the computer screen in the vertical direction.
Optionally, the method for forming a background of a computer video desktop, wherein the method further includes: under the condition that a zoom instruction of a playing area is received, when the fact that a target playing area completely covers a computer screen is judged according to zoom information in the zoom instruction and current position information of the playing area, the playing area is adjusted to be the target playing area; or, under the condition that a playing area position adjusting instruction is received, when the situation that the playing area positioned at the target position completely covers the computer screen is judged according to the playing area displacement information in the position adjusting instruction and the current position of the playing area in the computer screen, the playing area is adjusted to the target position.
According to a third aspect of the present invention, there is also provided an apparatus for forming a background of a computer video desktop, the apparatus comprising: the width and height acquisition module is used for acquiring background video width and height information of a computer video desktop; the window setting module is used for setting a background video window which has the same aspect ratio as the background video width height ratio, the width not less than the width of a computer screen and the height not less than the height of the computer screen according to the background video width height information; and the first video loading module is used for loading the background video in the background video window so as to form a background of a computer video desktop which completely covers a computer screen.
Optionally, the apparatus for forming a background of a computer video desktop is described above, wherein the obtaining width and height module is specifically configured to: and when a control instruction for enabling the background video window to adapt to the computer screen is received, acquiring the background video bandwidth height information of the computer video desktop.
Optionally, the apparatus for forming a background of a computer video desktop is described above, wherein the window setting module is specifically configured to: under the condition that the height-width ratio of the background video is smaller than the width-height ratio of the computer screen, setting the width of a background video window as the width of the computer screen, and setting the height of the background video window as the quotient of the product of the width of the computer screen and the height of the background video and the width of the background video; or, in the case that the height-width ratio of the background video is greater than the height-width ratio of the computer screen, the height of the background video window is set to be the height of the computer screen, and the width of the background video window is set to be the quotient of the product of the height of the computer screen and the width of the background video and the height of the background video.
Optionally, in the apparatus for forming a background of a computer video desktop, a central axis of the background video window in the horizontal direction coincides with a central axis of the computer screen in the horizontal direction; and/or the central axis of the background video window in the vertical direction is superposed with the central axis of the computer screen in the vertical direction.
Optionally, the apparatus for forming a background of a computer video desktop, wherein the apparatus further includes: the first zooming control module is used for adjusting a background video window to be a target background video window when the situation that the background video window zooming instruction is received and a target background video window completely covers a computer screen is judged according to zooming information in the zooming instruction and width and height information of the current background video window; or, under the condition that a background video window position adjusting instruction is received, when the background video window positioned at the target position completely covers the computer screen is judged according to the background video window displacement information in the position adjusting instruction and the current position of the background video window in the computer screen, the background video window is adjusted to the target position.
According to a fourth aspect of the present invention, there is also provided an apparatus for forming a background of a computer video desktop, the apparatus comprising: the width and height acquisition module is used for acquiring background video width and height information of a computer video desktop; the device comprises a setting area module, a display area module and a display area module, wherein the setting area module is used for determining a playing area which is positioned in a background video window and has the same height ratio with the background video, the width of the playing area is not less than the width of a computer screen and the height of the playing area is not less than the height of the computer screen according to the height information of the background video, at least one frame of the background video window is positioned on the outer side of the computer screen, and at least one frame of the background video window is positioned on the outer side of; and the second video loading module is used for loading the background video in the playing area of the background video window.
Optionally, the apparatus for forming a background of a computer video desktop is described above, wherein the obtaining width and height module is specifically configured to: and when a control instruction for adapting the playing area to the computer screen is received, acquiring background video bandwidth height information of the video desktop of the computer.
Optionally, the apparatus for forming a background of a computer video desktop is described above, wherein the setting area module is specifically configured to: determining the coordinate position of a playing area which has the same height ratio with the background video width, is not less than the computer screen width and is not less than the computer screen height in a coordinate system of the computer screen according to the background video width height information, and determining the coordinate position of a background video window completely containing the playing area in the coordinate system of the computer screen according to the coordinate position of the playing area in the coordinate system of the computer screen; or acquiring the coordinate position of the background video window in the coordinate system of the computer screen, and determining the relative position of a playing area which is completely positioned in the background video window and has the same height ratio with the background video bandwidth, the width of the playing area is not less than the width of the computer screen, and the height of the playing area is not less than the height of the computer screen in the background video window according to the coordinate position of the background video window in the coordinate system of the computer screen.
Optionally, the apparatus for forming a background of a computer video desktop is described above, wherein the setting area module is specifically configured to: under the condition that the height-width ratio of the background video is smaller than the width-height ratio of the computer screen, setting the width of the playing area as the width of the computer screen, and setting the height of the playing area as the quotient of the product of the width of the computer screen and the height of the background video and the width of the background video; or, in the case that the height ratio of the background video is greater than the height ratio of the computer screen, the height of the playing area is set to be the height of the computer screen, and the width of the playing area is set to be the quotient of the product of the height of the computer screen and the width of the background video and the height of the background video.
Optionally, in the apparatus for forming a background of a computer video desktop, a central axis of the background video window in the horizontal direction coincides with a central axis of the computer screen in the horizontal direction; and/or the central axis of the background video window in the vertical direction is superposed with the central axis of the computer screen in the vertical direction; and/or the central axis of the playing area in the horizontal direction is superposed with the central axis of the computer screen in the horizontal direction; and/or the central axis of the playing area in the vertical direction is superposed with the central axis of the computer screen in the vertical direction.
Optionally, the apparatus for forming a background of a computer video desktop, wherein the apparatus further includes: the second zooming control module is used for adjusting the playing area to be the target playing area when the target playing area is judged to completely cover the computer screen according to the zooming information in the zooming instruction and the current position information of the playing area under the condition that the zooming instruction of the playing area is received; or, under the condition that a playing area position adjusting instruction is received, when the situation that the playing area positioned at the target position completely covers the computer screen is judged according to the playing area displacement information in the position adjusting instruction and the current position of the playing area in the computer screen, the playing area is adjusted to the target position.
Compared with the prior art, the invention has the following advantages: the invention sets the background video window by utilizing the background video width height information, can lead the width height ratio of the background video window to be the same as the background video width height ratio, and lead the width of the background video window to be not less than the width of a computer screen and the height to be not less than the height of the computer screen, thereby loading the background video in the background video window, and effectively avoiding the phenomena of picture proportion imbalance or screen non-fullness on a computer video desktop and the like caused by the discrepancy between the width height of the background video and the width of the computer screen while ensuring that the background video completely covers the computer screen. Therefore, the technical scheme provided by the invention can enable the video desktop of the computer to bring better visual perception for users.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is a flowchart of a method for forming a background of a video desktop of a computer according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for forming a background of a computer video desktop according to an embodiment of the present invention;
FIG. 3 is a diagram of an apparatus for forming a background of a video desktop of a computer according to an embodiment of the present invention;
FIG. 4 is a diagram of an apparatus for forming a background of a video desktop of a computer according to a fourth embodiment of the present invention.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The technical solution of the present invention is further described in detail below with reference to the accompanying drawings.
Embodiment one, a method for forming a background of a computer video desktop.
In this embodiment, the background of the computer desktop is not a background formed by wallpaper for presenting a still picture, but a playable video background, that is, the content presented by the background of the computer desktop is a playable dynamic video picture, and the computer desktop with this type of background is referred to as a computer video desktop in this embodiment.
The computer video desktop in this embodiment is generally formed by superimposing a playable preset video as a background video with icons (such as an icon of an application program, a document icon, an icon of a shortcut, and the like) and a taskbar on the computer desktop, that is, the icons and the taskbar on the computer desktop are still set according to an original position, and the background video played by the computer video desktop in this embodiment does not have any influence on the positions, activation modes, and the like of the icons and the taskbar on the computer desktop.
The computer video desktop in this embodiment is usually implemented by a computer video desktop application program, for example, after the computer video desktop application program of the present invention is installed in a computer, a computer video desktop client is formed, and the computer video desktop client replaces or covers an original background picture with a preset background video, so that a background of the computer desktop presents a dynamic video picture to form the computer video desktop.
The background video played by the computer video desktop in this embodiment may be a background video (for example, a background video carried in an installation package of the computer video desktop application) set by default in an installation process of the computer video desktop application, or a background video that is replaced by the computer video desktop client based on a background video update rule, and the new background video that is replaced may be a background video that is pushed to the computer video desktop client by the computer video desktop server.
Fig. 1 is a flowchart of a method for forming a background of a computer video desktop according to the present embodiment. In fig. 1, the method of the present embodiment may be executed by a video desktop client of a computer, and the method of the present embodiment mainly includes: step S100, step S110, and step S120. The steps included in the method of the present embodiment are described below.
S100, obtaining background video width high information of a computer video desktop.
For example, the background video width height information of the computer video desktop in the embodiment is also the screen width height information suitable for the background video of the computer video desktop, and when the computer screen width height information is the same as the background video width height information, the background video usually has a better playing effect, for example, the played background video does not have a highlight caused by image compression and an image blur caused by image stretching. The background video width and height information in this embodiment may specifically be a width size (e.g., the number of pixels or millimeters, centimeters, or inches of the background video in the width direction) and a height size (e.g., the number of pixels or millimeters, centimeters, or inches of the background video in the height direction), may also specifically be an aspect ratio (e.g., 4:3, 5:4, 16:10, and 16: 9) of the background video and a width/height size of the background video, may also specifically be identification information uniquely corresponding to one aspect ratio and identification information uniquely corresponding to one width/height size, and may also specifically be identification information uniquely corresponding to one width size and identification information uniquely corresponding to one height size.
As an example, the present embodiment may obtain the background video width height information from the attribute information of the background video. In the case that the background video bandwidth height information includes the identification information of the aspect ratio, the corresponding relationship between the identification information of the aspect ratio and the aspect ratio may be preset in this embodiment, so that the aspect ratio of the background video may be obtained according to the obtained identification information of the aspect ratio and the corresponding relationship information. In the case that the background video width and height information includes the identification information of the width size or the identification information of the height size, the corresponding relationship information between the identification information of the width size and the width size or between the identification information of the height size and the height size may be preset in this embodiment, so that the wide size/the height size of the background video may be known according to the obtained identification information of the width size/the identification information of the height size and the corresponding relationship information.
As an example, in this embodiment, in a starting process of a computer video desktop client, the background video bandwidth height information of the computer video desktop may be obtained, for example, in a starting process of a computer, the computer video desktop client may be started accordingly, in the starting process of the computer video desktop client, a storage path of a background video currently set as a background and a name of the background video are obtained, then, attribute information of a corresponding background video is read according to the storage path and the name, and the background video bandwidth height information of the computer video desktop is obtained from the read attribute information.
As an example, in the present embodiment, in the process that the computer video desktop client is successfully started and normally operates, the background video bandwidth height information of the computer video desktop is obtained, for example, after the computer video desktop client is normally started and operated along with the startup and the normal operation of the computer, a computer video desktop is formed by playing a background video, when the computer video desktop receives a control instruction (for example, a control instruction generated based on a shortcut key or a control instruction generated based on a mouse click) for adapting a playing area to a computer screen, a storage path of the background video currently set as the background and a name of the background video are obtained, then, the attribute information of the corresponding background video is read according to the storage path and the name, and the background video bandwidth height information of the computer video desktop is obtained from the read attribute information.
S110, setting a background video window with the same aspect ratio as the background video width ratio, the same width as the computer screen and the same height as the computer screen according to the background video width height information.
As an example, the present embodiment needs to know the width information and the height information of the computer screen in advance, the width information of the computer screen may specifically be the number of pixels or millimeters or centimeters or inches of the computer screen in the width direction, and the height information of the computer screen may specifically be the number of pixels or millimeters or centimeters or inches of the computer screen in the height direction.
As an example, when setting the background video window, the present embodiment should ensure that the width-to-height ratio of the background video window is the same as the width-to-height ratio of the background video window, and at the same time, make the width of the background video window not less than the width of the computer screen, and make the height of the background video window not less than the height of the computer screen. Under the condition that the aspect ratio of the background video is the same as that of the computer screen, the size of the background video window in the embodiment is usually the same as that of the computer screen; and under the condition that the aspect ratio of the background video is different from that of the computer screen, the size of the background video window is larger than that of the computer screen, so that the computer screen is completely covered by the background video window.
A specific example of setting a background video window in this embodiment: in the case where it is determined that the background video width-to-height ratio is smaller than the computer screen width-to-height ratio, the width W1 of the background video window may be set to the width W2 of the computer screen, i.e., W1 equals W2, and the height H1 of the background video window may be set to the quotient of the product of the width W2 of the computer screen and the height H3 of the background video and the width W3 of the background video, i.e., H1 equals W2 × H3/W3.
Another specific example of setting the background video window in the present embodiment is as follows: in the case that the height-to-width ratio of the background video is determined to be greater than the aspect ratio of the computer screen, the embodiment may set the height H1 of the background video window as the height H2 of the computer screen, and set the width W1 of the background video window as the quotient of the product of the height H2 of the computer screen and the width W3 of the background video and the height H3 of the background video, i.e., W1 is H2 × W3/H3.
The present embodiment sets another specific example of the background video window: in the case where it is determined that the background video width-to-height ratio is equal to the computer screen width-to-height ratio, the present embodiment may set the width W1 of the background video window to the width W2 of the computer screen, i.e., W1-W2, and set the height H1 of the background video window to the height H2 of the computer screen, i.e., H1-H2.
As an example, the central axis of the background video window in the horizontal direction of the present embodiment may generally coincide with the central axis of the computer screen in the horizontal direction; and the central axis of the background video window in the vertical direction usually coincides with the central axis of the computer screen in the vertical direction. Of course, this embodiment also does not exclude the possibility that the central axis of the background video window in the horizontal direction does not coincide with the central axis of the computer screen in the horizontal direction and the possibility that the central axis of the background video window in the vertical direction does not coincide with the central axis of the computer screen in the vertical direction; if the size of the background video window is larger than that of the computer screen, at least one frame of the background video window is overlapped with the corresponding frame of the computer screen, and the at least one frame of the background video window is not overlapped with the corresponding frame of the computer screen and is positioned outside the corresponding frame of the computer screen; and if the size of the background video window is larger than that of the computer screen, the borders of the background video window are not overlapped with the corresponding borders of the computer screen. However, whether the central axis of the background video window in the horizontal direction coincides with the central axis of the computer screen in the horizontal direction and whether the central axis of the background video window in the vertical direction coincides with the central axis of the computer screen in the vertical direction, the background video window in this embodiment should completely cover the computer screen, and the present embodiment can determine the position of the background video window in the coordinate system of the computer screen, if the coordinates of the four vertexes of the background video window in the coordinate system of the computer screen are determined, and if the coordinates of one vertex of the background video window (such as the top left vertex) in the coordinate system of the computer screen are determined, so that the position of the background video window in the coordinate system of the computer screen can be determined according to the coordinates of the vertex in the coordinate system of the computer screen and the width and the height of the background video window.
And S120, loading a background video in the background video window to form a background of the computer video desktop which completely covers the computer screen.
As an example, the present embodiment may provide the video codec with a storage path and a name of the background video, a handle of the background video window, and location information of the background video window in a coordinate system of a computer screen, so that the video codec loads the corresponding background video in the set background video window to form a computer video desktop presenting a video playing modality. Because the size of the background video window in this embodiment is not smaller than the computer screen, and the background video window completely covers the computer screen, the background of the computer video desktop in this embodiment completely covers the computer screen, and a partial area of the background of the computer video desktop is shielded, for example, a partial area of the background of the computer video desktop is shielded by each icon, task bar, speed ball, pinyin input bar, and the like on the computer desktop.
As an example, the size of the background video window in the present embodiment may be autonomously controlled by a user, such as in a case where the computer video desktop receives a background video window zoom instruction (e.g., a zoom instruction generated based on a shortcut key or a zoom instruction generated based on a mouse wheel/button, etc.), determining whether the target background video window completely covers the computer screen; when the judgment result is that the target background video window can completely cover the computer screen, the size of the background video window is adjusted to the size of the target background video window, and at this time, the position information of the target background video window in the coordinate system of the computer screen can be provided for the video codec, so that the video codec can load the background video with the corresponding size into the target background video window to form a computer video desktop presenting a video playing form; in addition, when the judgment result is that the target background video window can completely cover the computer screen, the video codec can adaptively fill the background video in the target background video window to form a computer video desktop presenting a video playing form; however, when the result of the determination is that the target background video window cannot completely cover the computer screen, the present embodiment may not adjust the size of the current background video window, and of course, the present embodiment may also adjust the size of the current background video window to the minimum background video window size that can completely cover the computer screen when the result of the determination is that the target background video window cannot completely cover the computer screen. The method for judging whether the target background video window completely covers the computer screen in the embodiment may specifically be: obtaining zoom information in a zoom instruction, obtaining width and height information of a current background video window, then calculating the size of a target background video window according to the zoom information in the zoom instruction and the width and height information of the current background video window, judging whether the width of the target background video window is not less than the width of a computer screen and whether the height of the target background video window is not less than the height of the computer screen, if the width of the target background video window is not less than the width of the computer screen and the height of the target background video window is not less than the height of the computer screen, judging that the target background video window can completely cover the computer screen, otherwise, judging that the target background video window cannot completely cover the computer screen.
As an example, the position of the background video window in the present embodiment may be autonomously controlled by a user, such as determining whether the background video window located at the target position completely covers the computer screen in a case where the computer video desktop receives a background video window position adjustment instruction (e.g., an adjustment instruction generated based on a shortcut key or an adjustment instruction generated based on a mouse click or a mouse drag, etc.); when the judgment result shows that the background video window positioned at the target position can completely cover the computer screen, the embodiment adjusts the background video window from the current position to the target position, and at this time, the video codec can load the background video into the background video window positioned at the target position by providing the target position information of the background video window in the coordinate system of the computer screen, so as to form a computer video desktop presenting a video playing form; when the judgment result shows that the background video window located at the target position cannot completely cover the computer screen, the present embodiment may not adjust the position of the current background video window. The method for judging whether the background video window located at the target position completely covers the computer screen in the embodiment may specifically be: obtaining the displacement information of the background video window in the adjusting instruction, and obtaining the current position of the background video window in the computer screen, then, according to the displacement information of the background video window in the adjusting instruction and the current position of the background video window in the computer screen, calculating the coordinate information of the target position of the background video window in the coordinate system of the computer screen, judging whether the coordinate information of the computer screen in the coordinate system of the computer screen belongs to the target position range of the background video window, if the coordinate information of the computer screen in the coordinate system of the computer screen falls within the target position range of the background video window, and if not, the judgment result is that the background video window positioned at the target position can not completely cover the computer screen.
Embodiment two, a method for forming a background of a computer video desktop.
The computer desktop in this embodiment is also a computer video desktop. The specific contents of the computer video desktop can be referred to the description in the first embodiment. The description will not be repeated here.
Fig. 2 is a flowchart of a method for forming a background of a computer video desktop according to the embodiment. In fig. 2, the method of the present embodiment may be executed by a video desktop client of a computer, and the method of the present embodiment mainly includes: step S200, step S210, and step S220. The steps included in the method of the present embodiment are described below.
S200, obtaining background video width high information of the computer video desktop.
For example, the background video width height information of the computer video desktop in the embodiment is also the screen width height information suitable for the background video of the computer video desktop, and when the computer screen width height information is the same as the background video width height information, the background video usually has a better playing effect, for example, the played background video does not have a highlight caused by image compression and an image blur caused by image stretching. The background video width and height information in this embodiment may specifically be a width size (e.g., the number of pixels or millimeters, centimeters, or inches of the background video in the width direction) and a height size (e.g., the number of pixels or millimeters, centimeters, or inches of the background video in the height direction), may also specifically be an aspect ratio (e.g., 4:3, 5:4, 16:10, and 16: 9) of the background video and a width/height size of the background video, may also specifically be identification information uniquely corresponding to one aspect ratio and identification information uniquely corresponding to one width/height size, and may also specifically be identification information uniquely corresponding to one width size and identification information uniquely corresponding to one height size.
As an example, the present embodiment may obtain the background video width height information from the attribute information of the background video. In the case that the background video bandwidth height information includes the identification information of the aspect ratio, the corresponding relationship between the identification information of the aspect ratio and the aspect ratio may be preset in this embodiment, so that the aspect ratio of the background video may be obtained according to the obtained identification information of the aspect ratio and the corresponding relationship information. In the case that the background video width and height information includes the identification information of the width size or the identification information of the height size, the corresponding relationship information between the identification information of the width size and the width size or between the identification information of the height size and the height size may be preset in this embodiment, so that the wide size/the height size of the background video may be known according to the obtained identification information of the width size/the identification information of the height size and the corresponding relationship information.
As an example, in this embodiment, in a starting process of a computer video desktop client, the background video bandwidth height information of the computer video desktop may be obtained, for example, in a starting process of a computer, the computer video desktop client may be started accordingly, in the starting process of the computer video desktop client, a storage path of a background video currently set as a background and a name of the background video are obtained, then, attribute information of a corresponding background video is read according to the storage path and the name, and the background video bandwidth height information of the computer video desktop is obtained from the read attribute information.
As an example, in the present embodiment, in the process that the computer video desktop client is successfully started and normally operates, the background video bandwidth height information of the computer video desktop is obtained, for example, after the computer video desktop client is normally started and operated along with the startup and the normal operation of the computer, a computer video desktop is formed by playing a background video, when the computer video desktop receives a control instruction (for example, a control instruction generated based on a shortcut key or a control instruction generated based on a mouse click) for adapting a background video window to a computer screen, a storage path of the background video currently set as the background and a name of the background video are obtained, then, the attribute information of the corresponding background video is read according to the storage path and the name, and the background video bandwidth height information of the computer video desktop is obtained from the read attribute information.
S210, determining a playing area which is positioned in the background video window and has the same height ratio with the background video, the width of the playing area is not less than the width of the computer screen, and the height of the playing area is not less than the height of the computer screen according to the background video width height information.
As an example, the background video window in this embodiment is necessarily larger than the computer screen, and the playing area in the background video window can completely cover the computer screen, but the playing area is not completely filled with the background video window, but only occupies a partial area in the background video window; that is, at least one border of the background video window is located outside the computer screen, and at least one border of the background video window is located outside the playing area, and none of the four edges of the playing area is located inside the corresponding border of the computer screen.
As an example, the present embodiment may set a play area first, and then set a background video window including the play area; specifically, the present embodiment may first determine the coordinate position of the playing area in the coordinate system of the computer screen; if the background video width-height ratio is the same as the width-height ratio of the computer screen, the coordinate positions of the four vertexes of the computer screen in the coordinate system of the computer screen can be directly used as the coordinate positions of the four vertexes of the playing area in the coordinate system of the computer screen; if the coordinate position of one or two adjacent vertexes of the computer screen in the coordinate system of the computer screen is taken as the coordinate position of the corresponding vertex of the playing area in the coordinate system of the computer screen, and the coordinate positions of other vertexes of the playing area in the coordinate system of the computer screen are determined according to the background video width-to-height ratio, the background video width size and the background video height size, so that the width-to-height ratio of the playing area is the same as the background video width-to-height ratio, and the coordinate positions of other vertexes of the playing area in the coordinate system of the computer screen are positioned outside the corresponding vertex of the computer screen (namely, the width of the playing area is not less than the width of the computer screen, and the height of the playing area is not less than the height of the computer screen); after that, the present embodiment may determine, according to the coordinate position of the playing area in the coordinate system of the computer screen, the coordinate position of the background video window completely containing the playing area in the coordinate system of the computer screen, such as determining, according to a predetermined magnification ratio for the playing area, the coordinate position of the four vertices of the background video window in the coordinate system of the computer screen.
As an example, the present embodiment may set a background video window first, and then set a playing area in the background video window; specifically, the present embodiment may first determine the coordinate position of the background video window in the coordinate system of the computer screen; if the background video width-to-height ratio is the same as the computer screen width-to-height ratio, the coordinate positions of the four vertices of the background video window in the coordinate system of the computer screen can be determined according to a predetermined magnification ratio for the background video width-to-height; if the coordinate position of one or two adjacent vertexes of the computer screen in the coordinate system of the computer screen is taken as the coordinate position of the corresponding vertex of the background video window in the coordinate system of the computer screen, the coordinate positions of other vertexes of the background video window in the coordinate system of the computer screen are determined according to the height ratio of the background video bandwidth, the width size of the background video and the height size of the background video, so that the width ratio of the background video window is the same as the height ratio of the background video bandwidth, and the coordinate positions of the other vertexes of the background video window in the coordinate system of the computer screen are positioned outside the corresponding vertex of the computer screen (namely, the width of the background video window is not less than the width of the computer screen, and the height of the background video window is not less than the height of the computer screen); then, the present embodiment can determine the coordinate position of the playing area in the coordinate system of the computer screen, which is the same as the height ratio of the background video bandwidth, has a width not smaller than the computer screen width, and has a height not smaller than the computer screen height, in the background video window, for example, the relative position of one vertex of the computer screen in the background video window is taken as the relative position of one vertex of the playing area in the background video window, and the relative positions of the other three vertices of the playing area in the background video window are determined according to the height ratio of the background video bandwidth, the width size of the background video, the height size of the background video, the width size of the computer screen, the height size of the computer screen, and the coordinate position of the background video window in the coordinate system of the computer screen, so that the determined playing area is completely located in the background video window, and the width ratio of the playing area is the same as the height ratio of the background video bandwidth, and the width of the playing area is not less than the width of the computer screen and the height of the playing area is not less than the height of the computer screen.
As an example, the present embodiment needs to know the width information and the height information of the computer screen in advance, the width information of the computer screen may specifically be the number of pixels or millimeters or centimeters or inches of the computer screen in the width direction, and the height information of the computer screen may specifically be the number of pixels or millimeters or centimeters or inches of the computer screen in the height direction.
As an example, when setting a background video window, the present embodiment may make the aspect ratio of the background video window the same as the aspect ratio of the background video/computer screen, or may make the aspect ratio of the background video window the same as the aspect ratio of the background video/computer screen; and no matter whether the width-to-height ratio of the background video window is the same as the width-to-height ratio of the background video/computer screen, the present embodiment should make the widths of the background video window and the playing area not smaller than the width of the computer screen, and make the heights of the background video window and the playing area not smaller than the height of the computer screen. Under the condition that the aspect ratio of the background video is the same as that of the computer screen, the size of the playing area in the embodiment is usually the same as that of the computer screen; and under the condition that the aspect ratio of the background video is different from the aspect ratio of the computer screen, the size of the playing area is larger than the computer screen, so that the playing area completely covers the computer screen.
A specific example of setting the play area in this embodiment is as follows: in the case where it is determined that the background video width-to-height ratio is smaller than the computer screen width-to-height ratio, the width W4 of the playback area may be set to the width W2 of the computer screen, i.e., W4 equals W2, and the height H4 of the playback area may be set to the quotient of the product of the width W2 of the computer screen and the height H3 of the background video and the width W3 of the background video, i.e., H4 equals W2 × H3/W3.
Another specific example of setting the play area in this embodiment is as follows: in the case that the background video width-to-height ratio is determined to be greater than the computer screen width-to-height ratio, the embodiment may set the height H4 of the playing area as the height H2 of the computer screen, i.e., H4 equals H2, and set the width W4 of the playing area as the quotient of the product of the height H2 of the computer screen and the width W3 of the background video and the height H3 of the background video, i.e., W4 equals H2 × W3/H3.
Another specific example of setting the play area in this embodiment is as follows: in the case that the background video width height ratio is determined to be equal to the computer screen width height ratio, the present embodiment may set the width W4 of the playing area to the width W2 of the computer screen, i.e., W4 equals W2, and set the height H4 of the playing area to the height H2 of the computer screen, i.e., H4 equals H2.
As an example, the central axis of the playing area in the horizontal direction of the present embodiment may generally coincide with the central axis of the computer screen in the horizontal direction; and the central axis of the playing area in the vertical direction usually coincides with the central axis of the computer screen in the vertical direction. Of course, this embodiment also does not exclude the possibility that the central axis of the playing area in the horizontal direction does not coincide with the central axis of the computer screen in the horizontal direction and the possibility that the central axis of the playing area in the vertical direction does not coincide with the central axis of the computer screen in the vertical direction; if the size of the playing area is larger than that of the computer screen, at least one frame of the playing area is overlapped with the corresponding frame of the computer screen, and the at least one frame of the playing area is not overlapped with the corresponding frame of the computer screen and is positioned on the outer side of the corresponding frame of the computer screen; and if the size of the playing area is larger than that of the computer screen, the borders of the playing area are not overlapped with the corresponding borders of the computer screen. However, the playing area in this embodiment should completely cover the computer screen regardless of whether the central axis of the playing area in the horizontal direction coincides with the central axis of the computer screen in the horizontal direction and whether the central axis of the playing area in the vertical direction coincides with the central axis of the computer screen in the vertical direction. In addition, the central axis of the background video window in the horizontal direction of the present embodiment usually coincides with the central axis of the computer screen in the horizontal direction; and the central axis of the background video window in the vertical direction usually coincides with the central axis of the computer screen in the vertical direction.
And S220, loading the background video in the playing area of the background video window.
As an example, the present embodiment may provide the storage path, the name, the handle of the background video window, and the position of the playing area of the background video to the video codec, so that the video codec loads the corresponding background video in the set playing area of the background video window to form a computer video desktop presenting a video playing form. Since the size of the playing area in the background video window of this embodiment is not smaller than the computer screen, and the playing area completely covers the computer screen, the background video of the computer video desktop in this embodiment completely covers the computer screen, and a partial area of the background video of the computer video desktop is blocked, for example, a partial area of the background video of the computer video desktop is blocked by each icon, task bar, speed ball, pinyin input bar, and the like on the computer desktop.
As an example, the size of the playing area in the present embodiment may be autonomously controlled by a user, such as in a case where the computer video desktop receives a playing area zooming instruction (e.g., a zooming instruction generated based on a shortcut key or a zooming instruction generated based on a mouse wheel/button, etc.), determining whether the target playing area completely covers the computer screen; when the judgment result shows that the target playing area can completely cover the computer screen, the present embodiment adjusts the current playing area to the target playing area, and at this time, the position information of the target playing area in the coordinate system of the computer screen can be provided to the video codec, so that the video codec can load the background video with the corresponding size into the target playing area to form a computer video desktop presenting a video playing form, where the position information of the target playing area in the coordinate system of the computer screen can specifically be four vertex coordinate information of the target playing area, can also specifically be two vertex coordinate information on a diagonal line of the target playing area, and can also specifically be one vertex coordinate information of the target playing area and width and height information of the target playing area, and the like; however, when the target playing area cannot completely cover the computer screen as a result of the determination, the present embodiment may not adjust the size of the current playing area, and of course, the present embodiment may also adjust the size of the current playing area to the minimum playing area that can completely cover the computer screen as a result of the determination. The method for judging whether the target playing area completely covers the computer screen in this embodiment may specifically be: obtaining zoom information in a zoom instruction, obtaining width and height information of a current playing area, then calculating the size of a target playing area according to the zoom information in the zoom instruction and the width and height information of the current playing area, judging whether the width of the target playing area is not smaller than the width of a computer screen and whether the height of the target playing area is not smaller than the height of the computer screen, if the width of the target playing area is not smaller than the width of the computer screen and the height of the target playing area is not smaller than the height of the computer screen, judging that the target playing area can completely cover the computer screen, otherwise, judging that the target playing area cannot completely cover the computer screen.
As an example, the position of the playing area in the present embodiment may be autonomously controlled by a user, such as determining whether the playing area located at the target position completely covers the computer screen in a case that the computer video desktop receives a playing area position adjustment instruction (e.g., an adjustment instruction generated based on a shortcut key, or an adjustment instruction generated based on a mouse click or a mouse drag, etc.); when the judgment result shows that the playing area located at the target position can completely cover the computer screen, the playing area is adjusted from the current position to the target position in the embodiment, and at this time, the target position information of the playing area in the coordinate system of the computer screen can be provided to the video codec, so that the video codec can load the background video in the playing area located at the target position to form a computer video desktop presenting a video playing form; however, when the determined result is that the playing area located at the target position cannot completely cover the computer screen, the present embodiment may not adjust the position of the current playing area, and of course, the present embodiment may also adjust the playing area such that at least one edge coincides with the edge corresponding to the computer screen when the determined result is that the playing area located at the target position cannot completely cover the computer screen. The manner of determining whether the playing area located at the target position completely covers the computer screen in this embodiment may specifically be: acquiring the displacement information of the playing area in the adjusting instruction, acquiring the current position of the playing area in the computer screen, then calculating the coordinate information of the target position of the playing area in the coordinate system of the computer screen according to the displacement information of the playing area in the adjusting instruction and the current position of the playing area in the computer screen, judging whether the coordinate information of the computer screen in the coordinate system of the computer screen belongs to the target position range of the playing area, if the coordinate information of the computer screen in the coordinate system of the computer screen belongs to the target position range of the playing area, judging that the playing area at the target position can completely cover the computer screen, otherwise, judging that the playing area at the target position cannot completely cover the computer screen.
And the third embodiment is the device for forming the background of the video desktop of the computer.
The computer desktop in this embodiment is also a computer video desktop. The specific contents of the computer video desktop can be referred to the description in the first embodiment. The description will not be repeated here.
Fig. 3 is a schematic diagram of an apparatus for forming a computer video desktop according to the present embodiment. The apparatus in fig. 3 is typically provided in a computer video desktop client, and the apparatus in fig. 3 mainly includes: a get width and height module 300, a set window module 310, and a first video loading module 320. Optionally, the apparatus may further include: a first zoom control module 330.
The following describes each module included in the apparatus of the present embodiment.
The width and height acquiring module 300 is mainly used for acquiring the background video width and height information of the computer video desktop.
As an example, the obtain width and height module 300 may obtain the background video width and height information from the attribute information of the background video. In the case that the background video bandwidth height information includes the identification information of the aspect ratio, the obtaining aspect module 300 may preset a correspondence between the identification information of the aspect ratio and the aspect ratio, so that the obtaining aspect module 300 may obtain the aspect ratio of the background video according to the obtained identification information of the aspect ratio and the correspondence information. In the case that the background video bandwidth height information includes the identification information of the width size or the identification information of the height size, the corresponding relationship information between the identification information of the width size and the width size or the corresponding relationship information between the identification information of the height size and the height size may be preset in the width-height module 300, so that the width-height module 300 may obtain the width size/the height size of the background video according to the obtained identification information of the width size/the identification information of the height size and the corresponding relationship information.
As an example, the obtaining width and height module 300 may obtain the background video width and height information of the computer video desktop during the starting process of the computer video desktop client, for example, the computer video desktop client may start during the starting process of the computer, the obtaining width and height module 300 obtains the storage path of the background video currently set as the background and the name of the background video during the starting process of the computer video desktop client, and then the obtaining width and height module 300 reads the attribute information of the corresponding background video according to the storage path and the name, and obtains the background video width and height information of the computer video desktop from the read attribute information.
As an example, the get width and height module 300 can get the background video width and height information of the computer video desktop during the successful startup and normal operation of the computer video desktop client, for example, after the computer video desktop client is normally started and operated along with the startup of the computer, the computer video desktop is formed by playing the background video, when the computer video desktop receives a control instruction (such as a control instruction generated based on a shortcut key or a control instruction generated based on a mouse click) for adapting the playing area to the computer screen, the acquire width and height module 300 acquires a storage path of the background video currently set as the background and a name of the background video, and thereafter, the get width and height module 300 reads the attribute information of the corresponding background video according to the storage path and the name, and obtaining the background video width height information of the computer video desktop from the read attribute information.
The window setting module 310 is mainly used for setting a background video window having the same aspect ratio as the background video width-height ratio, a width not smaller than the width of the computer screen, and a height not smaller than the height of the computer screen according to the background video width-height information acquired by the width-height acquiring module 300.
As an example, the setting window module 310 needs to know width information and height information of the computer screen in advance, the width information of the computer screen may be specifically the number of pixels or millimeters or centimeters or inches of the computer screen in the width direction, and the height information of the computer screen may be specifically the number of pixels or millimeters or centimeters or inches of the computer screen in the height direction.
As an example, the window setting module 310 should make the width of the background video window not less than the width of the computer screen and make the height of the background video window not less than the height of the computer screen while ensuring that the width-to-height ratio of the background video window is the same as the height-to-width ratio of the background video window when setting the background video window. In the case that the background video aspect ratio is the same as the computer screen aspect ratio, the size of the background video window set by the set window module 310 is generally the same as the size of the computer screen; and under the condition that the aspect ratio of the background video is different from the aspect ratio of the computer screen, the size of the background video window set by the window setting module 310 is certainly larger than the computer screen, so that the background video window set by the window setting module 310 completely covers the computer screen.
One specific example of the setting window module 310 setting the background video window is: the set window module 310 may set the width W1 of the background video window to the width W2 of the computer screen, i.e., W1 ═ W2, and the height H1 of the background video window to the quotient of the product of the width W2 of the computer screen and the height H3 of the background video and the width W3 of the background video, i.e., H1 ═ W2 × H3/W3, in case that it is determined that the background video width-to-height ratio is less than the computer screen width-to-height ratio.
Another specific example of the setting window module 310 setting the background video window is: in the case that the setup window module 310 determines that the background video width height ratio is greater than the computer screen width height ratio, the setup window module 310 may set the height H1 of the background video window to the height H2 of the computer screen and set the width W1 of the background video window to the quotient of the product of the height H2 of the computer screen and the width W3 of the background video and the height H3 of the background video, i.e., W1 is H2 × W3/H3.
Yet another specific example of the set window module 310 setting a background video window is: in the event that the setup window module 310 determines that the background video width height ratio is equal to the computer screen width height ratio, the setup window module 310 may set the width W1 of the background video window to the width W2 of the computer screen, i.e., W1-W2, and the height H1 of the background video window to the height H2 of the computer screen, i.e., H1-H2.
As an example, the central axis of the background video window set by the set window module 310 in the horizontal direction may generally coincide with the central axis of the computer screen in the horizontal direction; and the central axis of the background video window in the vertical direction usually coincides with the central axis of the computer screen in the vertical direction. Of course, this embodiment does not exclude the possibility that the central axis of the background video window set by the window setting module 310 in the horizontal direction does not coincide with the central axis of the computer screen in the horizontal direction and the possibility that the central axis of the background video window in the vertical direction does not coincide with the central axis of the computer screen in the vertical direction; if the size of the background video window set by the window setting module 310 is larger than the size of the computer screen, at least one frame of the background video window coincides with a corresponding frame of the computer screen, and the at least one frame of the background video window does not coincide with the corresponding frame of the computer screen and is located outside the corresponding frame of the computer screen; if the size of the background video window set by the window setting module 310 is larger than the size of the computer screen, each frame of the background video window does not coincide with the corresponding frame of the computer screen. However, whether the central axis of the background video window in the horizontal direction coincides with the central axis of the computer screen in the horizontal direction and whether the central axis of the background video window in the vertical direction coincides with the central axis of the computer screen in the vertical direction, the background video window set by the setting window module 310 should completely cover the computer screen, and the setting window module 310 can determine the position of the background video window in the coordinate system of the computer screen, for example, the setting window module 310 determines the coordinates of the four vertices of the background video window in the coordinate system of the computer screen, and then the setting window module 310 determines the coordinates of one vertex (for example, the top left vertex) of the background video window in the coordinate system of the computer screen, so that the setting window module 310 can determine the coordinate system of the background video window in the computer screen according to the coordinates of the vertex in the coordinate system of the computer screen and the width and height of the background video window Of (c) is used.
The first video loading module 320 is mainly used for loading the background video in the background video window set by the setting window module 310 to form the background of the computer video desktop completely covering the computer screen.
As an example, the first video loading module 320 may provide the video codec with a storage path of the background video, a name, a handle of the background video window, and location information of the background video window in a coordinate system of the computer screen, so that the video codec loads the corresponding background video in the set background video window to form a computer video desktop presenting a video playing modality. Because the size of the background video window in this embodiment is not smaller than the computer screen, and the background video window completely covers the computer screen, the background of the computer video desktop in this embodiment completely covers the computer screen, and a partial area of the background of the computer video desktop is shielded, for example, a partial area of the background of the computer video desktop is shielded by each icon, task bar, speed ball, pinyin input bar, and the like on the computer desktop.
As an example, the size of the background video window in the present embodiment may be autonomously controlled by a user, such as in a case where the computer video desktop receives a background video window zoom instruction (e.g., a zoom instruction generated based on a shortcut key or a zoom instruction generated based on a mouse wheel/button, etc.), the first zoom control module 330 determines whether the target background video window completely covers the computer screen; when the judgment result is that the target background video window can completely cover the computer screen, the first scaling control module 330 adjusts the size of the background video window to the size of the target background video window, and at this time, the first scaling control module 330 can provide the video codec with the position information of the target background video window in the coordinate system of the computer screen, so that the video codec can load the background video with the corresponding size into the target background video window to form a computer video desktop presenting a video playing form; in addition, when the result of the determination is that the target background video window can completely cover the computer screen, the first scaling control module 330 may also adaptively fill the background video in the target background video window by the video codec to form a computer video desktop presenting a video playing form; when the result of the determination is that the target background video window cannot completely cover the computer screen, the first scaling control module 330 may not adjust the size of the current background video window, and of course, the first scaling control module 330 may also adjust the size of the current background video window to the minimum background video window size that can completely cover the computer screen when the result of the determination is that the target background video window cannot completely cover the computer screen. The manner of the first zoom control module 330 determining whether the target background video window completely covers the computer screen may specifically be: the first zoom control module 330 obtains zoom information in the zoom command, and obtains window width and height information of the current background video, then, the first zoom control module 330 calculates the size of the target background video window according to the zoom information in the zoom instruction and the width and height information of the current background video window, determines whether the width of the target background video window is not less than the width of the computer screen, and whether the height of the target background video window is not less than the height of the computer screen, if the width of the target background video window is not less than the width of the computer screen, and the height of the target background video window is not less than the height of the computer screen, the first scaling control module 330 determines that the target background video window can completely cover the computer screen, otherwise, the first scaling control module 330 determines that the target background video window cannot completely cover the computer screen.
As an example, the position of the background video window in the present embodiment may be autonomously controlled by a user, such as in a case where the computer video desktop receives a background video window position adjustment instruction (e.g., an adjustment instruction generated based on a shortcut key or an adjustment instruction generated based on a mouse click or mouse drag, etc.), the first zoom control module 330 determines whether the background video window located at the target position completely covers the computer screen; when the result of the determination is that the background video window located at the target position can completely cover the computer screen, the first scaling control module 330 adjusts the background video window from the current position to the target position, and at this time, the first scaling control module 330 may provide the video codec with the target position information of the background video window in the coordinate system of the computer screen, so that the video codec may load the background video in the background video window located at the target position to form a computer video desktop presenting a video playing form; when the result of the determination is that the background video window located at the target position cannot completely cover the computer screen, the first scaling control module 330 may not adjust the position of the current background video window. The manner of the first zoom control module 330 determining whether the background video window located at the target position completely covers the computer screen may specifically be: acquiring the displacement information of the background video window in the adjustment instruction, acquiring the current position of the background video window in the computer screen, then calculating the coordinate information of the target position of the background video window in the coordinate system of the computer screen by the first zooming control module 330 according to the displacement information of the background video window in the adjustment instruction and the current position of the background video window in the computer screen, judging whether the coordinate information of the computer screen in the coordinate system of the computer screen belongs to the target position range of the background video window by the first zooming control module 330, if the coordinate information of the computer screen in the coordinate system of the computer screen belongs to the target position range of the background video window, judging that the background video window at the target position can completely cover the computer screen by the first zooming control module 330, otherwise, the first zoom control module 330 determines that the background video window at the target position cannot completely cover the computer screen.
And the fourth embodiment is the device for forming the background of the video desktop of the computer.
The computer desktop in this embodiment is also a computer video desktop. The specific contents of the computer video desktop can be referred to the description in the first embodiment. The description will not be repeated here.
Fig. 4 is a schematic diagram of an apparatus for forming a computer video desktop according to the present embodiment. The device in fig. 4 is typically provided in a computer video desktop client, and the device in fig. 4 mainly includes: the obtaining width and height module 300, the setting area module 340 and the second video loading module 350; optionally, the apparatus of this embodiment may further include: a second zoom control module 360.
The following describes each module included in the apparatus of the present embodiment.
The width and height acquiring module 300 is used to acquire the background video width and height information of the computer video desktop, and the operations performed by the width and height acquiring module 300 are as described in the third embodiment above, and will not be described again here.
The region setting module 340 is mainly used for determining a playing region located in the background video window, which has the same height ratio as the background video, the same width as the computer screen and the same height as the computer screen, according to the background video height information.
As an example, the background video window in this embodiment is necessarily larger than the computer screen, and the playing area in the background video window set by the setting area module 340 can completely cover the computer screen, but the playing area is not completely filled with the background video window, but only occupies a partial area in the background video window; that is, at least one border of the background video window is located outside the computer screen, and at least one border of the background video window is located outside the playing area, and none of the four edges of the playing area is located inside the corresponding border of the computer screen.
As an example, the region setting module 340 may set a playing region first, and then set a background video window including the playing region; specifically, the region setting module 340 may first determine the coordinate position of the playing region in the coordinate system of the computer screen; if the aspect ratio of the background video is the same as the aspect ratio of the computer screen, the region setting module 340 may directly use the coordinate positions of the four vertices of the computer screen in the coordinate system of the computer screen as the coordinate positions of the four vertices of the playing region in the coordinate system of the computer screen; then, as the area setting module 340, the coordinate position of one or two adjacent vertices of the computer screen in the coordinate system of the computer screen is taken as the coordinate position of the corresponding vertex of the playing area in the coordinate system of the computer screen, and the coordinate positions of other vertices of the playing area in the coordinate system of the computer screen are determined according to the height ratio of the background video, the width dimension of the background video, and the height dimension of the background video, so that the width ratio of the playing area is the same as the height ratio of the background video, and the coordinate positions of other vertices of the playing area in the coordinate system of the computer screen are located outside the corresponding vertex of the computer screen (i.e., the width of the playing area is not less than the width of the computer screen, and the height of the playing area is not less than the height of the computer screen); thereafter, the setting region module 340 may determine the coordinate position of the background video window completely including the playing region in the coordinate system of the computer screen according to the coordinate position of the playing region in the coordinate system of the computer screen, e.g., the setting region module 340 determines the coordinate positions of the four vertices of the background video window in the coordinate system of the computer screen according to the predetermined magnification ratio for the playing region.
As an example, the region setting module 340 may set a background video window first, and then set a playing region in the background video window; specifically, the region setting module 340 may first determine the coordinate position of the background video window in the coordinate system of the computer screen; for example, the region setting module 340 may determine the coordinate positions of the four vertices of the background video window in the coordinate system of the computer screen according to a predetermined magnification ratio for the width and height of the background video; if the setting area module 340 determines the coordinate position of the other vertex of the background video window in the coordinate system of the computer screen according to the aspect ratio of the background video, the width size of the background video and the height size of the background video, so that the aspect ratio of the background video window is the same as the aspect ratio of the background video, and the coordinate position of the other vertex of the background video window in the coordinate system of the computer screen is located outside the corresponding vertex of the computer screen (i.e. the width of the background video window is not less than the width of the computer screen, and the height of the background video window is not less than the height of the computer screen); then the setting area module 340 can determine the coordinate position of the playing area in the coordinate system of the computer screen, which is the same as the height ratio of the background video, has a width not smaller than the computer screen, and has a height not smaller than the computer screen, in the background video window, for example, the setting area module 340 takes the relative position of one vertex of the computer screen in the background video window as the relative position of one vertex of the playing area in the background video window, and determines the relative positions of the other three vertices of the playing area in the background video window according to the height ratio of the background video, the width size of the background video, the height size of the background video, the width size of the computer screen, the height size of the computer screen, and the coordinate position of the background video window in the coordinate system of the computer screen, so that the determined playing area is completely located in the background video window, the aspect ratio of the playing area is the same as the aspect ratio of the background video, and the width and height of the playing area are not less than the width and height of the computer screen.
As an example, the setting region module 340 needs to know width information and height information of a computer screen in advance. When the setting area module 340 sets the background video window, the aspect ratio of the background video window may be the same as the aspect ratio of the background video/the computer screen, or the aspect ratio of the background video window may be different from the aspect ratio of the background video/the computer screen; and no matter whether the aspect ratio of the background video window is the same as the aspect ratio of the background video/computer screen, the region setting module 340 should make the widths of the background video window and the playing region not smaller than the width of the computer screen, and make the heights of the background video window and the playing region not smaller than the height of the computer screen. In the case that the aspect ratio of the background video is the same as the aspect ratio of the computer screen, the size of the playing area set by the area setting module 340 is generally the same as the size of the computer screen; and under the condition that the aspect ratio of the background video is different from the aspect ratio of the computer screen, the size of the playing area set by the setting area module 340 is certainly larger than the computer screen, so that the playing area completely covers the computer screen.
A specific example of the setting of the playing area by the area setting module 340 is as follows: the set region module 340 may set the width W4 of the play region to be the width W2 of the computer screen, i.e., W4 ═ W2, and set the height H4 of the play region to be the quotient of the product of the width W2 of the computer screen and the height H3 of the background video and the width W3 of the background video, i.e., H4 ═ W2 × H3/W3, in case that it is determined that the background video width-to-height ratio is smaller than the computer screen width-to-height ratio.
Another specific example of the setting of the playing area by the setting area module 340 is: in the case that the setting area module 340 determines that the height ratio of the background video is greater than the aspect ratio of the computer screen, the setting area module 340 may set the height H4 of the playing area as the height H2 of the computer screen, i.e., H4 ═ H2, and set the width W4 of the playing area as the quotient of the product of the height H2 of the computer screen and the width W3 of the background video and the height H3 of the background video, i.e., W4 ═ H2 × W3/H3.
Another specific example of the setting of the playing area by the area setting module 340 is: in the case where the setting region module 340 determines that the background video height ratio is equal to the computer screen width height ratio, the setting region module 340 may set the width W4 of the playing region to the width W2 of the computer screen, i.e., W4-W2, and the height H4 of the playing region to the height H2 of the computer screen, i.e., H4-H2.
As an example, the central axis of the playing area set by the setting area module 340 in the horizontal direction may generally coincide with the central axis of the computer screen in the horizontal direction; and the central axis of the playing area in the vertical direction usually coincides with the central axis of the computer screen in the vertical direction. Of course, this embodiment does not exclude the possibility that the central axis of the playing area in the horizontal direction set by the setting area module 340 does not coincide with the central axis of the computer screen in the horizontal direction and the possibility that the central axis of the playing area in the vertical direction does not coincide with the central axis of the computer screen in the vertical direction; if the size of the playing area is larger than the size of the computer screen, at least one frame of the playing area set by the setting area module 340 coincides with a corresponding frame of the computer screen, and the at least one frame of the playing area does not coincide with the corresponding frame of the computer screen and is located outside the corresponding frame of the computer screen; for example, when the size of the playing area is larger than the size of the computer screen, each frame of the playing area set by the setting area module 340 does not coincide with the corresponding frame of the computer screen. However, the playing area set by the setting area module 340 should completely cover the computer screen no matter whether the central axis of the playing area in the horizontal direction coincides with the central axis of the computer screen in the horizontal direction and whether the central axis of the playing area in the vertical direction coincides with the central axis of the computer screen in the vertical direction. In addition, the central axis of the background video window in the horizontal direction of the present embodiment usually coincides with the central axis of the computer screen in the horizontal direction; and the central axis of the background video window in the vertical direction usually coincides with the central axis of the computer screen in the vertical direction.
The second video loading module 350 is mainly used for loading the background video in the playing area of the background video window.
As an example, the second video loading module 350 may provide the video codec with a storage path of the background video, a name of the background video, a handle of the background video window, and a position of the playing area, so that the video codec loads the corresponding background video in the set playing area of the background video window to form a computer video desktop presenting a video playing form. Since the size of the playing area in the background video window set by the setting area module 340 is not smaller than the computer screen and the playing area completely covers the computer screen, the background video of the computer video desktop in this embodiment completely covers the computer screen, and a partial area of the background video of the computer video desktop is shielded, for example, the partial area of the background video of the computer video desktop is shielded by an icon, a task bar, an accelerator ball, a pinyin input bar, and the like on the computer desktop.
As an example, the size of the playing area set by the setting area module 340 may be autonomously controlled by the user, such as in the case that the computer video desktop receives a playing area zooming instruction (e.g., a zooming instruction generated based on a shortcut key or a zooming instruction generated based on a mouse wheel/button, etc.), the second zooming control module 360 determines whether the target playing area completely covers the computer screen; when the judgment result is that the target playing area can completely cover the computer screen, the second scaling control module 360 adjusts the current playing area to the target playing area, at this time, the second scaling control module 360 can provide the position information of the target playing area in the coordinate system of the computer screen to the video codec, so that the video codec can load the background video with corresponding size in the target playing area to form a computer video desktop presenting video playing form, the position information of the target playing area in the coordinate system of the computer screen may specifically be four vertex coordinate information of the target playing area, may also specifically be two vertex coordinate information on a diagonal line of the target playing area, may also specifically be one vertex coordinate information of the target playing area, width and height information of the target playing area, and the like; when the target playing area cannot completely cover the computer screen as a result of the determination, the second zooming control module 360 may not adjust the size of the current playing area, and of course, the second zooming control module 360 may also adjust the size of the current playing area to the minimum playing area that can completely cover the computer screen when the target playing area cannot completely cover the computer screen as a result of the determination. The manner of the second zoom control module 360 determining whether the target playing area completely covers the computer screen may specifically be: the second zooming control module 360 obtains zooming information in the zooming instruction and obtains width and height information of the currently played area, then the second zooming control module 360 calculates the size of the target playing area according to the zooming information in the zooming instruction and the width and height information of the currently played area, and judges whether the width of the target playing area is not smaller than the width of the computer screen and whether the height of the target playing area is not smaller than the height of the computer screen, if the width of the target playing area is not smaller than the width of the computer screen and the height of the target playing area is not smaller than the height of the computer screen, the result judged by the second zooming control module 360 is that the target playing area can completely cover the computer screen, otherwise, the result judged by the second zooming control module 360 is that the target playing area cannot completely cover the computer screen.
As an example, the position of the playing area set by the setting area module 340 may be autonomously controlled by the user, such as in the case that the computer video desktop receives a playing area position adjustment instruction (e.g., an adjustment instruction generated based on a shortcut key or an adjustment instruction generated based on a mouse click or mouse drag, etc.), the second zoom control module 360 determines whether the playing area located at the target position completely covers the computer screen; when the judgment result shows that the playing area located at the target position can completely cover the computer screen, the second scaling control module 360 adjusts the playing area from the current position to the target position, and at this time, the second scaling control module 360 can provide the target position information of the playing area in the coordinate system of the computer screen to the video codec, so that the video codec can load the background video in the playing area located at the target position to form a computer video desktop presenting a video playing form; the second scaling control module 360 may not adjust the position of the current playing area when the determined result is that the playing area located at the target position cannot completely cover the computer screen, and certainly, the second scaling control module 360 may also adjust the playing area to have at least one edge coinciding with an edge corresponding to the computer screen when the determined result is that the playing area located at the target position cannot completely cover the computer screen. The manner of the second zoom control module 360 determining whether the playing area located at the target position completely covers the computer screen may specifically be: the second zooming control module 360 obtains the playing area displacement information in the adjustment instruction and obtains the current position of the playing area in the computer screen, then the second zooming control module 360 calculates the coordinate information of the target position of the playing area in the coordinate system of the computer screen according to the playing area displacement information in the adjustment instruction and the current position of the playing area in the computer screen, the second zooming control module 360 judges whether the coordinate information of the computer screen in the coordinate system of the computer screen belongs to the target position range of the playing area, if the coordinate information of the computer screen in the coordinate system of the computer screen belongs to the target position range of the playing area, the result judged by the second zooming control module 360 is that the playing area at the target position can completely cover the computer screen, otherwise, the result judged by the second zooming control module 360 is that the playing area at the target position cannot completely cover the computer screen.
It is to be noted that a part of the present invention can be applied as a computer program product, for example, a computer program instruction, which can invoke or provide the method and/or technical solution according to the present invention through the operation of an intelligent electronic device (such as a computer or a server, etc.) when the computer program instruction is executed by the intelligent electronic device. The program instructions that invoke the methods of the present invention may be stored on a fixed or removable recording medium and/or transmitted via a data stream over a broadcast or other signal-bearing medium and/or stored in a working memory of an intelligent electronic device operating in accordance with the program instructions. An embodiment according to the invention herein comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or solution according to embodiments of the invention as described above.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps and the singular does not exclude the plural. A plurality of units or means or modules recited in the apparatus claims may also be implemented by one unit or means or module through software or hardware. The terms first, second, etc. are used merely to denote names, and do not denote any particular order.

Claims (22)

1. A method for forming a background for a computer video desktop, the method comprising:
acquiring background video bandwidth height information of a computer video desktop;
setting a background video window with the same aspect ratio as the background video width height ratio, the same width as the computer screen and the same height as the computer screen according to the background video width height information;
and loading the background video in the background video window to form a background of a computer video desktop which completely covers a computer screen.
2. The method of claim 1, wherein the step of obtaining background video height information of the video desktop of the computer comprises:
and when a control instruction for enabling the background video window to adapt to the computer screen is received, acquiring the background video bandwidth height information of the computer video desktop.
3. The method of claim 1, wherein the step of setting a background video window having an aspect ratio that is the same as a background video aspect ratio, a width that is not less than a width of a computer screen, and a height that is not less than a height of the computer screen according to the background video width height information comprises:
under the condition that the height-width ratio of the background video is smaller than the width-height ratio of the computer screen, setting the width of a background video window as the width of the computer screen, and setting the height of the background video window as the quotient of the product of the width of the computer screen and the height of the background video and the width of the background video; or
And under the condition that the height-width ratio of the background video is greater than the width-height ratio of the computer screen, setting the height of the background video window as the height of the computer screen, and setting the width of the background video window as the quotient of the product of the height of the computer screen and the width of the background video and the height of the background video.
4. The method of claim 1, wherein:
the central axis of the background video window in the horizontal direction is superposed with the central axis of the computer screen in the horizontal direction; and/or
The central axis of the background video window in the vertical direction is overlapped with the central axis of the computer screen in the vertical direction.
5. The method according to any one of claims 1 to 4, further comprising:
under the condition of receiving a background video window zooming instruction, when judging that a target background video window completely covers a computer screen according to zooming information in the zooming instruction and width and height information of a current background video window, adjusting the background video window into the target background video window; or
Under the condition that a background video window position adjusting instruction is received, when the background video window positioned at the target position is judged to completely cover the computer screen according to the background video window displacement information in the position adjusting instruction and the current position of the background video window in the computer screen, the background video window is adjusted to the target position.
6. A method for forming a computer video desktop background video, the method comprising:
acquiring background video bandwidth height information of a computer video desktop;
determining a playing area which is positioned in a background video window and has the same height ratio with the background video, the width of the playing area is not less than the width of a computer screen and the height of the playing area is not less than the height of the computer screen according to the background video width height information, wherein at least one frame of the background video window is positioned at the outer side of the computer screen, and at least one frame of the background video window is positioned at the outer side of the playing area;
and loading the background video in the playing area of the background video window.
7. The method of claim 6, wherein the step of obtaining background video height information of the video desktop of the computer comprises:
and when a control instruction for adapting the playing area to the computer screen is received, acquiring background video bandwidth height information of the video desktop of the computer.
8. The method of claim 6, wherein the step of determining a playing area located in the background video window having the same height ratio as the background video width, a width not less than the computer screen width and a height not less than the computer screen height according to the background video width height information comprises:
determining the coordinate position of a playing area which has the same height ratio with the background video width, is not less than the computer screen width and is not less than the computer screen height in a coordinate system of the computer screen according to the background video width height information, and determining the coordinate position of a background video window completely containing the playing area in the coordinate system of the computer screen according to the coordinate position of the playing area in the coordinate system of the computer screen; or
The method comprises the steps of obtaining the coordinate position of a background video window in the coordinate system of a computer screen, and determining the relative position of a playing area which is completely positioned in the background video window and has the same height ratio with the background video bandwidth, the width of the playing area is not smaller than the width of the computer screen, and the height of the playing area is not smaller than the height of the computer screen in the background video window according to the coordinate position of the background video window in the coordinate system of the computer screen.
9. The method of claim 6, wherein the step of determining a playing area located in the background video window having the same height ratio as the background video width, a width not less than the computer screen width and a height not less than the computer screen height according to the background video width height information comprises:
under the condition that the height-width ratio of the background video is smaller than the width-height ratio of the computer screen, setting the width of the playing area as the width of the computer screen, and setting the height of the playing area as the quotient of the product of the width of the computer screen and the height of the background video and the width of the background video; or
And under the condition that the height ratio of the background video is greater than the width-height ratio of the computer screen, setting the height of the playing area as the height of the computer screen, and setting the width of the playing area as the quotient of the product of the height of the computer screen and the width of the background video and the height of the background video.
10. The method of claim 6, wherein:
the central axis of the background video window in the horizontal direction is superposed with the central axis of the computer screen in the horizontal direction; and/or
The central axis of the background video window in the vertical direction is superposed with the central axis of the computer screen in the vertical direction; and/or
The central axis of the playing area in the horizontal direction is superposed with the central axis of the computer screen in the horizontal direction; and/or
The central axis of the playing area in the vertical direction is superposed with the central axis of the computer screen in the vertical direction.
11. The method according to any one of claims 6 to 10, further comprising:
under the condition that a zoom instruction of a playing area is received, when the fact that a target playing area completely covers a computer screen is judged according to zoom information in the zoom instruction and current position information of the playing area, the playing area is adjusted to be the target playing area; or
And under the condition of receiving a playing area position adjusting instruction, when the playing area positioned at the target position is judged to completely cover the computer screen according to the playing area displacement information in the position adjusting instruction and the current position of the playing area in the computer screen, adjusting the playing area to the target position.
12. An apparatus for forming a background for a computer video desktop, the apparatus comprising:
the width and height acquisition module is used for acquiring background video width and height information of a computer video desktop;
the window setting module is used for setting a background video window which has the same aspect ratio as the background video width height ratio, the width not less than the width of a computer screen and the height not less than the height of the computer screen according to the background video width height information;
and the first video loading module is used for loading the background video in the background video window so as to form a background of a computer video desktop which completely covers a computer screen.
13. The apparatus of claim 12, wherein the obtain aspect module is specifically configured to:
and when a control instruction for enabling the background video window to adapt to the computer screen is received, acquiring the background video bandwidth height information of the computer video desktop.
14. The apparatus of claim 12, wherein the window setting module is specifically configured to:
under the condition that the height-width ratio of the background video is smaller than the width-height ratio of the computer screen, setting the width of a background video window as the width of the computer screen, and setting the height of the background video window as the quotient of the product of the width of the computer screen and the height of the background video and the width of the background video; or
And under the condition that the height-width ratio of the background video is greater than the width-height ratio of the computer screen, setting the height of the background video window as the height of the computer screen, and setting the width of the background video window as the quotient of the product of the height of the computer screen and the width of the background video and the height of the background video.
15. The apparatus of claim 12, wherein:
the central axis of the background video window in the horizontal direction is superposed with the central axis of the computer screen in the horizontal direction; and/or
The central axis of the background video window in the vertical direction is overlapped with the central axis of the computer screen in the vertical direction.
16. The apparatus of any one of claims 12 to 15, further comprising: a first zoom control module for
Under the condition of receiving a background video window zooming instruction, when judging that a target background video window completely covers a computer screen according to zooming information in the zooming instruction and width and height information of a current background video window, adjusting the background video window into the target background video window; or
Under the condition that a background video window position adjusting instruction is received, when the background video window positioned at the target position is judged to completely cover the computer screen according to the background video window displacement information in the position adjusting instruction and the current position of the background video window in the computer screen, the background video window is adjusted to the target position.
17. An apparatus for forming a computer video desktop background video, the apparatus comprising:
the width and height acquisition module is used for acquiring background video width and height information of a computer video desktop;
the device comprises a setting area module, a display area module and a display area module, wherein the setting area module is used for determining a playing area which is positioned in a background video window and has the same height ratio with the background video, the width of the playing area is not less than the width of a computer screen and the height of the playing area is not less than the height of the computer screen according to the height information of the background video, at least one frame of the background video window is positioned on the outer side of the computer screen, and at least one frame of the background video window is positioned on the outer side of;
and the second video loading module is used for loading the background video in the playing area of the background video window.
18. The apparatus of claim 17, wherein the obtain aspect module is specifically configured to:
and when a control instruction for adapting the playing area to the computer screen is received, acquiring background video bandwidth height information of the video desktop of the computer.
19. The apparatus of claim 17, wherein the setup region module is specifically configured to:
determining the coordinate position of a playing area which has the same height ratio with the background video width, is not less than the computer screen width and is not less than the computer screen height in a coordinate system of the computer screen according to the background video width height information, and determining the coordinate position of a background video window completely containing the playing area in the coordinate system of the computer screen according to the coordinate position of the playing area in the coordinate system of the computer screen; or
The method comprises the steps of obtaining the coordinate position of a background video window in the coordinate system of a computer screen, and determining the relative position of a playing area which is completely positioned in the background video window and has the same height ratio with the background video bandwidth, the width of the playing area is not smaller than the width of the computer screen, and the height of the playing area is not smaller than the height of the computer screen in the background video window according to the coordinate position of the background video window in the coordinate system of the computer screen.
20. The apparatus of claim 17, wherein the setup region module is specifically configured to:
under the condition that the height-width ratio of the background video is smaller than the width-height ratio of the computer screen, setting the width of the playing area as the width of the computer screen, and setting the height of the playing area as the quotient of the product of the width of the computer screen and the height of the background video and the width of the background video; or
And under the condition that the height ratio of the background video is greater than the width-height ratio of the computer screen, setting the height of the playing area as the height of the computer screen, and setting the width of the playing area as the quotient of the product of the height of the computer screen and the width of the background video and the height of the background video.
21. The apparatus of claim 17, wherein:
the central axis of the background video window in the horizontal direction is superposed with the central axis of the computer screen in the horizontal direction; and/or
The central axis of the background video window in the vertical direction is superposed with the central axis of the computer screen in the vertical direction; and/or
The central axis of the playing area in the horizontal direction is superposed with the central axis of the computer screen in the horizontal direction; and/or
The central axis of the playing area in the vertical direction is superposed with the central axis of the computer screen in the vertical direction.
22. The apparatus of any one of claims 17 to 21, further comprising: a second zoom control module for
Under the condition that a zoom instruction of a playing area is received, when the fact that a target playing area completely covers a computer screen is judged according to zoom information in the zoom instruction and current position information of the playing area, the playing area is adjusted to be the target playing area; or
And under the condition of receiving a playing area position adjusting instruction, when the playing area positioned at the target position is judged to completely cover the computer screen according to the playing area displacement information in the position adjusting instruction and the current position of the playing area in the computer screen, adjusting the playing area to the target position.
CN201611201483.7A 2016-12-23 2016-12-23 Method and device for forming background of computer video desktop Active CN106873963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611201483.7A CN106873963B (en) 2016-12-23 2016-12-23 Method and device for forming background of computer video desktop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611201483.7A CN106873963B (en) 2016-12-23 2016-12-23 Method and device for forming background of computer video desktop

Publications (2)

Publication Number Publication Date
CN106873963A CN106873963A (en) 2017-06-20
CN106873963B true CN106873963B (en) 2020-03-20

Family

ID=59163903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611201483.7A Active CN106873963B (en) 2016-12-23 2016-12-23 Method and device for forming background of computer video desktop

Country Status (1)

Country Link
CN (1) CN106873963B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107404482A (en) * 2017-07-25 2017-11-28 闫如月 A kind of method of the real-time outdoor scene video desktop background of multiple-camera
CN112256372B (en) * 2020-10-20 2023-12-26 北京字跳网络技术有限公司 Information processing method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101344300B1 (en) * 2011-01-03 2013-12-23 주식회사 케이티 Method of providing user interface of mobile terminal and apparatus for the same
CN103608759B (en) * 2012-05-31 2019-05-14 都特媒体有限公司 The method of Dynamically Announce personalization main screen in equipment
CN104572156A (en) * 2013-10-27 2015-04-29 马文超 Real-time dynamic live-action desktop updating system

Also Published As

Publication number Publication date
CN106873963A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN110446110B (en) Video playing method, video playing device and storage medium
EP3520081B1 (en) Techniques for incorporating a text-containing image into a digital image
US8656306B2 (en) Apparatus and method for displaying image
CN110377264B (en) Layer synthesis method, device, electronic equipment and storage medium
US10032291B2 (en) Methods and devices for interface display
JP2020533710A (en) Image stitching method and device, storage medium
US9756282B2 (en) Method and apparatus for processing a video signal for display
WO2011091739A1 (en) Focal element display method and device and digital television receiving terminal
US11341706B2 (en) Virtual scene display method and apparatus, and storage medium
US20080267582A1 (en) Image processing apparatus and image processing method
CN113645494B (en) Screen fusion method, display device, terminal device and server
CN107924690B (en) Method, apparatus and system for facilitating navigation in extended scenarios
CN112153479A (en) Method and device for adjusting bullet screen area, electronic equipment and storage medium
CN112099887A (en) Interface adjusting method and device, computer equipment and computer readable storage medium
CN113342248A (en) Live broadcast display method and device, storage medium and electronic equipment
CN113891167B (en) Screen projection method and electronic equipment
CN106873963B (en) Method and device for forming background of computer video desktop
CN111782165A (en) Image processing method, image processing apparatus, server, and storage medium
US7774712B2 (en) Methods and systems for displaying an enlarged image
US9875521B2 (en) Image output apparatus, image output method, and program
JP2010026021A (en) Display device and display method
CN111064983B (en) Display device
CN103616996B (en) It is a kind of to show the mouse display methods and system for covering content
CN109104627B (en) Focus background generation method, storage medium, device and system of android television
CN113126942B (en) Method and device for displaying cover picture, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant