WO2022062809A1 - 投屏控制方法和装置 - Google Patents

投屏控制方法和装置 Download PDF

Info

Publication number
WO2022062809A1
WO2022062809A1 PCT/CN2021/114438 CN2021114438W WO2022062809A1 WO 2022062809 A1 WO2022062809 A1 WO 2022062809A1 CN 2021114438 W CN2021114438 W CN 2021114438W WO 2022062809 A1 WO2022062809 A1 WO 2022062809A1
Authority
WO
WIPO (PCT)
Prior art keywords
layer
electronic device
synthesized
data
multimedia information
Prior art date
Application number
PCT/CN2021/114438
Other languages
English (en)
French (fr)
Inventor
罗诚
王长亮
钟小飞
李刚
刘若曦
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21871182.8A priority Critical patent/EP4209889A4/en
Publication of WO2022062809A1 publication Critical patent/WO2022062809A1/zh
Priority to US18/188,876 priority patent/US20230230196A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • 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
    • 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
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/363Graphics controllers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2352/00Parallel handling of streams of display data
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2358/00Arrangements for display data security
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/16Use of wireless transmission of display information

Definitions

  • the embodiments of the present application relate to the technical field of terminals, and in particular, to a screen projection control method and device.
  • the screen projection refers to putting the multimedia files of the device A into the device B, so that the device B can also display the displayed multimedia files of the device A synchronously.
  • multimedia files of devices with small display screens such as mobile phones, tablet computers
  • large-screen display devices such as TVs, car multimedia display screens
  • screen mirroring is usually adopted, that is, the entire content of the multimedia file displayed by device A (ie, the screen-casting device) is completely projected onto device B (ie, the display device), so that the content displayed by device B is the same as the one displayed by device B.
  • Device A displays the same content.
  • device A synthesizes the data displayed on device B through a graphics processor (Graphics Processing Unit, GPU), and sends it to device B, and then synthesizes the data displayed by itself through a hardware hybrid renderer (Hardware Composer, HWC), This completes the projection.
  • a graphics processor Graphics Processing Unit, GPU
  • HWC hardware hybrid renderer
  • the embodiments of the present application provide a screen projection control method and device, which can improve the efficiency of layer synthesis, thereby improving the efficiency of multimedia information projection.
  • an embodiment of the present application provides a screen projection control method, which is applied to a first electronic device, where the first electronic device includes a graphics processor GPU and a hardware hybrid renderer HWC, and the method includes: in the first electronic device When an electronic device is in the screen projection state, it is determined whether the layer to be synthesized corresponding to the multimedia information to be displayed on the screen includes a video security layer; if the video security layer is not included, the layer to be synthesized is separately Sending to the GPU and the HWC; synthesizing the layer to be synthesized by the GPU and the HWC in parallel, and sending the first layer synthesized by the GPU to the second electronic device, so as to The multimedia information corresponding to the first layer is displayed on the second electronic device; the multimedia information corresponding to the second layer synthesized by the HWC is displayed.
  • the layer to be synthesized corresponding to the multimedia information to be displayed on the screen does not include the video security layer
  • the layer to be synthesized can be synthesized by the GPU and the HWC in parallel, thereby improving the efficiency of layer synthesis , thereby improving the efficiency of multimedia information projection.
  • the format of the first layer is a first data format
  • the data volume of the data in the first data format is smaller than the data volume of the RGBA8888 data.
  • the data transmission volume of the data in the first data format is smaller than that of the RGBA8888 data, the data transmission volume can be reduced, the data transmission efficiency can be improved, the storage efficiency can be optimized, and the display bandwidth can be reduced.
  • the first data format is YUV420sp.
  • the sending the first layer synthesized by the GPU to the second electronic device includes: encoding the first layer to obtain an encoded layer; according to real-time transmission
  • the protocol RTP or the RTP control protocol RTCP is used to package the encoded layer; and the packaged layer is sent to the second electronic device.
  • the packaged layer is sent to the second electronic device, and the This can not only improve the security of layer data, but also reduce the amount of data transmission and improve the efficiency of data transmission.
  • the sending the packaged layer to the second electronic device includes: sending the packaged layer to the second electronic device through transmission control protocol TCP or user datagram protocol UDP. sent to the second electronic device.
  • determining that the first electronic device is in a screen-casting state includes: determining whether a method for creating a virtual screen and a method for creating an encoder are called; if it is determined that the method for creating a virtual screen and the method for creating a virtual screen are called When an encoder method is created, it is determined that the first electronic device is in a screen-casting state.
  • whether the first electronic device is in the screen projection state is determined by determining whether the method for creating a virtual screen and the method for creating an encoder are called, thereby improving the efficiency and accuracy of determining the screen projection state.
  • an embodiment of the present application provides a screen projection control method, which is applied to a second electronic device.
  • the method includes: receiving a first layer sent by the first electronic device, where the first layer is the first layer.
  • the first layer is obtained by synthesizing in parallel with the second layer.
  • the graphics processor GPU in the first electronic device is synthesized by the graphics processor GPU in the first electronic device, and the second layer is synthesized by the hardware hybrid renderer HWC in the first electronic device; parse the first layer , obtain the multimedia information; display the multimedia information.
  • the layer to be synthesized corresponding to the multimedia information to be displayed on the screen does not include the video security layer
  • the layer to be synthesized can be synthesized by the GPU and the HWC in parallel, thereby improving the efficiency of layer synthesis , thereby improving the efficiency of multimedia information projection.
  • the format of the first layer is a first data format
  • the data volume of the data in the first data format is smaller than the data volume of the RGBA8888 data.
  • the data transmission volume of the data in the first data format is smaller than that of the RGBA8888 data, the data transmission volume can be reduced, the data transmission efficiency can be improved, the storage efficiency can be optimized, and the display bandwidth can be reduced.
  • the first data format is YUV420sp.
  • the analyzing the first layer to obtain the multimedia information includes: unpacking the first layer according to the real-time transmission protocol RTP or the RTP control protocol RTCP ; Decode the layer after the unpacking process; Convert the format of the decoded layer from the first data format to the RGBA8888 format to obtain multimedia information.
  • the receiving the first layer data sent by the first electronic device includes: receiving the first layer data through a Transmission Control Protocol TCP or a User Datagram Protocol UDP.
  • an embodiment of the present application provides a screen projection control device, the device includes a graphics processor GPU and a hardware hybrid renderer HWC, and the device includes: a processing unit for when the screen projection display device is in projection mode When the screen is in the state of the screen, determine whether the layer to be synthesized corresponding to the multimedia information to be displayed on the screen includes a video security layer; the sending unit is configured to separate the layer to be synthesized when the video security layer is not included.
  • the processing unit is further configured to compose the layer to be synthesized in parallel by the GPU and the HWC; the sending unit is further configured to synthesize the GPU
  • the first layer of the device is sent to the second electronic device, so as to display the multimedia information corresponding to the first layer on the second electronic device; the display unit is used to display the second layer synthesized by the HWC the corresponding multimedia information.
  • the format of the first layer is a first data format
  • the data volume of the data in the first data format is smaller than the data volume of the RGBA8888 data.
  • the first data format is YUV420sp.
  • the sending unit is specifically configured to: encode the first layer to obtain an encoded layer; encode the encoded layer according to the real-time transmission protocol RTP or the RTP control protocol RTCP packaging the layer after packaging; sending the layer after packaging to the second electronic device.
  • the sending unit is specifically configured to: send the packaged layer to the second electronic device through a transmission control protocol TCP or a user datagram protocol UDP.
  • the processing unit is specifically configured to: determine whether the method for creating a virtual screen and the method for creating an encoder are called; if it is determined that the method for creating a virtual screen and the method for creating an encoder are called, Then it is determined that the first electronic device is in a screen projection state.
  • an embodiment of the present application provides a screen projection control device, including: a receiving unit configured to receive a first layer sent by a first electronic device, where the first layer is the first layer in the projection state of the first electronic device.
  • a receiving unit configured to receive a first layer sent by a first electronic device, where the first layer is the first layer in the projection state of the first electronic device.
  • the layer to be synthesized corresponding to the multimedia information to be displayed on the screen does not include a video security layer, it is obtained by synthesizing in parallel with the second layer, and the first layer is obtained through the first layer.
  • the second layer is synthesized by a graphics processor GPU in an electronic device, and the second layer is synthesized by the hardware hybrid renderer HWC in the first electronic device; the processing unit is used for parsing the first layer. , to obtain the multimedia information; and a display unit, configured to display the multimedia information.
  • the format of the first layer is a first data format
  • the data volume of the data in the first data format is smaller than the data volume of the RGBA8888 data.
  • the first data format is YUV420sp.
  • the processing unit is specifically configured to: unpack the first layer according to the real-time transmission protocol RTP or the RTP control protocol RTCP; decode the unpacked layer ; Convert the format of the decoded layer from the first data format to the RGBA8888 format to obtain multimedia information.
  • the receiving unit is specifically configured to: receive the first layer data through a transmission control protocol TCP or a user datagram protocol UDP.
  • an embodiment of the present application provides a screen projection control device, the device includes a display, a processor, and a memory, the memory stores a computer program, and the processor executes the computer program stored in the memory, to cause the apparatus to perform the method of the first aspect or the second aspect.
  • an embodiment of the present application provides a communication device, including: a processor and an interface circuit; the interface circuit is configured to receive code instructions and transmit them to the processor; the processor is configured to run the Code instructions to perform the method of the first aspect or the second aspect.
  • the devices mentioned in the third to fourth aspects of this application may be electronic equipment or chips in the electronic equipment, and the electronic equipment or chips have the ability to implement the screen projection control methods in the above-mentioned aspects or any possible designs thereof.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more units corresponding to the above-mentioned functions.
  • the electronic device includes a processing unit and a transceiver unit, the processing unit may be a processor, the transceiver unit may be a transceiver, the transceiver includes a radio frequency circuit, optionally, the electronic device further includes a storage unit, for example, the storage unit may be a memory.
  • the storage unit is used to store computer-executed instructions
  • the processing unit is connected to the storage unit, and the processing unit executes the computer-executed instructions stored in the storage unit, so that the electronic device performs the above aspects or any possible designs thereof. screen projection control method.
  • the chip includes: a processing unit and a transceiver unit.
  • the processing unit may be a processor, and the transceiver unit may be an input/output interface, a pin or a circuit on the chip.
  • the processing unit can execute the computer-executed instructions stored in the storage unit, so that the chip executes the screen projection control method in the above aspects or any possible designs thereof.
  • the storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), and the storage unit may also be a storage unit in the terminal device located outside the chip (for example, a read-only memory (ROM). )) or other types of static storage devices that can store static information and instructions (eg, random access memory (RAM)), etc.
  • the above-mentioned processor may be a central processing unit (CPU), a microprocessor or an application specific integrated circuit (ASIC), or one or more of them used to control the above aspects or It is an integrated circuit that executes the program of the projection control method of any possible design.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • an embodiment of the present application provides a readable storage medium for storing instructions, and when the instructions are executed, the method according to the first aspect or the second aspect is implemented.
  • the embodiments of the present application provide a computer program product including instructions, which, when run on a computer, enables the computer to execute the screen projection control method provided by any one of the first to second aspects of the embodiments of the present application .
  • the screen projection control method and device provided by the embodiments of the present application are applied to a first electronic device, where the first electronic device includes a GPU and an HWC, and when the first electronic device is in a screen projection state, the multimedia to be displayed on the screen is determined.
  • the layer to be synthesized corresponding to the information contains a video security layer, if it does not contain a video security layer, the layer to be synthesized can be sent to the GPU and the HWC respectively, and then the layer to be synthesized can be synthesized by the GPU and the HWC in parallel.
  • the first layer synthesized by the GPU is sent to the second electronic device, so that the multimedia information corresponding to the first layer and the multimedia information corresponding to the second layer synthesized by the HWC are displayed on the second electronic device.
  • the layer to be synthesized corresponding to the multimedia information to be displayed on the screen does not include the video security layer, the layer to be synthesized can be synthesized by the GPU and the HWC in parallel, so that the efficiency of layer synthesis can be improved, thereby improving the multimedia information. Screencasting efficiency.
  • FIG. 1 is a schematic diagram of an application scenario architecture of a screen projection control method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of another application scenario architecture of a screen projection control method provided by an embodiment of the present application
  • Figure 3 shows a schematic structural diagram of an electronic device
  • FIG. 4 is a schematic diagram of an electronic device performing multimedia information display
  • FIG. 5 is a schematic diagram of displaying multimedia information by an electronic device in a screen projection scenario in the prior art
  • FIG. 6 is a signaling diagram of a screen projection control method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of displaying multimedia information by an electronic device in a screen projection scenario provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a screen projection control device according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a screen projection control device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner.
  • the screen projection involved in the embodiments of this application refers to the transmission of multimedia information (such as audio, video, pictures, etc.) on the first electronic device to the second electronic device for presentation, so as to realize the simultaneous display of the same multimedia information among multiple electronic devices. Effect.
  • the screen projection involved in this application may include wired screen projection and wireless screen projection, wherein wired screen projection can establish connections between multiple electronic devices through a high definition multimedia interface (HDMI), and transmit multimedia through HDMI transmission lines.
  • HDMI high definition multimedia interface
  • Wireless screen projection can establish connections between multiple electronic devices through the Miracast protocol, and transmit multimedia information through a local area network (LAN) or a wide area network (WAN).
  • LAN local area network
  • WAN wide area network
  • FIG. 1 is a schematic diagram of an application scenario architecture of a screen projection control method provided by an embodiment of the present application. As shown in FIG. 1 , the screen projection control methods provided by the following embodiments of the present application can be applied to the electronic device group 200. Each electronic device 100 in the electronic device group 200 can communicate with each other through a LAN or a WAN.
  • the user's mobile phone, tablet computer, desktop computer, smart watch and laptop computer can be used as the electronic device group 200.
  • the mobile phone , tablets, desktops, and laptops can communicate with each other over a wide area network.
  • the user's mobile phone, tablet computer, desktop computer, smart watch and laptop can be connected to the same router.
  • the above-mentioned mobile phones, tablet computers, desktop computers, smart watches and notebook computers can form a local area network, and each device in the local area network can communicate with each other through a router.
  • the electronic devices 100 may also form a peer-to-peer network (also referred to as a P2P network) through wireless communication (eg, Bluetooth, wireless fidelity (WIFI) or ZigBee network, etc.).
  • a peer-to-peer network also referred to as a P2P network
  • wireless communication eg, Bluetooth, wireless fidelity (WIFI) or ZigBee network, etc.
  • WIFI wireless fidelity
  • ZigBee network ZigBee network
  • users can join mobile phones, tablets, smart watches and laptops to a Wi-Fi network named "1234".
  • Each electronic device 100 in the Wi-Fi network forms a P2P network, and all devices in the P2P network are members of the electronic device group 200.
  • the electronic devices 100 in the electronic device group 200 can also be interconnected through a cellular network, or, the electronic devices 100 can also be interconnected through a switching device (for example, a USB data cable or a Dock device), so as to realize electronic
  • a switching device for example, a USB data cable or a Dock device
  • one or more electronic devices 100 in the electronic device group 200 may serve as source devices, and at the same time, one or more electronic devices 100 in the electronic device group 200 may serve as destination devices.
  • the source device can project the display content in its display interface to the destination device for display.
  • FIG. 2 is a schematic diagram of another application scenario architecture of a screen projection control method provided by an embodiment of the present application.
  • the electronic device 101 taking the electronic device 101 as the source device, the electronic device 102 and the electronic device 103 are both It can be used as the destination device of the electronic device 101 .
  • the electronic device 101 can project the display content in its display interface to the electronic device 102 and the electronic device 103 for display at the same time. That is to say, a source device can simultaneously perform screen projection to multiple destination devices.
  • the specific structures of each electronic device in the electronic device group 200 may be the same or different.
  • each of the above electronic devices may specifically be a mobile phone, a tablet computer, a smart TV, a wearable electronic device, a car phone, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (personal digital assistant, PDA), virtual reality device, etc.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • virtual reality device etc.
  • FIG. 3 shows a schematic structural diagram of an electronic device.
  • the electronic device 101 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a universal serial bus (USB) interface 130 , a charge management module 140 , a power management module 141 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 101 .
  • the electronic device 101 may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. For example, in this application, the processor 110 may obtain current state information.
  • application processor application processor
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 101 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 can couple the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, so as to realize the touch function of the electronic device 101 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to implement the photographing function of the electronic device 101 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 101 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transmit data between the electronic device 101 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other terminal devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device 101 .
  • the electronic device 101 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 101 . While the charging management module 140 charges the battery 142 , it can also supply power to the terminal device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 101 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 101 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 101 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 101 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing unit.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 101 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 101 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 101 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oled, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 101 may include one or N display screens 194 , where N is a positive integer greater than one.
  • a series of graphical user interfaces may be displayed on the display screen 194 of the electronic device 101 , and these GUIs are the main screens of the electronic device 101 .
  • GUIs graphical user interfaces
  • the size of the display screen 194 of the electronic device 101 is fixed, and only limited controls can be displayed in the display screen 194 of the electronic device 101 .
  • a control is a GUI element, which is a software component that is included in an application and controls all the data processed by the application and the interaction with this data. The user can interact with the control through direct manipulation (direct manipulation). , so as to read or edit the relevant information of the application.
  • controls may include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.
  • the display screen 194 may display virtual keys (one-key programming, start programming, stop programming).
  • the electronic device 101 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 101 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 101 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 101 may support one or more video codecs.
  • the electronic device 101 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 101 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 101 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 101 by executing the instructions stored in the internal memory 121 .
  • the processor 110 may perform scene arrangement by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 101 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 101 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 101 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 101 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 101 may be provided with at least one microphone 170C. In other embodiments, the electronic device 101 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 101 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 101 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 101 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 101 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion attitude of the electronic device 101 .
  • the angular velocity of electronic device 101 about three axes may be determined by gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 101, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to offset the shaking of the electronic device 101 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 101 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 101 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 101 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 101 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 101 is stationary. It can also be used to identify the posture of terminal devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 101 can measure distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 101 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 101 emits infrared light to the outside through light emitting diodes.
  • Electronic device 101 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 101 . When insufficient reflected light is detected, the electronic device 101 may determine that there is no object near the electronic device 101 .
  • the electronic device 101 can use the proximity light sensor 180G to detect that the user holds the electronic device 101 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 101 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 101 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 101 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 101 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 101 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 101 heats the battery 142 to avoid abnormal shutdown of the electronic device 101 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 101 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 101 , which is different from the position where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 101 can receive key input and generate key signal input related to user settings and function control of the electronic device 101 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 101 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 101 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 101 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the electronic device 101 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 101 and cannot be separated from the electronic device 101 .
  • an operating system runs on the above-mentioned components.
  • the iOS operating system developed by Apple the Android open source operating system developed by Google
  • the Windows operating system developed by Microsoft the Windows operating system developed by Microsoft.
  • Applications can be installed and run on this operating system.
  • the screen projection control method is described by taking the Android open source operating system running on the electronic device as an example.
  • FIG. 4 is a schematic diagram of an electronic device displaying multimedia information.
  • the application in the electronic device will first apply for the handle of the native buffer (Surface ) to determine the graphical interface to be displayed, such as size, position, and display content, and send Surface data to Surfaceflinger, where Surface data can be understood as a layer in Surfaceflinger.
  • Surfaceflinger then sends the key information in the above layer data to be synthesized to the hardware hybrid renderer (Hardware Composer, HWC).
  • HWC marks the key information according to the performance of the GPU and/or whether the GPU is in an idle state and other information.
  • FIG. 5 is a schematic diagram of displaying multimedia information by an electronic device in a screen projection scenario in the prior art.
  • electronic device A is the source device and electronic device B is the destination device, that is to say, electronic device A can be Project the display content in its display interface to the electronic device B for display at the same time.
  • the electronic device A in addition to completing its own interface display, the electronic device A also needs to synthesize the display content displayed on the electronic device B.
  • the Surfaceflinger in the electronic device A will create a virtual screen, and the virtual screen is used to send screen information through the network, where the screen information can be understood as the current needs to be displayed in the display screen of the electronic device A.
  • multimedia information After obtaining the layer to be synthesized corresponding to the multimedia information displayed on the electronic device A, Surfaceflinger sends the layer to be synthesized to the HWC in the electronic device A.
  • the multimedia information displayed on the virtual screen needs to be The layer to be synthesized corresponding to the information is sent to the GPU in the electronic device A. It can be understood that the layer to be synthesized corresponding to the multimedia information displayed on the electronic device A is the same as the layer to be synthesized corresponding to the multimedia information displayed on the virtual screen.
  • the GPU in the electronic device A After the GPU in the electronic device A completes the layer synthesis, it will output the data to be encoded in the RGBA8888 format, and send the data to be encoded to the encoder.
  • transport protocol RTP
  • RTP control protocol RTP control protocol
  • the encoded compressed data is packaged, and then passed through the transmission control protocol (transmission control protocol, TCP) or user datagram protocol (user datagram protocol, UDP) ), and send the packaged data to electronic device B.
  • TCP transmission control protocol
  • UDP user datagram protocol
  • the packaged data can be sent to the electronic device B through a WIFI network.
  • electronic device B After receiving the packaged data sent by electronic device A, electronic device B will unpack the received data according to RTP or RTCP, and send the unpacked data to the decoder for decoding. , so that the decoded content, that is, the multimedia information, can be obtained, and the electronic device B sends the obtained multimedia information to the display system, so as to display the multimedia information through the LCD.
  • the HWC After the GPU in the electronic device A completes the layer synthesis, the HWC performs local layer synthesis, and sends the synthesized layer data to the LCD, so that the electronic device A can display the multimedia information corresponding to the synthesized layer data. .
  • the process of layer composition by HWC and the process of layer composition by GPU are executed serially, that is to say, HWC needs to wait for GPU to complete layer composition before performing layer composition. Therefore, the efficiency of the execution process is low, so that the screen projection display process of multimedia information is inefficient.
  • the GPU after the GPU completes the layer composition, it will output the data in RGBA8888 format to the encoder for encoding. Since the RGBA8888 format includes red channel, green channel, blue channel and alpha (transparency) channel, each channel occupies 8 bits. The data in this format takes up a lot of space and memory.
  • a 1024*1024 image occupies a space of 1024*1024*4, that is, it occupies 4M
  • a 2048*2048 image occupies a space of 2048*2048*32/8/ 1000/1000, that is, 16M
  • the size of the space occupied by the texture generated by OpenGL ES will be automatically expanded to the power of 2 when the texture is generated.
  • 85*121 image after the texture is generated, the memory occupied is 64k.
  • the background picture of the whole scene or a large number of gradient pictures usually use the RGBA8888 format. It can be seen from the above that pictures in RGBA8888 format usually have a large amount of data and occupy a large memory space, resulting in low data transmission efficiency and low efficiency in the process of projection and display of multimedia information.
  • the present application proposes a screen projection control method.
  • the method is applied to a first electronic device.
  • the first electronic device includes a GPU and an HWC.
  • the first electronic device is in a screen projection state, it is determined to Whether the layer to be composited corresponding to the multimedia information displayed on the screen contains a video security layer, if it does not contain a video security layer, the layer to be composited can be sent to the GPU and HWC respectively, and then the composite image is processed in parallel by the GPU and the HWC.
  • the layers are synthesized, and the first layer synthesized by the GPU is sent to the second electronic device, so as to display the multimedia information corresponding to the first layer on the second electronic device, and display the multimedia information corresponding to the second layer synthesized by the HWC. .
  • the layer to be synthesized can be synthesized by the GPU and the HWC in parallel, so that the efficiency of layer synthesis can be improved, thereby improving the multimedia information. Screencasting efficiency.
  • the data format of the first layer synthesized by the GPU can be set to the first data format, for example, YUV420sp. Since the data volume of the data in the first data format is smaller than the data volume of the RGBA8888 data, the data volume can be improved. Transmission efficiency, thereby further improving the screen projection efficiency of multimedia information.
  • FIG. 6 is a signaling diagram of a screen projection control method provided by an embodiment of the present application. It should be noted that although the steps of the method are presented in a specific order in the embodiments of the present application, they may be implemented in different ways. The order of the steps may be changed in the example, and in some embodiments, one or more of the steps shown in the order in this specification may be performed concurrently. As shown in Figure 6, the method includes:
  • Step 601 When the first electronic device is in a screen projection state, the first electronic device determines whether a video security layer is included in the layer to be synthesized corresponding to the multimedia information to be displayed on the screen.
  • the multimedia information includes pictures, videos, or audios.
  • the to-be-synthesized layer corresponding to the multimedia information is used to represent the graphic interface to be displayed, including the interface size, location, and content displayed in the interface.
  • the number of layers to be synthesized may be one or multiple.
  • the first electronic device When the first electronic device displays multimedia information, it needs to identify the display state, that is, to identify whether the current first electronic device is in a screen projection state or in a local display state. In a possible implementation manner, it can be determined whether the method for creating a virtual screen and the method for creating an encoder are called, and if it is determined that the method for creating a virtual screen and the method for creating an encoder are called, it can be determined that the first electronic device is in screen projection. state, otherwise, it can be determined that the first electronic device is in the state displayed on the local end.
  • the first electronic device will create a virtual screen and an encoder by default, wherein the virtual screen is used to prepare data to be sent, and the data to be sent can be understood as multimedia Information data, which is used by the second electronic device to display multimedia information.
  • Encoders are used to compress data.
  • the first electronic device when creating a virtual screen, the first electronic device usually calls a method for creating a virtual screen (create virtual display), and when creating an encoder, it usually calls a method for creating an encoder (MediaCodec.create).
  • the first electronic device determines that the above two methods are called, it will determine that it has entered the screen-casting state, and at this time, the status bit of the screen-casting will be initialized, for example, setting the screencasting CastScreenTag to True.
  • the first electronic device determines that the above two methods have not been invoked, it can be determined that the first electronic device is in the state of local display, that is, only the multimedia information is displayed locally.
  • the first electronic device After it is determined that the first electronic device is in the screen projection state, the first electronic device will initialize the distributed layer synthesis module, that is, create a distributed layer synthesis module.
  • the first electronic device submits the layer to be synthesized corresponding to the multimedia information that needs to be projected and displayed to the surfacefligner through the distributed layer synthesis module, and analyzes the properties of the layer to be synthesized to determine whether the layer to be synthesized contains Video safe layer.
  • the buffer corresponding to the video security layer is the memory allocated by the security memory allocator, which does not allow screen capture.
  • the layer to be synthesized does not contain a video security layer.
  • Step 602 If the video security layer is not included, the first electronic device sends the layer to be synthesized to the GPU and the HWC, respectively.
  • the layer to be synthesized will be sent to the GPU and the HWC at the same time to synthesize the layer to be synthesized.
  • the layer to be synthesized corresponding to the multimedia information to be displayed on the screen includes a video security layer
  • the content corresponding to the video security layer can only be performed locally. display, and cannot be sent to the screen-casting device for screen-casting display. Therefore, when the first electronic device performs screen projection, it needs to first determine whether the layer to be synthesized includes a video security layer, and when it is determined that the video security layer is not included, send the layer to be synthesized to the GPU and the GPU at the same time. HWC.
  • Step 603 The first electronic device synthesizes the layer to be synthesized in parallel through the GPU and the HWC.
  • FIG. 7 is a schematic diagram of displaying multimedia information by an electronic device in a screen projection scenario provided by an embodiment of the present application.
  • the first electronic device will pass the GPU Synthesizing the layer to be synthesized in parallel with the HWC can also be understood as that the GPU and the HWC will synthesize the received layer to be synthesized at the same time. Since the GPU and HWC can synthesize the layers to be synthesized in parallel, the efficiency of layer synthesis can be improved.
  • the data format of the first layer synthesized by the GPU may be set to the first data format, wherein the data amount of the data in the first data format is less than Data volume of RGBA8888 data.
  • the data transmission volume of the data in the first data format is smaller than that of the RGBA8888 data, the data transmission volume can be reduced, the data transmission efficiency can be improved, the storage efficiency can be optimized, and the display bandwidth can be reduced.
  • the first data format may be YUV420sp.
  • the YUV420P format and the YUV420sp format can be generated.
  • YUV420P is stored after Y and then V, which is equivalent to chw in RGB, and can be subdivided into I420 (also called YU12) and YV12 formats; and YUV420SP is Y followed by UV alternating..., and can be subdivided For NV12 and NV21 formats.
  • the four segment formats are as follows:
  • NV12 NV12
  • FourCC is 0x3231564E
  • 1 pixel 12bit 8-bit Y plane
  • after the end of the Y channel plane is the crossed U/V channel plane
  • U/V uses a 2x2 sampling rate (each is a quarter of Y one).
  • NV21 FourCC is 0x3132564E, 1 pixel 12bit, the same as NV12 - except that when U/V crosses, it is V first and then U, that is, the difference between U/V and V/U; among them, in the current Android system
  • the standard of the camera image is this format;
  • I420 also called YU12
  • FourCC is 0x30323449, 1 pixel 12bit, 8bit After the Y channel plane ends, it is the U channel plane, and finally the V channel plane;
  • the data transmission volume of the YUV420sp data is smaller than that of the RGBA8888 data, the data transmission volume can be reduced, thereby improving the data transmission efficiency.
  • Step 604 The first electronic device sends the first layer synthesized by the GPU to the second electronic device.
  • the GPU synthesizes the layer to be synthesized, and after obtaining the first layer, the first layer can be sent to the second electronic device, so that the second electronic device can display corresponding multimedia information.
  • the first electronic device may encode the first layer to obtain the encoded layer, and package the encoded layer according to RTP or RTCP, and then package the encoded layer.
  • the latter layer is sent to the second electronic device.
  • the GPU after synthesizing the first layer, the GPU sends the first layer to the encoder to encode and compress the first layer, thereby obtaining an encoded layer. After that, the first electronic device will perform RTP or RTCP packaging on the obtained encoded layer, and then send the packaged layer to the second electronic device through the WIFI network through TCP or UDP.
  • the packaged layer is sent to the second electronic device, This can not only improve the security of layer data, but also reduce the amount of data transmission and improve the efficiency of data transmission.
  • Step 605 The first electronic device displays the multimedia information corresponding to the second layer synthesized by the HWC.
  • the first electronic device will send the second layer to the LCD to display the first layer on the LCD.
  • the multimedia information corresponding to the second layer is the multimedia information that needs to be projected and displayed on the screen.
  • Step 606 The second electronic device parses the first layer to obtain multimedia information.
  • the second electronic device may parse the first layer to obtain multimedia information to be displayed.
  • the first layer can be unpacked according to RTP or RTCP, the unpacked layer is decoded, and then the format of the decoded layer is converted from the first data format to the RGBA8888 format, Get multimedia information.
  • the second electronic device will use RTP to unpack the received first layer.
  • the encoded layer is packaged, and correspondingly, the second electronic device will use RTCP to unpack the received first layer. After that, the unpacked layer is sent to the decoder to decode the unpacked layer.
  • the format of multimedia information is usually required to be RGBA8888 format. Since the format of the first layer synthesized by the GPU of the first electronic device is the first data format, the second electronic device It is also necessary to convert the format of the decoded layer from the first data format to the RGBA8888 format, thereby obtaining multimedia information.
  • the second electronic device converts the format of the decoded layer from the first data format to the RGBA8888 format, thereby ensuring the correct display of multimedia information.
  • step 604 may be performed first, and then step 605 may be performed, or step 605 may be performed first, and then step 604 may be performed, and of course, step 604 and step 605 may be performed simultaneously.
  • Step 607 The second electronic device displays multimedia information.
  • the second electronic device can send the obtained multimedia information to the display system, so as to display it through the LCD.
  • the multimedia information displayed on the second electronic device is the same as the multimedia information displayed on the first electronic device.
  • the screen projection control method provided by the embodiment of the present application is applied to a first electronic device, where the first electronic device includes a GPU and an HWC, and when the first electronic device is in a screen projection state, it is determined that the multimedia information to be displayed on the screen corresponds to Whether the layer to be synthesized contains a video security layer, if it does not contain a video security layer, the layer to be synthesized can be sent to the GPU and HWC respectively, and then the layer to be synthesized can be synthesized by the GPU and the HWC in parallel, and the The first layer synthesized by the GPU is sent to the second electronic device, so that the multimedia information corresponding to the first layer and the multimedia information corresponding to the second layer synthesized by the HWC are displayed on the second electronic device.
  • the layer to be synthesized corresponding to the multimedia information to be displayed on the screen does not include the video security layer
  • the layer to be synthesized can be synthesized by the GPU and the HWC in parallel, so that the efficiency of layer synthesis can be improved, thereby improving the multimedia information.
  • the data format of the first layer synthesized by the GPU can be set to the first data format, for example, YUV420sp. Since the data volume of the data in the first data format is smaller than the data volume of the RGBA8888 data, the data volume can be improved. Transmission efficiency, thereby further improving the screen projection efficiency of multimedia information.
  • FIG. 8 is a schematic structural diagram of a screen projection control device 80 provided by an embodiment of the present application.
  • the device includes a graphics processor GPU and a hardware hybrid renderer HWC.
  • the screen projection control device 80 may include:
  • a processing unit 801 configured to determine whether a video security layer is included in the layer to be synthesized corresponding to the multimedia information to be controlled by the screen projection when the screen projection control device is in a screen projection state;
  • a sending unit 802 configured to send the layer to be synthesized to the GPU and the HWC respectively when the video security layer is not included;
  • the processing unit 801 is further configured to synthesize the layer to be synthesized in parallel by the GPU and the HWC;
  • the sending unit 802 is further configured to send the first layer synthesized by the GPU to a second electronic device, so as to display the multimedia information corresponding to the first layer on the second electronic device;
  • the display unit 803 is configured to display the multimedia information corresponding to the second layer synthesized by the HWC.
  • the format of the first layer is a first data format, and the data volume of the data in the first data format is smaller than the data volume of the RGBA8888 data.
  • the first data format is YUV420sp.
  • the sending unit 802 is specifically configured to:
  • the sending unit 802 is specifically configured to:
  • the packaged layer is sent to the second electronic device through transmission control protocol TCP or user datagram protocol UDP.
  • processing unit 801 is specifically configured to:
  • the screen projection control device 80 shown in the embodiments of the present application can implement the technical solutions of the screen projection control methods shown in any of the above embodiments, and the implementation principles and beneficial effects thereof are similar, and will not be repeated here.
  • each unit of the above apparatus is only a division of logical functions, and in actual implementation, it may be fully or partially integrated into a physical entity, or may be physically separated.
  • these units can all be implemented in the form of software calling through processing elements; also all can be implemented in hardware; some units can also be implemented in the form of calling through processing elements through software, and some units can be implemented in the form of hardware.
  • the sending unit may be a separately established processing element, or may be integrated into a certain chip of the device for determining the feedback resource, and it may also be stored in the memory of the device for determining the feedback resource in the form of a program.
  • a certain processing element of the device for determining feedback resources invokes and executes the function of the sending unit.
  • each step of the above method or each above unit can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
  • the above sending unit is a unit for controlling sending, and can send information through the sending device of the device for determining the feedback resource, such as an antenna and a radio frequency device.
  • These units may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASIC), or one or more digital singnal processors , DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA) and so on.
  • ASIC application specific integrated circuits
  • DSP digital singnal processors
  • FPGA field programmable gate array
  • the processing element may be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • FIG. 9 is a schematic structural diagram of a screen projection control device 90 according to an embodiment of the present application.
  • the screen projection control device 90 may include:
  • the receiving unit 901 is configured to receive a first layer sent by a first electronic device, where the first layer is when the first electronic device is in a screen-projecting state, and the to-be-to-be-displayed multimedia information to be displayed on the screen is determined.
  • the composite layer does not include a video security layer, it is obtained by synthesizing in parallel with the second layer, the first layer is synthesized by the graphics processor GPU in the first electronic device, and the second image The layer is synthesized by the hardware hybrid renderer HWC in the first electronic device;
  • a processing unit 902 configured to parse the first layer to obtain the multimedia information
  • the display unit 903 is configured to display the multimedia information.
  • the format of the first layer is a first data format, and the data volume of the data in the first data format is smaller than the data volume of the RGBA8888 data.
  • the first data format is YUV420sp.
  • the processing unit 902 is specifically configured to: unpack the first layer according to the real-time transmission protocol RTP or the RTP control protocol RTCP; decode the unpacked layer; The format of the layer is converted from the first data format to the RGBA8888 format to obtain multimedia information.
  • the receiving unit 901 is specifically configured to: receive the first layer data through a transmission control protocol TCP or a user datagram protocol UDP.
  • TCP transmission control protocol
  • UDP user datagram protocol
  • the screen projection control device shown in the embodiments of the present application can implement the technical solutions of the resource determination methods shown in any of the above embodiments, and the implementation principles and beneficial effects thereof are similar, which will not be repeated here.
  • each unit of the above apparatus is only a division of logical functions, and in actual implementation, it may be fully or partially integrated into a physical entity, or may be physically separated.
  • these units can all be implemented in the form of software calling through processing elements; also all can be implemented in hardware; some units can also be implemented in the form of calling through processing elements through software, and some units can be implemented in the form of hardware.
  • the sending unit may be a separately established processing element, or may be integrated into a certain chip of the device for determining the feedback resource, and it may also be stored in the memory of the device for determining the feedback resource in the form of a program.
  • a certain processing element of the device for determining feedback resources invokes and executes the function of the sending unit.
  • each step of the above-mentioned method or each of the above-mentioned units can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
  • the above sending unit is a unit for controlling sending, and can send information through the sending device of the device for determining the feedback resource, such as an antenna and a radio frequency device.
  • These units may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASIC), or one or more digital singnal processors , DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA) and so on.
  • ASIC application specific integrated circuits
  • DSP digital singnal processors
  • FPGA field programmable gate array
  • the processing element may be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC). .
  • SOC system-on-a-chip
  • FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device includes: a processor 1001 , a memory 1002 , and a transceiver 1003 .
  • the transceiver 1003 may be connected to an antenna.
  • the transceiver 1003 receives the information sent by the base station through the antenna, and sends the information to the processor 1001 for processing.
  • the processor 1001 processes the data of the terminal, and sends the data to the base station through the transceiver 1003 .
  • the memory 1002 is used to store programs for implementing the above method embodiments or each unit of the embodiment shown in FIG. 8 or FIG. 9 .
  • the processor 1001 calls the program to execute the operations of the above method embodiments, so as to realize the programs shown in FIG. 8 or FIG. 9 . each unit shown.
  • the above units can also be implemented by being embedded in a certain chip of the electronic device in the form of an integrated circuit. And they can be implemented individually or integrated together. That is, the above units can be configured as one or more integrated circuits that implement the above methods, such as: one or more specific integrated circuits (application specific integrated circuits, ASIC), or, one or more microprocessors (digital singnal processor). , DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA) and so on.
  • ASIC application specific integrated circuits
  • microprocessors digital singnal processor
  • FPGA field programmable gate array
  • An embodiment of the present application further provides a chip, the chip includes a programmable logic circuit and an input interface, the input interface is used to acquire data to be processed, and the logic circuit is used to perform any one of the above implementations on the data to be processed
  • the chip includes a programmable logic circuit and an input interface
  • the input interface is used to acquire data to be processed
  • the logic circuit is used to perform any one of the above implementations on the data to be processed
  • An embodiment of the present application further provides a computer-readable storage medium, where an instruction is stored in the computer-readable storage medium, and when the instruction is executed on an electronic device, the electronic device is made to execute any of the above-mentioned embodiments.
  • the embodiments of the present application also provide a computer program product, when the computer program product runs on an electronic device, the electronic device is made to execute the screen projection control method shown in any of the above embodiments, and its implementation principle and benefits The effect is similar to the realization principle and beneficial effect of the screen projection control method, which will not be repeated here.
  • the processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (field programmable gate array, FPGA) Or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • Software modules can be located in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory or electrically erasable programmable memory, registers, etc. in the storage medium.
  • RAM random access memory
  • ROM read-only memory
  • the storage medium is located in the memory, and the processor reads the instructions in the memory, and completes the steps of the above method in combination with its hardware.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

