Remote desktop system and remote desktop control method and device

By recording and transmitting the offset value of the mouse pointer in the remote desktop system, the problem of tracking deviation when the terminal device draws the mouse pointer is solved, achieving a more accurate mouse pointer display and improving the user experience.

CN118625965APending Publication Date: 2024-09-10XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310225085.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In a remote desktop system, when the terminal device draws the mouse pointer after decoding the image, a tracking deviation occurs between the mouse pointer position and the dragged icon, affecting the user experience.

Method used

By recording the offset value of the mouse pointer on the server side and sending it to the terminal device along with the code stream of each frame, the terminal device uses the mouse position and offset value of the previous frame to calculate the current position when drawing the mouse pointer, ensuring Accurate display of mouse pointer.

Benefits of technology

It effectively solves the problem of tracking deviation between the local mouse and the drag icon, and improves the accuracy and experience of user interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625965A
    Figure CN118625965A
Patent Text Reader

Abstract

The invention provides a remote desktop system and a remote desktop control method and device, relates to the field of image transmission, and can solve the problem of following deviation between a local mouse and a dragged icon. According to the specific technical scheme, the terminal equipment does not draw a pointer according to a real mouse position sent to the terminal equipment by a server when drawing the pointer, but generates a mouse position of a current frame after mouse motion vector offset according to a mouse position in a previous frame image, and draws the mouse pointer according to the position. By means of the method, the current mouse pointer position can be drawn more accurately, and therefore the problem that following deviation exists between a local mouse and a dragged icon is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image transmission, and in particular to a remote desktop system, a remote desktop control method and a remote desktop control device. Background Art

[0002] In the current interactive remote desktop system, the server is at one end of the network and the terminal device is at the other end of the network. The user's keyboard and mouse events are sent to the server through the network. The server compresses and encodes its computer desktop and sends it to the user through the network. The decoding device of the terminal device decodes the code stream after receiving it, and displays the decoded image to the user through the display. A typical interactive scenario is that the user clicks and drags the mouse on the terminal side to control the movement of a desktop element.

[0003] In the related art, the mouse pointer is usually drawn at the end of the terminal device. Specifically, after decoding each frame of the image, the terminal device draws the user's real mouse and superimposes it on the decoded image frame. However, when dragging an image element (icon or window), the position of the mouse pointer seen by the user is in front of the dragged image element, that is, there is a misalignment. The position of the pointer seems to be ahead of the position of the object it is dragging, which will cause the icon to chase the mouse.

[0004] Therefore, how to solve the tracking deviation between the local mouse and the dragged icon is an urgent problem to be solved. Summary of the invention

[0005] The disclosed embodiments provide a remote desktop system, a remote desktop control method and a device, which can solve the problem that there is a tracking deviation between the local mouse and the dragged icon, which is an urgent problem to be solved. The technical solution is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a remote desktop system is provided, the system comprising: a server and a terminal device;

[0007] The terminal device is used to obtain the keyboard and mouse events input by the user through the keyboard and mouse, and send the keyboard and mouse events to the server, wherein the keyboard and mouse events include: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer;

[0008] The server is used to detect whether the current frame to be encoded is a synchronization frame. If so, a coding stream is generated according to the keyboard and mouse events and the desktop image to be displayed by the terminal device, and the coding stream is sent to the terminal device; if not, a coding stream is generated according to the coordinate offset and the desktop image to be displayed by the terminal device, and the coding stream is sent to the terminal device; the coordinate offset is the absolute coordinate of the mouse pointer at the current moment minus the absolute coordinate of the mouse pointer at the adjacent previous moment;

[0009] The terminal device is used to receive the encoded code stream and detect whether the encoded code stream is a synchronization frame;

[0010] The terminal device is used to decode the encoded code stream when it is detected that the encoded code stream is a synchronization frame, draw the mouse pointer locally according to the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer in the encoded code stream, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display; when it is detected that the encoded code stream is not a synchronization frame, decode the encoded code stream, obtain the target position of the mouse pointer at the current moment according to the coordinate offset and the absolute position of the mouse in the adjacent previous frame, draw the mouse pointer locally according to the target position and the shape of the mouse pointer, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display.

