Screen projection methods and devices, display chips, storage media

By creating layers in the display chip, the graphic data of the source display screen is transferred to the layers, parsed, and then sent to the target display screen, solving the problem of simultaneous display on multiple screens and realizing the synchronous display of content on multiple screens.

CN116204146BActive Publication Date: 2026-11-10IFLYTEK CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211634717.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-11-10
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

Current technology cannot achieve simultaneous display between multiple screens, especially for content sharing between the main screen and secondary screen in a car.

Method used

By creating layers in the display chip, the graphics data in the video memory area of ​​the source display is transferred to the layers, and the layer data is parsed and sent to the target display, thus achieving the effect of simultaneous display between multiple screens.

Benefits of technology

It achieves simultaneous display across multiple screens without affecting the original Android system display framework, and supports synchronized display of content across multiple screens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116204146B_ABST
    Figure CN116204146B_ABST
Patent Text Reader

Abstract

This application provides a screen projection method and apparatus, a display chip, and a storage medium, solving the problem of the inability to achieve simultaneous multi-screen display in the prior art. The screen projection method includes: acquiring a screen projection command, which includes a source display identifier and a target display identifier; creating a layer in response to the screen projection command; transferring first graphics data from a first video memory area corresponding to the source display identifier to the layer, wherein the correspondence between the source display identifier and the first video memory area is pre-stored in the display chip; parsing the first graphics data in the layer to obtain a first window view; and sending the first window view to the target display corresponding to the target display identifier.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display technology, specifically to a projection method and device, a display chip, and a storage medium. Background Technology

[0002] As cars become increasingly intelligent, they often have more than one screen. For example, there might be a main screen for the driver, a secondary screen for the front passenger, and a third screen for rear passengers.

[0003] Occasionally, the main screen needs to share its content with two other screens. This requires projecting the main screen onto the other two screens to achieve a brief multi-screen display effect. How to achieve multi-screen simultaneous display has become one of the technical problems that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] In view of this, embodiments of this application provide a screen projection method and device, a display chip, and a storage medium to solve the problem that multiple screens cannot be displayed simultaneously in the prior art.

[0005] The first aspect of this application provides a screen projection method for a display chip. The method includes: acquiring a screen projection command, the screen projection command including a source display identifier and a target display identifier; creating a layer in response to the screen projection command; transferring first graphics data in a first video memory area corresponding to the source display identifier to the layer, the correspondence between the source display identifier and the first video memory area being pre-stored in the display chip; parsing the first graphics data in the layer to obtain a first window view; and sending the first window view to the target display corresponding to the target display identifier.

[0006] A second aspect of this application provides a screen projection device for a display chip. The device includes: an acquisition module for acquiring a screen projection command, the screen projection command including a source display identifier and a target display identifier; a creation module for creating a layer in response to the screen projection command; a transfer module for transferring first graphics data in a first video memory area corresponding to the source display identifier to the layer, the correspondence between the source display identifier and the first video memory area being pre-stored in the display chip; a parsing module for parsing the first graphics data in the layer to obtain a first window view; and a sending module for sending the first window view to the target display corresponding to the target display identifier.

[0007] A third aspect of this application provides a display chip, including a memory, a processor, and a computer program stored in the memory and executed by the processor. When the processor executes the computer program, it implements the steps of the screen projection method provided in any of the above embodiments.

[0008] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the screen projection method provided in any of the above embodiments.

[0009] According to the screen casting method, apparatus, display chip, and storage medium provided in the embodiments of this application, a screen casting command is obtained, which includes a source display screen identifier and a target display screen identifier; a layer is created in response to the screen casting command; first graphics data in the first video memory area corresponding to the source display screen identifier is transferred to the layer, and the correspondence between the source display screen identifier and the first video memory area is pre-stored in the display chip; the first graphics data in the layer is parsed to obtain a first window view; and the first window view is sent to the target display screen corresponding to the target display screen identifier. According to the screen casting method, apparatus, display chip, and storage medium provided in the embodiments of this application, by creating a new layer, the layer acts as a bridge between the source display screen and the target display screen. First, the content in the first video memory area corresponding to the source display screen identifier is transferred to the layer, then the content in the layer is parsed to obtain a first window view, and then the window view is sent to the target display screen, thus achieving a simultaneous display effect between the source display screen and the target display screen. Attached Figure Description

