A kind of in piecing together wall the method for level and smooth mobile zoomed image
[technical field]
The present invention relates to a kind of method for displaying image, refer in particular to and be applied in the display packing that the mobile convergent-divergent of piecing together on the wall is handled image.
[background technology]
Along with the expansion of piecing together the wall application, display image and how to carry out image translation etc. better and be operable to an inevitable problem better in piecing together wall how, the translation of image not only relates to the image block display synchronization between the single display end, also relates to the synchronous demonstration between the display end.The convergent-divergent of image can the switching proportion chi, and also switching proportion chi not needs to show again but final effect is an image, even need stride screen again and show, this relates to the problem of the level and smooth display image of display end of how allowing equally.
In traditional technology, map image in piecing together wall, move or convergent-divergent in, speed is slower, image shows interrupted, often give user's feel " image is one one and comes out ", can make user's operation very not smooth like this, also hinder the display effect of piecing together wall on the other hand, very flexible, and efficient is not high.
Therefore, it is level and smooth smooth to provide a kind of image to show, the good and speed of display effect faster in piecing together wall the method for level and smooth mobile zoomed image real be necessity.
[summary of the invention]
It is level and smooth smooth to the object of the present invention is to provide a kind of image to show, the good and speed of display effect is the method for level and smooth mobile zoomed image in the assembly wall faster.
For realizing the object of the invention, provide following technical scheme:
The invention provides a kind of in piecing together wall the method for level and smooth mobile zoomed image, this assembly wall system comprises image server, Control Server and display end, wherein image server is used for sending image resource information to Control Server, also is used for simultaneously sending image block data to display end.Control Server then is responsible for the demonstration of control display end and the transmission of image block data.Display end can simply be interpreted as a display unit of piecing together in the wall.
The method of the present invention's level and smooth mobile zoomed image in piecing together wall comprises the steps:
(1) image server is registered to Control Server, informs the usable image resource that exists in the current system of Control Server; Display end is registered to Control Server, and Control Server feeds back the information that this display end is being pieced together the position in the wall display end matrix and pieced together the current display image of wall to display end;
(2) Control Server sends the image manipulation order to display end, comprises a time tag in the order, is used to inform when display image of display end;
(3) display end is according to the information from position in piecing together wall display end matrix and the current display image of assembly wall, to image server application and buffer memory image block data;
(4) display end judges whether display image according to the time tag that receives from Control Server, and the time of time tag indication by the time shows image.
In the step (1), Control Server comprises information such as the figure image width height of image zoom ratio and demonstration and indication range thereof to the information of the current display image of assembly wall of display end feedback.
In the step (2), Control Server sends the image manipulation order to display end and comprises display image order, mobile image command, zoomed image order.
In the step (3), display end adopts the access method of transmission of view data piecemeal and demonstration to image server application and buffer memory image block data.In the access method of this view data piecemeal transmission and demonstration, image block is handled, view data is that unit transmits with " piece " and shows that display end is with image block chain sheet form storing image data that this method comprises the steps:
(a) display end calculates the image block data that it need be asked according to piecing together matrix size and the position and the scaling of current display end in matrix that wall shows;
(b) display end is according to the result of calculation of step (a), to image server request present image blocks of data and image block data on every side;
(c) display end receives and the cache image blocks of data, and these image block data are inserted in the image block chained list.
The described image block of this step (a) comprises current display area and image block on every side thereof, and current display area and image block on every side thereof in the adjacent engineer's scale.
The image block data of current display area in the current engineer's scale of override requests in this step (b), next is the image block data around the current middle current display area, then being the image block data of current display area in the adjacent engineer's scale, is the image block data around the current display area in the adjacent engineer's scale at last.
The new image block data that gets access to is inserted into the afterbody of current display image blocks of data chained list, and in display end, image block data is present in internal memory and the local fixed memory device.Least enliven the image block that image block data is come buffer memory the maintenance system by afterbody deletion from the image block data chained list.
The systemic presupposition resources occupation rate exceeds warning value, when resources occupation rate exceeds warning value, preferentially deletes the non-image block chained list that closes on engineer's scale of current display image; Deletion closes on the image block data of the non-current display area of engineer's scale image block again; Be that non-current display image piece is deleted by unit with several image block data then; Be that the image block data of closing on the current display area of engineer's scale is deleted from internal memory at last.If carry out the current display image piece in the only remaining current demonstration chained list in deletion back, the system resource occupancy still is higher than warning value, just carries out error handling processing.
In the step (4), the image block unification that display end will need to show unzips in the same region of memory, then according to the time tag that receives from Control Server, judge whether display image, the time of time tag indication by the time, again the view data in this region of memory is shown, realize the whole effect that shows of display end image block.
The contrast prior art, the present invention has the following advantages:
The method of the method for the present invention's level and smooth mobile zoomed image in piecing together wall by using the image block transmission and showing reduces the transmission delay of view data in network, quickens the speed of display end display image; By with image block decompress(ion) buffer memory, and send label unified time for each display end, the realization image synchronization shows, reduce and the inconsistent problem of image speed not smooth or each display end display image occurs, so, just can make the mobile or convergent-divergent of image in piecing together wall become very level and smooth, and the phenomenon of " block-by-block demonstration " can not occur.
[description of drawings]
Fig. 1 is the synoptic diagram of the assembly wall system among the present invention;
Fig. 2 is the quick-reading flow sheets synoptic diagram of the inventive method.
[embodiment]
See also Fig. 1, assembly wall system among the present invention comprises image server, Control Server and display end, wherein image server is used for (which image is system have to Control Server transmission image resource information, and the summary info of these images, as image name, creation-time etc.), also be used for simultaneously sending image block data to display end.Control Server then is responsible for the demonstration of control display end and the transmission of image block data.Display end can simply be interpreted as a display unit of piecing together in the wall, the corresponding separate host in logic of display end.
See also Fig. 2, the method for the present invention's level and smooth mobile zoomed image in piecing together wall comprises the steps:
(1) image server is registered to Control Server, informs the usable image resource that exists in the current system of Control Server; Simultaneously, display end is registered to Control Server, and Control Server feeds back the position and information such as the figure image width height of piecing together wall current display image scaling and demonstration and indication range thereof of this display end in assembly wall display end matrix to display end;
(2) Control Server sends image manipulation orders such as display image, mobile image, zoomed image to display end, comprises a time tag in the order, is used to inform when display image of display end;
(3) the display end basis is from position in assembly wall display end matrix and the information of piecing together the current display image of wall, and the access method of piecemeal transmission of employing view data and demonstration is to image server application and buffer memory image block data;
(4) display end judges whether display image according to the time tag that receives from Control Server, and the time of time tag indication by the time shows image.
Because image is the image of large format very normally, for the ease of image data transmission and demonstration, we usually are divided into a lot of fritters with a complete picture number, send to each display end in the mode of image block then and show.In step (3), this view data piecemeal transmission and the access method that shows are handled image block, and view data is that unit transmits with " piece " and shows that display end is with image block chain sheet form storing image data.
By this method, we can improve the efficient that display end obtains the image block data that will show, the operating delay that process such as reduce that data are transmitted in network is brought improves display end image speed of displaying.This method mainly is to pass through certain method, the image block that display end soon might be used shifts to an earlier date to the image server application, and decompress(ion) is pre-stored in internal memory or other memory devices then one by one, when the image block data that need use these preliminery applications when display end shows, display end just can directly use these to be pre-stored in image block data in the memory devices such as internal memory, be shown to and piece together on the wall, and need not send the image block data request and wait for the image block data that image server sends over to image server again, this has just reduced the time-delay that the image block factor causes according to transmission in network, and realizes the whole effect that shows of image block.
This view data piecemeal transmission and the access method that shows comprise the steps:
(a) display end calculates the image block data that it need be asked according to piecing together matrix size and the position and the scaling of current display end in matrix that wall shows;
(b) display end is according to the result of calculation of step (a), to image server request present image blocks of data and image block data on every side;
(c) display end receives and the cache image blocks of data, and these image block data are inserted in the image block chained list.
The described image block of this step (a) comprises current display area and image block on every side thereof, and current display area and image block on every side thereof in the adjacent engineer's scale.
The image block data of current display area in the current engineer's scale of override requests in this step (b), next is the image block data around the current middle current display area, then being the image block data of current display area in the adjacent engineer's scale, is the image block data around the current display area in the adjacent engineer's scale at last.
The new image block data that gets access to is inserted into the afterbody of current display image blocks of data chained list, and in display end, image block data is present in internal memory and the local fixed memory device.Least enliven the image block that image block data is come buffer memory the maintenance system by afterbody deletion from the image block data chained list.
The systemic presupposition resources occupation rate exceeds warning value, when resources occupation rate exceeds warning value, preferentially deletes the non-image block chained list that closes on engineer's scale of current display image; Deletion closes on the image block data of the non-current display area of engineer's scale image block again; Be that non-current display image piece is deleted by unit with several image block data then; Be that the image block data of closing on the current display area of engineer's scale is deleted from internal memory at last.If carry out the current display image piece in the only remaining current demonstration chained list in deletion back, the system resource occupancy still is higher than warning value, just carries out error handling processing.
Because assembly wall is made up of 2 even more display end usually, piece image both might be distributed in above a plurality of display ends, and like this, if when guaranteeing that image moves, the image of each display end moves and is consistent, and is a problem of needs solution.For addressing this problem, the method that we adopt is: send the unified time label by Control Server to each display end, display end like this, can accomplish that just the picture of all display ends upgrades at one time according to the time update displayed picture in the time tag then.
As, be " April 2 2008 Beijing time, 20:55 divided 59800 milliseconds " now, Control Server sends a time tag to each display end, unified display end " 20:56 divides whole in April 2 2008 Beijing time " the update displayed picture of telling, like this, all display ends are received and will be picked up counting after this time tag, when arriving " April 2 2008 Beijing time, 20:56 divided whole ", just can upgrade display frame.In the meantime, display end may be received " mobile image " or the requests such as " zoomed images " that control end sends over, but because also not to time of time label agreement, display end just can not show picture, when the time tag of arrival official hour such as having only, just picture is shown.And the user can come customized time tag according to the actual needs of oneself fully, for example user's operation of moving occurs in " April 2 2008 Beijing time, 20:55 divided 59800 milliseconds ", if display end can be handled all image block data well and can be used for showing with interior at 200 milliseconds so, just the user can unify transmitting time label " 20:56 divides whole in April 2 2008 Beijing time " update displayed picture to display end so.So, stride with regard to having solved image well that screen moves or the problem of the synchronous demonstration of convergent-divergent.
The present invention is by adopting above method, solved preferably just that the image graph picture moves in flat wall or the level and smooth demonstration problem of convergent-divergent.
The above is preferred embodiment of the present invention only, and protection scope of the present invention is not limited thereto, and anyly all belongs within the protection domain of the present invention based on the equivalent transformation on the technical solution of the present invention.