[0011] In one embodiment, the terminal device is used to obtain the sum of the coordinate offset and the absolute position of the mouse in the adjacent previous frame, and use the obtained sum as the target position of the mouse pointer at the current moment.

[0012] In one embodiment, it further comprises: the terminal device is configured to send a request to send a synchronization frame message to the server when detecting that the encoded code stream is not a synchronization frame and has not received the adjacent previous frame data;

[0013] The server is used for re-encoding the current frame as a synchronization frame and sending it to the terminal device after receiving the request to send the synchronization frame message.

[0014] In one embodiment, the synchronization frame is an I frame.

[0015] In one embodiment, the synchronization frame is the first frame.

[0016] In one embodiment, the terminal device is further used to save the absolute coordinates of the mouse pointer at the current moment.

[0017] According to a second aspect of an embodiment of the present disclosure, a remote desktop control method is provided, the method being applied to a terminal device as described in any one of the above items, the method comprising:

[0018] Acquire a keyboard and mouse event input by a user through a keyboard and mouse, and send the keyboard and mouse event to the server, wherein the keyboard and mouse event includes: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer;

[0019] Receiving a coded code stream, and detecting whether the coded code stream is a synchronization frame;

[0020] When it is detected that the coded code stream is a synchronization frame, the coded code stream is decoded, the mouse pointer is locally drawn according to the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer in the coded code stream, and the mouse pointer and the desktop image to be displayed obtained by decoding are displayed together on the display; when it is detected that the coded code stream is not a synchronization frame, the coded code stream is decoded, the target position of the mouse pointer at the current moment is obtained according to the coordinate offset and the absolute position of the mouse in the adjacent previous frame, the mouse pointer is locally drawn according to the target position and the shape of the mouse pointer, and the mouse pointer and the desktop image to be displayed obtained by decoding are displayed together on the display.

[0021] According to a third aspect of an embodiment of the present disclosure, a remote desktop control method is provided, the method being applied to a server side as in any of the above embodiments, the method comprising:

[0022] Receiving a keyboard and mouse event sent by a terminal device, wherein the keyboard and mouse event includes: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer;

[0023] Detect whether the current frame to be encoded is a synchronization frame. If so, generate a coding stream according to the keyboard and mouse events and the desktop image to be displayed on the terminal device, and send the coding stream to the terminal device; if not, generate a coding stream according to the coordinate offset and the desktop image to be displayed on the terminal device, and send the coding stream to the terminal device; the coordinate offset is the absolute coordinate of the mouse pointer at the current moment minus the absolute coordinate of the mouse pointer at the adjacent previous moment.

[0024] According to a fourth aspect of an embodiment of the present disclosure, a remote desktop control device is provided, which is applied to a server and includes:

[0025] The first receiving module is used to receive the keyboard and mouse events sent by the terminal device, and the keyboard and mouse events include: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer;

[0026] The first processing module is used to detect whether the current frame to be encoded is a synchronization frame. If so, a coding stream is generated according to the keyboard and mouse events and the desktop image to be displayed on the terminal device, and the coding stream is sent to the terminal device; if not, a coding stream is generated according to the coordinate offset and the desktop image to be displayed on the terminal device, and the coding stream is sent to the terminal device; the coordinate offset is the absolute coordinate of the mouse pointer at the current moment minus the absolute coordinate of the mouse pointer at the adjacent previous moment.

[0027] According to a fifth aspect of an embodiment of the present disclosure, a remote desktop control device is provided, which is applied to a terminal device and includes:

[0028] The acquisition module is used to acquire the keyboard and mouse events input by the user through the keyboard and mouse, and send the keyboard and mouse events to the server. The keyboard and mouse events include: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer;

[0029] The second receiving module is used to receive the coded code stream and detect whether the coded code stream is a synchronization frame;

[0030] The second processing module is used to decode the encoded code stream when it is detected that the encoded code stream is a synchronization frame, draw the mouse pointer locally according to the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer in the encoded code stream, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display; when it is detected that the encoded code stream is not a synchronization frame, decode the encoded code stream, obtain the target position of the mouse pointer at the current moment according to the coordinate offset and the absolute position of the mouse in the adjacent previous frame, draw the mouse pointer locally according to the target position and the shape of the mouse pointer, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display.

