Display apparatus

Information

  • Patent Grant
  • 4931785
  • Patent Number
    4,931,785
  • Date Filed
    Friday, June 12, 1987
    37 years ago
  • Date Issued
    Tuesday, June 5, 1990
    34 years ago
Abstract
A display apparatus consists of a display memory (VRAM), a data modifier circuit and a display unit at least. The display unit, such as a CRT display unit, has a plurality of display dots which include red, green and blue color dots. The display memory must be cleared at a primary stage and thereafter a plurality of display codes corresponding to only display dots on the outlines of the color image must be written into the display memory. The display codes are converted into display data which indicate red, green and blue color components. The display codes are successively read out from the display memory and supplied to the data modifier circuit wherein the display data are modified so as to compensate the display data which are not written into the display memory. The display unit displays the image corresponding to the modified display data on the screen thereof.
Description

BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention generally relates to display apparatuses, and more particularly to a display apparatus in which a plurality of image data read from a video memory (or a display memory) are supplied to a display unit wherein the image designated by the image data is displayed on a screen thereof.
2. Prior Art
Conventionally, a known display apparatus is controlled to display an image on a screen by use of a central processing unit (CPU). Such color image display apparatus includes a video random access memory (VRAM) therein which pre-stores a plurality of image data each of which corresponds to a display dot arranged on the screen. The color image data are read from the VRAM and are converted into analog color signals of R, G and B (hereinafter, analog color signals of R, G and B will be referred to as RGB signals). The RGB signals with synchronizing signals are supplied to a CRT color display unit wherein the image designated by the RGB signals are displayed on the screen thereof.
Meanwhile, the image data stored in the VRAM must be changed in order to change the image displayed on the screen of the display unit in the conventional display apparatus. In this case, the CPU accesses the VRAM wherein the all image data are displaced by other image data, hence, much time must be required for displacing the image data. In addition, it is impossible to simultaneously write the image data into the VRAM within the conventional color image display apparatus. As a result, the conventional display apparatus suffers a problem in that it is impossible to displace the image displayed on the screen with a high speed.
SUMMARY OF THE INVENTION
It is therefore a primary object of the invention to provide a display apparatus in which the image displayed on the screen can be displaced by another image with a high speed.
It is another object of the invention to provide a display apparatus in which a software process for displaying the image can be simplified so that working hours for making out the software can be remarkably reduced.
In one aspect of the invention, there is provided a display apparatus comprising: (a) display memory means for storing a plurality of display codes therein; (b) data detection means for detecting whether the display code is identical to predetermined data or not, the data detection means outputting a detection signal when the display code is identical to the predetermined data; (c) register means for storing (renewing) and outputting the display codes from the memory means successively, the register means stopping to successively renew the display codes and outputting preceding display code instead of the display code corresponding to the detection signal when the detection signal is supplied to the register means; and (d) display means for displaying an image corresponding to the output data of the register means.
In another aspect of the invention, there is provided a display apparatus comprising: (a) display memory means for storing a plurality of display codes and modifier codes therein; (b) data judgment means for judging whether the modifier codes are inputted therein or not, the data detection means outputting control signals corresponding to the value of the modifier code when the modifier code is inputted into the data detection means; (c) data conversion means for converting the display codes into display data; (d) data modifier means for modifying the display data based on the control signals, the data modifier means comprising (1) data register means for successively inputting the display data therein, (2) modifier means for modifying the display data stored in the data register means based on the control signals, the data register means outputting the modified display data; and (e) display means for displaying an image corresponding to the modified display data from the data register means.





BRIEF DESCRIPTION OF THE DRAWINGS
Further objects and advantages of the present invention will be apparent from the following description, reference being had to the accompanying drawings wherein preferred embodiments of the present invention are clearly shown.
In the drawings:
FIG. 1 is a block diagram showing a first embodiment of the present invention;
FIG. 2 is a block diagram showing a main part of the first embodiment shown in FIG. 1;
FIG. 3 shows an example of an image displayed on a screen of a display unit;
FIG. 4 is a block diagram showing a modified embodiment of the first embodiment shown in FIG. 1;
FIG. 5 is a block diagram showing a second embodiment of the present invention;
FIG. 6 is a block diagram showing a main part of the second invention shown in FIG. 5;
FIG. 7 shows a timing chart for explaining the operation of the second embodiment;
FIGS. 8 and 9 show examples of images displayed on a screen of a display unit for explaining the write-in operation of the VRAM within the second embodiment.





