CN114466195A - Image transmission method and device based on SPICE protocol - Google Patents

Image transmission method and device based on SPICE protocol Download PDF

Info

Publication number
CN114466195A
CN114466195A CN202111628480.2A CN202111628480A CN114466195A CN 114466195 A CN114466195 A CN 114466195A CN 202111628480 A CN202111628480 A CN 202111628480A CN 114466195 A CN114466195 A CN 114466195A
Authority
CN
China
Prior art keywords
image
serial number
storing
difference
structure body
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111628480.2A
Other languages
Chinese (zh)
Inventor
刘
李志亮
滕海
尤龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Science And Technology Network Information Development Co ltd
Original Assignee
Aerospace Science And Technology Network Information Development 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 Aerospace Science And Technology Network Information Development Co ltd filed Critical Aerospace Science And Technology Network Information Development Co ltd
Priority to CN202111628480.2A priority Critical patent/CN114466195A/en
Publication of CN114466195A publication Critical patent/CN114466195A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04N19/423Methods 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 characterised by memory arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses an image transmission method and device based on an SPICE protocol. The method comprises the following steps: establishing an image compression structure body, wherein the image compression structure body comprises three parts, the first part is used for storing the serial number of a display interface, the second part is used for storing an image, and the third part is used for storing an image difference; receiving an image to be transmitted sent by a virtual machine, and calculating an image difference between the image to be transmitted and an image stored in a second part of the image compression structure; storing the image to be transmitted into a second part of the image compression structure body, storing the image difference into a third part of the image compression structure body, and adding 1 to the serial number of a display interface of a first part of the image compression structure body; and compressing the image difference, and sending the compressed image difference and the serial number of the display interface to a remote computer. Therefore, the invention compresses the image difference of the adjacent images and transmits the compressed image difference, thereby reducing the network bandwidth while ensuring the real-time transmission.

Description

Image transmission method and device based on SPICE protocol
Technical Field
The present invention relates to the field of image processing, and in particular, to an image transmission method and apparatus based on an SPICE protocol, an electronic device, and a computer-readable storage medium.
Background
Spice (simple Protocol for Independent Computing environment) is a virtualized visual transmission Protocol, and can be used for deploying a virtual desktop on a remote computer, so that a user can use Computing and storage resources connected with the remote computer, a localized experience can be obtained, and the server side can conveniently perform unified management on the remote cluster. The SPICE Protocol is similar to a rendering Protocol for Remote Desktop management, such as Microsoft Remote Desktop Protocol or Citrix Independent Computing Architecture, and can support instances of virtual machines such as Windows and Linux.
The SPICE protocol includes several channels, and the remote computer commands are transmitted via the channels to the server, and the server sends the running result back to the remote computer in image or video mode for display. Of all channels, the channel used for processing the image is the most important. The existing SPICE protocol provides a compression and non-compression transmission mode for image transmission, the non-compression method has strong real-time performance, but the network bandwidth occupies a large amount, and the compression method is just opposite.
Disclosure of Invention
In view of the above, the present invention has been made to provide an image transmission method, apparatus, electronic device, computer-readable storage medium based on SPICE protocol that overcomes or at least partially solves the above-mentioned problems.
One embodiment of the present invention provides an image transmission method based on SPICE protocol, which includes:
establishing an image compression structure body, wherein the image compression structure body comprises three parts, a first part is used for storing the serial number of a display interface, a second part is used for storing an image, and a third part is used for storing an image difference;
receiving an image to be transmitted sent by a virtual machine, and calculating an image difference between the image to be transmitted and an image stored in a second part of the image compression structural body;
storing the image to be transmitted into a second part of the image compression structure body, storing the image difference into a third part of the image compression structure body, and adding 1 to the serial number of a display interface of the first part of the image compression structure body;
and compressing the image difference, and sending the compressed image difference and the serial number of the display interface to a remote computer.
Optionally, the compressing the image difference includes:
and storing the sparse matrix of the image difference by adopting a triplet, wherein the triplet stores the position and the value of the nonzero element of the sparse matrix of the image difference.
Optionally, the method further comprises:
after receiving a retransmission instruction sent by the remote computer, compressing the image stored in the second part of the compression structure, setting the serial number of the display interface of the first part of the compression structure to be 1, and sending the compressed image and the serial number 1 to the remote computer.
Another embodiment of the present invention provides an image transmission method based on SPICE protocol, including:
establishing an image decompression structure body, wherein the image decompression structure body comprises three parts, the first part is used for storing the serial number of the display interface, the second part is used for storing the image, and the third part is used for storing the image difference;
receiving and analyzing the serial number and the image sent by the server;
if the serial number is 1, storing the image into a second part of the image decompression structure, setting the serial number of a first part of the image decompression structure as 1, and decompressing and displaying the image;
and if the serial number is not 1, subtracting the serial number from the serial number of the first part of the image decompression structure, if the subtraction result is 1, decompressing the image, adding the decompressed image to the image of the second part of the image decompression structure, and displaying the decompressed image.
Optionally, the method further comprises:
and if the subtraction result is not 1, sending a retransmission instruction to the server.
Another embodiment of the present invention provides an image transmission apparatus based on SPICE protocol, including:
the image compression structure body building unit is used for building an image compression structure body, and the image compression structure body comprises three parts, wherein the first part is used for storing the serial number of the display interface, the second part is used for storing the image, and the third part is used for storing the image difference;
the image difference calculation unit is used for receiving an image to be transmitted sent by the virtual machine and calculating the image difference between the image to be transmitted and the image stored in the second part of the image compression structural body;
the image compression structure processing unit is used for storing the image to be transmitted into the second part of the image compression structure, storing the image difference into the third part of the image compression structure and adding 1 to the serial number of the display interface of the first part of the image compression structure;
and the image sending unit is used for compressing the image difference and sending the compressed image difference and the serial number of the display interface to the remote computer.
Optionally, the image sending unit is further configured to:
storing the sparse matrix of the image difference by adopting a triplet, wherein the triplet stores the position and the value of the nonzero element of the sparse matrix of the image difference;
the device further comprises:
and the image retransmission unit is used for compressing the image stored in the second part of the compression structure body after receiving a retransmission instruction sent by the remote computer, setting the serial number of the display interface of the first part of the compression structure body to be 1, and sending the compressed image and the serial number 1 to the remote computer.
Another embodiment of the present invention provides an image transmission apparatus based on SPICE protocol, including:
the image decompression structure body building unit is used for building an image decompression structure body, and the image decompression structure body comprises three parts, wherein the first part is used for storing the serial number of the display interface, the second part is used for storing the image, and the third part is used for storing the image difference;
the image receiving unit is used for receiving and analyzing the serial number and the image sent by the server;
the image display unit is used for storing the image into the second part of the image decompression structure when the serial number is 1, setting the serial number of the first part of the image decompression structure as 1, and decompressing and displaying the image; and when the serial number is not 1, subtracting the serial number from the serial number of the first part of the image decompression structure, if the subtraction result is 1, decompressing the image, adding the decompressed image to the image of the second part of the image decompression structure, and displaying the decompressed image.
Optionally, if the subtraction result is not 1, a retransmission instruction is sent to the server.
Another embodiment of the present invention provides an electronic device, wherein the electronic device includes:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the SPICE protocol based image transmission method described above.
Another embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs which, when executed by a processor, implement the above-described SPICE protocol-based image transmission method.
The invention has the beneficial effects that the image difference of the adjacent images is compressed and transmitted through the structure body, so that the real-time property of transmission is ensured, and the network bandwidth is reduced.
The method adopts the triad to store the sparse matrix of the image difference, and stores the position and the value of the nonzero element of the sparse matrix of the image difference through the triad. The compression algorithm is not influenced by the image format, and the compatibility of image transmission is improved.
The invention also adds a retransmission instruction for the SPICE protocol, and improves the integrity of image transmission.
Drawings
FIG. 1 is a flowchart illustrating an image transmission method based on SPICE protocol according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an image transmission method based on SPICE protocol according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of an image transmission method based on SPICE protocol according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an image transmission method based on SPICE protocol according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an image transmission apparatus based on SPICE protocol according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an image transmission apparatus based on SPICE protocol according to an embodiment of the present invention;
FIG. 7 shows a schematic structural diagram of an electronic device according to one embodiment of the invention;
fig. 8 illustrates a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating an image transmission method based on SPICE protocol according to an embodiment of the present invention. As shown in fig. 1, the execution subject of the method is a server, and the method includes:
s11: establishing an image compression structure body, wherein the image compression structure body comprises three parts, a first part is used for storing the serial number of a display interface, a second part is used for storing an image, and a third part is used for storing an image difference;
s12: receiving an image to be transmitted sent by a virtual machine, and calculating an image difference between the image to be transmitted and an image stored in a second part of the image compression structural body;
s13: storing the image to be transmitted into a second part of the image compression structure body, storing the image difference into a third part of the image compression structure body, and adding 1 to the serial number of a display interface of the first part of the image compression structure body;
s14: and compressing the image difference, and sending the compressed image difference and the serial number of the display interface to a remote computer.
According to the image transmission method based on the SPICE protocol, the image difference of the adjacent images is compressed through the structural body and then transmitted, so that the transmission real-time performance is guaranteed, and the network bandwidth is reduced.
It can be understood that the image difference can be regarded as a sparse matrix, and in an alternative implementation of the embodiment of the present invention, the compressing the image difference includes:
and storing the sparse matrix of the image difference by adopting a triplet, wherein the triplet stores the position and the value of the nonzero element of the sparse matrix of the image difference.
The embodiment of the invention stores the sparse matrix of the image difference by adopting the triad group, and stores the position and the value of the nonzero element of the sparse matrix of the image difference by the triad group. The compression algorithm is not influenced by the image format, and the compatibility of image transmission is improved.
Further, the method further comprises:
after receiving a retransmission instruction sent by the remote computer, compressing the image stored in the second part of the compression structure, setting the serial number of the display interface of the first part of the compression structure to be 1, and sending the compressed image and the serial number 1 to the remote computer.
The embodiment of the invention also adds a retransmission instruction for the SPICE protocol, and improves the integrity of image transmission.
Fig. 2 is a flowchart illustrating an image transmission method based on SPICE protocol according to an embodiment of the present invention. As shown in fig. 2, the execution subject of the method is a remote computer, including:
s21: establishing an image decompression structure body, wherein the image decompression structure body comprises three parts, the first part is used for storing the serial number of the display interface, the second part is used for storing the image, and the third part is used for storing the image difference;
s22: receiving and analyzing the serial number and the image sent by the server;
s23: if the serial number is 1, storing the image into a second part of the image decompression structure, setting the serial number of a first part of the image decompression structure as 1, and decompressing and displaying the image; and if the serial number is not 1, subtracting the serial number from the serial number of the first part of the image decompression structure, if the subtraction result is 1, decompressing the image, adding the decompressed image to the image of the second part of the image decompression structure, and displaying the decompressed image.
According to the image transmission method based on the SPICE protocol, the serial number and the image sent by the server are received and analyzed through the structure body, the image is decompressed and then displayed, and the network bandwidth is reduced while the real-time transmission performance is guaranteed.
In an optional implementation manner of the embodiment of the present invention, the method further includes:
and if the subtraction result is not 1, sending a retransmission instruction to the server.
The embodiment of the invention also adds a retransmission instruction for the SPICE protocol, and improves the integrity of image transmission.
Fig. 3 is a schematic diagram of an image transmission method based on SPICE protocol according to an embodiment of the invention. As shown in fig. 3, the embodiment of the present invention transmits images from the SPICE server side to the SPICE client (remote computer) through the fabric. The specific flow is shown in fig. 4:
(1) compared with the prior art, the structure body is added at the compression end and the decompression end of the invention.
(2) At the compression end, the image to be transmitted is differentiated from the image stored in the structural body, then the image to be transmitted is stored in the second part of the structural body, then the image difference is stored in the third part of the structural body, finally the serial number of the display image is added with 1, and the image difference is compressed and transmitted to the decompression end together with the image serial number.
(3) At the decompression end, firstly reading the image serial number, if the serial number is 1, analyzing the received data according to the corresponding image format, storing the data into the second part of the structure body, setting the serial number of the first part to be 1, and displaying the image on a screen. If the sequence number is not 1, subtracting the sequence number of the received image from the sequence number of the decompression end, and if the result is not equal to 1, requiring the compression end to retransmit; and if the result is equal to 1, decompressing the data, then adding the decompressed data to the second part of the structure to obtain a final image, displaying the final image on a screen, finally storing the final image to the second part of the structure, and adding 1 to the serial number of the first part of the structure.
(4) And after receiving the retransmission instruction, the compression end sets the serial number of the first part of the structure body to be 1 and sends the serial number and the image stored in the second part of the structure body to the decompression end.
Fig. 5 is a schematic structural diagram of an image transmission apparatus based on SPICE protocol according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes:
an image compression structure establishing unit 51 configured to establish an image compression structure, where the image compression structure includes three parts, a first part is used to store a serial number of a display interface, a second part is used to store an image, and a third part is used to store an image difference;
the image difference calculating unit 52 is configured to receive an image to be transmitted sent by the virtual machine, and calculate an image difference between the image to be transmitted and an image stored in the second part of the image compression structure;
the image compression structure processing unit 53 is configured to store the image to be transmitted in the second part of the image compression structure, store the image difference in the third part of the image compression structure, and add 1 to the serial number of the display interface of the first part of the image compression structure;
and an image sending unit 54, configured to compress the image difference, and send the compressed image difference and the serial number of the display interface to the remote computer.
According to the image transmission device based on the SPICE protocol, the image difference of the adjacent images is compressed through the structural body and then transmitted, so that the transmission real-time performance is guaranteed, and the network bandwidth is reduced.
The image sending unit 54 is further configured to:
storing the sparse matrix of the image difference by adopting a triplet, wherein the triplet stores the position and the value of the nonzero element of the sparse matrix of the image difference;
the device further comprises:
and the image retransmission unit is used for compressing the image stored in the second part of the compression structure body after receiving a retransmission instruction sent by the remote computer, setting the serial number of the display interface of the first part of the compression structure body to be 1, and sending the compressed image and the serial number 1 to the remote computer.
Fig. 6 is a schematic structural diagram of an image transmission apparatus based on SPICE protocol according to an embodiment of the present invention. As shown in fig. 6, the apparatus includes:
an image decompression structure establishing unit 61 for establishing an image decompression structure including three parts, wherein the first part is used for storing the serial number of the display interface, the second part is used for storing the image, and the third part is used for storing the image difference;
an image receiving unit 62, configured to receive and analyze the serial number and the image sent by the server;
an image display unit 63, configured to store the image into the second portion of the image decompression structure when the serial number is 1, set the serial number of the first portion of the image decompression structure to 1, and decompress and display the image; and when the serial number is not 1, subtracting the serial number from the serial number of the first part of the image decompression structure, if the subtraction result is 1, decompressing the image, adding the decompressed image to the image of the second part of the image decompression structure, and displaying the decompressed image.
The image transmission device based on the SPICE protocol receives and analyzes the serial number and the image sent by the server through the structural body, decompresses the image and then displays the image, and reduces the network bandwidth while ensuring the real-time transmission.
Further, if the subtraction result is not 1, a retransmission instruction is sent to the server.
It should be noted that the image transmission apparatuses based on the SPICE protocol in the foregoing embodiments can be respectively used for executing the methods in the foregoing embodiments, and therefore, detailed description thereof is omitted.
In summary, the structure compresses and transmits the image difference of the adjacent images, thereby reducing the network bandwidth while ensuring the real-time performance of transmission.
The method adopts the triad to store the sparse matrix of the image difference, and stores the position and the value of the nonzero element of the sparse matrix of the image difference through the triad. The compression algorithm is not influenced by the image format, and the compatibility of image transmission is improved.
The invention also adds a retransmission instruction for the SPICE protocol, and improves the integrity of image transmission.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Moreover, those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments, not others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the apparatus for detecting a wearing state of an electronic device according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. The electronic device conventionally comprises a processor 71 and a memory 72 arranged to store computer executable instructions (program code). The memory 72 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 72 has a storage space 73 for storing program code 74 for performing the method steps shown in fig. 1 and in the various embodiments. For example, the storage space 73 for storing the program code may comprise respective program codes 74 for implementing the various steps in the above method, respectively. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a computer readable storage medium such as described in fig. 8. The computer readable storage medium may have memory segments, memory spaces, etc. arranged similarly to the memory 72 in the electronic device of fig. 7. The program code may be compressed, for example, in a suitable form. In general, the memory space stores program code 81 for performing the steps of the method according to the invention, i.e. there may be program code, such as read by the processor 71, which, when run by the electronic device, causes the electronic device to perform the steps of the method described above.
While the foregoing is directed to embodiments of the present invention, other modifications and variations of the present invention may be devised by those skilled in the art in light of the above teachings. It should be understood by those skilled in the art that the foregoing detailed description is for the purpose of better explaining the present invention, and the scope of the present invention should be determined by the scope of the appended claims.

