A kind of method, apparatus and readable storage medium storing program for executing carrying out multiwindow layout on the screen
Technical field
The present invention relates to a kind of method, apparatus and readable storage medium storing program for executing for carrying out multiwindow layout on the screen.
Background technique
Many products (such as video conferencing, demonstration switch) for meeting cooperation all support multiwindow function, that is, exist
The content from multiple video sources is shown simultaneously by multiple windows on the same screen.It is laid out in the multiwindow of some screens
In, the status of each child window is simultaneously unequal, such as the area that occupies of some child window is larger or some child window quilt
It is superimposed upon before remaining child window, this child window for being in more prominent position is known as main window by us.
Currently, there are two types of methods for the display methods of main window: 1, presetting, preset the fixed matching of key frame to some
Vision signal;2, it manually selects, user is matched main window to some required vision signal by manually selecting.Aforementioned two kinds
Mode or inflexible or cumbersome can not broadcast the vision signal promptly accessed on main window at once
It puts.
Summary of the invention
In order to solve above-mentioned the deficiencies in the prior art, the present invention provides a kind of side for carrying out multiwindow layout on the screen
Method, device and readable storage medium storing program for executing can play out the vision signal promptly accessed on main window at once.
The technical problems to be solved by the invention are achieved by the following technical programs:
A method of carrying out multiwindow layout on the screen, step includes:
It is key video sequence signal by turn-on time nearest definition video signal in at least two-path video signal of input;
The key video sequence signal is played out in the main window of screen.
Before the key video sequence signal is played out in the main window of screen, further includes: at least the two of screen
The main window is defined in a child window.
Further, it presets there are many window definition mode, the window definition mode is used for at least two of screen
In child window, the main window is defined according to respective pre-defined rule;Before defining the main window, further includes: described in selection
Window definition mode.
Further, the step of selecting the window definition mode include:
Receive window scheme instruction;
It is instructed according to the window scheme, switches corresponding window definition mode.
Further, it is preset in first window defining mode, the second window definition mode and third window definition mode
At least one, wherein
In first window defining mode, at least two child windows of screen, the maximum child window of window area is defined
For the main window;
In the second window definition mode, at least two child windows of screen, the child window of predetermined number is defined as institute
State main window;
In third window definition mode, at least two child windows of screen, the child window on predetermined window position is determined
Justice is the main window.
Further, it is preset with various video defining mode, the video defining mode is used for at least two-way in input
In vision signal, the key video sequence signal is defined according to respective pre-defined rule;Before defining the key video sequence signal, also
It include: the selection video defining mode.
Further, the step of selecting the video defining mode include:
Receive video mode instruction;
It is instructed according to the video mode, switches corresponding video defining mode.
Further, it is preset with the first video defining mode and the second window definition mode, wherein
In the first video defining mode, in at least two-path video signal of input, by the video that turn-on time is nearest
Signal definition is key video sequence signal;
In the second video defining mode, in at least two-path video signal of input, by the video of predetermined input interface
Signal definition is key video sequence signal.
A kind of device carrying out multiwindow layout on the screen, including processor and the storage being connected to the processor
Device, the computer program executed for the processor is stored in the memory, and the processor executes the computer program
When, carry out the above-mentioned method for carrying out multiwindow layout on the screen.
A kind of readable storage medium storing program for executing, stores the computer program executed for processor, and the processor executes the calculating
When machine program, the above-mentioned method for carrying out multiwindow layout on the screen is carried out.
The invention has the following beneficial effects: this method to have a variety of window definition modes and various video defining mode,
The main window and key video sequence signal can be defined automatically according to respective pre-defined rule, flexibly arranged in pairs or groups, it is easy to operate, and can incite somebody to action
Turn-on time nearest definition video signal is that key video sequence signal will can promptly be connect with playing out on the main window
The vision signal entered plays out on the main window at once.
Detailed description of the invention
Fig. 1 is the step block diagram of method provided by the invention;
Fig. 2 is the collocation schematic diagram of a variety of window definition modes and various video defining mode.
Fig. 3 is the functional block diagram of device provided by the invention.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawings and examples.
Embodiment one
A method of carrying out multiwindow layout on the screen, there are many window definition mode and a variety of views as shown in Fig. 2, default
Frequency defining mode.
The window definition mode is used at least two child windows of screen, is defined and is led according to respective pre-defined rule
Window;
The video defining mode is used in at least two-path video signal of input, is defined according to respective pre-defined rule crucial
Vision signal.
Specifically, preset window definition mode includes first window defining mode, the second window definition mode and third
At least one of window definition mode.
In first window defining mode, at least two child windows of screen, by the maximum child window of window area
It is defined as the main window.In first window defining mode, first each child window is identified in the entire picture of screen, then according to
Calculate corresponding window area according to pixel quantity shared by each child window, then to the window area of each child window into
Row compares, and is defined as the main window after filtering out the maximum child window of window area.
In the second window definition mode, at least two child windows of screen, the child window of predetermined number is defined
For the main window.In the second window definition mode, first each child window on screen is numbered by pre-defined rule, so
The number of each child window is compared afterwards, is defined as the main window after filtering out the child window of predetermined number.
In third window definition mode, at least two child windows of screen, by the sub- window on predetermined window position
Mouth is defined as the main window.In third window definition mode, each child window is first identified in the entire picture of screen, then
Corresponding the window's position is calculated according to pixel coordinate shared by each child window, then by the window's position of each child window
It is compared, is defined as the main window after filtering out the child window on predetermined window position.
Specifically, preset video defining mode include in the first video defining mode and the second video defining mode extremely
Few one kind.
It is in at least two-path video signal of input, turn-on time is nearest in the first video defining mode
Definition video signal is key video sequence signal.In the first video defining mode, first to each road vision signal of input
Input interface is monitored, to obtain the turn-on time of each road vision signal, then the turn-on time of more each road vision signal, sieve
The key video sequence signal is defined as after selecting turn-on time nearest vision signal.
In the second video defining mode, in at least two-path video signal of input, by predetermined input interface
Definition video signal is key video sequence signal.In the second video defining mode, first to each road vision signal of input
Input interface is monitored, and to obtain the corresponding vision signal of each input interface, then the input of more each road vision signal connects
Mouthful, the key video sequence signal is defined as after filtering out the vision signal of predetermined input interface.
This method is applied in a device as shown in Figure 3, which has at least two input interfaces, for the company of communicating
At least two video source devices are connect, to obtain at least two-path video signal, wherein vision signal is defined as key video sequence all the way
Signal;The device has at least one output interface, is used at least one screen of communication connection;Have at least two on same screen
A child window, to show that at least two-path video signal, one of child window is defined as main window simultaneously.
As shown in Figure 1, the step of this method, includes:
S101: window scheme instruction and/or video mode instruction are received;
In step S101, user carries out selection operation in the operation interface of software, to form the window scheme instruction
It is instructed with video mode.
S102: it is instructed according to the window scheme, switches corresponding window definition mode;And/or according to the video screen module
Formula instruction, switches corresponding video defining mode;
In step S102, identification judgement is carried out to window scheme instruction, if window scheme instruction is the first window
Mouth mode instruction, then switch to the first window defining mode, if window scheme instruction is that the second window scheme instructs,
The second window definition mode is then switched to, if window scheme instruction is that third window scheme instructs, switches to institute
State third window definition mode;Likewise, identification judgement is carried out to video mode instruction, if video mode instruction is
The instruction of first video mode, then switch to the first video defining mode, if video mode instruction is the second video screen module
Formula instruction, then switch to the second video defining mode.
S103: according to the window definition mode of switching, the main window is defined at least two child windows of screen;
And/or the video defining mode according to switching, the key video sequence signal is defined in at least two-path video signal of input.
S104: the key video sequence signal is played out in the main window of the screen.
This method has a variety of window definition modes and various video defining mode, can be automatic according to respective pre-defined rule
The main window and key video sequence signal are defined, is flexibly arranged in pairs or groups, it is easy to operate, and turn-on time nearest vision signal can be determined
Justice is key video sequence signal, can be by the vision signal promptly accessed at once in the master to play out on the main window
It is played out on window.
Embodiment two
A kind of device carrying out multiwindow layout on the screen, including processor and the memory being connected to the processor, institute
The computer program for storing in memory and executing for the processor is stated, when the processor executes the computer program, into
The method of multiwindow layout is carried out described in row embodiment one on the screen.
Embodiment three
A kind of readable storage medium storing program for executing, stores the computer program executed for processor, and the processor executes the computer journey
When sequence, the method for multiwindow layout is carried out described in progress embodiment one on the screen.
Embodiments of the present invention above described embodiment only expresses, the description thereof is more specific and detailed, but can not
Therefore limitations on the scope of the patent of the present invention are interpreted as, as long as skill obtained in the form of equivalent substitutions or equivalent transformations
Art scheme should all be fallen within the scope and spirit of the invention.