Palette management for application sharing in collaborative systems

Abstract: A method and apparatus for managing palettes in collaborative systems. This includes one or more host computers connected to one or more remote computers, wherein an image displayed on the host computer is substantially simultaneously displayed on the remote computer. The invention recognizes when a change is made to a system palette on the host computer, and communicates those changes to the remote computer. A system palette on the remote computer may be updated to reflect the logical palette, and the changes made therein, depending upon whether the collaborative system is active or idle.

Description: The present invention generally relates to computer networking, and in particular, to a method and apparatus for managing display palettes in collaborative systems. Many computer programs use as many colors as are available from the computer's video subsystem to allow the programs to have as much visual impact as possible. This is fine when displaying a computer program on one system, because the computer program has full control over the system, but special techniques must be developed to allow the computer program to be displayed identically when shown simultaneously on many computers. In PCT Publication WO 91/09378 Options Unlimited Research Corporation, there is described a full-duplex video communication system, but there is no disclosure of management of the different colour requirements of different terminals. It is therefore an object of the present invention to provide an improved method of and system for managing display palettes in a collaborative system. According to a first aspect of the present invention there is provided a method of sharing images between a host computer and a remote computer in a collaborative system comprising one or more host computers connected to one or more remote computers, wherein an image displayed on the host computer is substantially simultaneously displayed on the remote computer, the method being characterized by managing palettes used in forming the image, comprising the steps of: recognizing when a change is made to a system palette on the host computer; communicating the system palette to the remote computer; creating a logical palette on the remote computer to reflect the system palette on the host computer; and selectively updating a system palette on the remote computer to reflect the logical palette. According to a second aspect of the present invention there is provided an image - sharing computer system, comprising a host computer connected to one or more remote computers and arranged to display an image on the host computer and the remote computer substantially simultaneously; and characterized by palette management means, in the host computer and in the remote computer, comprising means for selectively intercepting the image and functions which alter the image on the host computer; means for selectively communicating the intercepted image and functions to the remote computer; means, for receiving the intercepted image and functions from the host computer; and means, for selectively displaying the intercepted image on the remote computer and for altering the intercepted image according to the intercepted functions. When sharing images between the host computer and the remote computer, the images must first be translated from their device dependent format using the system palette on the host computer into a device independent image. The device independent image, like the system palette, is transmitted from the host computer to the remote computer. The device independent image is then translated into a device dependent image suitable for display on the remote computer using the logical palette maintained by the collaborative system on the remote computer. An embodiment of the present invention will now be described by way of example, with reference to the accompanying drawings in which:- Figure 1 is a block diagram illustrating an apparatus in accordance with the present invention; Figure 2 is a block diagram illustrating a method of controlling the display of information in accordance with the present invention; and Figure 3 is a block diagram illustrating one possible configuration of components that perform the palette management functions in a collaborative system in accordance with the present invention. Figure 1 is a block diagram illustrating one embodiment of an apparatus in accordance with the present invention. The present invention is typically incorporated into a computer network including two or more personal computers 10 coupled together for communication. It is envisioned that attached to each computer 10 will be a monitor 12, disk storage 14, and communications link 16. Also included in the preferred embodiment are input devices, for example, a mouse pointing device 18 and a keyboard 20. Each computer 10 operates under the control of a message-driven multi-tasking, graphical user interface (GUI) 22, such as the WINDOWS operating system or environment sold by Microsoft Corporation. Each of the computers 10 forms part of a collaborative system. A user at one computer 10 (termed the host computer 10) interacts with one or more applications occupying one or more windows of the GUI 22. The collaborative system simultaneously replicates selected windows displayed on the computer 10, rather than the entire display, at one or more remote computers 10. This selective replication allows users to maintain private areas on their monitors 12 that are not shared. Note that it is possible for both the host and the remote computers 10 to run a plurality of other applications at the same time because of the multi-tasking capabilities of the GUI 22. Although the collaborative system replicates the selected display on the host computer 10 to the remote computers 10, so that all users view similar displays on their respective monitors 12, the displays could be different, because of the following factors: (1) different monitors 12 have different properties, such as resolution and color capability; (2) different display protocols (EGA, VGA, S-VGA, etc.) represent graphics images differently and have different color capability; (3) different GUIs 22 or different versions of the same GUI 22 may have different display conventions; and (4) users of the remote computers 10 may have altered some of the characteristics of the display or window thereby causing a deviation from that viewed on the host computer 10. Although there may be differences in the appearances of the display between the host computer 10 and the remote computers 10 relative to each other, the basic content of all the displays should be the same. The palette management system of the present invention allows information to be displayed on the remote computer 10 in an almost identical state as it is on the host computer 10. Figure 2 is a block diagram illustrating one possible method for controlling the display of information. Under WINDOWS , there are three types of "palettes" used to control the display of colors on the monitor 12: hardware palettes 24, system palettes 26 and logical palettes 28. Each palette comprises one or more entries, wherein each entry is identified by an index value and contains three color fields corresponding to the Red, Green, and Blue (RGB) color values used to create a desired color represented by that entry. The hardware palette 24 stores the entries representing the colors actually displayed on the monitor 12. The system palette 26 is used by applications to access and manipulate the hardware palette 24. Each application, in turn, maintains one or more logical palettes 28 that reflect the desired color selections for the application. There is normally only one hardware palette 24, and there is a 1:1 mapping between the system palette 26 and the hardware palette 24. Each computer 10 can have only one system palette 26, but every application can have as many logical palettes 28 as it needs. The logical palettes 28 maintain index entries that reference entries in the system palette 26; the system palette 26 maintains index entries that reference entries in the hardware palette 24. The index value points to the nearest matching color in the palette which it references. In Figure 2, the solid lines connecting the logical palettes 28 to the system palette 26 and the system palette 26 to the hardware palette 24 represent an exact mapping where the RGB colors are identical; the dotted lines represent a mapping where the RGB colors provide the closest possible color match. Sometimes it is necessary to resort to closest color matching because the number of colors in the logical palettes 28 exceed the number of possible entries in the system palette 26. An application that is actively executing on the computer 10 is permitted to provide an exact mapping from its logical palette 28 to the system palette 26; all idle applications must settle for the remaining closest possible color match. In Figure 2, for example, Logical Palette 1 is marked as the "Active Window," and thus it adds its colors to the system palette 26 first, so that its colors look the best (i.e., most exact) of any palette-based application in the computer 10. For a collaborative system, this technique must be extended to ensure that the display of information on remote computers 10 is as close as possible to the display on the host computer 10. Further, the overhead in accomplishing this task must be minimized. According to the present invention, whenever a change is made to the system palette 26 of a host computer in a collaborative system, these changes are then communicated to a remote computer 10 to recreate the system palette 26 as a logical palette 28 managed by the collaborative system on the remote computer 10. If the collaborative system is actively executing on the remote computer 10, it is permitted to access and manipulate the system palette 26 on the remote computer 10 so that it is an exact match to its logical palette 28, i.e., the system palette 26 from the host computer 10. If the collaborative system is idle on the remote system 10, it is permitted to access and manipulate the system palette 26 on the remote computer 10 so as to provide the closest possible color match to its logical palette 28. Figure 3 is a block diagram that illustrates one possible configuration of components that perform the palette management functions in the collaborative system. On both the host and remote computers 10, Controlling Applications 30 and 32 perform the overall management of the application sharing and communication functions for the collaborative system. The Controlling Application 30 on the host computer 10 intercepts the user's interaction with a Captured Application 34. The Captured Application 34 invokes various functions of the WINDOWS ™ Application Programming Interface (API) 36, including Graphics Device Interface (GDI) functions, to manipulate the display on the monitor 12. Technical details of the WINDOWS ™ API and GDI functions can be found in "Windows Software Development Kit" available from Microsoft Corporation, and in Programming Windows 3.1 by Charles Petzold, Microsoft Press, 1992, ISBN 1-55615-395-3. The invocation of the WINDOWS ™ API and GDI functions are intercepted by the GDI Capture Engine 38, in the form of a Dynamic Link Library (DLL). The captured functions and display images are communicated to the remote computer 10 across the communications link 16 via the Communications Channel 40. Thereafter, the GDI Capture Engine 38 transfers control to the GDI routines 42 to perform the requested GDI functions. The Communications Channel 44 at the remote computer 10 receives the captured functions and display images, and then communicates this information to the GDI Playback Engine 46, in the form of a Dynamic Link Library (DLL). The GDI Playback Engine 46 performs the requested GDI functions and displays the desired images on the monitor by invoking the GDI routines 48 in a manner similar to the Captured Application 34. Thus, as the display on the monitor 12 of the host computer 10 is altered, this information is communicated to the remote computers 10, so that the display on their monitors 12 will be altered in a like manner. Note that display images are typically GDI objects. While some objects may comprise bitmaps, in general objects merely comprise a graphical element command or description and its parameters. Thus, bitmaps would rarely be transmitted to remote computers 10 and often would only need to be transmitted once. Further, objects may be compressed, thereby further speeding up the transmission of data between the host computer 10 and the remote computers 10. Since only the system palette 26 is communicated to the remote computer 10, bitmaps must be manipulated to reflect these operations before being transmitted from the host computer 10 to the remote computer 10. When a device dependent bitmap (DDB), i.e., one that is formatted for the particular video subsystem of the host computer 10, is intercepted by the GDI Capture Engine 38 on the host computer 10 for transmission to the remote computer 10, the DDB must first be converted into a device independent bitmap (DIB) using the currently selected logical palette 28 as the color mapping palette. The conversion will replace logical palette 28 index values contained in the DDB with the actual RGB color values to create the resulting DIB. On the remote computer, the DIB is then converted back into a DDB by GDI Playback Engine 46 on the remote computer 10 using the logical palette 28 of the collaborative system to translate from RGB values into palette indices. By using palettes in this way, with the conversion performed with the collaborative system's logical palette 28 instead of the remote computer's system palette 26, the currently selected logical palette 28 on the host computer 10 does not have to be transmitted to the remote computer. This saves on transmission bandwidth, and also saves on the problems of handling many logical palettes 28 on the remote computer 10 (which can be extremely difficult). Suitable computer source code is described of files contained therein is contained in the following Table. In summary, a method and apparatus is disclosed for managing palettes in collaborative systems comprising one or more host computers connected to one or more remote computers, wherein an image displayed on the host computer is substantially simultaneously displayed on the remote computer. The invention recognizes when a change is made to a system palette on the host computer, and communicates those changes to the remote computer. A logical palette is created on the remote computer to reflect the system palette on the host computer, and the changes made therein. A system palette on the remote computer may be updated to reflect the logical palette, and the changes made therein, depending upon whether the collaborative system is active or idle. When sharing images between the host computer and the remote computer, the images must first be translated from their device dependent format using the system palette on the host computer into a device independent image. The device independent image, like the system palette, is transmitted from the host computer to the remote computer. The device independent image is then translated into a device dependent image suitable for display on the remote computer using the logical palette maintained by the collaborative system on the remote computer. The following paragraphs described some alternative ways of accomplishing the present invention. Those skilled in the art will recognize that different GUIs, operating environments and operating systems could be substituted for the WINDOWS ™ GUI described herein. Those skilled in the art will recognize that the present invention could be used any type of computer, and need not be limited to a personal computer. Those skilled in the art will recognize that various forms of communication links between computers 10 could be used with the present invention. Those skilled in the art will recognize that the present invention could be used any type of display interface, and need not be limited to the WINDOWS ™ API. Those skilled in the art will recognize that alternate approaches to capturing or intercept GDI functions and display images could be substituted for the approach described herein. Those skilled in the art will recognize that there could be more than one host computer 10 operating at one time. In addition, those skilled in the art will recognize that remote computers 10 could operate as host computers 10 either sequentially or simultaneously with other operating host computers 10.

