CN102984518A - VNC image transmission data processing method - Google Patents

VNC image transmission data processing method Download PDF

Info

Publication number
CN102984518A
CN102984518A CN2012105021113A CN201210502111A CN102984518A CN 102984518 A CN102984518 A CN 102984518A CN 2012105021113 A CN2012105021113 A CN 2012105021113A CN 201210502111 A CN201210502111 A CN 201210502111A CN 102984518 A CN102984518 A CN 102984518A
Authority
CN
China
Prior art keywords
rectangular area
compression
value
pixel
processing method
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.)
Granted
Application number
CN2012105021113A
Other languages
Chinese (zh)
Other versions
CN102984518B (en
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.)
HEBEI COMMUNICATION DESIGN & CONSULTATION CO., LTD.
Original Assignee
刘庆国
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 刘庆国 filed Critical 刘庆国
Priority to CN201510272449.8A priority Critical patent/CN104869410B/en
Priority to CN201210502111.3A priority patent/CN102984518B/en
Publication of CN102984518A publication Critical patent/CN102984518A/en
Application granted granted Critical
Publication of CN102984518B publication Critical patent/CN102984518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention relates to the field of data image transmission, in particular to a VNC (Virtual Network Computer) image transmission data processing method. Aiming at the problems in the prior art, the invention provides the VNC image transmission data processing method. Through the implementation of the method, the rectangular property and the pixel vector value change of image data can be judged, and the algorithmic compression is carried out, so that the image transmission occupies a smaller data bandwidth, and the transmission efficiency is increased, so that the data receiving response speed of a mobile terminal or portable equipment is faster. According to the invention, the algorithm processing can be realized by judging the rectangular property and the pixel vector value change of the image data. The method is applied to the field of VNC image transmission.

Description