[0031] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0033] Figure 1 is a schematic diagram of icon dragging provided by an embodiment of the present disclosure;

[0034] Figure 2 is a schematic diagram of icon dragging provided by an embodiment of the present disclosure;

[0035] Figure 3 is a schematic diagram of icon dragging provided by an embodiment of the present disclosure;

[0036] Figure 4 is a structural diagram of a remote desktop control system provided by an embodiment of the present disclosure;

[0037] Figure 5 is an interactive diagram of a remote desktop control method provided by an embodiment of the present disclosure;

[0038] Figure 6 is a structural diagram of a remote desktop control device provided by an embodiment of the present disclosure;

[0039] Figure 7 It is a structural diagram of a remote desktop control device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0041] The present invention mainly relates to an interactive remote desktop system, and to an image encoding and decoding method, especially to the processing of computer-synthesized images, because images related to desktop office are basically computer-synthesized. In the remote desktop scenario, a main feature is interactivity. In the scenario, the server is at one end of the network, and the terminal device is at the other end of the network. The device at the terminal device end usually has only one set of input and output devices and a set of computing devices used only for decoding. Input and output devices are typically a display and a set of keyboards and mice. The keyboard and mouse events of the user at the terminal device end are sent to the server end through the network. The server end compresses and encodes its computer desktop and sends it to the terminal device through the network. The decoding device at the terminal device end decodes after receiving the code stream, and displays the decoded image to the user through the display. A typical interactive scenario is that the user clicks and drags the mouse at the terminal device end to control a desktop element to move.

[0042] This scenario generally has the following characteristics:

[0043] (1) The image on the server side is rendered by the operating system, collected by the acquisition module, and then encoded by the encoding module. There is no problem with general image elements, but the mouse is a special image. On most operating systems, the mouse pointer and other desktop image elements are not on the same layer. Due to the characteristics of the operating system itself, some systems can directly capture the mouse pointer, while others cannot. Even different versions of the same system perform differently. For example, some Windows systems can capture the mouse pointer, while others cannot. If there is no mouse pointer in the image transmitted to the terminal device, the user cannot know the current position of the mouse pointer, and interactive operations are out of the question. This situation is like Figure 1 As shown, it is used to drag the icon from position A to position B.

[0044] (2) If the server cannot capture the mouse pointer, the existing solution will usually draw it later on the client. Specifically, after decoding each frame of the image, the terminal device draws the user's real mouse and superimposes it on the decoded image frame. The mouse pointer that the user actually sees is generally called the local mouse pointer, and correspondingly, the native mouse pointer of the server-side operating system is called the remote mouse pointer. Since the mouse operation events on the server are also generated by the user operating the mouse on the terminal device, the terminal device knows the user's real mouse position, so the solution of drawing the local mouse pointer is feasible; however, this solution has disadvantages. The most important disadvantage is that when dragging an image element (icon or window), the position of the mouse pointer seen by the user is in front of the dragged image element, that is, there is a misalignment. The position of the pointer appears to be ahead of the position of the object it is dragging, which can be simply called the misalignment phenomenon of the icon chasing the mouse, such as Figure 3 As shown. The reason for this phenomenon is that when the client draws the local mouse pointer, it is drawn according to the real-time position of the mouse. However, it takes time to transmit the mouse position information at that moment to the server, and it also takes time for the server to collect the encoded image, and it still takes time to transmit the image back to the client. These times are superimposed to form a delay, resulting in the image displayed after decoding being delayed compared to the image that should appear at the current moment. Although this delay is not large, in the process of quickly dragging the mouse to move the image elements, the human eye can see that the local mouse pointer and the image it is dragging are misaligned, which affects the user experience to a certain extent. Figure 2 This is a comparison of the performance of dragging an icon with the mouse in a stand-alone mode. This is a normal experience. It can be seen that the pointer is above the icon, and there is no tracking or offset.

