WO2018032696A1 - 桌面截屏控制方法及系统 - Google Patents

桌面截屏控制方法及系统 Download PDF

Info

Publication number
WO2018032696A1
WO2018032696A1 PCT/CN2016/113176 CN2016113176W WO2018032696A1 WO 2018032696 A1 WO2018032696 A1 WO 2018032696A1 CN 2016113176 W CN2016113176 W CN 2016113176W WO 2018032696 A1 WO2018032696 A1 WO 2018032696A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen capture
screen
image
desktop
preset condition
Prior art date
Application number
PCT/CN2016/113176
Other languages
English (en)
French (fr)
Inventor
李春
Original Assignee
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2018032696A1 publication Critical patent/WO2018032696A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a desktop screen capture control method and system.
  • remote desktops can be realized between intelligent terminals, and remote control of other intelligent terminals can be realized by operating one intelligent terminal.
  • the remote control terminal When the remote desktop is used between the smart terminals, the remote control terminal first sends a remote desktop request to the controlled terminal, and the controlled terminal performs a screen capture according to the request to obtain a screen capture image and sends it to the remote control terminal, and the remote control terminal receives the screen capture image and displays it.
  • the traditional technical solution is that the controlled end adopts a fixed single screen capture mode for desktop image acquisition, and sends the collected desktop image to the remote control terminal to implement a remote desktop.
  • the conventional method of capturing a desktop image by fixing a single screen capture method such that when the software or hardware system of the controlled terminal is poorly configured, when the screen is screened by a single screen capture mode, the screen capture efficiency is low.
  • a desktop screen capture control method includes the following steps:
  • the screen capture is performed by accessing the screen capture mode of the screen image to obtain a screen capture image
  • the screen capture is performed by the screen capture mode of the screenshot, and the screen capture image is obtained;
  • the invention also provides a desktop screen capture control device, comprising:
  • a detecting module configured to detect a system configuration according to the remote desktop request
  • a first screen capture module configured to: when the system configuration meets the first preset condition, perform a screen capture by capturing a screenshot of the screen image by accessing the buffer area to obtain a screen capture image;
  • a second screen capture module configured to: when the system configuration does not meet the first preset condition, perform a screen capture by using a screenshot of the screen shot to obtain a screen capture image;
  • a sending module configured to send the screenshot image.
  • the desktop screen capture control method and system firstly obtain a remote desktop request, and detect a system configuration according to the remote desktop request; when the system configuration meets the first preset condition, the desktop screen is captured by accessing the buffer area to capture a screen image. Screen capture, obtaining a screen capture image; when the system configuration does not satisfy the first preset condition, the screen capture is performed by the screen capture mode of the screenshot, the screen capture image is obtained, and the screen capture image is sent.
  • the above-mentioned determining whether the system configuration meets the first preset condition is to select a different screen capture mode, that is, when the system configuration meets a certain condition, the screen capture mode corresponding to the first preset condition can be supported for screen capture, that is, direct access.
  • the screen capture mode of the screen capture screen for desktop screen capture can capture the screen image to obtain a screen capture image, and does not need to take a picture such as a desktop screen capture to improve screen capture efficiency. If it is not satisfied, it indicates that the system configuration fails to meet the screen capture mode corresponding to the first preset condition. If the screenshot is captured by using the access buffer to capture the screen image, the screen image will not be captured by accessing the buffer area.
  • the screen capture method makes the screen capture efficiency extremely low. At this time, the desktop screen capture is performed through the screen shot to improve the screen capture efficiency, so that the desktop screen is no longer screened by a single screen capture method, but according to the system configuration.
  • the screen capture mode corresponding to the situation is selected to effectively improve the screen capture efficiency.
  • FIG. 1 is a flow chart of a desktop screen capture control method of an embodiment
  • FIG. 2 is a sub-flow diagram of a step of performing a screen capture of a screen capture by capturing a screen image of a screen image by accessing a buffer area when the system configuration meets the first preset condition in the desktop screen capture control method of another embodiment;
  • FIG. 3 is a flow chart of a desktop screen capture control method according to another embodiment
  • FIG. 4 is a flowchart of a desktop screen capture control method according to an embodiment of the present invention.
  • Figure 5 is a block diagram of a desktop screen capture control system of an embodiment
  • FIG. 6 is a sub-module diagram of a first screen capture module in a desktop screen capture control system of another embodiment
  • FIG. 7 is a block diagram of a desktop screen capture control system of another embodiment.
  • the controlled end and the remote control end communicate through the network connection, and when the remote control end needs to perform remote desktop control on the controlled end, the remote desktop request is sent to the controlled end, and the controlled end receives the remote control remote end.
  • the screen captures the desktop obtains the screen capture image and sends it to the remote control terminal, and the remote control terminal receives the screen capture image sent by the controlled terminal and displays it to realize the remote desktop display, and the remote control terminal can be controlled to realize the controlled operation. End control.
  • functions as a remote console for requesting a remote desktop and as a controlled terminal for transmitting a screen capture image may be interchanged.
  • a desktop screen capture control method of an embodiment including the following steps:
  • the remote control terminal When the remote control terminal needs to control the controlled terminal through the remote desktop, it needs to send a remote desktop request to the controlled terminal to request the controlled terminal to send a desktop screen capture, so that the remote control terminal remotely displays the controlled terminal desktop, and is controlled.
  • the terminal receives the remote desktop request sent by the remote console to trigger the subsequent steps.
  • Both the controlled end and the remote control end are respectively located in different system environments. Different system environments correspond to different system configurations. When the system configuration is good, the working efficiency is also high. For example, when a video card driver is installed in the system environment where the controlled terminal is located for driving the graphics card to work, the controlled terminal can increase the speed of display and playback when displaying images or playing video. After receiving the remote desktop request sent by the remote control terminal, the controlled terminal detects the system configuration of the system environment in which it is located, so as to know the configuration of the system, and provide a basis for the subsequent screen capture mode selection.
  • S150 capture the screen image by accessing the buffer area when the system configuration meets the first preset condition Take a screenshot of the desktop and get a screenshot.
  • the controlled terminal can select a different screen capture method to take a screen capture to obtain a screen capture image according to the system configuration.
  • the first preset condition is set as the basis for the selection of the screen capture mode, that is, when the system configuration meets the first preset condition, the screen capture mode of the screen image is captured by accessing the buffer area, and the screen capture image is obtained.
  • the buffer area stores screen image information, that is, saves the memory content related to the desktop, which is essentially a screen image, and the content of the current screen can be captured by accessing the buffer area.
  • the screen capture is performed by the screen capture mode of the screenshot, and the screen capture image is obtained, that is, the screen capture mode is selected according to the system configuration.
  • the screen capture speed of the screen capture mode of the screen capture screen is faster than the screen capture speed of the screenshot mode of the screen shot.
  • the screenshot of capturing the screen image by accessing the buffer area has a screen capture condition, that is, a screen capture of the screen image by accessing the buffer area.
  • the mode is only when the graphics card driver can drive the graphics card, that is, when the video memory is cached by the video memory, the screen capture mode of the screen capture screen can access the screen image in the buffer area for screen capture, as long as the system
  • the screen capture condition that satisfies the screen capture mode of the screen capture screen is the first preset condition, and the screenshot is captured by accessing the buffer area to capture the screen image to improve the screen capture efficiency.
  • the system configuration does not meet the first preset condition, that is, the system configuration does not satisfy the screen capture condition of the screen capture mode of the capture buffer image capture screen.
  • the screen capture mode of the screen image is captured by accessing the buffer area, the screen capture will be performed.
  • the result of the screen capture is extremely low.
  • the screenshot is taken through the screenshot of the screen shot to improve the screen capture efficiency.
  • the controlled end selects the corresponding screen capture mode according to the system configuration to perform the screen capture of the desktop, and then obtains the screen capture image, and then sends the screen capture image to the remote control terminal, and the remote control terminal receives the screen capture image and displays it to realize the remote desktop function.
  • the above desktop screen capture control method first acquires a remote desktop request, detects a system configuration according to the remote desktop request, and captures a screen by accessing the cache area when the system configuration meets the first preset condition.
  • the screen capture mode of the image is performed on the desktop screen capture to obtain the screen capture image; when the system configuration does not satisfy the first preset condition, the screen capture is performed by the screen capture mode of the screenshot, the screen capture image is obtained, and the screen capture image is sent.
  • the above-mentioned determining whether the system configuration meets the first preset condition is to select a different screen capture mode, that is, when the system configuration meets a certain condition, the screen capture mode corresponding to the first preset condition can be supported for screen capture, that is, direct access.
  • the screen capture mode of the screen capture screen for desktop screen capture can capture the screen image to obtain a screen capture image, and does not need to take a picture such as a desktop screen capture to improve screen capture efficiency. If it is not satisfied, it indicates that the system configuration fails to meet the screen capture mode corresponding to the first preset condition. If the screenshot is captured by using the access buffer to capture the screen image, the screen image will not be captured by accessing the buffer area.
  • the screen capture method makes the screen capture efficiency extremely low. At this time, the desktop screen capture is performed through the screen shot to improve the screen capture efficiency, so that the desktop screen is no longer screened by a single screen capture method, but according to the system configuration.
  • the screen capture mode corresponding to the situation is selected to effectively improve the screen capture efficiency.
  • the system configuration includes the graphics card driving information
  • the first preset condition is that the graphics card driving information is not empty, that is, the controlled terminal has a graphics card driver installed to drive the graphics card, that is, the graphics card driver drives the graphics card to enable the video memory.
  • the screenshot is captured by the access buffer area to capture the screen image.
  • the screenshots of the screen capture screen image include the DX (Direct eXtension) screen capture mode and the DXGI (Directive Graphics Infrastructure) screen capture mode.
  • the screen capture mode includes GDI (GraphicsDeviceInterface, graphics device interface). ) Screen capture method.
  • the controlled terminal After receiving the remote desktop request, the controlled terminal detects the driving information of the graphics card, that is, whether the graphics card driver is installed in the system environment, and when the graphics card driver is installed, the driving information of the graphics card, that is, the driving information of the graphics card can be detected. If it is not empty, if there is no graphics card driver installed, there is no graphics card driver information in the system environment, then the graphics card driver information is empty, and the graphics card driver information is not detected.
  • the graphics card driver information When the graphics card driver information is not empty, it indicates that the system configuration of the controlled terminal satisfies the first preset condition, and the screen capture image is obtained by the DX screen capture mode or the DXGI screen capture mode, and when the graphics card driver information is empty, the system indicates the controlled terminal. The configuration does not meet the first preset condition, and the screen capture is obtained by the screen capture of the desktop through the GDI screen capture mode.
  • the desktop screen capture is performed by accessing the screen capture mode of the capture screen image, and the step S250 of obtaining the screen capture image includes:
  • the screen capture mode is selected to perform desktop screen capture, and the screen capture efficiency is improved.
  • the system configuration meets the first preset condition, it is necessary to determine whether the system configuration meets the second preset condition, and when not satisfied During the second preset condition, the desktop screen capture is performed by the DX screen capture mode, and when the second preset condition is met, the desktop screen capture is performed by the DXGI screen capture mode.
  • the system configuration further includes operating system version information
  • the second preset condition is that the operating system version information is not lower than Windows 8. That is, the system configuration is detected, and the version of the operating system in the system environment where the controlled end is located is obtained, and the operating system version information is obtained.
  • the system configuration meets the first preset condition, that is, the installation of the graphics card driver is performed, the operating system is determined.
  • Version when the operating system version information is lower than Windows 8, the desktop screen capture can be performed by DX screen capture mode.
  • the desktop screen capture can be performed by DXGI screen capture mode to obtain the screen capture image.
  • the method before the step S390 of transmitting the screenshot image, the method further includes:
  • S383 The screen capture image is compressed when the frame rate of the screen is not lower than the preset rate.
  • the controlled terminal screen rate is also It will be different, where the screen capture frame rate is the number of image frames obtained per second when the screen is taken.
  • the screen capture image is compressed to reduce the size of the transmitted data.
  • the controlled terminal displays the virtual desktop on the desktop according to the remote desktop request, that is, the controlled terminal displays the virtual effect on the desktop, and when the frame rate of the screen is low, in order to improve the receiving The working efficiency of the console, closing the virtual desktop, will close the desktop virtual effect, reduce the workload of the controlled end, and then perform screenshot image compression.
  • the preset rate is 10 frames per second.
  • compressing the screen capture image includes the steps of: compressing the screen capture image by the first compression algorithm when in the local area network; and performing the screen capture image by the second compression algorithm when in the non-local area network; compression.
  • the screen image is compressed by the first compression algorithm.
  • the virtual desktop is closed, and the screen capture image is also compressed by the first compression algorithm. Regardless of whether the screen rate of the screen is lower than the preset rate, as long as the controlled end is in the local area network, the first compression algorithm is used for compression.
  • the screen capture image is compressed by the second compression algorithm.
  • the virtual desktop is closed, and the screen capture image is compressed by the second compression algorithm. Regardless of whether the screen rate of the screen is lower than the preset rate, as long as the controlled end is in the non-local area network, the second compression algorithm is used for compression.
  • the controlled terminal performs the screen capture of the desktop, and needs to determine the network environment in which the controlled terminal is located.
  • the network connected by the controlled end is a local area network
  • the remote control end communicates with the local area network through the local area network.
  • the screen capture image is compressed by the first compression algorithm.
  • the controlled end is in a non-local area network, for example, the network where the controlled end is located is a wide area network, and the screen capture image is compressed by the second compression algorithm.
  • the first compression algorithm is a high-quality image compression algorithm
  • the second compression algorithm is a low-quality image compression algorithm, that is, the image quality compressed by the first compression algorithm is higher than that after being compressed by the second compression algorithm.
  • the image quality of the image In the process of compression, the image quality will inevitably be affected.
  • the high-quality image compression algorithm is an image compression algorithm that ensures high image quality after compression, so that the image quality loss after image compression is as small as possible, for example,
  • a compression algorithm may be a Huffman compression algorithm using Huffman coding.
  • the low-quality image compression algorithm compresses the image quality of the image to a certain extent, and the image quality is worse than that of the image compression using the high-quality compression algorithm. However, this compression algorithm is fast and can be improved.
  • the compression efficiency, for example, the second compression algorithm may be a JPEG (Joint Photographic Experts Group) compression algorithm or the like.
  • the controlled terminal receives the remote desktop request sent by the remote control terminal, and the controlled terminal displays the virtual desktop on the display screen according to the remote desktop request, that is, the desktop virtual effect is presented on the controlled end.
  • the controlled terminal determines whether the graphics card driver is installed in the system environment according to the remote desktop request. If the graphics card driver is not installed, the GDI screen capture mode is used to collect the desktop image. If the graphics card driver is installed, the controlled terminal determines the operating system in the system environment. Version, if the operating system version is not lower than the Windows 8 operating system, use the DXGI screen capture method to collect desktop images. If the operating system version is lower than the Windows 8 version, use the DX screen capture method to collect desktop images.
  • the controlled end determines whether the current screen capture frame rate is greater than 10 frames/s. If the screen capture frame rate is lower than 10 frames/s, the controlled end closes the desktop effect and then performs subsequent steps. If the screen capture frame rate is greater than 10 frames/s, the control unit does not perform Operation, perform the next steps.
  • the controlled end determines whether the current network scene is a local area network. If the local area network is used, the high-quality image compression algorithm, that is, the first compression algorithm, compresses the collected desktop image. If it is in a non-local area network such as a wide area network, the low-quality image compression algorithm, that is, the second compression algorithm, is used to compress the acquired desktop image. Finally, the compressed desktop image is sent to the remote console for display to implement the remote desktop.
  • the high-quality image compression algorithm that is, the first compression algorithm
  • the low-quality image compression algorithm that is, the second compression algorithm
  • the system configuration is considered to dynamically select an appropriate screen capture mode, that is, the desktop image acquisition is adaptive, which is greatly increased.
  • the screen capture efficiency is high
  • the compression mode is dynamically selected considering factors such as the network condition of the controlled end, that is, the image compression algorithm is adaptive, which can satisfy different network conditions to improve compression and transmission efficiency.
  • the screen frame rate is also considered.
  • the screen frame rate is related to the CPU performance in the controlled end. The higher the CPU performance, the larger the screen rate. When the screen rate is low, the controlled end is guaranteed.
  • CPU performance the console display screen is adaptive, that is, the virtual desktop is closed.
  • a desktop screen capture control apparatus including:
  • the request acquisition module 510 is configured to obtain a remote desktop request.
  • the remote control terminal When the remote control terminal needs to control the controlled terminal through the remote desktop, it needs to send a remote desktop request to the controlled terminal to request the controlled terminal to send a desktop screen capture, so that the remote control terminal remotely displays the controlled terminal desktop, and is controlled.
  • the terminal receives the remote desktop request sent by the remote console to trigger the subsequent steps.
  • the detecting module 530 is configured to detect a system configuration according to the remote desktop request.
  • Both the controlled end and the remote control end are respectively located in different system environments. Different system environments correspond to different system configurations. When the system configuration is good, the working efficiency is also high. For example, when a video card driver is installed in the system environment where the controlled terminal is located for driving the graphics card to work, the controlled terminal can increase the speed of display and playback when displaying images or playing video. After receiving the remote desktop request sent by the remote control terminal, the controlled terminal detects the system configuration of the system environment in which it is located, so as to know the configuration of the system, and provide a basis for the subsequent screen capture mode selection.
  • the first screen capture module 550 is configured to perform a desktop screen capture by capturing a screen capture mode of the screen image by accessing the buffer area when the system configuration meets the first preset condition, and obtain a screen capture image.
  • the second screen capture module 570 is configured to perform a screen capture of the screen through the screen capture mode of the screenshot when the system configuration does not meet the first preset condition, and obtain a screen capture image.
  • the controlled terminal can select a different screen capture method to take a screen capture to obtain a screen capture image according to the system configuration.
  • the first preset condition is set as the basis for the selection of the screen capture mode, that is, when the system configuration meets the first preset condition, the screen capture mode of the screen image is captured by accessing the buffer area, and the screen capture image is obtained.
  • the buffer area stores screen image information, that is, the memory content related to the desktop is saved, which is essentially a screen image, which can be captured by accessing the buffer area. The content of the current screen.
  • the screen capture is performed by the screen capture mode of the screenshot, and the screen capture image is obtained, that is, the screen capture mode is selected according to the system configuration.
  • the screen capture speed of the screen capture mode of the screen capture screen is faster than the screen capture speed of the screenshot mode of the screen shot.
  • the screenshot of capturing the screen image by accessing the buffer area has a screen capture condition, that is, a screen capture of the screen image by accessing the buffer area.
  • the mode is only when the graphics card driver can drive the graphics card, that is, when the video memory is cached by the video memory, the screen capture mode of the screen capture screen can access the screen image in the buffer area for screen capture, as long as the system
  • the screen capture condition that satisfies the screen capture mode of the screen capture screen is the first preset condition, and the screenshot is captured by accessing the buffer area to capture the screen image to improve the screen capture efficiency.
  • the system configuration does not meet the first preset condition, that is, the system configuration does not satisfy the screen capture condition of the screen capture mode of the capture buffer image capture screen.
  • the screen capture mode of the screen image is captured by accessing the buffer area, the screen capture will be performed.
  • the result of the screen capture is extremely low.
  • the screenshot is taken through the screenshot of the screen shot to improve the screen capture efficiency.
  • a transmission block 590 is provided for transmitting the screen capture image.
  • the controlled end selects the corresponding screen capture mode according to the system configuration to perform the screen capture of the desktop, and then obtains the screen capture image, and then sends the screen capture image to the remote control terminal, and the remote control terminal receives the screen capture image and displays it to realize the remote desktop function.
  • the desktop screen capture control device first acquires a remote desktop request, and detects a system configuration according to the remote desktop request; when the system configuration meets the first preset condition, the screen capture is performed by accessing the screen capture mode of the screen image to obtain a screen capture image; When the system configuration does not meet the first preset condition, the screen capture is performed through the screen capture mode of the screenshot, the screen capture image is obtained, and the screen capture image is sent.
  • the above-mentioned determining whether the system configuration meets the first preset condition is to select a different screen capture mode, that is, when the system configuration meets a certain condition, the screen capture mode corresponding to the first preset condition can be supported for screen capture, that is, direct access.
  • the screen capture mode of the screen capture screen for desktop screen capture can capture the screen image to obtain a screen capture image, and does not need to take a picture such as a desktop screen capture to improve screen capture efficiency. If it is not satisfied, it means that the system configuration fails to meet the screen capture mode corresponding to the first preset condition. If the screenshot is captured by using the access buffer to capture the screen image, the screen will not be satisfied.
  • the screen capture mode of the screen capture screen captures the screen and the screen capture efficiency is extremely low. At this time, the screen capture is performed by the screen shot to improve the screen capture efficiency, so that the screen is no longer screened by a single screen capture method. Instead, according to the configuration of the system, the corresponding screen capture mode is selected for screen capture, which can effectively improve the screen capture efficiency.
  • the system configuration includes the graphics card driving information
  • the first preset condition is that the graphics card driving information is not empty, that is, the controlled terminal has a graphics card driver installed to drive the graphics card, that is, the graphics card driver drives the graphics card to enable the video memory.
  • the screenshot is captured by the access buffer area to capture the screen image.
  • the screenshots of the screen capture screen image include the DX (Direct eXtension) screen capture mode and the DXGI (Directive Graphics Infrastructure) screen capture mode.
  • the screen capture mode includes GDI (GraphicsDeviceInterface, graphics device interface). ) Screen capture method.
  • the controlled terminal After receiving the remote desktop request, the controlled terminal detects the driving information of the graphics card, that is, whether the graphics card driver is installed in the system environment, and when the graphics card driver is installed, the driving information of the graphics card, that is, the driving information of the graphics card can be detected. If it is not empty, if there is no graphics card driver installed, there is no graphics card driver information in the system environment, then the graphics card driver information is empty, and the graphics card driver information is not detected.
  • the graphics card driver information When the graphics card driver information is not empty, it indicates that the system configuration of the controlled terminal satisfies the first preset condition, and the screen capture image is obtained by the DX screen capture mode or the DXGI screen capture mode, and when the graphics card driver information is empty, the system indicates the controlled terminal. The configuration does not meet the first preset condition, and the screen capture is obtained by the screen capture of the desktop through the GDI screen capture mode.
  • the first screen capture module 650 includes:
  • the first screen capture unit 651 is configured to perform a desktop screen capture by using a DX screen capture method to obtain a screen capture image when the system configuration meets the first preset condition and does not satisfy the second preset condition.
  • the second screen capture unit 653 is configured to: when the system configuration meets the first preset condition and meet the second preset condition, perform a desktop screen capture by using a DXGI screen capture manner to obtain a screen capture image.
  • the screen capture mode is selected to perform desktop screen capture, and the screen capture efficiency is improved.
  • the system configuration meets the first preset condition, it is necessary to determine whether the system configuration meets the second preset condition, and when not satisfied During the second preset condition, the desktop screen capture is performed by the DX screen capture mode, and when the second preset condition is met, the desktop screen capture is performed by the DXGI screen capture mode. Pass Through the above judgment of the system configuration, the system environment of the controlled terminal can be further known, and the screen capture mode matching the system configuration situation can be more clearly selected for screen capture, which can further improve the screen capture efficiency.
  • the system configuration further includes operating system version information
  • the second preset condition is that the operating system version information is not lower than Windows 8. That is, the system configuration is detected, and the version of the operating system in the system environment where the controlled end is located is obtained, and the operating system version information is obtained.
  • the system configuration meets the first preset condition, that is, the installation of the graphics card driver is performed, the operating system is determined.
  • Version when the operating system version information is lower than Windows 8, the desktop screen capture can be performed by DX screen capture mode.
  • the desktop screen capture can be performed by DXGI screen capture mode to obtain the screen capture image.
  • the method further includes:
  • the frame rate acquisition module 781 is configured to acquire a screen capture frame rate.
  • the first compression module 783 is configured to compress the screen capture image when the frame rate of the screen is not lower than the preset rate.
  • the second compression module 785 is configured to: when the frame rate of the screen is lower than the preset rate, turn off the desktop virtual effect, and compress the screen image.
  • the controlled end screen capture frame rate will be different due to the different configuration of the controlled end's own software and hardware or the screen capture mode used.
  • the screen capture frame rate is the number of image frames obtained per second during the screen capture.
  • the screen capture image is compressed to reduce the size of the transmitted data.
  • the controlled terminal displays the virtual desktop on the desktop according to the remote desktop request, that is, the controlled terminal displays the virtual effect on the desktop, and when the frame rate of the screen is low, in order to improve the receiving
  • the working efficiency of the console, closing the virtual desktop will close the desktop virtual effect, reduce the workload of the controlled end, and then perform screenshot image compression.
  • the preset rate is 10 frames per second.
  • the first compression module 783 and the second compression module 785 are further configured to compress the screen capture image by the first compression algorithm when in the local area network; when in the non-local area network, The second compression algorithm compresses the screen capture image.
  • a compression algorithm compresses the screen capture image.
  • the virtual desktop is closed, and the screen capture image is also compressed by the first compression algorithm. Regardless of whether the screen rate of the screen is lower than the preset rate, as long as the controlled end is in the local area network, the first compression algorithm is used for compression.
  • the screen capture image is compressed by the second compression algorithm.
  • the virtual desktop is closed, and the screen capture image is compressed by the second compression algorithm. Regardless of whether the screen rate of the screen is lower than the preset rate, as long as the controlled end is in the non-local area network, the second compression algorithm is used for compression.
  • the controlled terminal performs the screen capture of the desktop, and needs to determine the network environment in which the controlled terminal is located.
  • the network connected by the controlled end is a local area network
  • the remote control end communicates with the local area network through the local area network.
  • the screen capture image is compressed by the first compression algorithm.
  • the controlled end is in a non-local area network, for example, the network where the controlled end is located is a wide area network, and the screen capture image is compressed by the second compression algorithm.
  • the first compression algorithm is a high-quality image compression algorithm
  • the second compression algorithm is a low-quality image compression algorithm, that is, the image quality compressed by the first compression algorithm is higher than that by the second compression algorithm.
  • the quality of the compressed image In the process of compression, the image quality will inevitably be affected.
  • the high-quality image compression algorithm is an image compression algorithm that ensures high image quality after compression, so that the image quality loss after image compression is as small as possible, for example,
  • a compression algorithm may be a Huffman compression algorithm using Huffman coding.
  • the low-quality image compression algorithm compresses the image quality of the image to a certain extent, and the image quality is worse than that of the image compression using the high-quality compression algorithm. However, this compression algorithm is fast and can be improved.
  • the compression efficiency, for example, the second compression algorithm may be a JPEG (Joint Photographic Experts Group) compression algorithm or the like.

Abstract

本发明涉及一种桌面截屏控制方法及系统,首先获取远程桌面请求,根据所述远程桌面请求,检测系统配置;当所述系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像;当所述系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像,发送所述截屏图像。通过上述判断系统配置是否满足第一预设条件,来选择不同的截屏方式,即满足时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,不满足时,通过屏幕快照的截屏方式进行桌面截屏,不再是通过单一的截屏方式对桌面进行截屏,而是根据系统配置的情况选择对应的截屏方式进行截屏,可有效提高截屏效率。

Description

桌面截屏控制方法及系统 技术领域
本发明涉及计算机技术领域,特别涉及一种桌面截屏控制方法及系统。
背景技术
随着通信技术的迅速发展,智能终端之间可实现远程桌面,即可通过操作一台智能终端可实现对其他智能终端的远程控制。
在智能终端之间使用远程桌面时,首先远程控制端向受控端发送远程桌面请求,受控端根据请求进行截屏获得截屏图像并发送给远程控制端,远程控制端接收截屏图像并显示。传统的技术方案是受控端采取固定单一的截屏方式进行桌面图像采集,将采集的桌面图像发送到远程控制端,实现远程桌面。然而,传统的通过固定单一的截屏方式来捕获桌面图像,这样在受控端的软件或硬件系统配置较差时通过单一的截屏方式进行截屏时,会导致截屏效率低。
发明内容
基于此,有必要针对截屏效率低的问题,提供一种能提高截屏效率的桌面截屏控制方法及系统。
一种桌面截屏控制方法,包括以下步骤:
获取远程桌面请求;
根据所述远程桌面请求,检测系统配置;
当所述系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像;
当所述系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像;
发送所述截屏图像。
本发明还提供一种桌面截屏控制装置,包括:
请求获取模块,用于获取远程桌面请求;
检测模块,用于根据所述远程桌面请求,检测系统配置;
第一截屏模块,用于当所述系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像;
第二截屏模块,用于当所述系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像;
发送模块,用于发送所述截屏图像。
上述桌面截屏控制方法及系统,首先获取远程桌面请求,根据所述远程桌面请求,检测系统配置;当所述系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像;当所述系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像,发送所述截屏图像。通过上述判断系统配置是否满足第一预设条件,来选择不同的截屏方式,即满足时,表示系统配置满足了一定的条件,可支持第一预设条件对应的截屏方式进行截屏,即直接访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,也就是说直接访问缓存区中的内容就可以捕捉到屏幕图像以获得截屏图像,无需通过拍照这种程序进行桌面截屏,提高截屏效率。不满足时,表示系统配置没能满足第一预设条件对应的截屏方式进行截屏的条件,若使用访问缓存区捕捉屏幕图像的截屏方式进行截屏,会由于没有满足通过访问缓存区捕捉屏幕图像的截屏方式进行截屏的条件而导致截屏效率极低,此时,通过屏幕快照的进行桌面截屏,以提高截屏效率,从而,不再是通过单一的截屏方式对桌面进行截屏,而是根据系统配置的情况选择对应的截屏方式进行截屏,可有效提高截屏效率。
附图说明
图1为一种实施例的桌面截屏控制方法的流程图;
图2为另一种实施例的桌面截屏控制方法中当系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像的步骤的子流程图;
图3为另一种实施例的桌面截屏控制方法的流程图;
图4为本具体实施例的桌面截屏控制方法的流程图;
图5为一种实施例的桌面截屏控制系统的模块图;
图6为另一种实施例的桌面截屏控制系统中第一截屏模块的子模块图;
图7为另一种实施例的桌面截屏控制系统的模块图。
具体实施方式
在进行远程桌面时,受控端和远程控制端通过网络连接进行通信,远程控制端需要对受控端进行远程桌面控制时,向受控端发送远程桌面请求,受控端接收远程控制端的远程桌面请求时,对自身桌面进行截屏,获得截屏图像并发送给远程控制端,远程控制端接收受控端发送的截屏图像并显示,实现远程桌面显示,在远程控制端进行操作可实现对受控端的控制。为了实现双向通信,作为请求远程桌面的远程控制端和作为发送截屏图像的受控端的功能可以互换。
请参阅图1,提供一种实施例的桌面截屏控制方法,包括以下步骤:
S110:获取远程桌面请求。
远程控制端需要通过远程桌面对受控端进行控制时,需要向受控端发送远程桌面请求,以请求受控端发送桌面截屏,以实现远程控制端对受控端桌面的远程显示,受控端接收远程控制端发送的远程桌面请求,以触发执行后续步骤。
S130:根据远程桌面请求,检测系统配置。
受控端和远程控制端均分别对应处在不同的系统环境中,不同的系统环境对应不同的系统配置,当系统配置较好时,工作效率也会较高。例如,当受控端所处的系统环境中安装有显卡驱动,用于驱动显卡工作,则受控端在显示图像或播放视频时,可提高显示和播放的速度。受控端在接收到远程控制端发送的远程桌面请求后,对自身所处系统环境的系统配置进行检测,以便获知系统配置的情况,为后续截屏方式选择提供依据。
S150:当系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像 的截屏方式进行桌面截屏,获得截屏图像。
S170:当系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像。
受控端截屏方式有多种,受控端在对系统配置检测完后,获知系统配置的情况后,可根据系统配置,选择不同的截屏方式对桌面进行截屏以获取截屏图像。在本实施例中,通过设置第一预设条件作为截屏方式选择的依据,即当系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像,缓存区存储有屏幕图像信息,即保存了和桌面相关的显存内容,实质上就是屏幕图像,通过访问缓存区就可以捕捉到当前屏幕的内容。当系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像,即根据系统配置的情况选择不同的截屏方式对桌面进行截屏。访问缓存区捕捉屏幕图像的截屏方式的截屏速度快于屏幕快照的截屏方式的截屏速度,由于访问缓存区捕捉屏幕图像的截屏方式进行截屏是有截屏条件的,即访问缓存区捕捉屏幕图像的截屏方式只有在有显卡驱动对显卡可驱动情况下,也就是具有显存即缓存区对屏幕图像进行缓存时,访问缓存区捕捉屏幕图像的截屏方式才能访问缓存区中的屏幕图像进行截屏,只要当系统配置满足访问缓存区捕捉屏幕图像的截屏方式的截屏条件即第一预设条件,就通过访问缓存区捕捉屏幕图像的截屏方式进行截屏以提高截屏效率。当系统配置不满足第一预设条件时,也就是说系统配置不满足访问缓存区捕捉屏幕图像的截屏方式的截屏条件,此时,若再通过访问缓存区捕捉屏幕图像的截屏方式进行截屏会导致截屏效率极低,此时,就通过屏幕快照的截屏方式进行截屏,以提高截屏效率。
S190:发送截屏图像。
受控端根据系统配置情况选择对应的截屏方式进行桌面截屏获得截屏图像后,将截屏图像发送给远程控制端,远程控制端接收到截屏图像后进行显示,实现远程桌面功能。
上述桌面截屏控制方法,首先获取远程桌面请求,根据远程桌面请求,检测系统配置;当系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕 图像的截屏方式进行桌面截屏,获得截屏图像;当系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像,发送截屏图像。通过上述判断系统配置是否满足第一预设条件,来选择不同的截屏方式,即满足时,表示系统配置满足了一定的条件,可支持第一预设条件对应的截屏方式进行截屏,即直接访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,也就是说直接访问缓存区中的内容就可以捕捉到屏幕图像以获得截屏图像,无需通过拍照这种程序进行桌面截屏,提高截屏效率。不满足时,表示系统配置没能满足第一预设条件对应的截屏方式进行截屏的条件,若使用访问缓存区捕捉屏幕图像的截屏方式进行截屏,会由于没有满足通过访问缓存区捕捉屏幕图像的截屏方式进行截屏的条件而导致截屏效率极低,此时,通过屏幕快照的进行桌面截屏,以提高截屏效率,从而,不再是通过单一的截屏方式对桌面进行截屏,而是根据系统配置的情况选择对应的截屏方式进行截屏,可有效提高截屏效率。
在本实施例中,系统配置包括显卡驱动信息,第一预设条件为显卡驱动信息不为空,也就是表示受控端有安装显卡驱动以驱动显卡,也就是具有显卡驱动驱动显卡使显存即缓存区对屏幕图像进行缓存时,采用访问缓存区捕捉屏幕图像的截屏方式进行截屏。其中访问缓存区捕捉屏幕图像的截屏方式包括DX(Direct eXtension,多媒体编程接口)截屏方式和DXGI(Directx Graphics Infrastructure,图形的基础设施)截屏方式,屏幕快照的截屏方式包括GDI(GraphicsDeviceInterface,图形设备接口)截屏方式。
受控端在接收远程桌面请求后,对显卡驱动信息进行检测,即是对系统环境中是否安装有显卡驱动进行检测,当安装有显卡驱动时,可检测到有显卡驱动信息,即显卡驱动信息不为空,若没有安装显卡驱动,在系统环境中没有显卡驱动信息,则显卡驱动信息为空,检测不到显卡驱动信息。当显卡驱动信息不为空时,表示受控端的系统配置满足第一预设条件,通过DX截屏方式或DXGI截屏方式进行桌面截屏获得截屏图像,当显卡驱动信息为空时,表示受控端的系统配置不满足第一预设条件,通过GDI截屏方式进行桌面截屏获得截屏图像。
请参阅图2,在其中一个实施例中,当系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像的步骤S250包括:
S251:当系统配置满足第一预设条件,且不满足第二预设条件时,通过DX截屏方式进行桌面截屏,获得截屏图像。
S253:当系统配置满足第一预设条件,且满足第二预设条件时,通过DXGI截屏方式进行桌面截屏,获得截屏图像。
为了进一步确定系统配置的情况,以选择截屏方式进行桌面截屏,提高截屏效率,在系统配置满足第一预设条件情况下,还需对系统配置是否满足第二预设条件进行判断,当不满足第二预设条件时,通过DX截屏方式进行桌面截屏,当满足第二预设条件时,通过DXGI截屏方式进行桌面截屏。通过上述进一步地对系统配置的判断,可进一步获知受控端所处系统环境的好坏,更明确地选择与系统配置情况匹配的截屏方式进行截屏,可进一步提高截屏效率。
在本实施例中,系统配置还包括操作系统版本信息,第二预设条件为操作系统版本信息不低于Windows8。即对系统配置进行检测,获知受控端所处系统环境的操作系统的版本,即可获知操作系统版本信息,在系统配置满足第一预设条件,即安装显卡驱动的情况下,判断操作系统版本,当操作系统版本信息低于Windows8时,可通过DX截屏方式进行桌面截屏,当操作系统版本信息不低于Windows8时,可通过DXGI截屏方式进行桌面截屏,获得截屏图像。
请参阅图3,在其中一个实施例中,发送截屏图像的步骤S390之前还包括:
S381:获取截屏帧率。
S383:当截屏帧率不低于预设速率时,对截屏图像进行压缩。
S385:当截屏帧率低于预设速率时,关闭桌面虚拟效果,并对截屏图像进行压缩。
由于受控端自身软硬件配置或采用的截屏方式不同,受控端截屏帧率也 会不同,其中,截屏帧率为截屏时每秒获得的图像帧的数量。为了提高截屏图像传送至远程控制端的速度,对截屏图像进行压缩,以减小传输数据的大小。然而,受控端在接收远程控制端发送的远程桌面请求时,根据远程桌面请求会在桌面显示虚拟桌面,即受控端会在桌面显示虚拟效果,当截屏帧率较低时,为了提高受控端工作效率,关闭虚拟桌面,即会关闭桌面虚拟效果,减少受控端的工作量,再进行截屏图像压缩。在本实施例中,预设速率为每秒10帧。
在其中一个实施例中,对截屏图像进行压缩包括步骤:当处于局域网络中时,通过第一压缩算法对截屏图像进行压缩;当处于非局域网络中时,通过第二压缩算法对截屏图像进行压缩。
也就是说,当截屏帧率不低于预设速率,且处于局域网络中时,通过第一压缩算法对截屏图像进行压缩。类似地,当截屏帧率低于预设速率,且处于局域网络中时,关闭虚拟桌面,也通过第一压缩算法对截屏图像进行压缩。无论截屏帧率是否低于预设速率,只要受控端是处于局域网络中,采用第一压缩算法进行压缩。
当截屏帧率不低于预设速率,且处于非局域网络中时,通过第二压缩算法对截屏图像进行压缩。类似地,当截屏帧率低于预设速率,且处于非局域网络中时,关闭虚拟桌面,通过第二压缩算法对截屏图像进行压缩。无论截屏帧率是否低于预设速率,只要受控端是处于非局域网络中,采用第二压缩算法进行压缩。
也就是说,受控端进行桌面截屏,需要判断受控端所处的网路环境,当受控端处于局域网络中时,即受控端连接的网络为局域网,与远程控制端通过局域网通信,通过第一压缩算法对截屏图像进行压缩。当受控端处于非局域网络中时,例如,受控端所处的网络为广域网,通过第二压缩算法对截屏图像进行压缩。
对图像进行压缩的算法有多种,采用不同的压缩算法,压缩效率以及压缩后得到的数据大小也不同,为了让压缩后的截屏图像与受控端所处的网络情况对应,实现更好地传输,还需对受控端所处的网路环境进行判断。在本 实施例中,第一压缩算法为高画质图像压缩算法,第二压缩算法为低画质图像压缩算法,即通过第一压缩算法压缩后的图像的画质高于通过第二压缩算法压缩后的图像的画质。图像在压缩过程中,难免会影响图像画质,高画质图像压缩算法为确保压缩后的图像画质高的一种图像压缩算法,使图像压缩后的画质损失尽可能小,例如,第一压缩算法可为采用哈夫曼编码的哈夫曼压缩算法。低画质图像压缩算法是将图像压缩后图像的画质会受到一定程度的影响,画质会比采用高画质压缩算法压缩得到的图像画质差,但是这种压缩算法速度快,可提高压缩效率,例如,第二压缩算法可为JPEG(Joint Photographic Experts Group,联合图象专家组)压缩算法等。
下面以一具体实施例对上述桌面截屏控制方法加以具体说明。
请参阅图4,首先,受控端收到远程控制端发送的远程桌面请求,受控端根据远程桌面请求,会在显示屏幕上显示虚拟桌面,即在受控端呈现桌面虚拟效果。
受控端根据远程桌面请求,判断自身系统环境中是否安装显卡驱动,如果没有安装显卡驱动则采用GDI截屏方式来采集桌面图像,如果安装了显卡驱动,受控端判断自身系统环境中的操作系统版本,如果操作系统版本不低于Windows8操作系统,采用DXGI截屏方式采集桌面图像,如果操作系统版本低于Windows8版本,采用DX截屏方式采集桌面图像。
受控端判断当前截屏帧率是否大于10帧/s,如果截屏帧率低于10帧/s,则受控端关闭桌面效果再执行后续步骤,如果截屏帧率大于10帧/s,则不作操作,执行后续步骤。
受控端判断当前所处网络场景是否为局域网,如果在局域网情况下,则采用高画质图像压缩算法即第一压缩算法压缩采集到的桌面图像。如果在非局域网例如广域网情况下,则采用低画质图像压缩算法即第二压缩算法来压缩采集到的桌面图像。最后,将压缩后的桌面图像发送给远程控制端进行显示,实现远程桌面。
通过上述桌面截屏控制方法进行受控端桌面截屏时,考虑了系统配置情况来动态地选择合适的截屏方式,即实现桌面图像采集自适应,极大程度提 高了截屏效率,且考虑了受控端所处网络状况等因素来动态地选择压缩方式,即图像压缩算法自适应,可满足不同网络状况,以提高压缩和传输效率。另外,还考虑了截屏帧率,截屏帧率的大小是和受控端中的CPU性能相关的,CPU性能越高,截屏帧率越大,当截屏帧率较低时,为了确保受控端CPU工作性能,受控端显示屏幕自适应,即关闭虚拟桌面。
请参阅图5,还提供一种实施方式的桌面截屏控制装置,包括:
请求获取模块510,用于获取远程桌面请求。
远程控制端需要通过远程桌面对受控端进行控制时,需要向受控端发送远程桌面请求,以请求受控端发送桌面截屏,以实现远程控制端对受控端桌面的远程显示,受控端接收远程控制端发送的远程桌面请求,以触发执行后续步骤。
检测模块530,用于根据远程桌面请求,检测系统配置。
受控端和远程控制端均分别对应处在不同的系统环境中,不同的系统环境对应不同的系统配置,当系统配置较好时,工作效率也会较高。例如,当受控端所处的系统环境中安装有显卡驱动,用于驱动显卡工作,则受控端在显示图像或播放视频时,可提高显示和播放的速度。受控端在接收到远程控制端发送的远程桌面请求后,对自身所处系统环境的系统配置进行检测,以便获知系统配置的情况,为后续截屏方式选择提供依据。
第一截屏模块550,用于当系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像。
第二截屏模块570,用于当系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像。
受控端截屏方式有多种,受控端在对系统配置检测完后,获知系统配置的情况后,可根据系统配置,选择不同的截屏方式对桌面进行截屏以获取截屏图像。在本实施例中,通过设置第一预设条件作为截屏方式选择的依据,即当系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像,缓存区存储有屏幕图像信息,即保存了和桌面相关的显存内容,实质上就是屏幕图像,通过访问缓存区就可以捕捉到 当前屏幕的内容。当系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像,即根据系统配置的情况选择不同的截屏方式对桌面进行截屏。访问缓存区捕捉屏幕图像的截屏方式的截屏速度快于屏幕快照的截屏方式的截屏速度,由于访问缓存区捕捉屏幕图像的截屏方式进行截屏是有截屏条件的,即访问缓存区捕捉屏幕图像的截屏方式只有在有显卡驱动对显卡可驱动情况下,也就是具有显存即缓存区对屏幕图像进行缓存时,访问缓存区捕捉屏幕图像的截屏方式才能访问缓存区中的屏幕图像进行截屏,只要当系统配置满足访问缓存区捕捉屏幕图像的截屏方式的截屏条件即第一预设条件,就通过访问缓存区捕捉屏幕图像的截屏方式进行截屏以提高截屏效率。当系统配置不满足第一预设条件时,也就是说系统配置不满足访问缓存区捕捉屏幕图像的截屏方式的截屏条件,此时,若再通过访问缓存区捕捉屏幕图像的截屏方式进行截屏会导致截屏效率极低,此时,就通过屏幕快照的截屏方式进行截屏,以提高截屏效率。
发送块590,用于发送截屏图像。
受控端根据系统配置情况选择对应的截屏方式进行桌面截屏获得截屏图像后,将截屏图像发送给远程控制端,远程控制端接收到截屏图像后进行显示,实现远程桌面功能。
上述桌面截屏控制装置,首先获取远程桌面请求,根据远程桌面请求,检测系统配置;当系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像;当系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像,发送截屏图像。通过上述判断系统配置是否满足第一预设条件,来选择不同的截屏方式,即满足时,表示系统配置满足了一定的条件,可支持第一预设条件对应的截屏方式进行截屏,即直接访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,也就是说直接访问缓存区中的内容就可以捕捉到屏幕图像以获得截屏图像,无需通过拍照这种程序进行桌面截屏,提高截屏效率。不满足时,表示系统配置没能满足第一预设条件对应的截屏方式进行截屏的条件,若使用访问缓存区捕捉屏幕图像的截屏方式进行截屏,会由于没有满足通过访问缓 存区捕捉屏幕图像的截屏方式进行截屏的条件而导致截屏效率极低,此时,通过屏幕快照的进行桌面截屏,以提高截屏效率,从而,不再是通过单一的截屏方式对桌面进行截屏,而是根据系统配置的情况选择对应的截屏方式进行截屏,可有效提高截屏效率。
在本实施例中,系统配置包括显卡驱动信息,第一预设条件为显卡驱动信息不为空,也就是表示受控端有安装显卡驱动以驱动显卡,也就是具有显卡驱动驱动显卡使显存即缓存区对屏幕图像进行缓存时,采用访问缓存区捕捉屏幕图像的截屏方式进行截屏。其中访问缓存区捕捉屏幕图像的截屏方式包括DX(Direct eXtension,多媒体编程接口)截屏方式和DXGI(Directx Graphics Infrastructure,图形的基础设施)截屏方式,屏幕快照的截屏方式包括GDI(GraphicsDeviceInterface,图形设备接口)截屏方式。
受控端在接收远程桌面请求后,对显卡驱动信息进行检测,即是对系统环境中是否安装有显卡驱动进行检测,当安装有显卡驱动时,可检测到有显卡驱动信息,即显卡驱动信息不为空,若没有安装显卡驱动,在系统环境中没有显卡驱动信息,则显卡驱动信息为空,检测不到显卡驱动信息。当显卡驱动信息不为空时,表示受控端的系统配置满足第一预设条件,通过DX截屏方式或DXGI截屏方式进行桌面截屏获得截屏图像,当显卡驱动信息为空时,表示受控端的系统配置不满足第一预设条件,通过GDI截屏方式进行桌面截屏获得截屏图像。
请参阅图6,在其中一个实施例中,第一截屏模块650包括:
第一截屏单元651,用于当系统配置满足第一预设条件,且不满足第二预设条件时,通过DX截屏方式进行桌面截屏,获得截屏图像。
第二截屏单元653,用于当系统配置满足第一预设条件,且满足第二预设条件时,通过DXGI截屏方式进行桌面截屏,获得截屏图像。
为了进一步确定系统配置的情况,以选择截屏方式进行桌面截屏,提高截屏效率,在系统配置满足第一预设条件情况下,还需对系统配置是否满足第二预设条件进行判断,当不满足第二预设条件时,通过DX截屏方式进行桌面截屏,当满足第二预设条件时,通过DXGI截屏方式进行桌面截屏。通 过上述进一步地对系统配置的判断,可进一步获知受控端所处系统环境的好坏,更明确地选择与系统配置情况匹配的截屏方式进行截屏,可进一步提高截屏效率。
在本实施例中,系统配置还包括操作系统版本信息,第二预设条件为操作系统版本信息不低于Windows8。即对系统配置进行检测,获知受控端所处系统环境的操作系统的版本,即可获知操作系统版本信息,在系统配置满足第一预设条件,即安装显卡驱动的情况下,判断操作系统版本,当操作系统版本信息低于Windows8时,可通过DX截屏方式进行桌面截屏,当操作系统版本信息不低于Windows8时,可通过DXGI截屏方式进行桌面截屏,获得截屏图像。
请参阅图7,在其中一个实施例中,还包括:
帧率获取模块781,用于获取截屏帧率。
第一压缩模块783,用于当截屏帧率不低于预设速率时,对截屏图像进行压缩。
第二压缩模块785,用于当截屏帧率低于预设速率时,关闭桌面虚拟效果,并对截屏图像进行压缩。
由于受控端自身软硬件配置或采用的截屏方式不同,受控端截屏帧率也会不同,其中,截屏帧率为截屏时每秒获得的图像帧的数量。为了提高截屏图像传送至远程控制端的速度,对截屏图像进行压缩,以减小传输数据的大小。然而,受控端在接收远程控制端发送的远程桌面请求时,根据远程桌面请求会在桌面显示虚拟桌面,即受控端会在桌面显示虚拟效果,当截屏帧率较低时,为了提高受控端工作效率,关闭虚拟桌面,即会关闭桌面虚拟效果,减少受控端的工作量,再进行截屏图像压缩。在本实施例中,预设速率为每秒10帧。
在其中一个实施例中,第一压缩模块783以及第二压缩模块785,均还用于当处于局域网络中时,通过第一压缩算法对截屏图像进行压缩;当处于非局域网络中时,通过第二压缩算法对截屏图像进行压缩。
也就是说,当截屏帧率不低于预设速率,且处于局域网络中时,通过第 一压缩算法对截屏图像进行压缩。类似地,当截屏帧率低于预设速率,且处于局域网络中时,关闭虚拟桌面,也通过第一压缩算法对截屏图像进行压缩。无论截屏帧率是否低于预设速率,只要受控端是处于局域网络中,采用第一压缩算法进行压缩。
当截屏帧率不低于预设速率,且处于非局域网络中时,通过第二压缩算法对截屏图像进行压缩。类似地,当截屏帧率低于预设速率,且处于非局域网络中时,关闭虚拟桌面,通过第二压缩算法对截屏图像进行压缩。无论截屏帧率是否低于预设速率,只要受控端是处于非局域网络中,采用第二压缩算法进行压缩。
也就是说,受控端进行桌面截屏,需要判断受控端所处的网路环境,当受控端处于局域网络中时,即受控端连接的网络为局域网,与远程控制端通过局域网通信,通过第一压缩算法对截屏图像进行压缩。当受控端处于非局域网络中时,例如,受控端所处的网络为广域网,通过第二压缩算法对截屏图像进行压缩。
对图像进行压缩的算法有多种,采用不同的压缩算法,压缩效率以及压缩后得到的数据大小也不同,为了让压缩后的截屏图像与受控端所处的网络情况对应,实现更好地传输,还需对受控端所处的网路环境进行判断。在本实施例中,第一压缩算法为高画质图像压缩算法,第二压缩算法为低画质图像压缩算法,即通过第一压缩算法压缩后的图像的画质高于通过第二压缩算法压缩后的图像的画质。图像在压缩过程中,难免会影响图像画质,高画质图像压缩算法为确保压缩后的图像画质高的一种图像压缩算法,使图像压缩后的画质损失尽可能小,例如,第一压缩算法可为采用哈夫曼编码的哈夫曼压缩算法。低画质图像压缩算法是将图像压缩后图像的画质会受到一定程度的影响,画质会比采用高画质压缩算法压缩得到的图像画质差,但是这种压缩算法速度快,可提高压缩效率,例如,第二压缩算法可为JPEG(Joint Photographic Experts Group,联合图象专家组)压缩算法等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技 术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (11)

  1. 一种桌面截屏控制方法,其特征在于,包括以下步骤:
    获取远程桌面请求;
    根据所述远程桌面请求,检测系统配置;
    当所述系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像;
    当所述系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像;
    发送所述截屏图像。
  2. 根据权利要求1所述的桌面截屏控制方法,其特征在于,所述系统配置包括显卡驱动信息,所述第一预设条件为所述显卡驱动信息不为空。
  3. 根据权利要求2所述的桌面截屏控制方法,其特征在于,所述访问缓存区捕捉屏幕图像的截屏方式包括DX截屏方式以及DXGI截屏方式,所述屏幕拍照的截屏方式包括GDI截屏方式。
  4. 根据权利要求3所述的桌面截屏控制方法,其特征在于,所述当所述系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像的步骤包括:
    当所述系统配置满足第一预设条件,且不满足第二预设条件时,通过所述DX截屏方式进行桌面截屏,获得所述截屏图像;
    当所述系统配置满足所述第一预设条件,且满足第二预设条件时,通过所述DXGI截屏方式进行桌面截屏,获得所述截屏图像。
  5. 根据权利要求4所述的桌面截屏控制方法,其特征在于,所述系统配置包括操作系统版本信息,所述第二预设条件为所述操作系统版本信息不低于Windows8。
  6. 根据权利要求1-5任意一项所述的桌面截屏控制方法,其特征在于,所述发送所述截屏图像的步骤之前还包括:
    获取截屏帧率;
    当所述截屏帧率不低于预设速率时,对所述截屏图像进行压缩;
    当所述截屏帧率低于预设速率时,关闭桌面虚拟效果,并对所述截屏图像进行压缩。
  7. 根据权利要求6所述的桌面截屏控制方法,其特征在于,对所述截屏图像进行压缩包括步骤:
    当处于局域网络中时,通过第一压缩算法对所述截屏图像进行压缩;
    当处于非局域网络中时,通过第二压缩算法对所述截屏图像进行压缩。
  8. 一种桌面截屏控制装置,其特征在于,包括:
    请求获取模块,用于获取远程桌面请求;
    检测模块,用于根据所述远程桌面请求,检测系统配置;
    第一截屏模块,用于当所述系统配置满足第一预设条件时,通过访问缓存区捕捉屏幕图像的截屏方式进行桌面截屏,获得截屏图像;
    第二截屏模块,用于当所述系统配置不满足第一预设条件时,通过屏幕快照的截屏方式进行桌面截屏,获得截屏图像;
    发送模块,用于发送所述截屏图像。
  9. 根据权利要求8所述的桌面截屏控制装置,其特征在于,所述系统配置包括显卡驱动信息,所述第一预设条件为所述显卡驱动信息不为空。
  10. 根据权利要求9所述的桌面截屏控制装置,其特征在于,所述访问缓存区捕捉屏幕图像的截屏方式包括DX截屏方式以及DXGI截屏方式,所述屏幕拍照的截屏方式包括GDI截屏方式;
    所述第一截屏模块包括:
    第一截屏单元,用于当所述系统配置满足第一预设条件,且不满足第二预设条件时,通过所述DX截屏方式进行桌面截屏,获得所述截屏图像;
    第二截屏单元,用于当所述系统配置满足所述第一预设条件,且满足第二预设条件时,通过所述DXGI截屏方式进行桌面截屏,获得所述截屏图像。
  11. 根据权利要求10所述的桌面截屏控制装置,其特征在于,所述系统配置包括操作系统版本信息,所述第二预设条件为所述操作系统版本信息不低于Windows8。
PCT/CN2016/113176 2016-08-19 2016-12-29 桌面截屏控制方法及系统 WO2018032696A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610695751.9 2016-08-19
CN201610695751.9A CN106302760B (zh) 2016-08-19 2016-08-19 桌面截屏控制方法及系统

Publications (1)

Publication Number Publication Date
WO2018032696A1 true WO2018032696A1 (zh) 2018-02-22

Family

ID=57661005

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113176 WO2018032696A1 (zh) 2016-08-19 2016-12-29 桌面截屏控制方法及系统

Country Status (2)

Country Link
CN (1) CN106302760B (zh)
WO (1) WO2018032696A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351093A (zh) * 2020-10-30 2021-02-09 深圳Tcl新技术有限公司 截屏图像共享方法、装置、设备及计算机可读存储介质
CN114422829A (zh) * 2022-01-30 2022-04-29 杭州雾联科技有限公司 一种hdr云视频处理方法、系统及设备
CN117435112A (zh) * 2023-12-20 2024-01-23 摩尔线程智能科技(成都)有限责任公司 数据处理方法、系统及装置、电子设备和存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108134827A (zh) * 2017-12-20 2018-06-08 联想(北京)有限公司 一种远程控制方法及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799383A (zh) * 2012-07-18 2012-11-28 腾讯科技(深圳)有限公司 移动终端屏幕截图方法、屏幕截图装置
CN103473035A (zh) * 2012-06-07 2013-12-25 腾讯科技(深圳)有限公司 截屏方法和装置
CN104506909A (zh) * 2014-12-19 2015-04-08 恬家(上海)信息科技有限公司 一种捕屏遥控方法及装置
US20150212978A1 (en) * 2014-01-24 2015-07-30 Alibaba Group Holding Limited System and method for implementing screen capture
CN104978117A (zh) * 2014-04-11 2015-10-14 阿里巴巴集团控股有限公司 一种实现截屏的方法和装置
CN105117337A (zh) * 2015-08-26 2015-12-02 小米科技有限责任公司 应用调试方法、客户端及调试平台
CN105988688A (zh) * 2016-01-22 2016-10-05 腾讯科技(深圳)有限公司 一种截图的方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048062A1 (en) * 2004-09-01 2006-03-02 Adamson Dale F Software and method providing graphic user interface for graphics adapter configuration
CN103414890B (zh) * 2013-07-08 2016-12-28 宇龙计算机通信科技(深圳)有限公司 远程桌面的实现方法及装置
CN105589667B (zh) * 2014-10-22 2020-01-10 阿里巴巴集团控股有限公司 对显示设备的显示图像进行截屏的方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473035A (zh) * 2012-06-07 2013-12-25 腾讯科技(深圳)有限公司 截屏方法和装置
CN102799383A (zh) * 2012-07-18 2012-11-28 腾讯科技(深圳)有限公司 移动终端屏幕截图方法、屏幕截图装置
US20150212978A1 (en) * 2014-01-24 2015-07-30 Alibaba Group Holding Limited System and method for implementing screen capture
CN104978117A (zh) * 2014-04-11 2015-10-14 阿里巴巴集团控股有限公司 一种实现截屏的方法和装置
CN104506909A (zh) * 2014-12-19 2015-04-08 恬家(上海)信息科技有限公司 一种捕屏遥控方法及装置
CN105117337A (zh) * 2015-08-26 2015-12-02 小米科技有限责任公司 应用调试方法、客户端及调试平台
CN105988688A (zh) * 2016-01-22 2016-10-05 腾讯科技(深圳)有限公司 一种截图的方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351093A (zh) * 2020-10-30 2021-02-09 深圳Tcl新技术有限公司 截屏图像共享方法、装置、设备及计算机可读存储介质
CN114422829A (zh) * 2022-01-30 2022-04-29 杭州雾联科技有限公司 一种hdr云视频处理方法、系统及设备
CN117435112A (zh) * 2023-12-20 2024-01-23 摩尔线程智能科技(成都)有限责任公司 数据处理方法、系统及装置、电子设备和存储介质
CN117435112B (zh) * 2023-12-20 2024-04-05 摩尔线程智能科技(成都)有限责任公司 数据处理方法、系统及装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN106302760A (zh) 2017-01-04
CN106302760B (zh) 2019-07-09

