Streaming of individual application windows for remote desktop applications

By streaming remote desktop application windows and other elements one by one, combined with video streaming technology and virtual frame segmentation, it solves the problems of remote desktop transmission efficiency and security, and achieves efficient and seamless remote desktop and local desktop integration.

CN111107127BActive Publication Date: 2024-09-06NVIDIA CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910778663.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-06-14
Filing Date
2019-08-22
Publication Date
2024-09-06
Estimated Expiration
2039-08-22

AI Technical Summary

Technical Problem

Existing remote desktop technology consumes too much bandwidth, processing power, and energy when transmitting the remote desktop, is difficult to achieve seamless integration with the local desktop, and has security issues, especially when access is only allowed to some remote applications.

Method used

Adopts a method of streaming remote desktop application windows and other desktop elements individually, rather than the entire remote desktop, by capturing and encoding the visuals and properties of each window, and using video streaming, taking advantage of a system that does not provide an alpha channel The video codec transmits transparency information, splits virtual frames to optimize transmission, and decodes and renders them locally on the device.

Benefits of technology

It reduces bandwidth, processing and power consumption, improves security, and achieves seamless integration of remote desktop and local desktop, improving transmission efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111107127B_ABST
    Figure CN111107127B_ABST
Patent Text Reader

Abstract

The present invention discloses a streaming transmission of individual application windows suitable for remote desktop applications. The present disclosure relates to streaming individual application windows and / or other desktop elements of a remote desktop. Data used to represent unrelated desktop areas can be replaced with lower entropy data that can be highly compressed in a video stream and / or with data representing other visual content. The video stream can also include desktop metadata (e.g., the location of desktop visuals, etc.) for presenting desktop elements on a local desktop. The desktop visuals of the application windows can be presented in a proxy window on the local desktop.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of U.S. Provisional Application No. 62 / 751,366, filed on October 26, 2018, the entire contents of which are incorporated herein by reference. Background Art

[0003] Conventional methods for remote computing can provide users with access to software running on a remote computing device (e.g., a server) by streaming the entire desktop of the remote computing device to the user's local device (e.g., a client). As a result, the user of the local device may only be able to choose to view a representation of the entire remote desktop on the local device in a single window or as a full-screen view. In order to access the software of the remote computing device, the user must interact with the entire remote desktop that is streamed to the user's local device. However, the user may be interested in viewing and / or interacting with the selected window, or only interested in viewing and / or interacting with a subset of the entire desktop of the remote computing device. In this case, these conventional methods of generating the entire remote desktop unnecessarily consume excessive bandwidth, processing power, and energy to generate the remote desktop and send it to the local device. In addition, security issues may arise when the user should not be allowed full access to the entire remote desktop but only to a certain set of remote applications.

[0004] In addition, conventional systems may not provide seamless integration between the remote desktop and the local desktop of the local device. For example, when the remote desktop is streamed into a window, the window displaying the remote desktop can allow a certain degree of interaction (e.g., drag-and-drop functionality) between the remote desktop and the local desktop, but the application window of the local desktop can always be separated from the application window of the remote desktop. As another example, when interacting with any application of the remote desktop, the entire remote desktop window can be displayed above (above) or below (below) each application window in the Z order of the local desktop. In addition, although some systems can stream the client area of ​​a single application window, the non-client area (beyond the graphical content (e.g., window frame) directly contained in the client area, and any functionality provided by user interface widgets on the window frame) may not be available for the client desktop. Summary of the invention

[0005] In other aspects, the present disclosure relates to streaming of individual application windows for remote desktop applications. Compared with conventional systems that stream the entire remote desktop to the local desktop of a local device, the disclosed method allows any number of application windows and / or other desktop elements (e.g., pop-up notifications) of the remote desktop to be streamed to the local desktop without including the entire remote desktop in the stream. To this end, the window visuals and corresponding window attributes of each relevant window of the remote desktop are captured and encoded into a video stream of a network stream. Data for representing irrelevant and / or unselected windows or other desktop areas can be minimized. In addition, a video stream including window visuals and window metadata representing window attributes can be sent to a local device.

[0006] Other aspects of the present disclosure provide for transmitting per-pixel transparency information (or "alpha information") using a video codec that does not provide an alpha channel. For example, alpha information of a visual (e.g., a windowed visual) can be transcoded into a channel of a supported video stream to generate samples of a supported color space representing the alpha information.

[0007] The present disclosure may further provide for transmitting visuals (e.g., window visuals) via virtual frames that may be stored in any number of video frames of one or more video streams. The visuals may be divided into two-dimensional (2D) pages of virtual frames, wherein each 2D page is a portion of the video frame size of one or more video streams. The virtual frames may be encoded into video frames of one or more video streams, and then the virtual frames may be reconstructed based on the page table.

[0008] BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The present system and method for streaming individual application windows for a remote desktop application is described in detail below with reference to the accompanying drawings, wherein:

[0010] Figure 1 is a schematic diagram of an example desktop streaming system according to some embodiments of the present disclosure;

[0011] Figure 2A is an example of a remote desktop according to some embodiments of the present disclosure;

[0012] Figure 2B is an example of a local desktop according to some embodiments of the present disclosure;

[0013] Figure 3 is a diagram for describing an example of generating a visible surface included in a network flow according to some embodiments of the present disclosure;

[0014] Figure 4Ais an illustration of converting alpha information into a YUV420 video frame format in an RGB color space according to some embodiments of the present disclosure;

[0015] Figure 4B is an illustration of an example of laying out an image region of an image using per-pixel alpha information and displaying the image on a desktop according to some embodiments of the present disclosure;

[0016] Figure 5 is an illustration of a frame generating a virtual frame from a window visual of an application window according to some embodiments of the present disclosure;

[0017] Figure 6 is a flow chart illustrating a method for remote desktop streaming according to some embodiments of the present disclosure;

[0018] Figure 7 is a flow chart illustrating a method of presenting a desktop visual of a remote desktop on a local desktop according to some embodiments of the present disclosure;

[0019] Figure 8 is a flow chart illustrating a method for selectively sending a portion of a remote desktop to a local desktop according to some embodiments of the present disclosure;

[0020] Fig. 9 is a flow chart illustrating a method for transmitting alpha information of a visual object in one or more frames of a video stream according to some embodiments of the present disclosure;

[0021] Fig.10 is a flow chart illustrating a method for streaming a virtual frame through a video stream according to some embodiments of the present disclosure;

[0022] Fig.11 is an example operating environment according to some embodiments of the present disclosure; and

[0023] Fig.12 is a block diagram of an example computing device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0024] Disclosed are systems and methods for streaming individual application windows suitable for remote desktop applications. More specifically, the disclosed systems and methods relate to streaming one or more application windows and / or other desktop elements of a remote desktop to a local desktop instead of streaming the entire remote desktop to the local desktop.

[0025] In contrast to conventional methods, the disclosed method allows any number of application windows or other desktop elements of a remote desktop to be streamed to the desktop of a local device without including the entire remote desktop in the stream. To this end, the window visuals and corresponding window attributes of each relevant window of the remote desktop can be captured and encoded as a video stream of a stream (e.g., using a standard such as a real-time transport protocol (RTP) or a proprietary protocol type). The data used to represent irrelevant and / or unselected windows or other desktop areas can be minimized, such as by replacing data with lower entropy data (e.g., black pixel data) that can be highly compressed in a video stream and / or replacing those areas with other visual content. In addition, a video stream including window visuals and window metadata representing window attributes can be sent to a local device. Compared to conventional systems, by only streaming a set of specific application windows and / or other desktop elements to a local device, and utilizing video streaming technology, the disclosed method requires less bandwidth, processing, and power. In addition, in contrast to the security issues present in conventional systems such as those described herein, the disclosed method provides security improvements by, for example, excluding from streaming application windows, desktop elements, or intrinsically sensitive visuals.

[0026] Can receive and decode the window visuals and window attributes of one or more application windows from stream, to create local window visuals on local desktop.Use the window attributes received, can in the proxy window of each corresponding remote window, the window visuals of decoding are presented (render) and are displayed on local desktop.In one or more embodiments, proxy window can comprise the window visuals of decoding that extend beyond client area.The window visuals and window attributes of decoding of any number of application windows can be received in single video stream or multiple video streams by single network stream, allow to interact with each proxy window simultaneously, as if they are local for local desktop.Therefore, compared with conventional system, by presenting proxy window on local desktop according to window visuals and window attributes, disclosed method allows application window to be integrated into local desktop seamlessly.

[0027] In some examples, a user or system may determine at least one application window of a remote desktop of interest to be streamed to a local desktop of a local device. Portions of remote desktops that are not identified or otherwise determined to be of interest may be excluded from the stream or minimized. For example, lower entropy data from a first (e.g., captured) visual surface may be used to filter out unselected portions of the remote desktop or convert them to a minimum representation in order to generate a second (e.g., to be sent) visual surface that still includes a fully represented window visual of a portion of the remote desktop determined to be of interest. The second visual surface may then be encoded into a stream and sent to a local device. In some examples, a stencil may be applied to a first (e.g., captured) visual surface to remove or overwrite at least some of one or more portions of the remote desktop while retaining the window visuals and other desktop elements of the associated window to remove the one or more portions of the remote desktop. Removing and / or modifying a portion of the remote desktop so that it is not transmitted in the stream or uses less bandwidth and processing power transmission In addition to saving bandwidth and processing, it can also provide increased security through both the remote computing device encoding the stream and the local device decoding the stream.

[0028] Other aspects of the present disclosure can use a video codec (e.g., H.264) that does not define an alpha channel to provide transmission of per-pixel transparency information (or "alpha information"). For example, during the encoding phase of a remote computing device, the alpha information of a window visual of an application window can be transcoded into a channel that supports a video stream to generate samples of a supported color space representing the alpha information. In addition, a triplet of alpha samples (1×3 or 2×3 blocks) can be attached to the video stream as a single sample in a color space. In some non-limiting examples, the color space can be a luminance-chrominance (Luma-Chrominance) (YUV) color space or a red, green, blue (Red, Green, Blue) (RGB) color space. By transcoding the alpha information into a supported color space, the transparency information of the application window can be transmitted in the video stream, otherwise the video stream may not support transparency information.

