CN102752570B - Echo zooming method and system based on dynamic rectangular region partitioning of RDP (remote desktop protocol) - Google Patents

Echo zooming method and system based on dynamic rectangular region partitioning of RDP (remote desktop protocol) Download PDF

Info

Publication number
CN102752570B
CN102752570B CN201210267183.4A CN201210267183A CN102752570B CN 102752570 B CN102752570 B CN 102752570B CN 201210267183 A CN201210267183 A CN 201210267183A CN 102752570 B CN102752570 B CN 102752570B
Authority
CN
China
Prior art keywords
data
echo
bitmap
internal storage
rdp
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.)
Active
Application number
CN201210267183.4A
Other languages
Chinese (zh)
Other versions
CN102752570A (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.)
Dexun Innovation Beijing Technology Co Ltd
Original Assignee
Datcent Technology 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 Datcent Technology Co Ltd filed Critical Datcent Technology Co Ltd
Priority to CN201210267183.4A priority Critical patent/CN102752570B/en
Publication of CN102752570A publication Critical patent/CN102752570A/en
Application granted granted Critical
Publication of CN102752570B publication Critical patent/CN102752570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a GDI echo and zooming method and a GDI echo and zooming device, in particular to an echo and zooming method and a system based on dynamic rectangular region blocking of an RDP protocol, which convert each dot matrix of dot matrix image data in the image data into a memory data structure; judging the validity of the memory data; updating the memory data to a memory position corresponding to the memory data; converting the image data of the memory data mapping rectangular area into a bitmap; scaling the bitmap in equal proportion and calculating equal-proportion echo coordinates; WIN-GDI displays the bitmap data back and draws each small bitmap to the screen according to the coordinates. The invention solves the actual requirements of RDP source data playback and arbitrary ratio scaling and zooming, and omits the process of screen conversion, so that the system is simple to deploy, and has great advantages in the aspects of image definition and system resource consumption.

Description