A kind of VNC image transmitting data processing method
Technical field
The present invention relates to the image transmitting data processing field, especially a kind of VNC image transmitting data processing method.
Background technology
The VNC(Virtual network computer, Virtual NetWork Computer) basically formed by two parts: a part is the application program (vncviewer) of client; A part is the application program (vncserver) of server end in addition.
The VNC system is by client, and service end and an agreement form.
The service end purpose of VNC is to share the screen of its machine that moves, and the passive permission client of service end is controlled it.VNC client (or Viewer) is observed the control service end, and is mutual with service end.VNC agreement Protocol (RFB) is a simple agreement, transmits the original image of service end to client (X, the locational foursquare dot array data of Y), and client transmits event message to service end.Server sends the frame buffer of blockage to client, in the simplest situation, the VNC agreement is used a large amount of bandwidth, therefore various methods are invented the spending that reduces communication, for instance, there are various coding methods to decide the method for full blast to transmit these dot matrix squares)
Agreement allows client and service end to go which kind of coding of agreement to be used, the simplest coding is the original coding of picture element scan data from left to right by what most of clients and service end were supported, after original all over the screen being sent out, only send the square zone that changes.Thisly be coded in interframe to only have work in the situation of fraction screen change very good (similarly be the situation that mouse button moves at desktop, or knock literal at the cursor place), if but a large amount of pixels changes very high that bandwidth will increase simultaneously, similarly be to drag a window or watch full frame video recording.
As shown in Figure 1, take a large amount of network bandwidths owing to finish the frame buffer renewal in the course of work of WNC, process for the server end network data transmission and cause great pressure, so that portable terminal or the response of portable set data receiver are slack-off, have bad user to experience.Therefore need higher bandwidth to carry out transfer of data in the practical application, more internal memory carries out data receiver, is not suitable for simultaneously being applied in portable terminal or the portable set.
Summary of the invention
Technical problem to be solved by this invention is: for the problem of above-mentioned existence, a kind of VNC image transmitting data processing method is provided, enforcement by the method, can judge view data rectangle attribute and the variation of pixel vector value, the line algorithm of going forward side by side compression, so that image transmitting takies less data bandwidth, and the efficiency of transmission raising, so that portable terminal or portable set data receiver response speed accelerate.
The technical solution used in the present invention is as follows:
A kind of VNC image transmitting data processing method comprises
Step 1: system initialization, frame buffer is upgraded, the zone that relatively two frame pictures, and judgement need to upgrade;
Step 2: the rectangular area is carried out in the zone of needs renewal cut apart;
Step 3: judge the rectangular area attribute, when rectangular area scope during less than K, data are not compressed direct transmission, otherwise carry out step 4, wherein the rectangular area attribute comprises starting point abscissa X, starting point ordinate Y, the width W of rectangular area, the height H of rectangular area, K is rectangular area compression number;
Step 4: judge the vector value of rectangular area pixel, carry out monochromatic areas compression or compression algorithm compression.
Rectangular area scope described in the described step 3 refers to all pixels in the W*H scope.
The concrete computational process of vector value of judging the rectangular area pixel in the described step 4 comprises
Step 21: three primary colors R, G, the B of each pixel point value of rectangular area are set,
Step 22: calculate M according to formula (1),
Formula (1)
Judge M, when M=0, then the rectangular area is monochromatic areas, carries out the monochromatic areas compression;
When 0<M<P, carry out compression algorithm and compress; Described P is the compression ratio threshold value
Work as M 〉=P, carry out the rectangular area iteration and cut apart, judge the width of rectangular area
Figure 2012105021113100002DEST_PATH_IMAGE002
, when
Figure 629328DEST_PATH_IMAGE003
During K, repeating step 3; Otherwise data are not compressed direct transmission, and wherein n is positive integer.
Compression algorithm is the JPEG compression in the described step 22.
The concrete steps of monochromatic areas compression algorithm comprise in the described step 22
Step 221: send the rectangular area attribute;
Step 222: send rectangular area starting point pixel value.
Pixel rectangular area scope refers to the rectangular area scope that this pixel is starting point in the described step 222, the rectangular area attribute comprises starting point abscissa X, starting point ordinate Y, the width W of rectangular area, the height H of rectangular area, K is rectangular area compression number.
The implementation procedure of described compression ratio threshold value P:
Step 321: the value of data volume after the value of rectangular area compression ratio=source data amount/compression, wherein the value of source data amount equals three primary colors number * rectangular area pixel quantity; The value of the data volume after the compression is that source data is through the rectangular area pixel value after the compression algorithm;
Step 322: compare according to all rectangular area compression ratios, choose minimum value, obtain the compression ratio threshold value.
In sum, owing to adopted technique scheme, the invention has the beneficial effects as follows:
By to view data rectangle determined property, be worth the rectangular area not compress direct transmission to the rectangular area attribute less than K, further judge be worth the rectangular area to carry out the variation of pixel vector value less than K, when the rectangular area is monochromatic areas, carry out the monochromatic areas compression; To be not monochromatic areas carry out compression algorithm compression so that image transmitting takies less data bandwidth, and efficiency of transmission improves, so that portable terminal or portable set data receiver response speed accelerate.
Description of drawings
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein:
Fig. 1 is data image transmission process flow process in the prior art.
Fig. 2 is image handling process among the design.
Embodiment
Disclosed all features in this specification, or the step in disclosed all methods or the process except mutually exclusive feature and/or step, all can make up by any way.
Disclosed arbitrary feature in this specification (comprising any accessory claim, summary and accompanying drawing) is unless special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, unless special narration, each feature is an example in a series of equivalences or the similar characteristics.
The attribute of rectangular area: comprise X, Y, W, H.Wherein X, Y refer to respectively the initial point value abscissa in rectangular area, ordinate, and W represents the width of rectangular area, the height that H represents the rectangular area.
Starting point pixel value: first pixel value of the upper left corner of a width of cloth picture.
Monochromatic directly send: the size of Regional Economy not, three values of RGB of each pixel of transmission rectangular area.
The implementation procedure of compression ratio threshold value:
Step 111: the value of data volume after the value of rectangular area compression ratio=source data amount/compression, wherein the value of source data amount is 3(three primary colors numbers) * rectangular area pixel quantity; The value of the data volume after the compression is that source data is through the rectangular area pixel value after the compression algorithm;
Step 112: compare according to all rectangular area compression ratios, choose minimum value, obtain the compression ratio threshold value.
Embodiment one: as shown in Figure 2, a kind of VNC image transmitting data processing method comprises
Step 1: system initialization, frame buffer is upgraded, the zone that relatively two frame pictures, and judgement need to upgrade;
Step 2: the rectangular area is carried out in the zone of needs renewal cut apart;
Step 3: judge the rectangular area attribute, when rectangular area scope during less than K, data are not compressed direct transmission, otherwise carry out step 4, wherein the rectangular area attribute comprises starting point abscissa X, starting point ordinate Y, the width W of rectangular area, the height H of rectangular area, K is rectangular area compression number;
Step 4: judge the vector value of rectangular area pixel, carry out monochromatic areas compression or compression algorithm compression.
Embodiment two: on embodiment one basis, described rectangular area scope refers to all pixels in the W*H scope.
Embodiment three: on embodiment one or two bases, and step 21: three primary colors R, G, the B of each pixel point value of rectangular area are set,
Step 22: calculate M according to formula (1),
Figure 828228DEST_PATH_IMAGE001
Formula (1)
Judge M, when M=0, then the rectangular area is monochromatic areas, carries out the monochromatic areas compression;
When 0<M<P, carry out compression algorithm and compress; Described P is the compression ratio threshold value
Work as M 〉=P, carry out the rectangular area iteration and cut apart, judge the width of rectangular area
Figure 903632DEST_PATH_IMAGE002
, when
Figure 428154DEST_PATH_IMAGE003
During K, repeating step 3; Otherwise data are not compressed direct transmission.
Embodiment four: on one of embodiment one to three basis, compression algorithm is the JPEG compression in the described step 22.
Embodiment five: on one of embodiment one to four basis, the concrete steps of monochromatic areas compression algorithm comprise in the described step 22
Step 221: send the rectangular area attribute;
Step 222: send rectangular area starting point pixel value.
Embodiment six: on embodiment five bases, pixel rectangular area scope refers to the rectangular area scope that this pixel is starting point in the described step 222, the rectangular area attribute comprises starting point abscissa X, starting point ordinate Y, the width W of rectangular area, the height H of rectangular area, K is rectangular area compression number.
Embodiment seven: on embodiment six bases, and the implementation procedure of described compression ratio threshold value P:
Step 321: the value of data volume after the value of rectangular area compression ratio=source data amount/compression, wherein the value of source data amount equals three primary colors number * rectangular area pixel quantity; The value of the data volume after the compression is that source data is through the rectangular area pixel value after the compression algorithm;
Step 322: compare according to all rectangular area compression ratios, choose minimum value, obtain the compression ratio threshold value
Embodiment eight: on embodiment seven bases, described K span is 12 to 16.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature or any new combination that discloses in this manual, and the arbitrary new method that discloses or step or any new combination of process.