[0010] Figure 1 This is a block diagram of the structure of a multi-screen system in related technologies.

[0011] Figure 2 for Figure 1 The diagram shows the startup process of a multi-screen system.

[0012] Figure 3 This is a flowchart illustrating the screen projection method provided in the first embodiment of this application.

[0013] Figure 4 This is a schematic diagram of the architecture of a multi-screen system provided in the first embodiment of this application.

[0014] Figure 5 This is a flowchart illustrating the screen projection method provided in the second embodiment of this application.

[0015] Figure 6 This is a flowchart illustrating the screen projection method provided in the third embodiment of this application.

[0016] Figure 7 This is a flowchart illustrating the screen projection method provided in the fourth embodiment of this application.

[0017] Figure 8 This is a schematic diagram of the architecture of a multi-screen system provided in the second embodiment of this application.

[0018] Figure 9 This is a flowchart illustrating the screen projection method provided in the fifth embodiment of this application.

[0019] Figure 10 This is a flowchart illustrating the screen projection method provided in the sixth embodiment of this application.

[0020] Figure 11 This is a structural block diagram of the projection device provided in the first embodiment of this application.

[0021] Figure 12 This is a structural block diagram of the projection device provided in the second embodiment of this application.

[0022] Figure 13 This is a structural block diagram of the projection device provided in the third embodiment of this application. Detailed Implementation

[0023] Figure 1 This is a block diagram of a multi-screen system in related technologies. For example... Figure 1 As shown, the multi-screen system 10 includes a display chip 11, video memory 12, and multiple displays 13. The video memory 12 and the multiple displays 13 are communicatively connected to the display chip 11. The video memory 12 can be integrated into the display chip 11 or set up separately.

[0024] Figure 2 for Figure 1 The diagram shows a flowchart of the multi-screen system startup process. Figure 2 As shown, the Android system startup process includes: Step S210, the Android system detects a display screen connection, creates a virtual screen, and obtains the corresponding video memory area for the virtual screen. The video memory area refers to a segment of storage space in the video memory 12. Step S220, the video memory area is associated with the display screen so that the display screen displays the content in the video memory area. It can be seen that each display screen in the multi-screen system 10 has a corresponding video memory area, and each display screen can typically only display the content in its corresponding video memory area.

[0025] The display chip 11 includes a processor 111 and an internal memory 112. The processor 111 may be a processing unit with data processing capabilities and / or instruction execution capabilities, such as a central processing unit (CPU). The internal memory 212 stores a computer program. When the processor 111 executes the computer program, it can implement the screen projection method provided in the embodiments of this application, so that multiple displays can display the same content simultaneously, realizing multi-screen simultaneous display.

[0026] At least one of the internal memory 112 and the video memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory includes random access memory (RAM) and / or cache memory, etc. Non-volatile memory includes read-only memory (ROM), hard disk, flash memory, etc.

[0027] Based on the aforementioned related technologies, the inventors conceived that if one display screen could display the content in the corresponding video memory area of ​​another display screen, the effect of simultaneous display on two screens could be achieved. In view of this, embodiments of this application provide a screen projection method and apparatus, a display chip, and a storage medium for use with the display chip. The screen projection method includes: obtaining a screen projection command, the screen projection command including a source display screen identifier and a target display screen identifier; creating a layer in response to the screen projection command; transferring first graphic data from a first video memory area corresponding to the source display screen identifier to the layer, the correspondence between the source display screen identifier and the first video memory area being pre-stored in the display chip; parsing the first graphic data in the layer to obtain a first window view; and sending the first window view to the target display screen corresponding to the target display screen identifier. According to the screen projection method and apparatus, display chip, and storage medium provided by embodiments of this application, by creating a new layer and using the layer as a bridge between the source display screen and the target display screen, the content in the first video memory area corresponding to the source display screen identifier is first transferred to the layer, then the content in the layer is parsed to obtain a first window view, and then the window view is sent to the target display screen, thus achieving the effect of simultaneous display between the source and target display screens.