RDP agreement is based on the echo Zoom method of dynamic rectangular area dividing and system
Technical field
The present invention relates to a kind of GDI echo and Zoom method and device, RDP agreement is based on the echo Zoom method of dynamic rectangular area dividing and system specifically.
Background technology
RDP agreement commonly uses O&M agreement as one, has been sharp weapon in a hand of vast operation maintenance personnel.The requirement of safe O&M and audit, needs to record a video and synchronized playback to the picture of RDP O&M process.In order to meet the requirement of data readback, usually RDP stream compression is needed to be changed to streaming media video stream, such solution, need to provide special data conversion module, improve the complexity of system, and transfer process needs to expend larger system resource, and the video data data capacity generated is comparatively large, and playback effect is also clear not.
Summary of the invention
Technical problem to be solved by this invention is, overcome the shortcoming of prior art, the echo Zoom method of a kind of RDP agreement based on dynamic rectangular area dividing and system are provided, eliminate the process of screen conversion, system is disposed simple, in image sharpness, system resources consumption, have advantage.
The technical scheme that the present invention solves above technical problem is:
RDP agreement, based on the echo Zoom method of dynamic rectangular area dividing, comprising:
Step (one), RDP protocol analysis, be separated the view data in RDP agreement and control data, obtain view data, view data comprises screen background, character font data and dot matrix image data;
Step (two), each dot matrix of dot matrix image data step () obtained in view data is converted to a memory data structure;
Step (three), judges that whether internal storage data is effective, if invalid, then returns step (); If effectively, then enter next step;
Step (four), is updated to corresponding region of memory by internal storage data;
Step (five), view data internal storage data being mapped rectangular area is converted to bitmap, for GDI echo prepares data, the dot array data in the internal storage data rectangular area of enumerating out is converted to little rectangle;
Step (six), carries out equal proportion convergent-divergent by bitmap, calculating the echo coordinate of equal proportion simultaneously, if do not needed convergent-divergent, then directly entering next step;
Step (seven), by WIN-GDI echo data bitmap, the bitmap that each is little is plotted on screen according to coordinate.
RDP agreement, based on the echo panntographic system of dynamic rectangular area dividing, comprising:
RDP protocol resolution module, for separating of the view data in RDP agreement and control data, obtains view data;
Image data is converted into internal storage data module, for each dot matrix of the dot matrix image data in view data is converted to a memory data structure;
Internal storage data Effective judgement module, for judging internal storage data validity;
Internal storage data update module, for being updated to core position corresponding to internal storage data by internal storage data;
View data conversion bitmap module, is converted to bitmap for view data internal storage data being mapped rectangular area;
Bitmap carries out equal proportion Zoom module, for bitmap being carried out equal proportion convergent-divergent and calculating the echo coordinate of equal proportion;
Echo data bitmap module, for passing through WIN-GDI echo data bitmap, and is plotted to each little bitmap on screen according to coordinate.
Before technical solution of the present invention, applicant proposed a base case, basic algorithm is by resolving RDP agreement, recognition image data by figure view data complete map to internal memory.When the view data of region of memory meets integrity demands, be converted to the data bitmap of 32 color ranges by internal storage data, by WINDOW GDI interface echo.
Internal storage data is called for short BS, the i.e. abbreviation of BackgroundScreen in herein.BS is the three-dimensional memory matrix of RDP image resolution ratio wide x resolution height x color range size, and data must carry out buffer memory in BS structure, otherwise can lose data above.
Initial echo algorithm is to rate conversion and echos such as whole BS carry out, finds in test process, although algorithm realization is relatively simple, is singly larger to terminal cpu resource occupancy.In like manner, initial zoom technology is then be equal proportion contracting, the bitmap put changing BS, contracting when reaching echo, puts effect.
Through test, the more high flow rate cpu resource of the resolution of image is more, because transform and use GDI echo to whole BS, needs a large amount of floating-point operations.When resolution reaches 720P and is above, single-pass data playback CPU on main flow desktop platform takies and can reach more than 50%, increase contracting, put computing after, also to consume more cpu resource.
According to the trace analysis to RDP graph data, find that RDP agreement is when more new image data, adopt local updating scheme, namely indeclinable region does not push new view data.So algorithmically, RDP data also only need the data mapping region of variation to BS, during echo, also only need the region of variation on echo BS.
The present invention adopts the maximum optimization of dynamic rectangular area dividing technical scheme to be exactly that the overall echo of front basic technology scheme is adjusted to dynamic local update area echo.Due to, technical scheme of the present invention comes from the enterprising one-step optimization in basis and the improvement of applicant's basic technology scheme before proposition, and this process has carried out test and trace analysis to the technical problem that need solve, and has paid creative work.
Technical solution of the present invention BS there is no change with front scheme in storage content and structure, but BS is divided into an X* Y 3D region, X, Y is wide, the high splitting ratio of the best calculated according to dynamic algorithm, in order at utmost promote performance and the consumption of local echo, the ration of division that dynamic algorithm provides meets under each conventional resolution, and piecemeal number is not less than 10000 pieces.The size supposing the region of memory that primary RDP graph data is corresponding is W*H*S, and so after over-segmentation, BS then becomes the 3D region of X*Y (W/X) * (H/Y) * S size.The local updating of RDP picture, is finally mapped to N number of zonule of BS, during echo, and also N number of zonule of only echo BS.Like this, decrease the data volume of bitmap-converted, decrease the pinup picture amount of GDI echo, thus optimize performance greatly.
The technical scheme that the present invention limits further is:
Aforesaid RDP agreement is based on the echo Zoom method of dynamic rectangular area dividing, and in step (), RDP protocol analysis is based on the RDP5.x protocol analysis method cracked; RDP protocol analysis technology is prior art, does not here repeat.
Aforesaid RDP agreement is based on the GDI echo of dynamic rectangular area dividing and Zoom method, and in step (two), memory data structure is described as:
Struct pixel
{
int PosX;
int PosY;
int Bpp;
}。
Aforesaid RDP agreement is based on the echo Zoom method of dynamic rectangular area dividing, in step (three), judge whether effective method is internal storage data: judge dot array data whether with the Data duplication of internal storage data (BS) corresponding region, internal storage data each dot matrix with corresponding memory-mapped data is contrasted one by one, once comparing result finds differences, then think that data are effective; If all dot array datas are all unchanged, then think data invalid.
Aforesaid RDP agreement is based on the echo Zoom method of dynamic rectangular area dividing, and in step (four), internal storage data being updated to corresponding region of memory is:
Internal storage data is divided into and is greater than 10000 little rectangular areas, this is greater than the little rectangle relating to Data Update in 10000 little rectangular areas and all enumerates out, if the little rectangular area that existence two is adjacent, then merge adjacent area.
The invention has the beneficial effects as follows:
The invention solves RDP source data echo and arbitrary ratio contracting, the actual demand of putting.Relative to prior art, RDP source data is not converted to stream media format by the present invention, but directly resolves the former agreement of RDP, peels off picture data and echo, eliminates the process being converted to stream media format, therefore:
There is following advantage in this programme:
1. system is disposed simple, does not need Streaming Media modular converter, only needs the copy of RDP original datagram to realize playback, simultaneously owing to eliminating the process of Streaming Media conversion, saves overhead.
2. the copy of the copy RDP data flow of RDP original datagram, relative to Streaming Media video recording, size is only its 1/5-1/10, if need to preserve copy, can save a large amount of disk space.
3. use the RDP view data of GDI playback, through test, the image sharpness relative current media data of playback improves a lot, the system resources consumption of playback is also little.
4. this programme solves the problem of convergent-divergent simultaneously, and substantially can accomplish the arbitrary ratio convergent-divergent to picture, the performance cost of convergent-divergent does not also significantly improve.
Accompanying drawing explanation
Fig. 1 is FB(flow block) of the present invention.
Embodiment
embodiment 1
The present embodiment provides a kind of RDP agreement based on the echo Zoom method of dynamic rectangular area dividing, and flow process as shown in Figure 1, comprising:
RDP protocol analysis and image data acquisition: the data such as the view data in separation RDP agreement and control data, and obtain view data; RDP protocol analysis is based on the RDP5.x protocol analysis method cracked; RDP protocol analysis technology is prior art, does not here repeat.
View data is converted to internal storage data: the view data comprised in RDP agreement comprises screen background, font and dot matrix image data etc. usually.Key is dot matrix image data, this data be exactly finally can be converted to bitmap and echo to the major part of the view data on screen.This step mainly each dot matrix of these type of data is converted to a memory data structure, this data structure can be described as:
Struct pixel
{
int PosX;
int PosY;
int Bpp;
}。
Judge internal storage data validity: analyze dot matrix image data in conjunction with screen background, character font data etc., and the judging point system of battle formations similarly is no can or needs be updated to BS, the resolving of this step, also obtain the region of memory of BS simultaneously.Judge whether effective method is internal storage data: judge dot array data whether with the Data duplication of internal storage data (BS) corresponding region, internal storage data each dot matrix with corresponding memory-mapped data is contrasted one by one, once comparing result finds differences, then think that data are effective; If all dot array datas are all unchanged, then think data invalid.
Internal storage data is updated to BS: by each dot array data in internal memory, upgrades each dot matrix in BS.Call partitioning algorithm and obtain corresponding small rectangular.BS is divided into the individual little rectangular area being greater than 10000, so need the data be updated in BS, within must being included in these 10000 little rectangular areas, this little rectangle wherein relating to Data Update is all enumerated out, need exactly to upgrade the data of echo.In order to optimize amount of calculation, adjacent zonule can be merged.Illustrate: if there is two adjacent little rectangular area X1 ~ X1+1, Y1 ~ Y2 and X1+1 ~ X1+2, Y1 ~ Y2, then merge into a larger rectangular area X1 ~ X1+2, Y1 ~ Y2.Increase union operation, relative to the situation of nonjoinder, the region that disposable transformation one is larger, decreases the consumption of CPU.
The view data that BS maps rectangular area is converted to bitmap: for GDI echo prepares data, because GDI echo is data bitmap.This step, is converted to little rectangle by the dot array data in the BS rectangular area of enumerating out.
Contract, put computing: bitmap carries out equal proportion convergent-divergent, calculates the echo coordinate of equal proportion simultaneously, if do not need convergent-divergent, then skips over.
By WIN-GDI echo data bitmap: the bitmap little by each, is plotted on screen according to coordinate.
Corresponding RDP agreement, based on the echo panntographic system of dynamic rectangular area dividing, comprising:
RDP protocol resolution module, for separating of the view data in RDP agreement and control data, obtains view data;
Image data is converted into internal storage data module, for each dot matrix of the dot matrix image data in view data is converted to a memory data structure;
Internal storage data Effective judgement module, for judging internal storage data validity;
Internal storage data update module, for being updated to core position corresponding to internal storage data by internal storage data;
View data conversion bitmap module, is converted to bitmap for view data internal storage data being mapped rectangular area;
Bitmap carries out equal proportion Zoom module, for bitmap being carried out equal proportion convergent-divergent and calculating the echo coordinate of equal proportion;
Echo data bitmap module, for passing through WIN-GDI echo data bitmap, and is plotted to each little bitmap on screen according to coordinate.
Through test, using the source data of 720P as test source:
Play Platform configuration CPU takies
Play single screen film CPU E5700 2G internal memory 15%
Play single screen film and CPU curve colleague display CPU E5700 2G internal memory 35%
Play four screen CPU curves CPU E5700 2G internal memory 55%
Play four screen CPU films CPU E5700 2G internal memory 60%
According to above test result, on a main flow desktop platform, the RDP video recording on 4 ~ 6 tunnels, synchronous screen playback can be met simultaneously, well meet the requirement of safe O&M and audit.
In addition to the implementation, the present invention can also have other execution modes.All employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop on the protection range of application claims.

