A data display method, device, equipment and readable storage medium
Patent Information
- Application Number
- CN202211673728.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2042-12-26
AI Technical Summary
[0004]本申请旨在至少能解决上述的技术缺陷之一,有鉴于此,本申请提供了一种数据显示方法、装置、设备及可读存储介质,用于解决现有技术中使用拼接数据显示内容时,处理每种显示屏的分辨率所造成的耗时较长,处理效率低的技术缺陷
[0046]从以上技术方案可以看出,当需要利用多个所述显示单元显示所述待显示数据时,本申请实施例提供的方法可以先获取所述待处理的显示屏的参数和所述待显示数据,以便可以依据所述待处理的显示屏的参数确定所述目标有效显示区域坐标。在确定所述目标有效显示区域坐标之后,可以进一步依据所述预设的分辨率列表和所述目标有效显示区域坐标,确定用于显示所述待显示数据的所述目标分辨率,有助于进一步依据所述待处理的显示屏的参数和所述目标分辨率,配置所述目标拼接参数。在配置完所述目标拼接参数之后,可以依据所述目标拼接参数和所述目标分辨率,配置所述待处理的显示屏的参数,得到目标显示窗口,以便可以进一步利用所述目标显示窗口,显示所述待显示数据。本申请实施例提供的方法可以通过将所述待处理的显示屏上的各个所述显示单元的分辨率进行统一处理,并依据对应的坐标确定所述目标显示窗口,并利用所述目标显示窗口显示内容,本申请不再需要单独为每一种不同的所述显示单元设置对应的分辨率,从而可以有效减少处理的时间,提高处理效率,减少硬件设备的开发周期和维护成本。
Smart Images

