Dark watermark adding method and device for cloud game system, equipment and medium
By determining the method of adding dark watermarks based on the desktop status of the cloud host, and adding watermark information to the cloud game system using transparent layers or temporary rendering surfaces, the problems of information leakage and copyright protection in the cloud game system are solved, and effective information protection is achieved and improve brand image.
Patent Information
- Application Number
- CN202411294688.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-20
AI Technical Summary
The existing cloud gaming system lacks dark watermark technology and cannot effectively prevent information leakage and copyright disputes, especially in an independent host environment.
By obtaining the watermark information issued by the user, determine the target addition method from preset multiple dark watermark addition methods based on the current desktop status of the cloud host (full screen or non-full screen), and add the watermark information to the transparent layer or temporary rendering surface. Cloud host, implements the addition and parsing of dark watermarks.
Effectively prevent information leakage, enhance corporate brand image, provide copyright protection, and make up for the gap in research on cloud gaming system dark watermark technology in existing technology.
Smart Images

Figure CN119167335A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud gaming technology, and in particular to a method, device, equipment and medium for adding a dark watermark to a cloud gaming system. Background Art
[0002] The cloud gaming system is a remote gaming implementation method based on cloud computing, cloud control, rendering and network transmission. It uploads computing power, and the game actually runs on the host side of the cloud edge computing node, rather than on the user's local client. By capturing the screen data of the remote host desktop and encoding it to the client, the client presents the game sound and picture locally by receiving the audio and video data sent by the host. At the same time, the user sends the game operation control data to the host to control the game.
[0003] In order to prevent others from taking screenshots or taking photos of the desktop screen, which may lead to company copyright disputes or leak sensitive company information, cloud gaming systems, such as remote desktop systems, are required to have a watermark function. However, current cloud desktop watermark technologies all add watermarks to the remote desktop of the virtual machine, and current cloud desktop watermark technologies are generally clear watermark technologies, and there is a lack of research on dark watermark technologies for independent hosts in cloud gaming systems. Therefore, the above problems need to be solved by those skilled in the art. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a dark watermark adding method, device, equipment and medium for a cloud gaming system, which can prevent information leakage and provide copyright protection. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a method for adding a dark watermark to a cloud gaming system, comprising:
[0006] Get the watermark information sent by the user;
[0007] Determine the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud game state and a full-screen non-cloud game state, and the non-full-screen state includes a non-full-screen cloud game state and a non-full-screen non-cloud game state;
[0008] A target adding method is determined from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, and the watermark information is added to the cloud host using the target adding method.
[0009] Optionally, the desktop state is the non-full screen state, and determining a target adding method from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host includes:
[0010] The target adding method of adding the watermark information based on the created transparent layer is determined from the preset multiple dark watermark adding methods according to the desktop status of the cloud host.
[0011] Optionally, adding the watermark information to the cloud host by using the target adding method includes:
[0012] Creating a target transparent layer, setting the transparency value of the watermark information to a target value, and then adding the watermark information to the target transparent layer to obtain a dark watermark layer;
[0013] The layer blending modes of the dark watermark layer and other layers of the current desktop are set to a penetration mode, and the dark watermark layer is placed on the top layer of each layer.
[0014] Optionally, after adding the watermark information to the cloud host by using the target adding method, the method further includes:
[0015] The current desktop is layered according to the transparency value to obtain the dark watermark layer, and the watermark information in the dark watermark layer is marked as a target color to achieve watermark resolution.
[0016] Optionally, the desktop state is the full-screen state, and determining a target adding method from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host includes:
[0017] The target adding method of adding the watermark information based on the created temporary rendering surface is determined from the preset multiple dark watermark adding methods according to the desktop state of the cloud host.
[0018] Optionally, adding the watermark information to the cloud host by using the target adding method includes:
[0019] Creating a target temporary rendering surface; wherein the length and width of the target temporary rendering surface are consistent with the length and width of the current desktop of the cloud host;
[0020] Creating a target texture, and loading the watermark information into the target texture;
[0021] The target texture is rendered to the target temporary rendering surface using a shader and a vertex buffer, and the target temporary rendering surface is copied to the current desktop.
[0022] Optionally, before copying the target temporary rendering surface to the current desktop, the method further includes:
[0023] The current desktop is determined as a rendering target, and the game data is rendered to the current desktop using the shader and the vertex buffer.
[0024] In a second aspect, the present application discloses a dark watermark adding device for a cloud gaming system, comprising:
[0025] A watermark information acquisition module is used to obtain the watermark information sent by the user;
[0026] A desktop state determination module, used to determine the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud game state and a full-screen non-cloud game state, and the non-full-screen state includes a non-full-screen cloud game state and a non-full-screen non-cloud game state;
[0027] The watermark information adding module is used to determine a target adding method from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, and use the target adding method to add the watermark information to the cloud host.
[0028] In a third aspect, the present application discloses an electronic device, comprising:
[0029] Memory, used to store computer programs;
[0030] A processor is used to execute the computer program to implement the dark watermark adding method of the cloud gaming system disclosed above.
[0031] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the dark watermark adding method of the cloud gaming system disclosed above is implemented.
[0032] It can be seen that the present application discloses a method for adding a dark watermark to a cloud gaming system, including: obtaining watermark information sent by a user; determining the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud gaming state and a full-screen non-cloud gaming state, and the non-full-screen state includes a non-full-screen cloud gaming state and a non-full-screen non-cloud gaming state; determining a target adding method from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, and using the target adding method to add the watermark information to the cloud host. In summary, the present application proposes a method for adding a dark watermark to a cloud host where a cloud gaming system is located. The core of the application is to determine a method for adding a watermark according to the desktop status of the current desktop, and to add watermark information according to the corresponding method. Specifically, the desktop status includes a full-screen status and a non-full-screen status. The full-screen status includes a full-screen cloud gaming status and a full-screen non-cloud gaming status. The non-full-screen status includes a non-full-screen cloud gaming status and a non-full-screen non-cloud gaming status. In this way, not only the brand image of the enterprise is enhanced, but also information leakage can be prevented, copyright protection can be provided, and the research gap in the existing technology for dark watermark technology for cloud gaming systems can be filled. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0034] Figure 1 This is a flow chart of a method for adding a dark watermark to a cloud gaming system disclosed in this application;
[0035] Figure 2 This is a flowchart of a method for adding a dark watermark to a specific cloud gaming system disclosed in this application;
[0036] Figure 3 This is a schematic diagram of the structure of a dark watermark adding device for a cloud gaming system disclosed in this application;
[0037] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] In order to prevent others from taking screenshots or photos of the desktop screen, which may lead to company copyright disputes or leak sensitive company information, cloud gaming systems are required to have a watermark function for remote desktop systems. However, current cloud desktop watermarking technologies all add watermarks to the remote desktop of the virtual machine, and current cloud desktop watermarking technologies are generally clear watermarking technologies, and there is a lack of research on dark watermarking technologies for independent hosts in cloud gaming systems.
[0040] To this end, the embodiment of the present application proposes a dark watermark adding solution for a cloud gaming system, which can prevent information leakage and provide copyright protection.
[0041] The present application embodiment discloses a method for adding a dark watermark to a cloud gaming system. Figure 1 and Figure 2 As shown, the method includes:
[0042] Step S11: Obtain the watermark information sent by the user.
[0043] In this embodiment, the user sends watermark information through the web (network) according to his own needs. The watermark information includes watermark type, watermark color, font, watermark position, etc. The watermark type includes dark watermark, watermark color includes all colors supported by the system such as red, green, blue, etc., fonts include all fonts supported by the system such as Songti and Kaiti, and the watermark position is mainly any coordinate of the display screen such as center and upper left.
[0044] Step S12: Determine the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud game state and a full-screen non-cloud game state, and the non-full-screen state includes a non-full-screen cloud game state and a non-full-screen non-cloud game state.
[0045] In this embodiment, the desktop state of the current desktop of the cloud host is determined. It can be understood that the desktop state includes a full-screen state and a non-full-screen state. The full-screen state includes a full-screen cloud game state and a full-screen non-cloud game state. The non-full-screen state includes a non-full-screen cloud game state and a non-full-screen non-cloud game state.
[0046] Step S13: determining a target adding method from a plurality of preset dark watermark adding methods according to the desktop status of the cloud host, and using the target adding method to add the watermark information to the cloud host.
[0047] In this embodiment, the watermark adding method is determined according to the desktop status of the current desktop, and the watermark information is added according to the corresponding adding method, which not only enhances the brand image of the enterprise, but also prevents information leakage, provides copyright protection, and fills the research gap of the existing technology on the dark watermark technology of the cloud gaming system.
[0048] In a specific implementation, if the desktop state is a non-full screen state, a target adding method is determined from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, including: determining the target adding method of adding the watermark information based on a created transparent layer from the plurality of preset dark watermark adding methods according to the desktop state of the cloud host.
[0049] That is to say, when the desktop is a normal desktop and there is no full-screen window, watermark information can be added by adding a transparent layer. Specifically, a target transparent layer is created, and the transparency value of the watermark information is set to the target value, and then the watermark information is added to the target transparent layer to obtain a dark watermark layer. Further, the layer blending mode of the dark watermark layer and other layers of the current desktop is set to the penetration mode, and the dark watermark layer is placed on the top layer of each layer, wherein the target value can be 1. The following is the code implementation process of adding watermarks in non-full-screen state:
[0050] set window transparency
[0051] SetLayeredWindowAttributes(hWnd, BACKGROUND_COLOR, m_mark_transparent_, flag_);
[0052] / / Remove borders and title blocks
[0053] SetWindowLongW(hWnd, GWL_STYLE, GetWindowLongW(hWnd, GWL_STYLE) & ~WS_CAPTION);
[0054] / / Set the key-rat event penetration
[0055] SetWindowLongW(hWnd, GWL_EXSTYLE, (GetWindowLongW(hWnd, GWL_EXSTYLE))| WS_EX_LAYERED | WS_EX_TRANSPARENT);
[0056] / / TOPMOST
[0057] SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
[0058] Furthermore, when the client parses the watermark, it first layers the current desktop image according to the transparency value to obtain a dark watermark layer with a transparency value of 1, and marks the watermark information in the dark watermark layer as a target color, such as red, blue and other obvious colors, to achieve watermark parsing.
[0059] In another specific implementation, if the desktop state is a full-screen state, a target adding method is determined from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, including: determining the target adding method of adding the watermark information based on the created temporary rendering surface from the plurality of preset dark watermark adding methods according to the desktop state of the cloud host.
[0060] That is to say, when there is a full-screen window on the desktop, watermark information cannot be added by adding a transparent layer, but the target adding method of adding the watermark information based on the created temporary rendering surface. Specifically, first create a target temporary rendering surface, wherein the length and width of the target temporary rendering surface are consistent with the length and width of the current desktop of the cloud host, and create a target texture, load the watermark information into the target texture, and then use the D3D11 device context to perform rendering operations. Specifically, use a shader and a vertex buffer to render the target texture to the target temporary rendering surface, and finally copy the target temporary rendering surface to the current desktop.
[0061] Furthermore, before copying the target temporary rendering surface to the current desktop, it also includes: determining the current desktop as a rendering target, and using the shader and the vertex buffer to render the game data to the current desktop. In this way, the current desktop in the present application can contain both the game image and the watermark image. In summary, the core of the above process is to render the game image and the watermark image by using a temporary rendering target surface and texture, and then copy the content of the temporary rendering target surface to the current desktop so as to contain both the game image and the watermark image.
[0062] It can be seen that the present application discloses a method for adding a dark watermark to a cloud gaming system, including: obtaining watermark information sent by a user; determining the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud gaming state and a full-screen non-cloud gaming state, and the non-full-screen state includes a non-full-screen cloud gaming state and a non-full-screen non-cloud gaming state; determining a target adding method from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, and using the target adding method to add the watermark information to the cloud host. In summary, the present application proposes a method for adding a dark watermark to a cloud host where a cloud gaming system is located. The core of the application is to determine a method for adding a watermark according to the desktop status of the current desktop, and to add watermark information according to the corresponding method. Specifically, the desktop status includes a full-screen status and a non-full-screen status. The full-screen status includes a full-screen cloud gaming status and a full-screen non-cloud gaming status. The non-full-screen status includes a non-full-screen cloud gaming status and a non-full-screen non-cloud gaming status. In this way, not only the brand image of the enterprise is enhanced, but also information leakage can be prevented, copyright protection can be provided, and the research gap in the existing technology for dark watermark technology for cloud gaming systems can be filled.
[0063] Correspondingly, the embodiment of the present application also discloses a dark watermark adding device for a cloud gaming system, see Figure 3 As shown, the device comprises:
[0064] The watermark information acquisition module 11 is used to obtain the watermark information sent by the user;
[0065] The desktop state determination module 12 is used to determine the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud game state and a full-screen non-cloud game state, and the non-full-screen state includes a non-full-screen cloud game state and a non-full-screen non-cloud game state;
[0066] The watermark information adding module 13 is used to determine a target adding method from a plurality of preset dark watermark adding methods according to the desktop status of the cloud host, and use the target adding method to add the watermark information to the cloud host.
[0067] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0068] It can be seen that the present application discloses a method for adding a dark watermark to a cloud gaming system, including: obtaining watermark information sent by a user; determining the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud gaming state and a full-screen non-cloud gaming state, and the non-full-screen state includes a non-full-screen cloud gaming state and a non-full-screen non-cloud gaming state; determining a target adding method from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, and using the target adding method to add the watermark information to the cloud host. In summary, the present application proposes a method for adding a dark watermark to a cloud host where a cloud gaming system is located. The core of the application is to determine a method for adding a watermark according to the desktop status of the current desktop, and to add watermark information according to the corresponding method. Specifically, the desktop status includes a full-screen status and a non-full-screen status. The full-screen status includes a full-screen cloud gaming status and a full-screen non-cloud gaming status. The non-full-screen status includes a non-full-screen cloud gaming status and a non-full-screen non-cloud gaming status. In this way, not only the brand image of the enterprise is enhanced, but also information leakage can be prevented, copyright protection can be provided, and the research gap in the existing technology for dark watermark technology for cloud gaming systems can be filled.
[0069] Furthermore, an embodiment of the present application also provides an electronic device. Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.
[0070] Figure 4 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the following steps:
[0071] Get the watermark information sent by the user;
[0072] Determine the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud game state and a full-screen non-cloud game state, and the non-full-screen state includes a non-full-screen cloud game state and a non-full-screen non-cloud game state;
[0073] A target adding method is determined from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, and the watermark information is added to the cloud host using the target adding method.
[0074] In some specific implementations, the processor can implement the following steps by executing the computer program stored in the memory:
[0075] The target adding method of adding the watermark information based on the created transparent layer is determined from the preset multiple dark watermark adding methods according to the desktop status of the cloud host.
[0076] In some specific implementations, the processor can implement the following steps by executing the computer program stored in the memory:
[0077] Creating a target transparent layer, setting the transparency value of the watermark information to a target value, and then adding the watermark information to the target transparent layer to obtain a dark watermark layer;
[0078] The layer blending modes of the dark watermark layer and other layers of the current desktop are set to a penetration mode, and the dark watermark layer is placed on the top layer of each layer.
[0079] In some specific implementations, the processor may further implement the following steps by executing the computer program stored in the memory:
[0080] The current desktop is layered according to the transparency value to obtain the dark watermark layer, and the watermark information in the dark watermark layer is marked as a target color to achieve watermark resolution.
[0081] In some specific implementations, the processor can implement the following steps by executing the computer program stored in the memory:
[0082] The target adding method of adding the watermark information based on the created temporary rendering surface is determined from the preset multiple dark watermark adding methods according to the desktop state of the cloud host.
[0083] In some specific implementations, the processor can implement the following steps by executing the computer program stored in the memory:
[0084] Creating a target temporary rendering surface; wherein the length and width of the target temporary rendering surface are consistent with the length and width of the current desktop of the cloud host;
[0085] Creating a target texture, and loading the watermark information into the target texture;
[0086] The target texture is rendered to the target temporary rendering surface using a shader and a vertex buffer, and the target temporary rendering surface is copied to the current desktop.
[0087] In some specific implementations, the processor may further implement the following steps by executing the computer program stored in the memory:
[0088] The current desktop is determined as a rendering target, and the game data is rendered to the current desktop using the shader and the vertex buffer.
[0089] In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0090] In this embodiment, the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 24 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0091] In addition, the memory 22, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include a computer program 221, and the storage method may be temporary storage or permanent storage. In addition to including a computer program that can be used to complete the dark watermark adding method of the cloud gaming system executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 221 may further include a computer program that can be used to complete other specific tasks.
[0092] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the dark watermark adding method of the cloud gaming system disclosed above is implemented.
[0093] For the specific steps of the method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be described in detail here.
[0094] The various embodiments in this application are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0095] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0096] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0097] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0098] The above is a detailed introduction to the dark watermark adding method, device, equipment, and storage medium of a cloud gaming system provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for adding dark watermarks to a cloud gaming system. It is characterized in that include: Get the watermark information sent by the user; Determine the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud game state and a full-screen non-cloud game state, and the non-full-screen state includes a non-full-screen cloud game state and a non-full-screen non-cloud game state; A target adding method is determined from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, and the watermark information is added to the cloud host using the target adding method.
2. The dark watermark adding method of the cloud gaming system according to claim 1, It is characterized in that The desktop state is the non-full screen state, and the target adding method is determined from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, including: The target adding method of adding the watermark information based on the created transparent layer is determined from the preset multiple dark watermark adding methods according to the desktop status of the cloud host.
3. The dark watermark adding method of the cloud gaming system according to claim 2, It is characterized in that The adding the watermark information to the cloud host by using the target adding method includes: Creating a target transparent layer, setting the transparency value of the watermark information to a target value, and then adding the watermark information to the target transparent layer to obtain a dark watermark layer; The layer blending modes of the dark watermark layer and other layers of the current desktop are set to a penetration mode, and the dark watermark layer is placed on the top layer of each layer.
4. The dark watermark adding method of the cloud gaming system according to claim 2, It is characterized in that After adding the watermark information to the cloud host by using the target adding method, the method further includes: The current desktop is layered according to the transparency value to obtain the dark watermark layer, and the watermark information in the dark watermark layer is marked as a target color to achieve watermark resolution.
5. The dark watermark adding method of the cloud gaming system according to claim 1, It is characterized in that The desktop state is the full-screen state, and the target adding method is determined from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, including: The target adding method of adding the watermark information based on the created temporary rendering surface is determined from the preset multiple dark watermark adding methods according to the desktop state of the cloud host.
6. The dark watermark adding method of the cloud gaming system according to claim 5, It is characterized in that The adding the watermark information to the cloud host by using the target adding method includes: Creating a target temporary rendering surface; wherein the length and width of the target temporary rendering surface are consistent with the length and width of the current desktop of the cloud host; Creating a target texture, and loading the watermark information into the target texture; The target texture is rendered to the target temporary rendering surface using a shader and a vertex buffer, and the target temporary rendering surface is copied to the current desktop.
7. The dark watermark adding method of the cloud gaming system according to claim 6, It is characterized in that Before copying the target temporary rendering surface to the current desktop, the method further includes: The current desktop is determined as a rendering target, and the game data is rendered to the current desktop using the shader and the vertex buffer.
8. A dark watermark adding device for a cloud gaming system, It is characterized in that include: A watermark information acquisition module is used to obtain the watermark information sent by the user; A desktop state determination module, used to determine the desktop state of the current desktop of the cloud host, wherein the desktop state includes a full-screen state and a non-full-screen state, the full-screen state includes a full-screen cloud game state and a full-screen non-cloud game state, and the non-full-screen state includes a non-full-screen cloud game state and a non-full-screen non-cloud game state; The watermark information adding module is used to determine a target adding method from a plurality of preset dark watermark adding methods according to the desktop state of the cloud host, and use the target adding method to add the watermark information to the cloud host.
9. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, used to execute the computer program to implement the dark watermark adding method of the cloud gaming system as described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that Used to store computer programs; wherein, when the computer program is executed by a processor, a dark watermark adding method for a cloud gaming system as described in any one of claims 1 to 7 is implemented.
