A method, device, equipment and medium for configuring a playback window of a spliced ​​screen

By matching the position information of the target play window in the splicing screen, determining its row and column identification after merge, and establishing a binding relationship, the problem of low configuration efficiency after merged play windows in the prior art is solved, and a more efficient play window configuration is achieved.

CN119356635BActive Publication Date: 2025-05-02HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411898652.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-05-02
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

After the playback window is merged, the existing splicing screen needs to be rebinded, resulting in low configuration efficiency.

Method used

By obtaining the pre-recorded position information of the target play window, including row and column identifiers, after the play window is merged, the target position information and the current play window are matched, the current row and column identifier of the target play window is determined, and the binding relationship between the video screen and row and column identifier is established.

Benefits of technology

It reduces the unbinding and reconfiguration time of binding relationships after the play window merge, and improves the configuration efficiency of the play window.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356635B_ABST
    Figure CN119356635B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a configuration method, device, equipment and medium for the playback window of a spliced ​​screen, which belongs to the technical field of spliced ​​screens. The electronic device can obtain the target position information of the target playback window bound to the video screen in the spliced ​​screen; determine the position information of each playback window currently included in the spliced ​​screen; match the target position information with the position information of each playback window currently included in the spliced ​​screen to obtain a matching result; based on the matching result, determine the row and column identifier of the target playback window in the spliced ​​screen, and establish a binding relationship between the video screen and the row and column identifier. After the playback windows in the spliced ​​screen are merged, the position information of the bound playback window can be matched with the position information of each playback window in the spliced ​​screen, so as to determine the current row and column identifier of the bound playback window in the spliced ​​screen, and then establish a binding relationship of the playback window based on the determined row and column identifier, which can improve the configuration efficiency of the playback window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of splicing screens, and in particular to a method, device, equipment and medium for configuring a playback window of a splicing screen. Background Art

[0002] The spliced ​​screen includes multiple screen units for displaying video images, and the video images are played in the playback window in the spliced ​​screen. Usually, one playback window is used to play one video image, and the user can also merge the playback windows according to actual usage needs to change the size of the playback window used to play the video image. For example, if the user wants to enlarge the video image played in a certain playback window, the user can merge the playback window with the adjacent playback window and play the video image through the merged playback window.

[0003] In the current related technology, after the playback windows are merged, the binding relationship between the playback window and the video screen is deleted, and the video screen needs to be bound to the merged video window again, so the configuration efficiency of the playback window is low. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, equipment and medium for configuring a playback window of a spliced ​​screen to improve the configuration efficiency of the playback window. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for configuring a playback window of a spliced ​​screen, the method comprising:

[0006] Acquire the target position information of the pre-recorded target playback window bound to the video screen in the spliced ​​screen, wherein the position information at least includes row and column identifiers;

[0007] After the play windows in the spliced ​​screen are merged, determining the position information of each play window currently included in the spliced ​​screen;

[0008] Matching the target position information with the position information of each playback window currently included in the spliced ​​screen to obtain a matching result;

[0009] Based on the matching result, the current row and column identifier of the target playback window in the spliced ​​screen is determined, and a binding relationship between the video picture and the current row and column identifier is established.

[0010] Optionally, the step of determining the position information of each playback window currently included in the spliced ​​screen includes:

[0011] Obtaining vertex coordinates and width and height information of preset vertices of each playback window currently included in the spliced ​​screen;

[0012] For each playback window currently included in the spliced ​​screen, according to the vertex coordinates of the preset vertices of each playback window currently included in the spliced ​​screen and the width and height information, determine a first number of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second number of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window;

[0013] Based on the first number and the second number, a row and column identifier of the playback window is determined.

[0014] Optionally, the step of determining, for each playback window currently included in the spliced ​​screen, according to vertex coordinates of preset vertices and width and height information of each playback window currently included in the spliced ​​screen, a first number of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second number of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window, comprises:

[0015] For each playback window currently included in the spliced ​​screen, determine, from among the playback windows currently included in the spliced ​​screen, a first candidate window whose corresponding ordinate is smaller than the ordinate of the playback window, and a second candidate window whose corresponding ordinate is smaller than the ordinate of the playback window;

[0016] Determine a first number of play windows that belong to the same column as the play window and are closer to the abscissa axis according to the width information of the play window, the abscissa of the play window, the width information of the first candidate window, and the abscissa of the first candidate window;

[0017] According to the height information of the playback window, the vertical coordinate of the playback window, the height information of the second candidate window and the vertical coordinate of the second candidate window, determine the second number of playback windows that belong to the same row as the playback window and are closer to the vertical coordinate axis.

[0018] Optionally, the step of determining the row and column identifier of the playback window based on the first number and the second number includes:

[0019] Determine a row identifier of the playback window based on a sum of the first number and 1;

[0020] Based on the sum of the second number and 1, the column identifier of the playback window is determined.

[0021] Optionally, the position information also includes vertex coordinates;

[0022] The step of matching the target position information with the position information of each playback window currently included in the spliced ​​screen to obtain a matching result includes:

[0023] Matching the vertex coordinates of the target play window with the vertex positions of each play window currently included in the spliced ​​screen to obtain a vertex matching result;

[0024] When the vertex matching result indicates that the target playback window is merged, the row and column identifiers of the target playback window are matched with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result.

[0025] Optionally, the step of matching the vertex coordinates of the target playback window with the vertex positions of each playback window currently included in the spliced ​​screen to obtain a vertex matching result includes:

[0026] Determine whether the vertex coordinates of the target playback window are at positions corresponding to the splicing screen at all the vertex positions of each playback window currently included in the splicing screen, and obtain a vertex matching result; and / or,

[0027] The step of matching the row and column identifiers of the target playback window with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result includes:

[0028] Among the row and column identifiers of the various play windows currently included in the spliced ​​screen, it is determined whether the row and column identifier of the target play window exists, and an identifier matching result is obtained.

[0029] Optionally, the step of determining the current row and column identifier of the target playback window in the spliced ​​screen based on the matching result includes:

[0030] When the vertex matching result indicates that the target playback window has not been merged, or the identifier matching result indicates that the row and column identifier of the target playback window exists, determining the current row and column identifier of the target playback window in the spliced ​​screen as the row and column identifier of the target playback window;

[0031] In the case that the row and column identifiers of the target play window indicated by the identifier matching result do not exist, determining an area including the coordinates of each vertex of the target play window in the area currently occupied by each play window included in the spliced ​​screen;

[0032] The row and column identifiers of the play window corresponding to the determined area are determined as the current row and column identifiers of the target play window in the spliced ​​screen.

[0033] Optionally, the step of determining the area including the coordinates of each vertex of the target playback window in the area currently occupied by each playback window included in the spliced ​​screen includes:

[0034] In each playback window currently included in the spliced ​​screen, determine a third candidate window whose corresponding row identifier is smaller than the row identifier of the target playback window, and determine a fourth candidate window whose corresponding column identifier is smaller than the column identifier of the target playback window;

[0035] An area including coordinates of each vertex of the target playback window is determined from the areas occupied by the third candidate window and the fourth candidate window.

[0036] In a second aspect, an embodiment of the present application provides a device for configuring a playback window of a spliced ​​screen, the device comprising:

[0037] An information acquisition module, used to acquire the target position information of the pre-recorded target playback window bound to the video screen in the spliced ​​screen, wherein the position information at least includes a row and column identifier;

[0038] An information determination module, used to determine the position information of each playback window currently included in the splicing screen after the playback windows in the splicing screen are merged;

[0039] An information matching module, used for matching the target position information with the position information of each playback window currently included in the splicing screen to obtain a matching result;

[0040] The relationship establishment module is used to determine the current row and column identifier of the target playback window in the spliced ​​screen based on the matching result, and establish a binding relationship between the video screen and the current row and column identifier.

[0041] Optionally, the information determination module includes:

[0042] An information acquisition submodule, used to acquire vertex coordinates and width and height information of preset vertices of each playback window currently included in the spliced ​​screen;

[0043] A quantity determination submodule, for determining, for each playback window currently included in the spliced ​​screen, a first quantity of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second quantity of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window, according to vertex coordinates of preset vertices of each playback window currently included in the spliced ​​screen and width and height information;

[0044] The first identifier determination submodule is used to determine the row and column identifiers of the playback window based on the first number and the second number.

[0045] Optionally, the quantity determination submodule includes:

[0046] A first candidate window determining unit is used to determine, for each playback window currently included in the spliced ​​screen, a first candidate window whose corresponding ordinate is smaller than the ordinate of the playback window, and a second candidate window whose corresponding ordinate is smaller than the ordinate of the playback window from among the playback windows currently included in the spliced ​​screen;

[0047] a first number determining unit, configured to determine a first number of play windows that belong to the same column as the play window and are closer to the abscissa axis according to the width information of the play window, the abscissa of the play window, the width information of the first candidate window, and the abscissa of the first candidate window;

[0048] The second quantity determination unit is used to determine the second quantity of playback windows that belong to the same row as the playback window and are closer to the vertical coordinate axis based on the height information of the playback window, the vertical coordinate of the playback window, the height information of the second alternative window, and the vertical coordinate of the second alternative window.

[0049] Optionally, the first identification determination submodule includes:

[0050] a row identifier determining unit, configured to determine a row identifier of the playback window based on a sum of the first number and 1;

[0051] a column identifier determining unit, configured to determine the column identifier of the playback window based on the sum of the second number and 1; and / or,

[0052] The position information also includes vertex coordinates;

[0053] The information matching module includes:

[0054] A first result determination submodule is used to match the vertex coordinates of the target playback window with the vertex positions of each playback window currently included in the spliced ​​screen to obtain a vertex matching result;

[0055] The second result determination submodule is used to match the row and column identifiers of the target playback window with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result when the vertex matching result indicates that the target playback window is merged.

[0056] Optionally, the first result determination submodule includes:

[0057] A first result determination unit is used to determine whether the vertex coordinates of the target playback window are at positions corresponding to the splicing screen, and whether all of the vertex positions of the playback windows currently included in the splicing screen are vertex positions, and obtain a vertex matching result;