一种投屏控制方法和装置,该投屏控制方法和装置应用于视频处理技术领域,其中,该方法应用于第一电子设备,第一电子设备包括图形处理器GPU和硬件混合渲染器HWC,该方法包括:在第一电子设备处于投屏状态时,确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层(步骤601);若不包含视频安全图层,则将待合成图层分别发送给GPU和HWC(步骤602);通过GPU和HWC并行对待合成图层进行合成(步骤603),并将GPU合成的第一图层发送给第二电子设备(步骤604),以在第二电子设备上显示第一图层对应的多媒体信息(步骤607);显示HWC合成的第二图层对应的多媒体信息(步骤605)。所述投屏控制方法和装置可以提高图层合成的效率,进而提高多媒体信息投屏的效率。

Description

投屏控制方法和装置
本申请要求于2020年09月25日提交中国专利局、申请号为202011027392.2、申请名称为“投屏控制方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端技术领域,尤其涉及一种投屏控制方法和装置。
背景技术
随着互联网技术的发展,投屏技术得到了广泛的应用。其中,投屏是指将设备A的多媒体文件投放至设备B中,使设备B也能够同步显示设备A的显示多媒体文件。通过投屏技术可以将显示屏较小的设备(例如手机、平板电脑)的多媒体文件,投射至大屏显示设备上(例如电视、车载多媒体显示屏),从而达到更好的观看效果,以及便于与多人分享多媒体文件。
现有技术中,通常采用屏幕镜像投屏的方式,即将设备A(即投屏设备)显示的多媒体文件的全部内容完整的投射至设备B(即显示设备)上,使设备B显示的内容与设备A显示的内容一致。具体的,设备A通过图形处理器(Graphics Processing Unit,GPU)合成在设备B上显示的数据,并发送给设备B后,再通过硬件混合渲染器(Hardware Composer,HWC)合成自身显示的数据,从而完成投屏。
然而,上述的投屏方式中,投屏的效率较低。
发明内容
本申请实施例提供一种投屏控制方法和装置,可以提高图层合成的效率,进而提高多媒体信息投屏的效率。
第一方面,本申请实施例提供一种投屏控制方法,应用于第一电子设备,所述第一电子设备包括图形处理器GPU和硬件混合渲染器HWC,所述方法包括:在所述第一电子设备处于投屏状态时,确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层;若不包含所述视频安全图层,则将所述待合成图层分别发送给所述GPU和所述HWC;通过所述GPU和所述HWC并行对所述待合成图层进行合成,并将所述GPU合成的第一图层发送给第二电子设备,以在所述第二电子设备上显示所述第一图层对应的所述多媒体信息;显示所述HWC合成的第二图层对应的所述多媒体信息。
在本方案中,由于在待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,可以通过GPU和HWC并行对待合成图层进行合成,从而可以提高图层合成的效率,进而提高多媒体信息投屏的效率。
在一种可能的实现方式中,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
在本方案中,由于第一数据格式的数据的数据量小于RGBA8888的数据的数据量, 因此,可以减小数据的传输量,提高数据的传输效率,而且可以优化存储效率,降低显示带宽。
在一种可能的实现方式中,所述第一数据格式为YUV420sp。
在本方案中,由于YUV420sp的数据的数据量小于RGBA8888的数据的数据量,因此,可以减小数据的传输量,从而提高数据的传输效率。
在一种可能的实现方式中,所述将所述GPU合成的第一图层发送给第二电子设备,包括:将所述第一图层进行编码,得到编码后的图层;根据实时传输协议RTP或RTP控制协议RTCP,将所述编码后的图层进行打包;将打包处理后的图层发送给所述第二电子设备。
在本方案中,由于第一电子设备会将第一图层进行编码压缩,并对编码后的图层进行RTP或RTCP打包处理,从而将打包处理后的图层发送给第二电子设备,由此不仅可以提高图层数据的安全性,而且可以减小数据的传输量,提高数据传输的效率。
在一种可能的实现方式中,所述将打包处理后的图层发送给所述第二电子设备,包括:通过传输控制协议TCP或用户数据报协议UDP,将所述打包处理后的图层发送给所述第二电子设备。
在一种可能的实现方式中,确定所述第一电子设备处于投屏状态,包括:确定是否调用了创建虚拟屏方法和创建编码器方法;若确定调用了所述创建虚拟屏方法和所述创建编码器方法,则确定所述第一电子设备处于投屏状态。
在本方案中,通过确定是否调用了创建虚拟屏方法和创建编码器方法,来确定第一电子设备是否处于投屏状态,由此可以提高确定投屏状态的效率和准确性。
第二方面,本申请实施例提供一种投屏控制方法,应用于第二电子设备,所述方法包括:接收第一电子设备发送的第一图层,所述第一图层为所述第一电子设备处于投屏状态时,在确定出待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,与第二图层并行合成得到的,所述第一图层为通过所述第一电子设备中的图形处理器GPU合成的,所述第二图层为通过所述第一电子设备中的硬件混合渲染器HWC合成的;对所述第一图层进行解析,得到所述多媒体信息;显示所述多媒体信息。
在本方案中,由于在待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,可以通过GPU和HWC并行对待合成图层进行合成,从而可以提高图层合成的效率,进而提高多媒体信息投屏的效率。
在一种可能的实现方式中,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
在本方案中,由于第一数据格式的数据的数据量小于RGBA8888的数据的数据量,因此,可以减小数据的传输量,提高数据的传输效率,而且可以优化存储效率,降低显示带宽。
在一种可能的实现方式中,所述第一数据格式为YUV420sp。
在本方案中,由于YUV420sp的数据的数据量小于RGBA8888的数据的数据量,因此,可以减小数据的传输量,从而提高数据的传输效率。
在一种可能的实现方式中,所述对所述第一图层进行解析,得到所述多媒体信息,包括:根据实时传输协议RTP或RTP控制协议RTCP,对所述第一图层进行解包;将解包处 理后的图层进行解码;将解码后的图层的格式由所述第一数据格式转换为所述RGBA8888格式,得到多媒体信息。
在本方案中,第二电子设备将解码后的图层的格式由第一数据格式转换为RGBA8888格式,从而可以保证多媒体信息的正确显示。
在一种可能的实现方式中,所述接收第一电子设备发送的第一图层数据,包括:通过传输控制协议TCP或用户数据报协议UDP,接收所述第一图层数据。
第三方面,本申请实施例提供一种投屏控制装置,所述装置包括图形处理器GPU和硬件混合渲染器HWC,所述装置包括:处理单元,用于在所述投屏显示装置处于投屏状态时,确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层;发送单元,用于在不包含所述视频安全图层时,将所述待合成图层分别发送给所述GPU和所述HWC;所述处理单元,还用于通过所述GPU和所述HWC并行对所述待合成图层进行合成;所述发送单元,还用于将所述GPU合成的第一图层发送给第二电子设备,以在所述第二电子设备上显示所述第一图层对应的所述多媒体信息;显示单元,用于显示所述HWC合成的第二图层对应的所述多媒体信息。
在一种可能的实现方式中,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
在一种可能的实现方式中,所述第一数据格式为YUV420sp。
在一种可能的实现方式中,所述发送单元,具体用于:将所述第一图层进行编码,得到编码后的图层;根据实时传输协议RTP或RTP控制协议RTCP,将所述编码后的图层进行打包;将打包处理后的图层发送给所述第二电子设备。
在一种可能的实现方式中,所述发送单元,具体用于:通过传输控制协议TCP或用户数据报协议UDP,将所述打包处理后的图层发送给所述第二电子设备。
在一种可能的实现方式中,所述处理单元,具体用于:确定是否调用了创建虚拟屏方法和创建编码器方法;若确定调用了所述创建虚拟屏方法和所述创建编码器方法,则确定所述第一电子设备处于投屏状态。
第四方面,本申请实施例提供一种投屏控制装置,包括:接收单元,用于接收第一电子设备发送的第一图层,所述第一图层为所述第一电子设备处于投屏状态时,在确定出待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,与第二图层并行合成得到的,所述第一图层为通过所述第一电子设备中的图形处理器GPU合成的,所述第二图层为通过所述第一电子设备中的硬件混合渲染器HWC合成的;处理单元,用于对所述第一图层进行解析,得到所述多媒体信息;显示单元,用于显示所述多媒体信息。
在一种可能的实现方式中,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
在一种可能的实现方式中,所述第一数据格式为YUV420sp。
在一种可能的实现方式中,所述处理单元,具体用于:根据实时传输协议RTP或RTP控制协议RTCP,对所述第一图层进行解包;将解包处理后的图层进行解码;将解码后的图层的格式由所述第一数据格式转换为所述RGBA8888格式,得到多媒体信息。
在一种可能的实现方式中,所述接收单元,具体用于:通过传输控制协议TCP或用户数据报协议UDP,接收所述第一图层数据。
第五方面,本申请实施例提供一种投屏控制装置,所述装置包括显示器、处理器和存储器,所述存储器中存储有计算机程序,所述处理器执行所述存储器中存储的计算机程序,以使所述装置执行如第一方面或第二方面所述的方法。
第六方面,本申请实施例提供一种通信装置,包括:处理器和接口电路;所述接口电路,用于接收代码指令并传输至所述处理器;所述处理器,用于运行所述代码指令以执行如第一方面或第二方面所述的方法。
本申请第三方面到第四方面提到的装置,可以是电子设备,也可以是电子设备内的芯片,电子设备或芯片具有实现上述各方面或其任意可能的设计中的投屏控制方法的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的单元。
电子设备包括:处理单元和收发单元,处理单元可以是处理器,收发单元可以是收发器,收发器包括射频电路,可选地,电子设备还包括存储单元,存储单元例如可以是存储器。当电子设备包括存储单元时,存储单元用于存储计算机执行指令,处理单元与存储单元连接,处理单元执行存储单元存储的计算机执行指令,以使电子设备执行上述各方面或其任意可能的设计中的投屏控制方法。
芯片包括:处理单元和收发单元,处理单元可以是处理器,收发单元可以是芯片上的输入/输出接口、管脚或电路等。处理单元可执行存储单元存储的计算机执行指令,以使芯片执行上述各方面或其任意可能的设计中的投屏控制方法。可选地,存储单元可以是芯片内的存储单元(例如,寄存器、缓存等),存储单元还可以是终端设备内的位于芯片外部的存储单元(例如,只读存储器(read-only memory,ROM))或可存储静态信息和指令的其他类型的静态存储设备(例如,随机存取存储器(random access memory,RAM))等。
上述提到的处理器可以是一个中央处理器(central processing unit,CPU)、微处理器或专用集成电路(application specific integrated circuit,ASIC),也可以是一个或多个用于控制上述各方面或其任意可能的设计的投屏控制方法的程序执行的集成电路。
第七方面,本申请实施例提供一种可读存储介质,用于存储有指令,当所述指令被执行时,使如第一方面或第二方面所述的方法被实现。
第八方面,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请实施例的第一方面至第二方面任一方面提供的投屏控制方法。
本申请实施例提供的投屏控制方法和装置,该方法应用于第一电子设备,该第一电子设备包括GPU和HWC,在第一电子设备处于投屏状态时,确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层,若不包含视频安全图层,则可以将待合成图层分别发送给GPU和HWC,然后通过GPU和HWC并行对待合成图层进行合成,并将GPU合成的第一图层发送给第二电子设备,以在第二电子设备上显示第一图层对应的多媒体信息,并显示HWC合成的第二图层对应的多媒体信息。由于在待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,可以通过GPU和HWC并行对待合成图层进行合成,从而可以提高图层合成的效率,进而提高多媒体信息投屏的效率。
附图说明
图1为本申请实施例提供的一种投屏控制方法的应用场景架构示意图;
图2为本申请实施例提供的一种投屏控制方法的另一应用场景架构示意图;
图3示出了一种电子设备的结构示意图;
图4为电子设备进行多媒体信息显示的示意图;
图5为现有技术中在投屏场景下电子设备进行多媒体信息显示的示意图;
图6为本申请实施例提供的一种投屏控制方法的信令图;
图7为本申请实施例提供的在投屏场景下电子设备进行多媒体信息显示的示意图;
图8为本申请实施例提供的一种投屏控制装置的结构示意图;
图9为本申请实施例提供的一种投屏控制装置的结构示意图;
图10为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
本申请说明书和权利要求书及附图说明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍:
本申请实施例所涉及的投屏是指第一电子设备上的多媒体信息(如音频、视频、图片等)传输至第二电子设备上呈现,实现多个电子设备之间同步显示相同多媒体信息的效果。本申请所涉及的投屏可包括有线投屏和无线投屏,其中有线投屏可以通过高清多媒体接口(high definition multimedia interface,HDMI)建立多个电子设备之间的连接,并通过HDMI传输线传输多媒体信息。无线投屏可以通过Miracast协议建立多个电子设备之间的连接,并通过局域网(local area network,LAN)或广域网(wide area network,WAN)传输多媒体信息。
图1为本申请实施例提供的一种投屏控制方法的应用场景架构示意图,如图1所示,本申请下述各实施例提供的投屏控制方法,可应用于电子设备组200中,该电子设备组200内的各个电子设备100之间可以通过LAN或WAN互相通信。
例如,可将用户的手机、平板电脑、台式电脑、智能手表以及笔记本电脑作为电子设备组200,当用户使用同一个账号登录该手机、平板电脑、台式电脑、智能手表以及笔记本电脑时,该手机、平板电脑、台式电脑以及笔记本电脑之间可通过广域网互相通信。
又例如,可将用户的手机、平板电脑、台式电脑、智能手表以及笔记本电脑接入同一个路由器上。此时,上述手机、平板电脑、台式电脑、智能手表以及笔记本电脑可形成一个局域网,局域网内的各个设备之间可以路由器实现互相通信。
又例如,电子设备100之间也可以通过无线通信方式(例如,蓝牙,无线保真(wireless fidelity,WIFI)或ZigBee网络等)组成一个对等网络(也可称为P2P网络)。例如,用户可将手机、平板电脑、智能手表以及笔记本电脑均加入名称为“1234”的Wi-Fi网络。该Wi-Fi网络内的各个电子设备100形成了一个P2P网络,该P2P网络内的所有设备均为电 子设备组200中的成员。
当然,电子设备组200内的各电子设备100之间还可以通过蜂窝网络互联,或者,各电子设备100之间还可以通过转接设备(例如,USB数据线或Dock设备)互联,从而实现电子设备组200内各个电子设备100之间的通信功能,本发明实施例对此不作任何限制。
在本申请实施例中,电子设备组200中一个或多个电子设备100可以作为源设备,同时,电子设备组200中一个或多个电子设备100可以作为目的设备。源设备可将其显示界面中的显示内容投射至目的设备中显示。
图2为本申请实施例提供的一种投屏控制方法的另一应用场景架构示意图,如图2所示,示例性的,以电子设备101为源设备举例,电子设备102和电子设备103均可作为电子设备101的目的设备。电子设备101可将其显示界面中的显示内容同时投射至电子设备102和电子设备103中显示。也就是说,一个源设备可以同时向多个目的设备进行投屏显示。
在一些实施例中,上述电子设备组200中各个电子设备的具体结构可以是相同的,也可以是不同的。
例如,上述各个电子设备具体可以是手机、平板电脑、智能电视、可穿戴电子设备、车机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、虚拟现实设备等,本申请实施例对此不做任何限制。
示例性的,图3示出了一种电子设备的结构示意图。如图3所示,电子设备101可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本实施例示意的结构并不构成对电子设备101的具体限定。在另一些实施例中,电子设备101可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。例如,在本申请中,处理器110可以获取当前状态信息。
其中,控制器可以是电子设备101的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备101的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备101的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备101的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB 接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备101充电,也可以用于电子设备101与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备101的结构限定。在本申请另一些实施例中,电子设备101也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备101的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备101的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备101中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备101上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备101上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT), 全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理单元的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备101的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备101可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备101通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oled,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备101可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备101的显示屏194上可以显示一系列图形用户界面(graphical user interface,GUI),这些GUI都是该电子设备101的主屏幕。一般来说,电子设备101的显示屏194的尺寸是固定的,只能在该电子设备101的显示屏194中显示有限的控件。控件是一种GUI元素,它是一种软件组件,包含在应用程序中,控制着该应用程序处理的所有数据以及关于这些数据的交互操作,用户可以通过直接操作(direct manipulation)来与控件交互,从而对应用程序的有关信息进行读取或者编辑。一般而言,控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。例如,在本申请实施例中,显示屏194可以显示虚拟按键(一键编排、开始编排、停止编排)。
电子设备101可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP 还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备101可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备101在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备101可以支持一种或多种视频编解码器。这样,电子设备101可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备101的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备101的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备101的各种功能应用以及数据处理。例如,在本实施例中,处理器110可以通过执行存储在内部存储器121中的指令,进行场景编排。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备101使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备101的各种功能应用以及数据处理。
电子设备101可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备101可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备101接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备101可以设置至少一个麦克风170C。在另一些实施例中,电子设备101可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备101还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备101根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备101根据压力传感器180A检测所述触摸操作强度。电子设备101也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备101的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备101围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备101抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备101的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备101通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备101可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备101是翻盖机时,电子设备101可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备101在各个方向上(一般为三轴)加速度的大小。当电子设备101静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备101可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备101可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备101通过发光二极管向外发射红外光。电子设 备101使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备101附近有物体。当检测到不充分的反射光时,电子设备101可以确定电子设备101附近没有物体。电子设备101可以利用接近光传感器180G检测用户手持电子设备101贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备101可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备101是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备101可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备101利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备101执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备101对电池142加热,以避免低温导致电子设备101异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备101对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备101的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备101可以接收按键输入,产生与电子设备101的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备101的接触和分离。电子设备101可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备101通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备101采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备101中,不能和电子设备101分离。
另外,在上述部件之上,运行有操作系统。例如苹果公司所开发的iOS操作系统,谷歌公司所开发的Android开源操作系统,微软公司所开发的Windows操作系统等。在该操作系统上可以安装运行应用程序。
下面,以电子设备上运行Android开源操作系统为例说明投屏控制方法。
图4为电子设备进行多媒体信息显示的示意图,如图4所示,以多媒体信息为图片为例,电子设备在进行图片显示时,电子设备中的应用程序会先申请原生缓冲器的句柄(Surface),以确定出要显示的图形界面,如大小、位置和显示内容等,并将Surface数据发送到Surfaceflinger,其中,在Surfaceflinger中,Surface数据可以被理解为图层(layer)。Surfaceflinger再将待合成的上述图层(layer)数据中的关键信息发送给硬件混合渲染器(Hardware Composer,HWC),HWC根据GPU的性能和/或GPU是否处于空闲状态等信息,标记关键信息中的哪些待合成的图层(layer)数据需要使用GPU合成,哪些待合成的图层(layer)数据需要自己合成。在标记完成之后,Surfaceflinger将需要GPU合成的待合成的图层(layer)数据的完整信息发送给GPU,等待GPU完成合成之后,将合成之后得到的内容与需要HWC合成的待合成的图层(layer)数据的完整信息,一起发送给HWC,从而完成剩余图层(layer)数据的合成。HWC将所有合成之后的图层(layer)数据输出到帧缓存(FrameBuffer)中,从而输出到液晶显示器(liquid crystal display,LCD)进行显示,或者,HWC将所有合成之后的图层(layer)数据直接输出到LCD进行显示。
下面,以一个投屏发起设备,也即源设备,一个被投屏设备,也即目的设备为例,说明现有技术中进行多媒体信息显示的过程。当存在多个被投屏设备时,与只有一个被投屏设备时多媒体信息的显示过程和原理类似,此处不再赘述。图5为现有技术中在投屏场景下电子设备进行多媒体信息显示的示意图,如图5所示,假设电子设备A为源设备,电子设备B为目的设备,也就是说,电子设备A可将其显示界面中的显示内容同时投射至电子设备B中进行显示。其中,电子设备A除了要完成自身的界面显示之外,还需要合成在电子设备B上进行显示的显示内容。
具体的,在开始投屏时,电子设备A中的Surfaceflinger会创建一个虚拟屏,该虚拟屏用于通过网络发送屏幕信息,其中,屏幕信息可以理解为电子设备A的显示屏中当前需要显示的多媒体信息。Surfaceflinger在获取到在电子设备A进行显示的多媒体信息对应的待合成的图层后,将该待合成的图层发送给电子设备A中的HWC,另外,还需要将在虚拟屏进行显示的多媒体信息对应的待合成的图层发送给电子设备A中的GPU。可以理解的是,在电子设备A进行显示的多媒体信息对应的待合成的图层与在虚拟屏进行显示的多媒体信息对应的待合成的图层是相同的。
电子设备A中的GPU完成图层的合成之后,将输出RGBA8888格式的待编码数据,并将该待编码数据发送给编码器,由编码器进行编码压缩之后,再根据实时传输协议(real-time transport protocol,RTP)或RTP控制协议(RTP control protocol,RTCP),对编码压缩后的数据进行打包处理,然后通过传输控制协议(transmission control protocol,TCP)或用户数据报协议(user datagram protocol,UDP),将打包处理后的数据发送给电子设备B。例如可以通过WIFI网络将打包处理后的数据发送给电子设备B。
电子设备B在接收到电子设备A发送的打包处理后的数据之后,会根据RTP或RTCP对接收到的数据进行解包处理,并将解包后得到的数据发送到解码器,以进行解码处理,从而可以得到解码后的内容,也即得到多媒体信息,电子设备B将得到的多媒体信息发送到显示系统,以通过LCD进行多媒体信息的显示。
电子设备A中的GPU完成图层的合成之后,HWC再进行本地的图层合成,并将合成之后的图层数据发送到LCD,以供电子设备A显示合成之后的图层数据对应的多媒体信息。
在上述投屏场景中,一方面,HWC进行图层合成的过程与GPU进行图层合成的过程是串行执行的,也就是说,HWC要等待GPU完成图层的合成之后,再进行图层合成,因此,该执行过程效率较低,从而导致多媒体信息的投屏显示过程效率较低。另一方面,GPU在完成图层的合成之后,会固定输出RGBA8888格式的数据给编码器进行编码。由于RGBA8888格式中包括红色通道、绿色通道、蓝色通道和alpha(透明度)通道,每个通道占8位。这种格式的数据占用空间内存较大,例如:1024*1024的图片,占用空间为1024*1024*4,也即占用4M,2048*2048的图片,占用空间为2048*2048*32/8/1000/1000,也即16M,OpenGL ES生成纹理在生成纹理时占用空间大小会自动扩展成2的幂次方。例如:85*121的图片,生成纹理后,占用内存为64k。其中,整个场景背景图片或者大量渐变色的图片,通常使用RGBA8888格式。由上述可知,RGBA8888格式的图片通常数据量较大,且占用较大的内存空间,造成数据的传输效率不高,也会导致多媒体信息的投屏显示过程效率较低。
本申请中考虑到上述问题,提出了一种投屏控制方法,该方法应用于第一电子设备,该第一电子设备包括GPU和HWC,在第一电子设备处于投屏状态时,确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层,若不包含视频安全图层,则可以将待合成图层分别发送给GPU和HWC,然后通过GPU和HWC并行对待合成图层进行合成,并将GPU合成的第一图层发送给第二电子设备,以在第二电子设备上显示第一图层对应的多媒体信息,并显示HWC合成的第二图层对应的多媒体信息。由于在待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,可以通过GPU和HWC并行对待合成图层进行合成,从而可以提高图层合成的效率,进而提高多媒体信息投屏的效率。另外,可以将GPU合成的第一图层的数据格式设置为第一数据格式,例如设置为YUV420sp,由于第一数据格式的数据的数据量小于RGBA8888的数据的数据量,因此,可以提高数据的传输效率,从而进一步提高多媒体信息的投屏效率。
下面,通过详细的实施例对本申请提供的投屏控制方法的技术方案进行详细地描述。可以理解的是,下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可 能在某些实施例不再赘述。
图6为本申请实施例提供的一种投屏控制方法的信令图,需要说明的是,虽然在本申请的实施例中,以特定顺序呈现了方法的各个步骤,但是可以在不同的实施例中改变步骤的顺序,并且在一些实施例中,可以同时执行在本说明书中按顺序示出的一个或多个步骤。如图6所示,该方法包括:
步骤601:在第一电子设备处于投屏状态时,第一电子设备确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层。
在本步骤中,多媒体信息包括图片、视频或音频等。多媒体信息对应的待合成图层用于表示要显示的图形界面,包括界面的大小、位置以及在界面中显示的内容等。其中,待合成图层的数量可以为一个,也可以为多个。
第一电子设备在进行多媒体信息的显示时,需要进行显示状态的识别,也即识别当前第一电子设备是处于投屏状态,还是处于本端显示的状态。在一种可能的实现方式中,可以通过判断是否调用了创建虚拟屏方法和创建编码器方法,若确定调用了创建虚拟屏方法和创建编码器方法,则可以确定出第一电子设备处于投屏状态,否则,可以确定出第一电子设备处于本端显示的状态。
具体的,若第一电子设备的系统进入投屏状态时,第一电子设备默认会创建虚拟屏和编码器,其中,虚拟屏用于准备需要发送的数据,该需要发送的数据可以理解为多媒体信息的数据,其用于第二电子设备显示多媒体信息。编码器用于压缩数据。本领域技术人员可以理解,第一电子设备在创建虚拟屏时,通常会调用创建虚拟屏方法(create virtual display),在创建编码器时,通常会调用创建编码器方法(MediaCodec.create)。当第一电子设备在确定出上述两个方法被调用时,将会确定出其进入了投屏状态,此时会初始化投屏的状态位,如设置投屏CastScreenTag为True。
若第一电子设备在确定出上述两个方法未被调用时,则可以确定出第一电子设备处于本端显示的状态,也即只在本地显示多媒体信息即可。
在确定出第一电子设备处于投屏状态后,第一电子设备会初始化分布式图层合成模块,也即创建分布式图层合成模块。第一电子设备将通过分布式图层合成模块将需要投屏显示的多媒体信息对应的待合成图层提交到surfacefligner中,对待合成图层的属性进行分析,以确定该待合成图层中是否包含视频安全图层。其中,视频安全图层对应的缓冲区是由安全内存分配器分配的内存,其不允许截屏显示。
具体的,若待合成图层的属性中,存在某个图层的eSecure属性为True,则可以确定该图层为视频安全图层。若所有待合成图层的属性中,均不存在eSecure属性为True的图层,则可以确定待合成图层中不包含视频安全图层。
步骤602:若不包含视频安全图层,第一电子设备将待合成图层分别发送给GPU和HWC。
在本步骤中,若第一电子设备确定出待合成图层中不包含视频安全图层,会将待合成图层同时发送给GPU和HWC,以对待合成图层进行合成。
本领域技术人员可以理解,为了保证信息的安全性,若待投屏显示的多媒体信息对应的待合成图层中包括视频安全图层,则该视频安全图层对应的内容将只能在本地进行显示,并不能发送到被投屏设备进行投屏显示。因此,第一电子设备在进行投屏时,需要先 判断待合成图层中是否包含视频安全图层,并在判断出不包含视频安全图层时,再将待合成图层同时发送给GPU和HWC。
步骤603:第一电子设备通过GPU和HWC并行对待合成图层进行合成。
图7为本申请实施例提供的在投屏场景下电子设备进行多媒体信息显示的示意图,如图7所示,surfacefligner将待合成图层分别发送给GPU和HWC之后,第一电子设备将通过GPU和HWC并行对待合成图层进行合成,也可以理解为,GPU和HWC将同时对接收到的待合成图层进行合成。由于GPU和HWC可以并行的对待合成图层进行合成,从而可以提高图层合成的效率。
示例性的,为了减小数据的传输量,在本申请实施例中,可以将GPU合成的第一图层的数据格式设置为第一数据格式,其中,第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
在本实施例中,由于第一数据格式的数据的数据量小于RGBA8888的数据的数据量,因此,可以减小数据的传输量,提高数据的传输效率,而且可以优化存储效率,降低显示带宽。
示例性的,该第一数据格式可以为YUV420sp。
具体的,当YUV420采样格式叠加上planar储存格式后,可以产生出YUV420P格式和YUV420sp格式。其中,YUV420P是Y之后U之后V来储存,相当于RGB中的chw了,又可以细分为I420(又叫YU12)和YV12格式;而YUV420SP是Y之后UV交替...,又可以细分为NV12和NV21格式。这四种细分格式如下所示:
(1)NV12,FourCC为0x3231564E,1个像素12bit,8-bit Y plane,Y通道平面结束后是交叉进行的U/V通道平面,U/V使用2x2的采样率(各是Y的四分之一)。
(2)NV21,FourCC为0x3132564E,1个像素12bit,和NV12一样——除了U/V交叉的时候是先V再U,也就是U/V和V/U的区别;其中,目前Android系统中摄像头图像的标准即为此格式;
(3)I420(也叫YU12),FourCC为0x30323449,1个像素12bit,8bit Y通道平面结束后,是U通道平面,最后是V通道平面;
(4)YV12,FourCC为0x32315659,1个像素12bit,8bit Y通道平面结束后,是V通道平面,最后是U通道平面。
在本实施例中,由于YUV420sp的数据的数据量小于RGBA8888的数据的数据量,因此,可以减小数据的传输量,从而提高数据的传输效率。
步骤604:第一电子设备将GPU合成的第一图层发送给第二电子设备。
GPU对待合成图层进行合成,得到第一图层之后,可以将该第一图层发送给第二电子设备,以供第二电子设备显示对应的多媒体信息。
示例性的,第一电子设备在发送第一图层时,可以将第一图层进行编码,得到编码后的图层,并根据RTP或RTCP将编码后的图层进行打包,然后将打包处理后的图层发送给第二电子设备。
具体的,继续参照图7所示,GPU在合成第一图层后,会将该第一图层发送到编码器,以对第一图层进行编码及压缩,从而得到编码后的图层。之后,第一电子设备会对得到的编码后的图层进行RTP或RTCP打包,然后通过TCP或UDP,将打包处理后的 图层通过WIFI网络发送给第二电子设备。
在本实施例中,由于第一电子设备会将第一图层进行编码压缩,并对编码后的图层进行RTP或RTCP打包处理,从而将打包处理后的图层发送给第二电子设备,由此不仅可以提高图层数据的安全性,而且可以减小数据的传输量,提高数据传输的效率。
步骤605:第一电子设备显示HWC合成的第二图层对应的多媒体信息。
在本步骤中,继续参照图7所示,第一电子设备在通过HWC对待合成图层进行合成,得到第二图层之后,会将该第二图层发送到LCD,以在LCD显示该第二图层对应的多媒体信息。其中,第二图层对应的多媒体信息,也即为需要投屏显示的多媒体信息。
步骤606:第二电子设备对第一图层进行解析,得到多媒体信息。
在本步骤中,第二电子设备在接收到第一电子设备发送的第一图层之后,可以对该第一图层进行解析,从而得到需要显示的多媒体信息。示例性的,可以根据RTP或RTCP,对第一图层进行解包,并将解包处理后的图层进行解码,然后将解码后的图层的格式由第一数据格式转换为RGBA8888格式,得到多媒体信息。
具体的,若第一电子设备采用RTP对编码后的图层进行打包处理,相应的,第二电子设备将采用RTP对接收到的第一图层进行解包,若第一电子设备采用RTCP对编码后的图层进行打包处理,相应的,第二电子设备将采用RTCP对接收到的第一图层进行解包。之后,将解包处理后的图层发送到解码器,以对解包处理后的图层进行解码。
另外,目前,在通过LCD显示多媒体信息时,通常都要求多媒体信息的格式为RGBA8888格式,由于第一电子设备的GPU合成的第一图层的格式为第一数据格式,因此,第二电子设备还需要将解码后的图层的格式由第一数据格式转换为RGBA8888格式,从而得到多媒体信息。
在本实施例中,第二电子设备将解码后的图层的格式由第一数据格式转换为RGBA8888格式,从而可以保证多媒体信息的正确显示。
可以理解的是,可以先执行步骤604,再执行步骤605,也可以先执行步骤605,再执行步骤604,当然,还可以同时执行步骤604和步骤605。
步骤607:第二电子设备显示多媒体信息。
在本步骤中,第二电子设备可以将得到的多媒体信息发送到显示系统中,从而通过LCD进行显示。其中,第二电子设备上显示的多媒体信息和第一电子设备上显示的多媒体信息相同。
本申请实施例提供的投屏控制方法,该方法应用于第一电子设备,该第一电子设备包括GPU和HWC,在第一电子设备处于投屏状态时,确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层,若不包含视频安全图层,则可以将待合成图层分别发送给GPU和HWC,然后通过GPU和HWC并行对待合成图层进行合成,并将GPU合成的第一图层发送给第二电子设备,以在第二电子设备上显示第一图层对应的多媒体信息,并显示HWC合成的第二图层对应的多媒体信息。由于在待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,可以通过GPU和HWC并行对待合成图层进行合成,从而可以提高图层合成的效率,进而提高多媒体信息投屏的效率。另外,可以将GPU合成的第一图层的数据格式设置为第一数据格式,例如设置为YUV420sp,由于第一数据格式 的数据的数据量小于RGBA8888的数据的数据量,因此,可以提高数据的传输效率,从而进一步提高多媒体信息的投屏效率。
图8为本申请实施例提供的一种投屏控制装置80的结构示意图,该装置包括图形处理器GPU和硬件混合渲染器HWC,请参见图8所示,该投屏控制装置80可以包括:
处理单元801,用于在所述投屏控制装置处于投屏状态时,确定待投屏控制的多媒体信息对应的待合成图层中是否包含视频安全图层;
发送单元802,用于在不包含所述视频安全图层时,将所述待合成图层分别发送给所述GPU和所述HWC;
所述处理单元801,还用于通过所述GPU和所述HWC并行对所述待合成图层进行合成;
所述发送单元802,还用于将所述GPU合成的第一图层发送给第二电子设备,以在所述第二电子设备上显示所述第一图层对应的所述多媒体信息;
显示单元803,用于显示所述HWC合成的第二图层对应的所述多媒体信息。
可选地,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
可选地,所述第一数据格式为YUV420sp。
可选地,所述发送单元802,具体用于:
将所述第一图层进行编码,得到编码后的图层;
根据实时传输协议RTP或RTP控制协议RTCP,将所述编码后的图层进行打包;
将打包处理后的图层发送给所述第二电子设备。
可选地,所述发送单元802,具体用于:
通过传输控制协议TCP或用户数据报协议UDP,将所述打包处理后的图层发送给所述第二电子设备。
可选地,所述处理单元801,具体用于:
确定是否调用了创建虚拟屏方法和创建编码器方法;
若确定调用了所述创建虚拟屏方法和所述创建编码器方法,则确定所述第一电子设备处于投屏状态。
本申请实施例所示的投屏控制装置80,可以执行上述任一项实施例所示的投屏控制方法的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。
需要说明的是,应理解以上装置的各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元通过软件通过处理元件调用的形式实现,部分单元通过硬件的形式实现。例如,发送单元可以为单独设立的处理元件,也可以集成在该反馈资源的确定装置的某一个芯片中实现,此外,也可以以程序的形式存储于反馈资源的确定装置的存储器中,由该反馈资源的确定装置的某一个处理元件调用并执行该发送单元的功能。其它单元的实现与之类似。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上 述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。此外,以上发送单元是一种控制发送的单元,可以通过该反馈资源的确定装置的发送装置,例如天线和射频装置发送信息。
以上这些单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个单元通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
图9为本申请实施例提供的一种投屏控制装置90的结构示意图,请参见图9所示,该投屏控制装置90可以包括:
接收单元901,用于接收第一电子设备发送的第一图层,所述第一图层为所述第一电子设备处于投屏状态时,在确定出待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,与第二图层并行合成得到的,所述第一图层为通过所述第一电子设备中的图形处理器GPU合成的,所述第二图层为通过所述第一电子设备中的硬件混合渲染器HWC合成的;
处理单元902,用于对所述第一图层进行解析,得到所述多媒体信息;
显示单元903,用于显示所述多媒体信息。
可选地,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
可选地,所述第一数据格式为YUV420sp。
可选地,所述处理单元902,具体用于:根据实时传输协议RTP或RTP控制协议RTCP,对所述第一图层进行解包;将解包处理后的图层进行解码;将解码后的图层的格式由所述第一数据格式转换为所述RGBA8888格式,得到多媒体信息。
可选地,所述接收单元901,具体用于:通过传输控制协议TCP或用户数据报协议UDP,接收所述第一图层数据。
本申请实施例所示的投屏控制装置,可以执行上述任一项实施例所示的资源的确定方法的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。
需要说明的是,应理解以上装置的各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元通过软件通过处理元件调用的形式实现,部分单元通过硬件的形式实现。例如,发送单元可以为单独设立的处理元件,也可以集成在该反馈资源的确定装置的某一个芯片中实现,此外,也可以以程序的形式存储于反馈资源的确定装置的存储器中,由该反馈资源的确定装置的某一个处理元件调用并执行该发送单元的功能。其它单元的实现与之类似。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上 述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。此外,以上发送单元是一种控制发送的单元,可以通过该反馈资源的确定装置的发送装置,例如天线和射频装置发送信息。
以上这些单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个单元通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。.
图10为本申请实施例提供的一种电子设备的结构示意图。如图10所示,该电子设备包括:处理器1001、存储器1002、收发装置1003。收发装置1003可以与天线连接。在下行方向上,收发装置1003通过天线接收基站发送的信息,并将信息发送给处理器1001进行处理。在上行方向上,处理器1001对终端的数据进行处理,并通过收发装置1003发送给基站。
该存储器1002用于存储实现以上方法实施例,或者图8或图9所示实施例各个单元的程序,处理器1001调用该程序,执行以上方法实施例的操作,以实现图8或图9所示的各个单元。
或者,以上各个单元的部分或全部也可以通过集成电路的形式内嵌于该电子设备的某一个芯片上来实现。且它们可以单独实现,也可以集成在一起。即以上这些单元可以被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。
本申请实施例还提供了一种芯片,所述芯片包括可编程逻辑电路和输入接口,所述输入接口用于获取待处理的数据,所述逻辑电路用于对待处理的数据执行上述任一实施例所示的投屏控制方法,其实现原理以及有益效果与投屏控制方法的实现原理及有益效果类似,此处不再进行赘述。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在电子设备上运行时,使得所述电子设备执行上述任一实施例所示的投屏控制方法,其实现原理以及有益效果与投屏控制方法的实现原理及有益效果类似,此处不再进行赘述。
本申请实施例还提供了一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行上述任一实施例所示的投屏控制方法,其实现原理以及有益效果与投屏控制方法的实现原理及有益效果类似,此处不再进行赘述。
上述各个实施例中处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任 何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的指令,结合其硬件完成上述方法的步骤。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。