Similar Documents

Publication Publication Date Title
WO2018032696A1 (zh) 桌面截屏控制方法及系统
US7684483B2 (en) Method and apparatus for digitizing and compressing remote video signals
WO2015101092A1 (zh) 一种传输机制调整方法和服务端、客户端
CN107145340B (zh) 虚拟桌面图像传输方法及装置
WO2021068598A1 (zh) 共享屏幕的编码方法、装置、存储介质及电子设备
WO2017193821A1 (zh) 云桌面图像处理方法、服务器、客户端及计算机存储介质
CN105338323A (zh) 一种视频监控方法及装置
JP7186877B2 (ja) 映像デコーディング制御方法、装置、電子機器及び記憶媒体
US11627369B2 (en) Video enhancement control method, device, electronic device, and storage medium
US20200267396A1 (en) Human visual system adaptive video coding
US10237318B2 (en) Electronic device and method for encoding image data thereof
WO2017202175A1 (zh) 一种视频压缩方法、装置及电子设备
WO2013134936A1 (zh) 屏幕录制方法、屏幕录制控制方法及装置
US11671604B1 (en) Content aware uniform quality for quality-defined variable bitrate encoding of videos
US11051042B2 (en) Image processing device and method
US20170272545A1 (en) Method and system for transmitting remote screen
CN110740352B (zh) 显卡透传环境下基于spice协议的差异图像显示方法
KR101742258B1 (ko) 웹 기반 가상 데스크탑 프로토콜을 이용한 컨텐츠 제공 방법 및 장치
WO2022057362A1 (zh) 图像处理方法及装置、云真机系统、存储介质和电子设备
US20140099039A1 (en) Image processing device, image processing method, and image processing system
CN107423187B (zh) 一种屏幕监控方法、装置及系统
US20200106821A1 (en) Video processing apparatus, video conference system, and video processing method
CN112422876A (zh) 图像处理方法和服务器
WO2020038071A1 (zh) 视频增强控制方法、装置、电子设备及存储介质
WO2020107970A1 (zh) 视频解码方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16913448

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16913448

Country of ref document: EP

Kind code of ref document: A1