Multi-screen display method and device, related medium and vehicle
By performing authorization verification and rendering management of the display process in a single-host multi-display screen scenario, the problem of poor isolation of the display process is solved, data stability and isolation are improved, and the user experience is improved.
Patent Information
- Application Number
- CN202311638911.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-11-30
AI Technical Summary
In a single-host multi-display screen scenario, the isolation of the display process is poor, causing data stability and security to be affected.
By performing authorization verification for the display process in each application running environment, it is ensured that only authorized display processes can call rendering resources, and the direct rendering manager is used for rendering processing to achieve isolation of each display screen.
It improves the stability and isolation of the corresponding display data on each display screen, ensures the normal progress of the data rendering process, and improves the user experience.
Smart Images

Figure CN118535112A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a multi-screen display method, device, related media and vehicle. Background Art
[0002] With the popularization of intelligent automobile technology and the rapid development of smart cockpits, there are more and more display screens in car cockpits. At present, in the use scenario of single host and multiple display screens, the layer (Layer) generated in SurfaceFlinger can classify the data into the content that needs to be displayed on different display screens. However, these display screens are all based on the same display process to process the display content. When the display content on one of the display screens causes the display process to be abnormal, it will affect the display effect of other display screens. There is a problem of poor isolation of the display process, which has adverse effects on data stability and security. Summary of the invention
[0003] One purpose of the present application is to provide a multi-screen display method, device, related medium and vehicle, which can improve the isolation of display processes corresponding to each display screen, thereby ensuring the stability of display data corresponding to each display screen.
[0004] In a first aspect, an embodiment of the present application provides a multi-screen display method, which is applied to a single-host display system, where the single-host display system may include multiple application running environments, and the method may include:
[0005] For any application running environment, display data is synthesized based on the authorized display process corresponding to the application running environment to obtain image data to be displayed;
[0006] The direct rendering manager is called to render the image data to be displayed in the application running environment, so as to display it on the display screen corresponding to the application running environment.
[0007] In a possible implementation, each application runtime environment is a container system to achieve isolation of the application runtime environment.
[0008] In another possible implementation, any application execution environment may include display synthesis process;
[0009] Before synthesizing display data based on the authorized display process corresponding to the application running environment to obtain image data to be displayed, the method may further include:
[0010] An authorization check is performed on the display composition process to determine that the display composition process is an authorized display process corresponding to the application running environment when the check passes, and the authorized display process has the rendering resource calling permission.
[0011] In another possible implementation, performing authorization verification on the display synthesis process may include:
[0012] The display compositing process sends an authorization request to the direct rendering manager;
[0013] The direct rendering manager determines the permissions for the display composition process based on the authorization request.
[0014] In another possible implementation, the authorization request may include identification information of the display synthesis process and identity information of the target display screen.
[0015] In another possible implementation, the direct rendering manager determines the permission of the display composition process according to the authorization request, which may include:
[0016] When the direct rendering manager determines that the display resource corresponding to the target display screen exists and the identification information of the display synthesis process matches the identification information of the preset display process of the target display screen, the display synthesis process is determined to be an authorized display process.
[0017] In another possible implementation, the method may further include:
[0018] When the direct rendering manager determines that the display resource corresponding to the target display screen does not exist, or the identification information of the display synthesis process does not match the identification information of the preset display process of the target display screen, the authorization check is terminated.
[0019] In another possible implementation, each application runtime environment may include an authorization display process, and for all authorization display processes corresponding to all application runtime environments, all authorization display processes may include a first authorization display process and at least one second authorization display process, wherein the first authorization display process is the first process to pass the direct renderer authorization check.
[0020] In another possible implementation, the first authorized display process has more rendering resource calling permissions than the second authorized display process.
[0021] In another possible implementation, any application running environment may include multiple image data corresponding to multiple application programs;
[0022] The display data synthesis based on the authorized display process corresponding to the application running environment to obtain the image data to be displayed may include:
[0023] The plurality of image data are synthesized into image data to be displayed by utilizing the authorized display process corresponding to the application running environment.
[0024] In a second aspect, an embodiment of the present application provides a multi-screen display device, which is applied to a single-host display system, and the single-host display system may include multiple application running environments. The device may include:
[0025] The application module can be used to synthesize display data for any application running environment based on the authorized display process corresponding to the application running environment to obtain image data to be displayed;
[0026] The rendering module can be used to call the direct rendering manager to render the image data to be displayed in the application running environment so as to display it on the display screen corresponding to the application running environment.
[0027] In a possible implementation, each application runtime environment is a container system to achieve isolation of the application runtime environment.
[0028] In another possible implementation, any application execution environment may include display synthesis process;
[0029] The device may further include: a verification module;
[0030] The verification module can be used to perform authorization verification on the display synthesis process, so as to determine that the display synthesis process is an authorized display process corresponding to the application running environment when the verification passes, and the authorized display process has the rendering resource calling permission.
[0031] In another possible implementation, the device may further include:
[0032] The rendering module can also be used to send authorization requests to the direct rendering manager;
[0033] The verification module can also be used to determine the authority to display the synthesis process based on the authorization request.
[0034] In another possible implementation, the authorization request may include identification information of the display synthesis process and identity information of the target display screen.
[0035] In another possible implementation, the device may further include:
[0036] The verification module can also be used to determine that the display synthesis process is an authorized display process when the direct rendering manager determines that the display resources corresponding to the target display screen exist and the identification information of the display synthesis process matches the identification information of the preset display process of the target display screen.
[0037] In another possible implementation, the method may further include:
[0038] The verification module can also be used to terminate the authorization verification when the direct rendering manager determines that the display resources corresponding to the target display screen do not exist, or the identification information of the display synthesis process does not match the identification information of the preset display process of the target display screen.
[0039] In another possible implementation, each application runtime environment may include an authorization display process, and for all authorization display processes corresponding to all application runtime environments, all authorization display processes may include a first authorization display process and at least one second authorization display process, wherein the first authorization display process is the first process to pass the direct renderer authorization check.
[0040] In another possible implementation, the first authorized display process has more rendering resource calling permissions than the second authorized display process.
[0041] In another possible implementation, any application running environment may include multiple image data corresponding to multiple application programs;
[0042] The device may further include: a computing module;
[0043] The calculation module can be used to synthesize multiple image data into image data to be displayed by using the authorized display process corresponding to the application running environment.
[0044] Preset Display Process Preset Display Process In a third aspect, an embodiment of the present application provides a multi-screen display device, which may include the following parts: a processor, a memory, and a bus;
[0045] The processor and the memory are connected via a bus, wherein the memory is used to store a set of program codes, and the processor is used to call the program codes stored in the memory to execute the method described in the first aspect.
[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including:
[0047] The computer-readable storage medium stores instructions, which, when executed on a computer, implement the method described in the first aspect.
[0048] In a fifth aspect, an embodiment of the present application provides a vehicle, which may include a multi-screen display device as described in the second aspect or the third aspect and a computer-readable storage medium as described in the fourth aspect.
[0049] It can be seen that the present application can allocate corresponding display screens to different application running environments, and each application running environment will use its own authorized display process to render the display image data, which helps to improve the isolation of display processes corresponding to different display screens, thereby improving the stability of display data corresponding to each display screen, and the embodiment method of the present application can be applied to a variety of system platforms, can meet the user's various operation needs, and improve the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 A schematic diagram of the architecture of a single-host display system provided in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of a multi-screen display method provided in an embodiment of the present application;
[0053] Figure 3 A flowchart of a method for displaying a synthesis process to obtain resource calling authority provided by an embodiment of the present application;
[0054] Figure 4 A schematic diagram of a permission verification process provided in an embodiment of the present application;
[0055] Figure 5 A multi-screen display device provided in an embodiment of the present application;
[0056] Figure 6 Another multi-screen display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0059] Reference to "embodiments" herein means that a particular feature, result, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0060] In order to better understand the technical solution of the embodiment of the present application, the single host display system that may be involved in the embodiment of the present application is first introduced. Figure 1 , a schematic diagram of the architecture of a single host display system provided in an embodiment of the present application. The single host display system may include multiple application running environments (such as Figure 1 The first application runtime environment 1, the second application runtime environment 2 and the third application runtime environment 3 in the embodiment of the present invention are provided, the application layer code library (libdrm library) 110 and the direct rendering manager (Direct Rendering Manager, DRM) 120 to drive multiple display screens (such as Figure 1 The first display screen 1, the second display screen 2 and the third display screen 3) are used to display images.
[0061] Among them, each application running environment includes an application set and an authorization display process. For example, the first application running environment 1 may include the first application set 1 and the first authorization display process 1, the second application running environment 2 may include the second application set 2 and the second authorization display process 2, and the third application running environment 3 may include the third application set 3 and the third authorization display process 3. Each application set may include multiple applications. It should be noted that the number of applications included in each application set is not limited here. Furthermore, each authorization display process will be in the namespace (Namespace) and / or control groups (Control groups, C groups) in its corresponding application running environment. Figure 1 Each authorized display process in can send an authorization request to the direct rendering manager 120 (such as Figure 1The first authorization request 1, the second authorization request 2, and the third authorization request 3) in order to obtain the corresponding rendering resource calling permission (such as Figure 1 The first rendering resource calling permission 1, the second rendering resource calling permission 2 and the third rendering resource calling permission 3) are obtained, and the rendering resource calling permissions are used to indirectly obtain the rendering resources of the direct rendering manager 120 through the libdrm library 110.
[0062] The display screen is the I / O device of the computer, that is, the output device. It is a display tool that can display certain electronic files on the screen through a specific transmission device. According to different display technologies, display screens can be divided into cathode ray tube (CRT) display screens, plasma (PDP) display screens, liquid crystal (LCD) display screens, organic light emitting diode (OLED) display screens and micro light emitting diode (MicroLED) display screens; according to different shapes, display screens can be divided into flat display screens, curved display screens and 3D display screens; according to different application scenarios, display screens can be divided into game display screens, office display screens and art design display screens.
[0063] The direct rendering manager 120 is a display driver framework of the Linux operating system kernel layer, which may include: Figure 1 The display output context (CRTC) (such as the first CRTC1211, the second CRTC1212 and the third CRTC1213), layers (Planes) (such as the first Planes1221, the second Planes1222 and the third Planes1223), encoders (Encoders) (such as the first Encoder1231, the second Encoder1232 and the third Encoder1233) and connectors (connectors) (such as the first connector1241, the second connector1242 and the third connector1243) and other rendering resources. Among them, CRTC can read the pixel data in the scan buffer and generate a video mode timing signal therefrom with the help of a phase locked loop (PLL) circuit. The canvas (Framebuffer) address is connected internally and the Encoder is connected externally. CRTC scans the content on the Framebuffer, and after superimposing the content of the Planes, transmits it to the Encoder.
[0064] Planes are memory addresses like Framebuffer. There can be multiple Planes. The picture (image) finally provided to CRTC for scanning is actually often a combination of Framebuffer and Planes.
[0065] Encoder can encode (or convert) the pixels in the memory into the signals required by the display screen. The interaction between it and CRTC can be called modesetting, which includes display information such as color mode, image size and image display timing.
[0066] Connector will connect a physical display output device (such as VGA, DVI, FPD-Link, HDMI, DisplayPort or S-Video, etc., corresponding to the display screen in the embodiment of the present application) and store information related to the currently physically connected display output device (such as connection status, EDID data, DPMS status or supported video formats).
[0067] Furthermore, there may be a libdrm library 110 between the authorized display process and the direct rendering manager, and the libdrm library 110 may be used to encapsulate the rendering resource interface provided by the direct rendering manager. The authorized display process may indirectly call the rendering resources of the direct rendering manager through the libdrm library.
[0068] Next, combine Figure 2-Figure 3 The method involved in the embodiments of the present application is described in detail.
[0069] See also Figure 2 , is a flow chart of a multi-screen display method provided in an embodiment of the present application, which is applied to a single-host display system, and the single-host display system may include multiple application running environments;
[0070] The method may include the following steps:
[0071] S201 , for any of the application running environments, synthesizing display data based on an authorized display process corresponding to the application running environment to obtain image data to be displayed.
[0072] The display data may be the corresponding display data of the image information acquired by the application in the application running environment, or the corresponding display data of the page presented to the user by the application in the application running environment. For example, when the application in the application running environment is a camera, the display data may be the corresponding display data of the image taken by the user; when the application in the application running environment is a chat software, the display data may be the corresponding display data of the login interface of the chat software, the corresponding display data of the chat box page, the corresponding display data of the chat list page, or the corresponding display data of the contact page, etc.
[0073] Optionally, the single-host display system may also include multiple display screens and a direct rendering manager, each of the multiple application running environments corresponds to one of the multiple display screens, each application running environment may include an application set and an authorized display process, and each application set may include one or more applications.
[0074] In a possible implementation, each application runtime environment is a container system to achieve isolation of the application runtime environment.
[0075] Exemplarily, each application running environment is a Linux container system (LXC), and multiple systems are implemented through Namespace and Cgroup.
[0076] In another possible implementation, any application runtime environment may include a display composition process (HWC, Hardware Composer);
[0077] Before synthesizing display data based on the authorized display process corresponding to the application running environment to obtain image data to be displayed, the method may further include:
[0078] An authorization check is performed on the display composition process to determine that the display composition process is an authorized display process corresponding to the application running environment when the check passes, and the authorized display process has the rendering resource calling permission.
[0079] The specific authorization verification process can be found in Figure 3 And related embodiment contents.
[0080] S202: Call a direct rendering manager to render the image data to be displayed in the application running environment, so as to display the image data on a display screen corresponding to the application running environment.
[0081] Exemplarily, the authorized display process can send the rendered image data to the display screen corresponding to the application running environment through the connector interface in the direct rendering manager, such as Figure 1The first display screen 1 corresponds to the first application running environment 1.
[0082] In another possible implementation, any application running environment may include multiple image data corresponding to multiple application programs;
[0083] The display data synthesis based on the authorized display process corresponding to the application running environment to obtain the image data to be displayed may include:
[0084] The plurality of image data are synthesized into image data to be displayed by utilizing the authorized display process corresponding to the application running environment.
[0085] Specifically, the display data may include multiple image layers (corresponding to the multiple image data mentioned above), and the multiple image layers need to be integrated into a complete image data through the layer synthesis resources of the direct rendering manager, and the format of the complete image data needs to be adjusted according to the display requirements of the display screen corresponding to the application running environment (such as color mode and / or resolution of the display screen, etc.), and finally the image data to be displayed can be obtained.
[0086] It can be seen that the embodiments of the present application can isolate the rendering operations of the display data corresponding to each application running environment and display screen, which helps to ensure that each display screen can normally present the target image data, and can also ensure that the rendering process of the display data of each application in each application running environment is carried out normally, thereby improving the data display stability of each display screen and further improving the user experience.
[0087] For further information, see Figure 3 , is a flow chart of a method for a display synthesis process to obtain rendering resource calling permissions provided by an embodiment of the present application, wherein any application running environment may include a display synthesis process;
[0088] The method may include the following steps:
[0089] S301, the display composition process sends an authorization request to the direct rendering manager.
[0090] In another possible implementation, the authorization request may include identification information of the display synthesis process and identity information of the target display screen.
[0091] The target display screen is a display screen where the application set corresponding to the application running environment is expected to present image data. The identity information of the target display screen may include the sequence number information of the target display screen in the above-mentioned multiple display screens.
[0092] Exemplarily, assuming that there are a first display synthesis process 1 (identification information is com.xxx.yyy::111), a second display synthesis process 2 (identification information is com.xxx.yyy::112) and a third display synthesis process 3 (identification information is com.xxx.yyy::113) in the first application running environment, and the sequence number information of the target display screen is 1, if the first application set corresponding to the first application running environment is expected to present image data on the target display screen, an authorization request similar to token = "displayId = 1 &&processName = com.xxx.yyy::111" can be generated, where the display ID is 1. layId is used to specify the serial number information of the target display screen, displayId=1 represents the display screen with serial number 1, processName is used to specify the identification information of the display synthesis process that is expected to apply for the rendering resource calling permission of the direct rendering manager, processName=com.xxx.yyy::111 represents the display synthesis process with identification information com.xxx.yyy::111. It can be understood that the meaning of this authorization application is "the display synthesis process with identification information com.xxx.yyy::111 is expected to transmit the image data corresponding to the first application set in the first application running environment to the display screen with serial number 1."
[0093] S302: The direct rendering manager determines the authority to display the synthesis process according to the authorization request.
[0094] It should be noted that before the direct rendering manager determines the permissions of the display synthesis process according to the authorization request, it is necessary to establish an association relationship between the display synthesis process in the application running environment and the display screen corresponding to the application running environment. The display screen corresponding to the application running environment will confirm the display synthesis process with which it has an association relationship as a preset display process, and save the identification information of the display synthesis process in the process whitelist. More importantly, the step of establishing the association relationship can be set by the staff before the single-host display system is put into use, and the user can also customize the preset display process of each display screen. Exemplarily, if the first display synthesis process (identification information is com.xxx.yyy::111) in the existing first application running environment has an association relationship with the first display screen corresponding to the first application running environment, the first display screen will identify the first display synthesis process as a preset display process, and save the identification information com.xxx.yyy::111 in the process whitelist.
[0095] In another possible implementation, the direct rendering manager determines the permission of the display composition process according to the authorization request, which may include:
[0096] When the direct rendering manager determines that the display resource corresponding to the target display screen exists and the identification information of the display synthesis process matches the identification information of the preset display process of the target display screen, the display synthesis process is determined to be an authorized display process.
[0097] In another possible implementation, the method may further include:
[0098] When the direct rendering manager determines that the display resource corresponding to the target display screen does not exist, or the identification information of the display synthesis process does not match the identification information of the preset display process of the target display screen, the authorization check is terminated.
[0099] For example, it is assumed that there are a first display screen 1 (the preset display process is the fourth display synthesis process 4, the identification information of the fourth display synthesis process 4 is com.xxx.yyy::114, and the fourth display synthesis process 4 belongs to the fourth application running environment 4), a second display screen 2 (the preset display process is the fifth display synthesis process 5, the identification information of the fifth display synthesis process 5 is com.xxx.yyy::115, and the fifth display synthesis process 5 belongs to the fifth application running environment 5) and a third display screen 3 (the preset display process is the sixth display synthesis process 6, the identification information of the sixth display synthesis process 6 is com.xxx.yyy::115, and the fifth display synthesis process 5 belongs to the fifth application running environment 5). xxx.yyy::116, the sixth display synthesis process 6 belongs to the sixth application running environment 6), if the authorization request generated by the sixth display synthesis process 6 is token = "displayId = 3 &&processName = com.xxx.yyy::116", first confirm that there is a display screen with serial number 3, and the display synthesis process with identification information com.xxx.yyy::116 is the preset display process of the third display screen 3, so the authorization request of the sixth display synthesis process 6 is considered to be legal, and the rendering resource for the direct rendering manager is issued to the sixth display synthesis process 6. The rendering resource calling permission of the source can further confirm that the sixth display synthesis process 6 is the authorized display process of the sixth application running environment 6, and the third display screen 3 is the display screen that the sixth application running environment 6 is expected to present the corresponding application set image data; if the authorization request generated by the fifth display synthesis process 5 is token = "displayId = 6 &&processName = com.xxx.yyy::115", first confirm that there is no display screen with serial number 6, then the authorization check on token = "displayId = 6 &&processName = com.xxx.yyy::115" can be terminated; if the authorization request generated by the fifth display synthesis process 5 is token = "displayId = 3 &&processName = com.xxx.yyy::115", first confirm that there is a display screen with serial number 3, but the display synthesis process with identification information com.xxx.yyy::115 is not the preset display process of the third display screen 3, then the authorization check on token = "displayId = 6 &&processName = com.xxx.yyy::115" can be terminated.
[0100] In another possible implementation, each application runtime environment may include an authorization display process, and for all authorization display processes corresponding to all application runtime environments, all authorization display processes may include a first authorization display process and at least one second authorization display process, wherein the first authorization display process is the first process to pass the direct renderer authorization check.
[0101] In another possible implementation, the first authorized display process has more rendering resource calling permissions than the second authorized display process.
[0102] Exemplarily, multiple application runtime environments in a single-host display system all have their own authorized display processes, but there is a sequence of time nodes when these authorized display processes obtain rendering resource call permissions from the direct rendering manager. Among them, the first process that passes the authorization check of the direct rendering manager can be regarded as the first authorized display process, and other authorized display processes can be regarded as the second authorized display process. The first authorized display process can have DRM-Master permissions, and the second authorized display process can have DRM-Auth permissions. The rendering resource interface of the direct rendering manager corresponding to the DRM-Master permission is more than the rendering resource interface of the direct rendering manager corresponding to the DRM-Auth permission. The specific permission differences can refer to the prior art about the permission differences between DRM-Master and DRM-Auth, which will not be repeated here. Possibly, the direct rendering manager also needs to determine whether the instruction of the authorized display process to call the rendering resource is within the scope of the rendering resource call permission owned by the authorized display process. If it is within the scope of the rendering resource call permission, the authorized display process is allowed to call the corresponding rendering resource; if it is not within the scope of the rendering resource call permission, the resource call request of the authorized display process is rejected.
[0103] Exemplarily, assuming that the existing sixth display synthesis process 6, seventh display synthesis process 7, eighth display synthesis process 8 and ninth display synthesis process 9 have the rendering resource calling permission of the direct rendering manager, the order in which the direct rendering manager issues the rendering resource calling permission is: eighth display synthesis process 8→ninth display synthesis process 9→sixth display synthesis process 6→seventh display synthesis process 7, then the eighth display synthesis process 8 has DRM-Master permission, and the sixth display synthesis process 6, the seventh display synthesis process 7 and the ninth display synthesis process 9 all have DRM-Auth permission.
[0104] It should be noted that in the embodiment of the present application, each application running environment will include an authorized display process, and the display data of all applications in each application running environment will be rendered by the authorized display process in the application running environment. Possibly, each time the vehicle (or application running environment) is started, the authorized display process will send authorization permissions to the direct rendering manager, and the direct rendering manager will also verify the authorization request of the authorized display process; or after the direct rendering manager verifies the permissions of each display process, each display process (or authorized display process) will always maintain the same authorization status. The specific permission verification process can be referred to. Figure 3 Corresponding content.
[0105] It can be seen that the method of the embodiment of the present application can determine whether the authorization request of each display process is legal based on the identity information of the existing display screen and the preset display process of the display screen, which helps to reduce the communication interaction between the processes, thereby improving the efficiency of the direct rendering manager to verify the authorization request of the display process. The method of the embodiment of the present application can also issue different rendering resource calling permissions to the display process according to the order in which the display process obtains the rendering resource calling permission, which helps to improve the security of the display data corresponding to each application running environment.
[0106] For example, see Figure 4 , is a schematic diagram of a permission verification process provided by an embodiment of the present application. The permission verification process may be as follows:
[0107] For display compositing progress, you can have:
[0108] S401, generating an authorization request according to the identity information of the target display screen and its own identification information.
[0109] S402: Send an authorization request to the direct rendering manager.
[0110] For direct rendering managers, you can have:
[0111] S403: Determine whether the identity information of the target display screen in the authorization request matches the identity information of the existing display screen.
[0112] If the identity information of the target display screen does not match the identity information of the existing display screen, then S404 considers that the authorization request for the display synthesis process is illegal, and rejects the authorization request for the display synthesis process.
[0113] If the identity information of the target display screen matches the identity information of the existing display screen, then S405 determines whether the display synthesis process is a preset display process of the target display screen.
[0114] If the display synthesis process is not the preset display process of the target display screen, then S406 considers the authorization request of the display synthesis process to be illegal, and rejects the authorization request of the display synthesis process.
[0115] If the display synthesis process is the preset display process of the target display screen, then S407 determines whether the display synthesis process is the first display process to which the direct rendering manager issues rendering resource calling authority.
[0116] If the display composition process is the first display process to which the direct rendering manager issues rendering resource calling permissions, S408 issues DRM-Master permissions to the display composition process.
[0117] If the display composition process is not the first display process to which the direct rendering manager issues rendering resource calling permissions, S409 issues DRM-Auth permissions to the display composition process.
[0118] The device involved in the embodiment of the present application is described below with reference to the accompanying drawings.
[0119] See also Figure 5 , a multi-screen display device provided in an embodiment of the present application, the device may be included in a single host display system, the single host display system may include multiple application running environments, the device may include: an application module 501 and a rendering module 502;
[0120] Optionally, the single-host display system may also include multiple display screens and a direct rendering manager, each of the multiple application running environments corresponds to one of the multiple display screens, each application running environment may include an application set and an authorized display process, and each application set may include one or more applications.
[0121] The application module 501 can be used to synthesize display data for any application running environment based on the authorized display process corresponding to the application running environment to obtain image data to be displayed;
[0122] The rendering module 502 may be used to call the direct rendering manager to render the image data to be displayed in the application running environment, so as to display the image data in the display screen corresponding to the application running environment.
[0123] In a possible implementation, each application runtime environment is a container system to achieve isolation of the application runtime environment.
[0124] In another possible implementation, any application execution environment may include display synthesis process;
[0125] The device may further include: a verification module 503;
[0126] The verification module 503 may be used to perform authorization verification on the display synthesis process, so as to determine that the display synthesis process is an authorized display process corresponding to the application running environment when the verification passes, and the authorized display process has the rendering resource calling permission.
[0127] In another possible implementation, the device may further include:
[0128] The rendering module 502 may also be used to send an authorization request to the direct rendering manager;
[0129] The verification module 503 may also be used to determine the authority to display the synthesis process according to the authorization request.
[0130] In another possible implementation, the authorization request may include identification information of the display synthesis process and identity information of the target display screen.
[0131] In another possible implementation, the device may further include:
[0132] The verification module 503 can also be used to determine that the display synthesis process is an authorized display process when the direct rendering manager determines that the display resources corresponding to the target display screen exist and the identification information of the display synthesis process matches the identification information of the preset display process of the target display screen.
[0133] In another possible implementation, the method may further include:
[0134] The verification module 503 may also be used to terminate the authorization verification when the direct rendering manager determines that the display resource corresponding to the target display screen does not exist, or the identification information of the display synthesis process does not match the identification information of the preset display process of the target display screen.
[0135] In another possible implementation, each application runtime environment may include an authorization display process, and for all authorization display processes corresponding to all application runtime environments, all authorization display processes may include a first authorization display process and at least one second authorization display process, wherein the first authorization display process is the first process to pass the direct renderer authorization check.
[0136] In another possible implementation, the first authorized display process has more rendering resource calling permissions than the second authorized display process.
[0137] In another possible implementation, any application running environment may include multiple image data corresponding to multiple application programs;
[0138] In another possible implementation, the application module 501 may also be used to synthesize multiple image data into image data to be displayed by utilizing the authorized display process corresponding to the application running environment.
[0139] See also Figure 6 , is a schematic diagram of another multi-screen display device provided in an embodiment of the present application, and the device may include:
[0140] The processor 610, the memory 620 and the I / O interface 630 can be connected to each other in a communicative manner. The memory 620 is used to store instructions, and the processor 610 is used to execute the instructions stored in the memory 620 to implement the above Figure 2 and Figure 3 The corresponding method steps.
[0141] The processor 610 is used to execute the instructions stored in the memory 620 to control the I / O interface 630 to receive and send signals and complete the steps in the above method. The memory 620 can be integrated in the processor 610 or can be set separately from the processor 610.
[0142] The memory 620 may also include a storage system 621, a cache 622, and a RAM 623. The cache 622 is a primary memory between the RAM 623 and the CPU, which is composed of a static memory chip (SRAM). It has a relatively small capacity but a much higher speed than the main memory, close to the speed of the CPU; the RAM 623 is an internal memory that directly exchanges data with the CPU, which can be read and written at any time (except when refreshed), and has a very high speed. It is usually used as a temporary data storage medium for the operating system or other running programs. The three are combined to realize the functions of the memory 620.
[0143] As an implementation, the function of the I / O interface 630 may be implemented by a transceiver circuit or a dedicated transceiver chip. The processor 610 may be implemented by a dedicated processing chip, a processing circuit, a processor or a general-purpose chip.
[0144] As another implementation method, it is possible to use a general-purpose computer to implement the device provided in the embodiment of the present application. That is, the program code that implements the functions of the processor 610 and the I / O interface 630 is stored in the memory 620, and the general-purpose processor implements the functions of the processor 610 and the I / O interface 630 by executing the code in the memory 620.
[0145] For the concepts, explanations, detailed descriptions and other steps involved in the device and related to the technical solutions provided in the embodiments of the present application, please refer to the description of the method steps performed by the device in the aforementioned method or other embodiments, which will not be repeated here.
[0146] As another implementation of this embodiment, a computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed, the method in the above method embodiment is executed.
[0147] As another implementation of this embodiment, a computer program product including instructions is provided, and when the instructions are executed, the method in the above method embodiment is performed.
[0148] Those skilled in the art will appreciate that for ease of description, Figure 6 Only one memory and processor are shown. In an actual terminal or server, there may be multiple processors and memories. The memory may also be referred to as a storage medium or a storage device, etc., which is not limited in the embodiments of the present application.
[0149] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0150] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM).
[0151] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.
[0152] It should be noted that the memory described herein is intended to include, without being limited to, these and any other suitable types of memory.
[0153] In addition to the data bus, the bus may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are marked as buses in the figure.
[0154] It should also be understood that the first, second, third, fourth and various numerical numbers involved in this document are only distinctions made for the convenience of description and are not intended to limit the scope of the present application.
[0155] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0156] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0157] In various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0158] Those skilled in the art will appreciate that the various illustrative logical blocks (ILBs) and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0159] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0160] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0161] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0162] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0163] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement part or all of the steps of any multi-screen display method recorded in the above method embodiments.
[0164] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any multi-screen display method recorded in the above method embodiments.
[0165] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A multi-screen display method, characterized in that: The method is applied to a single-host display system, the single-host display system includes multiple application running environments, and the method includes: For any of the application running environments, synthesizing display data based on the authorized display process corresponding to the application running environment to obtain image data to be displayed; The direct rendering manager is called to render the image data to be displayed in the application running environment so as to display the image data in the display screen corresponding to the application running environment.
2. The method according to claim 1, characterized in that Each of the application operating environments is a container system to achieve isolation of the application operating environments.
3. The method according to claim 1 or 2, characterized in that: Any of the application operating environments includes display synthesis process; Before synthesizing display data based on the authorized display process corresponding to the application running environment to obtain image data to be displayed, the method further includes: An authorization check is performed on the display synthesis process to determine that the display synthesis process is an authorized display process corresponding to the application running environment when the check passes, and the authorized display process has rendering resource calling authority.
4. The method according to claim 3, characterized in that The performing authorization verification on the display synthesis process includes: The display composition process sends an authorization request to the direct rendering manager; The direct rendering manager determines permissions for the display composition process based on the authorization request.
5. The method according to claim 4, characterized in that The authorization request includes identification information of the display synthesis process and identity information of the target display screen.
6. The method according to claim 5, characterized in that The direct rendering manager determines the permission of the display synthesis process according to the authorization request, including: When the direct rendering manager determines that the display resource corresponding to the target display screen exists and the identification information of the display synthesis process matches the identification information of the preset display process of the target display screen, the display synthesis process is determined to be an authorized display process.
7. The method according to claim 6, characterized in that The method further comprises: When the direct rendering manager determines that the display resource corresponding to the target display screen does not exist, or the identification information of the display synthesis process does not match the identification information of the preset display process of the target display screen, the authorization check is terminated.
8. The method according to claim 7, characterized in that Each of the application running environments includes an authorization display process. For all the authorization display processes corresponding to all the application running environments, all the authorization display processes include a first authorization display process and at least one second authorization display process, wherein the first authorization display process is the first process to pass the direct renderer authorization check.
9. The method according to claim 8, characterized in that The first authorized display process has more rendering resource calling permissions than the second authorized display process.
10. The method according to claim 9, characterized in that Any of the application running environments includes a plurality of image data corresponding to a plurality of application programs; The step of synthesizing display data based on the authorized display process corresponding to the application running environment to obtain image data to be displayed includes: The plurality of image data are synthesized into image data to be displayed using an authorized display process corresponding to the application running environment.
11. A multi-screen display device, characterized in that: The device is applied to a single host display system, the single host display system includes multiple application running environments, and the device includes: An application module, configured to synthesize display data for any of the application running environments based on an authorized display process corresponding to the application running environment to obtain image data to be displayed; The rendering module is used to call the direct rendering manager to render the image data to be displayed in the application running environment so as to display it on the display screen corresponding to the application running environment.
12. A multi-screen display device, characterized in that: The device comprises: A processor, a memory and an I / O interface, wherein the processor, the memory and the I / O interface are communicatively connected, wherein the memory is used to store a set of program codes, and the processor is used to call the program codes stored in the memory to execute the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer readable storage medium comprises: The computer-readable storage medium stores instructions, which, when executed on a computer, implement the method according to any one of claims 1 to 10.
14. A vehicle, characterized in that: The vehicle includes the multi-screen display device according to claim 11 or 12 or the computer-readable storage medium according to claim 13.
Citation Information
Patent Citations
Source code generating device
CN101276277A
Data processing method of multiple operating systems and terminal equipment
CN104765623A
Multi-screen display method and device and storage medium
CN112328197A
Multi-screen synchronous display method and system, terminal equipment and storage medium
CN114845151A
Android isolation method based on namespace division
CN115774603A
Cited By
Multi-screen display method and apparatus, related medium and vehicle
WO2025113009A1
