CN114816306A - Screen sharing control method and device, electronic equipment and storage medium - Google Patents

Screen sharing control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114816306A
CN114816306A CN202210617563.XA CN202210617563A CN114816306A CN 114816306 A CN114816306 A CN 114816306A CN 202210617563 A CN202210617563 A CN 202210617563A CN 114816306 A CN114816306 A CN 114816306A
Authority
CN
China
Prior art keywords
shared
target
screen
display
layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210617563.XA
Other languages
Chinese (zh)
Inventor
张吉佑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fulscience Automotive Electronics Co Ltd
Original Assignee
Fulscience Automotive Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fulscience Automotive Electronics Co Ltd filed Critical Fulscience Automotive Electronics Co Ltd
Priority to CN202210617563.XA priority Critical patent/CN114816306A/en
Publication of CN114816306A publication Critical patent/CN114816306A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The application provides a control method and device for screen sharing, electronic equipment and a storage medium, wherein the control method comprises the following steps: the method comprises the steps of obtaining a shared display instruction, creating a shared drawing area, binding a shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing graphic data analyzed by a video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on a target screen corresponding to at least one bound shared screen identifier so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer. By the adoption of the technical scheme, the display terminal capable of operating in the android platform can normally display the display screen of a single display terminal, the display screens of a plurality of display terminals can also display the shared display of the same picture, and the diversity of screen display is improved.

Description