Claims: A method of sharing images between a host computer and a remote computer in a collaborative system comprising one or more host computers (10) connected to one or more remote computers, wherein an image displayed on the host computer (10) is substantially simultaneously displayed on the remote computer (10), the method being characterized by managing palettes used in forming the image, comprising the steps of: recognizing when a change is made to a system palette (26) on the host computer (10); communicating the system palette (26) to the remote computer (10); creating a logical palette (28) on the remote computer (10) to reflect the system palette (26) on the host computer (10); and selectively updating a system palette (26) on the remote computer (10) to reflect the logical palette (28). A method according to claim 1, characterized in that the updating step comprises the step of replacing the system palette (26) on the remote computer (10) with the logical palette (28) from the host computer (10) when the collaborative system is active on the remote computer (10). A method according to claim 1 or claim 2, characterized in that the updating step comprises the step of selectively replacing the system palette (26) on the remote computer (10) with the logical palette (28) from the host computer ( 10) when the collaborative system is idle on the remote computer (10). A method according to any one of the previous claims, characterized by the steps of: intercepting an image displayed on the host computer (10); intercepting functions that alter the image on the host computer (10); selectively communicating the intercepted image and intercepted functions to the remote computer (10); selectively displaying the intercepted image on the remote computer (10); and altering the intercepted image according to the intercepted functions. A method according to any one of the previous claims, characterized by the steps of: translating a first device dependent image suitable for display on the host computer (10) into a device independent image using the system palette (26) on the host computer (10); transmitting the device independent image to the remote computer (10); translating the device independent image into a second device dependent image suitable for display on the remote computer (10) using the logical palette (28) on the remote computer (10); and displaying the second device dependent image. An image - sharing computer system, comprising a host computer (10) connected to one or more remote computers (10) and arranged to display an image on the host computer (10) and the remote computer (10) substantially simultaneously characterized by palette management means (16,30-48), in the host computer (10) and in the remote computer, comprising means (34) for selectively intercepting the image and functions which alter the image on the host computer (10); means (16,48) for selectively communicating the intercepted image and functions to the remote computer (10) ; means (44), for receiving the intercepted image and functions from the host computer (10); and means (46), for selectively displaying the intercepted image on the remote computer (10) and for altering the intercepted image according to the intercepted functions. An apparatus according to claim 6, characterized by the means for selectively intercepting the image incorporating means (12,38) for displaying the image on the host computer (10). An apparatus according to claim 6 or claim 7, characterized by the means (34) for selectively intercepting the image incorporating means (30,36) for performing functions on the host computer to alter the image. An apparatus according to any one of claims 6 to 8, characterized by means (38), for translating a first device dependent image suitable for display on the host computer (10) into a device independent image using a first palette stored on the host computer (10); means (16,48) for transmitting the device independent image to the remote computer (10); means (42), for translating the device independent image into a second device dependent image suitable for display on the remote computer (10) using a second palette stored on the remote computer (10); and means (12,46), for displaying the second device dependent image.

Inventors: HESTER JOHN, HESTER, JOHN
Applicants: NCR INT INC, NCR INTERNATIONAL, INC.
Application year: 1994
Main classification: G06F3
IPC codes: G06F3, G06F15, G06F13, G09G5