Different display control method and system for multi-path display output port, terminal and storage medium
By configuring the multi-channel display output port of the board and matching the video stream resource, the output control problem of multiple video sources in the prior art is solved when processing simultaneously, and efficient multi-screen display control is realized, which improves the expansion of the device and compatibility, simplifies deployment and reduces costs.
Patent Information
- Application Number
- CN202411336218.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-10
AI Technical Summary
When the prior art processes multiple different video sources simultaneously, it is difficult to achieve independent output and control through a single HDMI or display output port, resulting in increased equipment deployment complexity, increased cost and reduced operating efficiency.
By configuring the status and protocol of the board multiple display output ports, obtaining the basic parameters of the display output port, matching the display output port based on the resolution requirements of the video stream resource, and configuring the display layout of the video stream resource through a custom display class. Implement multi-screen different display control.
It realizes support for multiple display specifications, improves the scalability and compatibility of the device, simplifies device deployment, reduces costs, and improves the operating efficiency of the system.
Smart Images

Figure CN119292548A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a method, system, terminal and storage medium for controlling different display modes of multiple display output ports. Background Art
[0002] With the rapid development of terminal display technology and the rapid progress of science and technology, many advanced terminal control devices have emerged. These devices have shown a high degree of adaptability to diverse screen resolutions, screen directions and display content on the display interface. In order to meet these complex requirements, the market urgently needs efficient broadcast control equipment and system applications to achieve precise control of device display output and interface presentation. Among them, the multi-output display broadcast control all-in-one machine stands out with its unique advantages. Combined with advanced multi-screen display control and monitoring programs, it can flexibly operate multiple HDMI or display output ports, and easily realize personalized configuration and regulation of multiple resolutions, screen directions and output content.
[0003] However, most devices on the market are still limited in their support for HDMI or display output ports, and lack a mature and complete multi-screen display control and monitoring system and application solutions. This directly leads to the difficulty of achieving independent output and control through a single HDMI output or display output port when processing multiple different video sources at the same time, which in turn limits users' flexible application and efficient management in multiple scenarios. This limitation not only increases the complexity of device deployment, but also forces the deployment of more playback devices in the same scenario to meet demand, which invisibly increases costs and reduces the overall system operation efficiency.
[0004] Therefore, developing a multi-screen display control and monitoring system with stronger scalability and higher compatibility, as well as optimizing the existing broadcast control equipment's support capabilities for multiple display specifications, has become the key to solving current problems and promoting the further development of the terminal display industry. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method, system, terminal and storage medium for controlling different displays of multiple display output ports to solve the above-mentioned technical problems.
[0006] In a first aspect, the present invention provides a method for controlling display differences of multiple display output ports, comprising: Configure the status and protocol of the board's multi-channel display output ports; Obtaining basic parameters of each display output port by way of reflection calling a system-level object, wherein the basic parameters include a port identity code, an output resolution, a display direction, and a list of supported resolutions; Obtaining video stream resources and resolution requirements of the video stream resources, and matching display output ports for the video streams based on the resolution requirements of the video stream resources; By creating a custom display class, the video stream resources are transferred to the display device corresponding to the matching display output port, and the display layout of the video stream resources is configured.
[0007] In an optional implementation, configuring the status and protocol of the multi-channel display output port of the board includes: Identify multiple display output ports supported by the system board; Configuration data is compiled using a device tree structure, and state attributes and transmission protocols of a plurality of display output ports are set in the configuration data.
[0008] In an optional implementation, the configuration data includes: One display output port is reserved as a monitoring port, and a data conversion module is configured for the monitoring port, and the data conversion module converts the data of the mobile industry processor interface protocol into the data of the full digital video and sound transmission protocol; Set the enabled or disabled state of the display output ports other than the monitoring port according to the requirements, and configure the data conversion module for the enabled display output ports; Based on the resolution supported by the display output port, a matching number of layers is configured for the display output port.
[0009] In an optional implementation, a video stream resource and a resolution requirement of the video stream resource are obtained, and a display output port is matched for the video stream based on the resolution requirement of the video stream resource. Call the function for obtaining the number of display devices configured in the display manager object through reflection; Calling the connector management function of the configuration display manager object through reflection to obtain a string array containing all connector information, and extracting the connector information from the string array; Traverse each display device, parse the connector information of the display device, and obtain the initialization type name, port ID, type and status of each display device; Create a display information object and set the display ID of the display information object to the current iteration index; The corresponding function of the configuration display manager object is called through reflection to obtain the type of the current interface and the corresponding type name, and the type of the current interface and the corresponding type name are saved to the display information object; Get the resolution of the display device by calling the mode management function through reflection, and save the resolution to the display information object of the corresponding interface; Import the display information object into a pre-created list.
[0010] In an optional embodiment, the method further comprises: An alternative display program control interface is created based on the reserved monitoring port, and the alternative display program control interface displays the video stream resource of the target display output port specified by the control instruction based on the received control instruction.
[0011] In a second aspect, the present invention provides a display control system for multiple display output ports, comprising: The port configuration module is used to configure the status and protocol of the multi-channel display output ports of the board; An information acquisition module, used to acquire basic parameters of each display output port by reflecting and calling a system-level object, wherein the basic parameters include a port identity code, an output resolution, a display direction, and a list of supported resolutions; A resource matching module, used to obtain video stream resources and resolution requirements of the video stream resources, and match display output ports for the video stream based on the resolution requirements of the video stream resources; The display management module is used to create a custom display class, transfer the video stream resources to the display device corresponding to the matching display output port, and configure the display layout of the video stream resources.
[0012] In an optional implementation, the port configuration module includes: A port identification unit, used for identifying multiple display output ports supported by the system board; The configuration compiling unit is used to compile configuration data using a device tree structure, and to set state attributes and transmission protocols of a plurality of display output ports in the configuration data.
[0013] In an optional implementation, the configuration data includes: One display output port is reserved as a monitoring port, and a data conversion module is configured for the monitoring port, and the data conversion module converts the data of the mobile industry processor interface protocol into the data of the full digital video and sound transmission protocol; Set the enabled or disabled state of the display output ports other than the monitoring port according to the requirements, and configure the data conversion module for the enabled display output ports; Based on the resolution supported by the display output port, a matching number of layers is configured for the display output port.
[0014] In a third aspect, a terminal is provided, including: processor, memory, wherein: The memory is used to store computer programs. The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
[0015] According to a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.
[0016] The beneficial effects of the present invention are that the method, system, terminal and storage medium for controlling different display output ports of multiple display output ports provided by the present invention configure and manage display ports such as HDMI, LVDS, EDP, MIPI, etc. through the Android main control system, and match the display ports to the video stream resources by monitoring the resolution of the video stream resources, thereby realizing multi-screen different display control.
[0017] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0020] Figure 2 It is a schematic diagram of the hardware architecture of a method according to an embodiment of the present invention.
[0021] Figure 3 is another schematic flow chart of a method according to an embodiment of the present invention.
[0022] Figure 4 It is a rendering of an abnormal display program control interface of a method according to an embodiment of the present invention.
[0023] Figure 5 is a schematic block diagram of a system according to an embodiment of the present invention.
[0024] Figure 6 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0027] The key terms appearing in the present invention are explained below.
[0028] HDMI High Definition Multimedia Interface (HDMI) is a digital video / audio interface technology and a dedicated digital interface suitable for image transmission.
[0029] LVDS (Low-Voltage Differential Signaling) is a differential signal technology with low power consumption, low bit error rate, low crosstalk and low radiation. This transmission technology can reach more than 155Mbps.
[0030] The EDP interface is a fully digital interface based on the Display Port architecture and protocol. Its full English name is Embedded Display Port.
[0031] MIPI (Mobile Industry Processor Interface) is the abbreviation of mobile industry processor interface.
[0032] The different display control method of multiple display output ports provided by the embodiment of the present invention is executed by a computer device. Accordingly, the different display control system of multiple display output ports runs in the computer device.
[0033] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1 The execution subject may be a display control system with multiple display output ports. According to different requirements, the order of the steps in the flow chart may be changed, and some may be omitted.
[0034] like Figure 1 As shown, the method includes: Step 110, configuring the status and protocol of the multi-channel display output port of the board; Step 120, obtaining basic parameters of each display output port by reflection calling the system-level object, wherein the basic parameters include port identity code, output resolution, display direction and supported resolution list; Step 130, obtaining a video stream resource and a resolution requirement of the video stream resource, and matching a display output port for the video stream based on the resolution requirement of the video stream resource; Step 140 , by creating a custom display class, the video stream resource is transferred to the display device corresponding to the matching display output port, and the display layout of the video stream resource is configured.
[0035] To facilitate understanding of the present invention, the following is a further description of the method for controlling the different display of multiple display output ports provided by the present invention based on the principle of the method for controlling the different display of multiple display output ports of the present invention and the process of performing different display control on multiple display output ports in the embodiment.
[0036] For details, please refer to Figure 2 The hardware configuration of the board supports multiple HDMI or display output ports at the same time, and the board is connected to multiple display screens with resolutions of 8K, 4K, 1080P and 720P. By using the Android main control system to allocate and control display ports such as HDMI, LVDS, EDP, MIPI, etc., with the help of the multi-screen display control function of the device operating system, the control program implemented by the Android operating system and JAVA language is realized.
[0037] Please refer to Figure 3 , the method for controlling the display difference of the multi-channel display output port includes: S1. Board output port configuration and support.
[0038] Identify multiple display output ports supported by the system board; compile configuration data using a device tree structure, and set state attributes and transmission protocols of the multiple display output ports in the configuration data.
[0039] The configuration data includes: reserving one display output port as a monitoring port, configuring a data conversion module for the monitoring port, and converting the data of the mobile industry processor interface protocol into the data of the fully digital video and sound transmission protocol; setting the enable or disable status of the display output ports other than the monitoring port according to needs, and configuring the data conversion module for the display output ports in the enabled state; and configuring the number of matching layers for the display output port based on the resolution supported by the display output port.
[0040] Specifically, the board supports multiple HDMI or display output ports at the same time, where each port can be one or more of HDMI, LVDS, EDP, and MIPI. Usually, the conventional display output port is mainly HDMI. At the same time, in order to retain the system monitoring display port, it is necessary to reserve a display output for MIPI to HDMI output for the system's own monitoring display and operation. The remaining ports can be configured through DP to HDMI, HDMI-OUT, MIPI to HDMI, etc. It should be noted that for the output port that needs to support 8K resolution, two 4k VP layers need to be configured to jointly support one HDMI output port.
[0041] For example, the configured output ports are HDMI0 (8K display), dp to HDMI output (4K display), MIPI to HDMI output (1080P display), and the corresponding configuration codes are as follows (the corresponding configuration contents vary on different platforms): &hdmi0{status = "okay";}; &hdmi0_in_vp0{status = "okay";}; &hdmi0_sound {status = "okay";}; &hdmi1_in_vp2{status = "disabled";}; &hdmi1_sound{status = "disabled";}; &mipi_dcphy0{status = "okay";}; &dsi0{status = "okay";}; &dsi0_in_vp2{status = "disabled";}; &dsi0_in_vp3{status = "okay";}; &dp0{status = "okay";}; &dp0_in_vp2{status = "okay";}; &dp0_sound{status = "okay";}.
[0042] This code is written using the Device Tree syntax, which is mainly used to describe the information of hardware devices when the Linux kernel starts. Device Tree is a data structure that allows hardware description data to be organized in a file system-like structure, which enables the kernel to configure and manage hardware devices more flexibly. This code controls the activation or disabling of different devices and paths at system startup by setting their status attributes. This is very useful for flexibly configuring and managing resources in complex systems with multiple display and audio interfaces.
[0043] S2. Obtain parameters such as the ID and resolution of each display output port.
[0044] Call the display device quantity acquisition function of the display manager object through reflection; call the connector management function of the display manager object through reflection to obtain a string array containing all connector information, and extract the connector information from the string array; traverse each display device, parse the connector information of the display device, and obtain the initialization type name, port ID, type and status of each display device; create a display information object, and set the display ID of the display information object to the current iteration index; call the corresponding function of the display manager object through reflection to obtain the type of the current interface and the corresponding type name, and save the type of the current interface and the corresponding type name to the display information object; call the mode management function through reflection to obtain the resolution of the display device, and save the resolution to the display information object of the corresponding interface; import the display information object into a pre-created list.
[0045] Reflection call means to dynamically obtain class information at runtime, and use this information to operate the class or object. Through reflection, you can obtain information such as fields, methods, constructors, etc. of a class at runtime, and dynamically create objects, call methods, access and modify field values. Here it is used to obtain parameters such as the ID and resolution of each display port.
[0046] Specifically, when the device hardware has been configured and can support multiple display output ports, it is necessary to obtain the ID of each display port and the resolution parameter content of each port through the system platform specified method or instruction in order to control the screen display. Here, the corresponding information is obtained in a reflection manner.
[0047] The display output port ID is used to specify the port to be output when distinguishing different display outputs. It is necessary to obtain the display output ID list through the corresponding instructions of different system platforms, and at the same time obtain the corresponding resolution, screen direction and other parameters of each display ID, and perform specified operations in subsequent operations.
[0048] Initialization: First, create an ArrayList<displayinfo>A list of type displayInfos, used to store information about each display device.
[0049] Get the number of display devices: Call the getDisplayNumber method of the displayOutputManager object through reflection to get the number of display devices (displayNumber) in the current system.
[0050] Get connector information: Call the getConnectorInfo method of the displayOutputManager object again through reflection to get a string array connectorInfos containing all connector information. The information of each connector may be expressed in a comma-separated format (such as "type:HDMI,id:1,state:connected").
[0051] Iterate through each display device: For each display device (the number of loops is controlled by displayNumber): Initialize the type name (typeName), port ID (id), type (type), and state (state).
[0052] If connectorInfos is not empty and its length is equal to the number of display devices, parse the connector information of the current display device: Get the type, ID and status by separating the string by commas.
[0053] Remove the tags before type, id, and state (e.g. "type:", "id:", "state:").
[0054] Check if the state is connected (DRM_MODE_CONNECTED) and the type name is not a virtual or DSI type (if so, skip the current iteration).
[0055] Create a DisplayInfo object and set its display ID to the current iteration index.
[0056] Call the getCurrentInterface and typetoface methods of displayOutputManager through reflection to obtain the type of the current interface and the corresponding type name, and set them in the DisplayInfo object.
[0057] Set the description information of DisplayInfo (type name or type name plus ID) according to whether ID is empty or "0".
[0058] The getModeList method is called through reflection to obtain the list of modes supported by the current display device, and the filterOrginModes method is called to filter these modes, and then set them to the DisplayInfo object.
[0059] Call the getFilterModeList method to further process the mode list, generate a filtered mode list, and set it to the DisplayInfo object.
[0060] Call the getSupportCorlorList method through reflection to obtain the color list supported by the current display device and set it to the DisplayInfo object.
[0061] Get and set the current resolution of the current display device (via the getCurrentMode method).
[0062] Add the constructed DisplayInfo object to the displayInfos list.
[0063] Return result: After the traversal is completed, a displayInfos list containing all valid display device information is returned.
[0064] S3. Obtain display resources.
[0065] Display resources include system interface, application interface, network video stream, local video stream and other resources. They are the content that needs to be output to the display screen through the display port. The video resources need to be assigned to the display port of the target display ID through the control program. Display resources need to distinguish between multiple resolutions such as 8K, 4K, 1080P, etc. in order to better specify the output according to the resolution.
[0066] Analyze the type of video stream resources (real-time video, static images, video files, etc.), frame rate, color format, etc., and determine their resolution requirements. Select the most appropriate display output port for the video stream based on the resolution requirements of the video stream, the current status and performance of the output port (such as bandwidth, load). The resolution supported by the selected display output port meets the resolution requirements of the resources in the video. During the allocation process, detect possible port conflicts or resource competition, and automatically adjust the allocation plan to avoid conflicts.
[0067] S4, abnormal display control program.
[0068] Multi-screen display refers to displaying different contents on multiple display screens at the same time. The present invention obtains the ID and display parameters of each display output port through an application, obtains the required display resources according to business needs, and displays each display resource interface on different display output ports according to actual scenarios.
[0069] The application is used to control interface layering and multi-screen display control. The application obtains the ID and display parameters of each display output port, obtains the required display resources according to business needs, and displays each display resource interface on different display output ports according to the actual scenario.
[0070] If in step S3, one display output port corresponds to multiple video stream resources, it is necessary to construct a multi-screen display on the display corresponding to the display output port.
[0071] Specifically, the process includes the following: Custom display class design: Design and implement a custom display class that encapsulates all necessary logic for interacting with the display device, including but not limited to video stream decoding, rendering, layout adjustment, etc.
[0072] Video stream transmission and layout configuration: After the video stream resources are properly encoded or converted into a format, they are transmitted to the display device corresponding to the matching display output port. During the transmission process, the display layout of the video stream is configured according to the requirements, such as full screen, split screen, picture-in-picture, etc.
[0073] Real-time feedback and adjustment: During video playback, monitor the status and performance parameters of the display device, such as temperature, frame rate, frame loss rate, etc., in real time, and dynamically adjust the parameters of the video stream or display layout as needed to optimize the user experience.
[0074] The main code examples of the abnormal display control program are as follows: Custom class of abnormal display interface: public class DifferentDisplay extends Presentation { public DifferentDisplay(Context outercontext, Display display){ super(outercontext,display);} Constructor: The DifferentDisplay class inherits from the Presentation class and calls the parent class's constructor in its constructor, passing in the application context and a Display object.
[0075] @override protected void onCreate(Bundle savedInstancestate){ super.oncreate(savedInstancestate); setcontentView(R.layout.diffrentdisplay);} / / Customize the content of the different display page. Rewrite the onCreate method of Presentation to set the layout of DifferentDisplay. Here, call setContentView(R.layout.diffrentdisplay) to set the customized layout file.
[0076] public void setShowContent(Object connect){ … / / Customize the content of the display page}} This is a customization method used to set the content connection to be displayed normally in DifferentDisplayConnect``.
[0077] / / Display logic List <displayinfo>displays = getDisplayInfoList() displays = mDisplayManager.getDisplays(); / / Get the display array DifferentDisplaymPresentation = new DifferentDisplay(getApplicationContext(),displays.getDisplayId()); / / Get display resources Object content; … mPresentation.setShowContent(content); mPresentation.show().
[0078] The DifferentDisplay class is designed to create a Presentation that can display content on different displays.
[0079] S5. Monitoring display interface.
[0080] Please refer to Figure 4 , one port needs to be reserved among all display ports for monitoring and displaying the output content of each display port, so as to adjust the display content in time. Through the monitoring display interface, open the special display program control interface, select the display output port to be operated, and add the content to be displayed on the display output port by obtaining the display source.
[0081] Specifically, they include: Monitoring and display interface design: Design and implement a monitoring and display interface that can receive and display the output content of all display ports in real time. The interface should have good visualization effects and clearly display the current display status of each port. The monitoring and display interface and the display program control interface should have good user experience and a friendly operation interface. The interface design should be concise and clear, and the operation logic should be intuitive and easy to understand, so that users can quickly get started and manage efficiently.
[0082] Different display program control interface: In the monitoring display interface, an different display program control interface is integrated. This interface allows administrators or users to select the display output ports to be operated through a graphical interface, and configure and manage these ports.
[0083] Content addition and adjustment: Through the display program control interface, users can easily add content to be displayed to the specified display output port. This includes selecting content from video stream resources, adjusting the layout of content, setting content display parameters, etc. At the same time, users can also monitor the playback status of content in real time and make dynamic adjustments as needed. Ensure that the monitoring display port can receive and display the output content of each display port in real time and accurately. This may require the implementation of an efficient data synchronization and transmission mechanism to ensure the real-time and accuracy of data.
[0084] Interaction and feedback mechanism: Establish an effective interaction and feedback mechanism in the process of monitoring display and content management. When the user operates through the display program control interface, the system should be able to respond and feedback the operation results immediately. At the same time, the system should also be able to automatically detect and report any potential errors or abnormalities so that users can deal with them in time.
[0085] When implementing monitoring display and content management functions, the security and stability of the system should be fully considered. By taking necessary security measures and stability assurance mechanisms, the system can be ensured to operate stably and prevent potential security risks.
[0086] In some embodiments, the display control system for multiple display output ports may include multiple functional modules composed of computer program segments. The computer program of each program segment in the display control system for multiple display output ports may be stored in a memory of a computer device and executed by at least one processor to perform (see Figure 1 Description) The function of different display control of multiple display output ports.
[0087] In this embodiment, the display control system of the multiple display output ports can be divided into multiple functional modules according to the functions performed by them, such as Figure 5 As shown. The functional modules of the system 500 may include: a port configuration module 510, an information acquisition module 520, a resource matching module 530 and a display management module 540. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0088] The port configuration module is used to configure the status and protocol of the multi-channel display output ports of the board; An information acquisition module, used to acquire basic parameters of each display output port by reflecting and calling a system-level object, wherein the basic parameters include a port identity code, an output resolution, a display direction, and a list of supported resolutions; A resource matching module, used to obtain video stream resources and resolution requirements of the video stream resources, and match display output ports for the video stream based on the resolution requirements of the video stream resources; The display management module is used to create a custom display class, transfer the video stream resources to the display device corresponding to the matching display output port, and configure the display layout of the video stream resources.
[0089] Optionally, as an embodiment of the present invention, the port configuration module includes: A port identification unit, used for identifying multiple display output ports supported by the system board; The configuration compiling unit is used to compile configuration data using a device tree structure, and to set state attributes and transmission protocols of a plurality of display output ports in the configuration data.
[0090] Optionally, as an embodiment of the present invention, the configuration data includes: One display output port is reserved as a monitoring port, and a data conversion module is configured for the monitoring port, and the data conversion module converts the data of the mobile industry processor interface protocol into the data of the full digital video and sound transmission protocol; Set the enabled or disabled state of the display output ports other than the monitoring port according to the requirements, and configure the data conversion module for the enabled display output ports; Based on the resolution supported by the display output port, a matching number of layers is configured for the display output port.
[0091] Figure 6 The present invention is a schematic diagram of the structure of a terminal 600 provided in an embodiment of the present invention. The terminal 600 can be used to execute the method for controlling the display difference of multiple display output ports provided in an embodiment of the present invention.
[0092] The terminal 600 may include: a processor 610, a memory 620 and a communication unit 630. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0093] The memory 620 can be used to store the execution instructions of the processor 610. The memory 620 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 620 are executed by the processor 610, the terminal 600 can execute some or all of the steps in the following method embodiments.
[0094] The processor 610 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 620, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 610 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0095] The communication unit 630 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.
[0096] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0097] Therefore, the present invention configures and manages display ports such as HDMI, LVDS, EDP, MIPI, etc. through the Android main control system, and matches the display port to the video stream resource by monitoring the resolution of the video stream resource, thereby realizing multi-screen different display control. The technical effects that can be achieved by this embodiment can be found in the description above and will not be repeated here.
[0098] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.
[0099] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
[0100] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.
[0101] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0102] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0103] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.< / displayinfo> < / displayinfo>
Claims
1. A method for controlling display differences of multiple display output ports, characterized in that: include: Configure the status and protocol of the board's multi-channel display output ports; Obtaining basic parameters of each display output port by way of reflection calling a system-level object, wherein the basic parameters include a port identity code, an output resolution, a display direction, and a list of supported resolutions; Obtaining video stream resources and resolution requirements of the video stream resources, and matching display output ports for the video streams based on the resolution requirements of the video stream resources; By creating a custom display class, the video stream resources are transferred to the display device corresponding to the matching display output port, and the display layout of the video stream resources is configured.
2. The method according to claim 1, characterized in that Configure the status and protocol of the board's multiple display output ports, including: Identify multiple display output ports supported by the system board; Configuration data is compiled using a device tree structure, and state attributes and transmission protocols of a plurality of display output ports are set in the configuration data.
3. The method according to claim 2, characterized in that The configuration data includes: One display output port is reserved as a monitoring port, and a data conversion module is configured for the monitoring port, and the data conversion module converts the data of the mobile industry processor interface protocol into the data of the full digital video and sound transmission protocol; Set the enabled or disabled state of the display output ports other than the monitoring port according to the requirements, and configure the data conversion module for the enabled display output ports; Based on the resolution supported by the display output port, a matching number of layers is configured for the display output port.
4. The method according to claim 1, characterized in that: Get the video stream resource and its resolution requirement, and match the display output port for the video stream based on the resolution requirement of the video stream resource Call the function for obtaining the number of display devices configured in the display manager object through reflection; Calling the connector management function of the configuration display manager object through reflection to obtain a string array containing all connector information, and extracting the connector information from the string array; Traverse each display device, parse the connector information of the display device, and obtain the initialization type name, port ID, type and status of each display device; Create a display information object and set the display ID of the display information object to the current iteration index; The corresponding function of the configuration display manager object is called through reflection to obtain the type of the current interface and the corresponding type name, and the type of the current interface and the corresponding type name are saved to the display information object; Get the resolution of the display device by calling the mode management function through reflection, and save the resolution to the display information object of the corresponding interface; Import the display information object into a pre-created list.
5. The method according to claim 3, characterized in that: The method further comprises: An alternative display program control interface is created based on the reserved monitoring port, and the alternative display program control interface displays the video stream resource of the target display output port specified by the control instruction based on the received control instruction.
6. A display control system for multiple display output ports, characterized in that: include: The port configuration module is used to configure the status and protocol of the multi-channel display output ports of the board; An information acquisition module, used to acquire basic parameters of each display output port by reflecting and calling a system-level object, wherein the basic parameters include a port identity code, an output resolution, a display direction, and a list of supported resolutions; A resource matching module, used to obtain video stream resources and resolution requirements of the video stream resources, and match display output ports for the video stream based on the resolution requirements of the video stream resources; The display management module is used to create a custom display class, transfer the video stream resources to the display device corresponding to the matching display output port, and configure the display layout of the video stream resources.
7. The system according to claim 6, characterized in that The port configuration module includes: A port identification unit, used for identifying multiple display output ports supported by the system board; The configuration compiling unit is used to compile configuration data using a device tree structure, and to set state attributes and transmission protocols of a plurality of display output ports in the configuration data.
8. The system according to claim 7, characterized in that The configuration data includes: One display output port is reserved as a monitoring port, and a data conversion module is configured for the monitoring port, and the data conversion module converts the data of the mobile industry processor interface protocol into the data of the full digital video and sound transmission protocol; Set the enabled or disabled state of the display output ports other than the monitoring port according to the requirements, and configure the data conversion module for the enabled display output ports; Based on the resolution supported by the display output port, a matching number of layers is configured for the display output port.
9. A terminal, characterized in that: include: A memory, used for storing a different display control program of a multi-channel display output port; A processor is used to implement the steps of the method for controlling the different display of multiple display output ports as claimed in any one of claims 1 to 5 when executing the different display control program of the multiple display output ports.
10. A computer-readable storage medium storing a computer program, characterized in that: The readable storage medium stores a display control program for multiple display output ports, and when the display control program for multiple display output ports is executed by a processor, the steps of the display control method for multiple display output ports as described in any one of claims 1 to 5 are implemented.