[0058] The second result determination submodule includes:

[0059] The second result determination unit is used to determine whether the row and column identifier of the target playback window exists among the row and column identifiers of each playback window currently included in the spliced ​​screen, and obtain an identifier matching result.

[0060] Optionally, the relationship establishing module includes:

[0061] A second identifier determination submodule is used to determine the current row and column identifier of the target playback window in the spliced ​​screen as the row and column identifier of the target playback window when the vertex matching result indicates that the target playback window has not been merged, or when the identifier matching result indicates that the row and column identifier of the target playback window exists;

[0062] An area determination submodule, used for determining an area including the coordinates of each vertex of the target playback window in an area currently occupied by each playback window included in the spliced ​​screen when the row and column identifiers representing the target playback window in the identifier matching result do not exist;

[0063] The third identifier determination submodule is used to determine the row and column identifier of the play window corresponding to the determined area as the current row and column identifier of the target play window in the spliced ​​screen.

[0064] Optionally, the region determination submodule includes:

[0065] A second candidate window determination unit is used to determine, among the playback windows currently included in the spliced ​​screen, a third candidate window whose corresponding row identifier is smaller than the row identifier of the target playback window, and to determine a fourth candidate window whose corresponding column identifier is smaller than the column identifier of the target playback window;

[0066] The area determination unit is used to determine an area including the coordinates of each vertex of the target playback window from the areas occupied by the third candidate window and the fourth candidate window.

[0067] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0068] Memory, used to store computer programs;

[0069] The processor is used to implement any method described in the first aspect when executing a program stored in the memory.

[0070] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method described in the first aspect is implemented.

[0071] Beneficial effects of the embodiments of the present application:

[0072] In the scheme provided by the embodiment of the present application, the electronic device can obtain the target position information of the target playback window bound to the video screen in the splicing screen, wherein the position information at least includes the row and column identifier; after the playback windows in the splicing screen are merged, the position information of each playback window currently included in the splicing screen is determined; the target position information is matched with the position information of each playback window currently included in the splicing screen to obtain a matching result; based on the matching result, the current row and column identifier of the target playback window in the splicing screen is determined, and a binding relationship between the video screen and the current row and column identifier is established. After the playback windows in the splicing screen are merged, the position information of the bound playback window can be matched with the position information of each playback window in the splicing screen, so as to determine the current row and column identifier of the bound playback window in the splicing screen, and then establish a binding relationship of the playback window based on the determined row and column identifier. It is not necessary to unbind all the bound playback windows after the playback windows are merged, and then establish a binding relationship, which can reduce the time required to unbind and reconfigure the playback windows after the playback windows are merged, and can improve the configuration efficiency of the playback windows. Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0074] Figure 1 A flowchart of a method for configuring a playback window of a spliced ​​screen provided in an embodiment of the present application;

[0075] Figure 2 for Figure 1 A specific flow chart of step S102 in the illustrated embodiment;

[0076] Figure 3 for Figure 2 A specific flow chart of step S202 in the illustrated embodiment;

[0077] Figure 4 Based on Figure 1A schematic diagram of a spliced ​​screen of the illustrated embodiment;

[0078] Figure 5 for Figure 2 Another specific flow chart of step S202 in the illustrated embodiment;

[0079] Figure 6 for Figure 2 A specific flow chart of step S203 in the illustrated embodiment;

[0080] Figure 7 for Figure 1 A specific flow chart of step S103 in the illustrated embodiment;

[0081] Figure 8 Based on Figure 1 A schematic diagram of a row and column diagram of a spliced ​​screen in the illustrated embodiment;

[0082] Fig. 9 for Figure 1 A specific flow chart of step S104 in the illustrated embodiment;

[0083] Fig.10 for Fig. 9 A specific flow chart of step S903 in the illustrated embodiment;

[0084] Fig.11 Based on Figure 1 A flow chart of the configuration method of the playback window of the spliced ​​screen of the embodiment shown;

[0085] Figure 12 (a) is based on Figure 1 A first schematic diagram of merging playback windows in the illustrated embodiment;

[0086] Figure 12(b) is based on Figure 1 A second schematic diagram of merging playback windows in the illustrated embodiment;

[0087] Figure 12(c) is based on Figure 1 A third schematic diagram of merging playback windows in the illustrated embodiment;

[0088] Fig.13 Based on Figure 1 A schematic diagram of a spliced ​​screen model diagram of the illustrated embodiment;

[0089] Fig.14 A schematic diagram of the structure of a device for configuring a playback window of a spliced ​​screen provided in an embodiment of the present application;

[0090] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0091] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0092] In order to improve the configuration efficiency of the play window, the embodiment of the present application provides a configuration method, device, electronic device, computer-readable storage medium and computer program product for the play window of a spliced ​​screen. The following first introduces a configuration method for the play window of a spliced ​​screen provided by the embodiment of the present application.

[0093] The configuration method of the playback window of a spliced ​​screen provided in the embodiment of the present application can be applied to any electronic device that needs to configure the playback window of the spliced ​​screen, for example, it can be an image processor, an image processor, a processing device, etc., which is not specifically limited here. For the sake of clarity, it is subsequently referred to as an electronic device in this article.

[0094] like Figure 1 As shown, a method for configuring a playback window of a spliced ​​screen, the method comprising:

[0095] S101, obtaining the target position information of the target playback window bound to the video screen in advance in the spliced ​​screen;

[0096] Wherein, the position information at least includes row and column identifiers.

[0097] S102, after the play windows in the spliced ​​screen are merged, determining the position information of each play window currently included in the spliced ​​screen;

[0098] S103, matching the target position information with the position information of each playback window currently included in the spliced ​​screen to obtain a matching result;

[0099] S104, based on the matching result, determine the current row and column identifier of the target playback window in the spliced ​​screen, and establish a binding relationship between the video image and the current row and column identifier.

[0100] It can be seen that in the embodiment of the present application, the electronic device can obtain the target position information of the target playback window bound to the video screen in the splicing screen, wherein the position information at least includes the row and column identifier; after the playback windows in the splicing screen are merged, the position information of each playback window currently included in the splicing screen is determined; the target position information is matched with the position information of each playback window currently included in the splicing screen to obtain a matching result; based on the matching result, the current row and column identifier of the target playback window in the splicing screen is determined, and a binding relationship between the video screen and the current row and column identifier is established. After the playback windows in the splicing screen are merged, the position information of the bound playback window can be matched with the position information of each playback window in the splicing screen, so as to determine the current row and column identifier of the bound playback window in the splicing screen, and then establish a binding relationship of the playback window based on the determined row and column identifier. It is not necessary to unbind all the bound playback windows after the playback windows are merged, and then establish a binding relationship, which can reduce the time required to unbind and reconfigure the playback windows after the playback windows are merged, and can improve the configuration efficiency of the playback windows.

[0101] A splicing screen is a screen wall composed of multiple LCD (Liquid Crystal Display) screen units or LED (Light-Emitting Diode) screen units. The splicing control device can combine the output of video images transmitted by multiple video devices into an ultra-high-resolution image, and output the image to the splicing screen. The splicing screen can display multiple video images through multiple playback windows. Among them, the splicing control device can support the simultaneous access of multiple video devices.

[0102] Users can merge the playback windows of the spliced ​​screen according to actual usage needs. In one scenario, when dividing the playback window of the spliced ​​screen, the playback window will be divided to the right and downward starting from the vertex in the upper left corner of the spliced ​​screen. If the height of the spliced ​​screen cannot be divided by the height of the playback window, or the width of the spliced ​​screen cannot be divided by the width of the playback window, then there may be a black border in the rightmost column or the bottom row of the spliced ​​screen. If an additional output port is bound to the black border, it will increase costs. In order to save costs, users can merge the black border with the adjacent playback window, and the merged black border and the playback window correspond to the same output port.

[0103] In one embodiment, the electronic device can display a schematic diagram of the spliced ​​screen through a front-end program interface, and the schematic diagram can reflect the size and position of each playback window included in the spliced ​​screen. The user can select multiple playback windows in the schematic diagram and issue a merge instruction, and the electronic device will merge the multiple playback windows selected by the user.

[0104] Assuming that the spliced ​​screen includes m×n play windows, and the user issues a merge command for multiple play windows in the program interface, the electronic device will merge the multiple play windows selected by the user. Then, the spliced ​​screen will display the video screen through less than m×n play windows.

[0105] In step S101, the electronic device may obtain the target position information of the target playback window bound to the video screen in the spliced ​​screen that is recorded in advance. The position information may include at least row and column identifiers. The row and column identifiers may be used to represent the row and column numbers of the playback window in the spliced ​​screen. The row and column identifiers may be numbers, letters, a combination of numbers and letters, and so on.

[0106] In one embodiment, the row and column identifiers may be row number-column number. For example, assuming that play window A is located at row 3 and column 2 in the spliced ​​screen, the row and column identifiers of play window A may be 3-2. In another embodiment, the row and column identifiers may be letters corresponding to the row number-letters corresponding to the column number. For example, assuming that play window B is located at row 2 and column 1 in the spliced ​​screen, the letter corresponding to 2 is b, and the letter corresponding to 1 is a, then the row and column identifiers of play window B may be ba.

[0107] After the playback windows of the spliced ​​screen are merged, in order to determine the arrangement of the playback windows of the spliced ​​screen, the electronic device can determine the position information of each playback window currently included in the spliced ​​screen, that is, execute step S102. In one embodiment, the electronic device can determine the row and column identifiers of each playback window currently included in the spliced ​​screen. The device for merging the playback windows of the spliced ​​screen can be the above-mentioned electronic device or other devices, which are not specifically limited here.

[0108] Before and after the playback windows are merged, the following three situations may occur for the target playback window: in the first situation, the target playback window is not merged; in the second situation, the target playback window is merged, and the row and column identifiers corresponding to the target playback window still exist in the row and column identifiers of the various playback windows currently included in the splicing screen; in the third situation, the target playback window is merged, and the row and column identifiers corresponding to the target playback window do not exist in the row and column identifiers of the various playback windows currently included in the splicing screen.

