The present invention relates video communication technologies, and more particularly, to video picture management equipment and a method for video picture management.
During video chat, there are two video windows generally. One is a remote window, adapted to display remote video images, and the other is a local window, adapted to display local video images. The remote video data acquired from the network will be displayed on the remote window, while the video data acquired from the local video data acquiring equipment such as a camera will be displayed on the local window. As shown in
The Picture-In-Picture (PIP) video image mode used during the video chat refers to displaying video images of the two parties of the video chat on a video window; one is displayed as a main picture with the size of video window, and the other is displayed as a sub-picture with the designated size and covering the main picture. In this way, a user may see his video image and the remote video image simultaneously in the same video window. The PIP mode is shown in
Conventionally, the PIP video image mode of the video chat is performed in a window overlapping way. More specifically, one video display window is reduced to a designated size and the size of the other window is not changed, and the reduced window overlaps the other window of which the size is not changed. At this point, the window with unchanged size is the main picture of the PIP mode and the reduced window is the sub-picture of the PIP mode. In this way, the picture-in-picture effect can be achieved in vision.
The PIP performed in the window overlapping way can only display a single PIP mode and has no more extensions such as the special effect of changing the shape of the sub-picture. Because windows are overlapped, there may be the case that windows of other programs overlap between the main picture and the sub-picture, thus affecting the display effect of the PIP and making the PIP display unstable. To perform the PIP mode, the window for displaying the sub-picture is reduced, which makes it impossible to see the video image content in the sub-picture with original size on this window.
The present invention provides a video picture management equipment and method, so as to solve the problem about that the display mode is simple and the display effect is unstable during performing the PIP for the video chat in the prior art.
The technical scheme provided by the present invention is described below.
Video picture management equipment includes: a first display control module and a second display control module which are connected to each other; where
the first display control module is adapted to display first video data on first video window, and display second video data on the first video window at the same time according to a requirement; and
the second display control module is adapted to display the second video data on a second video window, and display the first video data on the second video window at the same time according to a requirement.
A method for video picture management includes:
acquiring first video data from a first video source, acquiring second video data from a second video source, and displaying the first video data and the second video data on one window;
where the first video data is displayed as a main picture and the second video data is displayed as a sub-picture.
By using the technical scheme of the present invention, the remote video data and the local video data are synchronously transmitted in the remote display control module and in the local display control module. By the synchronous processing of data, the remote video image and the local video image are synchronously displayed in the remote video window or in the local video window, realizing the display of various PIP modes. Two video images are displayed in the same video window by data processing, which avoids the harmful effects caused by the window overlapping; furthermore, the present invention may perform the special effect processing for the sub-picture, which avoids the affect to the main picture caused during the shape change or drift of the sub-picture.
The present invention provides a video picture manager for performing various PIP modes, so as to control the exchange and display between the network video data and the local video data effectively in the PIP mode and perform various PIP display effects as shown in
A remote video data acquiring unit acquires a remote video data frame from the network connected to the terminal and buffers the remote video data frame in a remote video data buffer, and indicates the remote video data transmission control unit to acquire the remote video data frame from the remote video data buffer and sends the video data frame to the remote video picture control unit. Similarly, a local video data acquiring unit acquires a video data frame from video data acquiring equipment connected to the terminal and buffers the video data frame in the local video data buffer, and indicates the local video data transmission control unit to acquire a video data frame from the buffer and sends the video data frame to the local video picture control unit.
The remote display control module and the local display control module respectively need to acquire the video data of each other simultaneously, which requires effective control of the video data transmission to perform various PIP modes. Because of the above:
Above all, the remote display control module and the local display control module respectively further include a corresponding data buffer zone and logic control. The remote display control module further includes a local video data buffer and a local video data receiving control unit. The local video data receiving control unit is adapted to control whether to receive the local video data; the remote video data transmission control unit further includes a data transmission control module to control whether to transmit the copied remote video data to the local display control module. In the remote video picture control unit, the remote video image from the remote video data transmission control unit and the local video image from the local video data receiving control unit are combined to be a PIP image displayed in the remote video window.
Similarly, the local display control module further includes a remote video data buffer and a remote video data receiving control unit. The remote video data receiving control unit is adapted to control whether to receive the remote video data. The local video data transmission control unit further includes a data transmission control module to control whether to transmit the copied local video data to the remote display control module. In the local video picture control unit, the remote video image from the remote video data receiving control unit and the local video image from the local video data transmission control unit are combined to be a PIP image displayed in the local video window. In this way, the data transmission can be performed through such logic control, and the PIP video image is realized.
Furthermore, a mode operation instruction is established in the operation instruction parsing module, and a corresponding relation between each logic control and the operation instruction is also established in the operation instruction parsing module, so as to perform the data control and the switch between different PIP modes according to the operation instruction. The operation instruction is the type of the PIP mode sent by a user to the system, such as non-PIP, PIP mode 1, PIP mode 2.
All logic controls are disabled if the non-PIP mode is used. In this way, there is no data transmission, and the local video window only displays a local video picture while the remote video window only displays a remote video picture. If a PIP mode is used and the PIP need be displayed in the remote window, the data reception of the remote display control module is enabled by the remote video data receiving control unit of the remote display control module, and the data transmission of the local display control module is enabled by the local video data transmission control unit of the local display control module. In other words, the data transmission from the local display control module to the remote display control module is enabled. In this way, the remote display control module can acquire the local video data from the local display control module and acquire the remote video data from the network, and therefore, the PIP mode is displayed in the remote video window under the control of the remote video picture control unit.
As shown in
In the remote video window and the local video window, the location information of the main picture and the sub-picture is respectively set in the processing flow. If the special processing such as shape change or drift is needed by the sub-picture, sub-flow related to the shape change is preset in the processing flow.
The structure shown in
As shown in
Besides the above for performing a PIP mode, a common display mode shown in
The corresponding relations between instructions for various display modes may be shown in Table 1.
According to Table 1, the remote display control module can acquire the remote video data, the local video data is transmitted from the local display control module to the remote display control module, and the PIP can therefore be realized in the remote window. The local display control module can acquire the local video data, the remote video data is transmitted from the remote display control module to the local display control module, and the PIP can therefore be realized in the local window.
However, because the data flows relate to two threads of data reception and can not be performed by a simple control, it is required to create a mode instruction. The operation instruction parsing module of a user parses a user instruction and delivers a logic control command to related function units of the two control modules respectively at the same time according to a mode set by the user, so that the data transmission and processing is implemented.
In the above video picture manager, the remote video picture control module of the main picture and the local video picture control module of the main picture respectively decode a remote video data frame and a local video data frame upon simultaneously acquiring the remote video data frame and the local video data frame. According to preset flow, one of the remote video data frame and the local video data frame is displayed as a main picture, and the other is displayed as a sub-picture. The sub-picture is directly drawn at the set location of the video window of the main picture and displayed in synchronization with the main picture. The default display is configured as the non-PIP display if a user initiates a video picture manager. At this point, the control flow of the remote video picture control module of the main picture or the local video picture control module of the main picture is shown in
S101: Create a video display window at the set location of the display memory;
S102: Receive a video data frame sent by a data receiving control module;
S103: Decode the video data frame;
S104: Draw and display the decoded data in the video display window according to the set amplification multiple;
S105: Return to S102.
The S101 to S105 are executed circularly. The whole main picture is displayed in the video window by the cooperation of the video window creating subunit, the main picture video data frame decoding subunit and the main picture video data processing subunit.
The remote video picture control module of the main picture or the local video picture control module of the main picture controls the display of a PIP mode upon receiving a switch instruction of display modes from a user. Supposing that the type of the control instruction is to display a remote video in the main picture of the remote video window and display a local video in the sub-picture of the remote video window, as shown in
S201: The main picture video data frame decoding subunit and the sub-picture video data frame decoding subunit receive a corresponding control instruction;
S202: The main picture video data frame decoding subunit acquires remote video data frames frame by frame; the sub-picture video data frame decoding subunit acquires local video data frames frame by frame;
S203: The main picture video data frame decoding subunit and the sub-picture video data frame decoding subunit synchronously decode local video data frames and remote video data frames;
S204: The main picture video data processing subunit and the sub-picture video data processing subunit draw a main picture and a sub-picture respectively at the designated locations of the video window, and display them synchronously; and the process returns to S202.
The size and location information of the main picture video window, the location information of the sub-picture and the control flow for performing such special effect control as shape change or drift are preset in the processing flow. Because the main picture and the sub-picture are displayed in the same video window synchronously, special effects such as shape change or drift of the sub-picture do not affect the display effect of the main picture.
If the processing flow of the shape change of the sub-picture is preset, the flow is initiated in S204 to perform the corresponding processing for the video data of the sub-picture. The synchronous display technology of the main picture and the sub-picture as well as the shape change processing technology of the sub-picture in S204 may be performed by the DirectX video image processing technology or other video image processing technologies, which is well known by those skilled in the art and will not be described herein.
When receiving an instruction of switching to the non-PIP mode from a user, the process returns to S102 to perform circular control.
The forgoing is only described by taking one PIP display processing flow, and the processing flows of other PIP modes are the same as the forgoing, which will not be described herein.
The foregoing are only preferred embodiments of the present invention and are not for use in limiting the protection scope thereof. Any modification, equivalent replacement and improvement made under the present invention should be included in the protection scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
200510123948.7 | Nov 2005 | CN | national |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2006/002742 | Oct 2006 | US |
Child | 12121305 | US |