[0029] In addition, the disclosed method can provide a header of the video stream (e.g., using an RTP header extension for a stream transmitted using RTP) for sending window attributes of at least one application window to a local device. For example, the window attributes can be represented by window metadata contained in the header. By encoding the window attributes in the header, the window attributes and the window visuals can be transmitted in the same video stream - thereby saving bandwidth and reducing system complexity without the need for additional dedicated streams.

[0030] In other examples, window metadata representing window properties can be delta-encoded in a stream for transmission to a local device. Window metadata can be sent in a stream using a structured byte-wise diff, where the structured metadata is processed member by member, byte by byte, to delta-encode window properties of an application window. Sending delta information (e.g., changes to window properties) rather than all current window property information in a stream can allow for significantly reduced bandwidth utilization and can reduce processing requirements because less data needs to be sent and processed to convey the same information.

[0031] In order to encode the window visuals of the application window into a video stream, the disclosed method may include dividing the window visuals of at least one application window into 2D pages of a virtual frame-where each 2D page is a portion of the frame size of the video stream. The virtual frame can be encoded as a frame of the stream. In some examples, the virtual frame can be used in conjunction with an applied template. For example, the template can be used to generate a second (e.g., to be sent) visual surface, which can then be divided into 2D pages of a virtual frame. In other examples, a template may be used or not, and a set of application windows and / or other desktop elements may be captured directly (e.g., from a remote operating system) and then divided into 2D pages of a virtual frame. Streaming "paged" window visuals can simplify the logic applied to placing multiple windows into a single transmission surface and their subsequent reconstruction from the surface, and can also avoid the use of complex binary packing (bin-packing) algorithms. In some examples, the method can be used to send one or more parts of a 2D page instead of sending a complete window visual in each frame, which can allow balancing workload and bandwidth requirements. Furthermore, the method can be used to alleviate the video frame size limitations of video encoders used to encode video streams.

[0032] View now Figure 1 , Figure 1 1 is a schematic diagram of an example desktop streaming system 100 according to some embodiments of the present disclosure. It should be understood that this arrangement and other arrangements described herein are only set forth as examples. In addition to or in place of those shown, other arrangements and elements (e.g., machines, interfaces, functional orders, and functional groupings, etc.) may be used, and some elements may be omitted together for clarity. In addition, many of the elements described herein are functional entities that may be implemented as discrete or distributed components or implemented with other components, and may be implemented in any suitable combination and position. The various functions performed by one or more entities described herein may be performed by hardware, firmware, and / or software. For example, some functions may be performed by a processor that executes instructions stored in a memory.

[0033] The desktop streaming system 100 may include, for example, a remote system 116 and a local system 118. The remote system 116 may include, for example, a communication manager 120A, a stream encoder 124, a streaming determiner 126, a virtual frame generator 128, a desktop capturer 130, and a desktop event monitor 132A. The local system 118 may include, for example, a communication manager 120B, a desktop renderer 136, a desktop event monitor 132B, and a stream decoder 140.

[0034] As an overview, the desktop streaming system 100 can be used to stream one or more portions of a remote desktop 102A to a local desktop 102B. For example, the remote system 116 can capture the desktop visuals and associated desktop properties of the remote desktop 102A to include in the network stream 134. The desktop visuals and desktop properties can be included in desktop data that can be associated with a particular portion or element of the desktop. The desktop visuals of a portion of the desktop can refer to visual content, and the desktop properties can refer to data describing the portion of the desktop (e.g., size, position, etc.). In various examples, the portion of the desktop can be an application window - such as application window 106A - in which case the desktop data can refer to window data, the desktop visuals can refer to window visuals, and the desktop properties can refer to window properties. In some embodiments, to capture the desktop visuals, the remote system 116 captures the remote desktop 102A and applies a template to the captured remote desktop 102A to remove at least some of the desktop background 108A (e.g., by overwriting the corresponding desktop visuals with lower entropy data) and / or other irrelevant information, while retaining the desktop visuals of one or more application windows - such as the application window 106A. The local system 118 can use the desktop visuals and desktop attributes from the network stream 134 to present one or more portions of the remote desktop 102A on the local desktop 102B. For example, for the application window 106A, the local system 118 can use the corresponding window visuals and window attributes from the network stream 134 to present the proxy window 106B on the local desktop 102B. The proxy window 106B can be integrated into the local desktop 102B with one or more local application windows - such as the local application window 114. Unselected portions of the desktop, such as the application window 104, will be excluded from the transmitted stream.

[0035] The communication manager 120A of the remote system 116 can be configured to manage communications provided by the remote system 116, for example, in the network stream 134 of the desktop streaming system 100 (e.g., including data representing window visuals and window properties of at least one application window). The communication manager 120A of the remote system 116 can also be configured to manage communications provided to the remote system 116 (e.g., including data representing window events of one or more application windows of the remote desktop 102A, which can also be in the network stream 134). The streaming determiner 126 can be configured to determine that at least one application window and / or other portion of the remote desktop 102A is included in the network stream 134. The desktop capturer 130 can be configured to capture one or more portions of the remote desktop 102A, such as window visuals and corresponding window properties of at least one application window (e.g., application window 106A). The stream encoder 124 can be configured to encode data representing a portion of the remote desktop (e.g., window visuals and corresponding window properties of at least one application window) into the network stream 134 (e.g., a video stream of the network stream 134). In some embodiments, virtual frame generator 128 may be used to divide the window visuals of at least one application window into two-dimensional (2D) pages of virtual frames for inclusion in network stream 134. Desktop event monitor 132A may be configured to identify desktop events, such as window creation events or window destruction events associated with remote desktop 102A (e.g., indicated by user input to local desktop 102B). Desktop event monitor 132A may also be configured to update a list of application windows for inclusion in network stream 134 based at least in part on the identified desktop events.

[0036] The communication manager 120B of the local system 118 can be configured to manage communications provided by the local system 118 - for example, in the network stream 134 of the desktop streaming system 100 - and / or communications provided to the local system 118. The stream decoder 140 can be configured to decode data from the network stream 134, such as data representing desktop visuals and desktop attributes. The desktop renderer 136 can be configured to use the decoded data to present one or more portions of the remote desktop 102A included in the network stream 134 on the local desktop 102B. For example, for each application window, the desktop renderer 136 can use the window attributes of the application window to render (e.g., generate) a corresponding proxy window so that they can appear on the local desktop 102B as on the remote desktop 102A. The desktop event monitor 132B can be configured to identify events associated with the remote desktop 102A, such as a window creation event or a window destruction event (e.g., when a user input selects a control element to close the proxy window).

[0037] Figure 1Components can usually be used Fig.11 The remote system 116 may be implemented in any combination of one or more user devices 1106 and / or one or more server devices 1102. In some examples, the remote system 116 may be implemented on one or more server devices 1102, and the local system 118 may be implemented on the user device 1106. In other examples, both the local system 118 and the remote system 116 may be implemented on separate user devices 1106. The remote system 116 and / or the local system 118 may be provided via multiple devices arranged in a distributed environment that together provide the functionality described herein or each may be embodied on a single device. Therefore, although some examples used to describe the desktop streaming system 100 may refer to specific devices and / or configurations, it is contemplated that these examples may be more generally applicable to potential combinations of the above-described devices and configurations.

[0038] As described herein, the communication manager 120A and / or the communication manager 120B can be configured to manage communications (e.g., communications of the network stream 134) provided by and / or received by the remote system 116 or the local system 118 of the desktop streaming system 100. The communication manager 120A and / or the communication manager 120B can also be configured to manage communications within their respective systems. In such an example, the communication manager 120A and / or the communication manager 120B can be configured to manage communications within their respective systems. Fig.12 The bus 1202 transmits one or more communications between components of the computing device 1200 .

[0039] In the case of receiving communications and / or providing them as network communications, communications managers 120A and / or 120B may include a network interface that may communicate via one or more networks using one or more wireless antennas and / or one or more modems.

[0040] The streaming determiner 126 of the remote system 116 can determine that at least one application window or other portion of the remote desktop 102A is included in the network stream 134 to the local desktop 102B. This determination can be based on user input and / or other user-defined settings and / or system-defined information, such as a configuration file. For example, a user can provide input using a graphical user interface (GUI) via the remote system 116 and / or the local system 118, which selects which applications and / or application windows associated with one or more applications are streamed from the remote desktop 102A to the local desktop 102B. For example, a user can select an application to indicate to the streaming determiner 126 that each application window associated with the particular application is automatically included in the network stream 134. In addition or alternatively, the user input can select a particular application window individually for the streaming determiner 126 to be included in the network stream 134. In some examples, only those application windows selected by the user can be streamed to the local desktop 102B and / or displayed on the local desktop 102B.

[0041] In addition, at least some of the settings about which application windows and / or other parts of the remote desktop 102A are included in the network stream 134 can be system defined. For example, the streaming determiner 126 can determine which application windows and / or other desktop elements are associated with the remote desktop 102A. To this end, the streaming determiner 126 can query (e.g., using one or more system API calls) the services of the operating system (e.g., window manager) hosting the remote desktop 102A or metadata maintained by the operating system. Depending on the embodiment, the streaming determiner 126 may or may not be part of the host operating system. The streaming determiner 126 can use the results of the query to determine one or more application windows to be streamed. For example, the results of the query can indicate whether the application window is visible on the remote desktop 102A, and the streaming determiner 126 can stream the application window based at least in part on the visible application window. As an example, the streaming determiner 126 can decide to include only visible application windows (and / or their window visuals) in the network stream 134 to the local desktop 102B.

[0042] The desktop capturer 130 of the remote system 116 can be configured to capture the desktop visuals and corresponding desktop properties of the remote desktop 102A. For example, the desktop capturer 130 can capture the desktop visuals and corresponding desktop properties of each portion of the remote desktop 102A determined by the streaming determiner 126 to be included in the network stream 134.

