IMPROVEMENTS IN OR RELATING TO GRAPHIC DISPLAY SYSTEMS

Abstract: A colour graphics display having a read/write control system for a buffer memory therein provides Line-on-Line and Underpaint mode operation, if selected and enabled, by reading the contents of a frame buffer storage location for which new pixel data is being provided, comparing those contents with data representing a display background characteristic or colour, and if the result of the comparison is positive, storing the new pixel data to the frame buffer storage location. If the result of the comparison is negative, a selected data value different from the new pixel data is stored to the frame buffer storage location.

Description: The present invention relates to improvements in or relating to graphic display systems. In a conventional graphic display system adapted to display data as processed by a computer, instructions representing image features to be displayed are provided to a display processor which generates data for storage in a buffer having as many cells, or groups of cells, (hereinafter "storage locations") as there are picture elements (pixels) in the display unit. The storage locations store "attribute values", colour look-up table addresses corresponding to the colour values to be displayed at the corresponding monitor screen location. Such a buffer is frequently referred to as a frame buffer. The frame buffer is scanned in readout at the rate of scanning of the display device. The output is provided to the look-up table, and its output is provided to a digital-to-analog converter, the output of which, in turn, drives the display device itself. In the absence of additional measures, new instructions to the display processor representing image features to be displayed at screen locations where image features are currently being displayed, result in the supplanting of frame buffer data at the cell locations corresponding to the new feature. In order words, the new image feature is painted over any previous features. This may, in fact, be appropriate for the image sequence being processed. However, in some cases it is desirable to have the new image feature appear to pass under previously existing image features. Alternatively, where a new image feature overlaps a previous image feature it may be desirable to have that area of overlap represented by a third colour different from either of the colours of the two intersecting image features. These problems are often referred to in the art as "Underpaint" and "Line-on-Line", respectively. At slow rates of image update, Line-on-Line and Underpaint have been provided. Current implementations involve software manipulation of the feature data to determine whether those conditions exist, and then generation of appropriate display instructions. However, as a practical matter the provision of a system which provides these capabilities at a sufficient rate to remain compatible with fast-scan large size display screens has heretofore eluded discovery. Present schemes for Underpaint, for example, require the display processor to logically sort all image features spatially, farthest to nearest, and then send the image feature instructions to the control system for writing pixel information to the frame buffer in accordance with this sort. In other words, Underpaint is really a reverse overpaint effected via software manipulation. Such schemes are typically slow as compared with the scanning rate for the display device, resulting in a noticeable degradation in the smoothness and rapidity of the change of the image features on the display device. Accordingly, it is desired to provide a colour graphic display in which the colour changes of portions of the display where image features intersect may be rapidly controlled in a manner which avoids degradation of the displayed image when it is in the process of change. The present invention provides a method used in a computer display system having a frame buffer which stores pixel data for display pixels at corresponding storage locations for each pixel and capable, inherently or when so enabled, of incorporating new data in an existing display under a selected one of plural modes, say, overwrite and underwrite or line-on-line, wherein the update processing is performed locally at the frame buffer in response to new pixel data for a particular storage location thereof by: reading the contents of a frame buffer storage location for which new pixel data is being provided; comparing the results of the step of reading with data representing a display background characteristic; and if the result of the step of comparing is positive, storing the new pixel data to the frame buffer storage location; ELSE if the result of the step of comparing is negative and a mode is selected, storing a selected data value different, in a manner determined by the mode selected, from the new pixel data to the frame buffer storage location. The present invention also provides a computer display system having a frame buffer which stores pixel data for display pixels at corresponding storage locations for each pixel, having the capability of modifying, in a selectable mode, the frame buffer in response to new pixel data for those storage locations, comprising: means for reading the contents of a frame buffer storage location for which new pixel data is being provided; means for comparing the results of the step of reading with data representing a display background characteristic; means, responsive to the means for comparing, for storing the new pixel data to the frame buffer storage location, if the result of a comparison operation is positive; and means, responsive to the means for comparing, for storing a selected data value different from the new pixel data to the frame buffer storage location, if the result of a comparison operation is negative. There is disclosed hereinafter, in a computer display system having a frame buffer which stores pixel data for display pixels at corresponding storage locations for each pixel, a method for modifying, in a selectable mode, the frame buffer in response to new pixel data for those storage locations. The contents of a frame buffer storage location for which new pixel data is being provided is read and the results of the step of reading are compared with data representing a display background characteristic. If the result of the step of comparing is positive, the new pixel data is stored to the frame buffer storage location for which the new pixel data is provided. However, if the result of the step of comparing is negative, a selected data value, different from the new pixel data, is stored to the frame buffer storage location. The above steps can be performed repeatedly as necessary to operate on some or all of the storage locations in the frame buffer. The steps can be performed by control circuitry at an extremely rapid rate as compared with prior art schemes for the provision of Line-on-Line and Underpaint. As a result, Line-on-Line and Underpaint can be provided for large fast-scan screens into computer graphic displays. The present invention will be described further by way of example with reference to an embodiment thereof as illustrated in the accompanying drawings in which:- Fig. 1 is a block diagram of a display system; Fig. 2 is a more detailed diagram of a portion of such a system depicted in Fig. 1; Fig. 3 is a flow chart showing the operation of the preferred embodiments of the present invention; and Fig. 4 is a circuit diagram of the Read/Modify/Write Logic Unit and Comparator Logic Unit of Fig. 2. In the drawings, like elements are designated with similar reference numbers, and identical elements in different specific embodiments are designed by identical reference numbers. Fig. 1 is a block diagram of a colour display system adapted to display data in accordance with instructions generated by a computer (not shown). The computer, in conjunction with the generation of graphic image features, generates a set of instructions which it stores in a memory 10. These instructions are provided in appropriate sequence on line 11 to a display processor 12 which interprets the instructions and provides attribute data, in the form of colour look-up table addresses, and pixel storage location address data on line 13 to a control system 14. The control system 14 controls the writing of the attribute data to the specified pixel storage locations in a dual frame buffer 16A, 16B, and the reading of that data, via lines 15A and 15B. Each buffer (16A, 16B) has eight bit planes so that each storage location can store an eight bit byte. In read-out to the monitor, the attribute data is read out from frame buffer 16A (or 16B) address locations in raster scan fashion and provided on line 17 to a look-up table 18. Both the reading to and writing from the two parts (16A, 16B) of the buffer are done in a ping-pong process. The attribute data on line 17 is used as addresses for locations in look-up table 18. Raw digital video data is read out from those locations and provided on line 19 to a digital-to-analog converter 20. Analog video is provided on line 21 to a monitor 22. These elements of a colour graphic display system are, in general, known. An example of such a colour graphic display system is the IBM Model 5080 Model 1. A more detailed description of this system can be found in the following publications: (1) "IBM 5080 Graphics System Operations Manual", Form No. GA23-2005-0; (2) "IBM 5080 Graphics System Principles of Operation", Form No. GA23-0134-0; both available from IBM Corporation. Fig. 2 is a diagram of a subsystem 14A of control system (Fig. 1) 14 embodying the preferred embodiment of the present invention. Subsystem 14A operates in conjunction with part 16A of frame buffer 16. Another control subsystem (not shown), substantially identical to part subsystem 14A is provided to operate in conjunction with part 16B of frame buffer 16. If frame buffer parts 16A and 16B are further subdivided, for example for increased efficiency in the reading and writing of data, then it might be desired to have one control subsystem like 14A for each such subdivision. Together, all such subsystems comprise control system 14 (Fig. 1). Subsystem 14A includes a Read/Write Control unit 30, a set 32 of eight bit wide registers, a Comparator Logic Unit 34, a Read/Modify/Write Logic Unit 36, an I/O Control Unit 38 and a Video Control Unit 40, all as shown. The registers in set 32 are Mask Register 42, Colour Register 44, Line-on-Line Register 46, Command Register 48 and Background Register 50. Colour Register 44 stores colour attribute data; Background Register 50 stores background colour attribute data; and Line-on-Line Register 46 stores Line-on-Line colour attribute data. The preferred embodiment of the invention is realised in subsystem 14A through a Read/Modify/Write implementation. Broadly, Read/Modify/Write implemented as follows. Data is provided to subsystem 14A from the display processor 12 (Fig. 1) for the generation of a graphic image feature, such as a line. This data comprises colour data for the line, background colour data for the region of the monitor screen in which the line is to appear and, sequentially, the pixel storage location addresses corresponding to the new feature. The colour data is stored in Colour Register 44 and the background colour data is stored in Background Register 50. Additionally, Line-on-Line colour data is stored initially under operator control in Line-on-Line Register 46 for regions where a Line-on-Line condition is found to exist. For example, the operator may decide that where a Line-on-Line condition exists, it is desirable to have that region highlighted by assigning that region the colour yellow. The operator would then store the attribute data corresponding to the colour yellow in Register 46. If the overlapping graphic figures are red and blue, the colour yellow would stand out immediately and provide the desired notification to the viewer on the computer display of the Line-on-Line condition. As the pixel storage location address data is provided to subsystem 14A, the contents of that storage location in either buffer 16A or 16B (Fig. 1), depending upon on which is the next frame to be displayed, are read from the buffer 16 and written to a storage location in subsystem 14A. There, it is compared with the contents of Background Register 50. If the result of the comparison is positive (a match occurs), the contents of Colour Register 44 are written into the storage location from which the pixel data is just read. This corresponds to the situation where the new graphic feature overlaps no previous feature, ie, what is on the screen before is background, rather than some portion of a graphic figure previously displayed. In that case, it is clearly not a Line-on-Line or Underpaint situation, and so the appropriate action is the writing of the new colour information to that storage location. On the other hand, if the result of the comparison is negative (not a match), then, depending upon whether a Line-on-Line operation or an Underpaint operation has been selected, either of the following is performed. 1. (Line-on-Line) The contents of Line-on-Line Register 46 is written into the storage location. 2. (Underpaint) The contents of the storage location previously read out of the storage location and used for comparison are read back into the storage location (the storage location remains unchanged). Thus, in the Line-on-Line situation the area of overlap is highlighted with the colour corresponding to the attribute data stored in Line-on-Line Register 46, while in the Underpaint situation, the storage location remains unchanged, corresponding to the covering of the new graphic feature by a previously existing graphic feature. In more detail, subsystem 14A operates as follows. A control word is provided on line 13 from the display processor 12 (Fig. 1) which is received by Read/Write Control Unit 30. This control word informs Unit 30 of the pending transmission of data words to be stored in each of the registers in set 32. The data words are then provided on line 13 and are routed to registers 42-50 under the control of Unit 30. Command Register 48 uses six of its eight bits for the selection of one or more of the following functions: AND, OR, XOR, INVERT, Line-on-Line and Underpaint. (The other two bits are not used.) The first four functions are conventional Boolean operations. Where such Boolean operation requires two inputs, the inputs are the byte of data being read from the frame buffer (the "pixel byte") and the contents of Colour Register 44 (the "colour byte"). Otherwise (INVERT, or the default NO MODIFICATION), the operation is only on the pixel byte. The bit values of Command Register 48 are provided to Read/Modify/Write Logic Unit 36 on six bit wide line 49. As mentioned above, Colour Register 44 stores the colour byte, a byte representing the colour attribute of a graphics feature to be written to the frame buffer. Recall that an attribute value is actually an address for a location in look-up table 18 (Fig. 1) that contains the particular colour value. Background Register 50 stores the background byte, an attribute byte representing the background colour in the region of the aforementioned graphic image feature. Mask Register 42 is a register having one bit position assigned to each of the eight bit planes in the frame buffer. If the bit value for a given plane in mask register 42 is "0"leaving that bit position free to be processed as determined by original vs new data values and the selected mode definitions, ie, no mask is indicated for that plane. Conversely, if it is a "1" that bit plane is masked and is not processed, the original data being retained whatever the mode and relative data states. This information is provided to the Read/Modify/Write Logic Unit 36 on eight bit wide line 43. Line-on-Line Register 46 stores the Line-on-Line byte, an attribute byte for Line-on-Line situations. Video Control Unit 40 acts as a serialiser to provide pixel bytes to Look-up Table 18 (Fig. 1) serialised and correctly timed for raster scan of monitor 22 (Fig. 1). I/O Control Unit 38 controls the reading and writing of data read from and to Frame Buffer 16A (Fig. 1) via line 15A, and the transmission of data from Frame Buffer 16A to Comparator Logic Unit 34, Read/Modify/Write Logic Unit 36, and Video Control Unit 40. Referring now to Fig. 3 (in conjunction with Figs. 1 and 2), the first step 100 in the Read/Modify/Write operation is the reading of the eight bit pixel byte from Frame Buffer 16A (Fig. 1). This reading is performed under the control of I/O Control Unit 38 (Fig. 2), and results in the pixel byte being temporarily buffered in eight latches within unit 38. It is there made available on line 52 which provides the data to Units 34 and 36. In the next step 102, the pixel byte on line 52 is compared with the background byte on line 51. This is done in Comparator Logic Unit 34 (Fig. 2). Following the left-hand branch of step 102, if the result of the compare operation in step 102 is positive (the bytes are identical), a logic "1" appears on line 54 (Fig. 2), and the next step 104 is performed. Note that step 104 and the subsequent steps in this branch of the flow chart represent operations on one BIT at a time, while steps 100 and 102 involve operations on one or more BYTES. All operations in the flow chart other than steps 100 and 102 represent operations on single bits within bytes. These single bit operations are performed in parallel for each of the eight bits in the pixel byte. Returning to step 104, for the particular bit in the pixel byte being processed it is determined whether the mask bit for the bit plane represented by that bit position is set. If it is, then step 106 is performed, which is to write protect the corresponding bit plane. Then, in step 108, the latched data bit (of the pixel byte) appearing on line 52 (Fig. 2) for that bit plane is written back to Frame Buffer 16A (Fig. 1) to restore to the storage location its original contents. Thus, masking is effectively implemented for that bit plane in the processing of the pixel byte. Returning to step 104, if the mask bit is determined not to be set, step 110 is performed which is the performing of Boolean functions between each of the corresponding bits of the pixel byte and the colour byte, as specified by bit values in Command Register 26 (Fig. 2), as mentioned above. Then, in step 112 the new data (the colour byte) is written to Frame Buffer 16A (Fig. 2) at the storage location being processed. If, in step 102 the compare operation results in a negative determination (the pixel byte and the background byte are not equal), a logic "0" appears on line 54 (Fig. 2), and step 114 is performed. In step 114, again it is determined whether the mask bit is set for that bit plane. If it is, steps 116 and 118 are performed, which are identical to steps 106 and 108, respectively, described above. If the result of the operation performed in step 114 is negative (mask bit not set), step 120 is performed. In step 120 it is determined whether the Line-on-Line bit is set in Command Register 48 (Fig. 2). If it is, then step 122 is performed in which the bit of Line-on-Line byte stored in Line-on-Line Register 48 (Fig. 2) is written to Frame Buffer 16A (Fig. 1). If in step 120 it is determined that the Line-on-Line bit is not set in Command Register 48 (Fig. 2), then step 124 is performed. In step 124 it is determined whether the Underpaint bit is set in the command register 48 (Fig. 2). If it is not, then steps 110 and 112 are performed as described above, and the bit of new data (from the colour byte) is written to the pixel storage cell location, with any specified Boolean operations performed on it. If the result of step 124 is positive, ie, the Underpaint bit is set, then step 126 is performed. In step 126 the original data bit (of the pixel byte) latched on line 52 (Fig. 2) is written back to the pixel storage location in Frame Buffer 16A (Fig. 1) from which it is read. Fig. 4 is a logic circuit diagram of Read/Modify/Write logic unit 36 and Comparator Logic Unit 34 of Fig. 2. In Fig. 4, bit lines which are single bit lines within eight bit byte lines are referenced with a hyphened character. The first number in the hyphened character is the reference number for the eight bit byte line. The second number (or letter), appearing after the hyphen, represents either the position of the bit in the byte or the functional significance of the byte line. For example, lines 51 and 52 appear at the far left hand side of Fig. 4. Thus, bit positions 0 through 7 for each byte line (51-0 through 51-7 and 52-0 through 52-7), representing all eight bit positions for each byte, are shown. Line 49, however, is the eight bit line providing the bit contents of Command Register 48 (Fig. 2), and in Fig. 4 a letter designation has been provided after the hyphen indicating its functional significance instead of its sequential position within Command Register 48. Thus, 49-L is the Line-on-Line bit line, 49-U is the Underpaint command bit line, 49-A is the Boolean AND bit line, 49-O is the Boolean OR bit line, 49-I is the INVERT Boolean bit line, and 49-X is the Boolean EXCLUSIVE OR bit line. Bit line 60 is a line which is a logic "1" if no commands have been selected, ie, all bit positions in Command Register 48 (Fig. 2) are "0". For all reference characters in Fig. 4, a primed reference character indicates a logical NOT with respect to the reference number being primed. Thus, line 49-L' is the logical inverse, or complement, of the Line-on-Line command bit value. Finally, a letter "n" after the hyphen indicates a general bit position of the byte line being referenced. Thus, reference 52-n indicates the nth bit of the byte on line 52. The circuit for Logic Unit circuit 36 shown in Fig. 4 is repeated eight times for simultaneous parallel operations on each of the eight bit positions, so that an entire byte of data may be processed at once. Thus, the "n" refers to the general bit position for that circuit. The operation of the circuit shown in Fig. 4 is as follows. Lines 51 and 52 are EXCLUSIVE NORed in array 70, and the outputs of array 70 are provided to the input of NAND gate 72. The output of NAND gate 72 is provided, along with the output of OR gate 74 to the inputs of a further NAND gate 76. The output line 54' of NAND gate 76 carries the inverse of the result of the comparator operation. Line 54' is applied to inverter 78, the output 54 of which carries the result of the comparator operation. Lines 49-L and 49-U, applied to OR gate 74 are the Line-on-Line and Underpaint Command bit positions, respectively. Thus, if either Line-on-Line or Underpaint is selected, the output of Comparator 34 is made available. Otherwise, it is suppressed. The mask bit 43-N, and its compliment 43-N', affect operation as follows. A mask bit value of "1" is applied on line 43-N to OR gate 100, forcing its output to a logic "1" value. This enables NAND gate 102 to pass the pixel byte bit value of line 52-N, inverted, through NAND gate 102 to the input of NAND gate 94. Line 43-N', being logic "0", forces the output of NAND gate 104 to be logic "1", thus enabling NAND gate 94. The doubly inverted pixel byte bit value is thus provided to one input of NAND gate 80. Provided the other input of NAND gate 80, line 54, is logic "1", the output is provided to the input of NAND gate 84. Additionally, a mask bit value of "1" is applied on line 33-N to NAND gate 98, enabling it to pass the pixel byte bit value of line 52-N to one input of NAND gate 96. The compliment mask bit value of "0" is applied on line 43-N' to NAND gates 86, 88, 90 and 92, thus forcing the outputs of each of those NAND gates to a logic "1" allowing the bit value appearing at the output of NAND gate 98 to pass through NAND gate 96. The output of NAND gate 96 is applied to the input of NAND gate 82, where it is passed to the input of NAND gate 84 if the value of line 54' is a "1". Since lines 54 and 54' are logically the inverse of one another, it can be seen that when the mask bit value is a "1", the pixel byte bit value is passed to the output of NAND gate 84 to line 56-N, either through NAND gate 80 or NAND gate 82 depending on the condition at the input of NAND gate 76. In either case, the original pixel byte bit is provided as an output of Read/Modify/Write Logic Unit 36 for writing back to the frame buffer. In the absence of the mask bit being set to logic "1", if line 54 is logic 1, indicating the selection of either or both of Line-on-Line and Underpaint, and no logical match between the background byte and the pixel byte, the circuit operates as follows. If Underpaint is selected, and Line-on-Line is not selected, requiring the writing back of the same pixel byte bit value to Frame Buffer 16A (Fig. 1), AND gate 106 is forced to have an output of "1". The output of OR gate 100 is thus "1", enabling NAND gate 102 to pass the bit of pixel byte to one input of NAND gate 94. Since it is specified that Line-on-Line is not selected, line 49-L has a value of logical "0", and the output of NAND gate 104 is thus logical "1", thus enabling NAND gate 94. Since no logical match occurs between the background byte and the pixel byte, the output of NAND gate 72 is forced high, and since Underpaint is selected line 49-U is logical "1", line 54 is logical "1", enabling NAND gate 80 to pass the data appearing on the output of NAND date 94. If a logical match occurs between the background byte and the pixel byte, line 54 will have a logical "0" and line 54' will have a logical "1". In that case, the Line-on-Line (or Underpaint) condition does not exist, and the new colour byte is to be written to line 56-N. This condition will also exist if neither line 49-U nor line 49-L is selected, indicating that neither Line-on-Line nor Underpaint has been selected. In any of those cases, the circuit operates as follows. It is assumed that the mask bit is not set, therefore NAND gate 98 is disabled setting its output high. Likewise, line 43-N' is high, providing a high input to each of the respective inputs to NAND gates 86-92. Depending upon the selection of Boolean operations one of the lines 49-A, O, I, etc., will be logical "1", enabling the appropriate combination of gates tied to NAND gates 86-92 to effect the appropriate Boolean operation and pass the results to the input of NAND gate 96, the other gates enabling the passage through NAND gate 96 of that data to NAND gate 82. The above described comparison and storage operations can be made at an extremely rapid rate, thus permitting the utilisation of these enhancements to a graphic display system in conjunction with a rapid scan, large size (1 megapixel) display screen.

