The present invention relates to sharing an image. In particular, the present invention relates to sharing an image between a first terminal and a second terminal.
An image may be shared between a number of different terminals within a network. This allows the image to be displayed at each terminal. This can be achieved by transmitting image data representing the image between different terminals. Furthermore, if an image is changed at a first terminal it can be useful for a changed version of the image to be transmitted to a second terminal. In this way a user at the second terminal can view changes to an image made at the first terminal. Changes to an image made at a first terminal may be transmitted to more than one other terminal.
One example in which it is useful to transmit changes made to an image from a first terminal to a second terminal is when implementing screen sharing. Screen sharing is a useful technique for communication between two terminals. Images displayed on a first screen at a first terminal (or “sharer” terminal) can be transmitted to a second terminal (or “viewer” terminal) and displayed on a second screen at the second terminal. With screen sharing the image is a screen capture of the first screen. Terminals implementing screen sharing can communicate with each other using a point-to-point communication. As an example, screen sharing can be particularly useful when a first user at the first terminal (the “sharer”) is trying to explain what they are seeing on their screen to a second user at the second terminal (the “viewer”) because with screen sharing the viewer can see images that are displayed on the sharer's screen.
When the image at the sharer terminal is changed then those changes are transmitted to the viewer terminal, and the image displayed on the viewer's screen can be updated accordingly to reflect the changes. When only certain areas of the image are changed at the sharer terminal then screen rectangles representing those areas in need of updating are transmitted from the sharer terminal to the viewer terminal.
It is often preferable for the updating of the image on the viewer's screen to be performed in real-time as the image on the sharer's screen is changed. This is particularly preferable when, for example, the sharer and the viewer are simultaneously engaged in screen sharing and a communication session such as a call or an instant messaging session.
According to a first aspect of the invention there is provided a method of sharing an image between a first terminal and a second terminal, the method comprising: receiving an original version of the image at a server from the first terminal; receiving tiles at the server from the first terminal, each tile representing at least a section of the image and including a change made to the image at the first terminal; maintaining an image state at the server identifying which tiles are required for forming a latest version of the image; and on determining that the latest version of the image is to be formed at the second terminal, transmitting, from the server to the second terminal, tiles based on the image state for forming the latest version of the image.
According to a second aspect of the invention there is provided a server for use in sharing an image between a first terminal and a second terminal, the server comprising: receiving means for receiving an original version of the image from the first terminal, the receiving means being further for receiving tiles from the first terminal, each tile representing at least a section of the image and including a change made to the image at the first terminal; maintaining means for maintaining an image state at the server identifying which tiles are required for forming a latest version of the image; and transmitting means for transmitting to the second terminal, on determining that the latest version of the image is to be formed at the second terminal, tiles based on the image state for forming the latest version of the image.
According to a third aspect of the invention there is provided a network comprising: a server according to the second aspect of the invention; the first terminal; and the second terminal.
According to a fourth aspect of the invention there is provided a computer program product comprising computer readable instructions for execution by computer processing means at a server for sharing an image between a first terminal and a second terminal, the instructions comprising instructions for: receiving an original version of the image at the server from the first terminal; receiving tiles at the server from the first terminal, each tile representing at least a section of the image and including a change made to the image at the first terminal; maintaining an image state at the server identifying which tiles are required for forming a latest version of the image; and on determining that the latest version of the image is to be formed at the second terminal, transmitting, from the server to the second terminal, tiles based on the image state for forming the latest version of the image.
The image state identifies which tiles are required for forming the latest version of the image. When an image is changed at the first terminal it might be that only part of the image is changed and the rest of the image is unchanged. Tiles representing the changed parts of the image are transmitted to the server and may replace previously received tiles representing the parts of the image that have changed. The image state is updated accordingly to identify the new tiles rather than previously received tiles which have been superseded by the new tiles. However, the image state will still identify previously received tiles which represent parts of the image which are not represented by the new tiles. In this way the image state identifies the tiles that are required to completely render the latest version of the image. The tiles identified by the image state may be received at the server at different times. The image state can be considered to be a list of tiles that may be used to redraw the latest version of the image.
The image state can be used by the second terminal to determine which tiles are required to form the latest version of the image. Either the server or the second terminal may determine which of the tiles identified by the image state are not already stored at the second terminal, and then those determined tiles can be transmitted to the second terminal such that the second terminal can form the latest version of the image.
Where the second terminal has a slow link for receiving data from the server, only some of the image states may be transmitted to the second terminal. For example, tiles representing the latest version of the image may be transmitted to the second terminal less frequently than they are received from the first terminal. This results in graceful degradation in terms of slower update rate at the second terminal end, thereby effectively implementing a simple rate control of data being sent to the second terminal. In particular intermediate tiles that have been overwritten between requests for the latest version of the image at the second terminal are not sent to the second terminal. This allows the method to adapt to the particular attributes of the second terminal. This allows slower recipients, i.e those terminals with a relatively slow downlink connection, or a relatively slow processor, to receive fewer updates of the image, thus reducing the bandwidth used and the processing power required at the recipient terminal (e.g. the second terminal).
The storing of tiles and the image state on the server allows new view clients (on further terminals) to join a screen sharing session at any time, without a need for the share client (at the first terminal) to upload any additional data. The new view client requests from the server the tiles that are required for forming the latest version of the image. The server can return the required tiles based on the image state to allow the new view client to form the latest version of the image. This is achieved without the first terminal being required to transmit any extra data for the new view client, and may even be achieved without the first terminal being aware of the new view client accessing the image. The server based system for implementing screen sharing can therefore be advantageous as compared to a point-to-point system in which data is transmitted from the first terminal directly to the second terminal.
In some embodiments, the method is implemented in a method of screen sharing. Changes to the image displayed on the sharer's screen are transmitted to the server by transmitting encoded portions of the image (i.e. tiles) that include any changes made to the image at the first terminal. Viewers may request, or receive by means of push, the tiles from the server that are required to form the latest version of the image in accordance with the image state.
For a better understanding of the present invention and to show how the same may be put into effect, reference will now be made, by way of example, to the following drawings in which:
a is a flow chart for a process of updating an image state according to a preferred embodiment;
b is a flow chart for a process of transmitting tiles to a second terminal;
a is a representation of a first tile of the image which has changed;
b is a representation of the image state following the receipt of the first tile;
a is a representation of further tiles of the image which have changed;
b is a representation of the image state following the receipt of the further tiles;
a is a representation of the image state following a step of combining tiles in a first combination; and
b is a representation of the image state following a step of combining tiles in a second combination.
With reference to
In operation, updates to an image at the first terminal 104 are to be transmitted to the second terminal 120. Image data can be transmitted over the network 100 from the first terminal 104 to the second terminal 120 via the server 112. Sections of an image in need of updating can be encoded as tiles. A tile is one block of an image which can be encoded and transmitted from the first terminal 104 over the network 100. The second terminal 120 can use a received tile to update the particular block of the image to which the tile relates. In this way changes made to the image at the first terminal 104 can also be made to the image at the second terminal 120. In the same way, changes made to the image at the first terminal 104 can also be made at the further terminal 130.
In preferred embodiments the updates to an image are used for screen sharing between the first terminal 104 and the second terminal 120 in which images displayed on the display 106 at the first terminal 104 are also displayed on the display 122 at the second terminal 120. The second terminal 120 is a viewer terminal in the screen sharing session. There may be more than one viewer terminal in a screen sharing session. For example, both the second terminal 120 and the further terminal 130 may be viewer terminals in a screen sharing session. There may be more viewer terminals in the screen sharing session than those described here in relation to
A method of sharing an image between the first terminal 104 and the second terminal 120 according to a preferred embodiment is now described with reference to the flow charts of
In step S202 image data representing the image at the first terminal 104 is received at the server 112. The first time that the image data is sent to the server 112, the whole image (i.e. the original image) is transmitted. In this way the server 112 has all of the data required to form the original image. As described above the image is encoded in tiles for transmission from the first terminal 104 to the server 112. There is nothing special about the original image compared to later versions of the image. The image may be encoded in a single tile covering the whole image, this can be called a “full tile”. Alternatively, the image may be encoded in a plurality of tiles, each tile representing a section of the image.
The image may be changed at the first terminal 104. In step S204 new tiles are received at the server 112 from the first terminal 104. The new tiles represent at least a section of the image and include a change made to the image at the first terminal 104. Tiles are transmitted from the first terminal 104 to the server 112 whenever a change is made to the image at the first terminal 104, wherein the tiles represent the changes made to the image. In this way the server 112 is provided with all of the tiles required to form the latest version of the image.
a shows an example of a tile 402 which is transmitted from the first terminal 104 to the server 112. The tile 402 includes a change that has been made to the image at the first terminal 104. It can be seen in the example shown in
In step S206 the server 112 updates an image state. The image state identifies which tiles are required for forming the latest version of the image. For example, after having received tile 402, the image state will identify the tiles shown in
The image state is updated such that tile 302 is no longer identified by the image state because tile 302 is no longer needed for forming the latest version of the image. When a tile, such as tile 302, is no longer identified by the image state, the tile may be removed from the memory 116 of the server 112. This reduces the amount of unnecessary data stored in the memory 116 of the server 112. Alternatively, tiles might not be removed from the memory 116 of the server 112 when they are no longer identified by the image state. The updating of the image state may be performed at the server 112 once the tile 402 has been received at the server 112. Alternatively, the updating of the image state may be performed at the first terminal 104 and uploaded with the tiles to the server 112. With this alternative implementation, the server 112 is not required to be capable of complex operations, and may be for example just a standard web server. Therefore, in this alternative implementation the server 112 can be considered to be a store/forward machine in the network 100.
Following step S206 the server 112 has stored updated tiles required for forming the latest version of the image and an updated image state identifying those required tiles.
With reference to
Once it has been determined in step S208 that the latest version of the image is to be formed at the second terminal 120 then the method passes to step S210. In step S210 tiles are transmitted from the server 112 to the second terminal 120 based on the image state. In this way the tiles which are required for forming the latest version of the image are transmitted to the second terminal 120. Where the second terminal 120 has already stored some of the tiles identified by the image state then those tiles may, or may not, be transmitted again to the second terminal 120. Those tiles identified by the image state which are not already stored at the second terminal 120 are transmitted from the server 112 to the second terminal 120. Therefore the second terminal 120 is provided with all of the tiles identified by the image state for forming the latest version of the image.
In some embodiments, a view client executing on the CPU 124 at the second terminal 120 requests a screen update from the server 112. A notification is sent from the second terminal 120 to the server 112 notifying the server 112 that the latest version of the image is to be formed at the second terminal 120. This may be how it is determined that the second terminal 120 is to form the latest version of the image in step S208 described above. In response, the server 112 transmits the image state to the second terminal 120. Based on the image state the second terminal 120 determines which of the tiles identified by the image state are not already stored at the second terminal 120. The second terminal 120 then transmits a request to the server 112 for the determined tiles. In response, as described above in step S210, the server 112 transmits the requested tiles to the second terminal 120 for forming the latest version of the image at the second terminal 120.
In other embodiments, the server 112 pushes the image state to the second terminal 120 rather than waiting for the second terminal 120 to notify the server 112 that the latest version of the image is to be formed at the second terminal 120. In this embodiment, it is the server 112 that determines that the second terminal is to form the latest version of the image in step S208. The server 112 may make this determination by keeping track of when updated tiles are transmitted to the second terminal 120. For example, the server 112 may determine that the second terminal 120 should receive the latest version of the image at regular time intervals. Alternatively, the server 112 may determine that the second terminal 120 should receive a latest version of the image whenever tiles are received at the server 112 from the first terminal 104 such that all updates to the image are transmitted to the second terminal 120. Once the image state is received at the second terminal 120 the method proceeds in the same way as described above. This means that the second terminal 120 determines which of the tiles identified by the image state are not already stored at the second terminal 120. The second terminal 120 then transmits a request to the server 112 for the determined tiles. In response, as described above in step S210 the server 112 transmits the requested tiles to the second terminal 120 for forming the latest version of the image at the second terminal 120.
In further embodiments, the image state is not transmitted to the second terminal 120 which means that a view client executing on the second terminal 120 (for processing the image data) is unaware of the image state. The determination that the second terminal 120 is to form the latest version of the image can be achieved in either of the two ways described above (i.e. the determination can be made by the second terminal 120 with a notification being sent to the server 112, or the determination can be made by the server 112 itself). The server 112 transmits those tiles required for forming the latest version of the image to the second terminal 120. The server 112 may transmit all of the tiles identified by the image state. Alternatively, the server 112 may transmit only the tiles identified by the image state which are not already stored at the second terminal 120. In order to achieve this the server 112 keeps a record of the tiles that have been transmitted to, and stored at, the second terminal 120. The result is that the second terminal 120 receives only the tiles required to render the latest version of the image. An advantage of not transmitting the image state to the second terminal 120 that latency in updating the image at the second terminal 120 following changes made at the first terminal 104 is reduced, and the bandwidth efficiency over the network is increased (since the image state is not transmitted over the network). However, these advantages are at the cost of increased server complexity. It can be beneficial to reduce the complexity of the server 112 such that very simple servers can be used to implement the method.
In some embodiments the server 112 determines the image state. This means that the server 112 computes which tiles are to be identified by the image state as being required for forming the latest version of the image. The computation is based on the tiles received from the first terminal 104. The positions of the tiles in the image are used to determine how the tiles should be used to form the image. Therefore preferably the tiles include a tile header which identifies the position of the tile in the image. For example, a tile header may indicate a first picture element position of the tile and a width and height of the tile. This will result in the tile being a rectangular section of the image. Other shaped tiles are also possible. The term “rectangular section” here is used to mean a quadrilateral section having four right angles. In this sense the “rectangular section” could be in the form of a rectangle whose sides are not all of the same length, and the “rectangular section” could also be in the form of a square whose sides are all of the same length. The tiles can have an arbitrary size, and indeed the size of the tiles can be varied. For example, two tiles of an image with a width (w) of 1024 picture elements (or “pixels”) and a height (h) of 768 picture elements could have the following attributes:
Here, “seq” indicates the tile number, and “x” and “y” indicate the picture element location of the first picture element in the tile. This example highlights the fact that having tiles which are rectangular sections of the image allows the location of the tiles in the image to be encoded very easily.
Using the positions of the tiles the server 112 can determine whether newly received tiles should replace previously received tiles or whether both the newly received tiles and the previously received tiles are required for forming the most recently updated version of the image (i.e. the latest version of the image). As an example, the tile 402 shown in
In other embodiments the first terminal 104 determines the image state. In other words the first terminal 104 computes which tiles are to be identified by the image state as being required for forming the latest version of the image. For example, the first terminal 104 may execute a share client using the CPU 108 for use in processing the data of a screen sharing session with the second terminal 120. The share client can perform the data processing operations required for determining the image state. The image state determined at the first terminal 104 can then be transmitted together with each set of tiles representing the change of one screen capture to the server 112. An advantage of performing the computations at the first terminal (e.g. using the sharer client) is that the complexity and computation requirements of the server 112 can be significantly reduced. Indeed, the server 112 might be a standard web server, which might not have the capability to perform the computations on the tiles which are required for implementing the method described herein.
The method steps described above and shown in
The configuration of the tiles may be flexible. In particular, the position, size and shape of the tiles may be varied. This allows the tiles to efficiently represent sections of the image which have been changed at the first terminal 104. Where the configuration of the tiles is flexible in this way, new tiles received at the server 112 might not represent the exact same section of the image as a previously received tile. For example, the image represented by the tiles 304, 306, 308 and 402 as shown in
The image state may be controlled in various ways. For example, it is beneficial to not let the image state grow too large, since transmitting the tiles identified by the image state (e.g. to a new viewer wishing to view the latest version of the image) would require large amounts of data to be downloaded in order to render the latest version of the image. The tiles may advantageously be compressed using any compression algorithm, such as Joint Photographic Experts Group (JPEG) compression or Portable Network Graphics (PNG) compression, to thereby reduce the amount of data contained in the tiles for transmission over the network.
Furthermore, the amount of data contained in the tiles identified by the image state might not be allowed to exceed a set threshold. The threshold may for example be in kilo bytes. If the threshold is exceeded, then two or more tiles can be combined to form larger tiles. The combined tile(s) represent the sections of the image represented by the two or more tiles which are combined to form the combined tile(s). This effectively reduces the number of tiles identified by the image state, and reduces the amount of data contained in the image state. This is particularly effective in reducing the amount of data contained in the tiles identified by the image state where the tiles that are combined have overlapping positions in the image. Where this is the case the combined tile represents a smaller section of image data than the sum of the tiles that are combined. Furthermore, each tile has a tile header comprising control data for the tile, e.g. the position of the tile in the image. By combining tiles the number of tile headers is reduced and therefore the amount of data contained in the tiles identified by the image state is reduced.
For example, the tiles 306, 402, 502 and 504 may be combined into a single tile 610a as shown in
Instead of determining when the amount of data contained in the tiles identified by the image state exceeds a threshold, it may instead be determined whether the number of tiles identified by the image state exceeds a threshold. In this case, the threshold for triggering state reduction is in terms of the number of tiles rather than the amount of data contained in the tiles. When the number of tiles identified by the image state exceeds the threshold, tiles can be combined in the same way as described above, thereby reducing the image state.
In some embodiments, both the amount of data and the number of tiles identified by the image state are taken into account in determining when to combine tiles.
When it is determined that tiles should be combined to thereby reduce the image state it may be beneficial to combine all of the tiles identified by the image state into a single tile. This is shown in
An image may be shared with more than one other terminal over the network 100. For example, the first terminal 104 may engage in a screen sharing session with more than one other terminal over the network 100. As well as sharing the image with the second terminal 120 as described above, the further terminal 130 may enter the sharing session at any time. The further terminal 130 can communicate with the server 112. Since the server 112 maintains the image state, the server 112 can inform the further terminal 130 which tiles are required for forming the latest version of the image. The required tiles can then be transmitted from the server 112 to the further terminal 130 thereby allowing the further terminal 130 to render the latest version of the image. This is possible without the first terminal 104 being required to transmit any further data. This is also possible without the first terminal 104 even being aware that the further terminal 130 is viewing the image. The way in which updates to the image are transmitted to the further terminal 130 is the same as the way in which updates to the image are transmitted to the second terminal 120 as described above. More than two terminals in the network 100 may receive the tiles for forming the latest version of the image.
The second terminal 120 may send its hardware, bandwidth and view capabilities to the server 112, such that the server 112 can adapt what to present to the second terminal 120. Furthermore, the server 112 may pass the attribute information back to the first terminal 104 such that the first terminal 104 can adapt what to transmit. For example, where the link between the server 112 and the second terminal 120 is slow it may be beneficial to send new tiles to the second terminal 120 less frequently than if the link was faster. Or where the second terminal 120 has a slow link, it may naturally request tiles less frequently in that mode of operation than if the link was faster. Similarly, if the capability of the second terminal 120 to process data is relatively low (e.g. if the second terminal is a portable device with the CPU 124 having limited processing power rather than being a fixed terminal with large processing power) then it may be beneficial to send new tiles to the second terminal 120 at a corresponding relatively low frequency. Where the frequency of sending new tiles to the second terminal 120 is lower than the frequency at which new tiles are received at the server 112 from the first terminal 104 then some tiles received at the server 112 may be replaced by later received tiles without ever being sent to the second terminal 120. In this way intermediate tiles that have been overwritten between requests for the latest version of the image at the second terminal 120 are not sent to the second terminal 120. This allows the second terminal 120 to operate at a lower bandwidth and with a lower processing power, thereby resulting is a graceful degradation of the update rate of the image at the second terminal 120.
Where there is more than one terminal receiving the updates of the image from the server 112, the different terminals may receive the updates at different rates to each other in dependence upon the different attributes of the terminals. In this way each terminal can receive the updates in a manner which is adapted to the particular attributes of the respective terminal.
A “mobile version” of the image may be supported. If one or more of the terminals viewing the updates to the image is a mobile terminal (typically with a much smaller screen than a personal computer) such as a mobile phone, then a special mobile tile, covering the whole image, but downscaled to better fit the mobile's screen, can be generated at the first terminal 104 (e.g. in the share client) and the mobile terminal may receive only this special tile. The benefits of this is that the mobile tile is less complex to render, and consumes less bandwidth. More generally, the size of a tile generated at the first terminal 104 may be adapted to suit the particular attributes of the second terminal 120, e.g. the screen size of the second terminal 120.
It may be that the special ‘mobile tile’, is transmitted from the first terminal 104 only when the client on the mobile phone is attempting to view the full image. If the user of the mobile phone attempts to zoom in on the image, then they get the ‘normal’ tile representation, thereby ensuring that there is no quality degradation in the image displayed on the screen of the mobile phone.
The ‘mobile tile’(s) may be computed on the server 112 on a per need basis. In this way, each mobile terminal can receive a mobile tile tailored to fit its screen. When using the ‘mobile tiles’, the information in the image state is updated accordingly on the server 112. The image state may then identify sets of at least one tile representing the latest version of the image at different resolutions. Furthermore, different image states identifying tiles which represent the latest version of the image in different ways (e.g. at different resolutions) may be presented to different viewers.
To reiterate some of the points described above in relation to a method of screen sharing, changes to the sharer's screen at the first terminal 104 are transmitted to the server 112 by transmitting encoded portions of the user's screen (i.e. tiles) that include any changes made to the image. The server 112 keeps an image state, describing which tiles are required to completely render the image shown on the sharer's screen. The benefits of keeping the image state on the server 112 are manifold:
a new viewer joining the screen sharing session at a later stage, may request only the tiles needed to render the last updated image on the sharer's screen;
and
a simple rate control can be implemented. Viewers on slower links, may request (and/or receive) image states (and tiles) less frequently, resulting in graceful degradation in terms of slower update rate on their end. (In particular intermediate tiles that have been overwritten between requests might not be sent)
The method steps described above may be encoded into a computer program product comprising computer readable instructions for execution by computer processing means for carrying out the method steps, as would be apparent to a person skilled in the art. For example the CPU 114 may execute computer readable instructions to thereby perform the method described above in relation to the flowchart of
While this invention has been particularly shown and described with reference to preferred embodiments, it will be understood to those skilled in the art that various changes in form and detail may be made without departing from the scope of the invention as defined by the appendant claims.
Number | Date | Country | Kind |
---|---|---|---|
1011004.7 | Jun 2010 | GB | national |