[0109] In the first two cases, since the row and column identifiers of the target play window still exist after the play windows are merged, there is no need to re-determine the row and column identifiers of the target play window. Therefore, in order to determine whether the row and column identifiers of the target play window exist after the play windows are merged, the electronic device can match the target position information with the position information of each play window currently included in the spliced ​​screen to obtain a matching result, that is, execute step S103.

[0110] Next, the electronic device can determine the current row and column identifiers of the target playback window in the spliced ​​screen based on the matching result. Specifically, if the matching result indicates that the row and column identifiers of the target playback window still exist after the playback windows are merged, the electronic device can use the row and column identifiers of the target playback window as the current row and column identifiers of the target playback window in the spliced ​​screen; if the matching result indicates that the row and column identifiers of the target playback window do not exist after the playback windows are merged, the electronic device can re-determine the current row and column identifiers of the target playback window.

[0111] For example, assuming that the row and column identifier of the target playback window is 2-1, after the playback windows in the spliced ​​screen are merged, the spliced ​​screen includes playback windows 1 to 4, and the row and column identifiers are 1-1, 1-2, 2-1, and 3-1, respectively. Since the row and column identifier of the target playback window still exists after the playback windows are merged, it can be determined that the row and column identifier of the target playback window is 2-1.

[0112] After determining the current row and column identifier of the target playback window, the electronic device can establish a binding relationship between the video screen and the current row and column identifier. Specifically, when the row and column identifier of the target playback window is different from the current row and column identifier, the electronic device can unbind the row and column identifier of the target playback window from the video screen, and establish a binding relationship between the current row and column identifier and the video screen. When the row and column identifier of the target playback window is the same as the current row and column identifier, the electronic device can retain the binding relationship between the video screen and the current row and column identifier.

[0113] For example, assuming that the row and column identifier of the target playback window is 4-2, after the playback windows are merged, it is determined that the current row and column identifier of the target playback window is still 4-2, then the electronic device can retain the binding relationship between the row and column identifier 4-2 and the video screen. For another example, assuming that the row and column identifier of the target playback window is 4-2, after the playback windows are merged, it is determined that the current row and column identifier of the target playback window is 3-2, then the electronic device can unbind the video screen from the row and column identifier 3-2, and establish a binding relationship between the row and column identifier 3-2 and the video screen.

[0114] It can be seen that in the embodiment of the present application, after the playback windows in the spliced ​​screen are merged, the position information of the bound playback windows can be matched with the position information of each playback window in the spliced ​​screen, so as to determine the current row and column identifiers of the bound playback windows in the spliced ​​screen, and then establish the binding relationship of the playback windows based on the determined row and column identifiers, thereby avoiding the redundant operation of unbinding all the bound playback windows and then establishing the binding relationship after the playback windows are merged, which can reduce the time required to unbind and reconfigure the playback windows after the playback windows are merged, and can improve the configuration efficiency of the playback windows.

[0115] As an implementation method of the present application, Figure 2 As shown, the above step of determining the position information of each playback window currently included in the spliced ​​screen may include:

[0116] S201, obtaining vertex coordinates and width and height information of preset vertices of each playback window currently included in the spliced ​​screen;

[0117] The electronic device can obtain the vertex coordinates and width and height information of the preset vertices of each playback window currently included in the spliced ​​screen. The preset vertex can be a vertex at a preset position of the playback window. For example, the preset vertex can be the upper left vertex, the upper right vertex, the lower left vertex, or the lower right vertex of the playback window.

[0118] The vertex coordinates of the preset vertex may be the coordinates of the preset vertex in the splicing screen coordinate system. The splicing screen coordinate system is a plane rectangular coordinate system established with the preset splicing screen vertex as the coordinate origin and the two outer edges of the splicing screen intersecting at the coordinate origin as the coordinate axes. Among them, the preset splicing screen vertex may be the upper left vertex, the upper right vertex, the lower left vertex or the lower right vertex of the splicing screen. For example, the splicing screen coordinate system may be established with the upper left vertex of the splicing screen as the coordinate origin, the straight line passing through the coordinate origin to the right as the horizontal coordinate axis, and the straight line passing through the coordinate origin downward as the vertical coordinate axis.

[0119] S202, for each playback window currently included in the spliced ​​screen, determine, according to vertex coordinates of preset vertices and width and height information of each playback window currently included in the spliced ​​screen, a first number of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second number of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window;

[0120] Assuming that in the column where a certain play window is located, each play window is sorted in positive order according to the distance between the horizontal axis, then the sequence number of the play window is the row number where the play window is located in the spliced ​​screen. Similarly, assuming that in the row where a certain play window is located, each play window is sorted in positive order according to the distance between the vertical axis, then the sequence number of the play window is the column number where the play window is located in the spliced ​​screen.

[0121] In order to determine the row and column number of the playback window in the spliced ​​screen, the electronic device can determine a first number of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second number of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window.

[0122] For example, assuming that the first number and the second number corresponding to playback window C are 2 and 3 respectively, it means that in the column where playback window C is located, there are 2 playback windows that are closer to the horizontal axis than playback window C, and in the row where playback window C is located, there are 3 playback windows that are closer to the vertical axis than playback window C. Therefore, it can be determined that playback window C is in the 3rd row and 4th column in the spliced ​​screen.

[0123] Since the vertex coordinates of the preset vertices of the play window and the width and height information can be used to determine the position of the play window in the spliced ​​screen, and the position of the play window in the spliced ​​screen can be used to determine the first quantity and the second quantity, the electronic device can determine the first quantity and the second quantity corresponding to each play window currently included in the spliced ​​screen according to the vertex coordinates of the preset vertices and the width and height information of each play window currently included in the spliced ​​screen.

[0124] S203: Determine a row and column identifier of the playback window based on the first number and the second number.

[0125] After determining the first number and the second number corresponding to the play window, the electronic device can determine the row and column identifier of the play window based on the first number and the second number. In one embodiment, the electronic device can use the sum of the first number corresponding to the play window and 1 as the number of rows of the play window, and the sum of the second number corresponding to the play window and 1 as the number of columns of the play window, and then determine the row and column identifier of the play window based on the number of rows and the number of columns of the play window.

[0126] It can be seen that in the embodiment of the present application, the electronic device can obtain the vertex coordinates and width and height information of the preset vertices of each play window currently included in the splicing screen; for each play window currently included in the splicing screen, according to the vertex coordinates and width and height information of the preset vertices of each play window currently included in the splicing screen, determine the first number of play windows that are closer to the horizontal axis and in the same column as the play window, and the second number of play windows that are closer to the vertical axis and in the same row as the play window; based on the first number and the second number, determine the row and column identification of the play window. Since the vertex coordinates and width and height information of the preset vertices of the play window can be used to determine the position of the play window in the splicing screen, and the position of the play window in the splicing screen can be used to determine the above-mentioned first number and second number. Therefore, the electronic device can determine the first number and second number corresponding to each play window currently included in the splicing screen according to the vertex coordinates and width and height information of the preset vertices of each play window currently included in the splicing screen, and then determine the row and column identification of the play window based on the first number and the second number. In this way, after the play windows are merged, the row and column identifiers of each play window can be determined quickly and accurately.

[0127] As an implementation method of the present application, Figure 3 As shown, the above step of determining, for each playback window currently included in the spliced ​​screen, according to the vertex coordinates of the preset vertices of each playback window currently included in the spliced ​​screen and the width and height information, a first number of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second number of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window, may include:

[0128] S301, for each playback window currently included in the spliced ​​screen, determine, from among the playback windows currently included in the spliced ​​screen, a first candidate window whose corresponding ordinate is smaller than the ordinate of the playback window, and a second candidate window whose corresponding ordinate is smaller than the ordinate of the playback window;

[0129] Since the ordinates of the preset vertices of the play window can reflect the distance between the play window and the horizontal axis, the first candidate window closer to the horizontal axis than a certain play window can be determined by the size relationship between the ordinates of the preset vertices of the play window. Specifically, the electronic device can determine, for each play window currently included in the spliced ​​screen, a first candidate window whose corresponding ordinate is smaller than the ordinate of the play window from among the play windows currently included in the spliced ​​screen.

[0130] Similarly, in order to determine a second alternative window that is closer to the vertical axis than a certain playback window, the electronic device can determine, for each playback window currently included in the spliced ​​screen, a second alternative window whose corresponding horizontal coordinate is smaller than the horizontal coordinate of the playback window.

[0131] S302, determining a first number of play windows that belong to the same column as the play window and are closer to the abscissa axis according to the width information of the play window, the abscissa of the play window, the width information of the first candidate window, and the abscissa of the first candidate window;

[0132] After the electronic device determines a first alternative window that is closer to the horizontal axis than a certain playback window, in order to determine the first number of playback windows in the same column as the playback window, the electronic device can determine the playback windows belonging to the same column as the playback window based on the width information of the playback window, the horizontal axis of the playback window, the width information of the first alternative window, and the horizontal axis of the first alternative window, and then use the determined number of playback windows as the first number.

[0133] As an implementation method, when the preset vertex is the upper left corner vertex of the playback window, a splicing screen coordinate system is established with the upper left corner vertex of the splicing screen as the coordinate origin, a straight line passing through the coordinate origin to the right as the horizontal axis, and a straight line passing through the coordinate origin downward as the vertical axis. The electronic device can store the vertex coordinates of the preset vertices of each playback window currently included in the splicing screen as a cell, and the cell is a binary variable, which can be expressed as cellsX[x][y], and obtains the vertex coordinates, width (width) and height (height) of the preset vertices of each playback window currently included in the splicing screen, and obtains (x1, y1, width1, height1) corresponding to each playback window.

[0134] The electronic device can traverse each playback window currently included in the spliced ​​screen. Each time a playback window is traversed, the electronic device can determine the first alternative window whose y value in the corresponding cell cellsX[x][y] is less than the vertical coordinate y1 of the playback window, thereby determining the first alternative window that is closer to the horizontal axis than the playback window.