Screen sharing control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of screen display control technologies, and in particular, to a method and an apparatus for controlling screen sharing, an electronic device, and a storage medium.
Background
With the diversification and popularization of various intelligent display terminals, especially the wide use of mobile intelligent terminals, notebooks and intelligent televisions, the technology of real-time screen sharing with high image quality between intelligent mobile terminals is gradually mature. The screen linkage display can be applied to different use scenes, the scene of the intelligent cabin is one of representative scenes, the intelligent cabin serves as one in-vehicle service and is proposed by more and more vehicle factories at present, and the intelligent cabin is used for modifying the riding space in the automobile, so that the driving and riding experience can be more comfortable and intelligent; the basic configuration of the mainstream intelligent cockpit in the current market comprises double-screen interaction, intelligent voice, internet of vehicles and the like.
At present, when the double-screen interaction is realized in the intelligent passenger cabin, because the display screen that the intelligent passenger cabin set up generally runs under the android system, and the android system only supports solitary rendering, promptly, display interface can only show on solitary display screen, can not accomplish same display interface and show on the display screen of difference, can't satisfy the shared demand of a plurality of display screens in the car. Therefore, how to realize multi-screen sharing in the android platform becomes a problem to be solved urgently.
Disclosure of Invention
In view of this, an object of the present application is to provide a screen sharing control method, an apparatus, an electronic device, and a storage medium, which can create a shared rendering area through a shared display instruction for a display terminal in which an android platform operates, bind a plurality of android screens to be shared with the shared rendering area, render acquired graphic data in the shared rendering area to obtain a shared layer, and simultaneously display the shared layer on the bound android screens, so that when a display screen of a single display terminal is normally displayed, shared display in which the display screens of a plurality of display terminals simultaneously display the same picture can be achieved, and diversity of screen display is improved.
The application mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides a control method for screen sharing, where a screen is a display terminal running and displaying on an android platform, and the control method includes:
acquiring a screen display instruction, and determining whether the screen display instruction is a shared display instruction;
if not, determining a target display area for displaying the picture, and displaying the picture drawn in the target display area on a target screen corresponding to the unique screen identifier based on the unique screen identifier associated with the target display area;
if so, creating a shared drawing area, binding the shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by the video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on the target screen corresponding to at least one bound shared screen identifier, so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
Further, the shared layer is obtained through the following steps:
acquiring graphic data analyzed by a video decoder, and determining a plurality of target windows included in the graphic data according to the graphic data;
aiming at each target window, acquiring a target sharing area corresponding to each target window;
and superposing the target shared areas corresponding to the plurality of target windows according to the preset masking sequence of each target window to obtain a shared layer.
Further, for each target window, obtaining a corresponding target shared area by the following steps:
aiming at each target window, according to the size and the position of the target window, a shared drawing area corresponding to the target window is established in a JAVA layer, and a shared display area corresponding to the target window is established in a C + + layer;
for each target window, drawing the graphic data corresponding to the target window on a shared drawing area of the JAVA layer;
and aiming at each target window, secondarily binding the shared display area of the C + + layer and the shared drawing area of the JAVA layer, and acquiring the graphic data in the shared drawing area in the shared display area to obtain the target shared area corresponding to the target window.
Further, the shared layer is displayed on a target screen corresponding to the bound at least one shared screen identifier through the following steps:
submitting the sharing layer to a graph buffer area;
and reading the shared layer of the graphic buffer area according to a screen refreshing signal, and displaying the read shared layer on a target screen corresponding to the bound at least one shared screen identifier.
Further, a target display area for performing screen display is determined by:
controlling the JAVA layer to apply for creating a target display area to the C + + layer according to the screen display instruction;
according to the application of the JAVA layer, after a display area is created in the C + + layer, a target display area corresponding to the display area is created in the JAVA layer, and the target display area for displaying pictures is determined.
In a second aspect, an embodiment of the present application further provides a control device for screen sharing, where the screen is a display terminal running and displaying on an android platform, and the control device includes:
the judging module is used for acquiring a screen display instruction and determining whether the screen display instruction is a shared display instruction;
the processing module is used for determining a target display area for performing picture display if the screen display instruction is not a shared display instruction, and displaying a picture drawn in the target display area on a target screen corresponding to a unique screen identifier based on the unique screen identifier associated with the target display area;
and the shared display module is used for creating a shared drawing area if the screen display instruction is a shared display instruction, binding a shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by a video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on a target screen corresponding to at least one bound shared screen identifier so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
Further, when the shared display module is configured to obtain a shared layer, the shared display module is specifically configured to:
acquiring graphic data analyzed by a video decoder, and determining a plurality of target windows included in the graphic data according to the graphic data;
aiming at each target window, acquiring a target sharing area corresponding to each target window;
and superposing the target shared areas corresponding to the plurality of target windows according to the preset masking sequence of each target window to obtain a shared layer.
Further, the shared display module is further configured to:
aiming at each target window, according to the size and the position of the target window, a shared drawing area corresponding to the target window is established in a JAVA layer, and a shared display area corresponding to the target window is established in a C + + layer;
for each target window, drawing the graphic data corresponding to the target window on a shared drawing area of the JAVA layer;
and aiming at each target window, secondarily binding the shared display area of the C + + layer and the shared drawing area of the JAVA layer, and acquiring the graphic data in the shared drawing area in the shared display area to obtain the target shared area corresponding to the target window.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions being executed by the processor to perform the steps of the control method of screen sharing as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the control method for screen sharing as described above.
The embodiment of the application provides a control method and device for screen sharing, an electronic device and a storage medium, wherein a screen is a display terminal running and displaying under an android platform, and the control method comprises the following steps: acquiring a screen display instruction, and determining whether the screen display instruction is a shared display instruction; if not, determining a target display area for displaying the picture, and displaying the picture drawn in the target display area on a target screen corresponding to the unique screen identifier based on the unique screen identifier associated with the target display area; if so, creating a shared drawing area, binding the shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by the video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on the target screen corresponding to at least one bound shared screen identifier, so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
Therefore, by adopting the technical scheme provided by the application, the shared drawing area can be created for the display terminal operated by the android platform through the shared display instruction, a plurality of android screens needing to be shared are bound with the shared drawing area, the obtained graphic data are drawn in the shared drawing area to obtain the shared graphic layer, the shared graphic layer is simultaneously displayed on the bound android screens, the display screens of a single display terminal can be ensured to normally display, the display screens of the display terminals can also simultaneously display the shared display of the same picture, and the diversity of screen display is improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a flowchart illustrating a control method for screen sharing according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating another control method for screen sharing according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a control apparatus for screen sharing according to an embodiment of the present disclosure;
fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not intended to limit the scope of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without logical context may be performed in reverse order or concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to utilize the present disclosure, the following embodiments are presented in conjunction with a specific application scenario "screen sharing", and it will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and application scenarios without departing from the spirit and scope of the present disclosure.
The method, the apparatus, the electronic device, or the computer-readable storage medium described in the embodiments of the present application may be applied to any scenario that requires android platform screen sharing, and the embodiments of the present application do not limit a specific application scenario, and any scheme that uses the screen sharing control method, the apparatus, the electronic device, and the storage medium provided in the embodiments of the present application is within the scope of protection of the present application.
It should be noted that, with the diversification and popularization of various intelligent display terminals, especially the wide use of mobile intelligent terminals, notebooks and intelligent televisions, the technology of real-time screen sharing with high image quality between intelligent mobile terminals is also gradually mature. The screen linkage display can be applied to different use scenes, the scene of the intelligent cabin is one of representative scenes, the intelligent cabin serves as an in-vehicle service and is proposed by more and more vehicle factories at present, and the intelligent cabin is used for modifying the riding space in the automobile, so that the driving and riding experience can be more comfortable and intelligent; the basic configuration of the mainstream intelligent cockpit in the current market comprises double-screen interaction, intelligent voice, internet of vehicles and the like.
At present, when the double-screen interaction is realized in the intelligent passenger cabin, because the display screen that the intelligent passenger cabin set up generally runs under the android system, and the android system only supports solitary rendering, promptly, display interface can only show on solitary display screen, can not accomplish same display interface and show on the display screen of difference, can't satisfy the shared demand of a plurality of display screens in the car. Therefore, how to realize multi-screen sharing in the android platform becomes a problem to be solved urgently.
Based on this, the application provides a control method and device for screen sharing, an electronic device and a storage medium, where the screen is a display terminal running and displaying under an android platform, and the control method includes: acquiring a screen display instruction, and determining whether the screen display instruction is a shared display instruction; if not, determining a target display area for displaying the picture, and displaying the picture drawn in the target display area on a target screen corresponding to the unique screen identifier based on the unique screen identifier associated with the target display area; if so, creating a shared drawing area, binding the shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by the video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on the target screen corresponding to at least one bound shared screen identifier, so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
Therefore, by adopting the technical scheme provided by the application, the shared drawing area can be created for the display terminal operated by the android platform through the shared display instruction, a plurality of android screens needing to be shared are bound with the shared drawing area, the obtained graphic data are drawn in the shared drawing area to obtain the shared graphic layer, the shared graphic layer is simultaneously displayed on the bound android screens, the display screens of a single display terminal can be ensured to normally display, the display screens of the display terminals can also simultaneously display the shared display of the same picture, and the diversity of screen display is improved.
For the purpose of facilitating an understanding of the present application, the technical solutions provided in the present application will be described in detail below with reference to specific embodiments.
Referring to fig. 1, fig. 1 is a flowchart of a control method for screen sharing provided in an embodiment of the present application, and as shown in fig. 1, the screen is a display terminal running and displaying under an android platform, and the control method includes:
s101, acquiring a screen display instruction, and determining whether the screen display instruction is a shared display instruction;
in the step, whether the screen display instruction is a shared display instruction is determined according to the acquired screen display instruction; for example, a screen display instruction can be issued according to a mobile phone, one or more display screens of the intelligent cabin are controlled through the Internet of vehicles, and the screen display instruction can also be issued according to the touch operation of a screen controller or a certain vehicle-mounted screen in the intelligent cabin.
S102, if not, determining a target display area for displaying the picture, and displaying the picture drawn in the target display area on a target screen corresponding to the unique screen identifier based on the unique screen identifier associated with the target display area;
in this step, if the screen display instruction is not the shared display instruction, a target display area is created in an application layer, that is, an APP layer, so that a picture is drawn in the target display area, and the picture drawn in the target display area is displayed on a target screen corresponding to the unique screen identifier according to the unique screen identifier associated with the target display area.
The target display area for performing screen display is determined by the following steps:
s1021, controlling the JAVA layer to apply for creating a target display area to the C + + layer according to the screen display instruction;
and S1022, according to the application of the JAVA layer, after a display area is created in the C + + layer, a target display area corresponding to the display area is created in the JAVA layer, and the target display area for displaying the picture is determined.
In the step, according to a screen display instruction, an application side (JAVA Layer) is controlled to apply for creating a Surface (target display area) to a Surface Flinger of a system side (C + + Layer) through a window management system, according to the application, after a Layer (display area) is created inside the Surface Flinger, a Surface corresponding to the Layer is created on the application side (JAVA Layer), one Surface corresponds to one Layer, and the obtained graphic data is drawn on the Surface, so that the target display area for displaying the picture is determined.
And S103, if so, creating a shared drawing area, binding a shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by the video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on a target screen corresponding to at least one bound shared screen identifier so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
In the step, if the shared display instruction is received, a shared drawing area is created on an application side, that is, an APP side, and shared screen identifiers corresponding to a plurality of target screens to be shared and displayed are bound with the created shared drawing area, so as to obtain graphic data analyzed by a video decoder, the graphic data is drawn on the shared drawing area, so as to obtain a shared layer, and the shared layer is displayed on the target screen corresponding to the shared screen identifiers according to the bound shared screen identifiers, so that the target screens display the same picture.
Please refer to fig. 2, fig. 2 is a flowchart of another screen sharing control method according to an embodiment of the present application, and as shown in fig. 2, a shared layer is obtained through the following steps:
s201, obtaining graph data analyzed by a video decoder, and determining a plurality of target windows included in the graph data according to the graph data;
in this step, the graphic data analyzed by the video decoder is obtained, where the graphic data includes multiple views, and each view corresponds to one target window.
S202, aiming at each target window, acquiring a target sharing area corresponding to each target window;
in this step, for each target window, a corresponding target shared area is obtained through the following steps:
s2021, aiming at each target window, creating a shared drawing area corresponding to the target window in a JAVA layer according to the size and the position of the target window, and simultaneously creating a shared display area corresponding to the target window in a C + + layer;
in this step, according to the Android window management system WindowManagerService, for each target window, according to the size and position of the target window, a shared drawing area corresponding to the target window is created at the JAVA layer APP end (a Surface is created by using SurfaceView), and a shared display area corresponding to the target window is created in a SharedLayer of a C + + layer surfefinger (a layer is created by using the capability of SurfaceView to create a Surface).
S2022, aiming at each target window, drawing the graphic data corresponding to the target window on a shared drawing area of the JAVA layer;
in this step, the graphics data in each target window is rendered on a shared rendering area (Surface view creation Surface) created by the JAVA layer.
S2023, for each target window, performing secondary binding between the shared display region of the C + + layer and the shared rendering region of the JAVA layer, and acquiring the graphics data in the shared rendering region in the shared display region to obtain a target shared region corresponding to the target window.
In the step, SharedLayer is in the scope of a C + + platform, a shared display area (Layer) is firstly created, and then the shared display area (Layer) is reversely bound to an Application Layersurface (SurfaceView created Surface), so that the secondary mapping effect of the Layer is achieved.
S203, according to the preset masking sequence of each target window, overlapping the target sharing areas corresponding to the plurality of target windows according to the masking sequence to obtain a sharing layer.
In the step, each target window has a covering sequence (Z-axis sequence), the Z-axis sequence of the Layer can be changed by using a window management system of the SurfaceView, and a plurality of layers are overlapped according to the Z-axis sequence to obtain a shared Layer.
It should be noted that, in step S103, the shared layer is displayed on a target screen corresponding to the bound at least one shared screen identifier through the following steps:
1) submitting the shared layer to a graphic buffer area;
2) reading the shared layer of the graphic buffer area according to a screen refreshing signal, and displaying the read shared layer on a target screen corresponding to the bound at least one shared screen identifier.
In the step, the shared layer is submitted to a graphic buffer area (FrameBuffer), data is continuously written into the FrameBuffer, and according to a screen refreshing signal, a display controller reads and displays the data from the FrameBuffer and displays the data on a target screen corresponding to at least one bound shared screen identifier.
Illustratively, when a shared display instruction is acquired, firstly, a shared SurfaceView is reconstructed by referring to a SurfaceView mechanism at an App end, and the main purpose is as follows: 1. creating a layer by utilizing the capability of creating a Surface of the SurfaceView; 2. the Z-axis sequence of the Layer can be changed by using a window management system of the SurfaceView; 3. setting a window by inheriting the attribute value of the SurfaceView; 4. SurfaceView has the unique ability to create a Surface. Then, WindowManagerService (Android window management system): and changing the z-axis sequence of the window for the newly constructed Surfaceview, creating a new layer through WindowManagerService, and binding the window management system with the Surfaceview created layer. Second, surfefinger: and creating a new sharing layer, and directly binding the created sharing layer with a display screen to participate in the synthesis of the Android surface flag. Moreover, a buffer queue product shared by the layers is built in a local window of the layers, a rendered data source is provided, and the data source of the shared layers can be an MP4 video file or CarPlay carrying video data. And finally, the HAL layer creates a hwlayer for the shared layer, and the hwlayer directly interacts with the display screen to display the data of the shared layer on different display screens.
Illustratively, the control method for screen sharing is applied to a display frame of improved Android, and the display frame of improved Android includes the following parts:
1. the Application layer is only responsible for drawing data and comprises View in an Activity window, SurfaceView in LayerSurface and View in presentation; the layer surface is created by utilizing a surface View mechanism, and the layer can be directly related to a sharedLayer of a platform layer through secondary binding; and the View in the presentation is drawn by the other layer, and a plurality of display screens bound by the layer can be determined at the stage.
2. The Application Framework layer comprises WindowManagerservice used for providing canvas (windows), each canvas (Window) corresponds to one layer, and the display position of each layer is determined by Window level.
3. The Platform layer comprises a normalLayer and a SharedLayer, belongs to the Platform category of a C + + layer, and mainly participates in image synthesis through the normalLayer to perform picture rendering of a single screen in a normal layer, and can be displayed after being bound once; the shared layer is firstly created by the SharedLayer and then is reversely bound to the LayerSurface of Application, so that the secondary mapping effect of the layer can be achieved.
4. The Hal layer, which is a part directly interacting with the Display screen, is displayed on one Display screen in the normalllayer normal layer, and the shared layer such as SharedLayer can be displayed on a plurality of screens, as can be seen from the data synthesized by the surface flickers.
Here, in multi-screen interaction in the smart car, multiple screens display the same block data content under different activities, and simultaneously, one MediaCodec is used for decoding and displaying, the native android only supports individual rendering, individual layers can only be displayed on a specific display screen, and the same layer cannot be displayed on different screens. In the embodiment, by adopting layer sharing, data information of the same layer can be acquired, synthesis can be completed by one Vsync (vertical synchronization signal), and the data information can be displayed on different screens, Android image synthesis strategies are corrected, layer sharing improves synthesis efficiency, the CPU occupancy rate of an image synthesis process in a system is reduced, user experience is good, the problem that the same layer is displayed on an intelligent cockpit in a multi-screen mode is solved, playing of 60fp video streams cannot be influenced completely, and the video streams are smoothly played.
The control method for screen sharing provided by the embodiment of the application, the screen is a display terminal running and displaying under an android platform, and the control method comprises the following steps: acquiring a screen display instruction, and determining whether the screen display instruction is a shared display instruction; if not, determining a target display area for displaying the picture, and displaying the picture drawn in the target display area on a target screen corresponding to the unique screen identifier based on the unique screen identifier associated with the target display area; if so, creating a shared drawing area, binding the shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by the video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on the target screen corresponding to at least one bound shared screen identifier, so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
Therefore, by adopting the technical scheme provided by the application, the shared drawing area can be created for the display terminal operated by the android platform through the shared display instruction, a plurality of android screens needing to be shared are bound with the shared drawing area, the obtained graphic data are drawn in the shared drawing area to obtain the shared graphic layer, the shared graphic layer is simultaneously displayed on the bound android screens, the display screens of a single display terminal can be ensured to normally display, the display screens of the display terminals can also simultaneously display the shared display of the same picture, and the diversity of screen display is improved.
Based on the same application concept, a screen sharing control device corresponding to the screen sharing control method provided by the embodiment is also provided in the embodiment of the present application, and as the principle of solving the problem of the device in the embodiment of the present application is similar to the screen sharing control method provided by the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 3, fig. 3 is a structural diagram of a control device for screen sharing according to an embodiment of the present application. As shown in fig. 3, the control device 310 includes:
the judging module 311 is configured to obtain a screen display instruction, and determine whether the screen display instruction is a shared display instruction;
a processing module 312, configured to determine a target display area for performing picture display if the screen display instruction is not a shared display instruction, and display a picture drawn in the target display area on a target screen corresponding to a unique screen identifier based on the unique screen identifier associated with the target display area;
the shared display module 313 is configured to, if the screen display instruction is a shared display instruction, create a shared drawing area, bind a shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, draw graphic data analyzed by a video decoder on the shared drawing area to obtain a shared layer, and display the shared layer on a target screen corresponding to at least one bound shared screen identifier, so that multiple screens simultaneously display the same picture corresponding to the shared layer.
Optionally, when the shared display module 313 is used to obtain a shared layer, the shared display module 313 is specifically configured to:
acquiring graphic data analyzed by a video decoder, and determining a plurality of target windows included in the graphic data according to the graphic data;
aiming at each target window, acquiring a target sharing area corresponding to each target window;
and superposing the target shared areas corresponding to the plurality of target windows according to the preset masking sequence of each target window to obtain a shared layer.
Optionally, the shared display module 313 is further configured to:
aiming at each target window, according to the size and the position of the target window, a shared drawing area corresponding to the target window is established in a JAVA layer, and a shared display area corresponding to the target window is established in a C + + layer;
for each target window, drawing the graphic data corresponding to the target window on a shared drawing area of the JAVA layer;
and aiming at each target window, secondarily binding the shared display area of the C + + layer and the shared drawing area of the JAVA layer, and acquiring the graphic data in the shared drawing area in the shared display area to obtain the target shared area corresponding to the target window.
Optionally, when the shared display module 313 is configured to display the shared layer on a target screen corresponding to the bound at least one shared screen identifier, the shared display module 313 is specifically configured to:
submitting the sharing layer to a graph buffer area;
and reading the shared layer of the graphic buffer area according to a screen refreshing signal, and displaying the read shared layer on a target screen corresponding to the bound at least one shared screen identifier.
Optionally, when the processing module 312 is configured to determine a target display area for performing screen display, the processing module 312 is specifically configured to:
controlling the JAVA layer to apply for creating a target display area to the C + + layer according to the screen display instruction;
according to the application of the JAVA layer, after a display area is created in the C + + layer, a target display area corresponding to the display area is created in the JAVA layer, and the target display area for displaying pictures is determined.
The control device that this application embodiment provided, screen sharing, the display terminal that the screen was shown for running under the android platform, control device includes: the judging module is used for acquiring a screen display instruction and determining whether the screen display instruction is a shared display instruction or not; the processing module is used for determining a target display area for displaying pictures if the screen display instruction is not a shared display instruction, and displaying the pictures drawn in the target display area on a target screen corresponding to the unique screen identifier based on the unique screen identifier associated with the target display area; and the shared display module is used for creating a shared drawing area if the screen display instruction is a shared display instruction, binding a shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by a video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on a target screen corresponding to at least one bound shared screen identifier so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
Therefore, by adopting the technical scheme provided by the application, the shared drawing area can be created for the display terminal operated by the android platform through the shared display instruction, a plurality of android screens needing to be shared are bound with the shared drawing area, the obtained graphic data are drawn in the shared drawing area to obtain the shared graphic layer, the shared graphic layer is simultaneously displayed on the bound android screens, the display screens of a single display terminal can be ensured to normally display, the display screens of the display terminals can also simultaneously display the shared display of the same picture, and the diversity of screen display is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the electronic device 400 includes a processor 410, a memory 420, and a bus 430.
The memory 420 stores machine-readable instructions executable by the processor 410, when the electronic device 400 runs, the processor 410 communicates with the memory 420 through the bus 430, and when the machine-readable instructions are executed by the processor 410, the steps of the screen sharing control method in the method embodiments shown in fig. 1 and fig. 2 may be performed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the screen sharing control method in the method embodiments shown in fig. 1 and fig. 2 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method for screen sharing is characterized in that a screen is a display terminal which runs and displays under an android platform, and the control method comprises the following steps:
acquiring a screen display instruction, and determining whether the screen display instruction is a shared display instruction;
if not, determining a target display area for displaying the picture, and displaying the picture drawn in the target display area on a target screen corresponding to the unique screen identifier based on the unique screen identifier associated with the target display area;
if so, creating a shared drawing area, binding the shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by the video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on the target screen corresponding to at least one bound shared screen identifier, so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
2. The control method according to claim 1, wherein the shared layer is obtained by:
acquiring graphic data analyzed by a video decoder, and determining a plurality of target windows included in the graphic data according to the graphic data;
aiming at each target window, acquiring a target sharing area corresponding to each target window;
and superposing the target shared areas corresponding to the plurality of target windows according to the preset masking sequence of each target window to obtain a shared layer.
3. The control method according to claim 2, wherein for each target window, the corresponding target shared area is obtained by:
aiming at each target window, according to the size and the position of the target window, a shared drawing area corresponding to the target window is established in a JAVA layer, and a shared display area corresponding to the target window is established in a C + + layer;
for each target window, drawing the graphic data corresponding to the target window on a shared drawing area of the JAVA layer;
and aiming at each target window, secondarily binding the shared display area of the C + + layer and the shared drawing area of the JAVA layer, and acquiring the graphic data in the shared drawing area in the shared display area to obtain the target shared area corresponding to the target window.
4. The control method according to claim 1, wherein the shared layer is displayed on a target screen corresponding to the bound at least one shared screen identifier by:
submitting the sharing layer to a graph buffer area;
and reading the shared layer of the graphic buffer area according to a screen refreshing signal, and displaying the read shared layer on a target screen corresponding to the bound at least one shared screen identifier.
5. The control method according to claim 1, wherein the target display area for performing screen display is determined by:
controlling a JAVA layer to apply for creating a target display area from a C + + layer according to the screen display instruction;
according to the application of the JAVA layer, after a display area is created in the C + + layer, a target display area corresponding to the display area is created in the JAVA layer, and the target display area for displaying pictures is determined.
6. The utility model provides a controlling means of screen sharing, its characterized in that, the screen is the display terminal who runs the demonstration under the android platform, controlling means includes:
the judging module is used for acquiring a screen display instruction and determining whether the screen display instruction is a shared display instruction;
the processing module is used for determining a target display area for performing picture display if the screen display instruction is not a shared display instruction, and displaying a picture drawn in the target display area on a target screen corresponding to a unique screen identifier based on the unique screen identifier associated with the target display area;
and the shared display module is used for creating a shared drawing area if the screen display instruction is a shared display instruction, binding a shared screen identifier corresponding to each target screen in the shared display instruction with the shared drawing area, drawing the graphic data analyzed by a video decoder on the shared drawing area to obtain a shared layer, and displaying the shared layer on a target screen corresponding to at least one bound shared screen identifier so that a plurality of screens can simultaneously display the same picture corresponding to the shared layer.
7. The control device according to claim 6, wherein when the shared display module is used to obtain a shared layer, the shared display module is specifically configured to:
acquiring graphic data analyzed by a video decoder, and determining a plurality of target windows included in the graphic data according to the graphic data;
aiming at each target window, acquiring a target sharing area corresponding to each target window;
and superposing the target shared areas corresponding to the plurality of target windows according to the preset masking sequence of each target window to obtain a shared layer.
8. The control device of claim 7, wherein the shared display module is further configured to:
aiming at each target window, according to the size and the position of the target window, a shared drawing area corresponding to the target window is established in a JAVA layer, and a shared display area corresponding to the target window is established in a C + + layer;
for each target window, drawing the graphic data corresponding to the target window on a shared drawing area of a JAVA layer;
and aiming at each target window, secondarily binding the shared display area of the C + + layer and the shared drawing area of the JAVA layer, and acquiring the graphic data in the shared drawing area in the shared display area to obtain the target shared area corresponding to the target window.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions being executed by the processor to perform the steps of the screen sharing control method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, performs the steps of the screen sharing control method according to any one of claims 1 to 5.
CN202210617563.XA 2022-06-01 2022-06-01 Screen sharing control method and device, electronic equipment and storage medium Pending CN114816306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210617563.XA CN114816306A (en) 2022-06-01 2022-06-01 Screen sharing control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210617563.XA CN114816306A (en) 2022-06-01 2022-06-01 Screen sharing control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114816306A true CN114816306A (en) 2022-07-29

