CN101064842A - Method for transferring plotting motion - Google Patents

Method for transferring plotting motion Download PDF

Info

Publication number
CN101064842A
CN101064842A CN 200710111031 CN200710111031A CN101064842A CN 101064842 A CN101064842 A CN 101064842A CN 200710111031 CN200710111031 CN 200710111031 CN 200710111031 A CN200710111031 A CN 200710111031A CN 101064842 A CN101064842 A CN 101064842A
Authority
CN
China
Prior art keywords
parameter
content
plotting
transmission method
plotting motion
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.)
Pending
Application number
CN 200710111031
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200710111031 priority Critical patent/CN101064842A/en
Publication of CN101064842A publication Critical patent/CN101064842A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a plot action transferring method that comprises: the sending equipment codes or reduces the 'content of parameter' of plot action in common use or plot action which occupies too much space, then transfers the code or reduced information; the receiving equipment receives said code or reduced information and reverted to the plot action. The method codes or reduces the 'content of parameter' of plot action and reverted to 'content of parameter', combining the buffer further can decrease the information transmission quality and usage of CPU, network bandwidth of network can be saved greatly, requirement of real time transferring image can be fulfilled, at the same time, realization is easy, cost is low.

Description

A kind of method for transferring plotting motion
Technical field
The present invention relates to the figure transmission, be specifically related to a kind of method for transferring plotting motion.
Background technology
In recent years, remote control technology was more and more used in the telecommunication network management field, and real-time requires also more and more stronger, and especially under the network condition of some low bandwidth, real time problem is more outstanding.How satisfy key that real-time, low bandwidth require is changing unit image is encoded.Wherein adopt a kind of method of direct transmission plotting motion, as shown in Figure 1,, bigger advantage is arranged than traditional bitmap compression and polar plot by to the plotting motion encoding and decoding and transmit this encoding and decoding.So-called plotting motion is pointed at line, filling exactly, is reduced, is provided with color, the mark that sets font, draws etc. is with " action code " expression, each plotting motion also comprises " content of parameter " expression of concrete content, identical plotting motion is done one time on remote terminal more again according to identical order, just can obtain identical image.If but the raw information of plotting motion (that is: " content of parameter ") directly being brought transmission, still can't meet the demands, mainly contain following problem:
1. though the raw information of plotting motion is little much than the bitmap compression, occupation space is still bigger, under the very little situation of the network bandwidth, does not reach our requirement;
2. though the image information in the plotting motion is lacked than the mode of direct blit picture, can not ignore fully, these image informations are carried out compressed transform consumed many cpu resources, cause the performance of server end to reduce.To carry out the back-pressure conversion of contracting equally in client, take many system resource, cause client refreshes speed slow.
Summary of the invention
The technical issues that need to address of the present invention provide a kind of method for transferring plotting motion, can effectively reduce the information that need transmit, further reduce the consumption of client cpu resource.
Above-mentioned technical problem of the present invention solves like this, and a kind of method for transferring plotting motion is provided, and may further comprise the steps:
A, transmit leg equipment are encoded automatically to " content of parameter " of plotting motion to be sent or are simplified, and transmit this coding or simplify " action code " of information and this plotting motion, replace directly transmitting " content of parameter ", thus the information of minimizing conveying capacity;
B, receiver equipment receive described coding or simplify information, and it is reduced into described " content of parameter ", cooperate " action code " receive to reduce described plotting motion.
According to transmission method provided by the invention, also comprise before the described steps A steps A ': transmit leg equipment is judged the type of described plotting motion, if plotting motion commonly used or many plotting motions that takes up room, operating procedure A then, otherwise skips steps A, transmit leg equipment directly sends " action code+content of parameter ";
Also comprise step B ' before the described step B: receiver equipment judges to receive and is coding or simplifies information, operating procedure B then, otherwise skips steps B directly utilizes " action code " and corresponding " content of parameter " thereof reduction plotting motion.
According to transmission method provided by the invention, described coding carries out the parameter numbering to being stored in the receiver equipment buffer memory " content of parameter ", and this transmission method comprises that transmit leg equipment sends " action code+parameter numbering " and transmits plotting motion.
According to transmission method provided by the invention, described simplifying is to calculate the variable quantity of this plotting motion " content of parameter " than tool identical " action code " plotting motion last time " content of parameter ", and this transmission method comprises that transmit leg equipment sends " action code+variable quantity " and transmits plotting motion.
According to transmission method provided by the invention, described simplifying is to omit this plotting motion and consistent " content of parameter " of tool identical " action code " plotting motion last time " content of parameter ", and this transmission method comprises that transmit leg equipment sends " action code " and transmits plotting motion.
According to transmission method provided by the invention, described simplifying is to use short data type transfer content of parameter as far as possible, this transmission method comprises that transmit leg equipment sends " action code+short data type parameter content " and transmits plotting motion, and described short data type is short than the former data type of content of parameter.
According to transmission method provided by the invention, described short data type is short, and described former data type is integer.
According to transmission method provided by the invention, described coding or the mode of simplifying can be one or more.
According to transmission method provided by the invention, described many plotting motions that takes up room comprise rendered images and drafting character string, its corresponding codes or simplify and comprise buffer memory picture/character and picture/character is numbered.
According to transmission method provided by the invention, described plotting motion commonly used comprises color is set, its corresponding codes or simplify and comprise the buffer memory color and color is numbered.
According to transmission method provided by the invention, described plotting motion commonly used comprises the fill area, and its corresponding codes or simplify comprises the last parameter of buffer memory and calculates variable quantity between parameter current and the last parameter.
According to transmission method provided by the invention, described transmit leg equipment is server, and receiver equipment is a client.
A kind of method for transferring plotting motion provided by the invention, transmit leg is encoded to " content of parameter " of plotting motion commonly used or many plotting motions that takes up room or is simplified that the back is transmitted and be reduced into " content of parameter " the recipient, can significantly reduce the information conveying capacity, have following beneficial effect than prior art:
1, the coding information of coming out is littler much than raw information in this way, has saved the network bandwidth greatly;
2, owing to used caching technology in a large number, reduced the amount of calculation of client and service end, improved the response speed of client and service end, real-time is better;
3, implement easily, cost is cheap.
Description of drawings
Further the present invention is described in detail below in conjunction with the drawings and specific embodiments.
Fig. 1 is traditional plotting motion conveying flow schematic diagram.
Fig. 2 is a method for transferring plotting motion schematic flow sheet of the present invention.
Embodiment
At first, inventive concept is described:
By the analysis to plotting motion, we find action wherein commonly used and few, have only ten to plant.Analyzed the interface of webmaster application program again, majority is a simple interface, does not have complicated figure.Mode to general action coding is the form of " action code+content of parameter ", and the common actions of simple interface is because repetition rate is very high, if adopt same coded system can produce a lot of redundant informations with other actions.So can be optimized coding, can dwindle the information content greatly, and alleviate burden CPU at the common actions of simple interface.
Secondly, the inventive method is described, as shown in Figure 2, may further comprise the steps:
(1) transmit leg:
Server is ready for sending plotting motion;
Is the type of judging this plotting motion commonly used or many types that takes up room?
1. be automatically " content of parameter " of plotting motion to be encoded or simplify; Send " action code " and encode or simplify after " content of parameter ", that is: encode or simplify information;
2. deny directly to send " action code " and " content of parameter ";
(2) recipient:
Client receive " action code " and " content of parameter " or encode/simplify after " content of parameter ";
Judge whether directly to have received " content of parameter "?
1. be, in conjunction with " action code " and " content of parameter " reduction plotting motion;
2. deny, from the coding that receives or to simplify information reverting be original " content of parameter ", again in conjunction with " action code " reduction plotting motion that receives.
Again secondly, the specific implementation of the inventive method is described:
The first step: analyze the high action of the frequency of occurrences of drawing course.
Plotting motion has a lot, but commonly used in general can be not too many, the ratio that these actions account for can account for more than 95%, even higher.These common actions are exactly to optimize the object of coding.
Second step: analyze many actions that takes up room in the plotting motion.
Though some plotting motion repetition rate is not very high, each action parameter has all taken very big space.Most typical example is exactly the action of rendered images, and each object picture has all taken no small space.These actions are exactly the emphasis of optimizing coding, and with respect to common actions, the optimization of this part is worth bigger.
The 3rd step: according to some characteristics at interface, analyze under this particular case, which type of optimization means which action adopts to reach optimum efficiency.
The optimization means that we adopt is main following several:
1. the used variable of buffer memory.The situation that the parameter of some plotting motions duplicates through regular meeting, we can carry out buffer memory and numbering to parameter value, and what run into repetition just directly passes numbering in the past.When receiving parameter for the first time, client also does buffer memory, and the employing numbering identical with service end, receive next time just to number and directly from client-cache, extract.This method is applicable to the parameter bigger situation that takes up room.
2. differential ratio.Some plotting motions are in adjacent several same action, and the parameter difference is little, many times all are only to have changed a parameter, at this time just can only transmit the parameter of changing unit.Also need to note earlier last value during client process, when receive difference next time and last value carry out computing and obtain real parameter.This mode is applicable to the extra high plotting motion of frequency of utilization.
3. use the shorter data type of length as far as possible.Such as: an integer take 4 bytes, but the value of integer does not surpass the scope of short, then can only transmit a short and go over.It is still many that this situation occurs in drawing, such as the parameter of screen coordinate, uses an integer to represent, but all be a short majority time.
4. use previous parameter value.Have some parameters less to change basically in system, can remain the value of last time, then directly use the back.
Employing means any in 1.~4. can be included, but are not limited to during coding, also wherein multiple means can be adopted simultaneously.
At last,, describe in detail this interface be optimized Methods for Coding, utilize this method can realize the inventive method and purpose in conjunction with the Java interface example of the reality in telecommunication network management field:
The first step: analyze the high action of the frequency of occurrences of drawing course.
By analysis to concrete network management interface, calculate the occupation proportion of several common actions, result calculated is as shown in table 1:
Denomination of dive Take ratio
Example
Create drawing object 16.20%
Color is set 33.30%
The fill area 26.55%
Set font 5.73%
Cut out areas 5.30%
Drafting character string 4.31%
The drawing picture 2.20%
Moving coordinate 5.16%
Add up to 98.75%
Table 1 plotting motion occupation proportion table
Second step: analyze many actions that takes up room in the plotting motion.
In conjunction with the analysis result of the first step, analyzed the situation that these actions take up room again, find that these two actions of rendered images and drafting character string occupation proportion is higher.
The 3rd step: according to some characteristics at interface, analyze under this particular case, which type of optimization means which action adopts to reach optimum efficiency.
According to the analysis result of front, how this encodes to look at which plotting motion.
1. create drawing object, this action has only a parameter, and this parameter only takies a byte, does not have the space of what optimization.
2. color is set, and this action frequency of occurrences is the highest, analyzes its parameter value, and the color that occurs in a system is also few, can adopt the mode of buffer memory color to be optimized coding.
3. fill area, this action parameter repetition rate is not high, but during two adjacent actions, often is only to have revised a parameter, is applicable to differential ratio method.Simultaneously, can also use the method for short data type transfer to encode.
4. set font, in our network management system, in fact only used a kind of font, adopt and use the method for previous value just can reach optimum efficiency.
5. cut out areas, this action frequency of occurrences is not high, and action parameter is also few, can be just by original coded system.If optimize coding, can adopt with the similar differential ratio in fill area and the method for short data type combination.
6. drafting character string, in the interface of form was arranged, the repetition rate of character string was very high.Can adopt the method for buffer memory character string, drafting character string also needs to transmit coordinate information, and this part parameter adopts the method for short data type.
7. the picture of drawing, in this fairly simple interface of webmaster, little picture is exactly the icon on the interface basically, can not change.So little image cache can be got up, a small amount of big picture just directly uses the compression back to transmit.The parameter of rendered images also comprises coordinate information and width elevation information, also can adopt the method for short data type simultaneously.
8. moving coordinate, this action frequency of occurrences is not high, and parameter than cut out areas still less can still be used original coded system.
In the interface of webmaster, approximately has only 1/10th of raw information by the information that this coding method is come out.By the test under low-bandwidth environment, reached predetermined requirement basically.The speed of service end is also very normal, obviously slack-off phenomenon of service end do not occur behind some remote desktop software startups.Client refreshes speed also can be got caught up in, and initiates the mouse-keyboard incident in client, and response time delay is little, has satisfied the requirement of real-time.