[0135] Next, a play window whose x value in the corresponding cellsX[x][y] is not less than the horizontal coordinate x1 of the play window and whose x value in the corresponding cellsX[x][y] is less than the sum of the horizontal coordinate x1 of the play window and the width width1 of the play window can be determined from the first candidate window. The determined play window is the play window that belongs to the same column as the play window and is closer to the horizontal coordinate axis. The electronic device can determine the number of the determined play windows as the first number, and then use the sum of the first number and 1 as the number of rows of the play window.

[0136] For example, a schematic diagram of a spliced ​​screen can be as follows Figure 4 As shown, the spliced ​​screen includes play window 1 401-play window 11 411. In the case where the preset vertex is the upper left corner vertex of the play window and the coordinate origin is the upper left corner vertex of the spliced ​​screen, taking play window 11 411 as an example, assuming that the number of rows of play window 11 411 needs to be determined, then the first play window whose y value in cell cellsX[x][y] is less than the ordinate corresponding to play window 11 411 can be determined, and the first play window includes play window 1 401, play window 2 402, play window 3 403, play window 4 404, play window 5 405 and play window 6 406.

[0137] Next, the play window in the same column as play window 11 411 can be determined from the first play window. Since the x value in cellsX[x][y] corresponding to play window 3 403 is not less than the horizontal coordinate x1 of play window 11 411, and the x value in cellsX[x][y] corresponding to play window 3 403 is less than the sum of the horizontal coordinate x1 of play window 11 411 and the width of play window 11 411, it can be determined that play window 3 403 is in the same column as play window 11 411. Similarly, it can also be determined that play window 6 406 is in the same column as play window 11 411. Furthermore, it can be determined that the first number corresponding to play window 11 411 is 2, and play window 11 411 is in the third row.

[0138] S303: Determine a second number of playback windows that are in the same row as the playback window and are closer to the vertical axis according to the height information of the playback window, the vertical coordinate of the playback window, the height information of the second candidate window, and the vertical coordinate of the second candidate window.

[0139] After the electronic device determines a second alternative window that is closer to the vertical axis than a certain playback window, in order to determine the second number of playback windows in the same row as the playback window, the electronic device can determine the playback windows belonging to the same row as the playback window based on the height information of the playback window, the vertical coordinate of the playback window, the height information of the second alternative window, and the vertical coordinate of the second alternative window, and then use the determined number of playback windows as the second number.

[0140] As an implementation mode, when the preset vertex is the upper left corner vertex of the playback window, a splicing screen coordinate system is established with the upper left corner vertex of the splicing screen as the coordinate origin, a straight line passing through the coordinate origin to the right as the horizontal axis, and a straight line passing through the coordinate origin downward as the vertical axis. The electronic device can store the vertex coordinates of the preset vertices of each playback window currently included in the splicing screen as a cell cellsX[x][y], obtain the vertex coordinates, width (width) and height (height) of the preset vertices of each playback window currently included in the splicing screen, and obtain (x1, y1, width1, height1) corresponding to each playback window.

[0141] The electronic device can traverse each playback window currently included in the spliced ​​screen. Each time a playback window is traversed, the electronic device can determine a second alternative window whose x value in the corresponding cell cellsX[x][y] is less than the horizontal coordinate x1 of the playback window, thereby determining a second alternative window that is closer to the vertical coordinate axis than the playback window.

[0142] Next, a play window whose y value in the corresponding cellsX[x][y] is not less than the ordinate x1 of the play window and whose y value in the corresponding cellsX[x][y] is less than the sum of the ordinate y1 of the play window and the height height1 of the play window can be determined from the second candidate window. The determined play window is the play window that belongs to the same row as the play window and is closer to the ordinate axis. The electronic device can determine the number of determined play windows as the second number, and then use the sum of the second number and 1 as the number of columns of the play window.

[0143] For example, Figure 4 As shown, taking playback window 6 406 as an example, assuming that the number of columns of playback window 6 406 needs to be determined, then the second playback window whose x value in cell cellsX[x][y] is less than the horizontal coordinate x1 corresponding to playback window 6 406 can be determined, and the first playback window includes playback window 1 401, playback window 2 402, playback window 4 404, playback window 5 405, playback window 7 407, playback window 8 408, playback window 9 409, and playback window 10 410.

[0144] Next, the play window in the same row as the play window 6 406 can be determined from the second play window. Since the y value in cellsX[x][y] corresponding to the play window 4 404 is not less than the ordinate y1 of the play window 6 406, and the y value in cellsX[x][y] corresponding to the play window 4 404 is less than the sum of the ordinate y1 of the play window 6 406 and the height of the play window 6 406, it can be determined that the play window 4 404 is in the same row as the play window 6 406. Similarly, it can also be determined that the play window 5 405 is in the same row as the play window 6 406. Furthermore, it can be determined that the second number corresponding to the play window 6 406 is 2, and the play window 6 406 is in the third column.

[0145] Due to the description requirements of the specification, the above step S302 and the above step S303 have a sequence, but in the actual implementation process, the sequence between the above step S302 and the above step S303 is not specifically limited.

[0146] It can be seen that in the embodiment of the present application, the electronic device can determine the first candidate window whose corresponding ordinate is less than the ordinate of the play window and the second candidate window whose corresponding abscissa is less than the abscissa of the play window from the various play windows currently included in the splicing screen; determine the first number of play windows that belong to the same column as the play window and are closer to the abscissa axis according to the width information of the play window, the abscissa of the play window, the width information of the first candidate window and the abscissa of the first candidate window; determine the second number of play windows that belong to the same row as the play window and are closer to the abscissa axis according to the height information of the play window, the ordinate of the play window, the height information of the second candidate window and the ordinate of the second candidate window. In this way, the first candidate window that is closer to the abscissa axis than a certain play window and the second candidate window that is closer to the abscissa axis than a certain play window can be determined first. Next, the play window in the same column as the play window can be determined from the first candidate window, and the number of play windows determined is the first number. Similarly, the play windows in the same row as the play window can be determined from the second candidate window, and the number of the determined play windows is the second number. In this way, the first number and the second number can be determined quickly and accurately.

[0147] As an implementation method of an embodiment of the present application, the vertex coordinates of the preset vertices of the above-mentioned respective playback windows are stored as a first cell and a second cell, the first variable of the first cell is the ordinate of the preset vertex, and the first variable of the second cell is the abscissa of the preset vertex. In this case, Figure 5As shown, the above step of determining, for each playback window currently included in the spliced ​​screen, according to the vertex coordinates of the preset vertices of each playback window currently included in the spliced ​​screen and the width and height information, a first number of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second number of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window, may include:

[0148] S501, for each playback window currently included in the spliced ​​screen, traverse each playback window currently included in the spliced ​​screen, and for each playback window traversed, determine whether the first variable of the first cell of the currently traversed playback window is less than the vertical coordinate of the playback window, and whether the first variable of the second cell is less than the horizontal coordinate of the playback window;

[0149] In order to improve the traversal efficiency, the vertex coordinates of the preset vertices of each playback window can be stored as the first cell and the second cell. Among them, the first variable of the first cell is the ordinate of the preset vertex, and the last variable is the abscissa of the preset vertex, and the first variable of the second cell is the abscissa of the preset vertex, and the last variable is the ordinate of the preset vertex. In one embodiment, the vertex coordinates (x, y) of the preset vertex of a certain playback window can be stored as the first cell cellsX[x][y] and the second cell cellYs[y][x].

[0150] S502: if the first variable of the first cell of the currently traversed playback window is smaller than the vertical coordinate of the playback window, the currently traversed playback window is determined to be the first candidate window; if the first variable of the second cell of the currently traversed playback window is smaller than the horizontal coordinate of the playback window, the currently traversed playback window is determined to be the second candidate window;

[0151] Since the first variable of the first cell is the ordinate, if the first variable of the first cell of the currently traversed play window is smaller than the ordinate of the play window, it can be determined that the currently traversed play window is the first candidate window. Similarly, since the first variable of the second cell is the abscissa, if the first variable of the second cell of the currently traversed play window is smaller than the abscissa of the play window, it can be determined that the currently traversed play window is the second candidate window.

[0152] S503, determining a first number of play windows that belong to the same column as the play window and are closer to the abscissa axis according to the width information of the play window, the abscissa of the play window, the width information of the first candidate window, and the last variable of the first cell of the first candidate window;

[0153] The last variable of the first cell is the horizontal coordinate of the preset vertex. In order to determine the playback window in the same column as the playback window from the first alternative window, the electronic device can determine the first number of playback windows that belong to the same column as the playback window and are closer to the horizontal axis based on the width information of the playback window, the horizontal coordinate of the playback window, the width information of the first alternative window and the last variable of the first cell of the first alternative window.

[0154] S504, determining a second number of playback windows that belong to the same row as the playback window and are closer to the vertical axis according to the height information of the playback window, the vertical coordinate of the playback window, the height information of the second candidate window, and the last variable of the second cell of the second candidate window.

[0155] The last variable of the second cell is the vertical coordinate of the preset vertex. In order to determine the playback window in the same row as the playback window from the second alternative window, the electronic device can determine the second number of playback windows that belong to the same row as the playback window and are closer to the vertical coordinate axis based on the height information of the playback window, the vertical coordinate of the playback window, the height information of the second alternative window and the last variable of the second cell of the second alternative window.

[0156] Due to the description requirements of the specification, the above step S503 and the above step S504 have a sequence, but in the actual implementation process, the sequence between the above step S503 and the above step S504 is not specifically limited.

[0157] It can be seen that in the embodiment of the present application, by storing the vertex coordinates of the preset vertices of each playback window as the first cell and the second cell respectively, the first cell of each playback window can be traversed when determining the number of rows of the playback window, and the second cell of each playback window can be traversed when determining the number of columns of the playback window. In this way, the traversal efficiency can be further improved, so that the first number and the second number can be determined more quickly.

[0158] As an implementation method of the present application, Figure 6 As shown, the step of determining the row and column identifier of the playback window based on the first number and the second number may include:

[0159] S601, determining a row identifier of the playback window based on a sum of the first number and 1;