Family

ID=82519696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210617563.XA Pending CN114816306A (en) 2022-06-01 2022-06-01 Screen sharing control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114816306A (en)

Similar Documents

Publication Publication Date Title
CN109947313B (en) Vehicle-mounted display screen segmentation display method and device
CN108010112A (en) Animation processing method, device and storage medium
CN104714714A (en) Mobile terminal desktop control method and device and mobile terminal
CN106598514B (en) Method and system for switching virtual reality mode in terminal equipment
CN110641382B (en) Vehicle-mounted interface display method and device, electronic equipment and storage medium
DE112013006086T5 (en) Vehicle display control device
CN110188299B (en) Response type page processing method and device and electronic equipment
CN110134354A (en) Display panel control method, display system and vehicle
CN113313802A (en) Image rendering method, device and equipment and storage medium
CN115185408A (en) Vehicle-mounted entertainment information display method, device, equipment and medium
CN114510207A (en) Layer composition method, device, equipment, medium and program product
CN112492399B (en) Information display method and device and electronic equipment
CN114816306A (en) Screen sharing control method and device, electronic equipment and storage medium
JP2020197664A (en) Control device for vehicle, display system for vehicle, and display control method for vehicle
CN115239408A (en) Vehicle simulator
CN115048597A (en) Page display method and device and electronic equipment
CN115129207A (en) Working method and device of vehicle-mounted display module interactive system, storage medium and terminal
KR101367246B1 (en) System and method of multiple framebuffer emulation on virtual machine
CN104461480B (en) A kind of information processing method and electronic equipment
WO2023127467A1 (en) Display control system, display control method, and program
CN115756353A (en) Content display method and device, vehicle-mounted equipment and storage medium
CN106873934A (en) A kind of method and apparatus of the display picture on multiple screen equipments
JP2014035453A (en) Image processor
JP6036072B2 (en) Image processing device
CN117908732A (en) Page display method, page display device, computing equipment and computer program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination