CN111190675A - Three-dimensional image transmission method and equipment based on Roc processor - Google Patents

Three-dimensional image transmission method and equipment based on Roc processor Download PDF

Info

Publication number
CN111190675A
CN111190675A CN201911370502.2A CN201911370502A CN111190675A CN 111190675 A CN111190675 A CN 111190675A CN 201911370502 A CN201911370502 A CN 201911370502A CN 111190675 A CN111190675 A CN 111190675A
Authority
CN
China
Prior art keywords
image data
desktop image
spice
server
desktop
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
CN201911370502.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.)
Shandong Qianyun Qichuang Information Technology Co ltd
Original Assignee
Shandong Qianyun Qichuang 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 Shandong Qianyun Qichuang Information Technology Co ltd filed Critical Shandong Qianyun Qichuang Information Technology Co ltd
Priority to CN201911370502.2A priority Critical patent/CN111190675A/en
Publication of CN111190675A publication Critical patent/CN111190675A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation

Abstract

The embodiment of the application provides a three-dimensional image data transmission method and equipment based on a spread-spectrum processor, and a desktop image of a local client is obtained according to an instruction from a remote client. And under the condition that the desktop image is a three-dimensional image, sending the desktop image data to a physical display card of a virtual machine corresponding to the local client. And sending the desktop image data in the physical display card to the spice-server through a virtual serial port of the virtual machine, so that the spice-server sends the desktop image data to the remote client. Based on the scheme, desktop synchronization of the three-dimensional application can be realized when desktop virtualization is performed by adopting a spice protocol.

Description

Three-dimensional image transmission method and equipment based on Roc processor
Technical Field
The application relates to the technical field of image transmission, in particular to a three-dimensional image transmission method and equipment based on a Roc processor.
Background
With the continuous development of computer and network technologies, cloud computing becomes more and more important, and a virtual desktop is a typical application of the cloud computing technology, can provide remote computer desktop service for users, and compared with a traditional computer, reduces the cost and realizes unified management.
In the prior art, a Simple Protocol for independent computing Environment (Simple Protocol) is widely applied to virtual desktop communication. The spice protocol adopts QXL to obtain images, however, the QXL can only process two-dimensional image instructions and does not support three-dimensional image data instructions, so that desktop synchronization cannot be performed on the application of certain three-dimensional images when desktop virtualization is performed by using the spice protocol. Nowadays, more and more three-dimensional images are applied, and the prior art cannot meet the requirements.
Disclosure of Invention
The embodiment of the application provides a three-dimensional image transmission method and equipment based on a spread processor, which solve the following technical problems in the prior art: when the desktop virtualization is performed by adopting the spice protocol, the desktop synchronization of the three-dimensional image application cannot be performed.
In one aspect, an embodiment of the present application provides a transmission method based on a spread network processor, where the method includes: and acquiring the desktop image of the local client according to the instruction from the remote client. And under the condition that the desktop image is a three-dimensional image, sending the desktop image data to a physical display card of a virtual machine corresponding to the local client. The desktop image data in the physical display card is sent to a Simple Protocol server (spice-server) in an independent Computing environment through a virtual serial port of the virtual machine, so that the spice-server sends the desktop image data to a remote client.
In one possible implementation, before sending the desktop image data to the physical graphics card of the virtual machine, the method further includes: and directly supplying the physical display card of the physical server to a virtual machine corresponding to the local client for use in a preset transmission mode.
In a possible implementation manner, sending desktop image data in a physical graphics card to a spice-server through a virtual serial port of a virtual machine specifically includes: and a preset image capturing program in the virtual machine captures desktop image data from the physical display card. And sending the captured desktop image data to the spice-server through a virtual serial port of the virtual machine.
In a possible implementation manner, the preset grapple program is a mirror image driven mirrordrive.
In one possible implementation manner, after the desktop image data in the physical display card is sent to the spice-server, the method further includes: and the spice-server compresses the desktop image data based on a gzip compression algorithm in the spread processor. And the spice-server sends the compressed desktop image data to the remote client.
In a possible implementation manner, the spice-server sending the compressed desktop image data to the remote client specifically includes: and the spice-server sends the compressed desktop image data to the remote client through a spice protocol display channel.
In one possible implementation, the method further includes: and the remote client generates a corresponding drawing board according to the received desktop image data sent by the spice-server, and performs image rendering to obtain a desktop image and display the desktop image.
In a possible implementation manner, before sending the desktop image data in the physical graphics card to the spice-server through the virtual serial port of the virtual machine, the method further includes: and carrying out format conversion on the desktop image data, wherein the desktop image data after the format conversion corresponds to the communication protocol of the virtual serial port.
In one possible implementation, the predetermined transmission mode is transparent transmission.
On the other hand, an embodiment of the present application further provides a transmission device based on a spread spectrum processor, where the transmission device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to:
and acquiring the desktop image of the local client according to the instruction from the remote client. And under the condition that the desktop image is a three-dimensional image, sending the desktop image data to a physical display card of a virtual machine corresponding to the local client. And sending the desktop image data in the physical display card to the spice-server through a virtual serial port of the virtual machine, so that the spice-server sends the desktop image data to the remote client.
According to the three-dimensional image transmission method and device based on the spread-spectrum processor, data of the three-dimensional desktop image can be obtained through the physical display card which is directly provided for the virtual machine to use, the data of the three-dimensional desktop image in the physical display card is sent to the remote client side through the virtual serial port and the spice-server of the virtual machine, and the remote client side can display the three-dimensional desktop image to achieve desktop virtualization. Through the technical scheme, desktop synchronization of the three-dimensional application can be realized when desktop virtualization is performed by adopting a spice protocol, the realization complexity is low, the compatibility is good, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a three-dimensional image transmission method based on a spread-spectrum processor according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a three-dimensional image transmission apparatus based on a spread network processor according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in the description belong to the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a three-dimensional image transmission method based on a spread network processor according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
s101, acquiring a desktop image of a local client according to an instruction from a remote client.
The instruction of the remote client may be an instruction of performing desktop virtualization, which is input by a user at the remote client. And after receiving the instruction of the remote client, acquiring the desktop image of the local client.
And S102, directly supplying the physical display card of the physical server corresponding to the local client to the virtual machine corresponding to the local client for use in a preset transmission mode.
In this embodiment of the application, the preset transmission mode may be a transparent transmission mode, and the physical graphics card of the physical server corresponding to the local client is directly provided to the virtual machine for use through the transparent transmission mode.
Transparent transmission refers to that the communication is only responsible for transmitting the transmitted content from a source address to a destination address regardless of the transmitted service content, and no change is made to the content of the service data. And a transparent transmission mode is adopted, so that the method has the advantage of high reliability.
Step S102 may be executed before S101, or may be executed after S101, and is not limited in the embodiment of the present application. In addition, in the embodiment of the present application, the preset transmission method is not limited, and other transmission methods may be selected, and the preset transmission method may be modified according to actual situations.
Because the virtual display card of the virtual machine can only obtain a two-dimensional desktop image, the virtual display card does not support a three-dimensional desktop image. Therefore, the physical display card of the physical server is provided for the virtual machine to use, and the three-dimensional desktop image can be acquired.
And S103, under the condition that the desktop image is the three-dimensional image, sending the desktop image data to a physical display card of the virtual machine.
In this application, the acquired desktop image may be analyzed first to determine whether the desktop image is a three-dimensional image. And under the condition that the desktop image is a three-dimensional image, the desktop image data can be sent to a physical display card of the virtual machine.
It should be noted that the physical graphics card of the virtual machine is obtained in step S102. By the scheme, the problem that the desktop image obtained by the virtual display card of the virtual machine can only be a two-dimensional image when desktop virtualization is carried out by adopting a spice protocol in the prior art is avoided, and the three-dimensional desktop image can be obtained.
And S104, sending the desktop image data in the physical display card to the spice-server through the virtual serial port of the virtual machine.
Because the serial port has a specific serial port communication protocol, in some embodiments of the application, format conversion needs to be performed on the desktop image data first, and the desktop image data after the format conversion corresponds to the communication protocol of the virtual serial port.
It should be noted that, the correspondence means that the data format of the desktop image data after format conversion conforms to the communication protocol of the virtual serial port.
Moreover, the virtual machine may have a plurality of virtual serial ports, so that format conversion of the desktop image data requires a virtual serial port for communication with the first selected virtual serial port.
In some embodiments of the application, the desktop image data in the physical display card is sent to the spice-server through a virtual serial port of the virtual machine, and the method can be implemented in the following manner:
a preset image capturing program in the virtual machine captures desktop image data from the physical display card;
and sending the captured desktop image data to the spice-server through a virtual serial port of the virtual machine.
In some embodiments of the present application, the predetermined grapple program may be a mirror driver (mirrordriver). Because the mirror image drive is carried by the system, the mirror image drive is convenient to use, and the complexity of the system can be reduced.
That is to say, the desktop image data is captured from the physical display card of the virtual machine through a preset image capture program in the virtual machine, and the desktop image data is sent to the spice-server through the virtual serial port. By the scheme, the desktop image data can be acquired from the physical display card of the virtual machine.
It should be noted that the virtual serial port of the virtual machine is configured in advance, and the configured virtual serial port may be consistent with the serial port of the physical server.
S105, the spice-server compresses the desktop image data based on a gzip compression algorithm in the spread processor.
In the description of the application, the spice-server may compress the desktop image data directly based on a gzip compression algorithm built in the Roc processor, and then send the compressed desktop image data to the remote client. On one hand, the desktop image data is compressed and then transmitted, and the transmission efficiency can be improved on the premise of not losing useful information. On the other hand, a built-in gzip compression algorithm in the spread processor is directly adopted, so that the method is simple, convenient and fast.
It should be noted that, in the embodiment of the present application, the gzip compression algorithm in the spread spectrum processor is not limited to be used, and other compression algorithms may also be used.
And S106, the spice-server sends the compressed desktop image data to the remote client through a spice protocol display channel.
The display channel of the spice protocol is used for realizing the communication between the spice-server and the remote client.
In this application, in the process of obtaining the three-dimensional desktop image data obtained by the physical graphics card through the virtual serial port of the virtual machine, the spice-server may interrupt information interaction with the virtual graphics card of the virtual machine, that is, may not receive the two-dimensional desktop image data transmitted by the virtual graphics card any longer. After the spice-server receives the three-dimensional desktop image data, the spice-server can also receive two-dimensional desktop image data transmitted by the virtual display card. By the technical scheme, the three-dimensional desktop image data sent by the virtual serial port is supported to be processed on the basis of being compatible with the original data transmission mode.
S107, the remote client decompresses the received compressed desktop image data to obtain the desktop image data.
In this application, the compressed desktop image data may be decompressed through a decompression algorithm corresponding to the gzip compression algorithm, so that the remote client obtains the decompressed desktop image data.
And S108, the remote client generates a corresponding drawing board according to the decompressed desktop image data, renders the image, and obtains and displays the desktop image.
It should be noted that the received desktop image data may include a format of the desktop image set according to a preset setting, where the format may refer to a size, a resolution, and the like of the desktop image displayed on the remote client.
The remote client can determine the format of the desktop image according to the decompressed desktop image data to generate a drawing board with corresponding size and resolution, and then perform image rendering on the drawing board according to the desktop image data to generate the desktop image.
In some embodiments of the present application, if the desktop image obtained in S101 is a two-dimensional image, the two-dimensional desktop image may be obtained through a virtual graphics card of a virtual machine according to the prior art, so as to complete desktop synchronization. The desktop synchronization can also be realized according to the technical scheme provided by the application specification, and the desktop virtualization mode of the two-dimensional desktop image is not limited in the embodiment of the application.
It should be noted that, when the desktop image is a two-dimensional image, desktop virtualization may also be implemented through the above scheme, that is, when the desktop image is a two-dimensional image, the virtual machine sends the acquired two-dimensional desktop image data to a physical graphics card of the virtual machine, and then completes desktop virtualization in the manner of steps S104 to S108. Therefore, in the technical scheme provided by the embodiment of the application, the transmission of the three-dimensional desktop image can be realized, and the transmission of the two-dimensional desktop image can also be realized.
According to the three-dimensional image transmission method based on the spread-spectrum processor, data of the three-dimensional desktop image can be obtained through the physical display card which is directly provided for the virtual machine to use, the data of the three-dimensional desktop image in the physical display card is sent to the remote client side through the virtual serial port and the spice-server of the virtual machine, and the remote client side can display the three-dimensional desktop image to achieve desktop virtualization. Based on the technical scheme, desktop synchronization of three-dimensional application can be realized when desktop virtualization is performed by adopting a spice protocol, the realization complexity is low, the compatibility is good, and the user experience is improved.
Based on the same idea, some embodiments of the present application further provide a device corresponding to the above method.
Fig. 2 is a schematic structural diagram of a three-dimensional image transmission apparatus based on a spread network processor according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
and acquiring the desktop image of the local client according to the instruction from the remote client. And under the condition that the desktop image is a three-dimensional image, sending the desktop image data to a physical display card of a virtual machine corresponding to the local client. And sending the desktop image data in the physical display card to the spice-server through a virtual serial port of the virtual machine, so that the spice-server sends the desktop image data to the remote client.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The devices and the methods provided by the embodiment of the application are in one-to-one correspondence, so the devices also have beneficial technical effects similar to the corresponding methods.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment is described with emphasis on differences from other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (10)

1. A three-dimensional image transmission method based on a Kunpeng processor is characterized by comprising the following steps:
acquiring a desktop image of a local client according to an instruction from a remote client;
under the condition that the desktop image is a three-dimensional image, sending the desktop image data to a physical display card of a virtual machine corresponding to a local client;
and sending the desktop image data in the physical display card to a spice-server of an independent computing environment simple protocol server through a virtual serial port of the virtual machine, so that the spice-server sends the desktop image data to the remote client.
2. The method of claim 1, wherein prior to sending the desktop image data to the physical graphics card of the virtual machine, the method further comprises:
and directly supplying the physical display card of the physical server corresponding to the local client to the virtual machine corresponding to the local client for use in a preset transmission mode.
3. The method according to claim 1, wherein the sending of the desktop image data in the physical graphics card to the spice-server via the virtual serial port of the virtual machine specifically comprises:
a preset image capturing program in the virtual machine captures the desktop image data from the physical display card;
and sending the captured desktop image data to a spice-server through a virtual serial port of the virtual machine.
4. The method of claim 3, wherein the predetermined grapple program is a mirror driven mirrordrive.
5. The method of claim 1, wherein after sending the desktop image data in the physical graphics card to a spice-server, the method further comprises:
the spice-server compresses the desktop image data based on a gzip compression algorithm in the spread processor;
and the spice-server sends the compressed desktop image data to the remote client.
6. The method according to claim 5, wherein the spice-server sends the compressed desktop image data to the remote client, specifically comprising:
and the spice-server sends the compressed desktop image data to the remote client through a spice protocol display channel.
7. The method of claim 1, further comprising:
and the remote client generates a corresponding drawing board according to the received desktop image data sent by the spice-server, and performs image rendering to obtain and display the desktop image.
8. The method of claim 1, wherein before sending the desktop image data in the physical graphics card to the spice-server through the virtual serial port of the virtual machine, the method further comprises:
and converting the format of the desktop image data to enable the desktop image data to correspond to the communication protocol of the virtual serial port.
9. The method of claim 1, wherein the predetermined transmission mode is transparent transmission.
10. A three-dimensional image transmission device based on a Kunpeng processor, characterized in that the device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to: acquiring a desktop image of a local client according to an instruction from a remote client;
under the condition that the desktop image is a three-dimensional image, sending the desktop image data to a physical display card of a virtual machine corresponding to a local client;
and sending the desktop image data in the physical display card to a spice-server of an independent computing environment simple protocol server through a virtual serial port of the virtual machine, so that the spice-server sends the desktop image data to the remote client.
CN201911370502.2A 2019-12-26 2019-12-26 Three-dimensional image transmission method and equipment based on Roc processor Pending CN111190675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911370502.2A CN111190675A (en) 2019-12-26 2019-12-26 Three-dimensional image transmission method and equipment based on Roc processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911370502.2A CN111190675A (en) 2019-12-26 2019-12-26 Three-dimensional image transmission method and equipment based on Roc processor

Publications (1)

Publication Number Publication Date
CN111190675A true CN111190675A (en) 2020-05-22

Family

ID=70707560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911370502.2A Pending CN111190675A (en) 2019-12-26 2019-12-26 Three-dimensional image transmission method and equipment based on Roc processor

Country Status (1)

Country Link
CN (1) CN111190675A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114675914A (en) * 2022-02-11 2022-06-28 深信服科技股份有限公司 Image transmission method and device of virtual desktop, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015096516A1 (en) * 2013-12-26 2015-07-02 华为技术有限公司 Method and device for sending data in vdi environment
CN106873927A (en) * 2015-12-11 2017-06-20 成都长天信息技术有限公司 A kind of long-range three-dimensional desktop image transfer method based on KVM platforms
CN109343922A (en) * 2018-09-17 2019-02-15 广东微云科技股份有限公司 A kind of method and device that GPU vitualization picture is shown

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015096516A1 (en) * 2013-12-26 2015-07-02 华为技术有限公司 Method and device for sending data in vdi environment
CN106873927A (en) * 2015-12-11 2017-06-20 成都长天信息技术有限公司 A kind of long-range three-dimensional desktop image transfer method based on KVM platforms
CN109343922A (en) * 2018-09-17 2019-02-15 广东微云科技股份有限公司 A kind of method and device that GPU vitualization picture is shown

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李强、闫洪波著: "云制造理论体系及实践应用", vol. 1, 电子科技大学出版社, pages: 212 - 215 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114675914A (en) * 2022-02-11 2022-06-28 深信服科技股份有限公司 Image transmission method and device of virtual desktop, electronic equipment and storage medium
CN114675914B (en) * 2022-02-11 2024-04-09 深信服科技股份有限公司 Image transmission method and device of virtual desktop, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102413150B (en) Server and virtual desktop control method and virtual desktop control system
CA2922867C (en) Desktop-cloud-based media control method and device
WO2019114185A1 (en) App remote control method and related devices
CN103533034A (en) Method for seamlessly using cloud terminal local camera in VDI (Virtual Device Interface) virtual desktop
CN109040786B (en) Camera data transmission method, device and system and storage medium
EP2905945A1 (en) Inter-terminal image sharing method, terminal device and communication system
CN111625211B (en) Screen projection method and device, android device and display device
CN105207975A (en) Data transmission method and data transmission system for USB image equipment under VDI architecture
CN100574414C (en) A kind of mobile phone is by the method for bluetooth to the computer transmitting video image
CN108234659B (en) Data processing method, device and system
EP3929813A2 (en) Image processing method in remote control, device, apparatus and program product
CN115170711A (en) High-simulation digital factory display method based on cloud rendering
CN110740352B (en) SPICE protocol-based difference image display method in video card transparent transmission environment
CN109426473B (en) Wireless programmable media processing system
CN111190675A (en) Three-dimensional image transmission method and equipment based on Roc processor
CN104765636A (en) Remote desktop image synthesis method and device
CN112256226A (en) Wireless screen expansion method and system
US20150186095A1 (en) Inter-terminal image sharing method, terminal device, and communications system
CN103200237B (en) A kind of method and apparatus keeping remote desktop synchronization
CN102073376B (en) Portable wireless operation system and method
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
WO2016095377A1 (en) Image display method and device for thin client and electronic equipment
CN102185861B (en) System and method for realizing interaction between tablet computer and smart phone
CN105610979B (en) Network resource transmission system and method based on virtualization technology
CN112328356B (en) Intercommunication method and device for Android and Windows, storage medium and computer equipment

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