[0160] Assuming that in the column where a certain play window is located, each play window is sorted in positive order according to the distance between the play window and the horizontal axis, then the sequence number of the play window is the row number of the play window in the spliced ​​screen. Since the first number is the number of play windows that are in the same column as the play window and closer to the horizontal axis than the play window, that is, the number of sequence numbers in front of the play window, the row number of the play window is the sum of the first number and 1, and the electronic device can determine the row identifier of the play window based on the sum.

[0161] For example, when the row identifier is a number, assuming that the first number corresponding to a certain play window is 3, the row identifier of the play window is 4. For another example, when the row identifier is a letter, assuming that the first number corresponding to a certain play window is 2, the row number of the play window is 3. If a correspondence between the row number 3 and the letter c is established in advance, it can be determined that the row identifier of the play window is c.

[0162] S602: Determine a column identifier of the playback window based on the sum of the second number and 1.

[0163] Assuming that in the row where a certain play window is located, each play window is sorted in positive order according to the distance from the vertical axis, then the sequence number of the play window is the column number of the play window in the spliced ​​screen. Since the second number is the number of play windows that are in the same row as the play window and closer to the vertical axis than the play window, that is, the sequence number in front of the play window, the column number of the play window is the sum of the second number and 1, and the electronic device can determine the column identifier of the play window based on the sum.

[0164] For example, when the row identifier is a number, assuming that the second number corresponding to a certain play window is 6, then the row identifier of the play window is 7. For another example, when the row identifier is a letter, assuming that the second number corresponding to a certain play window is 1, then the row number of the play window is 2. If a correspondence between the row number 2 and the letter b is established in advance, then it can be determined that the row identifier of the play window is b.

[0165] Due to the description requirements of the specification, the above step S601 and the above step S602 have a sequence, but in the actual implementation process, the sequence between the above step S601 and the above step S602 is not specifically limited.

[0166] It can be seen that in the embodiment of the present application, the electronic device can determine the row identifier of the play window based on the sum of the first number and 1, and determine the column identifier of the play window based on the sum of the second number and 1. In this way, the row identifier and column identifier of the play window can be determined quickly and accurately.

[0167] As an implementation method of the embodiment of the present application, the above-mentioned position information may also include vertex coordinates. In this case, Figure 7 As shown, the step of matching the target position information with the position information of each playback window currently included in the spliced ​​screen to obtain a matching result may include:

[0168] S701, matching the vertex coordinates of the target play window with the vertex positions of each play window currently included in the spliced ​​screen to obtain a vertex matching result;

[0169] The vertex coordinates of the target play window are recorded before the play windows are merged. If the target play window is merged, at least two vertices of the target play window will disappear during the merging process. In this case, among the vertex positions of each play window currently included in the spliced ​​screen, the positions corresponding to the four vertex coordinates of the target play window will not all be vertex positions.

[0170] If the target play window is not merged, the four vertices of the target play window still exist. In this case, among the vertex positions of each play window currently included in the spliced ​​screen, the positions corresponding to the four vertex coordinates of the target play window will all be vertex positions.

[0171] Therefore, in order to determine whether the target play window is to be merged, the electronic device may match the vertex coordinates of the target play window with the vertex positions of each play window currently included in the spliced ​​screen to obtain a vertex matching result.

[0172] S702, when the vertex matching result indicates that the target playback window is merged, the row and column identifiers of the target playback window are matched with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result.

[0173] The row and column identifiers of the target playback window are recorded before the playback windows are merged. After the playback windows are merged, if the row and column identifiers of the target playback window still exist among the row and column identifiers of the playback windows included in the spliced ​​screen, then the row and column identifier of the target playback window can be used as the current row and column identifier of the target playback window, that is, the row and column identifier of the target playback window is retained. If the row and column identifier of the target playback window does not exist, the row and column identifier of the target playback window needs to be re-determined.

[0174] When the vertex matching result indicates that the target playback window is merged, in order to determine whether the row and column identifiers of the target playback window need to be re-determined, the electronic device may match the row and column identifiers of the target playback window with the row and column identifiers of each playback window currently included in the splicing screen to obtain an identifier matching result. Specifically, the electronic device may determine whether the row and column identifier of the target playback window exists among the row and column identifiers of each playback window currently included in the splicing screen.

[0175] For example, assuming that the vertex coordinates of the target playback window are (0,540), (960,540), (0,1080) and (960,1080), after the playback window is merged, the electronic device can match the above vertex coordinates with the vertex positions of the playback window currently included in the splicing screen to obtain a vertex matching result. If the positions corresponding to (0,540) and (960,540) are not the vertex positions of the playback window currently included in the splicing screen, then the vertex matching result characterization will characterize that the target playback window is merged.

[0176] Assuming that the row and column identifier of the target playback window is 2-1, and the row and column identifiers of the various playback windows currently included in the splicing screen are 1-1, 1-2, and 2-1, then the electronic device can determine to match the row and column identifier of the target playback window with the row and column identifiers of the various playback windows currently included in the splicing screen, and the identifier matching result indicates that the row and column identifier of the target playback window exists.

[0177] It can be seen that in the embodiment of the present application, the electronic device can match the vertex coordinates of the target playback window with the vertex positions of each playback window currently included in the splicing screen to obtain a vertex matching result; when the vertex matching result indicates that the target playback window is merged, the row and column identifiers of the target playback window are matched with the row and column identifiers of each playback window currently included in the splicing screen to obtain an identifier matching result. If the target playback window is merged, then the positions corresponding to the four vertex coordinates of the target playback window in the vertex positions of each playback window currently included in the splicing screen will not all be vertex positions, and the vertex matching result will indicate that the target playback window is merged. In order to determine whether it is necessary to redetermine the row and column identifiers of the target playback window, the row and column identifiers of the target playback window can be matched with the row and column identifiers of each playback window currently included in the splicing screen to obtain an identifier matching result. If the identifier matching result indicates that the row and column identifier of the target playback window exists, there is no need to redetermine the row and column identifier of the target playback window. In this way, it is possible to quickly and accurately determine whether the target playback window is merged and whether it is necessary to redetermine the row and column identifiers of the target playback window.

[0178] As an implementation of the embodiment of the present application, the step of matching the vertex coordinates of the target playback window with the vertex positions of each playback window currently included in the spliced ​​screen to obtain a vertex matching result may include:

[0179] Determine whether the vertex coordinates of the target playback window are at positions corresponding to the splicing screen at all the vertex positions of each playback window currently included in the splicing screen, and obtain a vertex matching result;

[0180] Since multiple vertices of the target playback window will disappear after the target playback window is merged, in order to determine whether the target playback window is merged, the electronic device can determine whether the vertex coordinates of the target playback window at the positions corresponding to the splicing screen are all the vertex positions of each playback window currently included in the splicing screen.

[0181] If the vertex coordinates of the target playback window at the positions corresponding to the splicing screen are all the vertex positions of the playback windows currently included in the splicing screen, then the vertex matching result will indicate that the target playback window is not merged. If the vertex coordinates of the target playback window at the positions corresponding to the splicing screen are not all the vertex positions of the playback windows currently included in the splicing screen, then the vertex matching result will indicate that the target playback window is merged.

[0182] It can be seen that in the embodiment of the present application, the electronic device can determine whether the vertex coordinates of the target playback window at the positions corresponding to the splicing screen are all the vertex positions of each playback window currently included in the splicing screen, and obtain the vertex matching result. In this way, the electronic device can quickly and accurately determine whether the target playback window is merged.

[0183] As an implementation of an embodiment of the present application, the step of matching the row and column identifiers of the target playback window with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result may include:

[0184] Among the row and column identifiers of the various play windows currently included in the spliced ​​screen, it is determined whether the row and column identifier of the target play window exists, and an identifier matching result is obtained.

[0185] If the row and column identifier of the target play window exists in the row and column identifiers of the various play windows currently included in the splicing screen, then the row and column identifier of the target play window can be used as the current row and column identifier of the target play window. If the row and column identifier of the target play window does not exist in the row and column identifiers of the various play windows currently included in the splicing screen, then the row and column identifier of the target play window needs to be re-determined. Therefore, the electronic device can determine whether the row and column identifier of the target play window exists in the row and column identifiers of the various play windows currently included in the splicing screen, and obtain an identifier matching result.

[0186] In one embodiment, after the playback windows in the spliced ​​screen are merged, the electronic device can display a row and column diagram of the spliced ​​screen based on the determined row and column identifiers after determining the row and column identifiers of the various playback windows currently included in the spliced ​​screen. The row and column diagram can include the row and column identifiers of each playback window. Then, the electronic device can determine whether there is a row and column identifier of the target playback window in the row and column identifiers included in the row and column diagram, and then obtain an identifier matching result.

[0187] For example, a schematic diagram of the array diagram of the spliced ​​screen can be as follows Figure 8 As shown, the row and column identifiers of each playback window are 1-1, 1-2, 2-1, 2-2, 2-3, 3-1, 3-2, 3-3, 4-1 and 4-2. Assuming that the row and column identifier of the target playback window is 4-3, it can be determined that the row and column identifier of the target playback window does not exist in the row and column identifiers of each playback window currently included in the splicing screen.

[0188] The above row-column map can be recorded as oRowMap[row1][row2]. oRowMap (row-column map) is a binary variable that can be used to reflect row (row and column), where row1 can represent the number of rows and row2 can represent the number of columns. The row and column of the play window in the row-column map can be recorded as iStartRow (number of rows) and iStartCol (number of columns). In this case, the play window can be represented as oRowMap[iStartRow][iStartCol]. For example, assuming that the row and column identifier of a play window is 3-2, the play window can be represented as oRowMap[3][2].

[0189] It can be seen that in the embodiment of the present application, the electronic device can determine whether the row and column identifier of the target playback window exists in the row and column identifiers of each playback window currently included in the spliced ​​screen, and obtain an identifier matching result. In this way, it can be quickly and accurately determined whether the row and column identifier of the target playback window needs to be re-determined.

[0190] As an implementation method of the present application, Fig. 9 As shown, the step of determining the current row and column identifier of the target playback window in the spliced ​​screen based on the matching result may include:

[0191] S901, determining whether the vertex matching result indicates that the target playback window has not been merged, and whether the identifier matching result indicates that the row and column identifiers of the target playback window exist; if the vertex matching result indicates that the target playback window has not been merged, or the identifier matching result indicates that the row and column identifiers of the target playback window exist, executing step S902; if the identifier matching result indicates that the row and column identifiers of the target playback window do not exist, executing steps S903 and S904;

[0192] The electronic device may determine whether the vertex matching result indicates that the target playback window has not been merged, and whether the identifier matching result indicates that the row and column identifiers of the target playback window exist.

[0193] S902, determining that the current row and column identifier of the target playback window in the spliced ​​screen is the row and column identifier of the target playback window;

[0194] If the vertex matching result indicates that the target playback window has not been merged, or the row and column identifier of the target playback window indicated by the identifier matching result exists, it means that the row and column identifier of the target playback window still exists in the row and column identifier of the playback window currently included in the splicing screen, then the electronic device can determine that the current row and column identifier of the target playback window in the splicing screen is the row and column identifier of the target playback window.

[0195] For example, assuming that the row and column identifier of the target playback window is 3-1, and the row and column identifiers of the playback windows currently included in the spliced ​​screen include 1-1, 1-2, 2-1, 3-1, and 3-2, it can be determined that the row and column identifier of the target playback window is still 3-1.

[0196] S903, determining an area including coordinates of each vertex of the target playback window in an area currently occupied by each playback window included in the spliced ​​screen;

[0197] In the case where the row and column identifiers of the target play window represented by the identification matching result do not exist, it indicates that the row and column identifiers of the target play window need to be re-determined. Since the area of ​​the play window to which the target play window belongs includes all vertex coordinates of the target play window after the play windows are merged, the electronic device can determine the area including the vertex coordinates of the target play window in the area occupied by each play window currently included in the spliced ​​screen.

[0198] S904: Determine the row and column identifier of the play window corresponding to the determined area as the current row and column identifier of the target play window in the spliced ​​screen.

[0199] Since the playback window corresponding to the determined area is the playback window to which the target playback window belongs after the playback windows are merged, the electronic device can determine the row and column identifiers of the playback window corresponding to the determined area as the current row and column identifiers of the target playback window in the spliced ​​screen.

[0200] For example, assuming that the vertex coordinates of the target playback window are (0,540), (960,540), (0,1080) and (960,1080), and the row and column identifier of the playback window corresponding to the area including the above four vertex coordinates is 4-1, then it can be determined that the current row and column identifier of the target playback window in the spliced ​​screen is 4-1.

[0201] It can be seen that in the embodiment of the present application, the electronic device can determine the current row and column identifier of the target playback window in the spliced ​​screen as the row and column identifier of the target playback window when the vertex matching result indicates that the target playback window has not been merged, or the row and column identifier of the target playback window indicated by the identifier matching result exists; when the row and column identifier of the target playback window indicated by the identifier matching result does not exist, the area including the coordinates of each vertex of the target playback window is determined in the area currently occupied by each playback window included in the spliced ​​screen; the row and column identifier of the playback window corresponding to the determined area is determined as the current row and column identifier of the target playback window in the spliced ​​screen. Through the above implementation, the electronic device can quickly and accurately determine the current row and column identifier of the target playback window in the spliced ​​screen under different circumstances.

[0202] As an implementation method of the present application, Fig.10 As shown, the step of determining the area including the coordinates of each vertex of the target playback window in the area currently occupied by each playback window included in the spliced ​​screen may include:

[0203] S1001, in each playback window currently included in the spliced ​​screen, determine a third candidate window whose corresponding row identifier is smaller than the row identifier of the target playback window, and determine a fourth candidate window whose corresponding column identifier is smaller than the column identifier of the target playback window;

[0204] After the playback windows are merged, the total number of rows and columns of the playback windows in the spliced ​​screen will not exceed the total number of rows and columns before the merger. When the vertex matching result indicates that the target playback window is merged, and the row and column identifiers of the target playback window indicated by the identifier matching result do not exist, it means that the target playback window is merged with a playback window with a smaller number of rows or a smaller number of columns than the target playback window.

[0205] For example, the row and column identifier of the target playback window is 4-3, and the target playback window is merged with the playback window with the row and column identifier 4-2, and the merged playback window becomes 4-2. If the target playback window is located at the edge of the spliced ​​screen, the playback window with the row and column identifier 4-3 will not exist.

[0206] Since the number of rows of the playback window currently corresponding to the target playback window is smaller than the number of rows of the target playback window, or the number of columns of the playback window currently corresponding to the target playback window is smaller than the number of columns of the target playback window, the electronic device can determine, among the playback windows currently included in the spliced ​​screen, a third alternative window whose corresponding row identifier is smaller than the row identifier of the target playback window, and determine a fourth alternative window whose corresponding column identifier is smaller than the column identifier of the target playback window.

[0207] S1002: Determine, from the areas occupied by the third candidate window and the fourth candidate window, an area including coordinates of each vertex of the target playback window.

[0208] After determining the third candidate window and the fourth candidate window, the electronic device can traverse the third candidate window and the fourth candidate window, and for each playback window traversed, determine whether the area occupied by the playback window includes the vertex coordinates of the target playback window. If the area occupied by the playback window includes the vertex coordinates of the target playback window, the electronic device can use the row and column identifier corresponding to the playback window as the current row and column identifier of the target playback window in the spliced ​​screen.

[0209] For example, Figure 8 As shown, assuming that the row and column identifier of the target playback window is 4-3, the electronic device can determine that the third candidate window is the playback window corresponding to the following row and column identifiers: 1-1, 1-2, 2-1, 2-2, 2-3, 3-1, 3-2, 3-3, and the fourth candidate window is the playback window corresponding to the following row and column identifiers: 1-1, 1-2, 2-1, 2-2, 3-1, 3-2, 4-1, 4-2. Assuming that the area to which the playback window with the row and column identifier 3-3 belongs includes the coordinates of each vertex of the target playback window, it can be determined that the current row and column identifier of the target playback window is 3-3.

[0210] It can be seen that in the embodiment of the present application, the electronic device can determine the third candidate window whose corresponding row identifier is smaller than the row identifier of the target playback window in each playback window currently included in the spliced ​​screen, and determine the fourth candidate window whose corresponding column identifier is smaller than the column identifier of the target playback window; from the area occupied by the third candidate window and the fourth candidate window, determine the area including the coordinates of each vertex of the target playback window. After the playback windows are merged, the total number of rows and the total number of columns of the playback windows in the spliced ​​screen will not exceed the total number of rows and the total number of columns before the merger. Therefore, the electronic device can determine the third candidate window and the fourth candidate window from each playback window currently included in the spliced ​​screen, and then determine the playback window including the coordinates of each vertex of the target playback window from the third candidate window and the fourth candidate window, and determine the row and column identifiers of the determined playback window as the current row and column identifiers of the target playback window. In this way, after the playback windows are merged, the current row and column identifiers of the target playback window can be quickly and accurately determined.

[0211] As an implementation method of the embodiment of the present application, a flowchart of a configuration method of the playback window of the spliced ​​screen can be as follows: Fig.11 As shown, the following steps may be specifically included:

[0212] S1101, obtaining position information of a target playback window bound to a video screen;

[0213] After starting the process, the electronic device can obtain the position information of the target playback window that has been bound to the video screen. The position information may include vertex coordinates and row and column identifiers. The user can merge the playback windows in the spliced ​​screen according to actual usage needs, and the free layout of the playback windows in the spliced ​​screen can be supported.

[0214] S1102, determining whether the position corresponding to the vertex coordinates of the target playback window is a vertex; if not, executing step S1103; if yes, executing step S1104;

[0215] In order to determine whether the target play window is merged, the electronic device may determine whether the position corresponding to the vertex coordinates of the target play window in the current spliced ​​screen is still a vertex.

[0216] S1103, determine whether the row and column identifier of the target playback window exists; if yes, execute step S1104; if no, execute step S1105;

[0217] The electronic device can determine whether the row and column identifier of the target play window exists among the row and column identifiers of each play window currently included in the spliced ​​screen.

[0218] S1104, retaining the binding relationship of the target playback window;

[0219] In the first case, if the position corresponding to the vertex coordinates of the target playback window is still a vertex, it means that the target playback window has not been merged, and the row and column identifiers of the target playback window still exist, so the electronic device can retain the binding relationship of the target playback window. In the second case, if the row and column identifiers of the target playback window still exist, the electronic device can also retain the binding relationship of the target playback window.

[0220] S1105, releasing the binding relationship of the target playback window;

[0221] If the row and column identifier of the target playback window does not exist, the electronic device can release the established binding relationship of the target playback window.

[0222] S1106, determining the current row and column identifier of the target playback window in the spliced ​​screen, and establishing a binding relationship between the video image and the current row and column identifier.

[0223] Next, the electronic device may determine the current row and column identifier of the target playback window in the spliced ​​screen, and establish a binding relationship between the video image and the current row and column identifier, and then the process ends.

[0224] For example, the first schematic diagram of the playback window merging can be shown in FIG. 12 (a), and the schematic diagram before the playback window merging is the upper schematic diagram. Assuming that the bound playback window is playback window 1 1201, playback window 1 1201 and playback window 2 1202 are merged to obtain the schematic diagram below. In the schematic diagram below, the bound playback window 1 1201 corresponds to playback window 3 1203. In this case, the row and column identifiers of the bound playback window in the spliced ​​screen before the playback window merging are the same as the row and column identifiers of the bound playback window in the spliced ​​screen after the playback window merging.

[0225] For another example, the second schematic diagram of the playback window merging may be shown in FIG12(b), where the schematic diagram before the playback window merging is the upper schematic diagram. Assuming that the bound playback window is playback window 4 1204, playback window 4 1204, playback window 5 1205, and playback window 6 1206 are merged to obtain the lower schematic diagram.