[0045] From the above analysis, we can know that the terminal device performs local mouse drawing after decoding and before display. At time t1, it is assumed that the decoding end records the user's actual mouse dragging the icon to the position (x1, y1). At this time, the position information is sent to the encoding end, and the encoding end captures the image, encodes and transmits it, and then sends it back to the terminal device. Then the icon dragged by the mouse will appear at the position (x1, y1). However, after this time delay, the terminal device queries that the user's mouse pointer is no longer (x1, y1), but (x1+delta_x1, y1+delta_y1). The terminal device draws the mouse pointer according to the actual real-time position, so the mouse pointer appears at (x1+delta_x1, y1+delta_y1) and the icon is at the position (x1, y1), which is the phenomenon of icon following.

[0046] In order to solve this problem, the present invention will not use the actual position of the local mouse of the terminal device for drawing, but will record the offset value of the mouse at the encoding end, and send the offset value to the decoding end along with the code stream of each frame. In the first frame after the connection is established, the actual mouse position value and the mouse type (such as cross, I, etc.) are directly transmitted. Each subsequent frame only transmits the mouse position offset value. When drawing the local pointer, the terminal device accumulates the offset value on the basis of the reference frame (or the previous frame) and draws the local mouse pointer according to the mouse type. In particular, when the shape of the mouse pointer changes, the encoding end will resend the encoded shape to the client, and the client will draw the latest pointer shape accordingly. In this way, the problem of the local mouse shape of the client and the "offset following when dragging the icon" of the local mouse is solved.

[0047] The solution of the present disclosure is described in detail below.

[0048] The present disclosure provides a remote desktop system. Figure 4 As shown, the remote desktop system includes a server 11 and a terminal device 12 that establishes a communication connection with the server.

[0049] like Figure 5 As shown, the remote desktop control method provided by the present disclosure is applied to Figure 5 In the remote desktop system shown, the method includes:

[0050] 101. The terminal device obtains a keyboard and mouse event input by the user through the keyboard and mouse, and sends the keyboard and mouse event to the server, where the keyboard and mouse event includes: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer;

[0051] The terminal device sends the absolute coordinates (x1, y1) of the mouse pointer at time t1 to the server.

[0052] 102. The server detects whether the current frame to be encoded is a synchronization frame. If so, a coding stream is generated according to the keyboard and mouse events and the desktop image to be displayed by the terminal device, and the coding stream is sent to the terminal device. If not, a coding stream is generated according to the coordinate offset and the desktop image to be displayed by the terminal device, and the coding stream is sent to the terminal device. The coordinate offset is the absolute coordinate of the mouse pointer at the current moment minus the absolute coordinate of the mouse pointer at the previous adjacent moment.

[0053] For example, the first frame after the connection is established is a synchronization frame. In addition to the first frame, there will be subsequent synchronization frames, such as I frames, that is, frames that are fully encoded using intra-frame coding.

[0054] If the server finds that the current frame is the first frame or an I frame, the server directly encodes (x1, y1) and attaches it to the image code stream.

[0055] If the server finds that the current frame is not the first frame or the I frame, the server subtracts the absolute coordinates of the mouse in the previous frame from the absolute coordinates of the current mouse to obtain the coordinate offset (delta_x, delta_y), encodes (delta_x, delta_y), and attaches it to the image code stream.

[0056] 103. The terminal device receives the coded code stream and detects whether the coded code stream is a synchronization frame;

[0057] 104. When the terminal device detects that the coded code stream is a synchronization frame, it decodes the coded code stream, draws the mouse pointer locally according to the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer in the coded code stream, and displays the mouse pointer and the desktop image to be displayed obtained by decoding on the screen; when the terminal device detects that the coded code stream is not a synchronization frame, it decodes the coded code stream, obtains the target position of the mouse pointer at the current moment according to the coordinate offset and the absolute position of the mouse in the adjacent previous frame, draws the mouse pointer locally according to the target position and the shape of the mouse pointer, and displays the mouse pointer and the desktop image to be displayed obtained by decoding on the screen.

[0058] After receiving the encoded code stream, if the terminal device finds that the current frame is a synchronization frame, it directly decodes the absolute coordinates of the pointer (x1, y1) from the code stream, reads the shape of the mouse pointer, draws the local pointer on the screen according to the position (x1, y1) and the shape of the mouse pointer, and displays the decoded image and the pointer together on the display of the terminal device.