[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0029] Figure 3 This is a flowchart illustrating the screen mirroring method provided in the first embodiment of this application. The screen mirroring method is used for... Figure 1 The display chip 11 in the multi-screen system shown. (As shown...) Figure 3 As shown, screen mirroring method 300 includes:

[0030] Step S310: Obtain the screen casting command, which includes the source display screen identifier and the target display screen identifier.

[0031] The source display identifier refers to the identifier of the source display screen. The target display identifier refers to the identifier of the target display screen. The source display screen is the data source, and according to the screen projection method provided in this embodiment, the content displayed on the source display screen can be projected onto the target display screen. The source display screen and the target display screen can be any two physical screens in a multi-screen system.

[0032] The screen casting command is triggered by the user. For example, the user clicks the screen casting button on the source display to issue the screen casting command; or the user clicks the screen casting button on the target display to issue the screen casting command; or the user issues the screen casting command through the voice control system.

[0033] In one example, when a user clicks the screen mirroring button, the Android application package (APK) captures the screen mirroring action and generates a screen mirroring command.

[0034] Step S320: Create a layer in response to the screen mirroring command.

[0035] Upon receiving a screen mirroring command, the display chip begins creating layers. In one embodiment, step S320 specifically involves creating a Texture View object, which includes layers, in response to the screen mirroring command. For example, upon receiving a screen mirroring command, the WindowManagerlmpl class of the WindowManager is triggered to call the addView interface to add a Texture View.

[0036] Texture View inherits from the View class, so it is essentially a View. However, unlike a regular View, it has its own canvas (Surface), and in the Surface Flinger (SF), there are layers. The rendering of this Surface can be done on a separate thread. But it also has drawbacks: its display is not controlled by the properties of the View, so it cannot perform transformations such as translation and scaling.

[0037] Step S330: Transfer the first graphics data in the first video memory area corresponding to the source display screen identifier to the layer. The video memory in a multi-screen system includes multiple video memory areas, each corresponding to a display screen. The correspondence between the display screens and the video memory areas is pre-stored in the display chip.

[0038] Step S340: parse the first graphic data in the layer, that is, render the first graphic data to obtain the first window view.

[0039] Step S350: Send the first window view to the target display screen corresponding to the target display screen identifier.

[0040] According to the screen casting method provided in this embodiment, a screen casting command is obtained, which includes a source display identifier and a target display identifier; a layer is created in response to the screen casting command; first graphics data in the first video memory area corresponding to the source display identifier is transferred to the layer, and the correspondence between the source display identifier and the first video memory area is pre-stored in the display chip; the first graphics data in the layer is parsed to obtain a first window view; and the first window view is sent to the target display corresponding to the target display identifier. It can be seen that by creating a new layer, using the layer as a bridge between the source display and the target display, the content in the first video memory area corresponding to the source display identifier is first transferred to the layer, then the content in the layer is parsed to obtain the first window view, and then the window view is sent to the target display, thus achieving the effect of simultaneous display between the source and target displays.

[0041] Figure 4 This is a schematic diagram of the architecture of a multi-screen system provided in the first embodiment of this application. (In conjunction with...) Figure 3 and Figure 4 As shown, the multi-screen system in the related technology includes multiple displays, and each display corresponds to a different video memory area. According to... Figure 3 The screen mirroring method shown involves creating a new layer 41 upon receiving a screen mirroring command, transferring the first graphic data from the first video memory area 43 corresponding to the source display screen 42 to layer 41, parsing the first graphic data in layer 41 to obtain a first window view, and sending the first window view to the target display screen 44, thereby achieving simultaneous display on both screens.

