CN113794899A - Cloud desktop image data transmission method, device, equipment and storage medium - Google Patents

Cloud desktop image data transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN113794899A
CN113794899A CN202111014330.2A CN202111014330A CN113794899A CN 113794899 A CN113794899 A CN 113794899A CN 202111014330 A CN202111014330 A CN 202111014330A CN 113794899 A CN113794899 A CN 113794899A
Authority
CN
China
Prior art keywords
image data
compression algorithm
cloud desktop
threshold value
color number
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
CN202111014330.2A
Other languages
Chinese (zh)
Inventor
王小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies Co Ltd
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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202111014330.2A priority Critical patent/CN113794899A/en
Publication of CN113794899A publication Critical patent/CN113794899A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a cloud desktop image data transmission method, a cloud desktop image data transmission device, cloud desktop image data transmission equipment and a storage medium, which are used for solving the problems of cloud desktop image data transmission self-adaption and transmission efficiency. According to the technical scheme, in the cloud desktop image data transmission process, the server identifies the image of the refresh area of the current virtual machine VM cloud desktop, and selects a proper compression algorithm based on different color numbers and contrast ratios of the image data. Lossless compression is adopted for image data with single color and low contrast in the image, and lossy compression is adopted for other complex images, so that the image definition of the text content part is improved, and the occupation of image transmission bandwidth is reduced as much as possible.

Description