Claims (10)

1, a kind of method for transferring plotting motion is characterized in that, may further comprise the steps:
A, transmit leg equipment are encoded automatically to " content of parameter " of plotting motion to be sent or are simplified, and transmit this coding or simplify " action code " of information and this plotting motion;
B, receiver equipment receive described coding or simplify information, and it is reduced into described " content of parameter ", cooperate " action code " receive to reduce described plotting motion.
2, according to the described transmission method of claim 1, it is characterized in that, also comprise before the described steps A steps A ': transmit leg equipment is judged the type of described plotting motion, if plotting motion commonly used or take up room many plotting motions, then operating procedure A; Otherwise skips steps A, transmit leg equipment directly sends " action code+content of parameter ";
Also comprise step B ' before the described step B: receiver equipment is judged to receive and is coding or simplifies information, then operating procedure B; Otherwise skips steps B directly utilizes " action code " and corresponding " content of parameter " thereof reduction plotting motion.
3, according to the described transmission method of claim 1, it is characterized in that, described coding carries out the parameter numbering to being stored in the receiver equipment buffer memory " content of parameter ", and this transmission method comprises that transmit leg equipment sends " action code+parameter numbering " and transmits plotting motion.
4, according to the described transmission method of claim 1, it is characterized in that, described simplifying is to calculate the variable quantity of this plotting motion " content of parameter " than tool identical " action code " plotting motion last time " content of parameter ", and this transmission method comprises that transmit leg equipment sends " action code+variable quantity " and transmits plotting motion.
5, according to the described transmission method of claim 1, it is characterized in that, described simplifying is to omit this plotting motion and consistent " content of parameter " of tool identical " action code " plotting motion last time " content of parameter ", and this transmission method comprises that transmit leg equipment sends " action code " and transmits plotting motion.
6, according to the described transmission method of claim 1, it is characterized in that, described simplifying is to use short data type transfer content of parameter as far as possible, this transmission method comprises that transmit leg equipment sends " action code+short data type parameter content " and transmits plotting motion, and described short data type is short than the former data type of content of parameter.
According to each described transmission method of claim 1-6, it is characterized in that 7, described coding or the mode of simplifying can be one or more.
According to the described transmission method of claim 2, it is characterized in that 8, described many plotting motions that takes up room comprise rendered images and drafting character string, its corresponding codes or simplify and comprise buffer memory picture/character and picture/character is numbered.
According to the described transmission method of claim 2, it is characterized in that 9, described plotting motion commonly used comprises color is set, its corresponding codes or simplify and comprise the buffer memory color and color is numbered.
According to the described transmission method of claim 2, it is characterized in that 10, described plotting motion commonly used comprises the fill area, its corresponding codes or simplify comprises the last parameter of buffer memory and calculates variable quantity between parameter current and the last parameter.
CN 200710111031 2007-06-13 2007-06-13 Method for transferring plotting motion Pending CN101064842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710111031 CN101064842A (en) 2007-06-13 2007-06-13 Method for transferring plotting motion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710111031 CN101064842A (en) 2007-06-13 2007-06-13 Method for transferring plotting motion