Claims (26)

  1. 一种投屏控制方法,其特征在于,应用于第一电子设备,所述第一电子设备包括图形处理器GPU和硬件混合渲染器HWC,所述方法包括:
    在所述第一电子设备处于投屏状态时,确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层;
    若不包含所述视频安全图层,则将所述待合成图层分别发送给所述GPU和所述HWC;
    通过所述GPU和所述HWC并行对所述待合成图层进行合成,并将所述GPU合成的第一图层发送给第二电子设备,以在所述第二电子设备上显示所述第一图层对应的所述多媒体信息;
    显示所述HWC合成的第二图层对应的所述多媒体信息。
  2. 根据权利要求1所述的方法,其特征在于,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
  3. 根据权利要求2所述的方法,其特征在于,所述第一数据格式为YUV420sp。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述将所述GPU合成的第一图层发送给第二电子设备,包括:
    将所述第一图层进行编码,得到编码后的图层;
    根据实时传输协议RTP或RTP控制协议RTCP,将所述编码后的图层进行打包;
    将打包处理后的图层发送给所述第二电子设备。
  5. 根据权利要求4所述的方法,其特征在于,所述将打包处理后的图层发送给所述第二电子设备,包括:
    通过传输控制协议TCP或用户数据报协议UDP,将所述打包处理后的图层发送给所述第二电子设备。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,确定所述第一电子设备处于投屏状态,包括:
    确定是否调用了创建虚拟屏方法和创建编码器方法;
    若确定调用了所述创建虚拟屏方法和所述创建编码器方法,则确定所述第一电子设备处于投屏状态。
  7. 一种投屏控制方法,其特征在于,应用于第二电子设备,所述方法包括:
    接收第一电子设备发送的第一图层,所述第一图层为所述第一电子设备处于投屏状态时,在确定出待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,与第二图层并行合成得到的,所述第一图层为通过所述第一电子设备中的图形处理器GPU合成的,所述第二图层为通过所述第一电子设备中的硬件混合渲染器HWC合成的;
    对所述第一图层进行解析,得到所述多媒体信息;
    显示所述多媒体信息。
  8. 根据权利要求7所述的方法,其特征在于,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
  9. 根据权利要求8所述的方法,其特征在于,所述第一数据格式为YUV420sp。
  10. 根据权利要求8或9所述的方法,其特征在于,所述对所述第一图层进行解析,得到所述多媒体信息,包括:
    根据实时传输协议RTP或RTP控制协议RTCP,对所述第一图层进行解包;
    将解包处理后的图层进行解码;
    将解码后的图层的格式由所述第一数据格式转换为所述RGBA8888格式,得到多媒体信息。
  11. 根据权利要求7-10任一项所述的方法,其特征在于,所述接收第一电子设备发送的第一图层数据,包括:
    通过传输控制协议TCP或用户数据报协议UDP,接收所述第一图层数据。
  12. 一种投屏控制装置,其特征在于,所述装置包括图形处理器GPU和硬件混合渲染器HWC,所述装置包括:
    处理单元,用于在所述投屏显示装置处于投屏状态时,确定待投屏显示的多媒体信息对应的待合成图层中是否包含视频安全图层;
    发送单元,用于在不包含所述视频安全图层时,将所述待合成图层分别发送给所述GPU和所述HWC;
    所述处理单元,还用于通过所述GPU和所述HWC并行对所述待合成图层进行合成;
    所述发送单元,还用于将所述GPU合成的第一图层发送给第二电子设备,以在所述第二电子设备上显示所述第一图层对应的所述多媒体信息;
    显示单元,用于显示所述HWC合成的第二图层对应的所述多媒体信息。
  13. 根据权利要求12所述的装置,其特征在于,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
  14. 根据权利要求13所述的装置,其特征在于,所述第一数据格式为YUV420sp。
  15. 根据权利要求12-14任一项所述的装置,其特征在于,所述发送单元,具体用于:
    将所述第一图层进行编码,得到编码后的图层;
    根据实时传输协议RTP或RTP控制协议RTCP,将所述编码后的图层进行打包;
    将打包处理后的图层发送给所述第二电子设备。
  16. 根据权利要求15所述的装置,其特征在于,所述发送单元,具体用于:
    通过传输控制协议TCP或用户数据报协议UDP,将所述打包处理后的图层发送给所述第二电子设备。
  17. 根据权利要求12-16任一项所述的装置,其特征在于,所述处理单元,具体用于:
    确定是否调用了创建虚拟屏方法和创建编码器方法;
    若确定调用了所述创建虚拟屏方法和所述创建编码器方法,则确定所述投屏显示装置处于投屏状态。
  18. 一种投屏控制装置,其特征在于,包括:
    接收单元,用于接收第一电子设备发送的第一图层,所述第一图层为所述第一电子设备处于投屏状态时,在确定出待投屏显示的多媒体信息对应的待合成图层中不包含视频安全图层时,与第二图层并行合成得到的,所述第一图层为通过所述第一电子设备中的图形处理器GPU合成的,所述第二图层为通过所述第一电子设备中的硬件混合渲染器HWC合成的;
    处理单元,用于对所述第一图层进行解析,得到所述多媒体信息;
    显示单元,用于显示所述多媒体信息。
  19. 根据权利要求18所述的装置,其特征在于,所述第一图层的格式为第一数据格式,所述第一数据格式的数据的数据量小于RGBA8888的数据的数据量。
  20. 根据权利要求19所述的装置,其特征在于,所述第一数据格式为YUV420sp。
  21. 根据权利要求19或20所述的装置,其特征在于,所述处理单元,具体用于:
    根据实时传输协议RTP或RTP控制协议RTCP,对所述第一图层进行解包;
    将解包处理后的图层进行解码;
    将解码后的图层的格式由所述第一数据格式转换为所述RGBA8888格式,得到多媒体信息。
  22. 根据权利要求18-21任一项所述的装置,其特征在于,所述接收单元,具体用于:
    通过传输控制协议TCP或用户数据报协议UDP,接收所述第一图层数据。
  23. 一种投屏控制装置,其特征在于,所述装置包括显示器、处理器和存储器,所述存储器中存储有计算机程序,所述处理器执行所述存储器中存储的计算机程序,以使所述装置执行如权利要求1至11任一项所述的方法。
  24. 一种通信装置,其特征在于,包括:处理器和接口电路;
    所述接口电路,用于接收代码指令并传输至所述处理器;
    所述处理器,用于运行所述代码指令以执行如权利要求1至11中任一项所述的方法。
  25. 一种可读存储介质,用于存储有指令,当所述指令被执行时,使如权利要求1至11中任一项所述的方法被实现。
  26. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,通信装置的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得通信装置实施如权利要求1-6任意一项所述的方法或者如权利要求7-11任意一项所述的方法。