Cloud desktop image data transmission method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of computers and cloud computing, in particular to a cloud desktop image data transmission method, device, equipment and storage medium.
Background
A Virtual Desktop Infrastructure (VDI) can host a user's Desktop environment to a high-performance server in the form of a Virtual machine, and provides the user with almost the same user experience as a physical PC. An ordinary user can use the cloud desktop of the user through various terminal devices such as a PC (personal computer), a thin client and the like to complete tasks such as daily office work, and an administrator can realize visual management of all cloud desktop resources and batch deployment of the cloud desktops to meet the requirements of a large number of users. The cloud desktop management system mainly comprises a cloud desktop client, a cloud desktop transmission protocol, a cloud desktop management platform, a virtualization management platform, infrastructure components, a desktop resource pool (namely a virtual machine VM) and the like.
Based on the cloud desktop transmission protocol, in actual products and deployments, a cloud desktop transmission protocol client is generally installed on a thin terminal, and desktop data is obtained through interaction with a server. Compared to a normal physical PC. The thin terminal has low performance, and the CPU processing capacity and the GPU rendering capacity are weak. For some high-quality high-resolution images (such as 2k and 4k screens), in the cloud desktop image series processing process, when the resolution of desktop pictures generated per second is large and the number of the desktop pictures is large, the images need to be transmitted through compression. The general compression method is divided into a lossy algorithm and a lossless algorithm, wherein the lossy algorithm has high compression ratio, but images, particularly character parts, are easy to distort and blur, so that the impression of a user is influenced; lossless algorithm, the image has no distortion, but the compression ratio is low, and the occupied bandwidth is high.
The image compression algorithms adopted by the current image transmission include LZ, LZ4, Jpeg, H.264, H.265 and the like. The LZ and LZ4 algorithms are the mainstream lossless compression algorithms at present, the image is not distorted, but the compression ratio is low, and the occupied bandwidth is high. Jpeg, H.264 and H.265 are mainstream lossy compression algorithms, the compression ratio is high, but images, particularly character parts, are easy to distort and blur, and the appearance of a user is influenced.
Disclosure of Invention
In view of this, the invention provides a cloud desktop image data transmission method, a cloud desktop image data transmission device and a storage medium, which are used for solving the problems of cloud desktop image data transmission self-adaption and transmission efficiency.
On the basis of one aspect of the embodiment of the invention, the invention provides a cloud desktop image data transmission method, which is applied to a server and comprises the following steps:
before sending the image data to the cloud desktop client, counting the color number of the image data and judging whether the color number of the image data is larger than a preset color number threshold value;
if the color number of the image data is not larger than the preset color number threshold value, generating a color table, compressing the image data in a color table compression mode, and sending the color table and the compressed image data to a cloud desktop client;
if the color number of the image data is larger than the preset color number threshold value, calculating the contrast of the image data and judging whether the contrast of the image data is larger than the preset contrast threshold value or not;
and if the contrast of the image data is not greater than the preset contrast threshold value, compressing and transmitting the image data by adopting a lossless compression algorithm, and otherwise, compressing and transmitting the image data by adopting a lossy compression algorithm.
Further, the image data is three-channel RGB image data, and the preset color number threshold value is 256 basic color numbers;
the lossless compression algorithm is LZ or LZ4, and the lossy compression algorithm is JPEG, H.264 or H.265.
On the other hand, the invention provides a cloud desktop image data transmission device, which is applied to a server side and comprises:
the statistic calculation module is used for calculating the contrast of the image data when the color of the image data is counted;
the judging module is used for judging whether the color number of the image data is larger than a preset color number threshold value or not; judging whether the contrast of the image data is greater than a preset contrast threshold value or not;
the compression module is used for generating a color table and compressing the image data in a color table compression mode when the color number of the image data is not greater than the preset color number threshold value; when the color number of the image data is larger than the preset color number threshold value and the contrast of the image data is not larger than the preset contrast threshold value, compressing and transmitting the image data by adopting a lossless compression algorithm; when the color number of the image data is larger than the preset color number threshold value and the contrast of the image data is larger than the preset contrast threshold value, compressing and transmitting the image data by adopting a lossy compression algorithm;
and the transmission module is used for transmitting the color table and the compressed image data to the cloud desktop client.
Further, the image data is three-channel RGB image data, and the preset color number threshold value is 256 basic color numbers; the lossless compression algorithm is LZ or LZ4, and the lossy compression algorithm is JPEG, H.264 or H.265.
On the other hand, the present disclosure also provides a cloud desktop image data transmission method, which is applied to a cloud desktop client, and includes:
receiving image data sent by a server end, and judging a compression algorithm of the image data;
if the color table compression algorithm is judged to be adopted, decompressing the image data based on the color table received from the server;
if the lossy compression algorithm is judged to be adopted, the corresponding lossy compression algorithm is adopted to decompress the image data;
and if the lossless compression algorithm is judged to be adopted, decompressing the image data by adopting a corresponding lossless compression algorithm.
On the other hand, the present disclosure also provides a cloud desktop image data transmission device, which is applied to a cloud desktop client, and includes:
the receiving module is used for receiving the image data sent by the server end;
the compression mode judging module is used for judging the compression algorithm of the image data based on the received image data;
the decompression module is used for decompressing the image data based on the color table received from the server when the color table compression algorithm is judged to be adopted; when the lossy compression algorithm is judged to be adopted, decompressing the image data by adopting a corresponding lossy compression algorithm; and when the lossless compression algorithm is judged to be adopted, decompressing the image data by adopting a corresponding lossless compression algorithm.
According to the technical scheme, in the cloud desktop image data transmission process, the server identifies the image of the refresh area of the current virtual machine VM cloud desktop, and selects a proper compression algorithm based on different color numbers and contrast ratios of the image data. Lossless compression is adopted for image data with single color and low contrast in the image, and lossy compression is adopted for other complex images, so that the image definition of the text content part is improved, and the occupation of image transmission bandwidth is reduced as much as possible.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments of the present invention or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings may be obtained according to the drawings of the embodiments of the present invention.
Fig. 1 is a flowchart illustrating steps of a cloud desktop image data transmission method applied to a server according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a cloud desktop image data transmission method applied to a cloud desktop client according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a cloud desktop image data transmission device applied to a server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a cloud desktop image data transmission device applied to a cloud desktop client according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for transmitting cloud desktop image data according to an embodiment of the present invention.
Detailed Description
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the invention. As used in this embodiment of the invention, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used to describe various information in embodiments of the present invention, the information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of embodiments of the present invention. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
The invention aims to provide a cloud desktop image data transmission method to realize identification of cloud desktop image content, lossless compression is adopted for content which is single in color and sensitive to users (such as text areas) in an image, and lossy compression is adopted for other complex images, so that the image definition of text content parts is improved, and meanwhile, the bandwidth occupation of image transmission is reduced as much as possible.
The cloud desktop image data transmission method based on image recognition provided by the invention has the general idea that in the cloud desktop image data transmission process, a server side recognizes the image of the refresh area of the current virtual machine VM cloud desktop, and selects a proper compression algorithm based on the difference of the color number and the contrast of the image data.
Fig. 1 is a flowchart illustrating steps of a cloud desktop image data transmission method applied to a server according to an embodiment of the present invention, where the method includes:
step 101, before sending image data to a cloud desktop client, counting the color number of the image data;
before sending the image data to the cloud desktop client, the server quantitatively counts the color number of the image data in the refresh area of the cloud desktop of the current virtual machine VM (the image data in the refresh area needs to be sent to the client).
The image data transmitted by the cloud desktop is usually RGB three-channel image data.
Step 102, judging whether the color number of the image data is larger than a preset color number threshold value, if not, executing step 103, otherwise, executing step 104;
in this embodiment, the threshold value of the number of colors is 256.
103, generating a color table and compressing image data by adopting a color table compression mode;
before sending the image data to the cloud desktop client, the color table needs to be sent to the cloud desktop client, and the cloud desktop client decompresses the image data by adopting the color table.
104, calculating the contrast of the image data;
step 105, judging whether the contrast of the image data is greater than a preset contrast threshold value, if not, executing step 106, otherwise, executing step 107;
in this embodiment, the image data is classified into high contrast and low contrast by a preset contrast threshold, an image larger than a preset contrast threshold is determined as a high contrast image, and an image not larger than the preset contrast threshold is determined as a low contrast image. The high contrast ratio has low requirements on image details, so that the lossy compression mode is adopted to compress image data, and the image cannot be distorted excessively. For low contrast images, the image data is compressed using a lossless compression algorithm.
Step 106, the image is a low-contrast image, and the image data is compressed by adopting a lossless compression algorithm;
step 107, the image is a high-contrast image, and the image data is compressed by adopting a lossy compression algorithm;
the lossy compression mode can solve the problem that the bandwidth is too high when the lossless compression mode is adopted for the current image.
The lossless shackle mode is adopted to solve the problem that the image quality of the current image is distorted by adopting lossy compression.
For high-contrast images, lossy compression algorithms such as JPEG, h.264, h.265, etc. can be used to compress the image data. For low contrast images, lossless compression algorithms such as LZ and LZ4 may be used to compress the image data.
And step 108, transmitting the compressed image data to the cloud desktop client.
Fig. 2 is a flowchart illustrating steps of a cloud desktop image data transmission method applied to a cloud desktop client according to an embodiment of the present invention, where the method includes:
step 201, receiving image data sent by a server;
step 202, judging whether the color number of the image data is greater than a preset color number threshold value 256, if not, executing step 203, otherwise, executing step 204;
step 203, decompressing the image data based on the color table received from the server, and restoring the RGB image data;
step 204, judging whether the compression algorithm adopted by the compressed image data is a lossy compression algorithm or a lossless compression algorithm, if the compression algorithm is a lossless compression algorithm, executing step 205, otherwise executing step 206;
step 205, decompressing the image data by using a corresponding lossless decompression algorithm;
step 207, decompressing the image data by using a corresponding lossy decompression algorithm;
and 208, restoring the decompressed image data to generate RGB image data.
Fig. 3 is a schematic structural diagram of a cloud desktop image data transmission device applied to a server according to an embodiment of the present invention, and each functional module in the device 300 may be implemented by software, hardware, or a combination of software and hardware. The apparatus 300 comprises:
a statistic calculation module 301, configured to calculate a contrast of the image data when counting colors of the image data;
a determining module 302, configured to determine whether a color number of the image data is greater than a preset color number threshold; judging whether the contrast of the image data is greater than a preset contrast threshold value or not;
a compression module 303, configured to generate a color table and compress the image data in a color table compression manner when the color number of the image data is not greater than the preset color number threshold value; when the color number of the image data is larger than the preset color number threshold value and the contrast of the image data is not larger than the preset contrast threshold value, compressing and transmitting the image data by adopting a lossless compression algorithm; when the color number of the image data is larger than the preset color number threshold value and the contrast of the image data is larger than the preset contrast threshold value, compressing and transmitting the image data by adopting a lossy compression algorithm;
and a transmission module 304, configured to transmit the color table and the compressed image data to the cloud desktop client.
Fig. 4 is a schematic structural diagram of a cloud desktop image data transmission device applied to a cloud desktop client according to an embodiment of the present invention, and each functional module in the device 400 may be implemented by software, hardware, or a combination of software and hardware. The apparatus 400 comprises:
a receiving module 401, configured to receive image data sent by a server side;
a compression mode determination module 402, configured to determine a compression algorithm of the image data based on the received image data;
a decompression module 403, configured to decompress the image data based on the color chart received from the server when it is determined that the color chart compression algorithm is adopted; when the lossy compression algorithm is judged to be adopted, decompressing the image data by adopting a corresponding lossy compression algorithm; and when the lossless compression algorithm is judged to be adopted, decompressing the image data by adopting a corresponding lossless compression algorithm.
Fig. 5 is a schematic structural diagram of an electronic device for transmitting cloud desktop image data according to an embodiment of the present invention, where the device 500 includes: a processor 510 such as a Central Processing Unit (CPU), a communication bus 520, a communication interface 540, and a storage medium 530. Wherein the processor 510 and the storage medium 530 may communicate with each other through a communication bus 520. The storage medium 530 stores a computer program, such as the aforementioned apparatus 300 or apparatus 400, which can be implemented in the storage medium 530 as a software module, and when the computer program in the storage medium 530 is executed by the processor 510, the functions of the steps of the method provided by the present invention can be implemented.
The storage medium may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. In addition, the storage medium may be at least one memory device located remotely from the processor. The Processor may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), etc.; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It should be recognized that embodiments of the present invention can be realized and implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory memory. The method may be implemented in a computer program using standard programming techniques, including a non-transitory storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose. Further, operations of processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The present invention includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the above-described steps in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A cloud desktop image data transmission method is applied to a server side, and comprises the following steps:
before sending the image data to the cloud desktop client, counting the color number of the image data and judging whether the color number of the image data is larger than a preset color number threshold value;
if the color number of the image data is not larger than the preset color number threshold value, generating a color table, compressing the image data in a color table compression mode, and sending the color table and the compressed image data to a cloud desktop client;
if the color number of the image data is larger than the preset color number threshold value, calculating the contrast of the image data and judging whether the contrast of the image data is larger than the preset contrast threshold value or not;
and if the contrast of the image data is not greater than the preset contrast threshold value, compressing and transmitting the image data by adopting a lossless compression algorithm, and otherwise, compressing and transmitting the image data by adopting a lossy compression algorithm.
2. The method of claim 1,
the image data is three-channel RGB image data, and the preset color number threshold value is 256 basic color numbers;
the lossless compression algorithm is LZ or LZ4, and the lossy compression algorithm is JPEG, H.264 or H.265.
3. The cloud desktop image data transmission device is applied to a server side, and comprises the following components:
the statistic calculation module is used for calculating the contrast of the image data when the color of the image data is counted;
the judging module is used for judging whether the color number of the image data is larger than a preset color number threshold value or not; judging whether the contrast of the image data is greater than a preset contrast threshold value or not;
the compression module is used for generating a color table and compressing the image data in a color table compression mode when the color number of the image data is not greater than the preset color number threshold value; when the color number of the image data is larger than the preset color number threshold value and the contrast of the image data is not larger than the preset contrast threshold value, compressing and transmitting the image data by adopting a lossless compression algorithm; when the color number of the image data is larger than the preset color number threshold value and the contrast of the image data is larger than the preset contrast threshold value, compressing and transmitting the image data by adopting a lossy compression algorithm;
and the transmission module is used for transmitting the color table and the compressed image data to the cloud desktop client.
4. The apparatus of claim 3,
the image data is three-channel RGB image data, and the preset color number threshold value is 256 basic color numbers; the lossless compression algorithm is LZ or LZ4, and the lossy compression algorithm is JPEG, H.264 or H.265.
5. A cloud desktop image data transmission method is applied to a cloud desktop client, and comprises the following steps:
receiving image data sent by a server end, and judging a compression algorithm of the image data;
if the color table compression algorithm is judged to be adopted, decompressing the image data based on the color table received from the server;
if the lossy compression algorithm is judged to be adopted, the corresponding lossy compression algorithm is adopted to decompress the image data;
and if the lossless compression algorithm is judged to be adopted, decompressing the image data by adopting a corresponding lossless compression algorithm.
6. The method of claim 5,
the image data is three-channel RGB image data, and the preset color number threshold value is 256 basic color numbers;
the lossless compression algorithm is LZ or LZ4, and the lossy compression algorithm is JPEG, H.264 or H.265.
7. The cloud desktop image data transmission device is applied to a cloud desktop client, and comprises:
the receiving module is used for receiving the image data sent by the server end;
the compression mode judging module is used for judging the compression algorithm of the image data based on the received image data;
the decompression module is used for decompressing the image data based on the color table received from the server when the color table compression algorithm is judged to be adopted; when the lossy compression algorithm is judged to be adopted, decompressing the image data by adopting a corresponding lossy compression algorithm; and when the lossless compression algorithm is judged to be adopted, decompressing the image data by adopting a corresponding lossless compression algorithm.
8. The apparatus of claim 7,
the image data is three-channel RGB image data, and the preset color number threshold value is 256 basic color numbers;
the lossless compression algorithm is LZ or LZ4, and the lossy compression algorithm is JPEG, H.264 or H.265.
9. An electronic device is characterized by comprising a processor, a communication interface, a storage medium and a communication bus, wherein the processor, the communication interface and the storage medium are communicated with each other through the communication bus;
a storage medium for storing a computer program;
a processor for performing the method steps of any one of claims 1, 2, 5 or 6 when executing a computer program stored on a storage medium.
10. A storage medium having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, carries out the method steps of any one of claims 1, 2, 5 or 6.
CN202111014330.2A 2021-08-31 2021-08-31 Cloud desktop image data transmission method, device, equipment and storage medium Withdrawn CN113794899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111014330.2A CN113794899A (en) 2021-08-31 2021-08-31 Cloud desktop image data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111014330.2A CN113794899A (en) 2021-08-31 2021-08-31 Cloud desktop image data transmission method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113794899A true CN113794899A (en) 2021-12-14