[0226] The row and column identifiers of play window 4 1204 are 1-3, but there is no play window with row and column identifiers 1-3 in the schematic diagram below, that is, the row and column identifiers of the bound play windows exceed the play window arrangement limit of the spliced ​​screen after the play windows are merged. In this case, it can be determined that the row and column identifiers of play window 4 1204 in the spliced ​​screen after the play windows are merged are 1-2, corresponding to play window 7 1207.

[0227] For another example, the third schematic diagram of the playback window merging can be shown in FIG. 12 (c), where the schematic diagram of the playback window not being merged is the top schematic diagram. Assuming that playback window 8 1208 and playback window 9 1209 are merged, the middle schematic diagram will be obtained, and playback window 8 1208 and playback window 9 1209 correspond to playback window 10 1210 after merging.

[0228] Assuming that the bound play window is play window 11 1211, play window 11 1211 is merged with play window 121212, then the bottom schematic diagram will be obtained. In this case, the row and column identifiers of play window 11 1211 in the spliced ​​screen after the play window is merged are 1-4, corresponding to play window 13 1213. Since play window 11 1211 is merged, it is necessary to stretch the video screen bound to play window 11 1211 in play window 13 1213, that is, to map the video screen bound to play window 11 1211 in play window 13 1213.

[0229] In one embodiment, after the step of establishing the binding relationship between the video screen and the current row and column identifier, the current splicing screen model diagram can also be displayed in the program interface. Specifically, the electronic device can obtain the regional configuration information, output port name list, screen unit resolution, and output port binding information of the current splicing screen, and establish the splicing screen model after the playback window is merged through the above information.

[0230] The above-mentioned area configuration information may include the length and width information of each screen unit, the row and column information of each screen unit, and the length and width information of each playback window after the playback windows are merged. The above-mentioned screen unit resolution is the base size occupied by a single output port. The above-mentioned output port binding information may include the unique identifier of the output port and the relative position of the output port in the spliced ​​screen, that is, the product of the base resolution of the output port and the relative position.

[0231] For example, a schematic diagram of a spliced ​​screen model diagram can be as follows Fig.13 As shown, the spliced ​​screen includes 6 play windows, the resolutions of play windows 1 to 4 are all 960×540 and are not bound to video images, the resolution of play window 5 is 960×1080, and the resolution of play window 6 is 1920×540. In the list on the left, the name of the play window bound to the sending card is output 4-1, the resolution is 960×1080, and the high-definition multimedia interface is bound to play window 5 and play window 6.

[0232] The sending card may be LEDSendCard (LED sending card), and the high-definition multimedia interface may be HDMI4K (High Definition Multimedia Interface 4K Resolution, 4K resolution high-definition multimedia interface).

[0233] In the technical solution of this application, the operations involved in obtaining, storing, using, processing, transmitting, providing and disclosing user personal information are all carried out with the user's authorization.

[0234] like Fig.14 As shown, a device for configuring a playback window of a spliced ​​screen, the device comprising:

[0235] The information acquisition module 1401 is used to acquire the target position information of the pre-recorded target playback window bound to the video screen in the spliced ​​screen, wherein the position information at least includes a row and column identifier;

[0236] The information determination module 1402 is used to determine the position information of each play window currently included in the splicing screen after the play windows in the splicing screen are merged;

[0237] The information matching module 1403 is used to match the target position information with the position information of each playback window currently included in the spliced ​​screen to obtain a matching result;

[0238] The relationship establishing module 1404 is used to determine the current row and column identifier of the target playback window in the spliced ​​screen based on the matching result, and establish a binding relationship between the video screen and the current row and column identifier.

[0239] It can be seen that in the embodiment of the present application, the electronic device can obtain the target position information of the target playback window bound to the video screen in the splicing screen, wherein the position information at least includes the row and column identifier; after the playback windows in the splicing screen are merged, the position information of each playback window currently included in the splicing screen is determined; the target position information is matched with the position information of each playback window currently included in the splicing screen to obtain a matching result; based on the matching result, the current row and column identifier of the target playback window in the splicing screen is determined, and a binding relationship between the video screen and the current row and column identifier is established. After the playback windows in the splicing screen are merged, the position information of the bound playback window can be matched with the position information of each playback window in the splicing screen, so as to determine the current row and column identifier of the bound playback window in the splicing screen, and then establish a binding relationship of the playback window based on the determined row and column identifier. It is not necessary to unbind all the bound playback windows after the playback windows are merged, and then establish a binding relationship, which can reduce the time required to unbind and reconfigure the playback windows after the playback windows are merged, and can improve the configuration efficiency of the playback windows.

[0240] As an implementation of the embodiment of the present application, the information determination module 1402 may include:

[0241] An information acquisition submodule, used to acquire vertex coordinates and width and height information of preset vertices of each playback window currently included in the spliced ​​screen;

[0242] A quantity determination submodule, for determining, for each playback window currently included in the spliced ​​screen, a first quantity of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second quantity of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window, according to vertex coordinates of preset vertices of each playback window currently included in the spliced ​​screen and width and height information;

[0243] The first identifier determination submodule is used to determine the row and column identifiers of the playback window based on the first number and the second number.

[0244] As an implementation of an embodiment of the present application, the quantity determination submodule may include:

[0245] A first candidate window determining unit is used to determine, for each playback window currently included in the spliced ​​screen, a first candidate window whose corresponding ordinate is smaller than the ordinate of the playback window, and a second candidate window whose corresponding ordinate is smaller than the ordinate of the playback window from among the playback windows currently included in the spliced ​​screen;

[0246] a first number determining unit, configured to determine a first number of play windows that belong to the same column as the play window and are closer to the abscissa axis according to the width information of the play window, the abscissa of the play window, the width information of the first candidate window, and the abscissa of the first candidate window;

[0247] The second quantity determination unit is used to determine the second quantity of playback windows that belong to the same row as the playback window and are closer to the vertical coordinate axis based on the height information of the playback window, the vertical coordinate of the playback window, the height information of the second alternative window, and the vertical coordinate of the second alternative window.

[0248] As an implementation of an embodiment of the present application, the first identification determination submodule may include:

[0249] a row identifier determining unit, configured to determine a row identifier of the playback window based on a sum of the first number and 1;

[0250] A column identifier determining unit is used to determine the column identifier of the playback window based on the sum of the second number and 1.

[0251] As an implementation of the embodiment of the present application, the above-mentioned position information may also include vertex coordinates. In this case, the above-mentioned information matching module 1403 may include:

[0252] A first result determination submodule is used to match the vertex coordinates of the target playback window with the vertex positions of each playback window currently included in the spliced ​​screen to obtain a vertex matching result;

[0253] The second result determination submodule is used to match the row and column identifiers of the target playback window with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result when the vertex matching result indicates that the target playback window is merged.

[0254] As an implementation of an embodiment of the present application, the first result determination submodule may include:

[0255] The first result determination unit is used to determine whether the vertex coordinates of the target playback window at positions corresponding to the splicing screen are all vertex positions of each playback window currently included in the splicing screen, and obtain a vertex matching result.

[0256] As an implementation of an embodiment of the present application, the second result determination submodule may include:

[0257] The second result determination unit is used to determine whether the row and column identifier of the target playback window exists among the row and column identifiers of each playback window currently included in the spliced ​​screen, and obtain an identifier matching result.

[0258] As an implementation of the embodiment of the present application, the relationship establishment module 1404 may include:

[0259] A second identifier determination submodule is used to determine the current row and column identifier of the target playback window in the spliced ​​screen as the row and column identifier of the target playback window when the vertex matching result indicates that the target playback window has not been merged, or when the identifier matching result indicates that the row and column identifier of the target playback window exists;

[0260] An area determination submodule, used for determining an area including the coordinates of each vertex of the target playback window in an area currently occupied by each playback window included in the spliced ​​screen when the row and column identifiers representing the target playback window in the identifier matching result do not exist;

[0261] The third identifier determination submodule is used to determine the row and column identifier of the play window corresponding to the determined area as the current row and column identifier of the target play window in the spliced ​​screen.

[0262] As an implementation of an embodiment of the present application, the above-mentioned area determination submodule may include:

[0263] A second candidate window determination unit is used to determine, among the playback windows currently included in the spliced ​​screen, a third candidate window whose corresponding row identifier is smaller than the row identifier of the target playback window, and to determine a fourth candidate window whose corresponding column identifier is smaller than the column identifier of the target playback window;

[0264] The area determination unit is used to determine an area including the coordinates of each vertex of the target playback window from the areas occupied by the third candidate window and the fourth candidate window.

[0265] The present application also provides an electronic device, such as Fig.15 As shown, including:

[0266] Memory 1501, used for storing computer programs;

[0267] The processor 1502 is used to implement the method for configuring the playback window of the spliced ​​screen described in any of the above embodiments when executing the program stored in the memory 1501.

[0268] In addition, the electronic device may further include a communication bus and / or a communication interface, and the processor 1502, the communication interface, and the memory 1501 communicate with each other via the communication bus.

[0269] It can be seen that in the embodiment of the present application, the electronic device can obtain the target position information of the target playback window bound to the video screen in the splicing screen, wherein the position information at least includes the row and column identifier; after the playback windows in the splicing screen are merged, the position information of each playback window currently included in the splicing screen is determined; the target position information is matched with the position information of each playback window currently included in the splicing screen to obtain a matching result; based on the matching result, the current row and column identifier of the target playback window in the splicing screen is determined, and a binding relationship between the video screen and the current row and column identifier is established. After the playback windows in the splicing screen are merged, the position information of the bound playback window can be matched with the position information of each playback window in the splicing screen, so as to determine the current row and column identifier of the bound playback window in the splicing screen, and then establish a binding relationship of the playback window based on the determined row and column identifier. It is not necessary to unbind all the bound playback windows after the playback windows are merged, and then establish a binding relationship, which can reduce the time required to unbind and reconfigure the playback windows after the playback windows are merged, and can improve the configuration efficiency of the playback windows.

[0270] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0271] The communication interface is used for communication between the above electronic device and other devices.

[0272] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0273] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0274] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the method for configuring the playback window of any of the above-mentioned spliced ​​screens are implemented.