[0043] Figure 2A1 is an illustration of an example including a remote desktop 102A according to some embodiments of the present disclosure. The desktop visuals of the remote desktop 102A that can be captured by the desktop capturer 130 may include visuals of windows (e.g., visuals of application windows 106A and application windows 216A), icons (e.g., icons 202A), taskbars (e.g., taskbars 210A), command buttons (e.g., command buttons 212), system trays, start buttons, start menus, shortcuts, cursors (e.g., cursors 208A), window previews (e.g., preview windows 204A), desktop backgrounds (e.g., desktop backgrounds 108A), and / or other elements that may be present on the remote desktop 102A. The window visuals of the application window may include text or graphics displayed as output in the client area of ​​the application window (e.g., client area 206B of application window 106A). In addition, the window visuals of the application window may include text or graphics of one or more system areas or frame areas of the application window, such as system area 206A of application window 106A. Examples of system areas or frame areas include at least one of: a title bar, a menu bar, a window menu, a minimize button, a maximize button, a resize border, and / or a scroll bar.

[0044] Corresponding desktop properties for a visual window, icon, taskbar, command button, system tray, start button, start menu, shortcut, desktop background, and / or other visual element may include an identifier and one or more of: a title, a geometry, a style, a location (e.g., coordinates), a window mode (e.g., full screen, windowed, etc.), and / or other properties associated with the portion of the remote desktop. In some examples, the desktop properties may indicate the type of desktop visual, such as whether the desktop visual corresponds to an application window, a window preview, etc.

[0045] Desktop capturer 130 can capture corresponding desktop attributes of desktop visuals from remote desktop operating system, service, desktop manager software, file, memory, window manager, application and / or other suitable source. For example, one or more window attributes of one or more application windows captured for network stream 134 can correspond to one or more window attributes used to compose one or more application windows on remote desktop 102A. As a further example, one or more desktop attributes can be determined based at least in part on computer vision and / or object tracking algorithms (e.g., executed on a screen capture of remote desktop 102A).

[0046] In some examples, desktop capturer 130 can capture at least some desktop visuals into one or more visual surfaces, and encode one or more visual surfaces into network stream 134. As an example, one of the visual surfaces can be a remote desktop surface representing remote desktop 102A, such as a screenshot or screen capture of at least a portion of remote desktop 102A, and / or a display of a remote device showing remote desktop 102A. As a further example, one or more visual surfaces can be a desktop composite surface, which represents the desktop visuals used to compose remote desktop 102A by an operating system and / or a window manager. As an example, the desktop composite surface can include at least a portion of individual application windows and / or other visual elements. For example, the desktop composite surface of application window 106A can include client area 206B and system area 206A.

[0047] Desktop capturer 130 can use streaming determiner 126 to determine to exclude at least a portion of remote desktop 102A from network stream 134. For example, desktop capturer 130 can use streaming determiner 126 to determine to exclude at least one application window and / or another portion of remote desktop 102A from network stream 134. Figure 2A In the example of , this can include the remote desktop background 108A and the application window 214. In addition, the desktop capturer 130 can determine to remove at least some of the one or more portions of the remote desktop 102A (e.g., a representation of the remote desktop 102A) from the visible surface. In various embodiments, the portions of the remote desktop 102A removed by the desktop capturer 130 do not include the one or more portions of the remote desktop 102A that the streaming determiner 126 determines or selects to include in the network stream 134. As a result, one or more other visible surfaces can include desktop visuals of the portions of the remote desktop 102A that the streaming determiner 126 determines to include in the network stream 134 without at least some other portions of the remote desktop 102A. The stream encoder 124 can encode the one or more other visible surfaces in the network stream 134.

[0048] In some examples, desktop capturer 130 removes at least some of one or more portions of remote desktop 102A from one or more visual surfaces using at least one template. For example, desktop capturer 130 may apply a template to a visual surface (e.g., a remote desktop surface) to remove (e.g., overwrite) at least some of the visual content, thereby generating a visual surface that does not include the removed visual content. The template may identify on the visual surface which portions of remote desktop 102A will be included in network stream 134 and which portions of remote desktop will be excluded from network stream 134. The template may be used to remove and replace at least some image data (e.g., pixel data) of non-session areas (those areas that do not correspond to a portion of remote desktop 102A to be included in network stream 134) with other image data. Desktop capturer 130 may construct a template, for example, by traversing all visible windows of all stream processes specified by streaming determiner 126.

[0049] In some examples, at least some of the image data representing the image of remote desktop 102A may be replaced with at least some of the image data representing another image. Figure 1 ) can be replaced with image data representing desktop background 108B. Additionally or alternatively, at least some of the image data for the non-session area can be replaced with lower entropy image data (e.g., zero or near-zero entropy data). Examples of zero or near-zero entropy data can include data representing a common pixel color such as black. In general, any area with a solid fill color can include low entropy data. For example, desktop background 108A can be replaced with image data representing black pixels, and Figure 1 As shown, the desktop background 108B can be the local desktop background of the local desktop 102B. Reducing the entropy of image data in one or more regions of one or more visual surfaces that are not of interest for display on the local desktop 102B can allow the stream encoder 124 to compress the one or more visual surfaces to a smaller size, thereby reducing the bandwidth required to stream the remote desktop 102A to the local desktop 102B. For example, the desktop renderer 136 may not render image data from the network stream 134 that corresponds to non-session regions of the remote desktop 102A on the local desktop 102B. The desktop renderer 136 may instead render other image data, or may not render any image data in those non-session regions; in this case, when the desktop renderer 136 is not part of the operating system, the operating system of the local desktop can render the non-session regions.

[0050] Figure 3 An example of a desktop capturer 130 is described, which uses templates and / or other methods to generate a visual surface contained in a network stream 134. Now referring to Figure 3According to some embodiments of the present disclosure, the top row is a diagram of an example including a remote desktop surface 300; the bottom row is a diagram of an example including a visible surface 340, which may correspond to Figure 3 102A. The remote desktop surface 302, the remote desktop surface 304, the remote desktop surface 306, and the remote desktop surface 308 may correspond to the first, second, third, and fourth remote desktops, respectively. The desktop capturer 130 may generate a visible surface 332, a visible surface 334, a visible surface 336, and a visible surface 338 from the remote desktop surface 302, the remote desktop surface 304, the remote desktop surface 306, and the remote desktop surface 308 for inclusion in the network stream 134. The visible surface 332, the visible surface 334, the visible surface 336, and the visible surface 338 may represent an example of a full screen surface of the remote desktop 102A and / or may represent an example of a full screen surface for display on the local desktop 102B.

[0051] The remote desktop surface 302 includes window visuals for application windows 312, 314, and 316. As an example, application windows 312, 314, and 316 may correspond to the same application, wherein application window 312 includes a primary work area, and application windows 314 and 316 include a toolbar for selecting tools for interacting with the primary work area. In some examples, the streaming determiner 126 selects each of the application windows 312, 314, and 316 to be included in the network stream 134. When the application windows 312, 314, and 316 fill the entire remote desktop 102A, the visual surface 332 may be the same or substantially similar to the remote desktop surface 302 (e.g., the application windows in the corresponding positions are the same, but one or more system desktop elements, such as a mouse cursor, a taskbar, etc., may be optionally absent). The remote desktop surface 304 includes a desktop area 310 and application windows 318 and 320. Application window 320 may correspond to a window of an application, such as an inbox of an email application, and application window 318 may correspond to a different application, such as a media player, or it may be another application window of the application corresponding to application window 320. Desktop area 310 may include at least some of the desktop visuals of desktop background 108A, and optionally may include desktop visuals of other elements presented through desktop background 108A (such as desktop icons, text, system menus, and / or a system taskbar).

[0052] In some examples, streaming determiner 126 selects each of application windows 318 and 320 to include in network stream 134. Thus, desktop capturer 130 may apply a template to remote desktop surface 304 to generate visible surface 334, wherein image data corresponding to desktop area 310 is replaced with lower entropy image data (e.g., representing black pixels) and / or other image data representing area 330 (e.g., representing a different image). Remote desktop surface 306 includes application window 322 in full screen mode. Thus, visible surface 336 may be the same or substantially similar to remote desktop surface 306. Remote desktop surface 308 includes only desktop area 310. Thus, desktop capturer 130 may apply a template to remote desktop surface 308 to generate visible surface 338, wherein image data corresponding to desktop area 310 is replaced with lower entropy image data (e.g., representing black pixels) and / or other image data representing area 330 (e.g., representing a different image). In some examples, a template may not be used, and the desktop capturer 130 may generate the visual surface 338 without using and / or capturing the remote desktop surface 308. This may occur, for example, when the streaming determiner 126 determines that the remote desktop 102A does not include any desktop visuals for display on the local desktop 102B.

[0053] In some examples, remote desktop surfaces 302, 304, 306, and 308 correspond to multiple displays of the same remote system 116. For example, each remote desktop surface can present a corresponding portion of the remote desktop visible on the corresponding monitor presented by the remote system 116 using the remote user device. The desktop visuals and desktop properties of each portion of the remote desktop can be included in the network stream 134 (e.g., in the same video stream) or can have separate streams (e.g., each display has a separate video stream with each stream window visuals, window properties, and timing information to enable client-side window composition from asynchronous video streams). In addition, as an example, remote desktop surfaces 302, 304, 306, and 308 can be one remote desktop surface, and / or visual surfaces 332, 334, 336, and 338 can be one visual surface. In addition, although the visual surfaces 332, 334, 336, and 338 are described as being generated using templates applied to the remote desktop surfaces 302, 304, 306, and 308, any suitable method may be used in various embodiments. For example, any number of remote desktop surfaces and / or templates may be used to generate the visual surfaces contained in the network stream 134.

[0054] In addition, any number of intermediate visible surfaces may be used to generate visible surfaces. In some examples, any visible surfaces 332, 334, 336, and 338 may be generated by desktop capturer 130 without using a remote desktop surface or a portion thereof. For example, desktop capturer 130 may generate visible surfaces 332, 334, 336, and 338 by synthesizing image data of different portions of remote desktop 102A to be included in network stream 134 (e.g., desktop capturer 130 may access the locations of various surfaces used by the operating system to synthesize remote desktop 102A for display).