[0059] After receiving the encoded code stream, if the terminal device finds that the current frame is not a synchronization frame, it calculates the sum of the coordinate offset (delta_x, delta_y) and the absolute position of the mouse in the adjacent previous frame (x1, y1) (x2=x1+delta_x, y2=y1+delta_y), and uses (x2, y2) as the target position of the mouse pointer at the current moment.

[0060] In this step, the terminal device also saves the absolute coordinates of the mouse pointer in the current frame at the current moment.

[0061] The terminal device of the present disclosure does not draw the pointer according to the real mouse position sent by the server to the terminal device, but generates the mouse position of the current frame after the mouse motion vector offset according to the mouse position in the previous frame image, and draws the mouse pointer according to this position. This method can more accurately draw the current mouse pointer position, thereby solving the problem of tracking deviation between the local mouse and the dragged icon.

[0062] In one embodiment, it further includes:

[0063] The terminal device is used to send a request to send a synchronization frame message to the server when detecting that the coded code stream is not a synchronization frame and the adjacent previous frame data has not been received;

[0064] The server is used for re-encoding the current frame as a synchronization frame and sending it to the terminal device after receiving the request to send the synchronization frame message.

[0065] The following is a detailed description assuming that the server includes: an encoder and an operating system, and the terminal device includes a decoder.

[0066] A1: The first frame of raw data is a synchronization frame, which will also synchronize the mouse pointer position. This step will specifically:

[0067] (1) The encoder queries the operating system for the absolute coordinates and shape of the mouse pointer.

[0068] (2) The encoder encodes the image to form a bit stream; it also encodes the mouse absolute coordinates and pointer shape data, attaches the latter bit stream to the image bit stream, and sends it to the decoding end as a frame of data.

[0069] (3) After receiving the frame, the decoder decodes it and finds that it is a synchronization frame. It decodes the image and directly extracts the absolute coordinates of the pointer (x1, y1) from the bitstream, reads the shape, draws the local pointer on the screen according to the position and shape, and displays the decoded image and the pointer on the client screen. This completes the processing of one frame. At the same time, the pointer coordinates (x1, y1) of this frame are recorded.

[0070] A2: The second frame of original data is a reference frame (an asynchronous frame that needs to refer to the first frame of synchronous frame encoding). This step is specific:

[0071] (1) The encoder queries the operating system for the absolute coordinates of the mouse pointer.

[0072] (2) The encoder subtracts the mouse coordinates of the previous frame from the current mouse coordinates to obtain the coordinate difference (delta_x, delta_y).

[0073] (3) The encoder encodes the image to form a code stream, and also encodes the coordinate difference (delta_x, delta_y), attaches the latter code stream to the image code stream, and sends it to the decoder as a frame of data.

[0074] (4) The decoder decodes the image, decodes the coordinate difference, and adds the coordinate difference to the pointer coordinates of the first frame to obtain the mouse pointer position that should be matched in the current frame (x2 = x1 + delta_x, y2 = y1 + delta_y). Draw the pointer at the position (x2, y2), and the shape remains the same as the mouse shape in the first frame. Display the decoded image and pointer.

[0075] If the code stream of a certain frame fails to be transmitted due to some abnormality, the decoder may not be able to decode subsequent frames due to errors in the reference relationship. At this time, the decoder will request a synchronization frame from the encoder. Although this is not the first frame after the connection is established, for this solution, the process is the same as the processing flow of the first frame after the connection is established.

[0076] A3: The original data of the third frame is the reference frame, and the encoding is the same as step A2. After encoding, the image and mouse coordinate difference code stream packets are sent to the decoder. Assume that due to network problems, this frame data transmission fails and the decoder does not receive it.

[0077] A4: The encoder encodes the fourth frame, encoding it in the same way as step A2, and sends it to the decoder. The decoder finds that the data of the third frame is missing, and decoding fails. It requests synchronization from the encoder.

[0078] A5: After receiving the synchronization request, the encoder takes the fifth frame as the synchronization frame again and encodes it in the same way as step A1.

