Display control method of multi-display and computer readable storage medium
By determining the display mode and number of screens based on the display layout and resolution in a multi-screen setup, the problem of resolution mismatch in multimedia resources is solved, enabling flexible adaptation and rich display effects for multi-screen setups.
Patent Information
- Application Number
- CN202311840623.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Existing multi-screen players cannot play multimedia resources when the resolution is incompatible with the multi-screen setup, limiting their application scenarios.
The display mode is determined based on the display layout and resolution of the multi-screen setup. The number of displays corresponding to the resources to be displayed is calculated, and the resources to be displayed are displayed on the resource displays, while special effects content is displayed on the other displays.
It improves the display flexibility of multi-screen setups, expands application scenarios, enhances visual effects and viewing experience, and increases the appeal and versatility of multi-screen players.
Smart Images

Figure CN117785094B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display control, in particular to a multi-screen display control method and a computer readable storage medium. BACKGROUND
[0002] The multi-screen player refers to a system that connects multiple screens to a player device to realize simultaneous playing of multiple screens. This system can be used in various occasions, such as commercial display, performance, conference, etc. In the multi-screen player, the rendering interface needs to be divided and presented according to the layout of multiple screens. The layout of the rendering interface can be realized by a splitter or the like to meet different needs.
[0003] When the existing multi-screen player plays multimedia resources, it generally customizes multimedia resources with special resolution according to the arrangement of the multi-screen. When the resolution of the multimedia resources does not match the multi-screen, the multi-screen cannot be played, thereby greatly limiting the application of the multi-screen. SUMMARY
[0004] The technical problem to be solved by the present application is to provide a multi-screen display control method and a computer readable storage medium, which can improve the display flexibility and diversity of the multi-screen.
[0005] To solve the above technical problems, the technical scheme adopted by the present application is as follows: a multi-screen display control method, comprising:
[0006] According to the layout of the display screen in the multi-screen and the resolution of each display screen, a display mode is determined, which includes a width full height adaptive mode and a height full width adaptive mode;
[0007] According to the display mode and the resolution of the to-be-displayed resource, the number of display screens corresponding to the to-be-displayed resource is determined;
[0008] According to the preset position and the number of corresponding display screens, a resource display screen is determined, and the to-be-displayed resource is displayed on the resource display screen;
[0009] Other display screens in the multi-screen are used as special effect display screens, and preset special effect content is displayed on the special effect display screens.
[0010] The present application also provides a computer readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to realize the method as described above.
[0011] The beneficial effects of the present application are that: by determining the resource display screen for displaying the to-be-displayed resource in the multi-screen according to the to-be-displayed resource, the multi-screen can adapt to resources of various resolutions, improve the display flexibility of the multi-screen, and expand the application scenarios of the multi-screen; by displaying special effect content on the display screen other than the resource display screen in the multi-screen, the integrity of the overall display effect of the multi-screen is ensured, the visual effect and ornamental value of the multi-screen player are increased, and the multi-screen player is more attractive and diverse. BRIEF DESCRIPTION OF DRAWINGS
[0012] Figure 1 A flowchart of a display control method of a multi-screen according to an embodiment of the present application. DETAILED DESCRIPTION
[0013] To explain the technical content, purposes and effects of the present application in detail, the following will be described in detail in combination with the embodiments and the accompanying drawings.
[0014] Please refer to Figure 1 A display control method of a multi-screen, comprising:
[0015] determining a display mode according to the layout of the display screens in the multi-screen and the resolution of each display screen, wherein the display mode comprises a width full and height adaptive mode and a height full and width adaptive mode;
[0016] determining the number of display screens corresponding to the to-be-displayed resource according to the display mode and the resolution of the to-be-displayed resource;
[0017] determining a resource display screen according to the preset position and the number of corresponding display screens, and displaying the to-be-displayed resource on the resource display screen;
[0018] taking other display screens in the multi-screen as special effect display screens, and displaying preset special effect content on the special effect display screens.
[0019] As can be seen from the above description, the beneficial effects of the present application are that: the display flexibility of the multi-screen is improved, the application scenarios of the multi-screen are expanded, and the visual effect and ornamental value of the multi-screen player are increased.
[0020] Further, the display mode is determined according to the layout of the display screens in the multi-screen and the resolution of each display screen, specifically:
[0021] calculating a matrix resolution ratio according to the layout of the display screens in the multi-screen and the resolution of each display screen, wherein the calculation formula of the matrix resolution ratio is screenRate=(screenW×c) / (screenH×n), wherein screenW and screenH are the width and height of each display screen in the multi-screen, and c and n are the number of columns and rows of the display screens in the multi-screen;
[0022] If the matrix resolution ratio is less than 1, the display mode is a width full height adaptive mode, otherwise, the display mode is a height full width adaptive mode.
[0023] From the above description, it can be seen that the display mode is determined according to the total width and total height of the multi-screen, so that the display of the resource is adapted to the overall layout of the multi-screen.
[0024] Further, the display screen number corresponding to the to-be-displayed resource is determined according to the display mode and the resolution of the to-be-displayed resource, specifically:
[0025] When the display mode is a height full width adaptive mode, the number of rows of display screens in the multi-screen is taken as the longitudinal display screen number corresponding to the to-be-displayed resource, and the to-be-displayed resource is scaled in proportion according to the total height of the display screens in each row of the multi-screen, and the height of the scaled to-be-displayed resource is adapted to the total height.
[0026] The transverse display screen number corresponding to the to-be-displayed resource is calculated according to the width of the scaled to-be-displayed resource and the width of the display screen.
[0027] When the display mode is a width full height adaptive mode, the number of columns of display screens in the multi-screen is taken as the transverse display screen number corresponding to the to-be-displayed resource, and the to-be-displayed resource is scaled in proportion according to the total width of the display screens in each row of the multi-screen, and the width of the scaled to-be-displayed resource is adapted to the total width.
[0028] The longitudinal display screen number corresponding to the to-be-displayed resource is calculated according to the height of the scaled to-be-displayed resource and the height of the display screen.
[0029] From the above description, it can be seen that the multi-screen can display the to-be-displayed resource as completely as possible, and the arrangement of the multi-screen can adapt to to-be-displayed resources of various resolutions.
[0030] Further, after the transverse display screen number corresponding to the to-be-displayed resource is calculated according to the width of the scaled to-be-displayed resource and the width of the display screen, the method further comprises:
[0031] If the transverse display screen number corresponding to the to-be-displayed resource is not an integer, rounding up or rounding down is performed, and the to-be-displayed resource is transversely scaled according to the transverse display screen number after rounding and the width of the display screen, and the width of the to-be-displayed resource after transverse scaling is adapted to the total width of screenColumn' display screens, screenColumn' being the transverse display screen number after rounding.
[0032] From the above description, it is known that the display content of a single display screen is ensured to be single, that is, the entire display screen is used to display the to-be-displayed resource or all is used to display special effect content.
[0033] Further, after the number of horizontal display screens corresponding to the to-be-displayed resource is calculated according to the width of the to-be-displayed resource after scaling and the width of the display screen, the method further includes:
[0034] If the number of horizontal display screens corresponding to the to-be-displayed resource is greater than the number of columns of display screens in the multi-display screen, the number of horizontal display screens corresponding to the to-be-displayed resource is set to the number of columns, and the to-be-displayed resource is horizontally cropped or horizontally scaled according to the total width of the display screens in each column of the multi-display screen, so that the width of the to-be-displayed resource after horizontal cropping or horizontal scaling is adapted to the total width.
[0035] From the above description, it is known that the display of the resource is ensured not to exceed the total range of the multi-display screen.
[0036] Further, after the number of vertical display screens corresponding to the to-be-displayed resource is calculated according to the height of the to-be-displayed resource after scaling and the height of the display screen, the method further includes:
[0037] If the number of vertical display screens corresponding to the to-be-displayed resource is not an integer, the number is rounded up or rounded down, and the to-be-displayed resource is vertically scaled according to the number of vertical display screens after rounding and the height of the display screen, so that the height of the to-be-displayed resource after vertical scaling is adapted to the total height of the screenRow' display screens, screenRow' being the number of vertical display screens after rounding.
[0038] Further, after the number of vertical display screens corresponding to the to-be-displayed resource is calculated according to the height of the to-be-displayed resource after scaling and the height of the display screen, the method further includes:
[0039] If the number of vertical display screens corresponding to the to-be-displayed resource is greater than the number of rows of display screens in the multi-display screen, the number of vertical display screens corresponding to the to-be-displayed resource is set to the number of rows, and the to-be-displayed resource is vertically cropped or vertically scaled according to the total height of the display screens in each row of the multi-display screen, so that the height of the to-be-displayed resource after vertical cropping or vertical scaling is adapted to the total height.
[0040] Further, after the resource display screen is determined according to the preset position and the number of corresponding display screens, the method further includes:
[0041] The resource output interface of the to-be-displayed resource is associated with the graphics card interface of the resource display screen.
[0042] From the above description, by constructing the matching relationship of the resource output interface and the graphics card interface, the display content of the display screen can be conveniently adjusted subsequently.
[0043] Further, the special effect content is content after special effect processing of the to-be-displayed resource, and the special effect includes a wave effect, a mirror effect and a blur effect.
[0044] From the above description, the diversity of the multi-screen display effect can be improved.
[0045] The application further provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the method.
[0046] Embodiment one
[0047] Please refer to Figure 1 The embodiment one of the application is a display control method of a multi-screen, which can be applied to a multi-screen player in an audio-visual place. Figure 1 As shown in the figure, the method comprises the following steps:
[0048] S1: determining a display mode according to the display screen layout in the multi-screen and the resolution of each display screen, wherein the display mode comprises a width full height adaptive mode and a height full width adaptive mode.
[0049] Specifically, the matrix resolution ratio is calculated according to the display screen layout in the multi-screen and the resolution of each display screen. Assuming that the display screen layout in the multi-screen is n×c, that is, there are n rows and c columns of display screens, and the resolution of each display screen is screenW×screenH, that is, the width and height of the display screen are screenW and screenH respectively, then the matrix resolution ratio screenRate=(screenW×c) / (screenH×n).
[0050] If the matrix resolution ratio screenRate<1, the display mode is the width full height adaptive mode; if the matrix resolution ratio screenRate≥1, the display mode is the height full width adaptive mode.
[0051] This step is to determine the display mode according to the total width and total height of the multi-screen as a whole.
[0052] S2: determining the number of display screens corresponding to the to-be-displayed resource, that is, determining the number of horizontal display screens and the number of vertical display screens corresponding to the to-be-displayed resource, according to the display mode and the resolution of the to-be-displayed resource.
[0053] When the display mode is the high-fill width-adaptive mode, the number of rows of display screens in the multi-display is taken as the number of vertical display screens corresponding to the to-be-displayed resource, i.e., screenRow=n, and the to-be-displayed resource is scaled proportionally according to the total height of the display screens in each row of the multi-display. The height of the scaled to-be-displayed resource is adapted to the total height. Assuming that the resolution of the to-be-displayed resource is w x h, the proportional scaling multiple at this time is (screenH x n) / h, and the width w' of the to-be-displayed resource after proportional scaling is w x (screenH x n) / h. Then, the number of horizontal display screens corresponding to the to-be-displayed resource is calculated according to the width of the scaled to-be-displayed resource and the width of the display screen, i.e., screenColumn=w' / screenW.
[0054] Further, if the calculated number of horizontal display screens screenColumn is not an integer, rounding up or rounding down is performed. In this embodiment, the number of horizontal display screens is rounded down. Then, the to-be-displayed resource is horizontally scaled according to the number of horizontal display screens screenColumn' after rounding and the width of the display screen. The width of the to-be-displayed resource after horizontal scaling is adapted to the total width of screenColumn' display screens, i.e., the horizontal scaling multiple at this time is (screenColumn' x screenW) / w'.
[0055] Further, if the calculated number of horizontal display screens screenColumn is greater than the number of columns c of display screens in the multi-display, the number of horizontal display screens screenColumn is set to c. Then, the to-be-displayed resource is horizontally scaled according to the total width of the display screens in each column of the multi-display. The width of the to-be-displayed resource after horizontal scaling is adapted to the total width, i.e., the horizontal scaling multiple at this time is (c x screenW) / w'.
[0056] In another optional embodiment, the to-be-displayed resource can also be horizontally cropped according to the total width of the display screens in each column of the multi-display. The width of the to-be-displayed resource after horizontal cropping is adapted to the total width, i.e., the part of the to-be-displayed resource that exceeds the total width in the horizontal direction is cropped.
[0057] When the display mode is the width full and height adaptive mode, the column number of the display screen in the multi-screen is taken as the horizontal display screen number corresponding to the to-be-displayed resource, i.e., screenColumn=c, and the to-be-displayed resource is scaled proportionally according to the total width of the display screens in each row in the multi-screen, and the width of the scaled to-be-displayed resource is adapted to the total width, i.e., the proportional scaling multiple at this time is (screenW×c) / w, and after the proportional scaling, the height h' of the to-be-displayed resource is h×(screenW×c) / w; then the vertical display screen number corresponding to the to-be-displayed resource is calculated according to the height of the scaled to-be-displayed resource and the height of the display screen, i.e., screenRow=h' / screenH.
[0058] Similarly, if the calculated vertical display screen number screenRow is not an integer, rounding up or rounding down is performed, and in this embodiment, the vertical display screen number is rounded up. Then the to-be-displayed resource is vertically scaled according to the rounded vertical display screen number screenRow' and the height of the display screen, and the height of the vertically scaled to-be-displayed resource is adapted to the total height of the screenRow' display screens, i.e., the vertical scaling multiple at this time is (screenRow'×screenH) / h'.
[0059] If the calculated vertical display screen number screenRow is greater than the row number n of the display screens in the multi-screen, the vertical display screen number screenRow is set to n, and then the to-be-displayed resource is vertically scaled according to the total height of the display screens in each row in the multi-screen, so that the height of the vertically scaled to-be-displayed resource is adapted to the total height, i.e., the vertical scaling multiple at this time is (n×screenH) / h'.
[0060] In another optional embodiment, the to-be-displayed resource can also be vertically cropped according to the total height of the display screens in each column in the multi-screen, so that the width of the vertically cropped to-be-displayed resource is adapted to the total height, i.e., the part of the to-be-displayed resource vertically exceeding the total height is cropped.
[0061] S3: determining a resource display screen according to the preset position and the corresponding display screen number, and displaying the to-be-displayed resource on the resource display screen.
[0062] i.e., according to the preset top-left corner position and the horizontal display screen number and the vertical display screen number corresponding to the to-be-displayed resource determined in step S2, the display screen for displaying the to-be-displayed resource is determined in the multi-screen.
[0063] Further, the resource output interface of the resource to be displayed is associated with the graphics card interface of the resource display screen to build a matching relationship, so as to determine the display content of each resource display screen. When the resource to be displayed needs to be adjusted, the matching relationship between the resource output interface and the graphics card interface can be adjusted to adjust the display content of the display screen. One of the display screens can also be set as a main screen, and the positional relationship between the other display screens and the main screen is marked, so as to facilitate the decoration of the place.
[0064] S4: The other display screens in the multi-screen are used as special effect display screens, and preset special effect content is displayed on the special effect display screens.
[0065] That is, after the resource display screen is determined, it is judged whether there is an empty display screen in the multi-screen. The empty display screen is used as a special effect display screen to display special effect content. The special effect content can be the content after the resource to be displayed is processed by special effects, such as wave effect, mirror effect, and blur effect.
[0066] For example, it is assumed that there are 1x4 display screens in the multi-screen. Three continuous display screens are used to display a song MV, and the remaining one display screen can be used to display special effect content. The special effect content displayed by the display screen can be the content after the display content of any one of the three resource display screens is processed by special effects, so as to ensure the consistency and integrity of the overall effect of the multi-screen.
[0067] Further, the resource output interface of the special effect content is also associated with the graphics card interface of the special effect display screen to build a matching relationship, which is convenient for subsequent adjustment.
[0068] The embodiment intelligently controls the display of the multi-screen according to the resource to be displayed, so that the multi-screen can display the resource to be displayed with any resolution as completely as possible, improves the display flexibility of the multi-screen, expands the application scenarios of the multi-screen, and realizes the display of special effect content while realizing the display of the resource to be displayed, so that each display screen in the multi-screen has corresponding display content, increases the visual effect and ornamental value of the multi-screen player, and makes it more attractive and diverse.
[0069] Embodiment Two
[0070] The embodiment is a computer readable storage medium corresponding to the above embodiment, which stores a computer program. The program is executed by a processor to realize each step of the display control method of the multi-screen in the above embodiment, and can achieve the same technical effect, which will not be repeated here.
[0071] In summary, the application provides a kind of multi-screen display control method and computer readable storage medium, by according to the resource to be displayed, in multi-screen, determine the resource display screen for showing the resource to be displayed, so that multi-screen can adapt to various resolution resources, improve the display flexibility of multi-screen, expand the application scenario of multi-screen;By displaying special effect content on other display screens in multi-screen except resource display screen, ensure the integrity of the overall display effect of multi-screen, increase the visual effect and ornamental of multi-screen player, make it more attractive and diverse.
[0072] The above is only an embodiment of the application, and does not limit the patent scope of the application, any equivalent transformation using the content of the specification and drawings, or direct or indirect application in related technical fields, are also included in the patent protection scope of the application.
Claims
1. A method for controlling the display of multiple screens, characterized in that, include: Based on the display layout and resolution of each display in the multi-screen setup, the display mode is determined, including a width-fill-height adaptive mode and a height-fill-width adaptive mode. Determine the number of displays corresponding to the resources to be displayed based on the display mode and the resolution of the resources to be displayed; Based on the preset location and the corresponding number of display screens, a resource display screen is determined, and the resource to be displayed is displayed on the resource display screen; Use other displays in a multi-screen setup as special effects displays, and display preset special effects content on the special effects displays; The display mode is determined based on the total width and height of the multi-screen setup. The step of determining the number of display screens corresponding to the resource to be displayed based on the display mode and the resolution of the resource to be displayed specifically includes: When the display mode is height-fill-width adaptive mode, the number of rows of the display screens in the multi-screen is taken as the number of vertical display screens corresponding to the resource to be displayed, and the resource to be displayed is scaled proportionally according to the total height of each row of display screens in the multi-screen, and the height of the scaled resource to be displayed is adapted to the total height. Calculate the number of horizontal displays corresponding to the resource to be displayed based on the scaled width of the resource and the width of the display screen. When the display mode is width-fill-height adaptive mode, the number of columns of the display screens in the multi-screen is taken as the number of horizontal display screens corresponding to the resource to be displayed, and the resource to be displayed is scaled proportionally according to the total width of each row of display screens in the multi-screen, and the width of the scaled resource to be displayed is adapted to the total width. Calculate the number of vertical displays corresponding to the resource to be displayed based on the height of the scaled resource and the height of the display screen.
2. The multi-screen display control method according to claim 1, characterized in that, The process of determining the display mode based on the display layout and resolution of each screen in a multi-screen setup is as follows: Based on the display layout and resolution of each display in the multi-screen setup, the matrix resolution ratio is calculated. The formula for calculating the matrix resolution ratio is screenRate=(screenW×c) / (screenH×n), where screenW and screenH are the width and height of each display in the multi-screen setup, respectively, and c and n are the number of columns and rows of the display in the multi-screen setup, respectively. If the matrix resolution ratio is less than 1, the display mode is width-fill-height adaptive mode; otherwise, the display mode is height-fill-width adaptive mode.
3. The multi-screen display control method according to claim 1, characterized in that, After calculating the number of horizontal display screens corresponding to the resource to be displayed based on the width of the scaled resource and the width of the display screen, the process further includes: If the number of horizontal displays corresponding to the resource to be displayed is not an integer, then the resource is rounded up or down, and then horizontally scaled according to the number of horizontal displays after rounding and the width of the displays. After horizontal scaling, the width of the resource to be displayed is adapted to the total width of screenColumn' displays, where screenColumn' is the number of horizontal displays after rounding.
4. The multi-screen display control method according to claim 1, characterized in that, After calculating the number of horizontal display screens corresponding to the resource to be displayed based on the width of the scaled resource and the width of the display screen, the process further includes: If the number of horizontal displays corresponding to the resource to be displayed is greater than the number of columns of displays in the multi-screen setup, then the number of horizontal displays corresponding to the resource to be displayed is set to the number of columns. Based on the total width of each column of displays in the multi-screen setup, the resource to be displayed is either horizontally cropped or horizontally scaled. After horizontal cropping or horizontal scaling, the width of the resource to be displayed is adapted to the total width.
5. The multi-screen display control method according to claim 1, characterized in that, After calculating the number of vertical displays corresponding to the resource to be displayed based on the height of the scaled resource and the height of the display screen, the process further includes: If the number of vertical displays corresponding to the resource to be displayed is not an integer, then the resource is rounded up or down. Based on the rounded number of vertical displays and the height of the displays, the resource to be displayed is vertically scaled. After vertical scaling, the height of the resource to be displayed is adapted to the total height of screenRow' displays, where screenRow' is the rounded number of vertical displays.
6. The multi-screen display control method according to claim 1, characterized in that, After calculating the number of vertical displays corresponding to the resource to be displayed based on the height of the scaled resource and the height of the display screen, the process further includes: If the number of vertical displays corresponding to the resource to be displayed is greater than the number of rows of displays in the multi-screen setup, then the number of vertical displays corresponding to the resource to be displayed is set to the number of rows. Based on the total height of each row of displays in the multi-screen setup, the resource to be displayed is either vertically cropped or vertically scaled. After vertical cropping or scaling, the height of the resource to be displayed is adapted to the total height.
7. The multi-screen display control method according to claim 1, characterized in that, After determining the resource display screens based on the preset locations and the corresponding number of display screens, the process further includes: Associate the resource output interface of the resource to be displayed with the graphics card interface of the resource display screen.
8. The multi-screen display control method according to claim 1, characterized in that, The special effects content refers to the content of the resource to be displayed after special effects processing, including wave effects, mirror effects, and blur effects.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-8.
Citation Information
Patent Citations
Multi-screen linkage resource display method and device and electronic equipment
CN110989954A
Screen resolution self-adaption method and device, storage medium and electronic equipment
CN111722823A