[0055] Stream encoder 124 may be configured to encode data representing a portion of a remote desktop (e.g., desktop visuals of at least one application window and corresponding desktop properties) into network stream 134. To this end, stream encoder 124 encodes captured desktop visuals into network stream 134. For example, stream encoder 124 may encode any of various visual surfaces 332, 334, 336, and 338 into network stream 134. In one or more embodiments, visual surface 332 may be encoded into a single video frame. However, in some cases, virtual frame generator 128 may be used to encode visual surface 332 into a virtual frame, and virtual frame generator 128 may use visual surface 332 to generate multiple video frames, such as with respect to FIG. Figure 5 As another example, desktop capturer 130 may use virtual frame generator 128 to capture desktop visuals corresponding to visual surface 332 into a video frame of a virtual frame without first capturing the image data as a single visual surface.

[0056] The stream encoder 124 can be configured to encode the desktop attributes corresponding to the desktop visuals as desktop metadata representing the desktop attributes of the desktop visuals into the network stream 134. The stream encoder 124 can encode the desktop attributes on a per-frame basis in association with the corresponding desktop visuals. For example, the stream encoder 124 can use time and / or space information to associate the desktop visuals with the corresponding desktop attributes, such as using associated timestamps, coordinates, frames, and / or frame identifiers. Each video frame can be annotated with a timestamp, which can be used by the desktop renderer 136 of the local system 118 to update the desktop state and desktop visuals (e.g., for multi-monitor use cases) from the asynchronous video stream of the network stream 134. In some examples, the stream encoder 124 encodes the window attributes as header data of the network communication of the video stream. For example, the desktop metadata can be included in the header extension of the transmission protocol used to encode the network stream 134. Therefore, the desktop metadata can be transmitted together with the desktop visual data without the need for a separate stream or connection.

[0057] Desktop metadata can be sent in the network stream 134 using incremental encoding of desktop attributes of desktop elements. To reduce network bandwidth consumption, only metadata that has changed since the last group update can be sent. To prevent losses, a reference invalidation scheme can be adopted. Similarly, to prevent protocol interruptions, one or more future-oriented mechanisms (e.g., serialized, structured byte-by-byte differences, etc.) can be implemented. For example, the stream encoder 124 can use, for example but not limited to, structured byte-by-byte differences to incrementally encode desktop attributes, which can significantly save bandwidth and adopt a versioning scheme for forward / backward compatibility.

[0058] Embodiments of the present disclosure provide methods for streaming window metadata on a per-frame basis that allow for forward / backward compatible incremental encoding of "generic" data. In some embodiments, the stream encoder 124 may implement these methods. In one or more embodiments, if the data is defined using generic C / C++ data types, for example, the data may be described as "generic" to avoid additional dependencies and / or redundant data type representations. The solution described herein may be forward / backward compatible so that a client may understand future data definitions for outdated or ignored old / new servers. Incremental encoding may be used to reduce bandwidth requirements for fairly low entropy window metadata.

[0059] Reducing the amount of data transmitted over the network can be addressed by delta encoding based on differences / patches. Since the efficiency of a simple "serialize, then send byte-by-byte differences" approach may not work well for structured data involving entries / members of variable size, embodiments can utilize C++ templates to flatten data structures into entry-by-entry / member / byte differences along a template function call hierarchy: generic template function definitions that call delegate implementations of generic / custom types; specialized implementations of arithmetic types using byte-by-byte differences / patches; specialized (partial) implementations of basic containers (e.g., strings, vectors, maps); specialized delegate implementations of generic / custom types that simply enumerate members to perform differences / patches on the implementations of the above basic types.

[0060] The methods may also support polymorphism and may be extended to arbitrarily structured data by restricting the data types to those supported, or by adding specialized diff / patch implementations. In addition to the features described, both the byte-by-byte diff and structured diff implementations described may employ additional optimizations applicable to diff string size and execution speed.

[0061] Regarding forward / backward compatibility, since enhancing the structure with a structure-size entry enables skipping of future / unknown entries when merging diff strings, entry deprecation is effectively free: by simply never changing the value of a default-constructed entry, this entry will always be considered an incremented skip count in the diff string.

[0062] Other aspects of the present disclosure provide methods that can be used to transmit transparency information of visuals (such as desktop visuals) using image data of a video stream, even when the video codec used to encode the video stream does not explicitly support an alpha channel. The stream encoder 124 can use these methods to encode the desktop visuals of the network stream 134. For example, although the system desktop is usually opaque, individual windows and / or other desktop elements can be at least partially transparent. To illustrate the above, the system area 206A and / or the client area 206B of the application window 106A can be translucent, such as when the application window 106A is not an active window. As a further example, parts of the desktop visuals can be completely transparent. Such content includes windows of non-rectangular shapes, which typically use per-pixel transparency to achieve such shapes. Common use cases include game launchers or splash screens of unusual and / or asymmetrical shapes, and restore the rounded rectangular shape of the application window.

[0063] The transmission of such transparency information may require a remote application streaming solution to stream per-pixel transparency information (e.g., using an alpha channel). However, contemporary video codecs such as H.264 (AVC) do not support alpha channels. The disclosed method can provide alpha information of a desktop visual of a desktop element to be transcoded into the color space of a video stream to store alpha samples representing alpha information in the color space. In various examples, the color space can be a luminance-chrominance (Luma-Chrominance, YUV) color space or a red green blue (Red Green Blue, RGB) color space. The disclosed method can implement RGBA streaming by appending appropriately converted alpha information to a YUV444 / 420 video frame (in RGB or YUV space) and causing the underlying video codec to process the alpha value or sample as a regular RGB or YUV value, using, for example, a YUV444 / 420 video streaming pipeline that is agnostic to alpha. However, without departing from the scope of the present disclosure, any suitable streaming format and color space can be adopted.

[0064] In various embodiments, each alpha sample can define transparency information for a particular pixel. The alpha samples, together with the color samples that are usually stored in those color channels (e.g., RGB channels or YUV channels), can be stored in one or more color channels of the color space that defines the video stream. In some examples, when presenting image data stored in the video stream, an image renderer (e.g., a desktop renderer 136 of a local system 118) can use a decoder (e.g., a stream decoder 140 of a local system 118) that can distinguish between color samples and alpha samples. In addition, the decoder may be able to determine which alpha samples are associated with which color samples in order to present corresponding pixels. For example, these associations can be implicit in the position of the alpha samples relative to the color samples.