[0042] It should be understood that if three screens need to display simultaneously, the view of the first window can be sent to those three screens. If more than three screens need to display simultaneously, the view of the first window can be sent to those three or more screens.

[0043] Figure 5 This is a flowchart illustrating the screen mirroring method provided in the second embodiment of this application. The difference between screen mirroring method 500 and screen mirroring method 300 is that, before step S350, the following steps are also included:

[0044] Step S510: Parse the second graphics data in the second video memory area corresponding to the target display screen identifier to obtain the second window view.

[0045] See Figure 4 The target display screen is identified as the second video memory area 45. While parsing the first graphics data in layer 41, the second graphics data in the second video memory area 45 can also be parsed, and the two parsing processes can be executed in parallel.

[0046] Step S520: Combine the second window view with the first window view to obtain a combined window view, where the second window view is covered by the first window view.

[0047] The first window view obtained by parsing the first graphic data in layer 41 is combined with the second window view obtained by parsing the second graphic data in the second video memory area 45. That is, according to the corresponding numbers of the first window view and the second window view, the first window view is superimposed on the second window view so that the target display screen 44 displays the first window view, that is, the projection content.

[0048] In this case, step S350 is specifically executed as follows:

[0049] Step S530: Send the composite window view to the target display screen.

[0050] According to the screen casting method provided in this embodiment, the screen casting content is overlaid on the original content displayed on the target display screen 44 in the form of a layer. The screen casting process will not change the display flow from the second video memory area 45 to the target display screen 44. That is, the screen casting method will not damage the original display framework of the Android system and has no impact on the Android system.

[0051] Figure 6 This is a flowchart illustrating the screen mirroring method provided in the third embodiment of this application. The difference between screen mirroring method 600 and screen mirroring method 500 is that, after step S530, the following step is further included:

[0052] Step S610: Obtain the end casting command, which includes the target display screen identifier.

[0053] The command to end screen mirroring is triggered by the user. For example, the user clicks the end screen mirroring button on the source display to issue the command; or the user clicks the end screen mirroring button on the target display to issue the command; or the user issues the command to end screen mirroring through the voice control system.

[0054] In step S620, in response to the end casting command, the second window view is sent to the target display screen.

[0055] Upon receiving the command to end screen mirroring, the second window view is sent to the target display for display. That is, even if the first window view on the target display is closed, the target display directly shows the second window view. This enables switching between simultaneous and discrete dual-screen display.

[0056] In one embodiment, the screen projection method 600 further includes:

[0057] In step S630, in response to the end screen mirroring command, the layer and virtual screen are cleared.

[0058] Since layers and virtual screens require a significant amount of storage space, they can be cleared after the projection is complete.

[0059] It should be noted that in the case of multiple screens displaying simultaneously, if the command to end screen mirroring includes the identification information of all screens in the screen mirroring state, step S630 is executed. If the command to end screen mirroring only includes the identification information of some screens in the screen mirroring state, step S630 is not executed.

[0060] Figure 7 This is a flowchart illustrating the screen projection method provided in the fourth embodiment of this application. Figure 8 This is a schematic diagram of the architecture of a multi-screen system provided in the second embodiment of this application. (In conjunction with...) Figure 7 and Figure 8 As shown, the screen casting method 700 and the screen casting method provided in any of the above embodiments (using...) Figure 3 The difference in the screen projection method 300 shown (taking it as an example) is that, before step S330, it also includes:

[0061] Step S710: Create a virtual screen based on the first target attribute parameters corresponding to the source display screen identifier. The attribute parameters of the virtual screen are consistent with the first target attribute parameters.

[0062] The first target attribute parameters may include the source display screen's resolution, aspect ratio, etc. The display chip pre-stores the first target attribute parameters corresponding to the source display screen identifier. After receiving the projection command, the first target attribute parameters corresponding to the source display screen identifier in the projection command are determined, and a virtual screen 81 is created based on the first target attribute parameters, such as... Figure 8 As shown. For example, calling the Display Manager Service to create a virtual screen.

[0063] Step S720: Map the first graphic data onto the virtual screen to obtain a canvas view.