Claims (7)

1. a VNC image transmitting data processing method is characterized in that comprising
Step 1: system initialization, frame buffer is upgraded, the zone that relatively two frame pictures, and judgement need to upgrade;
Step 2: the rectangular area is carried out in the zone of needs renewal cut apart;
Step 3: judge the rectangular area attribute, when rectangular area scope during less than K, data are not compressed direct transmission, otherwise carry out step 4, wherein the rectangular area attribute comprises starting point abscissa X, starting point ordinate Y, the width W of rectangular area, the height H of rectangular area, K is rectangular area compression number;
Step 4: judge the vector value of rectangular area pixel, carry out monochromatic areas compression or compression algorithm compression.
2. according to 1 described a kind of VNC image transmitting data processing method, it is characterized in that rectangular area scope described in the described step 3 refers to all pixels in the W*H scope.
3. according to 2 described a kind of VNC image transmitting data processing methods, it is characterized in that the concrete computational process of vector value of judging the rectangular area pixel in the described step 4 comprises
Step 21: three primary colors R, G, the B of each pixel point value of rectangular area are set,
Step 22: calculate M according to formula (1),
Figure 2012105021113100001DEST_PATH_IMAGE001
Formula (1)
Judge M, when M=0, then the rectangular area is monochromatic areas, carries out the monochromatic areas compression;
When 0<M<P, carry out compression algorithm and compress; Described P is the compression ratio threshold value
Work as M 〉=P, carry out the rectangular area iteration and cut apart, judge the width of rectangular area
Figure 6176DEST_PATH_IMAGE002
, when
Figure 2012105021113100001DEST_PATH_IMAGE003
During K, repeating step 3; Otherwise data are not compressed direct transmission.
4. described a kind of VNC image transmitting data processing method one of according to claim 3 is characterized in that compression algorithm is the JPEG compression in the described step 22.
5. a kind of VNC image processing method according to claim 3 is characterized in that the concrete steps of monochromatic areas compression algorithm in the described step 22 comprise
Step 221: send the rectangular area attribute;
Step 222: send rectangular area starting point pixel value.
6. described a kind of VNC image transmitting data processing method one of according to claim 5, it is characterized in that pixel rectangular area scope refers to the rectangular area scope that this pixel is starting point in the described step 222, the rectangular area attribute comprises starting point abscissa X, starting point ordinate Y, the width W of rectangular area, the height H of rectangular area, K is rectangular area compression number.
7. a kind of VNC image transmitting data processing method according to claim 6 is characterized in that the implementation procedure of described compression ratio threshold value P:
Step 321: the value of data volume after the value of rectangular area compression ratio=source data amount/compression, wherein the value of source data amount equals three primary colors number * rectangular area pixel quantity; The value of the data volume after the compression is that source data is through the rectangular area pixel value after the compression algorithm;
Step 322: compare according to all rectangular area compression ratios, choose minimum value, obtain the compression ratio threshold value.
CN201210502111.3A 2012-11-30 2012-11-30 A kind of VNC image transmission data processing method Active CN102984518B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510272449.8A CN104869410B (en) 2012-11-30 2012-11-30 A kind of VNC image transmission data processing method
CN201210502111.3A CN102984518B (en) 2012-11-30 2012-11-30 A kind of VNC image transmission data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210502111.3A CN102984518B (en) 2012-11-30 2012-11-30 A kind of VNC image transmission data processing method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201510272449.8A Division CN104869410B (en) 2012-11-30 2012-11-30 A kind of VNC image transmission data processing method