Family

ID=79182432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111014330.2A Withdrawn CN113794899A (en) 2021-08-31 2021-08-31 Cloud desktop image data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113794899A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339305A (en) * 2021-12-22 2022-04-12 深信服科技股份有限公司 Virtual desktop image processing method and related device
CN116781906A (en) * 2023-07-03 2023-09-19 深圳市青葡萄科技有限公司 Image-text definition optimization method, image-text definition optimization equipment and storage medium
CN117593766A (en) * 2023-12-28 2024-02-23 天科院环境科技发展(天津)有限公司 Investigation method for wild animal population number based on unmanned aerial vehicle shooting image processing
WO2024094077A1 (en) * 2022-11-02 2024-05-10 杭州阿里云飞天信息技术有限公司 Cloud desktop image processing method, image processing method, device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1696977A (en) * 2005-05-26 2005-11-16 无敌科技(西安)有限公司 Method for compressing image
CN102308582A (en) * 2008-12-23 2012-01-04 萨基姆通讯宽带公司 Method for the segmentation encoding of an image
CN103369317A (en) * 2012-03-23 2013-10-23 马维尔国际贸易有限公司 Method and apparatus for image data compression
US20140181682A1 (en) * 2012-12-26 2014-06-26 Vmware, Inc. Using contextual and spatial awareness to improve remote desktop imaging fidelity
US20180295255A1 (en) * 2016-02-11 2018-10-11 Hewlett-Packard Development Company, L.P. Compressing each object in an electronic document

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1696977A (en) * 2005-05-26 2005-11-16 无敌科技(西安)有限公司 Method for compressing image
CN102308582A (en) * 2008-12-23 2012-01-04 萨基姆通讯宽带公司 Method for the segmentation encoding of an image
CN103369317A (en) * 2012-03-23 2013-10-23 马维尔国际贸易有限公司 Method and apparatus for image data compression
US20140181682A1 (en) * 2012-12-26 2014-06-26 Vmware, Inc. Using contextual and spatial awareness to improve remote desktop imaging fidelity
US20180295255A1 (en) * 2016-02-11 2018-10-11 Hewlett-Packard Development Company, L.P. Compressing each object in an electronic document

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邓丽萍;: "基于Spice协议的图像分类与压缩设计与分析", 信息与电脑(理论版), no. 18 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339305A (en) * 2021-12-22 2022-04-12 深信服科技股份有限公司 Virtual desktop image processing method and related device
WO2024094077A1 (en) * 2022-11-02 2024-05-10 杭州阿里云飞天信息技术有限公司 Cloud desktop image processing method, image processing method, device, and storage medium
CN116781906A (en) * 2023-07-03 2023-09-19 深圳市青葡萄科技有限公司 Image-text definition optimization method, image-text definition optimization equipment and storage medium
CN117593766A (en) * 2023-12-28 2024-02-23 天科院环境科技发展(天津)有限公司 Investigation method for wild animal population number based on unmanned aerial vehicle shooting image processing
CN117593766B (en) * 2023-12-28 2024-04-02 天科院环境科技发展(天津)有限公司 Investigation method for wild animal population number based on unmanned aerial vehicle shooting image processing