Publications (1)

Publication Number Publication Date
CN101064842A true CN101064842A (en) 2007-10-31

Family

ID=38965505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710111031 Pending CN101064842A (en) 2007-06-13 2007-06-13 Method for transferring plotting motion

Country Status (1)

Country Link
CN (1) CN101064842A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104335227A (en) * 2012-06-06 2015-02-04 索迪欧有限公司 Anchors for location-based navigation and augmented reality applications
CN106713700A (en) * 2016-12-08 2017-05-24 宇龙计算机通信科技(深圳)有限公司 Picture processing method and apparatus, as well as terminal
CN107688575A (en) * 2016-08-04 2018-02-13 创盛视联数码科技(北京)有限公司 The method of picture presentation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104335227A (en) * 2012-06-06 2015-02-04 索迪欧有限公司 Anchors for location-based navigation and augmented reality applications
CN104335227B (en) * 2012-06-06 2018-09-25 索迪欧有限公司 Anchor point for location-based navigation and augmented reality application
CN107688575A (en) * 2016-08-04 2018-02-13 创盛视联数码科技(北京)有限公司 The method of picture presentation
CN106713700A (en) * 2016-12-08 2017-05-24 宇龙计算机通信科技(深圳)有限公司 Picture processing method and apparatus, as well as terminal