Claims (10)

1. An image transmission method based on SPICE protocol is characterized by comprising the following steps:
establishing an image compression structure body, wherein the image compression structure body comprises three parts, a first part is used for storing the serial number of a display interface, a second part is used for storing an image, and a third part is used for storing an image difference;
receiving an image to be transmitted sent by a virtual machine, and calculating an image difference between the image to be transmitted and an image stored in a second part of the image compression structural body;
storing the image to be transmitted into a second part of the image compression structure body, storing the image difference into a third part of the image compression structure body, and adding 1 to the serial number of a display interface of the first part of the image compression structure body;
and compressing the image difference, and sending the compressed image difference and the serial number of the display interface to a remote computer.
2. The method of claim 1, wherein compressing the image difference comprises:
and storing the sparse matrix of the image difference by adopting a triplet, wherein the triplet stores the position and the value of the nonzero element of the sparse matrix of the image difference.
3. The method of claim 1, further comprising:
after receiving a retransmission instruction sent by the remote computer, compressing the image stored in the second part of the compression structure, setting the serial number of the display interface of the first part of the compression structure to be 1, and sending the compressed image and the serial number 1 to the remote computer.
4. An image transmission method based on SPICE protocol is characterized by comprising the following steps:
establishing an image decompression structure body, wherein the image decompression structure body comprises three parts, the first part is used for storing the serial number of the display interface, the second part is used for storing the image, and the third part is used for storing the image difference;
receiving and analyzing the serial number and the image sent by the server;
if the serial number is 1, storing the image into a second part of the image decompression structure, setting the serial number of a first part of the image decompression structure as 1, and decompressing and displaying the image;
and if the serial number is not 1, subtracting the serial number from the serial number of the first part of the image decompression structure, if the subtraction result is 1, decompressing the image, adding the decompressed image to the image of the second part of the image decompression structure, and displaying the decompressed image.
5. The method of claim 4, further comprising:
and if the subtraction result is not 1, sending a retransmission instruction to the server.
6. An image transmission apparatus based on SPICE protocol, comprising:
the image compression structure body building unit is used for building an image compression structure body, and the image compression structure body comprises three parts, wherein the first part is used for storing the serial number of the display interface, the second part is used for storing the image, and the third part is used for storing the image difference;
the image difference calculation unit is used for receiving an image to be transmitted sent by the virtual machine and calculating the image difference between the image to be transmitted and the image stored in the second part of the image compression structural body;
the image compression structure processing unit is used for storing the image to be transmitted into the second part of the image compression structure, storing the image difference into the third part of the image compression structure and adding 1 to the serial number of the display interface of the first part of the image compression structure;
and the image sending unit is used for compressing the image difference and sending the compressed image difference and the serial number of the display interface to the remote computer.
7. The apparatus of claim 5, wherein the image sending unit is further configured to:
storing the sparse matrix of the image difference by adopting a triplet, wherein the triplet stores the position and the value of the nonzero element of the sparse matrix of the image difference;
the device further comprises:
and the image retransmission unit is used for compressing the image stored in the second part of the compression structure body after receiving a retransmission instruction sent by the remote computer, setting the serial number of the display interface of the first part of the compression structure body to be 1, and sending the compressed image and the serial number 1 to the remote computer.
8. An image transmission apparatus based on SPICE protocol, comprising:
the image decompression structure body building unit is used for building an image decompression structure body, and the image decompression structure body comprises three parts, wherein the first part is used for storing the serial number of the display interface, the second part is used for storing the image, and the third part is used for storing the image difference;
the image receiving unit is used for receiving and analyzing the serial number and the image sent by the server;
the image display unit is used for storing the image into the second part of the image decompression structure when the serial number is 1, setting the serial number of the first part of the image decompression structure as 1, and decompressing and displaying the image; and when the serial number is not 1, subtracting the serial number from the serial number of the first part of the image decompression structure, if the subtraction result is 1, decompressing the image, adding the decompressed image to the image of the second part of the image decompression structure, and displaying the decompressed image.
9. An electronic device, comprising:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of claims 1-5.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-5.
CN202111628480.2A 2021-12-29 2021-12-29 Image transmission method and device based on SPICE protocol Pending CN114466195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111628480.2A CN114466195A (en) 2021-12-29 2021-12-29 Image transmission method and device based on SPICE protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111628480.2A CN114466195A (en) 2021-12-29 2021-12-29 Image transmission method and device based on SPICE protocol