[0065] In some examples, groups of alpha samples may be appended to a video stream as a single sample of a color space (e.g., a single pixel color value). In such examples, for some color samples of the color space, each value that would normally represent a color component of a color sample for a pixel may instead represent an alpha component of the pixel. Thus, alpha samples for multiple pixels may be stored in a space that is normally used to store color samples for a single pixel. Any suitable format may be used to store alpha samples in channels of color samples, which may vary for different color spaces. To convert alpha information to a YUV444 video frame format in an RGB color space, the stream encoder 124 may append a triplet of alpha samples as a single RGB sample: a0 to r0; a1 to g0; and a2 to b0, as Figure 4B Now see Figure 4A , Figure 4A 420 video frame format in RGB color space. The stream encoder 124 can account for chroma subsampling by treating alpha as YUV and adding a header of 2×3 alpha 400 to a 2×2 yuv2rgb (scale (alpha)) block 416, where the first 2×2 alpha values ​​{a0, a1, a2, a3 are mapped to 2×2 Y values ​​{y0, y1, y2, y3} and the remaining 1×2 alpha values ​​{a4, a5} are copied to 2×2 U / V values ​​{u0, v0}, as shown in FIG. Figure 4A shown.

[0066] To convert the alpha information to the YUV444 video frame format in the YUV color space, the stream encoder 124 may scale the alpha according to the YUV space definition (BT.601 / 709, full value range / reduced value range (full / studio swing)), and then append a triplet of consecutive alpha samples as a single YUV sample: a0 to y0; a1 to u0; and a2 to v0. To convert the alpha information to the YUV4420 video frame format in the YUV color space, the stream encoder 124 may scale the alpha according to the YUV space definition, and then append two triplet of alpha samples as 4Y samples + 2UV samples: a0, a1, a2, a3 to y0 y1, y2 y3 (4 Y samples); a4 to u0 (1 UV sample); and a5 to v0 (1 UV sample).

[0067] In transcoding the alpha information, the stream encoder 124 may maintain full alpha resolution and may take into account different YUV space definitions (e.g., BT.601 / 709, full value range / reduced value range), RGB / YUV space overlap, and / or YUV420 chroma subsampling. In addition, the total size of the additional alpha information in the YUV444 format may be expressed as:

[0068] Total size = original frame size * (1 + 1 / 3) equation (1)

[0069] And the total size of the additional alpha information in YUV420 format can be expressed as:

[0070] Header size = original frame size * (1 + 2 / 3) Equation (2)

[0071] Here, the fractional part of equations (1) and (2) may refer to the cost of adding image regions that carry alpha information.

[0072] When using any color space, the stream encoder 124 can align the width and / or height of the frame to a given block size by copying the frame edge / boundary value. During decoding of the stream decoder 140, the original frame size can still be reconstructed using "block size% frame size". As described above, converting the alpha information to the YUV444 video frame format in the YUV color space or RGB color space can be fast and has minimal precision loss due to (BT.601 / 709, full value range / reduced value range) scaling. In addition, when the underlying video pipeline does not provide YUV access at either end, converting the alpha information to the YUV420 video frame format in the RGB color space allows streaming of the alpha information, or the YUV color space operation is impractical anyway. Therefore, using the disclosed method, streaming of per-pixel transparency information can be provided despite the limitations of traditional codecs.

[0073] Figure 4B 4 is an illustration of an example layout 412 of image regions 404A and 404B of an image 404 with per-pixel alpha information and a display of the image 404 on a desktop 402 according to some embodiments of the present disclosure. As an example, the image 404 is displayed on the desktop 402 over a desktop background 408 using per-pixel alpha information and represents the visual content of a window 406. The image 404 can be displayed in a similar manner on a local desktop or a remote desktop. In the case where the desktop 402 is a local desktop (e.g., the local desktop 102B), the window 406 can be a proxy window for an application window on the remote desktop.

[0074] When encoded in a video format for display on a local desktop, image 404 may be represented by image data in which the alpha samples of pixels are encoded into a color space (RGB color space in YUV444 format in the illustrated example) used to store color samples of other pixels. Figure 4B 4 shows a layout 412 of image 404, where image area 404A may include alpha samples of pixels in image area 404B of image 404. Image 404 may be, for example, a splash screen of an application, where alpha sample 410A indicates a fully transparent pixel for color sample 420A, and alpha sample 410B indicates a fully non-transparent pixel for color sample 420B. In an example where image 404 uses an RGB color space, the color sample of each pixel in image area 404A may store the alpha samples of three pixels in image area 404B. Thus, image area 404A may be one-third the size of image area 404B. The association between alpha samples and color samples may be implicit in the pixel position and the RGB channels used by the alpha samples, so that a decoder may calculate the pixel position of the color sample using the pixel position and the RGB channels used by the alpha samples.

[0075] Other aspects of the present disclosure provide methods that can be used to transmit visuals (e.g., desktop visuals) using image data from one or more video streams, where the visuals are divided into 2D pages of virtual frames, each 2D page being a fraction of the frame size of one or more video streams. Stream encoder 124 can use these methods to encode desktop visuals for network stream 134. In the disclosed methods, a virtual frame can be similar to a frame of one or more video streams, except that areas of the virtual frame can be distributed over multiple actual frames of the video stream rather than a single frame, and desktop renderer 136 can employ the virtual frame to render one or more portions of remote desktop 102A on local desktop 102B at a given time.

[0076] Streaming "paged" desktop visuals can simplify applications that place multiple desktop elements onto a single streaming surface (e.g. Figure 3 332) and the logic of their subsequent reconstruction from the surface by the desktop renderer 136. In addition, the disclosed method can avoid the use of complex bin-packing algorithms. In some examples, the disclosed method can allow one or more portions of a virtual frame to be encoded by the stream encoder 124, rather than encoding the complete window visuals in each frame, which can allow balancing workload and bandwidth requirements. In addition, the disclosed method can be used to alleviate the video frame size limitations of the video codec used to encode the video stream of the network stream 134.

[0077] View now Figure 5 , Figure 5 is an illustration of frame 506 generating a virtual frame from a window visual of an application window according to some embodiments of the present disclosure. Figure 5 The image 504 may correspond to a window visual of an application window specified by the streaming determiner 126 to be streamed in the network stream 134. For example, the image 504 may correspond to Figure 4B Image 404. Figure 5 Image 502 may correspond to a window visual of another application window specified by streaming determiner 126 to be streamed in network stream 134. Any number of desktop visual sets (e.g., those corresponding to image 502 and image 504) of any number of desktop element sets may be assigned to a virtual frame by virtual frame generator 128. For example, a desktop visual set may be specified for simultaneous display on local desktop 102B at a given time. Thus, for Figure 3 The virtual frame may include a window visual for each of the application windows 312, 314, and 316. The virtual frame generator 128 may obtain the window visuals for the virtual frame from any number of visual surfaces (eg, the visual surface 332).

[0078] The virtual frame generator 128 can divide the desktop visuals of each desktop element of the virtual frame into 2D pages. Figure 5 , a grid is displayed on image 504, where each cell corresponds to a 2D page, and the visual content of the 2D page forms image 504. Similarly, a grid is displayed on image 502, where each cell corresponds to a 2D page, and the visual content of the 2D page forms image 502. This can be similar to how an operating system divides a virtual memory range into one-dimensional pages of physical memory. Each 2D page can be a fixed size portion of a video frame and can be ideally aligned with the downstream encoder block size to avoid artifacts and improve encoding performance.

[0079] The page table used to map 2D pages to virtual frames can be encoded in the desktop metadata (e.g., window metadata) of the network stream 134 and can be used by the desktop renderer 136 to render the appropriate portion of the virtual frame. The mapping of the page table for each virtual frame (e.g., {window ID, window page} to {stream / container ID, frame / container page}) can be expressed as a function of other window metadata (including window page container size and page size). Since each video stream may already provide per-frame window metadata (as described herein), and the window page container size can be given by the video frame size, the remote system 116 and the local system 118 can be easily configured to use the same page size to enable the desktop renderer 136 to rebuild the per-frame page tables without having to send them with each frame.

[0080] As specific non-limiting examples, image 502 may have a resolution of 423×323, image 504 may have a resolution of 849×1028, the 2D page size may have a resolution of 180×180, and the frame of the video stream may have a resolution of 1080×1080 (e.g., the 2D page size may be evenly divisible into the frame size to maximize usage). In the above examples, the virtual frame may also have a resolution of 1080×1080, or may have a larger resolution, such as 1920×1080, or a smaller resolution (e.g., where the frame supports multiple virtual frames).

[0081] The virtual frame generator 128 may treat each video frame as a virtual frame container (e.g., a window page container) that stores the visual content of any number of 2D pages of any number of desktop elements in a 2D grid arrangement. For example, Figure 5 Frame 506 is depicted in which image data corresponding to at least some 2D pages of image 504 and image 502 are stored in corresponding cells of a 2D grid of frame 506. Other 2D pages of a virtual frame may be similarly stored in corresponding cells of 2D grids of other frames of the virtual frame. The size of any 2D grid may be adjusted at runtime to accommodate the page count requirements of the virtual frame, the requirements of the transmission channel (e.g., but not limited to, the requirements of the stream encoder 124, network bandwidth, and / or the stream decoder 140).

[0082] These methods can allow alpha information to be encoded into one or more video streams, while the network stream 134 still supports high-resolution desktop streaming, which can allow the network stream 134 to support desktop streaming at a higher resolution than the video codec (e.g., the actual desktop area can exceed the limitations of the video codec implementation involved). Moreover, these methods can be used to include in the network stream 134 portions of the desktop visuals that are obscured or covered on the remote desktop 102A (e.g., by overlapping with portions of other windows). For example, although in some embodiments, the relative positions of one or more desktop elements of the remote desktop 102A can be mirrored with the relative positions of the proxies of those elements on the local desktop 102B, in other cases, they can be positioned independently. Therefore, those portions of the desktop visuals may not be obscured on the local desktop 102B.

[0083] These methods can allow the desktop renderer 136 to display portions of the desktop visuals that are obscured or covered on the remote desktop 102A (e.g., by overlapping portions of other windows). Additionally or alternatively, these methods can allow portions of the desktop visuals on the local desktop 102B to be cached when they are not obscured. Additionally or alternatively, these methods can allow features such as Figure 2B The preview window 204B for the proxy window 106B is also displayed in full form on the local desktop 102B. Figure 2A The preview window 204A and Figure 2B The preview window 204B (which may also be referred to as a thumbnail window) of the application window 106A and / or the proxy window 106B displays a smaller representation. The preview window 204B may be independent of, for example, Figure 2A The preview window 204A of the remote desktop 102A allows the preview window even when the remote desktop 102A does not support the preview window or the image data of the preview window is unavailable. As another example, the preview window 204B can be a proxy window of the preview window 204A.

[0084] In various embodiments, network stream 134 may include multiple parallel video streams to send each virtual frame over the network by distributing fixed-size portions (e.g., pages) of each virtual frame across multiple page containers. This approach may allow the system to reduce video frame size or other limitations of the video codec used to perform encoding, where video streams may be saturated sequentially or in parallel (e.g., to balance workload and bandwidth requirements).

[0085] The desktop event monitor 132A of the remote system 116 can be configured to identify events associated with the remote desktop 102A, such as window creation events or window destruction events associated with an application and / or application window on the remote desktop 102A. For example, an application can launch an application window 106A. The desktop event monitor 132A can notify the streaming determiner 126 based at least in part on the detected window creation event, which can include the application window 106A in the network stream 134. Conversely, the application window associated with the application can be destroyed (e.g., closed by a user, system, or application). The desktop event monitor 132A can notify the streaming determiner 126 based at least in part on the detected window destruction event, and the streaming determiner 126 can exclude the application window 106A from the network stream 134.

[0086] As another example, the desktop event monitor 132A can be configured to identify window mode change events of applications and / or application windows on the remote desktop 102A. For example, the application can switch the application window 106A to full screen mode, in which case the streaming determiner 126 can exclude one or more other desktop elements from the network stream 134 based at least in part on the detected window mode change event. As another example, the application can switch the application window 106A to a windowed screen mode, in which case the streaming determiner 126 can add one or more other desktop elements to the network stream 134 based at least in part on the detected window mode change event. The desktop event monitor 132A can be implemented at least in part using a frame provider that uses existing screen monitor logic to track the screen state (e.g., full screen mode, window mode) of the running application, where the logic can automatically switch between window and full screen capture as needed. In some examples, the desktop event monitor 132A can use a window life cycle event monitor provided by the operating system, such as but not limited to this. In other examples, the desktop event monitor 132A can be implemented by polling the current window life cycle state. The streaming determiner 126 may maintain a list of processes of interest. On each window create / destroy event, the window lifecycle event monitor (or other event tracking module of the desktop event monitor 132A) may be used to update the active window list, and the streaming determiner 126 may generate a list of windows to include in or exclude from the network stream 134.

[0087] In some examples, the desktop event monitor 132A of the remote system 116 can be configured to identify or detect window creation events, window destruction events, window mode change events, and / or other events associated with applications and / or application windows on the remote desktop 102A, which are initiated by user input to the local desktop 102B, by applications and / or operating systems running on the local system 118. The desktop event monitor 132A can also be configured to identify or detect mouse or cursor events (e.g., mouse clicks, cursor movements, etc.) initiated by user input to the local desktop 102B. To this end, the desktop event monitor 132A can work with the desktop event monitor 132B of the local system 118. For example, the desktop event monitor 132B can detect or identify events that can be sent to the desktop event monitor 132A in the network stream 134 (e.g., as window properties that can be encoded in delta). Other examples of events that the desktop event monitor 132B can detect include gain / lose focus events, move / resize commands, and minimize / maximize / restore commands.

[0088] Desktop event monitor 132B can identify the one or more events sent, and desktop event monitor 132A can implement one or more events at remote desktop 102A (e.g., by simulating user input to remote desktop 102A and sending one or more more commands to the operating system or application, etc.). As an example, to Figure 2B User input to the command button 220 of the proxy window 106B may cause the desktop event monitor 132B to detect Figure 2A The desktop event monitor 132B may provide the event to the communication manager 120B, which may send the event to the remote system 116. The desktop event monitor 132A may detect the sent event and cause the application window to be closed on the remote system 116. As another example, the desktop event monitor 132A may use the mouse click event from the desktop event monitor 132B to generate a corresponding event at the remote system 116, such as an event associated with an application and / or an application window (e.g., for launching or closing an application window, etc.).

[0089] In any example, streaming determiner 126 can update a list of application windows and / or other desktop elements included in network stream 134 to be sent to local desktop 102B in response to desktop event monitor 132A notifying of the identified event.

[0090] At the local system 118, the communication manager 120B can receive the network stream 134. The network stream 134 can include data representing the desktop visuals and corresponding desktop attributes for any number of desktop elements (e.g., in the form of desktop metadata). The stream decoder 140 can then decode the data representing the desktop visuals and the corresponding desktop attributes. The data representing the desktop visuals can include alpha information, such as Figure 5 At least some of the alpha samples 510A (e.g., from frame 506 or from Figure 3 In the event that alpha samples are included in the network stream 134, the desktop renderer 136 may associate the alpha samples with the color samples in order to render pixels with appropriate transparency.

[0091] The desktop renderer 136 may use at least some of the decoded desktop visuals and their corresponding decoded desktop attributes to present proxy desktop elements of the desktop elements of the remote desktop 102A to the local desktop 102B on the local desktop 102B. Figure 2B As shown in , at least some window visuals of application window 106A can be presented in proxy window 106B based at least in part on window properties (e.g., position, size, etc.). In some examples, application window 106A can be located at one coordinate position on remote desktop 102A, but presented at a different coordinate position on local desktop 102B. For example, proxy window 106B can be positioned differently from application window 106A. In addition or alternatively, local desktop 102B can use a different coordinate system from remote desktop 102A. In these cases, the position of the window attribute can be converted to the coordinate system of local desktop 102B by desktop renderer 136, or the conversion can be performed by desktop capturer 130 before being included in network stream 134. In some examples, desktop renderer 136 can apply the coordinates of desktop elements associated with video frames (e.g., in desktop metadata) to decoded video frames so as to crop all desktop elements from the frame, and then rebuild the remote desktop 102A layout or the topology including the application window layout to replicate the layout of remote system 116.

[0092] As another example of a rendering agent desktop element, Figure 2A At least some of the window visuals of the application window 216A may be displayed in Figure 2B When rendering the proxy desktop elements, the desktop renderer 136 can preserve the relative Z order of the corresponding application windows on the remote desktop 102A. For example, the proxy window 216B can be displayed in Figure 2B Because the application window 216A is displayed on the local desktop 102B in the proxy window 106B Figure 2A106A on the remote desktop 102A in the . For example, the relative Z order of application windows and / or other desktop elements used by the desktop renderer 136 can be captured by window properties that can be included in the window metadata.

[0093] The presented proxy desktop elements can exist on the local desktop 102B together with the local desktop elements and can be seamlessly integrated into the local desktop 102B so that they can behave like local desktop elements. Figure 2B As shown, the local desktop 102B may include a proxy window 106B and a local application window 222 local to the local device. In addition, when the local desktop 102B is on a different operating system from the remote desktop 102A, the proxy window 106B and the local application window 114 may include one or more different system areas or frame areas (e.g., a proxy window in Windows format may exist on a Linux operating system that uses an application window in other Linux formats). As another example, the desktop renderer 136 may render one or more system areas or frame areas of one or more proxy desktop elements using local desktop visuals. The user may interact with both the proxy window 106B and the local application window 114 on the local desktop 102B as if both were local to the local desktop 102B. For example, the desktop renderer 136 may track the Z order of the proxy window and / or other proxy desktop elements relative to the local application window and / or desktop element, and display the desktop visuals accordingly (e.g., taking into account overlaps, changes in Z order, etc.). Other native elements may be provided, such as a taskbar 210B, or the taskbar 210B may be a proxy desktop element for the taskbar 210A.

[0094] The local desktop 102B may include a cursor 208B local to the local system 118, or may mimic a cursor 208A of the local system 118. Many applications define their own specific mouse cursors. For example, although a one-way arrow is a standard cursor during normal operation of standard productivity applications (e.g., web browsing and word processing software), the cursor 208A may be represented by different graphical shapes in different applications or under different operating environments. As an example, when the zoom function is effective, the cursor 208A may have the shape of a magnifying glass. Similarly, the cursor 208A may have the shape of an hourglass during a longer period than normal loading or reprocessing. Game applications may also use different shapes to represent the cursor 208A (e.g., an icon of a sword or crosshairs). Conventional remote desktop streaming methods may not be able to effectively mimic appropriate cursor shapes.

[0095] In some embodiments, the cursor 208A can be used as a desktop element, allowing even non-standard graphical shapes to be displayed as a cursor on the local desktop 102B. The desktop capturer 130 can capture the handle (handle) (or other identifier) ​​of the current cursor 208A on the remote system 116 (e.g., as defined by the corresponding application). The handle can then be referenced in the data set of known cursors at the remote system 116 to determine the corresponding identifier sent to the local system 118. The desktop renderer 136 of the local system 118 can reference the identifier in the data set of known cursors itself and set the local cursor 208B to the appropriate known cursor. When the application cursor is not found in the known cursor set at the remote system 116, the desktop capturer 130 can capture a new cursor (e.g., as a bitmap), cache it at the remote system 116 and the local system 118, and then append it to the known cursor set for future reference / use. The remote system 116 can intelligently send only the bitmap of the captured new cursor; because the old / known one may have been saved to the cache of the local system 118.

[0096] View now Figure 6 , Figure 6 6 is a flow chart illustrating a method 600 for remote desktop streaming according to some embodiments of the present disclosure. In block B602, the method 600 includes determining at least one application window of the remote desktop to be streamed. For example, the streaming determiner 126 of the remote system 116 can determine at least one application window of the remote desktop 102A to be included in the network stream 134 to the local desktop 102B of the local device, such as the application window 106A.

[0097] In block B604, method 600 includes capturing window visuals and window properties of at least one application window. For example, desktop capturer 130 of remote system 116 may capture window visuals and corresponding window properties of at least one application window.

[0098] In block B606 , method 600 includes encoding the window visuals and window properties into a stream. For example, stream encoder 124 of remote system 116 may encode the window visuals and window properties of at least one application window into at least one video stream of network stream 134 .

[0099] In block B608, method 600 includes sending at least some of the streams to the local desktop. For example, communication manager 120A of remote system 116 may send network stream 134 including at least one video stream and window metadata representing window properties of at least one application window to local desktop 102B.

[0100] View now Figure 7 , Figure 7 is a flow chart illustrating a method 700 for presenting desktop visuals of a remote desktop on a local desktop according to some embodiments of the present disclosure.

[0101] In block B702, method 700 includes receiving an encoded stream. For example, communication manager 120B of local system 118 can receive network stream 134 of one or more application windows of remote desktop 102A to local desktop 102B of local device, such as application window 106A. Network stream 134 can include window metadata representing window properties of one or more application windows and window visuals of one or more application windows encoded in at least one video stream of network stream 134.

[0102] In block B704 , method 700 includes decoding window visuals and window metadata associated with at least one application window from the stream. For example, stream decoder 140 of local system 118 may decode window visuals and window metadata from network stream 134 .

[0103] In block B706, method 700 includes rendering the window visuals on the local desktop using the window metadata to construct one or more proxy windows. For example, desktop renderer 136 of local system 118 may render decoded window visuals of an application window in one or more of the proxy windows corresponding to the application windows (e.g., proxy window 106B of application window 106A) on local desktop 102B based at least in part on the decoded window properties of the application window.

[0104] View now Figure 8 , Figure 8 8 is a flow chart illustrating a method 800 for selectively sending a portion of a remote desktop to a local desktop, according to some embodiments of the present disclosure. In block B802, the method 800 includes determining at least one application window of the remote desktop to be included in the stream. For example, the streaming determiner 126 of the remote system 116 can determine at least one application window of the remote desktop 102A to be included in the network stream 134 to the local desktop 102B of the local device, such as the application window 106A.

[0105] In block B804, method 800 includes determining a portion of the remote desktop to be excluded from the stream. For example, desktop capturer 130 may use streaming determiner 126 of remote system 116 to determine at least desktop region 310 (i.e., portion 310 of remote desktop 102A) to be excluded from network stream 134. Figure 3 ).

[0106] In block B806, method 800 includes removing a portion of the remote desktop from the first (e.g., captured) visual surface to generate a second (e.g., to be transmitted) visual surface. For example, desktop capturer 130 may remove desktop region 310 of remote desktop 102A from remote desktop surface 304 to generate visual surface 334 having region 330 in place of desktop region 310. This may or may not involve templates, and may or may not involve reducing entropy of desktop region 310 to generate region 330. In addition, when using remote desktop surface 304 as an example, one or more portions of remote desktop 102A may be removed from other visual surfaces that may be used to encode desktop visuals into network stream 134.

[0107] At block B808, method 800 includes encoding the second visual surface to the stream. For example, stream encoder 124 of remote system 116 may encode visual surface 334 including window visuals of at least one application window, but not desktop area 310 of remote desktop 102A, to network stream 134.

[0108] In block B 810 , the method 800 includes sending the stream to the local desktop. For example, the communication manager 120A of the remote system 116 may send the network stream 134 to the local desktop 102B.

[0109] Fig. 9 9 is a flow chart illustrating a method 900 for transmitting alpha information of a visual object in one or more frames of a video stream, according to some embodiments of the present disclosure. In block B902, the method 900 includes determining a visual object to include in the stream. For example, the streaming determiner 126 of the remote system 116 may determine to include in the network stream 134 a visual object that is related to the visual object. Figure 5 The window visual object of the application window corresponding to the image 504 in FIG.

[0110] In block B904, method 900 includes transcoding the alpha information of the visual object into the color space of the video stream to generate an "alpha" sample. For example, the stream encoder 124 of the remote system 116 may transcode the alpha information of the visual object into an RGB or YUV color space to generate Figure 5 Alpha sample 510A.

[0111] In block B 906 , the method 900 includes storing the alpha samples in the image data of at least one video frame of the stream. For example, the stream encoder 124 of the remote system 116 may store the alpha samples in the image data of the frame 506 .

[0112] In block B 908 , method 900 includes encoding at least one video frame into a stream. The video frame may include transcoded alpha information. For example, stream encoder 124 of remote system 116 may encode frame 506 into network stream 134 .

[0113] In block B910, method 900 includes sending the stream to the user device. For example, the communication manager 120A of the remote system 116 can send the network stream 134 to the local device hosting the local desktop 102B. Although the described example is applicable to remote desktop streaming, method 900 can be more generally used to stream and display visuals of any suitable application.

[0114] Fig.10 1 is a flow chart illustrating a method 1000 for streaming a virtual frame through a video stream according to some embodiments of the present disclosure. In block B1002, the method 1000 includes determining a visual to be included in the stream. For example, the streaming determiner 126 of the remote system 116 may determine to include a visual in the network stream 134. Figure 5 Window visual objects of the application windows corresponding to images 502 and 504 in FIG.

[0115] In block B1004, method 1000 includes dividing the visual into pages of virtual frames, wherein each page is a portion of the size of each of at least one video frame of one or more video streams of the stream. Figure 5 As indicated, for example, stream encoder 124 of remote system 116 may divide the visuals corresponding to image 502 and image 504 into pages of virtual frames. Each page may be a fraction of the size of frame 506 of the video stream of network stream 134. Each page may be optimized in size for the currently active video encoder.

[0116] In block B1006, method 1000 includes storing at least some pages in a video frame of the stream. For example, stream encoder 124 of remote system 116 may store pages in frame 506 of network stream 134. In various examples, a subset of pages may be stored in one video frame, while other subsets of pages may be stored in other video frames of network stream 134. In addition, stream encoder 124 may store pages in video frames according to a page table. Network stream 134 may include metadata (e.g., stream / container ID, frame / container page ID, etc.), which local system 118 may use to determine the location where each page of the received virtual frame is mapped to the proxy window according to the page table.

[0117] In block B 1008 , method 1000 includes encoding the video frame into a stream. For example, stream encoder 124 of remote system 116 may encode frame 506 into network stream 134 .

[0118] In block B1010, method 1000 includes sending the stream to the user device. For example, the communication manager 120A of the remote system 116 can send the network stream 134 to the local device hosting the local desktop 102B. Although the described example applies to remote desktop streaming, method 1000 can be more generally used to stream and display visuals of any suitable application.

[0119] According to some embodiments of the present disclosure, the desktop streaming system 100 may be Fig.11 The example operating environment 1100 is implemented in FIG. Among other components not shown, the operating environment 1100 may include one or more server devices 1102, one or more networks 1104, one or more user devices 1106, and one or more data stores 1108. It should be understood that Fig.11 Depicted operating environment 1100 is an example of a suitable operating environment. Fig.11 Each component shown in can be implemented by any type of computing device, such as by combining Fig.12 1200. These components can communicate with each other via a network 1104, which can be of any type. The network 1104 can include multiple networks or one of multiple networks, but is shown in a simplified form to avoid obscuring various aspects of the present disclosure. The network 1104 can include any number of different network topologies.

[0120] It should be appreciated that within the scope of the present disclosure, any number of user devices 1106, server devices 1102, and data stores 1108 may be employed within operating environment 1100. Each may be configured as a single device or as multiple devices cooperating in a distributed environment.

[0121] One or more user devices 1106 may include the Fig.12 The user device 1106 may be embodied as a personal computer (PC), a laptop computer, a mobile device, a smart phone, a tablet computer, a smart watch, a wearable computer, a personal digital assistant (PDA), an MP3 player, a global positioning system (GPS) or device, a video player, a handheld communication device, a gaming device or system, an entertainment system, an in-vehicle computer system, an embedded system controller, a remote control, an appliance, a consumer electronic device, a workstation, any combination of the depicted devices, or any other suitable device.

[0122] One or more user devices 1106 may include one or more processors and one or more computer-readable media. The computer-readable media may include computer-readable instructions that can be executed by one or more processors. When executed by one or more processors, the instructions may cause the one or more processors to perform any combination and / or portion of the methods described herein, and / or implement Figure 1 Any part of the functionality of the desktop streaming system 100.

[0123] The one or more server devices 1102 may also include one or more processors and one or more computer-readable media. The computer-readable media includes computer-readable instructions that can be executed by the one or more processors. When executed by the one or more processors, the instructions may cause the one or more processors to perform any combination and / or portion of the methods described herein, and / or implement Figure 1 Any part of the functionality of the desktop streaming system 100.

[0124] The one or more data stores 1108 may include one or more computer-readable media. The computer-readable media may include computer-readable instructions that can be executed by one or more processors. When executed by one or more processors, the instructions may cause the one or more processors to perform any combination and / or portion of the methods described herein, and / or implement Figure 1 Any part of the functionality of the desktop streaming system 100. One or more data stores 1108 (or computer data stores) are depicted as a single component, but may be embodied as one or more data stores (eg, databases) and may be at least partially in the cloud.

[0125] Although depicted as being external to the one or more server devices 1102 and the one or more user devices 1106, the one or more data stores 1108 may be embodied at least in part on any combination of the one or more server devices 1102 and / or the one or more user devices 1106 (e.g., as memory 1204 ( Fig.12 )). For example, some information may be stored on one or more user devices 1106, and other and / or duplicate information may be stored externally (e.g., on one or more server devices 1102). Thus, it should be understood that the information in the one or more data stores 1108 may be distributed in any suitable manner across one or more data stores for storage (which may be hosted externally). For example, the one or more data stores 1108 may include at least some of the one or more computer-readable media of the one or more server devices 1102 and / or at least some of the one or more computer-readable media of the one or more user devices 1106.

[0126] View now Fig.12 , Fig.12 1 is a block diagram of an example computing device 1200 suitable for implementing some embodiments of the present disclosure. The computing device 1200 may include a bus 1202 that directly or indirectly couples the following devices: a memory 1204, one or more central processing units (CPUs) 1206, one or more graphics processing units (GPUs) 1208, a communication interface 1210, an input / output (I / O) port 1212, an input / output component 1214, a power supply 1216, and one or more presentation components 1218 (e.g., a display).

[0127] although Fig.12 The various blocks are shown as being connected via bus 1202 with lines, which is not intended to be limiting and is for clarity only. For example, in some embodiments, presentation components 1218 such as a display device may be considered I / O components 1214 (e.g., if the display is a touch screen). As another example, CPU 1206 and / or GPU 1208 may include memory (e.g., memory 1204 may represent a storage device in addition to the memory of GPU 1208, CPU 1206, and / or other components). In other words, Fig.12 The computing devices shown are merely illustrative. Fig.12 The scope of computing devices is intended, with no distinction between categories such as “workstation,” “server,” “laptop,” “desktop,” “tablet,” “client device,” “mobile device,” “handheld device,” “gaming console,” “electronic control unit (ECU),” “virtual reality system,” and / or other device or system types.

[0128] The bus 1202 may represent one or more buses, such as an address bus, a data bus, a control bus, or a combination thereof. The bus 1202 may include one or more bus types, such as an Industry Standard Architecture (ISA) bus, an Extended Industry Standard Architecture (EISA) bus, a Video Electronics Standards Association (VESA) bus, a Peripheral Component Interconnect (PCI) bus, a Peripheral Component Interconnect Express (PCIe) bus, and / or other types of buses.

[0129] Memory 1204 may include any of a variety of computer-readable media. Computer-readable media may be any available media that can be accessed by computing device 1200. Computer-readable media may include volatile and non-volatile media, as well as removable and non-removable media. By way of example and not limitation, computer-readable media may include computer storage media and communication media.

[0130] Computer storage media may include volatile and nonvolatile media and / or removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, and / or other data types. For example, memory 1204 may store computer readable instructions (e.g., representing one or more programs and / or one or more program elements, such as an operating system). Computer storage media may include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by computing device 1200. As used herein, computer storage media itself does not include signals.

[0131] Communication media may contain computer readable instructions, data structures, program modules and / or other data types in a modulated data signal such as a carrier wave or other transport mechanism, and include any information delivery media. The term "modulated data signal" may refer to a signal that has one or more of its characteristics set or changed in a manner that encodes the information in the signal. By way of example and not limitation, communication media may include wired media such as a wired network or a direct wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Any combination of the above should also be included within the scope of computer readable media.

[0132] One or more CPUs 1206 may be configured to execute computer-readable instructions to control one or more components of the computing device 1200 to perform one or more of the methods and / or processes described herein. Each CPU 1206 may include one or more cores (e.g., one, two, four, eight, twenty-eight, seventy-two, etc.) capable of processing numerous software threads simultaneously. One or more CPUs 1206 may include any type of processor, and may include different types of processors, depending on the type of computing device 1200 implemented (e.g., a processor with fewer cores for a mobile device and a processor with more cores for a server). For example, depending on the type of computing device 1200, the processor may be an ARM processor implemented using reduced instruction set computing (RISC) or an x86 processor implemented using complex instruction set computing (CISC). In addition to one or more microprocessors or auxiliary coprocessors (e.g., math coprocessors), the computing device 1200 may also include one or more CPUs 1206.

[0133] The computing device 1200 may use one or more GPUs 1208 to render graphics (e.g., 3D graphics). One or more GPUs 1208 may include hundreds or thousands of cores that can process hundreds or thousands of software threads simultaneously. One or more GPUs 1208 may generate pixel data for output images in response to a rendering command (e.g., a rendering command received from CPU 1206 via a host interface). One or more GPUs 1208 may include a graphics memory, such as a display memory, for storing pixel data. The display memory may be included as part of the memory 1204. One or more GPUs 1208 may include two or more GPUs operating in parallel (e.g., via a link). When combined together, each GPU 1208 may generate pixel data for different parts of an output image or for different output images (e.g., a first GPU for a first image and a second GPU for a second image). Each GPU may include its own memory, or may share memory with other GPUs.

[0134] In examples where computing device 1200 does not include one or more GPUs 1208, one or more CPUs 1206 may be used to render graphics.

[0135] The communication interface 1210 may include one or more receivers, transmitters, and / or transceivers that enable the computing device 1200 to communicate with other computing devices via an electronic communication network (including wired and / or wireless communications). The communication interface 1210 may include components and functions for enabling communication over any of a number of different networks, such as wireless networks (e.g., Wi-Fi, Z-Wave, Bluetooth, Bluetooth LE, ZigBee, etc.), wired networks (e.g., communicating over Ethernet), low power wide area networks (e.g., LoRaWAN, SigFox, etc.), and / or the Internet.

[0136] I / O ports 1212 may enable computing device 1200 to be logically coupled to other devices including I / O components 1214, one or more presentation components 1218, and / or other components, some of which may be built into (e.g., integrated into) computing device 1200. Illustrative I / O components 1214 include microphones, mice, keyboards, joysticks, gamepads, game controllers, satellite dishes, scanners, printers, wireless devices, and the like. I / O components 1214 may provide a natural user interface (NUI) that processes air gestures, voice, or other physiological input generated by a user. In some cases, the input may be sent to an appropriate network element for further processing. The NUI may implement any combination of voice recognition, stylus recognition, facial recognition, biometrics, gesture recognition on and near the screen, air gestures, head and eye tracking, and touch recognition associated with a display of computing device 1200 (as described in more detail below). Device 1200 may include a depth camera, such as a stereo camera system, an infrared camera system, an RGB camera system, touch screen technology, and combinations of these, for gesture detection and recognition. Additionally, computing device 1200 may include an accelerometer or gyroscope capable of detecting motion (e.g., as part of an inertial measurement unit (IMU)). In some examples, the output of the accelerometer or gyroscope may be used by computing device 1200 to present an immersive augmented reality or virtual reality.

[0137] The power supply 1216 may include a hardwired power supply, a battery power supply, or a combination thereof. The power supply 1216 may provide power to the computing device 1200 to enable the components of the computing device 1200 to operate.

[0138] One or more presentation components 1218 may include a display (e.g., a monitor, a touch screen, a television screen, a head-up display (HUD), other display types, or combinations thereof), speakers, and / or other presentation components. One or more presentation components 1218 may receive data from other components (e.g., GPU 1208, CPU 1206, etc.) and output data (e.g., as images, video, sound, etc.).

[0139] The present disclosure may be described in the general context of computer code or machine usable instructions, including computer executable instructions, such as program modules, executed by a computer or other machine, such as a personal data assistant or other handheld device. Typically, program modules, including routines, programs, objects, components, data structures, etc., refer to code that performs a particular task or implements a particular abstract data type. The present disclosure may be practiced in a variety of system configurations, including handheld devices, consumer electronics, general-purpose computers, more specialized computing devices, etc. The present disclosure may also be practiced in a distributed computing environment, where tasks are performed by remote-processing devices linked through a communications network.

[0140] As used herein, the description of "and / or" about two or more elements should be interpreted as indicating only one element or a combination of elements. For example, "element A, element B and / or element C" may include only element A, only element B, only element C, element A and element B, element A and element C, element B and element C, or elements A, B and C. In addition, "at least one of element A or element B" may include at least one of element A, at least one of element B, or at least one of element A and at least one of element B. In addition, "at least one of element A and element B" may include at least one of element A, at least one of element B, or at least one of element A and at least one of element B.

[0141] The subject matter of the present disclosure is specifically described herein to meet statutory requirements. However, the description itself is not intended to limit the scope of the present disclosure. On the contrary, in conjunction with other existing or future technologies, the inventors have anticipated that the claimed subject matter may also be embodied in other ways to include different steps or combinations of steps similar to the steps described in this document. In addition, although the terms "step" and / or "box" may be used herein to refer to different elements of the method employed, these terms should not be interpreted as implying any particular order among or between the various steps disclosed herein, unless and except when the order of the various steps is explicitly described.

Claims

1. A method, include: determining at least one application window of the remote desktop to be included in the video stream to the local desktop of the local device; capturing image data, the image data representing a first surface capturing at least some of a presentation of the remote desktop, the first surface comprising at least a first visual content area and at least a second visual content area, wherein the second visual content area comprises window visuals of the at least one application window, and the first visual content area comprises a portion of the remote desktop that is outside of the at least one application window; as well as overwriting a portion of the first surface representing the first visual content region with lower entropy data to generate a second surface including the second visual content region and the lower entropy data; encoding a frame into the video stream, the frame comprising at least some of the second surface including the second visual content area containing the window visual and the portion of the first surface including the lower entropy data; as well as sending a stream including the video stream and window metadata representing window properties of the at least one application window to the local desktop, The frames are virtual frames, and the method further comprises dividing the window visuals of the at least one application window into the virtual frames, wherein the virtual frames are encoded and sent as frames of the video stream.

2. The method of claim 1, wherein the first surface comprises a screenshot of the remote desktop, and the method further include: By the overwriting, a virtual template is applied to the screenshot to remove at least some of the first visual content area.

3. The method of claim 1, wherein the window attributes include an identifier and at least one of: a title, a geometry, a style, or coordinates of the application window.

4. The method of claim 1, wherein determining the at least one application window of the remote desktop to be included in the stream include: receiving a process list corresponding to a list of application windows to be included in the stream; as well as A selection of the application window from the list of application windows is determined from the process list based at least in part on each of the selected application windows being visible on the remote desktop.

5. The method of claim 1, wherein the window metadata is sent in the stream using structured byte-by-byte differencing to delta-encode the window properties of the application window.

6. The method according to claim 1, further comprising: include: One or more of a window creation event or a window destruction event associated with the remote desktop is identified, and a list of application windows to be included in the stream is updated based at least in part on the window creation event or the window destruction event.

7. The method of claim 1, wherein the encoding is also for the window metadata, and the window metadata is located in at least one header of the video stream.

8. The method of claim 1, wherein the video stream includes per-pixel transparency information for the second visual content area, the per-pixel transparency information including the window visuals of the at least one application window.

9. The method of claim 1, wherein the encoding comprises appending alpha information of the window visuals of the at least one application window to the video stream.

10. The method of claim 1, wherein the encoding include: transcoding per-pixel transparency information of the window visuals of the at least one application window; as well as The set of per-pixel transparency information is appended to the video stream as a single color sample in a supported color space.

11. The method of claim 1, wherein the second surface includes window visuals of a plurality of application windows at pixel locations corresponding to coordinates of the plurality of application windows on the remote desktop.

12. The method of claim 1, Wherein when the second surface is encoded into the frame, the second surface includes a window visual object of the at least one application window that is partially obscured by another portion of the remote desktop that is located outside the at least one application window.

13. A method, include: An encoded stream of one or more application windows of a remote desktop of a local desktop of a local device is received, the encoded stream comprising: window visual data of frames of at least some of the first surface including window visuals of the one or more application windows encoded in the video stream of the encoded stream, and the frame including visual data of the first surface corresponding to one or more unselected regions of the remote desktop including at least some of the lower entropy data, wherein the visual data and the window visual data correspond to a second surface capturing at least some of the presentation of the remote desktop, wherein the one or more unselected regions in the second surface have been replaced with lower entropy data to generate the first surface, and wherein the lower entropy data has been encoded in the frame at a higher compression rate than the window visual data of the one or more application windows; decoding the window visual data from the encoded stream; filtering the visual data corresponding to the one or more unselected areas of the remote desktop from the encoded stream; and presenting at least a portion of the window visuals from the encoded stream on the local desktop based at least in part on window properties corresponding to the application window, the at least a portion of the window visuals corresponding to an application window of the one or more application windows in the proxy window for the application window, Wherein, the window attributes are represented in a first coordinate system of the remote desktop, the first coordinate system is different from a second coordinate system of the local desktop, and the method also includes converting at least some of the window attributes from the first coordinate system to the second coordinate system for presenting the window visual data in the proxy window.

14. The method of claim 13, wherein decoding the window visual data is based on at least one video frame in the video stream representing the window visual data and window metadata representing window attributes.

15. The method of claim 13, wherein the window attributes include an identifier and at least one of: a title, a geometry, a style, or coordinates of the application window.

16. A method, include: determining at least one application window of the remote desktop to be included in the stream to the local desktop of the local device; determining a first portion of the remote desktop to be excluded from the stream, the first portion being outside of the at least one application window; generating a virtual template that identifies on a first visible surface capturing at least some of the presentation of the remote desktop: a first pixel position of a second portion of the remote desktop to be included in the stream and a second pixel position of the first portion of the remote desktop to be excluded from the stream; removing the first portion of the remote desktop from the first visible surface including at least one area of ​​window visuals of the at least one application window to generate a second visible surface including at least the first portion overwritten by lower entropy data based on applying the virtual template to the first visible surface; encoding the at least one region of window visuals including the at least one application window and the second visible surface of the first portion overwritten by the lower entropy data into the stream as a frame; as well as sending the stream including the frame to the local desktop, The frame is a virtual frame, and the method further comprises dividing the second visible surface into one or more pages of the virtual frame, wherein the virtual frame is encoded and sent as one or more frames of the stream.

17. The method of claim 16, the first visible surface comprising a screenshot of at least a portion of the remote desktop.