[0064] Continue reading Figure 8 The first graphics data in the first video memory area 43 is mapped to the virtual screen 81 to obtain the canvas view.

[0065] In this case, step S330 is specifically executed as follows:

[0066] Step S730: Add the canvas view to the layer.

[0067] Continue reading Figure 8 The canvas view in virtual screen 81 is added to layer 41. Then, steps S340 and S350 are executed to achieve simultaneous display on both screens.

[0068] According to the screen projection method provided in this embodiment, the first graphics data in the first video memory area 43 is transferred to the layer 41 using a virtual screen. The virtual screen technology itself is a conventional technology and is easy to implement.

[0069] Figure 9 This is a flowchart illustrating the screen projection method provided in the fifth embodiment of this application. Figure 9 As shown, the difference between screen mirroring method 900 and screen mirroring method 700 is that, after step S720, the following step is also included:

[0070] Step S910: Based on the second target attribute parameters corresponding to the target display screen identifier, image processing is performed on the canvas view to obtain the target view. The second target attribute parameters may include the resolution, aspect ratio, etc. of the target display screen. The image processing mentioned here may include rotation, scaling, etc., to make the size of the canvas view in the virtual screen 81 match the size of the target display screen 44.

[0071] In this case, step S730 is specifically executed as follows:

[0072] Step S920: Add the target view to the layer.

[0073] According to the screen projection method provided in this embodiment, before adding the canvas view in the virtual screen 81 to the layer 41, the canvas view is first processed to make the size of the canvas view match the size of the target display screen 44, so as to ensure the display effect and avoid the problem of size mismatch.

[0074] The screen projection method provided in this application embodiment is further described below using a vehicle infotainment system as an example. Figure 10 This is a flowchart illustrating the screen projection method provided in the sixth embodiment of this application. Figure 10 As shown, the execution process of screen mirroring method 1000 includes:

[0075] In step S1010, the user clicks the screen mirroring button on the source or target display screen. The Android application package (APK) captures the screen mirroring operation and generates a screen mirroring command. Based on the screen mirroring command, the CarService is invoked, which in turn invokes the screen mirroring service. The screen mirroring service can execute the screen mirroring method provided in any of the above embodiments.

[0076] In step S1020, the screen mirroring service calls SF to obtain the source display screen identifier and the target display screen identifier, and determines the address of the corresponding first video memory region based on the source display screen identifier.

[0077] In step S1030, the Display Manager Service is invoked to create a virtual screen, and the virtual screen is added to the Display Manager Service. Then, the address of the first video memory region is bound to the virtual screen.

[0078] Step S1040: The WindowManagerlmpl class is called, and the WindowManagerlmpl class calls the addView interface to add a Texture View. The address of the first video memory region is bound to the Texture View object. At this point, the correspondence between the first virtual video memory region, the virtual screen, and the Texture View object is established.

[0079] It should be noted that the execution of steps S1030 and S1040 is not sequential; they can be executed in parallel or sequentially.

[0080] In step S1050, the Display Manager Service binds the Texture View object to the address of the target display screen.

[0081] The following steps can be performed using the screen mirroring method provided in any of the above embodiments.

[0082] This application also provides a screen projection device for displaying chips. Figure 11 This is a structural block diagram of the projection device provided in the first embodiment of this application. Figure 11 As shown, the projection device 1100 includes an acquisition module 1110, a creation module 1120, a transfer module 1130, a parsing module 1140, and a sending module 1150. The acquisition module 1110 acquires projection commands, which include a source display identifier and a target display identifier. The creation module 1120 creates a layer in response to the projection command. The transfer module 1130 transfers first graphics data from the first video memory area corresponding to the source display identifier to the layer; the correspondence between the source display identifier and the first video memory area is pre-stored in the display chip. The parsing module 1140 parses the first graphics data in the layer to obtain a first window view. The sending module 1150 sends the first window view to the target display corresponding to the target display identifier.

[0083] In one embodiment, the creation module 1120 is specifically used to create a texture view object in response to a screen mirroring command. The texture view object includes layers.

[0084] According to the screen projection device provided in this embodiment, a screen projection command is obtained, which includes a source display screen identifier and a target display screen identifier; a layer is created in response to the screen projection command; first graphics data in the first video memory area corresponding to the source display screen identifier is transferred to the layer, and the correspondence between the source display screen identifier and the first video memory area is pre-stored in the display chip; the first graphics data in the layer is parsed to obtain a first window view; and the first window view is sent to the target display screen corresponding to the target display screen identifier. It can be seen that by creating a new layer, using the layer as a bridge between the source display screen and the target display screen, the content in the first video memory area corresponding to the source display screen identifier is first transferred to the layer, then the content in the layer is parsed to obtain the first window view, and then the window view is sent to the target display screen, thus achieving the effect of simultaneous display between the source display screen and the target display screen.

[0085] Figure 12 This is a structural block diagram of the projection device provided in the second embodiment of this application. Figure 12 As shown, the projection device 1200, based on the projection device 1100, further includes a compositing module 1210. Specifically, before the sending module 1150 sends the first window view to the target display screen corresponding to the target display screen identifier, the parsing module 1140 is further used to parse the second graphics data in the second video memory area corresponding to the target display screen identifier to obtain the second window view. The compositing module 1210 is used to combine the second window view with the first window view to obtain a composite window view, where the second window view is covered by the first window view. In this case, the sending module 1150 is specifically used to send the composite window view to the target display screen. According to the projection device provided in this embodiment, the projection content is overlaid on the content originally displayed on the target display screen 44 in the form of a layer. The projection process does not change the display flow from the second video memory area 45 to the target display screen 44, that is, the projection device does not damage the original display framework of the Android system and has no impact on the Android system.

[0086] Furthermore, in one embodiment, the acquisition module 1110 is also used to acquire a screen mirroring termination command, which includes a target display screen identifier. The sending module 1150 is also used to send the second window view to the target display screen in response to the screen mirroring termination command. According to the screen mirroring device provided in this embodiment, after acquiring the screen mirroring termination command, the second window view is sent to the target display screen for display. That is, when the first window view on the target display screen is closed, the target display screen directly displays the second window view. In this way, the switching between simultaneous display of two screens and different display of two screens is realized.

[0087] Furthermore, in one embodiment, the screen mirroring device 1200 also includes a clearing module 1220, used to clear the layer and virtual screen in response to a screen mirroring termination command. Since the layer and virtual screen require a large amount of storage space, they can be cleared after screen mirroring ends.

[0088] Figure 13 This is a structural block diagram of the projection device provided in the third embodiment of this application. Figure 13 As shown, the projection device 1300 and the projection device 1200 provided in any of the above embodiments (with...) Figure 12 The difference (taking the screen projection device 1200 shown as an example) lies in that the transfer module 1130 includes a mapping module 1310 and an adding module 1320. Specifically, the display chip also pre-stores the first target attribute parameters corresponding to the source display identifier. Before the transfer module 1130 transfers the first graphic data in the first video memory area corresponding to the source display identifier to the layer, the creation module 1120 is also used to create a virtual screen based on the first target attribute parameters corresponding to the source display identifier. The attribute parameters of the virtual screen are consistent with the first target attribute parameters. The mapping module 1310 is used to map the first graphic data to the virtual screen to obtain a canvas view. The adding module 1320 is used to add the canvas view to the layer. According to the screen projection device provided in this embodiment, the transfer of the first graphic data in the first video memory area to the layer is realized using a virtual screen. The virtual screen technology itself is a mature technology and is easy to implement.

[0089] In one embodiment, such as Figure 13 As shown, the transfer module 1130 also includes a processing module 1330. After the mapping module 1310 maps the first graphic data to the virtual screen to obtain a canvas view, the processing module 1330 performs image processing on the canvas view based on the second target attribute parameters corresponding to the target display screen identifier to obtain a target view. The adding module 1320 is used to add the target view to the layer. According to the projection device provided in this embodiment, before adding the canvas view in the virtual screen 81 to the layer 41, the canvas view is first processed to make the size of the canvas view match the size of the target display screen 44, ensuring the display effect and avoiding the problem of size mismatch.