PCT/CN2021/114438 2020-09-25 2021-08-25 投屏控制方法和装置 WO2022062809A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21871182.8A EP4209889A4 (en) 2020-09-25 2021-08-25 METHOD AND DEVICE FOR SCREEN PROJECTION CONTROL
US18/188,876 US20230230196A1 (en) 2020-09-25 2023-03-23 Casting Control Method and Apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011027392.2A CN114327312B (zh) 2020-09-25 2020-09-25 投屏控制方法和装置
CN202011027392.2 2020-09-25

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/188,876 Continuation US20230230196A1 (en) 2020-09-25 2023-03-23 Casting Control Method and Apparatus

Publications (1)

Publication Number Publication Date
WO2022062809A1 true WO2022062809A1 (zh) 2022-03-31

Family

ID=80846213

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114438 WO2022062809A1 (zh) 2020-09-25 2021-08-25 投屏控制方法和装置

Country Status (4)

Country Link
US (1) US20230230196A1 (zh)
EP (1) EP4209889A4 (zh)
CN (1) CN114327312B (zh)
WO (1) WO2022062809A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089057A (zh) * 2022-08-26 2023-05-09 荣耀终端有限公司 资源调度方法、设备、存储介质和程序产品

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052186B (zh) * 2022-07-12 2023-09-15 北京字跳网络技术有限公司 投屏方法及相关设备
CN116737097B (zh) * 2022-09-30 2024-05-17 荣耀终端有限公司 一种投屏图像处理方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120272280A1 (en) * 2011-04-22 2012-10-25 Kabushiki Kaisha Toshiba Video processor and video processing method
US20180247554A1 (en) * 2017-02-27 2018-08-30 Speech Kingdom Llc System and method for treatment of individuals on the autism spectrum by using interactive multimedia
CN109508162A (zh) * 2018-10-12 2019-03-22 福建星网视易信息系统有限公司 一种投屏显示方法、系统及存储介质
CN110362186A (zh) * 2019-07-17 2019-10-22 Oppo广东移动通信有限公司 图层处理方法、装置、电子设备及计算机可读介质
CN110377263A (zh) * 2019-07-17 2019-10-25 Oppo广东移动通信有限公司 图像合成方法、装置、电子设备及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090284476A1 (en) * 2008-05-13 2009-11-19 Apple Inc. Pushing a user interface to a remote device
CN103488449B (zh) * 2012-06-08 2016-06-01 旺玖科技股份有限公司 可动态设定传输组态的传输系统及其控制方法
JP5830496B2 (ja) * 2013-06-07 2015-12-09 株式会社ソニー・コンピュータエンタテインメント ディスプレイコントローラおよび画面転送装置
US20160188279A1 (en) * 2014-12-27 2016-06-30 Intel Corporation Mode-switch protocol and mechanism for hybrid wireless display system with screencasting and native graphics throwing
KR20160092363A (ko) * 2015-01-27 2016-08-04 엘지전자 주식회사 이동단말기 및 그 제어방법
US11036458B2 (en) * 2015-10-14 2021-06-15 Google Llc User interface for screencast applications
KR102272979B1 (ko) * 2017-11-22 2021-07-02 한국전기연구원 레티넥스 내시경 영상 처리 시스템, 방법, 및 상기 방법을 실행시키기 위한 컴퓨터 판독 가능한 프로그램을 기록한 기록 매체
CN108282677A (zh) * 2018-01-24 2018-07-13 上海哇嗨网络科技有限公司 通过客户端实现内容投屏的方法、投屏装置及系统
CN109660842B (zh) * 2018-11-14 2021-06-15 华为技术有限公司 一种播放多媒体数据的方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120272280A1 (en) * 2011-04-22 2012-10-25 Kabushiki Kaisha Toshiba Video processor and video processing method
US20180247554A1 (en) * 2017-02-27 2018-08-30 Speech Kingdom Llc System and method for treatment of individuals on the autism spectrum by using interactive multimedia
CN109508162A (zh) * 2018-10-12 2019-03-22 福建星网视易信息系统有限公司 一种投屏显示方法、系统及存储介质
CN110362186A (zh) * 2019-07-17 2019-10-22 Oppo广东移动通信有限公司 图层处理方法、装置、电子设备及计算机可读介质
CN110377263A (zh) * 2019-07-17 2019-10-25 Oppo广东移动通信有限公司 图像合成方法、装置、电子设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4209889A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089057A (zh) * 2022-08-26 2023-05-09 荣耀终端有限公司 资源调度方法、设备、存储介质和程序产品
CN116089057B (zh) * 2022-08-26 2023-10-20 荣耀终端有限公司 资源调度方法、设备、存储介质和程序产品