Publications (1)

Publication Number Publication Date
CN114466195A true CN114466195A (en) 2022-05-10

Family

ID=81407132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111628480.2A Pending CN114466195A (en) 2021-12-29 2021-12-29 Image transmission method and device based on SPICE protocol

Country Status (1)

Country Link
CN (1) CN114466195A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440612A (en) * 2013-08-27 2013-12-11 华为技术有限公司 Image processing method and device in GPU vitualization
CN104144349A (en) * 2014-07-09 2014-11-12 中电科华云信息技术有限公司 SPICE video coding and decoding expansion method and system based on H264
CN104318532A (en) * 2014-10-23 2015-01-28 湘潭大学 Secondary image fusion method combined with compressed sensing
CN104768009A (en) * 2015-03-19 2015-07-08 中国科学院信息工程研究所 Image transmission method under desktop virtual SPICE protocol
CN106162180A (en) * 2016-06-30 2016-11-23 北京奇艺世纪科技有限公司 A kind of image coding/decoding method and device
CN106863054A (en) * 2017-03-10 2017-06-20 石嘴山市金辉科贸有限公司 A kind of automobile chair guide rail fillet device
CN206445650U (en) * 2016-10-17 2017-08-29 深圳市阿姆斯壮航空科技有限公司 aircraft seat grinding apparatus
CN209223733U (en) * 2018-12-05 2019-08-09 芜湖瑞泰汽车零部件有限公司 A kind of automobile chair guide rail fillet grinding device
CN111251124A (en) * 2020-02-29 2020-06-09 林春华 Arc limit chair leg bracing piece grinding device
CN212385173U (en) * 2020-05-15 2021-01-22 安吉雷萨家具有限公司 Welding point grinding device for office chair machining
CN113473140A (en) * 2021-07-15 2021-10-01 中国科学技术大学 Method, system, device and storage medium for lossy compression of cranial nerve images
CN114012560A (en) * 2021-10-15 2022-02-08 泰州市宇航航空器材有限公司 Burnishing machine is used in aviation seat production and processing based on automatic positioning

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440612A (en) * 2013-08-27 2013-12-11 华为技术有限公司 Image processing method and device in GPU vitualization
CN104144349A (en) * 2014-07-09 2014-11-12 中电科华云信息技术有限公司 SPICE video coding and decoding expansion method and system based on H264
CN104318532A (en) * 2014-10-23 2015-01-28 湘潭大学 Secondary image fusion method combined with compressed sensing
CN104768009A (en) * 2015-03-19 2015-07-08 中国科学院信息工程研究所 Image transmission method under desktop virtual SPICE protocol
CN106162180A (en) * 2016-06-30 2016-11-23 北京奇艺世纪科技有限公司 A kind of image coding/decoding method and device
CN206445650U (en) * 2016-10-17 2017-08-29 深圳市阿姆斯壮航空科技有限公司 aircraft seat grinding apparatus
CN106863054A (en) * 2017-03-10 2017-06-20 石嘴山市金辉科贸有限公司 A kind of automobile chair guide rail fillet device
CN209223733U (en) * 2018-12-05 2019-08-09 芜湖瑞泰汽车零部件有限公司 A kind of automobile chair guide rail fillet grinding device
CN111251124A (en) * 2020-02-29 2020-06-09 林春华 Arc limit chair leg bracing piece grinding device
CN212385173U (en) * 2020-05-15 2021-01-22 安吉雷萨家具有限公司 Welding point grinding device for office chair machining
CN113473140A (en) * 2021-07-15 2021-10-01 中国科学技术大学 Method, system, device and storage medium for lossy compression of cranial nerve images
CN114012560A (en) * 2021-10-15 2022-02-08 泰州市宇航航空器材有限公司 Burnishing machine is used in aviation seat production and processing based on automatic positioning

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
范超;赵荣彩;单征;李朋远;: "结构体向量化中的存储优化", 小型微型计算机系统, no. 09, 15 September 2016 (2016-09-15) *
马志荣, 普杰信, 赵渝青: "JPEG软件压缩的实现与改进", 计算机工程与应用, no. 08, 9 August 1998 (1998-08-09) *