[0090] This application also provides a computer-readable storage medium storing a computer program thereon, characterized in that the computer program, when executed by a processor, implements the steps of the screen projection method provided in any of the above embodiments.

[0091] Computer-readable storage media can take the form of any combination of one or more readable media. A readable storage medium can be any of the following forms: electrical, magnetic, optical, electromagnetic, infrared, semiconductor, or a combination thereof. Examples of readable storage media include: hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, etc.

[0092] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.

Claims

1. A screen projection method, characterized in that, For use with a display chip, the method includes: Obtain a screen mirroring command, wherein the screen mirroring command includes a source display identifier and a target display identifier; A layer is created in response to the screen mirroring command; A virtual screen is created based on the first target attribute parameters corresponding to the source display screen identifier, wherein the attribute parameters of the virtual screen are consistent with the first target attribute parameters; The first graphics data in the first video memory area corresponding to the source display screen identifier is mapped to the virtual screen to obtain a canvas view; the correspondence between the source display screen identifier and the first video memory area is pre-stored in the display chip, and the display chip also pre-stores the first target attribute parameter corresponding to the source display screen identifier; Add the canvas view to the layer; The first graphic data in the layer is parsed to obtain the first window view; The second graphics data in the second video memory area corresponding to the target display screen identifier is parsed to obtain the second window view; The second window view is combined with the first window view to obtain a combined window view, wherein the second window view is covered by the first window view; Send the composite window view to the target display screen.

2. The screen projection method according to claim 1, characterized in that, The layer creation in response to the screen mirroring command includes: In response to the screen mirroring command, a texture view object is created, the texture view object including the layer.

3. The screen projection method according to claim 1, characterized in that, Also includes: Obtain a command to end screen mirroring, wherein the command to end screen mirroring includes the target display screen identifier; In response to the end projection command, the second window view is sent to the target display screen.

4. The screen projection method according to claim 3, characterized in that, Also includes: In response to the end projection command, the layer and the virtual screen are cleared.

5. The screen projection method according to claim 1, characterized in that, After mapping the first graphic data onto the virtual screen to obtain the canvas view, the method further includes: Based on the second target attribute parameter corresponding to the target display screen identifier, the canvas view is processed to obtain the target view; Adding the canvas view to the layer includes: Add the target view to the layer.

6. A screen projection device, characterized in that, For displaying a chip, the device includes: The acquisition module is used to acquire the screen casting command, which includes the source display screen identifier and the target display screen identifier; A module is created to create a layer in response to the screen projection command; The creation module is also used to create a virtual screen based on the first target attribute parameters corresponding to the source display screen identifier, wherein the attribute parameters of the virtual screen are consistent with the first target attribute parameters; The mapping module is used to map the first graphics data in the first video memory area corresponding to the source display screen identifier to the virtual screen to obtain a canvas view; the correspondence between the source display screen identifier and the first video memory area is pre-stored in the display chip, and the display chip also pre-stores the first target attribute parameter corresponding to the source display screen identifier; Add a module to add the canvas view to the layer; The parsing module is used to parse the first graphic data in the layer to obtain a first window view; and to parse the second graphic data in the second video memory area corresponding to the target display screen identifier to obtain a second window view. A compositing module is used to compose the second window view with the first window view to obtain a composite window view, wherein the second window view is covered by the first window view; A sending module is used to send the composite window view to the target display screen.

7. A display chip, comprising a memory, a processor, and a computer program stored in the memory and executed by the processor, characterized in that, When the processor executes the computer program, it implements the steps of the screen projection method as described in any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the screen projection method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and equipment for realizing double-screen display

    CN107943442A

  • Display virtualization method for intelligent terminal with Linux kernel and multiple Android systems

    CN108279963A

  • Vehicle machine screen sharing method, system and device and storage medium

    CN115309356A