CN106873927A - A kind of long-range three-dimensional desktop image transfer method based on KVM platforms - Google Patents
A kind of long-range three-dimensional desktop image transfer method based on KVM platforms Download PDFInfo
- Publication number
- CN106873927A CN106873927A CN201510945106.3A CN201510945106A CN106873927A CN 106873927 A CN106873927 A CN 106873927A CN 201510945106 A CN201510945106 A CN 201510945106A CN 106873927 A CN106873927 A CN 106873927A
- Authority
- CN
- China
- Prior art keywords
- desktop
- bitmap
- mode
- acquisition
- compressed
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of long-range three-dimensional desktop image transfer method based on KVM platforms, more particularly to remote desktop technology field.The video card of physical server is directly used for the virtual machine based on KVM using PCI straight-through technologies;Receive the acquisition desktop bitmap mode selection instruction of user input and desktop bitmap is obtained using selected acquisition desktop bitmap mode;Receive the compress mode selection instruction of user input and the desktop bitmap is compressed using selected compress mode;The desktop bitmap after compression is transmitted using Transmission Control Protocol;The corresponding decompression algorithm of client call is decompressed to the desktop bitmap after the compression that receives, and the bitmap after decompression is shown.This method can solve the problem that the remote desktop synchronization problem that using SPICE protocol 3D cannot be supported to apply, and acquisition modes and compress mode that user can be independently to desktop picture are selected so that this method is more flexible.
Description
Technical field
KVM platforms are based on the present invention relates to remote desktop technology field, more particularly to one kind
Long-range three-dimensional desktop image transfer method.
Background technology
Existing remote desktop transmission method has various, including ICA agreements, PCOIP agreements,
RDP agreements, SPICE protocol etc., they can well realize long-range two dimension desktop picture
Transmission.
SPICE protocol is often currently used on KVM platforms as desktop virtualization agreement
To carry out remote desktop synchronization, but under this structure, because SPICE protocol uses QXL
Instruction is obtained, desktop bitmap drafting is carried out, and QXL does not support that 3D is instructed in itself, such as
DDI instructions, the drafting of D-Draw instructions, cause to use SPICE under KVM platforms
When agreement carries out desktop virtualization, it is impossible to which the application to some 3D carries out desktop synchronization.And
The application of current 3D is more and more, in order to adapt to this demand, it is necessary to a kind of based on KVM
The long-range three-dimensional desktop image transfer method of platform solves cannot to be propped up using SPICE protocol
Hold the remote desktop synchronization problem of 3D applications.
The content of the invention
It is an object of the invention to provide a kind of long-range three-dimensional desktop figure based on KVM platforms
As transmission method, the long-range table that using SPICE protocol 3D cannot be supported to apply is can solve the problem that
Face stationary problem.
To achieve these goals, the technical scheme that the embodiment of the present invention is used is as follows:
A kind of long-range three-dimensional desktop image transfer method based on KVM platforms, methods described
Including:
Using the straight-through technologies of PCI by the video card of physical server directly for the void based on KVM
Plan machine is used;
The acquisition desktop bitmap mode selection instruction of user input is received, wherein the user is defeated
It refers to a kind of acquisition modes selected in two kinds of modes for obtaining desktop bitmap to enter instruction;
Desktop bitmap is obtained using selected acquisition desktop bitmap mode;
The compress mode selection instruction of user input is received, wherein the user input instruction is
Refer to a kind of compress mode selected in two kinds of modes being compressed to the desktop bitmap;
The desktop bitmap is compressed using selected compression algorithm;
The desktop bitmap after compression is transmitted using Transmission Control Protocol;
The corresponding decompression algorithm of client call is to the desktop position after the compression that receives
Figure is decompressed, and the bitmap after decompression is shown.
The long-range three-dimensional desktop image transfer method that the present invention is provided, technology is led directly to using PCI
So that 3D drawing for orders need not be by the transfer of KVM, this mode ratio is used and passed through
Faster, being more suitable for 3D should for the speed that the mode drawn again after KVM transfers is responded
With.User obtains the mode of desktop bitmap and freely selects according to unrestricted choice the need for oneself
Select the mode for compressing the desktop bitmap so that the present invention is more flexible.
It is cited below particularly to enable the above objects, features and advantages of the present invention to become apparent
Preferred embodiment, and coordinate appended accompanying drawing, it is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to embodiment
Needed for the accompanying drawing to be used be briefly described, it will be appreciated that the following drawings illustrate only
Certain embodiments of the present invention, therefore the restriction to scope is not construed as, for ability
For the those of ordinary skill of domain, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other related accompanying drawings.By shown in accompanying drawing, it is of the invention above-mentioned and its
Its purpose, feature and advantage will become apparent from.Identical reference refers in whole accompanying drawings
Show identical part.Accompanying drawing deliberately is not drawn by actual size equal proportion scaling, emphasis exists
In showing purport of the invention.
Fig. 1 shows provided in an embodiment of the present invention a kind of based on KVM platforms long-range three
Tie up the flow chart of desktop image transmission method;
Fig. 2 shows provided in an embodiment of the present invention another long-range based on KVM platforms
The flow chart of three-dimensional desktop image transfer method;
Fig. 3 shows that provided in an embodiment of the present invention the third is based on the long-range of KVM platforms
The flow chart of three-dimensional desktop image transfer method;
Fig. 4 shows that 4th kind provided in an embodiment of the present invention is based on the long-range of KVM platforms
The flow chart of three-dimensional desktop image transfer method;
Fig. 5 shows that 5th kind provided in an embodiment of the present invention is based on the long-range of KVM platforms
The flow chart of three-dimensional desktop image transfer method.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention
Case is clearly and completely described, it is clear that described embodiment is only the present invention one
Section Example, rather than whole embodiments.Generally described and illustrated in accompanying drawing herein
The component of the embodiment of the present invention can arrange and design with a variety of configurations.Therefore,
The detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit and wants below
The scope of the present invention of protection is sought, but is merely representative of selected embodiment of the invention.It is based on
Embodiments of the invention, those skilled in the art are not on the premise of creative work is made
The every other embodiment for being obtained, belongs to the scope of protection of the invention.
Refering to Fig. 1, provided in an embodiment of the present invention a kind of based on KVM platforms long-range three
Dimension desktop image transmission method, methods described includes:
Step S101, using the straight-through technologies of PCI by the video card of physical server directly for being based on
The virtual machine of KVM is used;
Step S102, receives the acquisition desktop bitmap mode selection instruction of user input, wherein
The user input instruction refers to that the one kind selected in two kinds of modes for obtaining desktop bitmap is obtained
Take mode;
Step S103, is obtained using selected acquisition desktop bitmap mode to desktop bitmap
Take;
Step S104, receives the compress mode selection instruction of user input, wherein the user
Input instruction refers to the one kind selected in two kinds of modes being compressed to the desktop bitmap
Compress mode;
Step S105, is compressed using selected compression algorithm to the desktop bitmap;
Step S106, is transmitted using Transmission Control Protocol to the desktop bitmap after compression;
Step S107, the compression of the corresponding decompression algorithm of client call to receiving
Desktop bitmap afterwards is decompressed, and the bitmap after decompression is shown.
It is straight-through using PCI in the long-range three-dimensional desktop image transfer method that the present embodiment is provided
Technology causes the 3D drawing for orders that 3D applications are produced, and is directly painted with the video card of server
System, and the virtual video card for not using KVM is drawn.User is according to the need for oneself
Unrestricted choice obtains the side of mode and unrestricted choice the compression desktop bitmap of desktop bitmap
Formula so that the present invention is more flexible.
It is provided in an embodiment of the present invention another long-range based on KVM platforms refering to Fig. 2
Three-dimensional desktop image transfer method, methods described includes:
Step S201, using the straight-through technologies of PCI by the video card of physical server directly for being based on
The virtual machine of KVM is used;
Step S202, receives the acquisition desktop bitmap mode selection instruction of user input, wherein
The user input instruction refers in the acquisition modes from screen DC and the acquisition from video memory
A kind of acquisition modes selected in mode;
Step S203, is obtained using selected acquisition desktop bitmap mode to desktop bitmap
Take;
Step S204, receives the compress mode selection instruction of user input, wherein the user
Input instruction refers to the one kind selected in two kinds of modes being compressed to the desktop bitmap
Compress mode;
Step S205, is compressed using selected compression algorithm to the desktop bitmap;
Step S206, is transmitted using Transmission Control Protocol to the desktop bitmap after compression;
Step S207, the compression of the corresponding decompression algorithm of client call to receiving
Desktop bitmap afterwards is decompressed, and the bitmap after decompression is shown.
In the long-range three-dimensional desktop image transfer method that the present embodiment is provided, the user input
Instruction refers in the mode obtained from screen DC and the choosing in the mode of acquisition from video memory
A kind of acquisition modes selected.The mode obtained wherein from screen DC can call Bitbuilt
Interface realizes that this mode is in hgher efficiency, cannot but be likely to occur to indivedual application scenarios
Obtain the situation of desktop picture;Another mode that image is obtained from video memory, can call
DX interfaces realize that this mode can realize that screen display is synchronous with what video memory was obtained, but its
Have the disadvantage that efficiency goes up relatively relatively low for a kind of mode.The present embodiment is by user according to oneself
The need for unrestricted choice three-dimensional desktop bitmap acquisition modes cause that this method is more flexible.
Refering to Fig. 3, provided in an embodiment of the present invention the third is based on the long-range of KVM platforms
Three-dimensional desktop image transfer method, methods described includes:
Step S301, using the straight-through technologies of PCI by the video card of physical server directly for being based on
The virtual machine of KVM is used;
Step S302, receives the acquisition desktop bitmap mode selection instruction of user input, wherein
The user input instruction refers to that the one kind selected in two kinds of modes for obtaining desktop bitmap is obtained
Take mode;
Step S303, is obtained using selected acquisition desktop bitmap mode to desktop bitmap
Take;
Step S304, the compress mode for receiving user input selects instruction, wherein the user is defeated
Enter instruction and to be included in be compressed using GPU or be compressed both sides using CPU
A kind of compress mode selected in formula;
Step S305, is compressed using selected compression algorithm to the desktop bitmap;
Step S306, is transmitted using Transmission Control Protocol to the desktop bitmap after compression;
Step S307, the compression of the corresponding decompression algorithm of client call to receiving
Desktop bitmap afterwards is decompressed, and the bitmap after decompression is shown.
In the long-range three-dimensional desktop image transfer method that the present embodiment is provided, user can basis
Oneself situation it is autonomous a kind of compression side for being suitable for itself is selected from two kinds of compress modes
Formula.The compress mode of GPU is wherein based on, compression speed is fast, but needs matching somebody with somebody for hardware video card
Conjunction is used;And the compress mode of CPU is based on, compression speed is relatively slow, but to hardware
Without requirement.
Refering to Fig. 4,4th kind provided in an embodiment of the present invention long-range based on KVM platforms
Three-dimensional desktop image transfer method, methods described includes:
Step S401, using the straight-through technologies of PCI by the video card of physical server directly for being based on
The virtual machine of KVM is used;
Step S402, receives the acquisition desktop bitmap mode selection instruction of user input, wherein
The user input instruction refers to that the one kind selected in two kinds of modes for obtaining desktop bitmap is obtained
Take mode;
Step S403, is obtained using selected acquisition desktop bitmap mode to desktop bitmap
Take;
Step S404, receives the compress mode selection instruction of user input, wherein the user
Input instruction refers to the one kind selected in two kinds of modes being compressed to the desktop bitmap
Compress mode;
Step S405, is compressed using selected compression algorithm to the desktop bitmap;
Step S406, is transmitted using Transmission Control Protocol to the desktop bitmap after compression;
Step S407, the compression of the corresponding decompression algorithm of client call to receiving
Desktop bitmap afterwards is decompressed, and the bitmap after decompression is accelerated using 3-D view aobvious
The mode of showing is shown.
In the long-range three-dimensional desktop image transfer method that the present embodiment is provided, can be with client
Realize that 3-D view is accelerated to show by way of calling Direct3D interfaces, use
This modes of Direct3D can avoid the situation that screen tears from occurring.
It is provided in an embodiment of the present invention as the preferred embodiment of the present invention refering to Fig. 5
The 5th kind of long-range three-dimensional desktop image transfer method based on KVM platforms, including:
Step S501, using the straight-through technologies of PCI by the video card of physical server directly for being based on
The virtual machine of KVM is used;
Step S502, receives the acquisition desktop bitmap mode selection instruction of user input, wherein
The user input instruction refers in the acquisition modes from screen DC and the acquisition from video memory
A kind of acquisition modes selected in mode;
Step S503, is obtained using selected acquisition desktop bitmap mode to desktop bitmap
Take;
Step S504, the compress mode for receiving user input selects instruction, wherein the user is defeated
Enter instruction and to be included in be compressed using GPU or be compressed both sides using CPU
A kind of compress mode selected in formula;
Step S505, is compressed using selected compression algorithm to the desktop bitmap;
Step S506, is transmitted using Transmission Control Protocol to the desktop bitmap after compression;
Step S507, the compression of the corresponding decompression algorithm of client call to receiving
Desktop bitmap afterwards is decompressed, and the bitmap after decompression is accelerated using 3-D view aobvious
The mode of showing is shown.
It is straight-through using PCI in the long-range three-dimensional desktop image transfer method that the present embodiment is provided
Technology directly uses the video card of physical server for the virtual machine based on KVM, the thing
Reason video card can be made using the K1 video cards of Intel, one piece of video card for 4 virtual machines
With.After K1 video cards, coordinate compress mode of the selection based on GPU, and in user terminal
Acceleration is carried out using Direct3D to show, enable to this method to be reached in performance and effect
It is optimal.
It should be noted that herein, such as first and second or the like relational terms
It is used merely to make a distinction an entity or operation with another entity or operation, without
It is certain require or imply these entities or operation between exist any this actual relation or
Person is sequentially.And, term " including ", "comprising" or its any other variant be intended to
Nonexcludability is included so that process, method, article including a series of key elements or
Person's equipment not only includes those key elements, but also other key elements including being not expressly set out,
Or it is this process, method, article or the intrinsic key element of equipment also to include.
In the case of there is no more limitations, the key element limited by sentence "including a ...", not
Exclusion also exists other in the process including the key element, method, article or equipment
Identical element.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention,
For a person skilled in the art, the present invention can have various modifications and variations.It is all
Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements made etc.,
Should be included within the scope of the present invention.It should be noted that:Similar label and letter
Similar terms is represented in following accompanying drawing, therefore, once determined in a certain Xiang Yi accompanying drawing
Justice, then need not further be defined and be explained in subsequent accompanying drawing to it.
Claims (4)
1. a kind of long-range three-dimensional desktop image transfer method based on KVM platforms, it is characterised in that
Methods described includes:
The video card of physical server is directly made for the virtual machine based on KVM using PCI straight-through technologies
With;
The acquisition desktop bitmap mode selection instruction of user input is received, wherein the user input refers to
Order refers to a kind of acquisition modes selected in two kinds of modes for obtaining desktop bitmap;
Desktop bitmap is obtained using selected acquisition desktop bitmap mode;
Receive user input compress mode selection instruction, wherein the user input instruction refer to
A kind of compress mode selected in two kinds of modes being compressed to the desktop bitmap;
The desktop bitmap is compressed using selected compression algorithm;
The desktop bitmap after compression is transmitted using Transmission Control Protocol;
The corresponding decompression algorithm of client call is entered to the desktop bitmap after the compression that receives
Row decompression, and the bitmap after decompression is shown.
2. method according to claim 1, it is characterised in that obtain desktop bitmaps at two kinds
Mode in select a kind of acquisition modes, specially:
Two kinds acquisition desktop bitmaps modes be:Obtained from screen DC and obtained from video memory.
3. method according to claim 1, it is characterised in that at two kinds to desktop position
A kind of compress mode selected in the mode that figure is compressed, specially:
Two kinds are to the mode that the desktop bitmap for getting is compressed:Use GPU to be compressed with
And be compressed using CPU.
4. method according to claim 1, it is characterised in that carried out to the bitmap after decompression
It has been shown that, specially:
Display mode is accelerated to show using 3-D view the bitmap after decompression.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510945106.3A CN106873927A (en) | 2015-12-11 | 2015-12-11 | A kind of long-range three-dimensional desktop image transfer method based on KVM platforms |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510945106.3A CN106873927A (en) | 2015-12-11 | 2015-12-11 | A kind of long-range three-dimensional desktop image transfer method based on KVM platforms |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106873927A true CN106873927A (en) | 2017-06-20 |
Family
ID=59238971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510945106.3A Pending CN106873927A (en) | 2015-12-11 | 2015-12-11 | A kind of long-range three-dimensional desktop image transfer method based on KVM platforms |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106873927A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190675A (en) * | 2019-12-26 | 2020-05-22 | 山东乾云启创信息科技股份有限公司 | Three-dimensional image transmission method and equipment based on Roc processor |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821278A (en) * | 2012-07-27 | 2012-12-12 | 深信服网络科技(深圳)有限公司 | Remote desktop image transmission method and remote desktop image transmission system |
CN104144212A (en) * | 2014-07-16 | 2014-11-12 | 福建星网锐捷网络有限公司 | Virtual desktop image transmission method, device and system |
CN104737129A (en) * | 2012-08-23 | 2015-06-24 | 思杰系统有限公司 | Specialized virtual machine to virtualize hardware resource for guest virtual machines |
CN104768009A (en) * | 2015-03-19 | 2015-07-08 | 中国科学院信息工程研究所 | Image transmission method under desktop virtual SPICE protocol |
CN105119968A (en) * | 2015-07-15 | 2015-12-02 | 天脉聚源(北京)教育科技有限公司 | Picture transmission method and device |
-
2015
- 2015-12-11 CN CN201510945106.3A patent/CN106873927A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821278A (en) * | 2012-07-27 | 2012-12-12 | 深信服网络科技(深圳)有限公司 | Remote desktop image transmission method and remote desktop image transmission system |
CN104737129A (en) * | 2012-08-23 | 2015-06-24 | 思杰系统有限公司 | Specialized virtual machine to virtualize hardware resource for guest virtual machines |
CN104144212A (en) * | 2014-07-16 | 2014-11-12 | 福建星网锐捷网络有限公司 | Virtual desktop image transmission method, device and system |
CN104768009A (en) * | 2015-03-19 | 2015-07-08 | 中国科学院信息工程研究所 | Image transmission method under desktop virtual SPICE protocol |
CN105119968A (en) * | 2015-07-15 | 2015-12-02 | 天脉聚源(北京)教育科技有限公司 | Picture transmission method and device |
Non-Patent Citations (1)
Title |
---|
王凡等: ""基于桌面云的高校计算机实验室组建与管理"", 《试验科学与技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190675A (en) * | 2019-12-26 | 2020-05-22 | 山东乾云启创信息科技股份有限公司 | Three-dimensional image transmission method and equipment based on Roc processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102413150B (en) | Server and virtual desktop control method and virtual desktop control system | |
CN103336816A (en) | Canvas element rendering method and device realized on Android system based on GPU (Graphic Processing Unit) | |
CN104199723B (en) | Camera mapping method based on virtual equipment | |
CN103853320A (en) | Information processing method and electronic equipment | |
KR20150086007A (en) | Method for controlling a frame rate and an electronic device | |
AU2014202574A1 (en) | Positioning of projected augmented reality content | |
US10991068B2 (en) | Projection image construction method and device | |
CN102520943A (en) | Interactive method and device between dynamic wallpaper and desktop icon | |
CN106155641A (en) | The method and system that a kind of mobile terminal application interface dynamically generates | |
CN103796073A (en) | Method, control terminal, display terminal and system for image browsing | |
CN104571904A (en) | Information processing method and electronic equipment | |
CN102479023A (en) | Display method and terminal | |
WO2016016607A1 (en) | Managing display data for display | |
CN113839998B (en) | Image data transmission method, apparatus, device, storage medium, and program product | |
CN106873927A (en) | A kind of long-range three-dimensional desktop image transfer method based on KVM platforms | |
CN108958868A (en) | The method, apparatus and computer readable storage medium of display interface | |
CN103679830B (en) | Mobile terminal, server and system of registering | |
CN105993176A (en) | Image processing apparatus using monitoring of video memory | |
CN104740873A (en) | Image rendering method for game | |
WO2014096519A1 (en) | Method and apparatus for sharing content | |
CN105657429A (en) | Video compression method | |
CN104679494B (en) | Method and device for realizing remote virtual desktop and application program | |
CN105678688A (en) | Picture processing method and device | |
CN104424661A (en) | Three-dimensional object display method and device | |
CN103499881A (en) | X-ray comparison system |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170620 |
|
WD01 | Invention patent application deemed withdrawn after publication |