Similar Documents

Publication Publication Date Title
CN1694058A (en) Remote display processing method based on server end/client end structure
CN103379136A (en) Compression method and decompression method of log acquisition data, compression apparatus and decompression apparatus of log acquisition data
CN102546612B (en) Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode
CN1710929A (en) Data communication system and method of hand-held apparatus
CN101060338A (en) A convolutional code rate matching method and device
CN104168439B (en) A kind of method for video coding and device
CN101835043A (en) Adaptive bandwidth desktop sharing method based on block encoding
CN1928850A (en) Method and apparatus for compressing data based on digital dictionary picture-representing data
CN1933454A (en) Synchronous information interface realizing method based on JAVA information service
CN106851733A (en) A kind of adaptive H TTP message compression methods for mobile network's application
CN101064842A (en) Method for transferring plotting motion
CN101079879A (en) An Email transport system and method
CN1928849A (en) Method and device for producing digital dictionary and method for optimizing digital dictionary
CN102123275B (en) Video component data information acquiring and extracting method
CN107360380B (en) A kind of double Compression photographic devices and its host computer decoding apparatus
CN110321237A (en) The method for realizing comprehensive improvement working end system communication based on grpc and protobuf
CN109871520A (en) A kind of binary data decoding method embedded suitable for HTTP content
CN116708579B (en) Data access method, device, electronic equipment and computer readable storage medium
CN1951017A (en) Method and apparatus for sequence data compression and decompression
CN111314349B (en) Code caching method based on joint maximum distance code division and cluster cooperation in fog wireless access network
CN1933619A (en) Short message group sending method and short message center
CN101309259B (en) Distributed image display method
CN115499506B (en) MQTT information transmission data compression method based on LZW algorithm and server
CN101282193A (en) System and method for transmission of data
CN101056321A (en) A method for improving the performance of the radio application protocol gateway

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20071031