Claims (5)

1.RDP agreement is based on the echo Zoom method of dynamic rectangular area dividing, it is characterized in that: comprising: step (), RDP protocol analysis, be separated the view data in RDP agreement and control data, obtain view data, described view data comprises screen background, character font data and dot matrix image data; Step (two), each dot matrix of dot matrix image data step () obtained in view data is converted to a memory data structure; Step (three), judges that whether internal storage data is effective, if invalid, then returns step (); If effectively, then enter next step; Step (four), is updated to corresponding region of memory by internal storage data; In described step (four), internal storage data being updated to corresponding region of memory is: internal storage data is divided into and is greater than 10000 little rectangular areas, this is greater than the little rectangle relating to Data Update in 10000 little rectangular areas all enumerate out, if there are two adjacent little rectangular areas, then merge adjacent area; Step (five), the view data in the region be mapped in internal memory by rectangle picture is converted to bitmap, for GDI echo prepares data, the dot array data in the internal storage data rectangular area of enumerating out is converted to little rectangle; Step (six), carries out equal proportion convergent-divergent by bitmap, calculating the echo coordinate of equal proportion simultaneously, if do not needed convergent-divergent, then directly entering next step; Step (seven), by WIN-GDI echo data bitmap, the bitmap that each is little is plotted on screen according to coordinate.
2. RDP agreement as claimed in claim 1 is based on the echo Zoom method of dynamic rectangular area dividing, and it is characterized in that: in described step (), RDP protocol analysis is based on the RDP5.x protocol analysis method cracked.
3. RDP agreement as claimed in claim 1 is based on the GDI echo of dynamic rectangular area dividing and Zoom method, it is characterized in that: in described step (two), memory data structure is described as:
Struct pixel
{
int PosX;
int PosY;
int Bpp;
}。
4. RDP agreement as claimed in claim 1 is based on the echo Zoom method of dynamic rectangular area dividing, it is characterized in that: in step (three), judge whether effective method is internal storage data: judge dot array data whether with the Data duplication of internal storage data corresponding region, internal storage data each dot matrix with corresponding memory-mapped data is contrasted one by one, once comparing result finds differences, then think that data are effective; If all dot array datas are all unchanged, then think data invalid.
5. for the RDP agreement of method described in claim 1 based on the echo panntographic system of dynamic rectangular area dividing, it is characterized in that: comprising: RDP protocol resolution module, for separating of the view data in RDP agreement and control data, obtain view data; View data is converted into internal storage data module, for each dot matrix of the dot matrix image data in view data is converted to a memory data structure; Internal storage data Effective judgement module, for judging internal storage data validity; Internal storage data update module, for being updated to core position corresponding to internal storage data by internal storage data; View data conversion bitmap module, the view data for the region be mapped in internal memory by rectangle picture is converted to bitmap; Bitmap carries out equal proportion Zoom module, for bitmap being carried out equal proportion convergent-divergent and calculating the echo coordinate of equal proportion; Echo data bitmap module, for passing through WIN-GDI echo data bitmap, and is plotted to each little bitmap on screen according to coordinate.
CN201210267183.4A 2012-07-30 2012-07-30 Echo zooming method and system based on dynamic rectangular region partitioning of RDP (remote desktop protocol) Active CN102752570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210267183.4A CN102752570B (en) 2012-07-30 2012-07-30 Echo zooming method and system based on dynamic rectangular region partitioning of RDP (remote desktop protocol)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210267183.4A CN102752570B (en) 2012-07-30 2012-07-30 Echo zooming method and system based on dynamic rectangular region partitioning of RDP (remote desktop protocol)

