Preview window generation method and device
By obtaining the position parameter information of the virtual screen and the interface, and correcting the position of the sub-pre-monitor window according to the adjacency between the interfaces, the problem of difficulty in pre-monitoring display on the special-shaped screen is solved, and the correct pre-monitor window is generated on the special-shaped screen to ensure that the operator can accurately judge the signal source content.
Patent Information
- Application Number
- CN202011197173.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-30
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2040-10-30
AI Technical Summary
The prior art is difficult to implement pre-monitor display on special-shaped screens, making it difficult for operators to judge the correctness of the signal source content before displaying the display screen, especially during important consultations or simulation practices.
By obtaining the position parameter information of the virtual screen, the position parameter information of the virtual interface and the resolution information of the pre-monitor window, the initial position parameters of the sub-pre-monitor window are determined, and the position of the sub-pre-monitor window is corrected according to the adjacency between the virtual interfaces, and the pre-monitor window is finally generated.
It realizes the generation of correct pre-monitoring windows on the special-shaped screen to ensure that the operator can accurately judge the signal source content before displaying the display screen, and avoids the adverse effects caused by incorrect signal source identification or improper display content.
Smart Images

Figure CN114449207B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a preview window generation method and a preview window generation device. Background Art
[0002] As the application fields of spliced display screens gradually expand, spliced display screens are frequently seen in government, public security, traffic police, water conservancy and military departments. As a platform for intuitive and real-time information display, the display screen has high requirements for the correctness of the displayed content. In traditional systems, different signal sources are presented in the form of a list on the control interface, and each signal source is only replaced by a text symbol. It is difficult for operators to determine the content of the signal source in advance and in real time. The information can only be clarified after it is displayed on the display screen. If the signal source is incorrectly identified or the displayed content is inappropriate during important consultations or simulated actual combat, the wrong information will be displayed on the display screen, which will have a bad impact.
[0003] How to quickly and accurately determine the correctness of the displayed content has become an urgent need for every control center operator. The most direct way to solve these needs is to see the real-time image of the signal source before displaying the display screen, that is, to preview the display screen. However, with the diversification of display screen application scenarios, irregular screens, i.e., special-shaped screens, are increasingly used, and how to achieve preview display for special-shaped screens is a technical problem that needs to be solved urgently.
[0004] Therefore, it is currently urgent to solve how to generate a corresponding preview window for special-shaped screens. Summary of the invention
[0005] Therefore, in order to overcome the defects and shortcomings in the prior art, the embodiments of the present invention provide a preview window generation method, device and system and a computer-readable storage medium.
[0006] On the one hand, an embodiment of the present invention provides a preview window generation method, comprising: obtaining virtual screen position parameter information of a virtual screen, virtual interface position parameter information of each of a plurality of virtual interfaces in the virtual screen, and window resolution information of the preview window; determining initial sub-preview window position parameter information of each of a plurality of sub-preview windows in the preview window according to the virtual screen position parameter information, virtual interface position parameter information of each of a plurality of virtual interfaces in the virtual screen, and the window resolution information, wherein the plurality of sub-preview windows correspond one to one to the plurality of virtual interfaces; traversing the plurality of virtual interfaces in a preset order, determining adjacency conditions between the plurality of virtual interfaces according to the virtual interface position parameter information of each of the plurality of virtual interfaces, and determining final sub-preview window position parameter information of each of the plurality of sub-preview windows based on the adjacency conditions and the initial sub-preview window position parameter information of each of the plurality of sub-preview windows; and generating the preview window according to the final sub-preview window position parameter information of each of the plurality of sub-preview windows and the window resolution information.
[0007] In the above scheme, the preview window generation method first obtains the virtual screen position parameter information of the virtual screen, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and the window resolution information of the preview window, and then determines the initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and the window resolution information, wherein the multiple sub-preview windows correspond to the multiple virtual interfaces one by one, and then traverses the multiple virtual interfaces in a preset order, and determines the initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and the window resolution information. The virtual interface position parameter information of each interface determines the adjacency between the multiple virtual interfaces, and based on the described adjacency and the initial sub-pre-monitoring window position parameter information of the multiple sub-pre-monitoring windows, the final sub-pre-monitoring window position parameter information of the multiple sub-pre-monitoring windows is determined, and finally, the preview window is generated according to the final sub-pre-monitoring window position parameter information and the window resolution information of the multiple sub-pre-monitoring windows, so that the corresponding preview window is generated according to the virtual interface position parameter information, the virtual screen position parameter information and the preview window resolution information, and the generated preview window can correctly present the preview content. The preview window generation method provided by the present embodiment is not only applicable to special-shaped screens, but also to regular screens.
[0008] In one embodiment of the present invention, the adjacency situation includes a first adjacency situation and a second adjacency situation; the traversing the multiple virtual interfaces in a preset order, determining the adjacency situation between the multiple virtual interfaces according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determining the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the adjacency situation and the initial sub-preview window position parameter information of each of the multiple sub-preview windows, specifically includes: traversing the multiple virtual interfaces in a first direction in a preset order, determining the first adjacency situation between the multiple virtual interfaces along the first direction according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determining the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the adjacency situation and the initial sub-preview window position parameter information of each of the multiple sub-preview windows. The initial sub-preview window position parameter information of each of the multiple sub-preview windows determines the first sub-preview window position parameter information of each of the multiple sub-preview windows; the multiple virtual interfaces are traversed according to the preset order along a second direction perpendicular to the first direction, and the second adjacency situation along the second direction between the multiple virtual interfaces is determined according to the virtual interface position parameter information of each of the multiple virtual interfaces, and the final sub-preview window position parameter information of each of the multiple sub-preview windows is determined based on the second adjacency situation and the first sub-preview window position parameter information of each of the multiple sub-preview windows; wherein the first direction is one of a horizontal direction or a vertical direction, and the second direction is the other of the horizontal direction or the vertical direction.
[0009] In one embodiment of the present invention, the first direction is a horizontal direction, the first adjacency situation is left-right adjacency, and the first sub-preview window position parameter information includes the first sub-preview window horizontal coordinate information; the traversing of the multiple virtual interfaces along the first direction according to the preset order, determining the first adjacency situation along the first direction between the multiple virtual interfaces according to the respective virtual interface position parameter information of the multiple virtual interfaces, and determining the first sub-preview window position parameters of the multiple sub-preview windows based on the first adjacency situation and the initial sub-preview window position parameter information of the multiple sub-preview windows, specifically includes: taking the current virtual interface traversed according to the preset order as the target interface to perform the following operations to determine the first sub-preview window position parameter information of the multiple sub-preview windows: the first step is to determine the left and right of the target interface. The first step is to determine whether there is a first adjacent interface adjacent to the target interface on the right side, if the first adjacent interface does not exist, the second step is executed, if the first adjacent interface exists, the fourth step is executed; the second step is to determine whether there is a second adjacent interface on the right side of the target interface, if the second adjacent interface exists, the third step is executed, if the second adjacent interface does not exist, the fourth step is executed; the third step is to determine the end point horizontal coordinate information of the target sub-preview window as the first sub-preview window horizontal coordinate information in the first sub-preview window position parameter information of the sub-preview window corresponding to the second adjacent interface according to the target initial sub-preview window position information of the target sub-preview window corresponding to the target interface, and set the second adjacent interface to the target interface and execute the second step; the fourth step is to set the next traversed virtual interface to the target interface, and execute the first step.
[0010] In one embodiment of the present invention, the target initial sub-preview window position information includes the upper left corner vertex horizontal coordinate information and width information of the target interface; the target initial sub-preview window position information of the target sub-preview window corresponding to the target interface determines the end point horizontal coordinate information of the target sub-preview window as the first sub-preview window horizontal coordinate information in the first sub-preview window position parameter information of the sub-preview window corresponding to the second adjacent interface, specifically including: adding the upper left corner vertex horizontal coordinate information and the width information to obtain the end point horizontal coordinate information as the first sub-preview window horizontal coordinate information in the first sub-preview window position parameter information of the sub-preview window corresponding to the second adjacent interface.
[0011] In one embodiment of the present invention, the second direction is a vertical direction, the second adjacency situation is vertically adjacent, and the final sub-preview window position parameter information includes the final sub-preview window ordinate information; the traversing of the multiple virtual interfaces along the second direction perpendicular to the first direction according to the preset order, determining the second adjacency situation along the second direction between the multiple virtual interfaces according to the respective virtual interface position parameter information of the multiple virtual interfaces, and determining the final sub-preview window position parameter information of the multiple sub-preview windows based on the second adjacency situation and the respective first sub-preview window position parameter information of the multiple sub-preview windows, specifically includes: taking the current virtual interface traversed according to the preset order among the multiple virtual interfaces as the target interface to perform the following operations to determine the final sub-preview window position parameter information of the multiple sub-preview windows: the fifth step, judging the Whether there is a third adjacent interface adjacent to the target interface on the upper side of the target interface, if the third adjacent interface does not exist, execute the sixth step, if the third adjacent interface exists, execute the seventh step; the sixth step, determine whether there is a fourth adjacent interface on the lower side of the target interface, if the fourth adjacent interface exists, execute the seventh step, if the fourth adjacent interface does not exist, execute the eighth step; the seventh step, determine the end point ordinate information of the target sub-pre-monitoring window as the final sub-pre-monitoring window ordinate information in the final sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the fourth adjacent interface according to the target first sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the fourth adjacent interface to the target interface and execute the sixth step; the eighth step, set the next traversed virtual interface to the target interface, and execute the fifth step.
[0012] In one embodiment of the present invention, the target first sub-preview window position information includes the upper left corner vertex ordinate information and height information of the target interface; the target first sub-preview window position information of the target sub-preview window corresponding to the target interface determines the end point ordinate information of the target sub-preview window as the final sub-preview window ordinate information in the final sub-preview window position parameter information of the sub-preview window corresponding to the fourth adjacent interface, specifically including: adding the upper left corner vertex ordinate information and the height information to obtain the end point ordinate information as the final sub-preview window ordinate information in the final sub-preview window position parameter information of the sub-preview window corresponding to the fourth adjacent interface.
[0013] On the other hand, an embodiment of the present invention provides a preview window generation device, comprising: an acquisition module, used to acquire virtual screen position parameter information of a virtual screen, virtual interface position parameter information of each of a plurality of virtual interfaces in the virtual screen, and window resolution information of the preview window; a first determination module, used to determine initial sub-preview window position parameter information of each of a plurality of sub-preview windows in the preview window according to the virtual screen position parameter information, virtual interface position parameter information of each of a plurality of virtual interfaces in the virtual screen, and the window resolution information, wherein the plurality of sub-preview windows correspond one to one to the plurality of virtual interfaces; a second determination module, used to traverse the plurality of virtual interfaces in a preset order, determine the adjacency between the plurality of virtual interfaces according to the virtual interface position parameter information of each of the plurality of virtual interfaces, and determine final sub-preview window position parameter information of each of the plurality of sub-preview windows based on the adjacency and the initial sub-preview window position parameter information of each of the plurality of sub-preview windows; and a generation module, used to generate the preview window according to the final sub-preview window position parameter information of each of the plurality of sub-preview windows and the window resolution information.
[0014] In the above scheme, in the above scheme, the preview window generating device first obtains the virtual screen position parameter information of the virtual screen, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen and the window resolution information of the preview window, and then determines the initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen and the window resolution information, wherein the multiple sub-preview windows correspond to the multiple virtual interfaces one by one, and then traverses the multiple virtual interfaces in a preset order, and determines the initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen and the window resolution information. The virtual interface position parameter information of the respective multiple virtual interfaces determines the adjacency between the multiple virtual interfaces, and the final sub-pre-monitoring window position parameter information of the respective multiple sub-pre-monitoring windows is determined based on the respective initial sub-pre-monitoring window position parameter information of the multiple sub-pre-monitoring windows, finally, the preview window is generated according to the respective final sub-pre-monitoring window position parameter information of the multiple sub-pre-monitoring windows and the window resolution information, so that the corresponding preview window is generated according to the virtual interface position parameter information, the virtual screen position parameter information and the preview window resolution information, and the generated preview window can correctly present the preview content. The preview window generation method provided by the present embodiment is not only applicable to special-shaped screens, but also to regular screens.
[0015] In one embodiment of the present invention, the adjacency situation includes a first adjacency situation and a second adjacency situation; the second determination module specifically includes: a first determination unit, used to traverse the multiple virtual interfaces along the first direction according to the preset order, determine the first adjacency situation between the multiple virtual interfaces along the first direction according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determine the first sub-preview window position parameter information of each of the multiple sub-preview windows based on the first adjacency situation and the initial sub-preview window position parameter information of each of the multiple sub-preview windows; a second determination unit, used to traverse the multiple virtual interfaces along the second direction perpendicular to the first direction according to the preset order, determine the second adjacency situation between the multiple virtual interfaces along the second direction according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determine the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the second adjacency situation and the first sub-preview window position parameter information of each of the multiple sub-preview windows; wherein the first direction is one of the horizontal direction and the vertical direction, and the second direction is the other of the horizontal direction and the vertical direction.
[0016] In one embodiment of the present invention, the first direction is a horizontal direction, the first adjacency is left-right adjacency, and the first sub-preview window position parameter information includes the first sub-preview window horizontal coordinate information; the first determining unit is specifically used to: take the current virtual interface traversed in the preset order among the multiple virtual interfaces as the target interface to perform the following operations to determine the first sub-preview window position parameter information of each of the multiple sub-preview windows: a first step, judging whether there is a first adjacent interface adjacent to the target interface on the left side of the target interface, if the first adjacent interface does not exist, executing the second step, if the first adjacent interface exists, executing the fourth step; the second Step, determine whether there is a second adjacent interface on the right side of the target interface, if the second adjacent interface exists, execute the third step, if the second adjacent interface does not exist, execute the fourth step; the third step, determine the end point horizontal coordinate information of the target sub-preview window as the first sub-preview window horizontal coordinate information in the first sub-preview window position parameter information of the sub-preview window corresponding to the second adjacent interface according to the target initial sub-preview window position information of the target sub-preview window corresponding to the target interface, and set the second adjacent interface to the target interface and execute the second step; the fourth step, set the next traversed virtual interface to the target interface, and execute the first step.
[0017] In one embodiment of the present invention, the second direction is a vertical direction, the second adjacency is vertically adjacent, and the final sub-preview window position parameter information includes the final sub-preview window ordinate information; the second determining unit is specifically used to: use the current virtual interface traversed in the preset order among the multiple virtual interfaces as the target interface to perform the following operations to determine the final sub-preview window position parameter information of each of the multiple sub-preview windows: a fifth step, determining whether there is a third adjacent interface adjacent to the target interface on the upper side of the target interface, if the third adjacent interface does not exist, executing the sixth step, if the third adjacent interface exists, executing the seventh step; the sixth step Step, determine whether there is a fourth adjacent interface on the lower side of the target interface, if the fourth adjacent interface exists, execute the seventh step, if the fourth adjacent interface does not exist, execute the eighth step; Step seven, determine the end point ordinate information of the target sub-pre-monitoring window as the final sub-pre-monitoring window ordinate information in the final sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the fourth adjacent interface according to the target first sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the fourth adjacent interface to the target interface and execute the sixth step; Step eight, set the next traversed virtual interface to the target interface, and execute the fifth step.
[0018] On the other hand, an embodiment of the present invention provides a preview window generation system, comprising: a processor and a memory connected to the processor; wherein the memory stores instructions executed by the processor, and the instructions enable the processor to perform operations to perform any one of the above-mentioned preview window generation methods.
[0019] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, which stores program code. When the program code is executed by one or more processors, the one or more processors execute any one of the above-mentioned preview window generation methods.
[0020] One or more of the above technical solutions may have the following advantages or beneficial effects: the preview window generation method, device and system and computer-readable storage medium provided in this embodiment realize the generation of a corresponding preview window according to the virtual interface position parameter information, the virtual screen position parameter information and the preview window resolution information, and the generated preview window can correctly present the preview content. The preview window generation method provided in this embodiment is not only applicable to special-shaped screens, but also to regular screens. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0022] Figure 1 A schematic flow chart of a preview window generation method provided in the first embodiment of the present invention.
[0023] Figure 2 for Figure 1 Detailed flowchart of step S12 in FIG.
[0024] Figure 3 for Figure 2 Detailed flowchart of step S120 in FIG.
[0025] Figure 4 for Figure 2 Detailed flowchart of step S122 in FIG.
[0026] Figure 5 A schematic diagram of the arrangement of a virtual interface in a virtual screen.
[0027] Figure 6 A schematic diagram of the arrangement of another virtual interface in a virtual screen.
[0028] Figure 7 The figure is a schematic diagram of the arrangement of another virtual interface in a virtual screen.
[0029] Fig. 8A It is a schematic diagram of the process flow of traversing the virtual interface along the horizontal direction according to the first embodiment of the present invention.
[0030] Figure 8B It is a schematic diagram of the process of traversing virtual interfaces along the vertical direction according to the first embodiment of the present invention.
[0031] Fig. 9 A schematic diagram of the module structure of a preview window generating device provided in the second embodiment of the present invention.
[0032] Fig.10 for Fig. 9 Schematic diagram of the unit structure of the second determination module in .
[0033] Fig.11 A schematic diagram of the structure of a preview window generation system provided in the third embodiment of the present invention.
[0034] Fig.12 A schematic structural diagram of a computer-readable storage medium provided for the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] [First embodiment]
[0037] See also Figure 1 , shows a preview window generation method of a first embodiment of the present invention. The preview window generation method, for example, comprises the following steps:
[0038] S10, acquiring virtual screen position parameter information of the virtual screen, virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and window resolution information of the preview window;
[0039] S11, determining initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and the window resolution information, wherein the multiple sub-preview windows correspond one-to-one to the multiple virtual interfaces;
[0040] S12, traversing the multiple virtual interfaces in a preset order, determining adjacency between the multiple virtual interfaces according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determining final sub-preview window position parameter information of each of the multiple sub-preview windows based on the adjacency and initial sub-preview window position parameter information of each of the multiple sub-preview windows; and
[0041] S13, generating the preview window according to the final sub-preview window position parameter information and the window resolution information of each of the multiple sub-preview windows.
[0042] In a specific implementation of the embodiment of the present invention, Figure 2As shown, the adjacency situation includes a first adjacency situation and a second adjacency situation; the traversing the multiple virtual interfaces in a preset order, determining the adjacency situation between the multiple virtual interfaces according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determining the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the adjacency situation and the initial sub-preview window position parameter information of each of the multiple sub-preview windows, specifically includes: S120, traversing the multiple virtual interfaces in a first direction in a preset order, determining the first adjacency situation between the multiple virtual interfaces along the first direction according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determining the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the adjacency situation and the initial sub-preview window position parameter information of each of the multiple sub-preview windows The initial sub-preview window position parameter information of each sub-preview window determines the first sub-preview window position parameter information of each of the multiple sub-preview windows; S122, traversing the multiple virtual interfaces along the second direction perpendicular to the first direction according to the preset order, determining the second adjacency situation along the second direction between the multiple virtual interfaces according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determining the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the second adjacency situation and the first sub-preview window position parameter information of each of the multiple sub-preview windows; wherein the first direction is one of the horizontal direction or the vertical direction, and the second direction is the other of the horizontal direction or the vertical direction.
[0043] In a specific implementation of the embodiment of the present invention, the first direction is a horizontal direction, the first adjacency situation is left-right adjacency, and the first sub-preview window position parameter information includes the first sub-preview window horizontal coordinate information; Figure 3As shown, the multiple virtual interfaces are traversed along the first direction according to the preset order, the first adjacency situation between the multiple virtual interfaces along the first direction is determined according to the virtual interface position parameter information of each of the multiple virtual interfaces, and the first sub-preview window position parameters of each of the multiple sub-preview windows are determined based on the first adjacency situation and the initial sub-preview window position parameter information of each of the multiple sub-preview windows, specifically including: taking the current virtual interface traversed according to the preset order among the multiple virtual interfaces as the target interface and performing the following operations to determine the first sub-preview window position parameter information of each of the multiple sub-preview windows: S1200, the first step, judging whether there is a first adjacent interface adjacent to the target interface on the left side of the target interface, if the first adjacent interface does not exist, executing The second step, if the first adjacent interface exists, execute the fourth step; S1202, the second step, determine whether there is a second adjacent interface on the right side of the target interface, if the second adjacent interface exists, execute the third step, if the second adjacent interface does not exist, execute the fourth step; S1204, the third step, determine the end point horizontal coordinate information of the target sub-pre-monitoring window as the first sub-pre-monitoring window horizontal coordinate information in the first sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the second adjacent interface according to the target initial sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the second adjacent interface as the target interface and execute the second step; S1206, the fourth step, set the next traversed virtual interface to the target interface, and execute the first step.
[0044] In a specific implementation of an embodiment of the present invention, the target initial sub-preview window position information includes the horizontal coordinate information and width information of the upper left corner vertex of the target interface; the target initial sub-preview window position information of the target sub-preview window corresponding to the target interface determines the end point horizontal coordinate information of the target sub-preview window as the first sub-preview window horizontal coordinate information in the first sub-preview window position parameter information of the sub-preview window corresponding to the second adjacent interface, specifically including: adding the upper left corner vertex horizontal coordinate information and the width information to obtain the end point horizontal coordinate information as the first sub-preview window horizontal coordinate information in the first sub-preview window position parameter information of the sub-preview window corresponding to the second adjacent interface.
[0045] In a specific implementation of the embodiment of the present invention, the second direction is a vertical direction, the second adjacency situation is vertically adjacent, and the final sub-preview window position parameter information includes the final sub-preview window ordinate information; Figure 4As shown, the plurality of virtual interfaces are traversed in the preset order along a second direction perpendicular to the first direction, the second adjacency situation along the second direction between the plurality of virtual interfaces is determined according to the respective virtual interface position parameter information of the plurality of virtual interfaces, and the final sub-pre-monitoring window position parameter information of the plurality of sub-pre-monitoring windows is determined based on the second adjacency situation and the respective first sub-pre-monitoring window position parameter information of the plurality of sub-pre-monitoring windows, specifically comprising: taking the current virtual interface traversed in the preset order among the plurality of virtual interfaces as the target interface and performing the following operations to determine the final sub-pre-monitoring window position parameter information of the plurality of sub-pre-monitoring windows: S1220, the fifth step, judging whether there is a third adjacent interface adjacent to the target interface on the upper side of the target interface, if the third adjacent interface does not exist, If there is a third adjacent interface, execute the sixth step; if there is a third adjacent interface, execute the seventh step; S1222, the sixth step, determine whether there is a fourth adjacent interface on the lower side of the target interface, if there is the fourth adjacent interface, execute the seventh step, if there is no fourth adjacent interface, execute the eighth step; S1224, the seventh step, determine the end point ordinate information of the target sub-pre-monitoring window as the final sub-pre-monitoring window ordinate information in the final sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the fourth adjacent interface according to the target first sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the fourth adjacent interface to the target interface and execute the sixth step; S1226, the eighth step, set the next traversed virtual interface to the target interface, and execute the fifth step.
[0046] In a specific implementation of an embodiment of the present invention, the target first sub-preview window position information includes the upper left corner vertex vertical coordinate information and height information of the target interface; the target first sub-preview window position information of the target sub-preview window corresponding to the target interface determines the end point vertical coordinate information of the target sub-preview window as the final sub-preview window vertical coordinate information in the final sub-preview window position parameter information of the sub-preview window corresponding to the fourth adjacent interface, specifically including: adding the upper left corner vertex vertical coordinate information and the height information to obtain the end point vertical coordinate information as the final sub-preview window vertical coordinate information in the final sub-preview window position parameter information of the sub-preview window corresponding to the fourth adjacent interface.
[0047] To facilitate understanding of this embodiment, Figures 5 to 8B The preview window generation method of this embodiment is specifically described. The preview window generation method can be executed by a host computer such as a computer.
[0048] When executing the preview window generation method, the host computer first obtains the virtual screen position parameter information of the virtual screen, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and the window resolution information of the preview window (corresponding to Figure 1 Step S10). The virtual screen is a virtual screen corresponding to a physical display screen, such as a regular screen or a special-shaped screen, created by a user on the host computer software. The virtual screen position parameter information is, for example, the upper left corner vertex coordinate information, width information and height information of the virtual screen. Of course, it can also be the coordinate information of other vertices, such as the upper right corner, lower left corner, and lower right corner vertex coordinate information. The embodiment of the present invention is not limited to this. The position parameter information is identified by the upper left corner vertex coordinate information below. The virtual interface coordinate position parameter information of the multiple virtual interfaces is the upper left corner vertex coordinate information, width information and height information of each virtual interface. Of course, it can also be the coordinate information of other vertices, such as the upper right corner, lower left corner, and lower right corner vertex coordinate information. The embodiment of the present invention is not limited to this. The position parameter information is identified by the upper left corner vertex coordinate information below. The window resolution information of the preview window is the width and height of the preview window. In addition, the above information can all be in pixels. The above information can be input by the user, or it can be automatically obtained by the host computer in response to the user's interface input and other operations on the host computer software. The embodiment of the present invention is not limited to this.
[0049] Then, the host computer determines the initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and the window resolution information, wherein the multiple sub-preview windows correspond to the multiple virtual interfaces one by one (corresponding to Figure 1 Step S11). For a certain interface intface, intface.x, intface.y, intface.width, intface.height represent the horizontal coordinate, vertical coordinate, width and height of the upper left corner vertex of the interface; screen.x, screen.y, screen.width, screen.height represent the horizontal coordinate, vertical coordinate, width and height of the upper left corner vertex of the virtual screen respectively; window.width, window.height represent the width and height of the preview window respectively, then the initial sub-preview window position parameter information of the sub-preview window corresponding to the interface is:
[0050] Intface.Mvr.x=(intface.x-screen.x)*window.width / screen.width;
[0051] Intface.Mvr.y=(intface.y-screen.y)*window.height / screen.height;
[0052] Intface.Mvr.width=intface.width*window.width / screen.width;
[0053] Intface.Mvr.height=intface.height*window.height / screen.Height;
[0054] Among them, Intface.Mvr.x, Intface.Mvr.y, Intface.Mvr.width, and Intface.Mvr.height are respectively the horizontal coordinate, vertical coordinate, width, and height of the upper left corner of the sub-preview window of the interface.
[0055] Next, the host computer traverses the multiple virtual interfaces in a preset order, determines the adjacency between the multiple virtual interfaces according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determines the final sub-preview window position parameter information of each of the multiple sub-preview windows (corresponding to the position parameter information of the virtual interface) based on the adjacency and the initial sub-preview window position parameter information of each of the multiple sub-preview windows. Figure 1 Specifically, the host computer traverses each virtual interface in the horizontal direction and the vertical direction to determine the final sub-preview window position parameter information of the sub-preview window corresponding to each virtual interface. It should be noted that the host computer can first perform the horizontal direction processing process and then the vertical direction processing process, or can first perform the vertical direction processing process and then the horizontal direction processing process, and the embodiment of the present invention is not limited thereto.
[0056] by Figure 5 For example, there are three interfaces in the virtual display screen, namely interface 1, interface 2 and interface 3. The host computer can traverse them in a preset order. The order can be determined randomly by the host computer or determined by the host computer according to the order in which the user creates the above interfaces on the host computer software. Assuming that the order in which the host computer traverses is interface 1, interface 2 and interface 3, then according to Fig. 8A and Figure 8B The processing flow is Figure 5 If the interfaces in the sub-preview window are not adjacent, the coordinate information of each interface is not corrected, that is, the final sub-preview window position parameter information corresponding to each interface is the initial sub-preview window position parameter information.
[0057] by Figure 6For example, when traversing the interfaces, it is found that interface 1 (Intface1), interface 2 (Intface2), and interface 3 (Intface3) are adjacent to each other in the horizontal direction, the horizontal coordinate parameters need to be corrected. The correction process is: correct the horizontal coordinate information of the upper left corner vertex of interface 2 to: Intface2.Mvr.x = Intface1.Mvr.x (the horizontal coordinate information of the upper left corner vertex of interface 1) + Intface1.Mvr.width (the width information of interface 1); correct the horizontal coordinate information of the upper left corner vertex of interface 3 to: Intface3.Mvr.x = Intface2.Mvr.x (the horizontal coordinate information of the upper left corner vertex of interface 2) + Intface2.Mvr.width (the width information of interface 2); the horizontal x coordinate correction of interfaces 1, 2, and 3 is now completed. Continue to traverse and find that interface 4 and interface 5 are adjacent in the vertical direction. The vertical coordinate parameters need to be corrected. The correction method is: correct the vertical coordinate information of the upper left corner vertex of interface 5 to Intface5.Mvr.y = Intface4.Mvr.y (the vertical coordinate information of the upper left corner vertex of interface 4) + Intface4.Mvr.height (the height information of interface 4). At this point, the vertical y coordinate correction of interface 4 and interface 5 is completed. When the interface traversal finds that there is no mutual adjacency, the parameter correction of all interfaces is completed, that is, the final sub-preview window position parameter information of the sub-preview window corresponding to each interface is obtained. It should be noted that the horizontal coordinate information and the vertical coordinate information of the interface are corrected according to the adjacency situation, and the height and width are not corrected.
[0058] by Figure 7 For example, combined with Fig. 8A and Figure 8B , the preview window parameter processing process is explained, taking the traversal through a linked list with the sequence of interface 1, interface 2, interface 3, interface 4, interface 5, and interface 6 as an example.
[0059] Processing in the horizontal direction: first, the host computer determines that there is no adjacent interface on the left side of interface 1 and no adjacent interface on the right side, then starts processing the next interface in the linked list, namely interface 2; the host computer determines that there is an adjacent interface 3 on the left side of interface 2, then the host computer starts processing the next interface in the linked list, namely interface 3; the host computer determines that there is no adjacent interface on the left side of interface 3 and there is an adjacent interface 2 on the right side, then uses the end point horizontal coordinate information of the corresponding sub-preview window of interface 3 (for example, determined by the upper left corner vertex left information and width information in the initial sub-preview window position parameter information in step S11) to correct the starting horizontal coordinate information of interface 2, and then If the host computer determines that there is no adjacent interface on the right side of interface 2, the host computer starts to process the next interface in the linked list, namely interface 4; if the host computer determines that there is no adjacent interface on the left side and no adjacent interface on the right side of interface 4, the host computer starts to process the next interface in the linked list, namely interface 5; if the host computer determines that there is no adjacent interface on both the left and right sides of interface 5, the host computer starts to process the next interface in the linked list, namely interface 6; if the host computer determines that there is no adjacent interface on both the left and right sides of interface 6 and determines that interface 6 is the last interface in the linked list, the processing ends, and finally the first sub-preview window position parameters corresponding to each virtual interface are obtained (regardless of whether correction is performed).
[0060] It should be noted that when performing horizontal processing, if there is adjacency that needs to be corrected, only the horizontal coordinate information is corrected, while the vertical coordinate information, width information and height information remain unchanged.
[0061] Processing in the vertical direction: first, the host computer determines that there is no adjacent interface on the upper side of interface 1 and there is no adjacent interface on the lower side, then the next interface in the linked list, i.e., interface 2, begins to be processed; the host computer determines that there is no adjacent interface on the upper side of interface 2 and there is an adjacent interface 6 on the lower side, then the host computer uses the end point ordinate information of the sub-preview window corresponding to interface 2 (for example, determined by the upper left corner vertex left information and width information in the first sub-preview window position parameter information obtained after horizontal processing) to correct the starting ordinate information of interface 6; the host computer determines that there is no adjacent interface on the lower side of interface 6, then the host computer begins to process the next interface in the linked list, i.e., interface 3; the host computer determines that there is no adjacent interface on the upper side of interface 3 and there is an adjacent interface on the lower side 4, the host computer uses the endpoint ordinate information of the sub-preview window corresponding to interface 3 to correct the starting ordinate of interface 4; the host computer determines that there is no adjacent interface on the lower side of interface 4, then the host computer starts to process the next interface in the linked list, namely interface 4; the host computer determines that there is an adjacent interface on the upper side of interface 4, then the host computer starts to process the next interface in the linked list, namely interface 5; the host computer determines that there is no adjacent interface on both the upper and lower sides of interface 5, and the host computer starts to process the next interface in the linked list, namely interface 6; the host computer determines that there is an adjacent interface on the upper side of interface 6 and determines that interface 6 is the last interface in the linked list, then the processing ends, and the final sub-preview window position parameters corresponding to each interface are finally obtained (regardless of whether correction is performed).
[0062] It should be noted that when performing vertical processing, if there is an adjacent interface that needs to be corrected, only the ordinate information is corrected, while the abscissa information, width information and height information remain unchanged.
[0063] Finally, the host computer generates the preview window according to the final sub-preview window position parameter information of each of the multiple sub-preview windows and the window resolution information.
[0064] It should be noted that the above determination of whether the interfaces are adjacent only requires calculating the four vertex coordinates of each interface to see whether there are vertex coordinate values, such as horizontal coordinate values or vertical coordinate values, which will not be elaborated in detail here.
[0065] The preview window generated by the preview window generation method described above will not have any seams in the special-shaped screen scenario, so that the physical large screen and the preview content can be consistent, ensuring that the operator can correctly judge the output screen and will not make mistakes.
[0066] In summary, the preview window generation method realizes the generation of a corresponding preview window according to the virtual interface position parameter information, the virtual screen position parameter information and the preview window resolution information, and the generated preview window can correctly present the preview content. The preview window generation method provided in this embodiment is not only applicable to special-shaped screens, but also to regular screens.
[0067] [Second embodiment]
[0068] like Fig. 9 As shown, the second embodiment of the present invention provides a preview window generating device 30. The preview window generating device 30 includes, for example, an acquisition module 31, a first determination module 32, a second determination module 33 and a generation module 34.
[0069] Specifically, the acquisition module 31 is used to acquire virtual screen position parameter information of the virtual screen, virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and window resolution information of the preview window;
[0070] The first determining module 32 is used to determine the initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen and the window resolution information, wherein the multiple sub-preview windows correspond to the multiple virtual interfaces one by one;
[0071] The second determining module 33 is used to traverse the multiple virtual interfaces in a preset order, determine the adjacency between the multiple virtual interfaces according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determine the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the adjacency and the initial sub-preview window position parameter information of each of the multiple sub-preview windows; and
[0072] The generating module 34 is used to generate the preview window according to the final sub-preview window position parameter information of each of the multiple sub-preview windows and the window resolution information.
[0073] In a specific embodiment of the present invention, the adjacency situation includes a first adjacency situation and a second adjacency situation; Fig.10 As shown, the second determination module 33 specifically includes: a first determination unit 330, which is used to traverse the multiple virtual interfaces along the first direction according to the preset order, determine the first adjacency situation between the multiple virtual interfaces along the first direction according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determine the first sub-preview window position parameter information of each of the multiple sub-preview windows based on the first adjacency situation and the initial sub-preview window position parameter information of each of the multiple sub-preview windows; a second determination unit 332, which is used to traverse the multiple virtual interfaces along the second direction perpendicular to the first direction according to the preset order, determine the second adjacency situation between the multiple virtual interfaces along the second direction according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determine the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the second adjacency situation and the first sub-preview window position parameter information of each of the multiple sub-preview windows; wherein the first direction is one of the horizontal direction and the vertical direction, and the second direction is the other of the horizontal direction and the vertical direction.
[0074] In a specific embodiment of the present invention, the first direction is a horizontal direction, the first adjacency is left-right adjacency, and the first sub-preview window position parameter information includes the first sub-preview window horizontal coordinate information; the first determining unit 330 is specifically used to: take the current virtual interface traversed in the preset order among the multiple virtual interfaces as the target interface to perform the following operations to determine the first sub-preview window position parameter information of each of the multiple sub-preview windows: a first step, judging whether there is a first adjacent interface adjacent to the target interface on the left side of the target interface, if the first adjacent interface does not exist, executing the second step, if the first adjacent interface exists, executing the fourth step; The second step is to determine whether there is a second adjacent interface on the right side of the target interface. If the second adjacent interface exists, the third step is executed; if the second adjacent interface does not exist, the fourth step is executed; the third step is to determine the end point horizontal coordinate information of the target sub-pre-monitoring window as the first sub-pre-monitoring window horizontal coordinate information in the first sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the second adjacent interface according to the target initial sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the second adjacent interface as the target interface and execute the second step; the fourth step is to set the next traversed virtual interface to the target interface and execute the first step.
[0075] In a specific embodiment of the present invention, the second direction is a vertical direction, the second adjacency is vertically adjacent, and the final sub-preview window position parameter information includes the final sub-preview window ordinate information; the second determining unit 332 is specifically used for: taking the current virtual interface traversed in the preset order among the multiple virtual interfaces as the target interface to perform the following operations to determine the final sub-preview window position parameter information of each of the multiple sub-preview windows: a fifth step, determining whether there is a third adjacent interface adjacent to the target interface on the upper side of the target interface, if the third adjacent interface does not exist, executing the sixth step, if the third adjacent interface exists, executing the seventh step; The sixth step is to determine whether there is a fourth adjacent interface on the lower side of the target interface. If the fourth adjacent interface exists, the seventh step is executed; if the fourth adjacent interface does not exist, the eighth step is executed; the seventh step is to determine the end point ordinate information of the target sub-pre-monitoring window as the final sub-pre-monitoring window ordinate information in the final sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the fourth adjacent interface according to the target first sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the fourth adjacent interface as the target interface and execute the sixth step; the eighth step is to set the next traversed virtual interface to the target interface and execute the fifth step.
[0076] The specific working process and technical effects of the modules in the preview window generating device 30 in this embodiment refer to the description of the relevant steps in the aforementioned first embodiment, which will not be repeated here.
[0077] [Third embodiment]
[0078] like Fig.11 As shown, a preview window generation system 50 provided in the third embodiment of the present invention includes: a processor 52 and a memory 54 electrically connected to the processor 52; wherein the memory 54 stores instructions executed by the processor 52, and the instructions, for example, enable the processor 52 to perform operations to perform the preview window generation method described in the first embodiment.
[0079] [Fourth embodiment]
[0080] like Fig.12 As shown, a computer-readable storage medium 60 provided in the fourth embodiment of the present invention is a non-volatile memory and stores program code. When the program code is executed by one or more processors, the one or more processors execute the preview window generation method described in the first embodiment.
[0081] In addition, it can be understood that the aforementioned embodiments are only exemplary descriptions of the present invention. Under the premise that the technical features do not conflict, the structures do not contradict, and the purpose of the present invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.
[0082] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0084] In addition, each functional unit / module in each embodiment of the present invention may be integrated into one processing unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated into one unit / module. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of hardware plus software functional units / modules.
[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A preview window generation method, characterized in that: include: Acquire virtual screen position parameter information of the virtual screen, virtual interface position parameter information of each of a plurality of virtual interfaces in the virtual screen, and window resolution information of the preview window; Determine initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and the window resolution information, wherein the multiple sub-preview windows correspond one-to-one to the multiple virtual interfaces; Traversing the multiple virtual interfaces in a preset order, determining adjacency between the multiple virtual interfaces according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determining final sub-preview window position parameter information of each of the multiple sub-preview windows based on the adjacency and initial sub-preview window position parameter information of each of the multiple sub-preview windows; as well as The preview window is generated according to the final sub-preview window position parameter information of each of the multiple sub-preview windows and the window resolution information.
2. The preview window generation method according to claim 1, wherein: The adjacency situation includes a first adjacency situation and a second adjacency situation; The method of traversing the plurality of virtual interfaces in a preset order, determining the adjacency between the plurality of virtual interfaces according to the respective virtual interface position parameter information of the plurality of virtual interfaces, and determining the respective final sub-preview window position parameter information of the plurality of sub-preview windows based on the adjacency and the respective initial sub-preview window position parameter information of the plurality of sub-preview windows, specifically includes: Traversing the plurality of virtual interfaces along a first direction according to the preset order, determining the first adjacency situation between the plurality of virtual interfaces along the first direction according to the respective virtual interface position parameter information of the plurality of virtual interfaces, and determining the first sub-preview window position parameter information of the plurality of sub-preview windows based on the first adjacency situation and the respective initial sub-preview window position parameter information of the plurality of sub-preview windows; Traversing the plurality of virtual interfaces in the preset order along a second direction perpendicular to the first direction, determining the second adjacency situation between the plurality of virtual interfaces along the second direction according to the respective virtual interface position parameter information of the plurality of virtual interfaces, and determining the respective final sub-preview window position parameter information of the plurality of sub-preview windows based on the second adjacency situation and the respective first sub-preview window position parameter information of the plurality of sub-preview windows; The first direction is one of a horizontal direction and a vertical direction, and the second direction is the other of the horizontal direction and the vertical direction.
3. The preview window generation method according to claim 2, wherein: The first direction is a horizontal direction, the first adjacency situation is left-right adjacency, and the first sub-preview window position parameter information includes the first sub-preview window horizontal coordinate information; The step of traversing the plurality of virtual interfaces along the first direction according to the preset order, determining the first adjacency situation between the plurality of virtual interfaces along the first direction according to the respective virtual interface position parameter information of the plurality of virtual interfaces, and determining the first sub-preview window position parameter of each of the plurality of sub-preview windows based on the first adjacency situation and the respective initial sub-preview window position parameter information of the plurality of sub-preview windows, specifically includes: The current virtual interface among the multiple virtual interfaces traversed in the preset order is used as the target interface to perform the following operations to determine the first sub-preview window position parameter information of each of the multiple sub-preview windows: The first step is to determine whether there is a first adjacent interface adjacent to the target interface on the left side of the target interface, if the first adjacent interface does not exist, then execute the second step, if the first adjacent interface exists, then execute the fourth step; The second step is to determine whether there is a second adjacent interface on the right side of the target interface, if the second adjacent interface exists, then execute the third step, if the second adjacent interface does not exist, then execute the fourth step; The third step is to determine the endpoint abscissa information of the target sub-pre-monitoring window as the first sub-pre-monitoring window abscissa information in the first sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the second adjacent interface according to the target initial sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the second adjacent interface to the target interface and execute the second step; The fourth step is to set the next traversed virtual interface as the target interface and execute the first step.
4. The preview window generation method according to claim 3, wherein: The target initial sub-preview window position information includes the upper left corner vertex abscissa information and width information of the target interface; The method of determining the end point abscissa information of the target sub-preview window according to the target initial sub-preview window position information of the target sub-preview window corresponding to the target interface as the first sub-preview window abscissa information in the first sub-preview window position parameter information of the sub-preview window corresponding to the second adjacent interface specifically includes: The end point abscissa information is obtained by adding the upper left corner vertex abscissa information to the width information as the first sub-preview window abscissa information in the first sub-preview window position parameter information of the sub-preview window corresponding to the second adjacent interface.
5. The preview window generation method according to claim 3, characterized in that: The second direction is a vertical direction, the second adjacency situation is vertically adjacent, and the final sub-preview window position parameter information includes the final sub-preview window ordinate information; The traversing the plurality of virtual interfaces in the preset order along a second direction perpendicular to the first direction, determining the second adjacency situation between the plurality of virtual interfaces along the second direction according to the respective virtual interface position parameter information of the plurality of virtual interfaces, and determining the final sub-preview window position parameter information of the plurality of sub-preview windows based on the second adjacency situation and the respective first sub-preview window position parameter information of the plurality of sub-preview windows, specifically includes: The current virtual interface among the multiple virtual interfaces traversed in the preset order is used as the target interface to perform the following operations to determine the final sub-preview window position parameter information of each of the multiple sub-preview windows: The fifth step is to determine whether there is a third adjacent interface adjacent to the target interface on the upper side of the target interface, if the third adjacent interface does not exist, then execute the sixth step, if the third adjacent interface exists, then execute the seventh step; The sixth step is to determine whether there is a fourth adjacent interface on the lower side of the target interface, if there is the fourth adjacent interface, execute the seventh step, if there is no fourth adjacent interface, execute the eighth step; The seventh step is to determine the terminal point ordinate information of the target sub-pre-monitoring window as the final sub-pre-monitoring window ordinate information in the final sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the fourth adjacent interface according to the target first sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the fourth adjacent interface to the target interface and execute the sixth step; In the eighth step, the next traversed virtual interface is set as the target interface, and the fifth step is executed.
6. The preview window generation method according to claim 5, characterized in that: The target first sub-preview window position information includes the upper left corner vertex ordinate information and height information of the target interface; The step of determining the end point ordinate information of the target sub-preview window according to the target first sub-preview window position information of the target sub-preview window corresponding to the target interface as the final sub-preview window ordinate information in the final sub-preview window position parameter information of the sub-preview window corresponding to the fourth adjacent interface specifically includes: The end point ordinate information is obtained by adding the upper left corner vertex ordinate information to the height information as the final sub-preview window ordinate information in the final sub-preview window position parameter information of the sub-preview window corresponding to the fourth adjacent interface.
7. A preview window generation device, characterized in that: include: An acquisition module, used to acquire virtual screen position parameter information of the virtual screen, virtual interface position parameter information of each of a plurality of virtual interfaces in the virtual screen, and window resolution information of the preview window; A first determining module is used to determine initial sub-preview window position parameter information of each of the multiple sub-preview windows in the preview window according to the virtual screen position parameter information, the virtual interface position parameter information of each of the multiple virtual interfaces in the virtual screen, and the window resolution information, wherein the multiple sub-preview windows correspond to the multiple virtual interfaces one by one; A second determining module is used to traverse the multiple virtual interfaces in a preset order, determine the adjacency between the multiple virtual interfaces according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determine the final sub-preview window position parameter information of each of the multiple sub-preview windows based on the adjacency and the initial sub-preview window position parameter information of each of the multiple sub-preview windows; as well as A generating module is used to generate the preview window according to the final sub-preview window position parameter information of each of the multiple sub-preview windows and the window resolution information.
8. The preview window generating device according to claim 7, characterized in that: The adjacency situation includes a first adjacency situation and a second adjacency situation; The second determination module specifically includes: A first determining unit is used to traverse the multiple virtual interfaces along the first direction according to the preset order, determine the first adjacency situation between the multiple virtual interfaces along the first direction according to the virtual interface position parameter information of each of the multiple virtual interfaces, and determine the first sub-preview window position parameter information of each of the multiple sub-preview windows based on the first adjacency situation and the initial sub-preview window position parameter information of each of the multiple sub-preview windows; a second determining unit, configured to traverse the plurality of virtual interfaces in the preset order along a second direction perpendicular to the first direction, determine the second adjacency situation between the plurality of virtual interfaces along the second direction according to the respective virtual interface position parameter information of the plurality of virtual interfaces, and determine the final sub-preview window position parameter information of the plurality of sub-preview windows based on the second adjacency situation and the respective first sub-preview window position parameter information of the plurality of sub-preview windows; The first direction is one of a horizontal direction and a vertical direction, and the second direction is the other of the horizontal direction and the vertical direction.
9. The preview window generating device according to claim 8, characterized in that: The first direction is a horizontal direction, the first adjacency situation is left-right adjacency, and the first sub-preview window position parameter information includes the first sub-preview window horizontal coordinate information; The first determining unit is specifically configured to: The current virtual interface among the multiple virtual interfaces traversed in the preset order is used as the target interface to perform the following operations to determine the first sub-preview window position parameter information of each of the multiple sub-preview windows: The first step is to determine whether there is a first adjacent interface adjacent to the target interface on the left side of the target interface, if the first adjacent interface does not exist, then execute the second step, if the first adjacent interface exists, then execute the fourth step; The second step is to determine whether there is a second adjacent interface on the right side of the target interface, if the second adjacent interface exists, then execute the third step, if the second adjacent interface does not exist, then execute the fourth step; The third step is to determine the endpoint abscissa information of the target sub-pre-monitoring window as the first sub-pre-monitoring window abscissa information in the first sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the second adjacent interface according to the target initial sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the second adjacent interface to the target interface and execute the second step; The fourth step is to set the next traversed virtual interface as the target interface and execute the first step.
10. The preview window generating device according to claim 9, characterized in that: The second direction is a vertical direction, the second adjacency situation is vertically adjacent, and the final sub-preview window position parameter information includes the final sub-preview window ordinate information; The second determining unit is specifically configured to: The current virtual interface among the multiple virtual interfaces traversed in the preset order is used as the target interface to perform the following operations to determine the final sub-preview window position parameter information of each of the multiple sub-preview windows: The fifth step is to determine whether there is a third adjacent interface adjacent to the target interface on the upper side of the target interface, if the third adjacent interface does not exist, then execute the sixth step, if the third adjacent interface exists, then execute the seventh step; The sixth step is to determine whether there is a fourth adjacent interface on the lower side of the target interface, if there is the fourth adjacent interface, execute the seventh step, if there is no fourth adjacent interface, execute the eighth step; The seventh step is to determine the terminal point ordinate information of the target sub-pre-monitoring window as the final sub-pre-monitoring window ordinate information in the final sub-pre-monitoring window position parameter information of the sub-pre-monitoring window corresponding to the fourth adjacent interface according to the target first sub-pre-monitoring window position information of the target sub-pre-monitoring window corresponding to the target interface, and set the fourth adjacent interface to the target interface and execute the sixth step; In the eighth step, the next traversed virtual interface is set as the target interface, and the fifth step is executed.
Citation Information
Patent Citations
Method for monitoring beforehand hardware self-adapting multi-channel multi-mode video of video server
CN101472090A
Portable DIT3D stereoscopic pre-monitoring system
CN106559643A