[0079] The decoder of the present disclosure does not draw the pointer according to the real mouse position sent by the encoder to the terminal device, but generates the mouse position of the current frame after the mouse motion vector offset according to the mouse position in the previous frame image, and draws the mouse pointer according to this position. This method can more accurately draw the current mouse pointer position, thereby solving the problem of tracking deviation between the local mouse and the dragged icon.

[0080] Based on the above Figure 5 The control method of the remote desktop in the present invention is as follows: the device embodiment of the present invention can be used to execute the method embodiment of the present invention.

[0081] The present disclosure provides a remote desktop control device, which is applied to a server, such as Figure 6 As shown, including:

[0082] The first receiving module 21 is used to receive the keyboard and mouse events sent by the terminal device, and the keyboard and mouse events include: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer;

[0083] The first processing module 22 is used to detect whether the current frame to be encoded is a synchronization frame. If so, a coding stream is generated according to the keyboard and mouse events and the desktop image to be displayed on the terminal device, and the coding stream is sent to the terminal device; if not, a coding stream is generated according to the coordinate offset and the desktop image to be displayed on the terminal device, and the coding stream is sent to the terminal device; the coordinate offset is the absolute coordinate of the mouse pointer at the current moment minus the absolute coordinate of the mouse pointer at the adjacent previous moment.

[0084] The present disclosure provides a remote desktop control device, which is applied to a terminal device, such as Figure 7As shown, including:

[0085] The acquisition module 31 is used to acquire the keyboard and mouse events input by the user through the keyboard and mouse, and send the keyboard and mouse events to the server. The keyboard and mouse events include: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer;

[0086] The second receiving module 32 is used to receive the coded code stream and detect whether the coded code stream is a synchronization frame;

[0087] The second processing module 33 is used to decode the encoded code stream when it is detected that the encoded code stream is a synchronization frame, draw the mouse pointer locally according to the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer in the encoded code stream, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display; when it is detected that the encoded code stream is not a synchronization frame, decode the encoded code stream, obtain the target position of the mouse pointer at the current moment according to the coordinate offset and the absolute position of the mouse in the adjacent previous frame, draw the mouse pointer locally according to the target position and the shape of the mouse pointer, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display.

[0088] Based on the above Figure 5 In accordance with the remote desktop control method described in the corresponding embodiment, the embodiment of the present disclosure further provides a computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. The storage medium stores computer instructions for executing the above Figure 5 The remote desktop control method described by the terminal device in the corresponding embodiment will not be repeated here.

[0089] Based on the above Figure 5 In accordance with the remote desktop control method described in the corresponding embodiment, the embodiment of the present disclosure further provides a computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. The storage medium stores computer instructions for executing the above Figure 5 The remote desktop control method described by the server in the corresponding embodiment will not be repeated here.

[0090] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0091] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A remote desktop system, characterized in that: The system comprises: a server and a terminal device; The terminal device is used to obtain the keyboard and mouse events input by the user through the keyboard and mouse, and send the keyboard and mouse events to the server, wherein the keyboard and mouse events include: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer; The server is used to detect whether the current frame to be encoded is a synchronization frame. If so, a coding stream is generated according to the keyboard and mouse events and the desktop image to be displayed by the terminal device, and the coding stream is sent to the terminal device; if not, a coding stream is generated according to the coordinate offset and the desktop image to be displayed by the terminal device, and the coding stream is sent to the terminal device; the coordinate offset is the absolute coordinate of the mouse pointer at the current moment minus the absolute coordinate of the mouse pointer at the adjacent previous moment; The terminal device is used to receive the encoded code stream and detect whether the encoded code stream is a synchronization frame; The terminal device is used to decode the encoded code stream when it is detected that the encoded code stream is a synchronization frame, draw the mouse pointer locally according to the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer in the encoded code stream, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display; when it is detected that the encoded code stream is not a synchronization frame, decode the encoded code stream, obtain the target position of the mouse pointer at the current moment according to the coordinate offset and the absolute position of the mouse in the adjacent previous frame, draw the mouse pointer locally according to the target position and the shape of the mouse pointer, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display.