Publications (2)

Publication Number Publication Date
CN102752570A CN102752570A (en) 2012-10-24
CN102752570B true CN102752570B (en) 2015-07-01

Family

ID=47032449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210267183.4A Active CN102752570B (en) 2012-07-30 2012-07-30 Echo zooming method and system based on dynamic rectangular region partitioning of RDP (remote desktop protocol)

Country Status (1)

Country Link
CN (1) CN102752570B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453202A (en) * 2015-08-06 2017-02-22 中兴通讯股份有限公司 RDP protocol data playback method, playing server and system thereof
CN111800615B (en) * 2020-07-15 2022-03-08 成都安恒信息技术有限公司 Method for generating H.264 code stream by RDP with data noise reduction function

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197990A (en) * 2006-12-13 2008-06-11 四川川大智胜软件股份有限公司 Screen vision recording method irrelated with hardware and operating system platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307103B2 (en) * 2009-03-09 2012-11-06 Microsoft Corporation Tear-free remote desktop protocol (RDP) display

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197990A (en) * 2006-12-13 2008-06-11 四川川大智胜软件股份有限公司 Screen vision recording method irrelated with hardware and operating system platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络协议安全审计系统设计及其Web应用的实现;韦成府;《中国优秀硕士学位论文全文数据库》;20091231;41-54 *