Similar Documents

Publication Publication Date Title
US9025898B2 (en) Dynamically selecting compression method for graphics remoting
US20100161711A1 (en) Measuring client interactive performance using a display channel
CN104660687A (en) Realization method and system for virtual desktop display
US8837824B2 (en) Classification and encoder selection based on content
JP2008526107A (en) Using graphics processors in remote computing
US8995763B2 (en) Systems and methods for determining compression methods to use for an image
CN109309842B (en) Live broadcast data processing method and device, computer equipment and storage medium
CN107404654B (en) JPEG image decompression method, device and platform
US20140108940A1 (en) Method and system of remote communication over a network
CN109168012B (en) Information processing method and device for terminal equipment
US20120113103A1 (en) Apparatus and method for executing 3d application program using remote rendering
CN108595211B (en) Method and apparatus for outputting data
KR20160032936A (en) Apparatus and method for decompressing rendering data and recording medium thereof
US9460481B2 (en) Systems and methods for processing desktop graphics for remote display
CN114466195A (en) Image transmission method and device based on SPICE protocol
CN106959881B (en) Method and device for transmitting data
CN110751251B (en) Method and device for generating and transforming two-dimensional code image matrix
US20170221447A1 (en) Data transmission method, data transmission system and portable display device
CN107872683B (en) Video data processing method, device, equipment and storage medium
CN112732399B (en) Switching method of desktop display protocol, computing device and readable storage medium
CN113835816A (en) Virtual machine desktop display method, device, equipment and readable storage medium
CN111447219B (en) Image display method and device, storage medium and computer equipment
CN110189388B (en) Animation detection method, readable storage medium, and computer device
CN113254123A (en) Cloud desktop scene identification method and device, storage medium and electronic device
CN113157226A (en) Remote data display method, device, equipment and machine-readable 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