Also Published As

Publication number Publication date
CN114327312B (zh) 2023-10-20
CN114327312A (zh) 2022-04-12
EP4209889A4 (en) 2024-03-20
US20230230196A1 (en) 2023-07-20
EP4209889A1 (en) 2023-07-12

Similar Documents

Publication Publication Date Title
WO2020244623A1 (zh) 一种空鼠模式实现方法及相关设备
WO2020093988A1 (zh) 一种图像处理方法及电子设备
WO2022062809A1 (zh) 投屏控制方法和装置
EP3846402B1 (en) Voice communication method, electronic device, and system
WO2021190344A1 (zh) 多屏幕显示电子设备和电子设备的多屏幕显示方法
US20230247093A1 (en) Data Synchronization Method, Electronic Device, and Computer-Readable Storage Medium
US12027112B2 (en) Always on display method and mobile device
CN111371849A (zh) 数据处理的方法和电子设备
EP4231147A1 (en) Drawing command processing method and related device therefor
CN110557740A (zh) 一种电子设备控制方法及一种电子设备
WO2022170856A1 (zh) 建立连接的方法与电子设备
CN114077464A (zh) 显示控制方法和装置
WO2022170854A1 (zh) 视频通话的方法与相关设备
WO2022048371A1 (zh) 跨设备音频播放方法、移动终端、电子设备及存储介质
WO2022222924A1 (zh) 一种投屏显示参数调节方法
WO2022262492A1 (zh) 数据下载方法、装置和终端设备
US20230350629A1 (en) Double-Channel Screen Mirroring Method and Electronic Device
WO2021052408A1 (zh) 一种电子设备显示方法及电子设备
WO2022161006A1 (zh) 合拍的方法、装置、电子设备和可读存储介质
CN112437341B (zh) 一种视频流处理方法及电子设备
WO2023125518A1 (zh) 一种图像编码方法以及装置
EP4290360A1 (en) Screen projection method, electronic device, and system
US12093307B2 (en) Image data invoking method and system for application, electronic device, and storage medium
WO2022135195A1 (zh) 显示虚拟现实界面的方法、装置、设备和可读存储介质
WO2024051634A1 (zh) 一种投屏显示的方法、系统以及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21871182

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021871182

Country of ref document: EP

Effective date: 20230402