Publications (2)

Publication Number Publication Date
CN102984518A true CN102984518A (en) 2013-03-20
CN102984518B CN102984518B (en) 2015-09-30

Family

ID=47858207

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510272449.8A Expired - Fee Related CN104869410B (en) 2012-11-30 2012-11-30 A kind of VNC image transmission data processing method
CN201210502111.3A Active CN102984518B (en) 2012-11-30 2012-11-30 A kind of VNC image transmission data processing method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510272449.8A Expired - Fee Related CN104869410B (en) 2012-11-30 2012-11-30 A kind of VNC image transmission data processing method

Country Status (1)

Country Link
CN (2) CN104869410B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577142A (en) * 2013-11-14 2014-02-12 广东威创视讯科技股份有限公司 Method and device for determining pixel data transmitted to client side under VNC protocol
CN108153573A (en) * 2017-12-26 2018-06-12 合肥中科云巢科技有限公司 Cloud desktop picture update method and virtual machine
CN114374726A (en) * 2022-01-07 2022-04-19 阿里巴巴(中国)有限公司 Cloud desktop processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1833449A (en) * 2003-06-19 2006-09-13 松下电器产业株式会社 Transmission apparatus, image processing system, image processing method, program, and recording medium
CN101035279A (en) * 2007-05-08 2007-09-12 孟智平 Method for using the information set in the video resource
CN102695050A (en) * 2011-03-23 2012-09-26 苏州科雷芯电子科技有限公司 Video compression method based on scene matching technology

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141622B (en) * 2007-10-23 2010-05-19 张伟华 Interactive edit and extended expression method of network video link information
CN101630329A (en) * 2009-08-24 2010-01-20 孟智平 Method and system for interaction of video elements and web page elements in web pages
CN101945259B (en) * 2010-09-13 2013-03-13 珠海全志科技股份有限公司 Device and method for superimposing and keeping out video images
CN102419945A (en) * 2011-12-09 2012-04-18 上海聚力传媒技术有限公司 Method, device, equipment and system for presenting display information in video

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1833449A (en) * 2003-06-19 2006-09-13 松下电器产业株式会社 Transmission apparatus, image processing system, image processing method, program, and recording medium
CN101035279A (en) * 2007-05-08 2007-09-12 孟智平 Method for using the information set in the video resource
CN102695050A (en) * 2011-03-23 2012-09-26 苏州科雷芯电子科技有限公司 Video compression method based on scene matching technology

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577142A (en) * 2013-11-14 2014-02-12 广东威创视讯科技股份有限公司 Method and device for determining pixel data transmitted to client side under VNC protocol
CN108153573A (en) * 2017-12-26 2018-06-12 合肥中科云巢科技有限公司 Cloud desktop picture update method and virtual machine
CN114374726A (en) * 2022-01-07 2022-04-19 阿里巴巴(中国)有限公司 Cloud desktop processing method and system