Claims: A method used in a computer display system having a frame buffer which stores pixel data for display pixels at corresponding storage locations for each pixel and capable, inherently or when so enabled, of incorporating new data in an existing display under a selected one of plural modes, say, overwrite and underwrite or line-on-line, wherein the update processing is performed locally at the frame buffer in response to new pixel data for a particular storage location thereof by: reading the contents of a frame buffer storage location for which new pixel data is being provided; comparing the results of the step of reading with data representing a display background characteristic; and if the result of the step of comparing is positive, storing the new pixel data to the frame buffer storage location; ELSE if the result of the step of comparing is negative and a mode is selected, storing a selected data value different, in a manner determined by the mode selected, from the new pixel data to the frame buffer storage location. A method as claimed in Claim 1 wherein the step of storing a selected data value different from the new pixel data comprises restoring the results of the step of reading, back to the frame buffer storage location, or leaving the buffer store location unchanged, if the store construction so permits, when "underpaint" is the mode selected. A method as claimed in Claim 1 wherein the step of storing a selected data value different from the new data value comprises storing selected pixel data different from either the new pixel data or the results of the step of reading, to the frame buffer storage location. A method as claimed in any preceding claims including selectively masking mode selection for storage locations whereby no new data values are introduced into the display at such locations. A computer display system having a frame buffer which stores pixel data for display pixels at corresponding storage locations for each pixel, having the capability of modifying, in a selectable mode, the frame buffer in response to new pixel data for those storage locations, comprising: means for reading the contents of a frame buffer storage location for which new pixel data is being provided; means for comparing the results of the step of reading with data representing a display background characteristic; means, responsive to the means for comparing, for storing the new pixel data to the frame buffer storage location, if the result of a comparison operation is positive; and means, responsive to the means for comparing, for storing a selected data value different from the new pixel data to the frame buffer storage location, if the result of a comparison operation is negative. A computer display system as claimed in Claim 5 including mask register means settable to permit/inhibit mode determined display modification.

Inventors: ELSNER, MATTHEW, IIDA, YOSHIO, KWONG, EDWARD YUMAN, RAHIM, OMAR MAHMOUD
Applicants: INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1987
Main classification: G09G1
IPC codes: G09G5