Also Published As

Publication number Publication date
CN102752570A (en) 2012-10-24

Similar Documents

Publication Publication Date Title
CN1261858C (en) Display method of double display computer system
CN101854350B (en) Multidisciplinary collaborative-design information communication platform
CN102393966B (en) Self-adapting image compressive sampling method based on multi-dimension saliency map
CN107943363B (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN109920056B (en) Building rendering method, device, equipment and medium
CN103888840A (en) Method and device for dragging and zooming video mobile terminal in real time
WO2020125062A1 (en) Image fusion method and related device
CN103402089A (en) Virtual desktop image compressing method based on macro block technology
CN103365980A (en) Slideshow-based dynamic content adjustment method
CN102752570B (en) Echo zooming method and system based on dynamic rectangular region partitioning of RDP (remote desktop protocol)
KR20230132350A (en) Joint perception model training method, joint perception method, device, and storage medium
CN103455973B (en) Method and device for drawing screen images
CN101127847A (en) A screen display synthesis method and synthesis device
CN105894452B (en) Framing output method is cut based on virtual printing technology different scale orthography
CN104317972B (en) A kind of dynamic layer inducing method and system
CN107393410B (en) Method, medium, apparatus and computing device for presenting data on map
CN115660984A (en) Image high-definition restoration method and device and storage medium
WO2021208369A1 (en) Image correction method and apparatus
CN111814220B (en) CAE cloud simulation implementation method
CN106547505B (en) Method and system for real-time sliding display of scanned image
CN110910364B (en) Three-section fire scene easy-to-trigger fire electrical equipment detection method based on deep neural network
CN106803231A (en) A kind of figure parallel drawing method based on sort first load balances
CN105607886A (en) Education cloud video data display processing system and method based on Internet of things
CN111104470A (en) Method and system for linkage of electronic sand table and emergency platform
WO2014067138A1 (en) Image processing method, apparatus and computer-readable medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200901

Address after: Room 1525, 15 / F, building 10, 6, 8, 10, 12, 16, 18 xuanwumenwai street, Xicheng District, Beijing 100052

Patentee after: Dexun innovation (Beijing) Technology Co., Ltd

Address before: No. 21 Huashen road Nanjing Yuhua District 210010 in Jiangsu Province

Patentee before: DATCENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right