[0275] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the method for configuring the playback window of any spliced ​​screen in the above-mentioned embodiments.

[0276] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.

[0277] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0278] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0279] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A method for configuring a playback window of a spliced ​​screen, characterized in that: The method comprises: Acquire the target position information of the pre-recorded target playback window bound to the video screen in the spliced ​​screen, wherein the position information at least includes row and column identifiers; After the play windows in the spliced ​​screen are merged, determining the position information of each play window currently included in the spliced ​​screen, wherein the play windows are merged to change the size of the play windows; Matching the target position information with the position information of each playback window currently included in the spliced ​​screen to obtain a matching result; When the matching result indicates that the row and column identifier of the target playback window exists after the playback windows are merged, the row and column identifier of the target playback window is used as the current row and column identifier of the target playback window in the spliced ​​screen, and the binding relationship between the video screen and the current row and column identifier is retained; When the matching result indicates that the row and column identifier of the target playback window does not exist after the playback windows are merged, the current row and column identifier of the target playback window in the spliced ​​screen is re-determined, the row and column identifier of the target playback window is unbound from the video screen, and a binding relationship between the current row and column identifier and the video screen is established.

2. The method according to claim 1, characterized in that The step of determining the position information of each playback window currently included in the spliced ​​screen includes: Obtaining vertex coordinates and width and height information of preset vertices of each playback window currently included in the spliced ​​screen; For each playback window currently included in the spliced ​​screen, according to the vertex coordinates of the preset vertices of each playback window currently included in the spliced ​​screen and the width and height information, determine a first number of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second number of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window; Based on the first number and the second number, a row and column identifier of the playback window is determined.

3. The method according to claim 2, characterized in that The step of determining, for each playback window currently included in the spliced ​​screen, a first number of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second number of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window, according to vertex coordinates of preset vertices and width and height information of each playback window currently included in the spliced ​​screen, comprises: For each playback window currently included in the spliced ​​screen, determine, from among the playback windows currently included in the spliced ​​screen, a first candidate window whose corresponding ordinate is smaller than the ordinate of the playback window, and a second candidate window whose corresponding ordinate is smaller than the ordinate of the playback window; Determine a first number of play windows that belong to the same column as the play window and are closer to the abscissa axis according to the width information of the play window, the abscissa of the play window, the width information of the first candidate window, and the abscissa of the first candidate window; According to the height information of the playback window, the vertical coordinate of the playback window, the height information of the second candidate window and the vertical coordinate of the second candidate window, determine the second number of playback windows that belong to the same row as the playback window and are closer to the vertical coordinate axis.

4. The method according to claim 2, characterized in that: The step of determining the row and column identifiers of the playback window based on the first number and the second number includes: Determine a row identifier of the playback window based on a sum of the first number and 1; Based on the sum of the second number and 1, the column identifier of the playback window is determined.

5. The method according to any one of claims 1 to 4, characterized in that: The position information also includes vertex coordinates; The step of matching the target position information with the position information of each playback window currently included in the spliced ​​screen to obtain a matching result includes: Matching the vertex coordinates of the target play window with the vertex positions of each play window currently included in the spliced ​​screen to obtain a vertex matching result; When the vertex matching result indicates that the target playback window is merged, the row and column identifiers of the target playback window are matched with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result.

6. The method according to claim 5, characterized in that The step of matching the vertex coordinates of the target playback window with the vertex positions of each playback window currently included in the spliced ​​screen to obtain a vertex matching result includes: Determine whether the vertex coordinates of the target playback window are at positions corresponding to the splicing screen at all the vertex positions of each playback window currently included in the splicing screen, and obtain a vertex matching result; and / or, The step of matching the row and column identifiers of the target playback window with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result includes: Among the row and column identifiers of the various play windows currently included in the spliced ​​screen, it is determined whether the row and column identifier of the target play window exists, and an identifier matching result is obtained.

7. The method according to claim 5, characterized in that The step of using the row and column identifier of the target playback window as the current row and column identifier of the target playback window in the spliced ​​screen when the row and column identifier of the target playback window represented by the matching result exists after the playback windows are merged includes: When the vertex matching result indicates that the target playback window has not been merged, or the identifier matching result indicates that the row and column identifier of the target playback window exists, determining the current row and column identifier of the target playback window in the spliced ​​screen as the row and column identifier of the target playback window; The step of re-determining the current row and column identifier of the target playback window in the spliced ​​screen when the row and column identifier of the target playback window represented by the matching result does not exist after the playback windows are merged includes: In the case that the row and column identifiers of the target play window indicated by the identifier matching result do not exist, determining an area including the coordinates of each vertex of the target play window in the area currently occupied by each play window included in the spliced ​​screen; The row and column identifiers of the play window corresponding to the determined area are determined as the current row and column identifiers of the target play window in the spliced ​​screen.

8. The method according to claim 7, characterized in that The step of determining the area including the coordinates of each vertex of the target playback window in the area currently occupied by each playback window included in the spliced ​​screen comprises: In each playback window currently included in the spliced ​​screen, determine a third candidate window whose corresponding row identifier is smaller than the row identifier of the target playback window, and determine a fourth candidate window whose corresponding column identifier is smaller than the column identifier of the target playback window; An area including coordinates of each vertex of the target playback window is determined from the areas occupied by the third candidate window and the fourth candidate window.

9. A device for configuring a playback window of a spliced ​​screen, characterized in that: The device comprises: An information acquisition module, used to acquire the target position information of the pre-recorded target playback window bound to the video screen in the spliced ​​screen, wherein the position information at least includes a row and column identifier; An information determination module, used for determining the position information of each play window currently included in the splicing screen after the play windows in the splicing screen are merged, wherein the play windows are merged to change the size of the play windows; An information matching module, used for matching the target position information with the position information of each playback window currently included in the splicing screen to obtain a matching result; A relationship establishing module is used to use the row and column identifier of the target playback window as the current row and column identifier of the target playback window in the splicing screen, and retain the binding relationship between the video screen and the current row and column identifier when the matching result indicates that the row and column identifier of the target playback window exists after the playback windows are merged; and to redetermine the current row and column identifier of the target playback window in the splicing screen, unbind the row and column identifier of the target playback window from the video screen, and establish a binding relationship between the current row and column identifier and the video screen when the matching result indicates that the row and column identifier of the target playback window does not exist after the playback windows are merged.

10. The device according to claim 9, characterized in that The information determination module comprises: An information acquisition submodule, used to acquire vertex coordinates and width and height information of preset vertices of each playback window currently included in the spliced ​​screen; A quantity determination submodule, for determining, for each playback window currently included in the spliced ​​screen, a first quantity of playback windows that are closer to the horizontal axis than the playback window and are in the same column as the playback window, and a second quantity of playback windows that are closer to the vertical axis than the playback window and are in the same row as the playback window, according to vertex coordinates of preset vertices of each playback window currently included in the spliced ​​screen and width and height information; A first identifier determination submodule is configured to determine a row and column identifier of the playback window based on the first number and the second number; and / or, The quantity determination submodule includes: A first candidate window determining unit is used to determine, for each playback window currently included in the spliced ​​screen, a first candidate window whose corresponding ordinate is smaller than the ordinate of the playback window, and a second candidate window whose corresponding ordinate is smaller than the ordinate of the playback window from among the playback windows currently included in the spliced ​​screen; a first number determining unit, configured to determine a first number of play windows that belong to the same column as the play window and are closer to the abscissa axis according to the width information of the play window, the abscissa of the play window, the width information of the first candidate window, and the abscissa of the first candidate window; a second number determining unit, configured to determine, according to the height information of the play window, the ordinate of the play window, the height information of the second candidate window, and the ordinate of the second candidate window, a second number of play windows that belong to the same row as the play window and are closer to the ordinate axis; and / or, The first identification determination submodule includes: a row identifier determining unit, configured to determine a row identifier of the playback window based on a sum of the first number and 1; a column identifier determining unit, configured to determine the column identifier of the playback window based on the sum of the second number and 1; and / or, The position information also includes vertex coordinates; The information matching module includes: A first result determination submodule is used to match the vertex coordinates of the target playback window with the vertex positions of each playback window currently included in the spliced ​​screen to obtain a vertex matching result; A second result determination submodule is configured to match the row and column identifiers of the target playback window with the row and column identifiers of each playback window currently included in the spliced ​​screen to obtain an identifier matching result when the vertex matching result indicates that the target playback window is merged; and / or The first result determination submodule includes: A first result determination unit is used to determine whether the vertex coordinates of the target playback window are at positions corresponding to the splicing screen, and whether all of the vertex positions of the playback windows currently included in the splicing screen are vertex positions, and obtain a vertex matching result; The second result determination submodule includes: A second result determination unit is configured to determine whether the row and column identifier of the target playback window exists in the row and column identifiers of each playback window currently included in the spliced ​​screen, and obtain an identifier matching result; and / or, The relationship establishment module comprises: A second identifier determination submodule is used to determine the current row and column identifier of the target playback window in the spliced ​​screen as the row and column identifier of the target playback window when the vertex matching result indicates that the target playback window has not been merged, or when the identifier matching result indicates that the row and column identifier of the target playback window exists; An area determination submodule, used for determining an area including the coordinates of each vertex of the target playback window in an area currently occupied by each playback window included in the spliced ​​screen when the row and column identifiers representing the target playback window in the identifier matching result do not exist; A third identifier determination submodule is used to determine the row and column identifier of the playback window corresponding to the determined area as the current row and column identifier of the target playback window in the spliced ​​screen; and / or, The area determination submodule includes: A second candidate window determination unit is used to determine, among the playback windows currently included in the spliced ​​screen, a third candidate window whose corresponding row identifier is smaller than the row identifier of the target playback window, and to determine a fourth candidate window whose corresponding column identifier is smaller than the column identifier of the target playback window; The area determination unit is used to determine an area including the coordinates of each vertex of the target playback window from the areas occupied by the third candidate window and the fourth candidate window.

11. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-8 when executing a program stored in a memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Video window roaming method and device, equipment and storage medium

    CN115119034A