2. The system according to claim 1, characterized in that The terminal device is used to obtain the sum of the coordinate offset and the absolute position of the mouse in the adjacent previous frame, and use the obtained sum as the target position of the mouse pointer at the current moment.

3. The system according to claim 1, characterized in that Also includes: The terminal device is used to send a request to send a synchronization frame message to the server when detecting that the encoded code stream is not a synchronization frame and has not received the adjacent previous frame data; The server is used for re-encoding the current frame as a synchronization frame and sending it to the terminal device after receiving the request to send the synchronization frame message.

4. The system according to claim 1, characterized in that The synchronization frame is an I frame.

5. The system according to claim 1, characterized in that The synchronization frame is the first frame.

6. The system according to claim 1, characterized in that The terminal device is also used to store the absolute coordinates of the mouse pointer at the current moment.

7. A remote desktop control method, characterized in that: The method is applied to the terminal device according to any one of claims 1 to 6, and the method comprises: Acquire a keyboard and mouse event input by a user through a keyboard and mouse, and send the keyboard and mouse event to the server, wherein the keyboard and mouse event includes: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer; Receiving a coded code stream, and detecting whether the coded code stream is a synchronization frame; When it is detected that the coded code stream is a synchronization frame, the coded code stream is decoded, the mouse pointer is locally drawn according to the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer in the coded code stream, and the mouse pointer and the desktop image to be displayed obtained by decoding are displayed together on the display; when it is detected that the coded code stream is not a synchronization frame, the coded code stream is decoded, the target position of the mouse pointer at the current moment is obtained according to the coordinate offset and the absolute position of the mouse in the adjacent previous frame, the mouse pointer is locally drawn according to the target position and the shape of the mouse pointer, and the mouse pointer and the desktop image to be displayed obtained by decoding are displayed together on the display.

8. A remote desktop control method, characterized in that: The method is applied to the server side as claimed in any one of claims 1 to 6, and the method comprises: Receiving a keyboard and mouse event sent by a terminal device, wherein the keyboard and mouse event includes: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer; Detect whether the current frame to be encoded is a synchronization frame. If so, generate a coding stream according to the keyboard and mouse events and the desktop image to be displayed on the terminal device, and send the coding stream to the terminal device; if not, generate a coding stream according to the coordinate offset and the desktop image to be displayed on the terminal device, and send the coding stream to the terminal device; the coordinate offset is the absolute coordinate of the mouse pointer at the current moment minus the absolute coordinate of the mouse pointer at the adjacent previous moment.

9. A remote desktop control device, which is applied to a server, comprising: The first receiving module is used to receive the keyboard and mouse events sent by the terminal device, and the keyboard and mouse events include: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer; The first processing module is used to detect whether the current frame to be encoded is a synchronization frame. If so, a coding stream is generated according to the keyboard and mouse events and the desktop image to be displayed on the terminal device, and the coding stream is sent to the terminal device; if not, a coding stream is generated according to the coordinate offset and the desktop image to be displayed on the terminal device, and the coding stream is sent to the terminal device; the coordinate offset is the absolute coordinate of the mouse pointer at the current moment minus the absolute coordinate of the mouse pointer at the adjacent previous moment.

10. A remote desktop control device, which is applied to a terminal device, comprising: The acquisition module is used to acquire the keyboard and mouse events input by the user through the keyboard and mouse, and send the keyboard and mouse events to the server. The keyboard and mouse events include: the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer; The second receiving module is used to receive the coded code stream and detect whether the coded code stream is a synchronization frame; The second processing module is used to decode the encoded code stream when it is detected that the encoded code stream is a synchronization frame, draw the mouse pointer locally according to the absolute coordinates of the mouse pointer at the current moment and the shape of the mouse pointer in the encoded code stream, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display; when it is detected that the encoded code stream is not a synchronization frame, decode the encoded code stream, obtain the target position of the mouse pointer at the current moment according to the coordinate offset and the absolute position of the mouse in the adjacent previous frame, draw the mouse pointer locally according to the target position and the shape of the mouse pointer, and display the mouse pointer and the desktop image to be displayed obtained by decoding on the display.