Figure CN115981584B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information processing technology, and in particular to a data display method, apparatus, device, and readable storage medium. Background Technology
[0002] With the increasing maturity of LED (light-emitting diode) production technology and processing techniques, LED products are gradually entering people's lives. Especially with the rapid development of electronic products, LEDs can be seen in the displays of various electronic devices. To adapt to different usage scenarios, hundreds and thousands of LED display devices with different resolutions have been developed. In some applications, to obtain a larger display screen, screen wall technology is often used. Screen wall technology refers to creating a larger spliced display screen by connecting multiple display devices, which can then display data content. However, since each display device may not have the same resolution, further processing of the resolution of the corresponding display screens of the spliced devices is usually required.
[0003] Existing data display methods typically process the resolution of the display device's screen before displaying the data. Usually, hardware can be used to output the corresponding resolution for each different display device to drive the data display. For each additional display with a different resolution, hardware is usually used to output a corresponding resolution. This processing is time-consuming, resulting in low processing efficiency. Summary of the Invention
[0004] This application aims to at least solve one of the aforementioned technical defects. In view of this, this application provides a data display method, apparatus, device, and readable storage medium to solve the technical defects of long processing time and low processing efficiency caused by processing the resolution of each display screen when using spliced data display content in the prior art.
[0005] To achieve the above objectives, the following solution is proposed:
[0006] A data display method, comprising:
[0007] Obtain the parameters and data to be displayed of the display screen to be processed, wherein the display screen to be processed includes at least one display unit;
[0008] Based on the parameters of the display screen to be processed, determine the coordinates of the target effective display area corresponding to the display screen to be processed;
[0009] Based on a preset list of resolutions and the coordinates of the target effective display area, determine the target resolution for displaying the data to be displayed;
[0010] Configure target splicing parameters based on the parameters of the display screen to be processed and the target resolution;
[0011] Based on the target stitching parameters and the target resolution, the parameters of the display screen to be processed are configured to obtain the target display window;
[0012] The target display window is used to display the data to be displayed.
[0013] Preferably, determining the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed includes:
[0014] Traverse the effective area coordinates of each display unit corresponding to the display screen to be processed to obtain the effective area coordinate set;
[0015] The effective area coordinates of each display unit in the effective area coordinate set are sorted to obtain the coordinate sorting result;
[0016] Based on the coordinate sorting results, the coordinates of the target effective display area corresponding to the display screen to be processed are determined.
[0017] Preferably, determining the target resolution for displaying the data to be displayed based on a preset resolution list and the coordinates of the target effective display area includes:
[0018] Based on the coordinates of the effective display area of the target, calculate the area of the effective display area of the target corresponding to the coordinates of the effective display area of the target;
[0019] The area of the target's effective display area corresponding to the target's effective display area coordinates is divided by an integer to obtain the calculation result;
[0020] Based on the calculation results, the target number is determined;
[0021] Based on the target number, the resolution with the target number in the preset resolution list is determined as the target resolution for displaying the data to be displayed.
[0022] Preferably, configuring the target splicing parameters based on the parameters of the display screen to be processed and the target resolution includes:
[0023] Based on the parameters of the display screen to be processed and the target resolution, configure the correspondence between each output unit and each display unit in the display screen to be processed, and set the resolution corresponding to each output unit. The output unit is used to transmit the data to be displayed.
[0024] Based on the correspondence between each output unit and each display unit in the display screen to be processed, and the parameters of the display screen to be processed, the invalid display area corresponding to each output unit is determined;
[0025] Based on the correspondence between each output unit and each display unit in the display screen to be processed, and the invalid display area corresponding to each output unit, a splicing matrix corresponding to the display screen to be processed is determined.
[0026] Preferably, configuring the parameters of the display screen to be processed based on the target stitching parameters and the target resolution to obtain the target display window includes:
[0027] Based on the target resolution, the resolution of each display unit in the display screen to be processed is configured to obtain the first target display screen;
[0028] Based on the splicing matrix, the target display area corresponding to each display unit in the first target display screen is determined;
[0029] The target display window is obtained by splicing together the target display areas corresponding to each display unit in the first target display screen.
[0030] Preferably, determining the target display area corresponding to each display unit in the first target display screen based on the splicing matrix includes:
[0031] Based on the splicing matrix, the invalid display areas corresponding to each output unit are edited to obtain the first target display area corresponding to each output unit;
[0032] Based on the first target display area, the target display area corresponding to each display unit in the first target display screen is determined.
[0033] Preferably, displaying the data to be displayed using the target display window includes:
[0034] Based on the correspondence between each of the output units and each of the display units in the display screen to be processed, the data to be displayed is transmitted to the first target display screen using each of the output units;
[0035] The target display window is used to display the data to be displayed.
[0036] A data display device, comprising:
[0037] The information acquisition module is used to acquire the parameters and data to be displayed on the display screen.
[0038] The target effective display area coordinate determination module is used to determine the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed;
[0039] The target resolution determination module is used to determine the target resolution for displaying the data to be displayed based on a preset resolution list and the coordinates of the effective display area of the target.
[0040] The splicing parameter configuration module is used to configure target splicing parameters based on the parameters of the display screen to be processed and the target resolution;
[0041] The display configuration module is used to configure the parameters of the display screen to be processed according to the target splicing parameters and the target resolution, so as to obtain the target display window;
[0042] The display module is used to display the data to be displayed using the target display window.
[0043] A data display device includes: one or more processors, and memory;
[0044] The memory stores computer-readable instructions that, when executed by the one or more processors, implement the steps of any of the data display methods described above.
[0045] A readable storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of any of the data display methods described above.
[0046] As can be seen from the above technical solutions, when multiple display units are needed to display the data to be displayed, the method provided in this application embodiment can first obtain the parameters of the display screen to be processed and the data to be displayed, so that the coordinates of the target effective display area can be determined based on the parameters of the display screen to be processed. After determining the coordinates of the target effective display area, the target resolution for displaying the data to be displayed can be further determined based on the preset resolution list and the coordinates of the target effective display area, which helps to further configure the target splicing parameters based on the parameters of the display screen to be processed and the target resolution. After configuring the target splicing parameters, the parameters of the display screen to be processed can be configured based on the target splicing parameters and the target resolution to obtain the target display window, so that the data to be displayed can be further displayed using the target display window. The method provided in this application embodiment can uniformly process the resolutions of each display unit on the display screen to be processed, determine the target display window based on the corresponding coordinates, and display the content using the target display window. This application no longer needs to set the corresponding resolution for each different display unit separately, thereby effectively reducing processing time, improving processing efficiency, and reducing the development cycle and maintenance cost of hardware devices. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This is a schematic diagram of a data display system architecture as exemplified by an embodiment of this application;
[0049] Figure 2 A flowchart illustrating a data display method provided in this application embodiment;
[0050] Figure 3 This is a schematic diagram illustrating the structure of a data display device as an example of an embodiment of this application;
[0051] Figure 4 This is a hardware structure block diagram of a data display device disclosed in an embodiment of this application. Detailed Implementation
[0052] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0053] During the research process, the inventors of this case discovered that existing data display solutions, when processing individual display units in a spliced display screen, typically configure a resolution that can be displayed on the spliced screen through hardware settings for each display unit's preset resolution. However, since the resolutions of individual display units are not necessarily common standard resolutions, directly using these non-standard resolutions for image display may result in problems such as image distortion, flickering, or black screens. To prevent such problems, corresponding patch packages can usually be developed for optimization, but this inadvertently increases the time and cost of development, testing, and product maintenance.
[0054] Given that most current data display solutions typically require setting a specific resolution for each display unit when dealing with screens composed of multiple display units with different resolutions, which is costly, the applicant has researched a data display solution. This data display method can uniformly process the resolution of each display unit before displaying on the spliced screen, eliminating the need to set a specific resolution for each different display unit individually. This can effectively reduce the time spent processing resolutions, thereby improving processing efficiency, shortening the development cycle for developers, and effectively reducing development and maintenance costs.
[0055] The methods provided in this application can be used in a variety of general-purpose or special-purpose computing device environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor devices, distributed computing environments including any of the above devices, etc.
[0056] This application provides a data display method that can be applied to data display systems of various terminal devices. The executing entity can be a processor or server of a computer terminal or a smart terminal.
[0057] In practical applications, a data display system can be used to process the resolution of each display unit on the display screen to be processed. For example... Figure 1 As shown, Figure 1 This is a schematic diagram of a data display system architecture as an example of an embodiment of this application.
[0058] The data display system may include a display screen, a processor, and a signal source.
[0059] The display screen may include at least one display unit.
[0060] The display screen can be used to display the data to be displayed.
[0061] The signal source can be used to provide the data to be displayed.
[0062] The processor can be used to receive the data to be displayed and the parameters of the display screen to be processed transmitted by the signal source, configure the target resolution for each display unit in the display screen to be processed, and drive the display screen to receive and display the data to be displayed.
[0063] In this embodiment of the application, the display screen to be processed may include at least one display unit, and the display screen to be processed may be obtained by splicing multiple display units according to a preset splicing mode.
[0064] For example,
[0065] Suppose there is a display screen to be processed, which is composed of 4 display units, and the following splicing methods are possible:
[0066] The four display units are arranged in a 1x4 grid.
[0067] The four display units are arranged in a 4x1 grid.
[0068] The four display units are arranged in a 2-row, 2-column configuration.
[0069] The following is combined with Figure 2 This document describes the flow of the data display method provided in the embodiments of this application. Figure 2 A flowchart illustrating a data display method provided in this application embodiment is shown below. Figure 2 As shown, the process may include the following steps:
[0070] Step S100: Obtain the parameters of the display screen to be processed and the data to be displayed, wherein the display screen to be processed includes at least one display unit.
[0071] Specifically, to display the data to be displayed on the display screen to be processed, the parameters of the display screen to be processed can be obtained first. The display screen to be processed is composed of multiple display units. The parameters of the display screen to be processed may include the combination method corresponding to the display screen to be processed and the effective area coordinates of each display unit in the display screen to be processed.
[0072] The effective area coordinates of each display unit in the display screen to be processed can be represented by Valid[x,y,w,h].
[0073] in:
[0074] x represents the x-coordinate of the left vertex of the effective area corresponding to each display unit;
[0075] y represents the ordinate of the left vertex of the effective area corresponding to each of the display units;
[0076] w represents the width of the effective area corresponding to each of the display units;
[0077] h represents the height of the effective area corresponding to each display unit.
[0078] Obtaining the parameters of the display screen to be processed can help to further process the resolution of each display unit in the display screen to be processed based on the parameters of the display screen to be processed.
[0079] Step S110: Determine the coordinates of the target effective display area corresponding to the display screen to be processed based on the parameters of the display screen to be processed.
[0080] Specifically, as described above, the parameters of the display screen to be processed can be obtained through step S100.
[0081] in,
[0082] The parameters of the display screen to be processed may include the combination method corresponding to the display screen to be processed and the effective area coordinates of each display unit in the display screen to be processed.
[0083] Furthermore, after determining the parameters of the display screen to be processed, the effective area coordinates with the largest effective area can be selected from the effective area coordinates corresponding to each display unit in the display screen to be processed, and the effective area coordinates with the largest effective area can be determined as the target effective display area coordinates corresponding to the display screen to be processed. This helps to determine the target resolution for displaying the data to be displayed based on the target effective display area coordinates.
[0084] Step S120: Determine the target resolution for displaying the data to be displayed based on the preset resolution list and the coordinates of the target effective display area.
[0085] Specifically, as described above, step S110 can obtain the coordinates of the target effective display area corresponding to the display screen to be processed.
[0086] Since the target effective display area coordinates are selected from the effective area coordinates corresponding to each display unit in the display screen to be processed, the effective area coordinates with the largest effective area can have the greatest impact on the display effect of the data to be displayed.
[0087] Furthermore, the target resolution for displaying the data to be displayed can be determined based on the coordinates of the target effective display area corresponding to the display screen to be processed. This helps the display screen to be processed to display the data to be displayed using the target resolution, thereby achieving a better display effect.
[0088] In the processor of the data display system corresponding to this application, a resolution list containing multiple standard resolutions can be preset. By calculating the resolution of each display unit in the display screen to be processed, a resolution can be finally determined from the resolution list as the target resolution for displaying the data to be displayed.
[0089] Step S130: Configure target splicing parameters according to the parameters of the display screen to be processed and the target resolution.
[0090] Specifically, as described above, step S120 can determine the target resolution used to display the data to be displayed.
[0091] Since the target resolution is determined based on the coordinates of the effective display area of the target, using the target resolution can achieve a better display effect when displaying the data to be displayed.
[0092] To ensure that the display screen to be processed uses the target resolution to display the data to be displayed, target splicing parameters can be configured first based on the parameters of the display screen to be processed and the target resolution. This helps to configure the parameters of the display screen to be processed based on the target splicing parameters and the target resolution, ensuring that the display screen to be processed can normally use the target resolution to display the data to be displayed.
[0093] Step S140: Configure the parameters of the display screen to be processed according to the target splicing parameters and the target resolution to obtain the target display window.
[0094] Specifically, since the target resolution is calculated based on each display unit in the display screen to be processed, in order to display the data to be displayed using the display screen to be processed, the resolution of the display screen to be processed can be configured to the target resolution first.
[0095] Furthermore, by determining the target display area corresponding to each display unit in the display screen to be processed based on the configured target splicing parameters, the parameters of the display screen to be processed can be configured, and the target display window can be obtained by splicing the target display areas corresponding to each display unit, which helps to further display the data to be displayed based on the target display window.
[0096] Step S150: Display the data to be displayed using the target display window.
[0097] Specifically, as described above, step S140 yields the target display window used to display the data to be displayed.
[0098] The target display window uses the target resolution that can be used to display the data to be displayed. The display area corresponding to the target display window is obtained by splicing together the target display areas corresponding to each display unit. The target display window can be used to display the data to be displayed.
[0099] Furthermore, the target display window can be used to receive and confirm the data to be displayed transmitted by the processor, and the received data to be displayed can be displayed using the target display window to achieve normal display function.
[0100] As can be seen from the technical solutions described above, the method provided in this application embodiment can first obtain the parameters of the display screen to be processed and the data to be displayed, which helps to further determine the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed. After obtaining the target effective display area coordinates corresponding to the display screen to be processed, the target resolution for displaying the data to be displayed can be further determined based on a preset resolution list and the target effective display area coordinates, which helps to further configure the target splicing parameters based on the parameters of the display screen to be processed and the target resolution. After configuring the target splicing parameters, it helps to configure the parameters of the display screen to be processed based on the target splicing parameters and the target resolution to obtain the target display window. After obtaining the target display window, it helps to further utilize the target display window to display the data to be displayed. This application embodiment can uniformly process the resolution of each display unit corresponding to the display screen to be processed to obtain the target display window that can display data using a standard resolution. Furthermore, the data is displayed based on the target display window. It is no longer necessary to configure the resolution separately for each display unit corresponding to the display screen to be processed, nor is it necessary to spend higher costs to deal with the display problems that may be caused by using the resolution configured separately for each display unit corresponding to the display screen to be processed, thereby effectively reducing the development and maintenance costs.
[0101] In another embodiment of this application, the process of determining the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed in step S110 is described. This process may include the following steps:
[0102] Step S201: Traverse the effective area coordinates of each display unit corresponding to the display screen to be processed to obtain a set of effective area coordinates.
[0103] Specifically, the display screen to be processed is composed of various display units. As can be seen from the above description, the various display units in the display screen to be processed can be spliced together according to a certain splicing mode. The effective display area of the image corresponding to each display unit can be represented by effective area coordinates, that is, the effective area coordinates of the display unit described above are Valid[x,y,w,h].
[0104] For example,
[0105] Valid[0,0,100,200] indicates that the left vertex of the valid region is (0,0), the width is 100, and the height is 200.
[0106] The effective area coordinates of all display units in the display screen to be processed can be obtained by traversing the screen to obtain a set of effective area coordinates, which helps to further determine the effective area coordinates used to calculate the target resolution based on the set of effective area coordinates.
[0107] Step S202: Sort the effective area coordinates of each display unit in the effective area coordinate set to obtain the coordinate sorting result.
[0108] Specifically, as described above, after step S201, the set of effective area coordinates, which includes the effective area coordinates of each display unit in the display screen to be displayed, can be obtained.
[0109] As can be seen from the above description, this application can select the coordinates of the largest effective area and determine the coordinates of the largest effective area as the target effective display area coordinates corresponding to the display screen to be processed, which helps to further determine the target resolution for displaying the data to be displayed based on the target effective display area coordinates.
[0110] The set of valid area coordinates may include at least one valid area coordinate corresponding to the display unit.
[0111] Furthermore, after obtaining the set of effective area coordinates containing the effective area coordinates of each display unit in the display screen to be displayed, the effective area coordinates in the set of effective area coordinates can be sorted to obtain the coordinate sorting result, which helps to further determine the target effective display area coordinates corresponding to the display screen to be processed based on the coordinate sorting result.
[0112] Step S203: Based on the coordinate sorting results, determine the coordinates of the target effective display area corresponding to the display screen to be processed.
[0113] Specifically, as described above, the coordinate sorting result can be obtained through step S202. Furthermore, the coordinates of the target effective display area corresponding to the display screen to be processed can be determined based on the coordinate sorting result.
[0114] As can be seen from the above description, this application can select the effective area coordinates with the largest effective area in the set of effective area coordinates and determine them as the target effective display area coordinates corresponding to the display screen to be processed.
[0115] The coordinates of the target effective display area can be used to provide feedback on the effective area for displaying the data to be displayed.
[0116] Based on the coordinate sorting results obtained in step S202, the coordinates of the effective area with the largest effective area can be selected and determined as the target effective display area coordinates corresponding to the display screen to be processed.
[0117] As can be seen from the technical solutions described above, the method provided in this application embodiment can obtain the set of effective area coordinates by traversing the effective area coordinates of each display unit corresponding to the display screen to be processed in the parameters of the display screen to be processed. After obtaining the set of effective area coordinates, the effective area coordinates of each display unit in the set of effective area coordinates can be further sorted to obtain the coordinate sorting result. This helps to further determine the target effective display area coordinates corresponding to the display screen to be processed based on the coordinate sorting result, and helps to determine the target resolution based on the target effective display area coordinates corresponding to the display screen to be processed.
[0118] In another embodiment of this application, the process of determining the target resolution for displaying the data to be displayed based on a preset resolution list and the coordinates of the target effective display area in step S120 is described. This process may include the following steps:
[0119] Step S301: Calculate the area of the target effective display area corresponding to the target effective display area coordinates.
[0120] Specifically, as described above, the effective display area coordinates of the target can be obtained through step S203.
[0121] In this embodiment of the application, it can be determined that the resolution corresponding to the effective display area coordinates of the target is the target resolution in the preset resolution list.
[0122] In determining the target resolution, the area of the target effective display area corresponding to the coordinates of the target can be calculated first, which helps to further determine the target resolution through calculation.
[0123] As described above, the coordinates of the effective display area of the target can include the coordinates of the left vertex of the effective display area, as well as its corresponding width and height. To calculate the area of the effective display area corresponding to the coordinates, the area can be determined by calculating the product of the width and height of the effective display area.
[0124] Step S302: Perform an integer division operation on the area of the target effective display area corresponding to the coordinates of the target, and obtain the calculation result.
[0125] Specifically, each resolution in the preset resolution list has a corresponding number, and the resolution with the corresponding number in the preset resolution list can be found by using the preset resolution list and the corresponding number.
[0126] Furthermore, to determine the number corresponding to the target resolution in the preset resolution list, the number corresponding to the target resolution in the preset resolution list can be determined by calculating based on the area of the target effective display area corresponding to the target effective display area coordinates.
[0127] As can be seen from the above introduction, the area of the target's effective display area corresponding to the target's effective display area coordinates can be determined by calculation.
[0128] Furthermore, in this application, a calculation factor can be used to calculate the operation result. This calculation factor can be a resolution specified from the preset resolution list, or other resolutions can be selected based on the existing resolution. The operation result is obtained by dividing the area of the effective display area corresponding to the target's effective display area coordinates by the calculation factor, which helps in further determining the target number based on the operation result.
[0129] Step S303: Determine the target number based on the calculation result.
[0130] Specifically, as can be seen from the above description, the calculation result can be obtained after the calculation.
[0131] The calculation result can be further used to determine the number of the target resolution in the preset resolution list.
[0132] After obtaining the calculation result, the target number can be determined by a preset numbering determination rule.
[0133] The process of determining the target number will be illustrated below with an example. Specifically:
[0134] Assume there exists a preset resolution list, which may include three common standard resolutions. The corresponding standard resolution can be obtained using numbers 0, 1, and 2. The specific numbers and their corresponding standard resolutions are as follows:
[0135] list[0]: 1920×1080
[0136] list[1]: 3840×2160
[0137] list[2]:7680×4320
[0138] After determining the coordinates of the effective display area of the target in step 203, the width corresponding to the effective display area of the target can be determined as follows:
[0139] MAX w
[0140] The height corresponding to the effective display area of the target is determined as follows:
[0141] MAX h
[0142] Calculate the area of the effective display region of the target, i.e.:
[0143] S = MAX w ×MAX h
[0144] in,
[0145] S represents the area of the effective display region of the target;
[0146] MAX w This indicates the width of the effective display area of the target;
[0147] MAX h This indicates the height corresponding to the effective display area of the target.
[0148] Furthermore, after calculating the area, it can be divided by the preset calculation factor to obtain the calculation result.
[0149] For example,
[0150] Assuming the preset calculation factor is the set of resolution values with the smallest resolution in the preset resolution list, that is, the preset calculation factor is:
[0151] f = 1920 × 1080
[0152] The result of the calculation is:
[0153] i = S / f
[0154] in,
[0155] i represents the result of the operation;
[0156] S represents the area of the effective display region of the target;
[0157] f represents the preset calculation factor.
[0158] It should be noted that the calculation here is an integer division operation, and the floor is rounded down.
[0159] After obtaining the calculation result i, the target number can be further determined according to the preset numbering determination rule.
[0160] Next, we will briefly introduce the preset numbering rules:
[0161] There may be a preset first threshold, and the target number can be set with reference to the first threshold.
[0162] For example, the first threshold can be set to 0.
[0163] If the result of the operation is i = 0, then i can be determined to be the target number;
[0164] If the result of the operation i > 0, then the second result can be obtained by further performing the following calculation:
[0165] i a =i / 5+1
[0166] in,
[0167] i a This represents the result of the second operation;
[0168] i represents the result of the operation.
[0169] It should be noted that the calculation here is an integer division operation, and the floor is rounded down.
[0170] Further determine the i a The value;
[0171] There may be a preset second threshold, and the target number can be set with reference to the second threshold.
[0172] For example, the second threshold can be set to the largest number value in the preset resolution list. In this example, since the largest number value in the preset resolution list is 2, the second threshold can be set to 2.
[0173] If the i a If the value is less than or equal to 2, then the i is determined. a Number the target;
[0174] If the i a If the value is greater than 2, then the target number is determined to be 2;
[0175] The following uses two sets of data as examples, assuming the width of the effective display area of the target is:
[0176] MAX w =192
[0177] The height corresponding to the effective display area of the target is:
[0178] MAX h =108
[0179] The result of the calculation is:
[0180] i = 192 × 10⁸ / (1920 × 10⁸)
[0181] in,
[0182] i represents the result of the operation;
[0183] MAX w This indicates the width of the effective display area of the target;
[0184] MAX h This indicates the height corresponding to the effective display area of the target.
[0185] Since this is an integer division and rounding down, the result of the operation is i = 0. Since the preset numbering rule states that when the result of the operation is i = 0, then i is the target number, the target number in this group of data is 0.
[0186] The following example uses another set of data, assuming the width w corresponding to the effective display area of the target is:
[0187] MAX w =7680
[0188] The height h corresponding to the effective display area of the target is:
[0189] MAX h =4320
[0190] The result of the operation i is:
[0191] i = 7680 × 4320 / (1920 × 1080)
[0192] in,
[0193] i represents the result of the operation;
[0194] MAX w This indicates the width of the effective display area of the target;
[0195] MAX h This indicates the height corresponding to the effective display area of the target.
[0196] Since this is an integer division and rounded down, the result of the operation is i = 16. Further, the operation to obtain the second result can be performed:
[0197] ia =16 / 5+1
[0198] in,
[0199] i a This represents the result of the second operation.
[0200] Since this is an integer division and is rounded down, then i a =4, as can be seen from the above introduction, if the i a If the value is greater than 2, then the target number is determined to be 2. Since 4 is greater than 2, the final target number in this group of data is calculated to be 2.
[0201] Step S304: Based on the target number, determine the resolution in the preset resolution list that is numbered with the target number as the target resolution for displaying the data to be displayed.
[0202] Specifically, the target number can be determined through step S303.
[0203] As can be seen from the above description, the target number is the number corresponding to the target resolution in the preset resolution list.
[0204] Furthermore, based on the target number and the preset resolution list, the resolution with the target number can be found from the preset resolution list, and the resolution can be determined as the target resolution for each display unit corresponding to the display screen to be processed to display the data to be displayed.
[0205] As can be seen from the technical solutions described above, the method provided in this application embodiment can calculate the area of the target effective display area corresponding to the target effective display area coordinates, which helps to further calculate the calculation result using the preset calculation factor. After obtaining the calculation result, the target number can be further determined based on the calculation result, which helps to determine the resolution numbered by the target number in the preset resolution list as the target resolution for displaying the data to be displayed. This application embodiment can determine the final target resolution used to display the data to be displayed based on the target effective display area coordinates, which helps to display the data to be displayed according to the target resolution.
[0206] In another embodiment of this application, the process of configuring target stitching parameters based on the parameters of the display screen to be processed and the target resolution in step S130 is described. This process may include the following steps:
[0207] Step S401: Based on the parameters of the display screen to be processed and the target resolution, configure the correspondence between each output unit and each display unit in the display screen to be processed, and set the resolution corresponding to each output unit. The output unit is used to transmit the data to be displayed.
[0208] Specifically, after step S120, the target resolution for displaying the data to be displayed can be determined.
[0209] In practical applications, each of the output units can output the data to be displayed to the display screen to be processed. Before the output unit outputs the data, a correspondence can be established between each output unit and each display unit in the display screen to be processed. This helps each output unit to transmit the data to be displayed to the display screen to be processed based on the correspondence with each display unit in the display screen to be processed.
[0210] Furthermore, since each of the output units corresponds to each of the display units in the display screen to be processed, the resolution corresponding to each output unit can be set to the target resolution before data transmission, which helps each output unit to transmit the data to be displayed to its corresponding display unit.
[0211] Step S402: Based on the correspondence between each output unit and each display unit in the display screen to be processed and the parameters of the display screen to be processed, determine the invalid display area corresponding to each output unit.
[0212] Specifically, after step S401, the correspondence between each output unit and each display unit in the display screen to be processed can be obtained. Further, based on the correspondence between each output unit and each display unit in the display screen to be processed and the parameters of the display screen to be processed, the invalid display area corresponding to each output unit can be determined.
[0213] As described above, each display unit has a corresponding effective display area. In order to ensure normal display, each output unit used for data transmission can process the area according to the effective display area of the corresponding display unit to determine the invalid display area corresponding to each output unit. This helps to further process the invalid display areas corresponding to each output unit, ensuring data transmission and normal display of each display unit.
[0214] Step S403: Based on the correspondence between each output unit and each display unit in the display screen to be processed, and the invalid display area corresponding to each output unit, determine the splicing matrix corresponding to the display screen to be processed.
[0215] Specifically, as described above, after step S402, the invalid display area corresponding to each of the output units can be determined.
[0216] Furthermore, after determining the invalid display area corresponding to each output unit, the invalid display area corresponding to each output unit can be processed, including but not limited to cropping.
[0217] After processing the invalid display areas corresponding to each output unit, a splicing matrix corresponding to the display screen to be processed can be further determined based on the correspondence between each output unit and each display unit in the display screen to be processed and the invalid display areas corresponding to each output unit. This helps the display screen to be processed to configure the corresponding parameters according to the splicing matrix so that it can display the data to be displayed.
[0218] It should be noted that the splicing matrix and the splicing mode of the display screen to be processed are mutually corresponding.
[0219] For example, assuming the splicing pattern of the display screen to be processed is 2 rows and 2 columns, then the splicing matrix is also 2 rows and 2 columns.
[0220] The splicing matrix also includes the correspondence between each output unit and each display unit, as well as the resolution information corresponding to each output unit, which helps the display screen to be processed to display the data to be displayed according to the splicing matrix.
[0221] As can be seen from the technical solutions described above, the method provided in this application can configure the correspondence between each output unit and each display unit in the display screen to be processed based on the parameters of the display screen to be processed and the target resolution, and set the resolution corresponding to each output unit. This helps to further determine the invalid display area corresponding to each output unit based on the correspondence between each output unit and each display unit in the display screen to be processed and the parameters of the display screen to be processed. After determining the invalid display area corresponding to each output unit, a splicing matrix corresponding to the display screen to be processed can be further determined based on the correspondence between each output unit and each display unit in the display screen to be processed and the invalid display area corresponding to each output unit. This helps the display screen to be processed to display the data to be displayed based on the splicing matrix.
[0222] In another embodiment of this application, the process of configuring the parameters of the display screen to be processed according to the target splicing parameters and the target resolution to obtain the target display window in step S140 is described. This process may include the following steps:
[0223] Step S501: Based on the target resolution, configure the resolution of each display unit in the display screen to be processed to obtain the first target display screen.
[0224] Specifically, after configuring the target splicing parameters in step S130, the parameters of the display screen to be processed can be further configured based on the target splicing parameters and the target resolution, thereby obtaining the target display window.
[0225] In obtaining the target display window, the resolution of each display unit in the display screen to be processed can be set first. As described above, after the above series of operations, the target resolution can be obtained, and the display screen to be processed with the resolution configured to the target resolution can be used to display the data to be displayed. Since the display screen to be processed is composed of each display unit, configuring the resolution of each display unit in the display screen to be processed to the target resolution, and determining the display screen to be processed with the resolution configured for each display unit as the first target display screen, helps to further determine the target display area corresponding to each display unit in the first target display screen.
[0226] Step S502: Determine the target display area corresponding to each display unit in the first target display screen based on the splicing matrix.
[0227] Specifically, as described above, step S501 yields a first target display screen in which each of the display units has the target resolution.
[0228] Since the first target display screen is configured with the target resolution, the data to be displayed can be displayed using the first target display screen.
[0229] Furthermore, to display the data to be displayed using the first target display screen, the target display area corresponding to each display unit in the first target display screen can be determined first based on the splicing matrix.
[0230] Determining the target display area corresponding to each display unit in the first target display screen can be achieved through the following two steps:
[0231] Step S1: Based on the splicing matrix, edit the invalid display area corresponding to each output unit to obtain the first target display area corresponding to each output unit.
[0232] Specifically, as described above, the splicing matrix includes the correspondence between each output unit and each display unit, as well as the invalid display area corresponding to each output unit. Based on the correspondence between each output unit and each display unit, and the invalid display area corresponding to each output unit, the target display area corresponding to each display unit in the first target display screen can be determined. The invalid display area corresponding to each output unit can be processed by methods including but not limited to cropping to obtain the first target display area corresponding to each output unit.
[0233] Step S2: Based on the first target display area, determine the target display area corresponding to each display unit in the first target display screen.
[0234] Specifically, after obtaining the first target display area corresponding to each of the output units, the target display area corresponding to each of the display units in the first target display screen can be determined based on the first target display area.
[0235] Since there is a correspondence between each output unit and each display unit, as described above, the first target display area corresponding to each output unit has been determined. Furthermore, based on the correspondence between each output unit and each display unit and the first target display area corresponding to each output unit, the target display area for each display unit in the first target display screen to display the data to be displayed can be determined.
[0236] Step S503: Combine the target display areas corresponding to each display unit in the first target display screen to obtain the target display window.
[0237] Specifically, as described above, step S502 can obtain the target display area corresponding to each display unit in the first target display screen.
[0238] Furthermore, to display the data to be displayed by combining the target display areas corresponding to each of the display units, the target display window that can be used to display the complete data to be displayed can be obtained by splicing the target display areas corresponding to each of the display units in the first target display screen.
[0239] As can be seen from the technical solutions described above, the method provided in this application embodiment can configure the resolution of each display unit in the display screen to be processed according to the target resolution to obtain the first target display screen. After obtaining the first target display screen, the target display area corresponding to each display unit in the first target display screen can be determined according to the splicing matrix, which helps to further splice the target display areas corresponding to each display unit in the first target display screen to obtain the target display window, which helps to use the target display window to display the complete data to be displayed.
[0240] In another embodiment of this application, the process of displaying the data to be displayed using the target display window in step S150 is described. This process may include the following steps:
[0241] Step S601: Based on the correspondence between each output unit and each display unit in the display screen to be processed, the data to be displayed is transmitted to the first target display screen using each output unit.
[0242] Specifically, as described above, the target display window can be obtained through step S140, and the target display window exists in the first target display screen.
[0243] When it is necessary to display the data to be displayed using the target display window, the data to be displayed can first be transmitted to the first target display screen. Since there is a correspondence between each display unit and the output unit in the first target display screen, the data to be displayed can first be transmitted to the corresponding display unit in the first target display screen through each output unit, which helps to further utilize the corresponding target display window in the first target display screen to display the data to be displayed.
[0244] Step S602: Display the data to be displayed using the target display window.
[0245] Specifically, as described above, after step S601, the data to be displayed can be transmitted to the first target display screen.
[0246] As described above, the target display window is obtained by splicing together the target display areas corresponding to each display unit in the first target display screen, and the spliced target display window in the first target display screen can display the data to be displayed in the first target display screen.
[0247] The data to be displayed in the first target display screen can be displayed in the corresponding target display window in the first target display screen, thereby realizing the display function of the data to be displayed.
[0248] As can be seen from the above-described technical solutions, the method provided in this application embodiment can utilize the correspondence between each of the output units and each of the display units in the display screen to be processed, and use each of the output units to transmit the data to be displayed to the first target display screen. This facilitates further display of the data to be displayed based on the target display window spliced in the first target display screen. In this way, the resolution of the display screen to be processed can be uniformly set without setting the resolution of each output unit individually through hardware, and the data to be displayed can be displayed using the display screen to be processed. This effectively reduces the time consumed in processing resolution, improves processing efficiency, and reduces development cycle and maintenance costs.
[0249] The data display device provided in the embodiments of this application is described below. The data display device described below can be referred to in correspondence with the data display method described above.
[0250] See Figure 3 , Figure 3 This is a schematic diagram of a data display device structure disclosed in an embodiment of this application.
[0251] like Figure 3 As shown, the data display device may include:
[0252] The information acquisition module 11 is used to acquire the parameters of the display screen to be processed and the data to be displayed;
[0253] The target effective display area coordinate determination module 12 is used to determine the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed;
[0254] The target resolution determination module 13 is used to determine the target resolution for displaying the data to be displayed based on a preset resolution list and the coordinates of the effective display area of the target.
[0255] The splicing parameter configuration module 14 is used to configure target splicing parameters based on the parameters of the display screen to be processed and the target resolution;
[0256] The display configuration module 15 is used to configure the parameters of the display screen to be processed according to the target splicing parameters and the target resolution, so as to obtain the target display window;
[0257] Display module 16 is used to display the data to be displayed using the target display window.
[0258] As can be seen from the data display device described above, the information acquisition module 11 provided in this application embodiment can acquire the parameters of the display screen to be processed and the data to be displayed, which helps to further utilize the target effective display area coordinate determination module 12 to determine the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed. After determining the target effective display area coordinates corresponding to the display screen to be processed, the target resolution determination module 13 can determine the target resolution for displaying the data to be displayed based on a preset resolution list and the target effective display area coordinates, which helps the splicing parameter configuration module 14 to configure the target splicing parameters based on the parameters of the display screen to be processed and the target resolution. After configuring the target splicing parameters, the display screen configuration module 15 can further utilize the target splicing parameters and the target resolution to configure the parameters of the display screen to be processed, thereby obtaining the target display window, which helps to use the display module 16 to display the data to be displayed. This application embodiment can uniformly process the resolution of each display unit participating in the display before displaying the data to be displayed, eliminating the need to set a corresponding resolution for each display unit separately, thereby effectively reducing development and maintenance costs.
[0259] The specific processing flow of each unit included in the aforementioned data display device can be found in the relevant introduction of the data display method section above, and will not be repeated here.
[0260] The data display device provided in this application embodiment can be applied to data display devices, such as terminals: mobile phones, computers, etc. Optionally, Figure 4 The hardware structure block diagram of the data display device is shown below, for reference Figure 4 The hardware structure of a data display device may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4.
[0261] In this embodiment, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4.
[0262] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0263] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;
[0264] The memory stores a program, which the processor can call. The program is used to implement the various processing flows in the aforementioned terminal data display scheme.
[0265] This application embodiment also provides a readable storage medium that can store a program suitable for processor execution, the program being used to implement various processing flows of the aforementioned terminal in the data display scheme.
[0266] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0267] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0268] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Various embodiments can be combined with each other. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data display method, characterized in that, include: Obtain the parameters and data to be displayed of the display screen to be processed, wherein the display screen to be processed includes at least one display unit; Based on the parameters of the display screen to be processed, determine the coordinates of the target effective display area corresponding to the display screen to be processed; Based on a preset list of resolutions and the coordinates of the target effective display area, determine the target resolution for displaying the data to be displayed; Configure target splicing parameters based on the parameters of the display screen to be processed and the target resolution; Based on the target stitching parameters and the target resolution, the parameters of the display screen to be processed are configured to obtain the target display window; The target display window is used to display the data to be displayed; Determining the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed includes: Traverse the effective area coordinates of each display unit corresponding to the display screen to be processed to obtain the effective area coordinate set; The effective area coordinates of each display unit in the effective area coordinate set are sorted to obtain the coordinate sorting result; Based on the coordinate sorting results, the coordinates of the target effective display area corresponding to the display screen to be processed are determined.
2. The method according to claim 1, characterized in that, The step of determining the target resolution for displaying the data to be displayed based on a preset resolution list and the coordinates of the target effective display area includes: Based on the coordinates of the effective display area of the target, calculate the area of the effective display area of the target corresponding to the coordinates of the effective display area of the target; The area of the target's effective display area corresponding to the target's effective display area coordinates is divided by an integer to obtain the calculation result; Based on the calculation results, the target number is determined; Based on the target number, the resolution with the target number in the preset resolution list is determined as the target resolution for displaying the data to be displayed.
3. The method according to any one of claims 1-2, characterized in that, The step of configuring target splicing parameters based on the parameters of the display screen to be processed and the target resolution includes: Based on the parameters of the display screen to be processed and the target resolution, configure the correspondence between each output unit and each display unit in the display screen to be processed, and set the resolution corresponding to each output unit. The output unit is used to transmit the data to be displayed. Based on the correspondence between each output unit and each display unit in the display screen to be processed, and the parameters of the display screen to be processed, the invalid display area corresponding to each output unit is determined; Based on the correspondence between each output unit and each display unit in the display screen to be processed, and the invalid display area corresponding to each output unit, a splicing matrix corresponding to the display screen to be processed is determined.
4. The method according to claim 3, characterized in that, The step of configuring the parameters of the display screen to be processed based on the target stitching parameters and the target resolution to obtain the target display window includes: Based on the target resolution, the resolution of each display unit in the display screen to be processed is configured to obtain the first target display screen; Based on the splicing matrix, the target display area corresponding to each display unit in the first target display screen is determined; The target display window is obtained by splicing together the target display areas corresponding to each display unit in the first target display screen.
5. The method according to claim 4, characterized in that, Determining the target display area corresponding to each display unit in the first target display screen based on the splicing matrix includes: Based on the splicing matrix, the invalid display areas corresponding to each output unit are edited to obtain the first target display area corresponding to each output unit; Based on the first target display area, the target display area corresponding to each display unit in the first target display screen is determined.
6. The method according to claim 5, characterized in that, The step of displaying the data to be displayed using the target display window includes: Based on the correspondence between each of the output units and each of the display units in the display screen to be processed, the data to be displayed is transmitted to the first target display screen using each of the output units; The target display window is used to display the data to be displayed.
7. A data display device, characterized in that, include: An information acquisition module is used to acquire parameters and data to be displayed of the display screen to be processed, wherein the display screen to be processed includes at least one display unit; The target effective display area coordinate determination module is used to determine the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed; The target resolution determination module is used to determine the target resolution for displaying the data to be displayed based on a preset resolution list and the coordinates of the effective display area of the target. The splicing parameter configuration module is used to configure target splicing parameters based on the parameters of the display screen to be processed and the target resolution; The display configuration module is used to configure the parameters of the display screen to be processed according to the target splicing parameters and the target resolution, so as to obtain the target display window; The display module is used to display the data to be displayed using the target display window; Determining the target effective display area coordinates corresponding to the display screen to be processed based on the parameters of the display screen to be processed includes: Traverse the effective area coordinates of each display unit corresponding to the display screen to be processed to obtain the effective area coordinate set; The effective area coordinates of each display unit in the effective area coordinate set are sorted to obtain the coordinate sorting result; Based on the coordinate sorting results, the coordinates of the target effective display area corresponding to the display screen to be processed are determined.
8. A data display device, characterized in that, include: One or more processors, and memory; The memory stores computer-readable instructions that, when executed by the one or more processors, implement the steps of the data display method as described in any one of claims 1 to 6.
9. A readable storage medium, characterized in that: The readable storage medium stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the data display method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Resolution adjusting method and device for spliced display screen
CN110580138A