Also Published As

Publication number Publication date
CN104869410B (en) 2017-09-22
CN104869410A (en) 2015-08-26
CN102984518B (en) 2015-09-30

Similar Documents

Publication Publication Date Title
US20180263028A1 (en) Information processing device and information processing method
CN108769646A (en) Three-dimensional video communication method and system, electronic device, server and readable storage medium storing program for executing
JP4116006B2 (en) Screen transfer device, screen transfer system, screen transfer method, and program
CN103176765B (en) A kind of biography screen method and electronic equipment
KR101644868B1 (en) Inter-terminal image sharing method, terminal device, and communications system
CN105652442A (en) Head-mounted display equipment and interaction method for head-mounted display equipment and intelligent terminal
CN103391442A (en) Rapid video image transmission compression algorithm based on regional division and difference comparison
CN102740155A (en) Method for displaying images and electronic equipment
CN104994153B (en) A kind of image transfer method and system of WIFI DISPLAY
CN103092552A (en) Method and system for achieving multi-screen display
CN110831039A (en) Data transmission method and transmission server in multi-path concurrent system
CN104469253A (en) Face beautification method in real-time video and electronic equipment
CN105049949A (en) Coding method of instant video and electronic equipment
CN102984518B (en) A kind of VNC image transmission data processing method
CN103796073A (en) Method, control terminal, display terminal and system for image browsing
CN102821303B (en) A kind of Pixel-level video information network real-time graded compression transmitting method
CN109788313A (en) A kind of image transfer method, device and equipment
CN104978157A (en) Display device and image display method of display device
WO2016016607A1 (en) Managing display data for display
CN101035285B (en) Image decomposition and recovery method in the network transmission
CN103384328A (en) Video coding system and method
KR101832407B1 (en) Method and system for communication of stereoscopic three dimensional video information
CN106170081A (en) A kind of wireless dummy reality server, system and data compression transmission method thereof
CN101668107B (en) Method, system and device for transforming color depth and transmitting image after color depth transformation
TWI295438B (en) Method, system and receiving apparatus for transmitting screen frame from one to many terminals

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: HEBEI COMMUNICATION DESIGN + CONSULTATION CO., LTD

Free format text: FORMER OWNER: LIU QINGGUO

Effective date: 20150828

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Bai Yuewei

Inventor after: Liu Yuzhen

Inventor after: Wu Fei

Inventor after: Dong Wenhui

Inventor after: Zhang Yueteng

Inventor after: Chu Yanping

Inventor after: Bai Lei

Inventor after: Zhao Jianpeng

Inventor after: Yan Cunqing

Inventor after: Sun Lei

Inventor after: Zhang Dingding

Inventor after: Huo Zhanqun

Inventor after: Yu Jia

Inventor after: Yang Lele

Inventor after: Liu Ke

Inventor after: Wu Bin

Inventor after: Zuo Huiling

Inventor after: Pei Jianhua

Inventor after: Zhang Guoliang

Inventor after: Duan Qing

Inventor after: Han Gaimin

Inventor after: Zhang Huili

Inventor after: Liu Liyun

Inventor after: Geng Pengjin

Inventor after: He Renming

Inventor before: Liu Qingguo

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: LIU QINGGUO TO: BAI YUEWEI HUO ZHANQUN ZHANG GUOLIANG DUAN QING HAN GAIMINZHANG HUILI LIU LIYUN GENG PENGJIN HE RENMING LIU YUZHEN WU FEI DONG WENHUI ZHANG YUETENG CHU YANPING BAI LEI ZHAO JIANPENG YAN CUNQING SUN LEI ZHANG DINGDING YU JIA YANG LELE LIU KE WU BIN ZUO HUILING PEI JIANHUA

TA01 Transfer of patent application right

Effective date of registration: 20150828

Address after: 050000, No. 102 East Road, Huai Road, Yuhua District, Hebei, Shijiazhuang

Applicant after: HEBEI COMMUNICATION DESIGN & CONSULTATION CO., LTD.

Address before: 002 sets of Jin Shan village, Xiushui Town, Mianyang County, Sichuan

Applicant before: Liu Qingguo

C14 Grant of patent or utility model
GR01 Patent grant