Similar Documents

Publication Publication Date Title
CN113794899A (en) Cloud desktop image data transmission method, device, equipment and storage medium
US8600155B2 (en) Classification and encoder selection based on content
CN107292808B (en) Image processing method and device and image coprocessor
US20130016107A1 (en) Method and mechanism for performing both server-side and client-side rendering of visual data
EP2945374B1 (en) Positioning of projected augmented reality content
CN102932324B (en) Support reduce the network bandwidth use across the progressive damage of frame
CN101088107A (en) Use of a graphics processor in remote computing
CN112135140B (en) Video definition identification method, electronic device and storage medium
CN108234659B (en) Data processing method, device and system
EP3410302A1 (en) Graphic instruction data processing method, apparatus and system
CN109815405B (en) Gray level shunting method and system
CN114116092A (en) Cloud desktop system processing method, cloud desktop system control method and related equipment
CN112311720B (en) Data transmission method and device
US10157588B2 (en) Systems and methods for image optimization
CN111694923A (en) Name mapping-based parameter assignment method and device, and computer equipment
CN113888560A (en) Method, apparatus, device and storage medium for processing image
CN112882826B (en) Resource cooperative scheduling method and device
CN112488964A (en) Image processing method for sliding list, related device, equipment and medium
CN110545446B (en) Desktop image encoding and decoding methods, related devices and storage medium
CN112631577B (en) Model scheduling method, model scheduler and model safety test platform
CN113613043A (en) Screen display and image processing method, embedded device and cloud server
US9626330B2 (en) Information processing apparatus, and information processing method
CN114339252A (en) Data compression method and device
CN113254123A (en) Cloud desktop scene identification method and device, storage medium and electronic device
CN107079200B (en) Processing data in thin client terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20211214