CN111625211A - Screen projection method and device, android device and display device - Google Patents

Screen projection method and device, android device and display device Download PDF

Info

Publication number
CN111625211A
CN111625211A CN201911222008.1A CN201911222008A CN111625211A CN 111625211 A CN111625211 A CN 111625211A CN 201911222008 A CN201911222008 A CN 201911222008A CN 111625211 A CN111625211 A CN 111625211A
Authority
CN
China
Prior art keywords
image
screen
projected
mode
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911222008.1A
Other languages
Chinese (zh)
Other versions
CN111625211B (en
Inventor
何建邦
邓志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mushroom Car Union Information Technology Co Ltd
Original Assignee
Mushroom Car Union Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mushroom Car Union Information Technology Co Ltd filed Critical Mushroom Car Union Information Technology Co Ltd
Priority to CN201911222008.1A priority Critical patent/CN111625211B/en
Publication of CN111625211A publication Critical patent/CN111625211A/en
Application granted granted Critical
Publication of CN111625211B publication Critical patent/CN111625211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Projection Apparatus (AREA)

Abstract

The embodiment of the invention discloses a screen projection method and device, android equipment and display equipment, wherein the screen projection method comprises the following steps: acquiring a screen image of the android device; analyzing whether the current frame image is the same as the previous frame image from the android device screen image to obtain an analysis result; if the analysis results are different, determining the current frame image as a to-be-projected image, and performing image compression on the to-be-projected image according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function; and sending the first image data to a display device. Therefore, the embodiment of the invention realizes the real-time high-definition screen projection of the high-resolution android device, effectively reduces the picture delay and also reduces the load of transmission bandwidth.

Description

Screen projection method and device, android device and display device
Technical Field
The invention relates to the technical field of communication, in particular to a screen projection method and device, an android device and a display device.
Background
Android (Android) is a Linux-based free and open source operating system that is mainly used in mobile devices, such as smart phones and tablets.
With the application of Android devices (i.e., mobile devices with Android operating systems) becoming more and more widespread, it is often necessary to display the pictures of the Android systems on a large screen.
In the prior art, the resolution of an Android system is very high, and there is a high requirement for transmission bandwidth when Android screen data is transmitted, so that when a screen is projected, the Android screen data is compressed into a video by using a high compression rate and then projected to other equipment.
However, in the screen projection mode in the prior art, the definition of the picture display is seriously reduced, especially mosaic occurs during the picture switching, and the picture delay is very large, generally reaching more than 500 milliseconds, and seriously reaching the second level.
Disclosure of Invention
Because the existing method has the problems, the embodiment of the invention provides a screen projection method and device, an android device and a display device.
In a first aspect, an embodiment of the present invention provides a screen projection method, including:
acquiring a screen image of the android device;
analyzing whether the current frame image is the same as the previous frame image from the android device screen image to obtain an analysis result;
if the analysis results are different, determining the current frame image as a to-be-projected image, and performing image compression on the to-be-projected image according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function;
and sending the first image data to a display device so that the display device decompresses the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function, and the image to be projected is displayed on a screen of the display device.
Optionally, the method further comprises:
and if the analysis results are the same, the screen projection processing is not carried out on the current frame image, and the screen image of the android device is continuously acquired.
Optionally, the acquiring an android device screen image includes:
determining a sampling frequency corresponding to the screen image of the android device;
and acquiring the screen image of the android device according to the sampling frequency.
Optionally, the image compression is performed on the image to be projected according to a set compression mode to obtain compressed first image data, where the set compression mode is a compression mode with an acceleration function, and the method includes:
and compressing the image to be projected in the BMP format into the first image data in the JPEG format by adopting a compression mode with an NEON acceleration function.
Optionally, the sending the first image data to a display device includes:
establishing communication connection with the display equipment, wherein the communication connection comprises a socket;
and sending the compressed image data to a display device through the socket.
In a second aspect, an embodiment of the present invention provides a screen projection method, including:
receiving first image data sent by an android device, wherein the first image data is obtained by the android device after image compression is carried out on a to-be-projected screen image according to a set compression mode, and the set compression mode is a compression mode with an acceleration function;
decompressing the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function;
and displaying the image to be projected on a screen of a display device.
In a third aspect, an embodiment of the present invention provides a screen projection apparatus, including:
the acquisition module is used for acquiring a screen image of the android device;
the analysis module is used for analyzing whether the current frame image is the same as the previous frame image from the android device screen image to obtain an analysis result;
the compression module is used for determining the current frame image as a screen image to be projected if the analysis results are different, and performing image compression on the screen image to be projected according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function;
and the sending module is used for sending the first image data to a display device so that the display device decompresses the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function, and the image to be projected is displayed on a screen of the display device.
In a fourth aspect, an embodiment of the present invention provides a screen projection apparatus, including:
the receiving module is used for receiving first image data sent by the android device, wherein the first image data is obtained by the android device after image compression is carried out on a to-be-projected screen image according to a set compression mode, and the set compression mode is a compression mode with an acceleration function;
the decompression module is used for decompressing the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function;
and the display module is used for displaying the image to be projected on the screen of the display equipment.
In a fifth aspect, an embodiment of the present invention provides an android device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the screen projection method according to the first aspect when executing the program.
In a sixth aspect, an embodiment of the present invention provides a display device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the screen projection method according to the second aspect when executing the program.
According to the technical scheme, when the screen image of the android device is projected to the display device, the android device can analyze whether the current frame image is the same as the previous frame image or not, only when the current frame image is different from the previous frame image, the current frame image is determined to be the screen image to be projected, the screen image to be projected is subjected to image compression according to a compression mode with an acceleration function, and then the compressed first image data is sent to the display device, so that the real-time high-definition screen projection of the high-resolution android device is realized, the image delay is effectively reduced, and the load of transmission bandwidth is also reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a screen projection method according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a screen projection method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a screen projection method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a screen projection apparatus according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a screen projection apparatus according to an embodiment of the present invention;
fig. 6 is an entity structure diagram of an android device according to an embodiment of the present invention;
fig. 7 is a schematic physical structure diagram of a display device according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a flowchart illustrating a screen projection method according to an embodiment of the present invention; the method can be used for Android devices (namely mobile devices provided with Android operating systems), such as: devices such as smart phones, tablet computers, VR (virtual reality) all-in-one machines, android machines, and the like; as shown in fig. 1, the screen projection method may include:
and S110, obtaining a screen image of the android device.
Specifically, the Android device can run a background service program, the background service program is used for acquiring a screen image of the Android device in real time, analyzing whether a current frame image is the same as a previous frame image or not, and if the current frame image is different from the previous frame image, performing screen projection processing on the current frame image; and if the current frame image is the same as the current frame image, the screen projection processing is not carried out on the current frame image.
And S120, analyzing whether the current frame image is the same as the previous frame image from the android device screen image to obtain an analysis result.
Specifically, the analysis result may be that the current frame image is the same as the previous frame image, or that the current frame image is different from the previous frame image; if the difference is different, the screen image of the android device is changed, and at the moment, screen projection processing can be performed on the current frame image; if the image is the same as the screen image, the screen image of the android device is not changed, and at the moment, screen projection processing can not be performed on the current frame image.
And S130, if the analysis results are different, determining the current frame image as the image to be projected, and performing image compression on the image to be projected according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function.
Specifically, the different analysis results indicate that the screen image of the android device changes, and the screen image to be projected can be formed only if the changed image changes, so that the transmission of the same image to the display device can be avoided, and the load of the transmission bandwidth is effectively reduced.
In addition, when the image to be projected is compressed, the image can be compressed by adopting a compression mode with an acceleration function, so that the processing time of image compression can be effectively shortened, the frame rate of image transmission is improved, and the delay time of screen projection is reduced.
And S140, sending the first image data to the display equipment so that the display equipment decompresses the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function, and the image to be projected is displayed on a screen of the display equipment.
Specifically, the android device can project a screen image of the android device to the display device. Each display device may be a PC (Personal Computer) terminal or other display device for screen projection.
In an exemplary scenario, as shown in fig. 2, the android device 21 is included as an android device, and the PC end 22 is included as a display device. The android machine 21 and the PC end 22 may establish communication connection through WI-FI or USB. When the screen of the android machine 21 is projected to the PC end 22, the android machine 21 acquires an android machine screen image; analyzing whether the current frame image is the same as the previous frame image from the android machine screen image to obtain an analysis result; if the analysis results are different, determining the current frame image as a to-be-projected image, and performing image compression on the to-be-projected image according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function; the first image data is sent to the PC end 22, so that the PC end 22 can decompress the first image data according to a set decompression mode to obtain the image to be projected, the set decompression mode is a decompression mode with an acceleration function, and the image to be projected is displayed on the screen of the PC end 22.
It can be seen from the above embodiments that when screen images of the android device are projected to the display device, the android device can analyze whether a current frame image is the same as a previous frame image or not, only when the current frame image is different from the previous frame image, the current frame image is determined as an image to be projected, image compression is performed on the image to be projected according to a compression mode with an acceleration function, and then compressed first image data is sent to the display device, so that real-time high-definition screen projection of the high-resolution android device is realized, image delay is effectively reduced, and load of transmission bandwidth is also reduced.
Further, based on the method shown in fig. 1, after performing S120, the method may further include:
and (1-1) if the analysis results are the same, not performing screen projection processing on the current frame image, and continuously acquiring the screen image of the android device.
Specifically, the analysis results are the same, which indicates that the screen image of the android device does not change, and at this time, the current frame image may not be processed, and the screen image of the android device continues to be obtained in real time.
According to the embodiment, if the current frame image is the same as the previous frame image, the screen image of the android device is not changed, and at the moment, the current frame image can not be processed, so that the same image is prevented from being transmitted to the display device, and the load of transmission bandwidth is effectively reduced.
Further, based on the method shown in fig. 1, when S110 is executed, the method may further include:
and (2-1) determining a sampling frequency corresponding to the screen image of the android device.
Specifically, in order to achieve the effect of acquiring the screen image of the android device in real time, when the android device determines the sampling frequency, a smaller sampling interval may be selected and determined as much as possible. Such as: the sampling frequency is once every 15ms, once every 20ms, and the like.
And (2-2) acquiring the screen image of the android device according to the acquisition frequency.
According to the embodiment, the sampling frequency corresponding to the screen image of the android device is determined, and the screen image of the android device is obtained according to the sampling frequency, so that the effect of obtaining the screen image of the android device in real time can be achieved as much as possible, and the screen projection effect of the screen is improved.
Further, based on the method shown in fig. 1, in step S130, performing image compression on the image to be projected according to a set compression method to obtain compressed first image data, where the set compression method is a compression method with an acceleration function, the method may include:
and (3-1) compressing the image to be projected in the BMP format into the first image data in the JPEG format by adopting a compression mode with a NEON acceleration function.
Specifically, the compression mode with the NEON acceleration function is a compression mode with an acceleration function. When the image to be projected is compressed, compared with a compression mode without the NEON acceleration function, the compression mode with the NEON acceleration function is shorter in compression time, smaller in distortion degree and larger in compression force, and the method is particularly suitable for occasions with high requirements on compression efficiency and time limitation.
Therein, NEON may refer to a 128-bit SIMD (Single Instruction-Multiple Data) extension architecture suitable for ARM Cortex-a series processors.
In addition, BMP is a standard image file format, and JPEG format refers to a form of sealing image data on a medium after compression encoding.
As can be seen from the above embodiments, the to-be-projected image in the BMP format is compressed into the first image data in the JPEG format in a compression mode with a NEON acceleration function, thereby achieving a screen projection effect with high definition, low delay, and a small transmission load.
Further, based on the method shown in fig. 1, when the step S140 of transmitting the first image data to the display device may include:
and (4-1) establishing communication connection with the display equipment, wherein the communication connection comprises a socket.
Specifically, the communication connection between the android device and each display device may be implemented by WI-FI (wireless internet access), USB (Universal Serial Bus), or the like.
A socket may refer to a pair of port numbers that are required in a communication connection between an android device and various display devices.
Such as: the display device is a PC (personal computer), and the smart phone is connected with the PC through a USB (universal serial bus); then carrying out port mapping under the condition that the ADB (Android Debug Bridge) works normally to obtain a socket between the smart phone and the PC; and then establishing a TCP (Transmission control Protocol) connection between the smart phone end program and the PC end program through the socket.
(4-2) transmitting the compressed image data to a display device through the socket.
According to the embodiment, the communication connection between the android device and each display device is established, the communication connection comprises the socket, and the compressed image data is sent to the display device through the socket, so that the hardware requirement of screen projection of the screen is reduced, and the reliability of screen projection of the screen is improved.
Fig. 3 is a flowchart illustrating a screen projection method according to an embodiment of the present invention; the method may be used for display devices such as: a PC terminal or other display equipment for projecting screen; as shown in fig. 3, the screen projection method may include:
s310, receiving first image data sent by the android device, wherein the first image data is obtained after the android device performs image compression on a to-be-projected screen image according to a set compression mode, and the set compression mode is a compression mode with an acceleration function.
Specifically, when image compression is performed on an image to be projected, the android device can perform image compression in a compression mode with an acceleration function, so that the processing time of image compression can be effectively shortened, the frame rate of image transmission is improved, and the delay time of screen projection is reduced.
Such as: the compression mode with the acceleration function is a compression mode with a NEON acceleration function.
S320, decompressing the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function.
Specifically, when the first image data is decompressed, the display device may also perform image decompression in a decompression manner with an acceleration function, so that the processing time of image decompression can be effectively shortened, thereby reducing the delay time of screen projection.
Such as: the decompression mode with the acceleration function is a decompression mode with the x86-64 acceleration function, which is block 3 to 5 times faster than the decompression mode without the acceleration function.
And S330, displaying the image to be projected on the screen of the display equipment.
Specifically, when the image to be projected is displayed on the screen of the display device, the image to be projected may be rendered on the corresponding display window through a GDI (graphics device Interface).
According to the embodiment, when the screen image of the android device is projected to the display device, the display device can decompress the first image data according to the set decompression mode after receiving the first image data sent by the android device to obtain the image to be projected, the set decompression mode is the decompression mode with the acceleration function, and the image to be projected is displayed on the screen of the display device, so that the real-time high-definition screen projection of the high-resolution android device is realized, the image delay is effectively reduced, and the load of the transmission bandwidth is also reduced.
Fig. 4 is a flowchart of a screen projection apparatus according to an embodiment of the present invention, where the screen projection apparatus may be used in an Android device (i.e., a mobile device with an Android operating system installed), for example: the system comprises equipment such as a smart phone, a tablet personal computer, a VR (virtual reality) all-in-one machine, an android machine and the like; as shown in fig. 4, the screen projection apparatus may include:
the obtaining module 41 is configured to obtain a screen image of an android device;
the analysis module 42 is configured to analyze whether the current frame image is the same as the previous frame image from the screen image of the android device to obtain an analysis result;
a compression module 43, configured to determine the current frame image as a to-be-screened image if the analysis results are different, and perform image compression on the to-be-screened image according to a set compression manner to obtain compressed first image data, where the set compression manner is a compression manner with an acceleration function;
a sending module 44, configured to send the first image data to a display device, so that the display device decompresses the first image data according to a set decompression manner to obtain the to-be-projected-screen image, where the set decompression manner is a decompression manner with an acceleration function, and the to-be-projected-screen image is displayed on a screen of the display device.
Further, based on the apparatus shown in fig. 4, the method further includes:
and the processing module is used for not performing screen projection processing on the current frame image and continuously acquiring the screen image of the android device if the analysis results are the same.
Further, based on the apparatus shown in fig. 4, the obtaining module 41 includes:
the determining submodule is used for determining the sampling frequency corresponding to the screen image of the android device;
and the obtaining submodule is used for obtaining the screen image of the android device according to the sampling frequency.
Further, based on the apparatus shown in fig. 4, the compressing module 43 includes:
and the compression submodule is used for compressing the image to be projected in the BMP format into the first image data in the JPEG format by adopting a compression mode with an NEON acceleration function.
Further, based on the apparatus shown in fig. 4, the sending module 44 includes:
the connection submodule is used for establishing communication connection with the display equipment, and the communication connection comprises a socket;
and the sending submodule is used for sending the compressed image data to display equipment through the socket.
The screen projection device described in this embodiment can be used to implement the corresponding method embodiments described above, and the principle and technical effect are similar, which are not described herein again.
Fig. 5 is a flowchart illustrating an exemplary embodiment of a screen projection apparatus that can be used in a display device, for example: a PC terminal or other display equipment for projecting screen; as shown in fig. 5, the screen projection apparatus may include:
the receiving module 51 is configured to receive first image data sent by an android device, where the first image data is obtained by the android device after image compression is performed on a to-be-projected-screen image according to a set compression mode, and the set compression mode is a compression mode with an acceleration function;
a decompression module 52, configured to decompress the first image data according to a set decompression mode to obtain the to-be-projected-screen image, where the set decompression mode is a decompression mode with an acceleration function;
and the display module 53 is configured to display the image to be projected on a screen of the display device.
The screen projection device described in this embodiment can be used to implement the corresponding method embodiments described above, and the principle and technical effect are similar, which are not described herein again.
Fig. 6 is an entity structural schematic diagram of an android device according to an embodiment of the present invention, and as shown in fig. 6, the android device may include: a processor (processor)601, a communication Interface (Communications Interface)602, a memory (memory)603 and a communication bus 604, wherein the processor 601, the communication Interface 602 and the memory 603 complete communication with each other through the communication bus 604. The processor 601 may call logic instructions in the memory 603 to perform the following method:
acquiring a screen image of the android device;
analyzing whether the current frame image is the same as the previous frame image from the android device screen image to obtain an analysis result;
if the analysis results are different, determining the current frame image as a to-be-projected image, and performing image compression on the to-be-projected image according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function;
and sending the first image data to a display device so that the display device decompresses the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function, and the image to be projected is displayed on a screen of the display device.
In addition, the logic instructions in the memory 603 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Fig. 7 is a schematic physical structure diagram of a display device according to an embodiment of the present invention, and as shown in fig. 7, the display device may include: a processor (processor)701, a communication Interface (Communications Interface)702, a memory (memory)703 and a communication bus 704, wherein the processor 701, the communication Interface 702 and the memory 703 complete communication with each other through the communication bus 704. The processor 701 may call logic instructions in the memory 703 to perform the following method:
receiving first image data sent by an android device, wherein the first image data is obtained by the android device after image compression is carried out on a to-be-projected screen image according to a set compression mode, and the set compression mode is a compression mode with an acceleration function;
decompressing the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function;
and displaying the image to be projected on a screen of a display device.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, the embodiment of the invention discloses a screen projection system, which comprises: an android device as shown in fig. 6, and a display device as shown in fig. 7. The android device shown in fig. 6 is used for executing the screen projection method shown in fig. 1, and the display device shown in fig. 7 is used for executing the screen projection method shown in fig. 3.
Further, embodiments of the present invention disclose a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of performing the methods provided by the above-mentioned method embodiments, for example, comprising:
acquiring a screen image of the android device;
analyzing whether the current frame image is the same as the previous frame image from the android device screen image to obtain an analysis result;
if the analysis results are different, determining the current frame image as a to-be-projected image, and performing image compression on the to-be-projected image according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function;
and sending the first image data to a display device so that the display device decompresses the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function, and the image to be projected is displayed on a screen of the display device.
Further, embodiments of the present invention disclose a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of performing the methods provided by the above-mentioned method embodiments, for example, comprising:
receiving first image data sent by an android device, wherein the first image data is obtained by the android device after image compression is carried out on a to-be-projected screen image according to a set compression mode, and the set compression mode is a compression mode with an acceleration function;
decompressing the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function;
and displaying the image to be projected on a screen of a display device.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A screen projection method is characterized by comprising the following steps:
acquiring a screen image of the android device;
analyzing whether the current frame image is the same as the previous frame image from the android device screen image to obtain an analysis result;
if the analysis results are different, determining the current frame image as a to-be-projected image, and performing image compression on the to-be-projected image according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function;
and sending the first image data to a display device so that the display device decompresses the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function, and the image to be projected is displayed on a screen of the display device.
2. The screen projection method of claim 1, further comprising:
and if the analysis results are the same, the screen projection processing is not carried out on the current frame image, and the screen image of the android device is continuously acquired.
3. The screen projection method of claim 1, wherein the obtaining of the android device screen image comprises:
determining a sampling frequency corresponding to the screen image of the android device;
and acquiring the screen image of the android device according to the sampling frequency.
4. The screen projection method of claim 1, wherein the image compression of the image to be projected is performed according to a set compression mode to obtain compressed first image data, and the set compression mode is a compression mode with an acceleration function, and comprises:
and compressing the image to be projected in the BMP format into the first image data in the JPEG format by adopting a compression mode with an NEON acceleration function.
5. The screen projection method of claim 1, wherein the sending the first image data to a display device comprises:
establishing communication connection with the display equipment, wherein the communication connection comprises a socket;
and sending the compressed image data to a display device through the socket.
6. A screen projection method, comprising:
receiving first image data sent by an android device, wherein the first image data is obtained by the android device after image compression is carried out on a to-be-projected screen image according to a set compression mode, and the set compression mode is a compression mode with an acceleration function;
decompressing the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function;
and displaying the image to be projected on a screen of a display device.
7. A screen projection apparatus, comprising:
the acquisition module is used for acquiring a screen image of the android device;
the analysis module is used for analyzing whether the current frame image is the same as the previous frame image from the android device screen image to obtain an analysis result;
the compression module is used for determining the current frame image as a screen image to be projected if the analysis results are different, and performing image compression on the screen image to be projected according to a set compression mode to obtain compressed first image data, wherein the set compression mode is a compression mode with an acceleration function;
and the sending module is used for sending the first image data to a display device so that the display device decompresses the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function, and the image to be projected is displayed on a screen of the display device.
8. A screen projection apparatus, comprising:
the receiving module is used for receiving first image data sent by the android device, wherein the first image data is obtained by the android device after image compression is carried out on a to-be-projected screen image according to a set compression mode, and the set compression mode is a compression mode with an acceleration function;
the decompression module is used for decompressing the first image data according to a set decompression mode to obtain the image to be projected, wherein the set decompression mode is a decompression mode with an acceleration function;
and the display module is used for displaying the image to be projected on the screen of the display equipment.
9. An android device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements the steps of the screen projection method of any of claims 1 to 5.
10. A display device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the screen projection method of claim 6.
CN201911222008.1A 2019-12-03 2019-12-03 Screen projection method and device, android device and display device Active CN111625211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911222008.1A CN111625211B (en) 2019-12-03 2019-12-03 Screen projection method and device, android device and display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911222008.1A CN111625211B (en) 2019-12-03 2019-12-03 Screen projection method and device, android device and display device

Publications (2)

Publication Number Publication Date
CN111625211A true CN111625211A (en) 2020-09-04
CN111625211B CN111625211B (en) 2023-11-28

Family

ID=72259722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911222008.1A Active CN111625211B (en) 2019-12-03 2019-12-03 Screen projection method and device, android device and display device

Country Status (1)

Country Link
CN (1) CN111625211B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714273A (en) * 2020-12-25 2021-04-27 北京字节跳动网络技术有限公司 Screen sharing display method, device, equipment and storage medium
CN113179554A (en) * 2021-04-22 2021-07-27 上海掌门科技有限公司 Method, apparatus, medium, and program product for acquiring information in a second terminal
CN113206964A (en) * 2021-04-29 2021-08-03 深圳康佳电子科技有限公司 Screen projection data display processing method and device, terminal equipment and storage medium
WO2022111727A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Multi-screen collaborative display method and electronic device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635466A (en) * 2003-12-30 2005-07-06 英业达股份有限公司 Remote server host computer frame monitoring system and method thereof
KR100659341B1 (en) * 2005-08-01 2006-12-19 주식회사 대우일렉트로닉스 Tablet device and method of projection tv
CN1928703A (en) * 2005-09-09 2007-03-14 精工爱普生株式会社 Projection system, information processing apparatus, and modified image data generation method and program
KR20100043853A (en) * 2008-10-21 2010-04-29 엘지전자 주식회사 Mobile terminal and method for controlling display thereof
CN102457701A (en) * 2010-11-02 2012-05-16 华为终端有限公司 Image display processing method and device for same
CN102664939A (en) * 2012-04-13 2012-09-12 江苏诚迈科技有限公司 Method and device for mobile terminal of screen mirror image
CN102981793A (en) * 2012-11-22 2013-03-20 Tcl集团股份有限公司 Screen synchronization method and device
CN103152573A (en) * 2013-03-15 2013-06-12 惠州Tcl移动通信有限公司 Method and system for transmitting image frame between mobile terminal and intelligent television set
US8630501B1 (en) * 2011-01-28 2014-01-14 Dr Systems, Inc. Dual technique compression
CN104023191A (en) * 2014-06-13 2014-09-03 暨南大学 Android-based camera projection system and implementation method
CN104407829A (en) * 2014-11-06 2015-03-11 北京凌阳益辉科技有限公司 Method and device thereof for displaying image mirror
CN104427334A (en) * 2013-09-02 2015-03-18 联想(北京)有限公司 Data processing method, image demonstration method, data processing device and demonstration equipment
CN107623870A (en) * 2017-09-29 2018-01-23 北京盛世辉科技有限公司 Control method, device, equipment and computer-readable recording medium
CN108920937A (en) * 2018-07-03 2018-11-30 广州视源电子科技股份有限公司 It throws screen system, throw screen method and apparatus
CN110381195A (en) * 2019-06-05 2019-10-25 华为技术有限公司 A kind of throwing screen display methods and electronic equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635466A (en) * 2003-12-30 2005-07-06 英业达股份有限公司 Remote server host computer frame monitoring system and method thereof
KR100659341B1 (en) * 2005-08-01 2006-12-19 주식회사 대우일렉트로닉스 Tablet device and method of projection tv
CN1928703A (en) * 2005-09-09 2007-03-14 精工爱普生株式会社 Projection system, information processing apparatus, and modified image data generation method and program
KR20100043853A (en) * 2008-10-21 2010-04-29 엘지전자 주식회사 Mobile terminal and method for controlling display thereof
CN102457701A (en) * 2010-11-02 2012-05-16 华为终端有限公司 Image display processing method and device for same
US8630501B1 (en) * 2011-01-28 2014-01-14 Dr Systems, Inc. Dual technique compression
CN102664939A (en) * 2012-04-13 2012-09-12 江苏诚迈科技有限公司 Method and device for mobile terminal of screen mirror image
CN102981793A (en) * 2012-11-22 2013-03-20 Tcl集团股份有限公司 Screen synchronization method and device
CN103152573A (en) * 2013-03-15 2013-06-12 惠州Tcl移动通信有限公司 Method and system for transmitting image frame between mobile terminal and intelligent television set
CN104427334A (en) * 2013-09-02 2015-03-18 联想(北京)有限公司 Data processing method, image demonstration method, data processing device and demonstration equipment
CN104023191A (en) * 2014-06-13 2014-09-03 暨南大学 Android-based camera projection system and implementation method
CN104407829A (en) * 2014-11-06 2015-03-11 北京凌阳益辉科技有限公司 Method and device thereof for displaying image mirror
CN107623870A (en) * 2017-09-29 2018-01-23 北京盛世辉科技有限公司 Control method, device, equipment and computer-readable recording medium
CN108920937A (en) * 2018-07-03 2018-11-30 广州视源电子科技股份有限公司 It throws screen system, throw screen method and apparatus
CN110381195A (en) * 2019-06-05 2019-10-25 华为技术有限公司 A kind of throwing screen display methods and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄晓地: "多媒体数据压缩技术", no. 04, pages 13 - 17 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022111727A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Multi-screen collaborative display method and electronic device
CN112714273A (en) * 2020-12-25 2021-04-27 北京字节跳动网络技术有限公司 Screen sharing display method, device, equipment and storage medium
CN113179554A (en) * 2021-04-22 2021-07-27 上海掌门科技有限公司 Method, apparatus, medium, and program product for acquiring information in a second terminal
CN113206964A (en) * 2021-04-29 2021-08-03 深圳康佳电子科技有限公司 Screen projection data display processing method and device, terminal equipment and storage medium
CN113206964B (en) * 2021-04-29 2022-07-26 深圳康佳电子科技有限公司 Screen projection data display processing method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN111625211B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
CN111625211B (en) Screen projection method and device, android device and display device
US10110672B2 (en) Graphic sharing
JP6338688B2 (en) Video synchronized playback method, apparatus, and system
CN107292808B (en) Image processing method and device and image coprocessor
CN109040786B (en) Camera data transmission method, device and system and storage medium
WO2022252488A1 (en) Image compression method and apparatus, electronic device, and readable storage medium
CN109302637B (en) Image processing method, image processing device and electronic equipment
EP3410302B1 (en) Graphic instruction data processing method, apparatus
CN108881743B (en) Video image processing method, device and system based on splicing wall
EP2905945A1 (en) Inter-terminal image sharing method, terminal device and communication system
US20170149856A1 (en) Wireless video transmission device, video playing device and method, and system
CN114938408B (en) Data transmission method, system, equipment and medium of cloud mobile phone
CN110740352B (en) SPICE protocol-based difference image display method in video card transparent transmission environment
CN115766695A (en) Websocket-based remote browsing method and device for real-time image of industrial camera
CN114979541A (en) Video display system
JP4329429B2 (en) Image transfer apparatus, image transfer method, and image transfer program
CN108933945B (en) GIF picture compression method, device and storage medium
CN107995524A (en) A kind of FTP client FTP and its design, data processing method for connecting network video server
CN111190675A (en) Three-dimensional image transmission method and equipment based on Roc processor
CN106851134B (en) Method, device and system for transmitting image data
CN110868614B (en) SPICE protocol-based difference image display system in video card transparent transmission environment
CN118283295A (en) Image processing method and device, electronic equipment and storage medium
CN113938753B (en) Live broadcast data processing method and device, storage medium and equipment
CN113721877A (en) Screen pushing method, device, equipment and storage medium
CN115767116A (en) Data processing method and device based on cloud application, electronic equipment and storage medium

Legal Events

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