Resolution Setting Method, Apparatus, Device, Storage Medium and Program Product
By receiving the resolution to be set by the client and sending it to the graphical interface service through the IPC interface, the problem of difficulty in adjusting the resolution of the cloud desktop is solved, and the resolution setting of the client for the cloud desktop is realized, which improves the user experience.
Patent Information
- Application Number
- CN202111050277.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-08
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2041-09-08
AI Technical Summary
In the existing cloud desktop technology, users find it difficult to adjust the resolution by themselves when using cloud desktops, which cannot meet personalized usage needs.
By receiving the resolution to be set by the client and using the inter-process communication IPC interface, it is sent to the graphical interface service, so that the graphical interface service sets the resolution of the cloud desktop according to the resolution to be set.
The function of setting the resolution of the cloud desktop on the client is realized, meeting the personalized needs of users and improving the user experience.
Smart Images

Figure CN113778600B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular to the field of cloud desktop technologies. Specifically, the present disclosure relates to a resolution setting method, apparatus, device, storage medium, and program product. Background Art
[0002] With the rapid development of cloud computing technologies, cloud desktops are applied in more and more scenarios, such as school teaching scenarios and daily office scenarios. Cloud desktop technologies can project the content of a cloud server onto a local desktop, providing users with an experience almost the same as that of the server.
[0003] The resolution of a cloud desktop is pre-set on the cloud server. However, when a user uses a cloud desktop, the user has his own resolution requirements. At this time, how to adjust the resolution of the cloud desktop on the client is very important for meeting the user's usage requirements. Summary of the Invention
[0004] The present disclosure provides a resolution setting method, apparatus, device, storage medium, and program product.
[0005] According to one aspect of the present disclosure, a resolution setting method is provided, including:
[0006] Receiving a resolution to be set sent by a client;
[0007] Sending the resolution to be set to a graphics interface service through an inter-process communication (IPC) interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set.
[0008] According to another aspect of the present disclosure, a resolution setting apparatus is provided, including:
[0009] A resolution-to-be-set receiving module, configured to receive a resolution to be set sent by a client;
[0010] A resolution-to-be-set sending module, configured to send the resolution to be set to a graphics interface service through an inter-process communication (IPC) interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set.
[0011] According to another aspect of the present disclosure, an electronic device is provided, including:
[0012] At least one processor; and
[0013] A memory communicatively connected to at least one processor; wherein,
[0014] The memory stores instructions executable by at least one processor. The instructions are executed by at least one processor, enabling the at least one processor to execute the resolution setting method according to any embodiment of the present disclosure.
[0015] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause a computer to execute the resolution setting method according to any embodiment of the present disclosure.
[0016] According to another aspect of the present disclosure, there is provided a computer program product including a computer program, where the computer program implements the resolution setting method according to any embodiment of the present disclosure when executed by a processor.
[0017] Embodiments of the present disclosure can implement resolution setting for a cloud desktop on a client side.
[0018] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understandable through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0020] Figure 1 is a schematic diagram of a resolution setting method provided according to an embodiment of the present disclosure;
[0021] Figure 2 is a schematic diagram of a resolution setting method provided according to an embodiment of the present disclosure;
[0022] Figure 3 is a schematic diagram of a resolution setting method provided according to an embodiment of the present disclosure;
[0023] Figure 4 is a schematic diagram of a resolution setting apparatus provided according to an embodiment of the present disclosure;
[0024] Figure 5 is a block diagram of an electronic device for implementing the resolution setting method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The following describes exemplary embodiments of the present disclosure in conjunction with the drawings. Various details of the embodiments of the present disclosure are included to assist understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0026] Figure 1 It is a flowchart of a resolution setting method disclosed according to an embodiment of the present disclosure. This embodiment can be applied to the situation where a communication connection is established between a client and the cloud. The method of this embodiment can be executed by a resolution setting device, which can be implemented in a software and / or hardware manner and is specifically configured in an electronic device with a certain data computing ability. The electronic device can be a client device or a server device. Examples of client devices include mobile phones, tablet computers, vehicle-mounted terminals, and desktop computers, etc.
[0027] S110. Receive the resolution to be set sent by the client.
[0028] In the embodiment of the present disclosure, the display control service deployed in the cloud receives the resolution to be set sent by the client through a pre-added resolution receiving interface. Among them, an interface for receiving the resolution is pre-added in the display control service. Correspondingly, an interface for sending the resolution is pre-added in the client to send the resolution to the display control service deployed in the cloud, and the client can also display options of multiple common resolutions to the user so that the user can set the resolution of the cloud desktop by selecting the resolution option. Exemplarily, the resolution options include 1280*720, 1920*1080, 2560*1440, etc.
[0029] S120. Send the resolution to be set to the graphics interface service through the IPC (Inter-Process Communication) interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set.
[0030] Among them, the graphics interface service is a service provided by the cloud operating system for cloud desktop image rendering and cloud desktop image output. The graphics interface service includes a resolution setting module for setting the resolution of the cloud desktop. Exemplarily, under the Linux operating system, the graphics interface service is Xserver, and the resolution setting module included in the X server is Xrandr.
[0031] In the embodiment of the present disclosure, IPC (Inter-Process Communication) communication between the display control service and the graphics interface service is pre-implemented. Specifically, an IPC interface is set in the graphics interface service, and the display control service can send the resolution to be set sent by the client to the graphics interface service through the IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set.
[0032] Exemplarily, the display control service under the Linux system receives the resolution to be set, which is 1920*1080, sent by the client. Then, the display control service sends the resolution to be set to the graphics interface service, i.e., the X server, through the IPC interface to instruct the X server to set the resolution of the cloud desktop to 1920*1080. Among them, the X server contains a resolution setting module, X randr, for setting the resolution of the cloud desktop. After receiving the resolution to be set sent by the display control service, the X server can directly call the interface of X randr to set the resolution.
[0033] The technical solution of the embodiment of the present disclosure receives the resolution to be set sent by the client, and then sends the resolution to be set to the graphics interface service through the inter-process communication IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set, achieving the effect of setting the resolution of the cloud desktop on the client.
[0034] Figure 2 It is a schematic diagram of a resolution setting in the embodiment of the present disclosure. Based on the above embodiment, it is further refined to provide the specific steps of sending the resolution to be set to the graphics interface service through the inter-process communication IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set, and the specific steps before sending the resolution to be set to the graphics interface service. The following combines Figure 2 A resolution setting method provided by the embodiment of the present disclosure is described as follows:
[0035] S210. Receive the resolution to be set sent by the client.
[0036] S220. Turn off the video encoder and the collector.
[0037] Among them, the video collector runs in the display control service in the cloud and is used to collect the video images provided by the graphics interface service. The encoder is used to encode the video images and transmit the encoded data to the client.
[0038] In the embodiments of the present disclosure, before setting the resolution, it is necessary to destroy the original FB (Frame Buffer), and reallocate memory for the FB of the new resolution. Therefore, before setting the resolution, the video encoder and the collector are turned off to destroy the original FB, so as to ensure that after the user adjusts the resolution, the server captures and encodes the video image to be displayed at the adjusted resolution. Correspondingly, the client decodes and displays the video image at the adjusted resolution, realizing a fast and smooth switch of the resolution and improving the user experience. Among them, FB is an interface provided by the Linux system for the display device. It abstracts the display buffer and allows upper-layer application programs to directly read and write the display buffer in the graphics mode.
[0039] S230. Taking the resolution to be set as a parameter, call the IPC interface of the graphics interface service, so that the graphics interface service sets the resolution of the cloud desktop to the resolution to be set by calling the resolution setting module.
[0040] In the embodiments of the present disclosure, after turning off the video collector and the encoder, the display control service takes the resolution to be set as a parameter and calls the IPC interface of the graphics interface service to instruct the graphics interface service to set the resolution of the cloud desktop to the resolution to be set by calling the resolution setting module. Specifically, an IPC network communication client is implemented in the display control service, and the resolution to be set is sent to the graphics interface service through a datagram socket. Correspondingly, an IPC communication server is implemented in the graphics interface service to listen for the resolution to be set sent by the display control service through the datagram socket. Further, after receiving the resolution to be set, the graphics interface service adjusts the resolution by calling the resolution setting module. In the embodiments of the present disclosure, under the Linux system, the display control service and the graphics interface service communicate through the UDP (User Datagram Protocol) protocol based on the Unix domain, so that the communication between the display control service and the graphics interface service does not pass through the network card, which can improve the communication efficiency between the two. And by establishing IPC communication between the display control service and the graphics interface service provided by the system, after the display control service receives the resolution to be set sent by the client, it directly calls the graphics interface service to transfer the resolution to be set to the graphics interface service, so that the graphics interface service performs resolution setting, without the need to develop a separate underlying program for setting the resolution, reducing the development cost of the cloud desktop resolution setting function.
[0041] Among them, the resolution setting module first determines whether the to-be-set resolution obtained is legal, that is, whether the parameters provided by the graphics interface service conform to the set rules. When the to-be-set resolution is legal, it records the original resolution currently used, initializes the FB of the to-be-set resolution, reallocates memory for the FB of the to-be-set resolution, and at the same time destroys the FB of the original resolution. Finally, it redraws the image with the to-be-set resolution to obtain an image corresponding to the to-be-set resolution.
[0042] S240. According to the resolution adjustment feedback information obtained through the IPC interface, turn on the video encoder and the collector.
[0043] In the embodiments of the present disclosure, after the graphics interface service sets the resolution of the cloud desktop to the to-be-set resolution, it will send resolution adjustment feedback information to the display control service through the IPC interface. After receiving the resolution adjustment feedback information, the display control service will restart the video encoder and the collector to continue collecting and encoding the video image rendered by the graphics interface service, and push the video stream to the client to resume the video playback or image display of the client.
[0044] The technical solution of the embodiments of the present disclosure first receives the to-be-set resolution sent by the client, and turns off the video encoder and the collector. Then, taking the to-be-set resolution as a parameter, it calls the IPC interface of the graphics interface service, so that the graphics interface service sets the resolution of the cloud desktop to the to-be-set resolution by calling the resolution setting module. Finally, according to the resolution adjustment feedback information obtained through the IPC interface, it turns on the video encoder and the collector and continues to push the video to the client, realizing the setting of the resolution of the cloud desktop on the client.
[0045] Figure 3 It is a schematic diagram of a resolution setting in the embodiments of the present disclosure. Based on the above embodiments, it is further refined to provide the specific steps of receiving the to-be-set resolution sent by the client and the specific steps before sending the to-be-set resolution to the graphics interface service. The following combines Figure 3 A resolution setting method provided by the embodiments of the present disclosure is described as follows:
[0046] S310. Receive the to-be-set resolution from the client based on the TCP protocol.
[0047] In the embodiments of the present disclosure, the client and the display control service in the cloud communicate through the TCP (Transmission Control Protocol) protocol to achieve reliable communication between the two. The display control service receives the to-be-set resolution from the client based on the TCP protocol to adjust the resolution of the cloud desktop for the to-be-set resolution.
[0048] S320. Compare the to-be-set resolution with the original resolution of the cloud desktop. If the to-be-set resolution is different from the original resolution of the cloud desktop, perform the operation of S330.
[0049] In the embodiments of the present disclosure, after receiving the to-be-set resolution sent by the client, the display control service first needs to determine whether resolution setting is required. Only when resolution setting is required, will the to-be-set resolution be sent to the graphics interface service, avoiding re - setting the resolution when the to-be-set resolution is the same as the resolution currently used by the cloud desktop, which causes waste of network resources and system computing resources. Specifically, after receiving the to-be-set resolution, the display control service first obtains the current resolution of the cloud desktop, and then compares the to-be-set resolution with the current resolution. Only when the two are different, is it necessary to re - set the resolution. Specifically, when the to-be-set resolution is the same as the original resolution of the cloud desktop, no resolution setting is performed. When the to-be-set resolution is different from the original resolution of the cloud desktop, perform the operation of sending the to-be-set resolution to the graphics interface service, so that the graphics interface service adjusts the resolution of the cloud desktop according to the to-be-set resolution.
[0050] S330. Send the to-be-set resolution to the graphics interface service through the inter - process communication IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the to-be-set resolution.
[0051] The technical solution of the embodiments of the present disclosure first receives the to-be-set resolution from the client based on the TCP protocol, compares the to-be-set resolution with the original resolution of the cloud desktop. When the to-be-set resolution is different from the original resolution of the cloud desktop, perform the operation of sending the to-be-set resolution to the graphics interface service. Finally, send the to-be-set resolution to the graphics interface service through the inter - process communication IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the to-be-set resolution, realizing the effect of setting the resolution of the cloud desktop on the client side.
[0052] According to the embodiments of the present disclosure, Figure 4 is the structural diagram of the resolution setting device in the embodiments of the present disclosure. The embodiments of the present disclosure are applicable to the case where a communication connection is established between the client and the cloud. The device is implemented by software and / or hardware and is specifically configured in an electronic device with a certain data computing ability.
[0053] As Figure 4 shown, a resolution setting device 400 includes: a to-be-set resolution receiving module 410 and a to-be-set resolution sending module 420; wherein,
[0054] The to-be-set resolution receiving module 410 is used to receive the to-be-set resolution sent by the client;
[0055] A resolution to be set sending module 420, configured to send the resolution to be set to a graphics interface service through an inter - process communication (IPC) interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set.
[0056] The technical solution of the embodiments of the present disclosure receives the resolution to be set sent by a client, and sends the resolution to be set to the graphics interface service through an IPC interface, enabling the graphics interface service to set the resolution of the cloud desktop according to the resolution to be set, achieving the effect of setting the resolution of the cloud desktop on the client side.
[0057] Further, the resolution to be set sending module 420 is specifically configured to:
[0058] Taking the resolution to be set as a parameter, call the IPC interface of the graphics interface service, so that the graphics interface service sets the resolution of the cloud desktop to the resolution to be set by calling a resolution setting module.
[0059] Further, the resolution setting device 400 further includes:
[0060] An encoder closing module, configured to close a video encoder and a collector before sending the resolution to be set to the graphics interface service;
[0061] An encoder opening module, configured to open the video encoder and the collector according to resolution adjustment feedback information obtained through the IPC interface after sending the resolution to be set to the graphics interface service.
[0062] Further, the resolution setting device 400 further includes:
[0063] A resolution judgment module, configured to compare the resolution to be set with the original resolution of the cloud desktop before sending the resolution to be set to the graphics interface service;
[0064] In the case where the resolution to be set is different from the original resolution of the cloud desktop, perform the operation of sending the resolution to be set to the graphics interface service.
[0065] Further, the resolution to be set receiving module 410 is specifically configured to:
[0066] Receive the resolution to be set from the client based on the TCP protocol.
[0067] The resolution setting device provided by the embodiments of the present disclosure can execute the resolution setting method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
[0068] In the technical solution of the present disclosure, the processing of the user's personal information, such as collection, storage, use, processing, transmission, provision, and disclosure, complies with the provisions of relevant laws and regulations and does not violate public order and good customs.
[0069] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0070] Figure 5 A schematic block diagram of an exemplary electronic device 500 that can be used to implement the embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0071] As Figure 5 shown, the device 500 includes a computing unit 501 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0072] A plurality of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a magnetic disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0073] The computing unit 501 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 executes the various methods and processes described above, such as the resolution setting method. For example, in some embodiments, the resolution setting method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the resolution setting method described above can be executed. Alternatively, in other embodiments, the computing unit 501 can be configured to execute the resolution setting method by any other suitable means (e.g., by means of firmware).
[0074] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), system on a chip systems (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0075] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to the processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0076] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0077] To provide for interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic, speech, or tactile input).
[0078] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0079] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is generated by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
[0080] It should be understood that the various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps described in the present disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and no limitation is imposed herein.
[0081] The above specific embodiments do not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub - combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present disclosure shall be included within the protection scope of the present disclosure.
Claims
1. A resolution setting method, including: Receiving the resolution to be set sent by the client; Closing the video encoder and the collector to destroy the original frame buffer and re-allocate memory for the frame buffer of the new resolution; Sending the resolution to be set to the graphics interface service through the inter-process communication IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set, including: the display control service deployed in the cloud sends the resolution to be set to the graphics interface service through the IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set; wherein, the inter-process communication IPC interface is set in the graphics interface service; Starting the video encoder and the collector according to the resolution adjustment feedback information obtained through the IPC interface.
2. The resolution setting method according to claim 1, wherein, Sending the resolution to be set to the graphics interface service through the inter-process communication IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set, including: Taking the resolution to be set as a parameter and calling the IPC interface of the graphics interface service, so that the graphics interface service sets the resolution of the cloud desktop to the resolution to be set by calling the resolution setting module.
3. The resolution setting method according to claim 1, wherein, Before sending the resolution to be set to the graphics interface service, it further includes: Comparing the resolution to be set with the original resolution of the cloud desktop; Performing the operation of sending the resolution to be set to the graphics interface service when the resolution to be set is different from the original resolution of the cloud desktop.
4. The resolution setting method according to claim 1, wherein, Receiving the resolution to be set sent by the client includes: Receiving the resolution to be set from the client based on the TCP protocol.
5. A resolution setting device, including: A resolution to be set receiving module, used for receiving the resolution to be set sent by the client; An encoder closing module, used for closing the video encoder and the collector to destroy the original frame buffer and re-allocate memory for the frame buffer of the new resolution; A resolution to be set sending module, used for sending the resolution to be set to the graphics interface service through the inter-process communication IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set, including: the display control service deployed in the cloud sends the resolution to be set to the graphics interface service through the IPC interface, so that the graphics interface service sets the resolution of the cloud desktop according to the resolution to be set; wherein, the inter-process communication IPC interface is set in the graphics interface service; An encoder starting module, used for starting the video encoder and the collector according to the resolution adjustment feedback information obtained through the IPC interface.
6. The resolution setting device according to claim 5, wherein, The resolution to be set sending module is specifically used for: Taking the to-be-set resolution as a parameter, call the IPC interface of the graphics interface service, so that the graphics interface service sets the resolution of the cloud desktop to the to-be-set resolution by calling the resolution setting module.
7. The resolution setting device according to claim 5, further comprises: a resolution judgment module, configured to compare the to-be-set resolution with the original resolution of the cloud desktop before sending the to-be-set resolution to the graphics interface service; In the case where the to-be-set resolution is different from the original resolution of the cloud desktop, perform the operation of sending the to-be-set resolution to the graphics interface service.
8. The resolution setting device according to claim 5, wherein, the to-be-set resolution receiving module is specifically configured to: Receive the to-be-set resolution from the client based on the TCP protocol.
9. An electronic device, comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the resolution setting method according to any one of claims 1-4.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein, the computer instructions are used to cause the computer to execute the resolution setting method according to any one of claims 1-4.
11. A computer program product, comprising computer programs / instructions, and the computer programs / instructions, when executed by a processor, implement the method for setting the resolution according to any one of claims 1-4.
Citation Information
Patent Citations
Android system service terminal and remote desktop image redirection method and system
CN106873932A
Method for accessing multiple displays to cloud desktop and related equipment
CN112416483A