DESCRIPTION OF THE PREFERRED EMBODIMENTS
Referring now to the drawings, wherein like reference characters designate like or corresponding parts throughout the several views, FIG. 1 is a block diagram showing a first embodiment of the display apparatus according to the present invention. In FIG. 1, 1 designates a CPU, 2 designates a memory (system memory) constituted by a read only memory and a random access memory in which programs used for the CPU 1 are stored, 3 designates a display controller and 4 designates a VRAM. A CRT display unit 5 is provided with a plurality of display dots each of which consists of three dot elements of R, G and B and the like. The VRAM 4 has a plurality of storage areas (data of four bits can be stored in one storage area, for example) each of which corresponds to one display dot. Each storage area stores a color code CC (four bits) for displaying the display dot
The display controller 3 writes the color codes CC outputted from the CPU 1 into the storage areas within the VRAM 4. The display controller 3 includes a clock generating circuit (not shown) therein for generating a dot clock CLK. When the CPU 1 outputs a display command to the display controller 3, the display controller 3 sequentially and repeatedly reads out the color codes CC (display data) from the storage areas within the VRAM 4 in accordance with a timing of the dot clock CLK. The VRAM 4 sequentially outputs the color codes to a data modifier circuit 6. In addition, the display controller 3 outputs the dot clock CLK to the data modifier circuit 6 and a color look-up table 7, and furthermore, the display controller 3 outputs a synchronizing signal SYNC to the CRT display unit 5.
FIG. 2 shows a detailed constitution of the data modifier circuit 6. As shown in FIG. 2, the data modifier circuit 6 consists of registers 11 and 12 and a zero detection circuit 13. The register 11 reads in the color codes CC from the VRAM 4 in accordance with a timing of the dot clock CLK. The zero detection circuit 13 detects whether the value of the color code CC outputted from the register 11 is equal to zero or not. The zero detection circuit 13 outputs the detection signal S.sub.1 to a control terminal C of the register 12. The level of the detection signal S.sub.1 becomes "1" only when the value of the color code CC is equal to zero. The register 12 sequentially stores the color codes CC outputted from the register 11 in accordance with the dot clock CLK when the level of the detection signal S.sub.1 is "0". However, the register 12 stops storing the color codes CC when the level of the detection signal S.sub.1 is "1". The register 12 sequentially outputs the stored color codes CC to a color look-up table 7 shown in FIG. 1 as color codes CC1.
The color look-up table 7 converts the color code CC1 into red (R) color data D.sub.r, green (G) color data D.sub.g and blue (B) color data D.sub.b. These color data D.sub.r, D.sub.g and D.sub.b are supplied to respective digital-to-analog converters (DAC) 8r, 8g and 8b wherein the color data D.sub.r, D.sub.g and D.sub.b are respectively converted into analog signals. These analog signals are supplied to the CRT display unit 5. The CRT display unit 5 performs the color dot display based on the synchronizing signal SYNC and the analog signals outputted from the DAC 8r, 8g and 8b.
Next, description will be given with respect to the operation of the first embodiment in conjunction with FIG. 3.
In FIG. 3, 15 designates the screen (faceplate) of the CRT display unit 5, 16 designates a border region (where the image is not displayed) and 17 designates an image display region. FIG. 3 shows an example of an image in which a red color region 20 is arranged within a blue color background region. In this case, the CPU 1 clear the VRAM 4 at an initial stage, hence, all color codes CC stored in the VRAM 4 are equal to "0". Next, the blue color codes CCb are stored in the storage areas corresponding to display dots within a dot row d1 which is arranged at the left edge position of the image display region 17. Thereafter, the red color codes CCr are stored in the storage areas corresponding to display dots of dot rows d2 and d4 which are arranged in the left edge of the image 20. Next, the blue color codes CCb are stored in the storage areas corresponding to display dots of dot rows d3 and d5 which are arranged in the right edge of the image 20. Hence, the values of the color codes CC other than the color codes CCb and CCr corresponding to the dot rows d1 to d5 are all equal to "0". Next, when the display command is outputted from the CPU 1, the color code CC corresponding to the front display dot within the dot row d1 is first read out from the storage area thereof, and similarly, the color codes CC are sequentially read from the storage areas within the VRAM 4 in accordance with the dot clock CLK. The color dot display is performed based on the color codes CC read from the VRAM 4.
Next, description will be given with respect to a dot line 21 shown in FIG. 3.
First, the VRAM 4 outputs the color code CC corresponding to a display dot D.sub.01 arranged at the left edge of the dot line 21 at a first clock timing of the dot clock CLK. This color code CC is stored in the register 11 (shown in FIG. 2) at a second clock timing of the dot clock CLK and is supplied to the register 12 and the zero detection circuit 13. The zero detection circuit detects whether the value of the color code CC is equal to "0" or not. In this case, the color code corresponding to the display dot D.sub.01 is the blue color code CCb, hence, the value thereof is not equal to "0". Therefore, the value of the detection signal S.sub.1 is set to "0". Next, at a third clock timing of the dot clock CLK, the blue color code CCb outputted from the register 11 is stored in the register 12 and is supplied to the color look-up table 7 wherein the blue color code CCb is converted into three color data D.sub.r, D.sub.g and D.sub.b (i.e., D.sub.r ="0 0 0", D.sub.g ="0 0 0"and D.sub.b ="1 1 1"). These three color data D.sub.r, D.sub.g and D.sub.b are converted into respective three analog signals in the DAC 8r, 8g and 8b, and these three analog signals are supplied to the CRT display unit 5 so that the blue color is displayed at the position of the display dot D.sub.01.
Thus, when the VRAM 4 outputs the color code CC the value of which is not equal to "0", this color code CC is outputted from the register 12 after two clock timings of the dot clock CLk. This color code CC is converted into the three color data D.sub.r,D.sub.g and D.sub.b and these three color data D.sub.r, D.sub.g and D.sub.b are converted into respective three analog signals in the DAC 8r, 8g and 8b, so that the CRT display unit 5 performs the color dot display.
Next, the register 11 stores the color code CC corresponding to the display dot D.sub.02 outputted from the VRAM 4. However, the color of the display dot D.sub.02 is not selected and the value thereof equals to "0" because the VRAM 4 is cleared at the initial stage. Hence, the value of the detection signal S.sub.1 becomes "1", and the register 12 does not store the color code CC corresponding to the display dot D.sub.02 at a next clock timing of the dot clock CLK. For this reason, the blue color code CCb is still held in the register 12, therefore, the blue color is displayed at the position of the display dot D.sub.02 as described before. Thus, the display dot corresponding to the color code CC having the value of "0" is colored by the same color corresponding to the preceding display dot.
Similarly, the color codes CC having the same value of "0" corresponding to the display dots D.sub.03, D.sub.04, . . . , and D.sub.0(k-1) are sequentially read out from the VRAM 4. Hence, the blue color is displayed at the positions of the above display dots D.sub.03 to D.sub.0(k-1). Next, the red color code CCr corresponding to the display dot D.sub.0k the value of which does not equal to "0" is stored in the registers 11 and 12 sequentially, hence, the red color is displayed at the position of the display dot D.sub.0k Thereafter, the color codes CC having the same value of "0" corresponding to the display dots D.sub.0(k+1) to D.sub.0(M-1) are sequentially read from the VRAM 4. As similar to the display dots D.sub.02 to D.sub.0(k-1), the red color is displayed at the positions of the display dots D.sub.0(k+1) to D.sub.0(M-1). Next, the blue color code CCb corresponding to the display dot D.sub.0M is read out from the VRAM 4 so that the blue color is displayed at the position of the display dot D.sub.0M. As same to the display dots D.sub.02 to D.sub.0(k-1), the color codes CC having the same value of "0" corresponding to the display dots D.sub.0(M+1) to D.sub.0N are read out from the VRAM 4, so that the blue color is displayed at the positions of the display dots D.sub.0(M+1) to D.sub.0N.
Above is the description of the process for coloring the display dots within the dot line 21. Similarly, the other dot lines will be colored.
It is obvious that the constant shading operation (in which the same color is displayed in a selected region) can be performed by clearing the VRAM 4 and only setting the color codes corresponding to the display dots within outlines (such as dot rows d1 to d5 shown in FIG. 3) of regions in which selected color is displayed. Hence, the color codes of the above outlines are only needed for the VRAM 4 in the above constant shading operation in the first embodiment shown in FIG. 1. For this reason, the time for inputting the color codes into the VRAM 4 can be remarkably reduced. In other words, it is possible to display and renew the optimum image on the screen with a high speed, and it is also possible to remarkably reduce the time for making out the software for displaying the image.
Meanwhile, several kinds of dual port RAM (dynamic RAM) have been developed in these days, and a certain kind of the dual port RAM can perform in a high speed copy mode. By applying such dual port RAM to the VRAM 4, it is possible to clear the data stored in the VRAM 4 with an extremely high speed.
Above is the description of the first embodiment. In the first embodiment, it is possible to exchange the data modifier circuit 6 and the color look-up table 7 shown in FIG. 1, as shown in FIG. 4.
FIG. 4 shows a constitution of a modified embodiment of the first embodiment shown in FIG. 1. In FIG. 4, the VRAM 4 outputs the color codes to the color look-up table 7 wherein the color codes are converted into the three color data D.sub.r, D.sub.g and D.sub.b. These three color data are supplied to a data modifier circuit 25 which is constituted by first and second registers and the zero detection circuit as similar to the data modifier circuit 6 shown in FIG. 2. The color data D.sub.r, D.sub.g and D.sub.b the values of which does not equal to "0" are stored in the second register (which corresponds to the register 12 shown in FIG. 2), however, the color data D.sub.r, D.sub.g and D.sub.b having the same value of "0" are not stored in the second register. The color data D.sub.r, D.sub.g and D.sub.b outputted from the data modifier circuit 25 are supplied to the DAC 8r, 8g and 8b wherein these three color data are converted into the analog signals, so that the CRT display unit 5 performs the color dot display as described before.
In the above-mentioned embodiments, it is possible to stop to renew data in the second register (register 12) when the value of the data is not equal to "0" but other selected value. In this case, the zero detection circuit 13 must be displaced by a coincidence circuit for detecting whether the value of output data from the register 11 is equal to that of the selected data.
Next, description will be given with respect to the second embodiment.
FIG. 5 shows the whole constitution of the second embodiment according to the present invention. In FIG. 5, when the CPU 1 outputs the display command to the display controller 3, a series of display data DD which are pre-stored in the VRAM 4 are sequentially read out from the VRAM 4 in accordance with the dot clock CLK. In addition, the display controller 3 generates the synchronizing signal SYNC based on the dot clock CLK and the synchronizing signal SYNC is supplied to the CRT display unit 5.
One of main differences between the first and second embodiments is that the display data DD is used instead of the color code CC.
Next, description will be given with respect to the display data DD pre-stored in the VRAM 4.
This display data DD includes the color codes CC and modifier codes MC. The modifier codes MC can take a value within "0", "1" and "2", and the color codes CC can take integral values other than the values of "0", "1" and "2". More specifically, "7", "5", "4", "9", "A", "B", "6", "5" and "9" designate the color codes CC, and "0", "1" and "2" designate the modifier codes MC in FIG. 7(b). Hence, it is inhibited to use the values of "0" to "2" for the color codes CC. The function of the modified codes MC will be described later.
In FIG. 5, 31 designates a color look-up table wherein the color codes CC from the VRAM 4 are converted into the three color data D.sub.r, D.sub.g and D.sub.b. These three color data D.sub.r, D.sub.g and D.sub.b are supplied to respective data modifier circuits 32r, 32g and 32b. On the other hand, the modifier codes MC from the VRAM 4 are not accepted in the color look-up table 31. The three color data D.sub.r, D.sub.g and D.sub.b are converted into respective modified color data D.sub.r1, D.sub.g1 and D.sub.b1 by a predetermined modifier conversion in the data modifier circuit 32r, 32g and 32b. These three modified color data are supplied to the respective DAC 8r, 8g and 8b wherein three modified color data D.sub.r1, D.sub.g1 and D.sub.b1 are converted into analog signals, such as a red signal S.sub.r, a green signal S.sub.g and a blue signal S.sub.b. These three analog signals are supplied to the CRT display unit 5, so that the CRT display unit 5 performs the dot color display. The data modifier circuit 32r, 32g and 32b have the same constitution.
Next, description will be given with respect the detailed constitution of the data modifier circuit 32r as a representative of other modifier circuits in conjunction with FIG. 6.
In FIG. 6, the data modifier circuit 32r consists of 8-bit registers 101 to 104, an OR gate 105, multiplexers 106 to 110 and adders 111 and 112. More specifically, the registers 101 to 104 store respective data in accordance with the clock timing of the dot clock CLk. In addition, the multiplexers 106 to 110 output respective data inputted into input terminals <1> when signals having the value of "1" (hereinafter, a signal having the value of "1" will be referred to as a 1-signal) are inputted into control terminals C thereof, and the multiplexer 106 to 110 output respective data inputted into input terminals <0> when the 1-signals are inputted into control terminals C thereof.
The modifier codes MC from the VRAM 4 are supplied to a decoder 33. The decoder 33 outputs the 1-signal from an output terminal <0> when the modifier code "0" is inputted into the decoder 33. Similarly, the decoder 33 outputs the 1 signal from an output terminal <1> when the modifier code "1" is inputted into the decoder 33, and the decoder 33 outputs the 1-signal from an output terminal <2> when the modifier code "2" inputted into the decoder 33. The output signal from one of three output terminals <0> to <2> of the decoder 33 is supplied to corresponding one of three input terminals of a register 34 wherein the output signal is delayed by one clock timing of the dot clock CLK. The two of three output terminals of the register 34 are connected to corresponding two input terminals of the register 35 wherein two output signals among the three output signals of the register 34 are delayed by one clock timing of the dot clock CLK and are outputted as signals C.sub.1 and C.sub.2. The three output terminals of the register 34 are connected to corresponding three input terminals of an OR gate 36 so that the OR gate 36 outputs a signal C.sub.0 as the OR-result. The signals C.sub.0, C.sub.1 and C.sub.2 are supplied to a NOR gate 37 wherein a signal C.sub.3 is outputted as the NOR-result. These signals C.sub.1, C.sub.2 and C.sub.3 are supplied to the data modifier circuit 32r, 32g and 32b in parallel. The waveform examples of the signals C.sub.1 to C.sub.3 and C.sub.0 corresponding to the display data DD shown in FIG. 7(b) are shown in FIGS. 7(c) to 7(f).
Next, description will be given with respect to the display operation of the second embodiment shown in FIGS. 5 and 6.
The color image display apparatus according to the second embodiment provides four modes; (1) direct display mode, (2) primary coefficient load mode, (3) secondary coefficient load mode, (4) modifier display mode. Hereinafter, description will be given with respect to these four modes in turn in conjunction with a timing chart shown in FIG. 7.
(1) DIRECT DISPLAY MODE
The direct display mode will be performed when the color code CC is read out from the VRAM 4 and the preceding display data DD is not the modifier code MC having the values of "1" and "2". More specifically, the direct display mode will be performed when the color codes CC having the values of "7", "5", "4", "9", "6", "5" and "9" shown in FIG. 7 are read out from the VRAM 4. This direct display mode is roughly identical to the display operation of the conventional color image display apparatus.
First, the color codes CC outputted from the VRAM 4 are converted into the color data D.sub.r, D.sub.g and D.sub.b in the color look-up table 31. The color data D.sub.r is stored in the register 101 shown in FIG. 6 at a next clock timing of the dot clock CLK, so that the output data of the register 101 (as shown in FIG. 7(g)) can be obtained. In this case, FIG. 7(g) shows not the values of the color data D.sub.r but the values of the color code CC, for of sake of convenience.
Meanwhile, the value of the signal C.sub.3 becomes "1" as shown in FIG. 7(e) when register 101 outputs the data the value of which takes the value other than "0", "1", "2", "A" and "B". In this case, the output data of the register 101 inputted into the input terminal <1> of the multiplexer 110 is supplied to and is stored in the register 104 at a next leading edge timing of the dot clock CLK.
More specifically, the color code CC (excluding the color code CC which follows the modifier code MC of "1" and "2") outputted from the VRAM 4 is converted into the color data D.sub.r in the color look-up table 31 and is outputted from the register 104 after the two clock timing of the dot clock CLK (as shown by M1 in FIG. 7(h)). The output data of the register 104 is converted into the analog red color signal S.sub.r in the DAC 8r, and the red color signal S.sub.r is supplied to the CRT display unit 5. Similarly, the green color signal S.sub.g and the blue color signal S.sub.b will be generated in the DAC 8g and 8b. Therefore, the CRT display unit 5 performs the color dot display operation in response to the color code CC.
On the other hand, when the value of the signal C.sub.3 becomes "1"the output 1-signal of the OR gate 105 is supplied to the control terminal C of the multiplexer 106, so that the data "0" inputted into the terminal <1> of the multiplexer 106 is outputted from the multiplexer 106. This data "0" is passed through the multiplexer 107 and is supplied to and stored in the register 102 at a next clock timing of the dot clock CLK. Hence, the register 102 is reset by the data of "0". Similarly, when the value of the signal C.sub.3 becomes "1", the data "0" inputted into the terminal <1> of the multiplexer 108 is outputted from the multiplexer 108. This data "0" is supplied to and stored in the register 103 via the adder 111 and the multiplexer 109, so that the register 103 is reset by the data "0".
(2 ) PRIMARY COEFFICIENT LOAD MODE
When the VRAM 4 outputs the modifier code MC of "1", the data "A" following the modifier code MC of "1" (shown in FIG. 7(b) ) is loaded to the register 103 as the primary coefficient. As shown in FIG. 7(c), the value of the signal C.sub.1 becomes "1" when the two clock timing of the dot clock CLK is passed after a time when the VRAM 4 outputs the modifier code MC of "1". The output data "A" of the register 101 is supplied to the register 103 via the multiplexer 109 at a time when the value of the signal C.sub.1 becomes "1". Thereafter, this output data "A" is stored in the register 103 at a next clock timing of the dot clock CLK as shown in FIG. 7(i). In addition, when the value of the signal C.sub.1 becomes "1", the value of the output signal of the OR gate 105 becomes "1" so that the data "0" inputted into the terminal <1> of the multiplexer 106 is outputted from the multiplexer 106. This data " 0" is passed through the multiplexer 107 and is supplied to the register 102 wherein the data "0" is stored therein at a next clock timing of the dot clock CLK. Hence, the register 102 is reset by the data "0".
(3) SECONDARY COEFFICIENT LOAD MODE
When the VRAM 4 outputs the modifier code MC of "2", the data "B" following the modifier code MC of "2" (as shown in FIG. 7(b) ) is loaded in the register 102 as the secondary coefficient. In this case, the value of the signal C.sub.2 becomes "1" (as shown in FIG. 7(d) ) when the two clock timing of the dot clock CLK is passed after a time when the VRAM 4 outputs the modifier code MC of "2". When the value of the signal C.sub.2 becomes "1", the data "B" from the register 101 is passed through the multiplexer 107 and is supplied to the register 102 wherein the data "B" is stored therein at a next clock timing of the dot clock CLK as shown in FIG. 7(j).
(4) MODIFIER DISPLAY MODE
The modifier display mode is performed when the modifier code MC of "0" is outputted from the VRAM 4. In this case, the value of the signal C.sub.0 becomes "1" as shown in FIG. 7(f) when one clock timing is passed after a time when the VRAM 4 outputs the modifier code of "0". At this time, the signals C.sub.1 and C.sub.2 have the same value of "0" and the signal C.sub.0 has the value of "1", hence, the output signal C.sub.3 of the NOR gate 37 (shown in FIG. 5) has the value of "0". At the same time, the adder 112 outputs the addition result obtained from the output data of the register 104 and the output data of the multiplexer 109. This addition result of the adder 112 is passed through the multiplexer 110 and is supplied to the register 104 wherein the addition result is stored therein at a next clock timing of the dot clock CLK. In other words, in the case where the value of the signal C.sub.3 is equal to "0", the data stored in the register 104 is added with the output data of the multiplexer 109 at every time when one clock of the dot clock CLK is generated. As described before, the CRT display unit 5 (shown in FIG. 5) performs the color dot display operation based on the data stored in the register 104.
Next, description will be given with respect to a display mode in the modifier display mode.
(a) CONSTANT SHADING (One Color Painting)
When the values of the two data respectively stored in the registers 102 and 103 both become "0", the adder 111 outputs the data "0". This output data "0" of the adder 111 is supplied to the adder 112 via the multiplexer 109. As a result, the data stored in the register 104 does not change as shown by M2 in FIG. 7(h), regardless of the dot clock CLK. Due to the data M2, the same color is repeatedly displayed at display dots.
(b) GOURAUD SHADING (Line Interpolation Shading)
When the data "0" is stored in the register 102 and the data other than the data "0" is stored in the register 103, the multiplexer 107 outputs the data "0", so that the output data of the adder 111 becomes identical to that of the register 103. Such output data of the adder 111 is supplied to the adder 112 via the multiplexer 109. In this case, the data stored in the register 103 is repeatedly added to the data stored in the register 104 at every time when one clock of the dot clock CLK is generated. Therefore, the value of the data stored in the register 104 is successively increased by a constant value corresponding to the data stored in the register 103 as shown by M3 in FIG. 7(h). As a result, the displayed color of the CRT display unit 5 changes linearly.
(c) PHONG SHADING (Curve Interpolation Shading)
When both of the values of two data respectively stored in the registers 102 and 103 take the values other than "0", the data stored in the register 102 is passed through the multiplexers 106 and 107 in series and is supplied to the adder 111 wherein the data stored in the register 102 is added to the data stored in the register 103. The addition result of the adder 111 is supplied to the adder 112 via the multiplexer 109. As shown in FIG. 7(j), since the data stored in the register 102 circulates through the multiplexers 106 and 107, the value of the data stored in the register 102 does not change, regardless of the dot clock CLK. Incidentally, the value of the data stored in the register 102 only changes in the secondary coefficient load mode as described before. Meanwhile, the data stored in the register 103 is repeatedly added with the data stored in the register 102 in response to the clock timing of the dot clock CLK. Therefore, the value of the data stored in the register 103 changes linearly, as shown in FIG. 7(i). Thereafter, the data stored in the register 103 is added with the data stored in the register 104 in the adder 112, and the addition result of the adder 112 is stored in the register 104 in accordance with the dot clock CLK. As shown by M4 in FIG. 7(h), the value of the data stored in the register 104 successively changes with a curved line, hence, the displayed color of the CRT display unit 5 changes with a curved line.
Above is the description of the display mode in the modifier display mode.
As is same to the case where the VRAM 4 outputs the modifier code MC of "0", the value of the signal C.sub.3 becomes "1" (as shown in FIG. 7(e)) at a time when one clock timing of the dot clock CLK is passed after the VRAM 4 outputs the modifier code MC of "1" or "2" (in the primary or secondary coefficient mode). Therefore, the display operation in the primary or secondary coefficient mode is identical to the display operation in the case where the value of the modifier code MC is equal to "0". For this reason, as shown by M5 and M6 in FIG. 7(h), the operations in the above-mentioned (a), (b) and (c) will be performed. The data "A" following the modifier code of "1" is stored in the register 103 (as shown in FIG. 7(i)) after next two clock timings of the dot clock CLK. Similarly, the data "B" following the modifier code of "2" is stored in the register 102 (as shown in FIG. 7(j)) after next two clock timings of the dot clock CLK. As shown in FIG. 7(h), the above two data "A" and "B" are respectively added to the data stored in the register 104 at the same timing.
As described before, the data "0" must be pre-stored in the VRAM 4 in order to perform the above-mentioned modifier display mode when the VRAM 4 outputs the data "0" in the second embodiment. In the case where a red image P is displayed in the center of the blue background on the screen DP shown in FIG. 8, the VRAM 4 must be cleared first. Next, the red color codes are written into the VRAM 4 as display data of each display dot within the dot rows D1 and D2, and the blue color codes are written into the VRAM 4 as display data of each display dot within the dot rows D3 and D4. In addition, the blue color codes are written into the VRAM 4 as display data of each display dot within the dot row D5. In this case, the display data "0" must be written into the VRAM 4 as the display data of all display dot other than those within the dot rows D1 to D5. Due to the constant shading described before, the image P is painted by the red color and the background thereof is painted by the blue color.
Next, description will be given with respect to the case where the same color is displayed at display dots D.sub.a to D.sub.b, the linearly changing color is displayed at display dots D.sub.c to D.sub.d and the color which changes with a curved line is displayed at display dots D.sub.e to D.sub.f. In this case, the VRAM 4 must be cleared first. Next, a certain color code is written into the VRAM 4 as the display data of the display dot D.sub.a, and the modifier code MC of "1" is written into the VRAM 4 as the display data of the display dot D.sub.b. In addition, the primary coefficient (the data "A" shown in FIG. 7(b), for example) is written into the VRAM 4 as the display data of the display dot D.sub.c, and the modifier code MC of "2" is written into the VRAM 4 as the display data of the display dot D.sub.d. Furthermore, the secondary coefficient (the data "B" shown in FIG. 7(b), for example) is written into the VRAM 4 as the display data of the display dot D.sub.e.
Above is the whole description of the present invention. This invention may be practiced or embodied in still other ways without departing from the spirit or essential character thereof. For instance, the data modifier circuit is not limited to the constitutions shown in FIGS. 2 and 6. In addition, the image displayed on the screen of the CRT display unit 5 is not limited to the color image, a black-and-white image can be also displayed on the screen. The preferred embodiments described herein are therefore illustrative and not restrictive, the scope of the invention being indicated by the appended claims and all variations which come within the meaning of the claims are intended to be embraced therein.
Claims
  • 1. A color image display apparatus for use with a color display means responsive to a plurality of color signals, and for displaying a color graphic image having at least one region composed of a plurality of display dots and defined by boundaries, said plurality of display dots having colors determined respectively by color display data which are converted into said color signals, said color image display apparatus comprising:
  • (a) display memory means for storing a plurality of color display codes and modifier codes therein, said color display codes and said modifier codes corresponding to display dots of said color graphic image which coincide with said boundaries;
  • (b) data judgment means for judging whether or not said modifier codes are inputted therein, said data judgment means outputting control signals corresponding to the value of said modifier codes when said modifier codes are inputted into said data judgment means;
  • (c) data conversion means for converting said color display codes into color display data;
  • (d) data modifier means for modifying said color display data based on said control signals, so as to produce color display data of said color graphic image, said data modifier means comprising
  • (1) data register means for successively inputting said color display data therein, and
  • (2) modifier means for modifying said color display data stored in said data register means, said modification of said color display data being based on said control signals, said data register means outputting modified color display data; and
  • (e) a color display means for displaying a color graphic image corresponding to said modified color display data from said data register means.
  • 2. The color image display apparatus according to claim 1, wherein said display memory means is a display random access memory.
  • 3. The color image display apparatus according to claim 1 which further includes:
  • (a) system memory means for pre-storing said plurality of color display codes corresponding to the boundaries of said color graphic image; and
  • (b) display control means for controlling read-out and write-in operations of said display memory means, said display memory means being cleared at a primary stage and thereafter said color display codes corresponding to only said boundaries of said color graphic image being read out from said system memory means and being supplied to and written into said display memory means, and said color display codes stored in said display memory means being sequentially read out and supplied to said data judgment means and said data conversion means.
  • 4. The color image display apparatus according to claim 1, wherein said control signals carry out a process for writing said color display data into said data register means and a process for holding said color display data in said data register means for a predetermined time period.
  • 5. A display apparatus comprising:
  • (a) display memory means for storing a plurality of display codes and modifier codes therein;
  • (b) data judgment means for judging whether said modifier codes are inputted therein or not, said data judgment means outputting control signals corresponding to the value of said modifier code when said modifier code is inputted into said data judgment means;
  • (c) data conversion means for converting said display codes into display data;
  • (d) data modifier means for modifying said display data based on said control signals, said data modifier means comprising
  • (1) data register means for successively inputting said display data therein, and
  • (2) modifier means for modifying said display data stored in said data register means based on said control signals, said data register means outputting modified display data; and
  • (e) display means for displaying an image corresponding to said modified display data from said data register means,
  • said data modifier means changing the values of said display data, said data modifier means further including,
  • (a) first register means for storing said display data therein,
  • (b) first selecting means for selecting one of data "0" and the output data of said first register means based on said control signals,
  • (c) first adder means for adding said output data of said first register means and the output data of said first selecting means together so as to obtain first modified display data, said display means displaying an image corresponding to said first modified display data.
  • 6. A display apparatus comprising:
  • (a) display memory means for storing a plurality of display codes and modifier codes therein;
  • (b) data judgment means for judging whether said modifier codes are inputted therein or not, said data judgment means outputting control signals corresponding to the value of said modifier code when said modifier code is inputted into said data judgment means;
  • (c) data conversion means for converting said display codes into display data;
  • (d) data modifier means for modifying said display data based on said control signals, said data modifier means comprising
  • (1) data register means for successively inputting said display data therein,
  • (2) modifier means for modifying said display data stored in said data register means based on said control signals, said data register means outputting modified display data; and
  • (e) display means for displaying an image corresponding to said modified display data from said data register means,
  • said display apparatus performing, on the basis of said control signals, a process for writing said display data into said data register means and a process for holding said display data in said data register means for a while, said data modifier means changing the values of said display data, said data modifier means further including,
  • (a) second register means for storing said first modified display data therein,
  • (b) second selecting means for selecting one of data "0" and said first modified display data outputted from said second register means based on said control signals,
  • (c) second adder means for adding the output data of said second register means and the output data of said second selecting means together so as to obtain second modified display data, said display means displaying an image corresponding to said second modified display data.
  • 7. A color image display apparatus for use with a color display means responsive to a plurality of color signals, and for displaying a color graphic image having at least one region composed of a plurality of display dots and defined by boundaries, said plurality of display dots having colors determined respectively by color display data which are converted into said color signals, said color image display apparatus comprising:
  • (a) display memory means for selectively storing color display data corresponding to said boundaries, and being selected from all of said color display data corresponding to said color graphic image to be
  • (b) data modifier means for modifying said color display data corresponding to said boundaries so as to thereby generate said color display data of said color graphic image, not stored in said display memory means; and
  • (c) a color display means for displaying a color graphic image based on said modified color display data generated by said data modifier means and said color display data stored in said display memory means corresponding to said boundaries.
Priority Claims (2)
Number Date Country Kind
61-140877 Jun 1986 JPX
62-693 Jan 1987 JPX
US Referenced Citations (7)
Number Name Date Kind
4246578 Kawasaki et al. Jan 1981
4314357 Kimura et al. Feb 1982
4459677 Porter et al. Jul 1984
4481594 Staggs et al. Nov 1984
4498081 Fukushima et al. Feb 1985
4498098 Stell Feb 1985
4665438 Miron et al. May 1987
Foreign Referenced Citations (3)
Number Date Country
1200631 Feb 1986 CAX
2143106A Jan 1985 GBX
2167926A Jun 1986 GBX
Non-Patent Literature Citations (1)
Entry
Artwick, "Microcomputer Displays, Graphics, and Animation"; Prentice-Hall, New Jersey, 1985, pp. 290-292.