JPH07234948A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH07234948A
JPH07234948A JP6051254A JP5125494A JPH07234948A JP H07234948 A JPH07234948 A JP H07234948A JP 6051254 A JP6051254 A JP 6051254A JP 5125494 A JP5125494 A JP 5125494A JP H07234948 A JPH07234948 A JP H07234948A
Authority
JP
Japan
Prior art keywords
color information
color data
data
pixel data
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP6051254A
Other languages
Japanese (ja)
Other versions
JP3055390B2 (en
Inventor
Taro Ito
太郎 伊東
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP6051254A priority Critical patent/JP3055390B2/en
Publication of JPH07234948A publication Critical patent/JPH07234948A/en
Application granted granted Critical
Publication of JP3055390B2 publication Critical patent/JP3055390B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To make the device compact by attaining the sufficiently fast processing speed when plotting the picture by using the shading technic and reducing the parts cost and the parts mounting area. CONSTITUTION:A write data controller 3 stores only the color data of the respective picture elements at the plotting start point and the plotting end point in the register of a register group 4 corresponding to the column address from a column address decoder 8. A color data shading arithmetic device 5 performs shading by linearly complementing the color data at the plotting start point and the color data of the plotting end point. The color data of the picture element which is shaded by the arithmetic device 5 is written successively in the corresponding register in the register group 4 by the write data controller 3. The data of the register group 4 are written in a memory cell array 11 by a max. amt. of 256 picture elements at the same time by a serial write controller 6.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関し、特
に画像データを高速にメモリセルに書込む必要のある装
置に用いられる半導体画像記憶素子に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to a semiconductor image storage element used in an apparatus that requires high speed writing of image data in a memory cell.

【0002】[0002]

【従来の技術】従来、コンピュータグラフィックスの分
野では画像をよりリアルに表現するためにシェーディン
グモデルが用いられている。このシェーディングモデル
とは三次元空間の中に物体や光源があるとき、物体の各
点がどのような色や明るさに見えるかを近似的に計算す
る方式である。
2. Description of the Related Art Conventionally, in the field of computer graphics, a shading model has been used to represent an image more realistically. The shading model is a method of approximately calculating what color and brightness each point of an object looks like when an object or a light source is present in a three-dimensional space.

【0003】すなわち、画像が徐々に明るくなっていく
場合や暗くなっていく場合、あるいは画像の色が徐々に
濃くなっていく場合や薄くなっていく場合に、それを表
現するためにシェーディングの手法が用いられる。
That is, when an image gradually becomes brighter or darker, or when the color of the image gradually becomes darker or lighter, a shading method is used to express it. Is used.

【0004】このシェーディングの手法では画像の明る
さや暗さ、あるいは色の濃さを画像データに対して1画
素ずつ計算しており、その計算はソフトウェアまたは外
部のハードウェアを用いて行われている。
In this shading method, the brightness, darkness, or color density of an image is calculated pixel by pixel with respect to image data, and the calculation is performed using software or external hardware. .

【0005】これらソフトウェアまたは外部のハードウ
ェアの計算結果は、行アドレスストローブ信号及び列ア
ドレスストローブ信号の立下りのタイミングで決定され
るアドレスによって画素の色データを一画素分ずつ画像
記憶素子のメモリに記憶している。
The calculation result of these software or external hardware is stored in the memory of the image storage element for each pixel of color data of the pixel by the address determined by the timing of the fall of the row address strobe signal and the column address strobe signal. I remember.

【0006】[0006]

【発明が解決しようとする課題】上述した従来の画像記
憶素子では、シェーディングの手法を用いたソフトウェ
アまたは外部のハードウェアの計算結果である画素の色
データのみが記憶されているが、ソフトウェアにより上
記の計算を行い、その計算結果をメモリに記憶する方法
の場合、上記の計算に多大な計算コストがかかるため、
メモリのアクセス速度を高速化しても、シェーディング
の手法を用いて画像を描画する際に充分な処理速度を得
ることができない。
In the above-mentioned conventional image storage element, only the color data of the pixel which is the calculation result of the software using the shading method or the external hardware is stored. In the case of the method of performing the calculation of and storing the calculation result in the memory, the above calculation requires a large calculation cost.
Even if the memory access speed is increased, a sufficient processing speed cannot be obtained when an image is drawn using the shading method.

【0007】また、外部のハードウェアにより上記の計
算を行い、その計算結果をメモリに記憶する方法の場
合、上記の計算を行うために多大な部品コスト及び広い
部品実装面積が要求されるので、これらが装置を小型化
する際の大きな障害となっている。
Further, in the case of the method of performing the above calculation by the external hardware and storing the calculation result in the memory, a large component cost and a wide component mounting area are required to perform the above calculation. These are major obstacles in downsizing the device.

【0008】そこで、本発明の目的は上記の問題点を解
消し、シェーディングの手法を用いて画像を描画する際
に充分な処理速度を得ることができ、部品コスト及び部
品実装面積を低減して装置の小型化を可能とすることが
できる画像処理装置を提供することにある。
Therefore, an object of the present invention is to solve the above problems, to obtain a sufficient processing speed when drawing an image using a shading method, and to reduce the component cost and the component mounting area. An object of the present invention is to provide an image processing device capable of downsizing the device.

【0009】[0009]

【課題を解決するための手段】本発明による画像処理装
置は、各々色情報をもつ画素データ列を記憶する画像記
憶素子を含む画像処理装置であって、前記画素データ列
の色情報を保持する保持手段と、前記保持手段に保持さ
れた画素データ列の色情報のうち指定された画素データ
各々の色情報を予め設定された方向に順次可変する色情
報可変手段と、前記色情報可変手段で可変された色情報
を前記保持手段に書込む書込み手段と、前記保持手段の
内容を複数の画素データ列の色情報を格納するメモリセ
ルに転送する手段とを前記画像記憶素子に備えている。
An image processing apparatus according to the present invention is an image processing apparatus including an image storage element that stores a pixel data string having color information, and holds the color information of the pixel data string. A holding means; a color information changing means for sequentially changing the color information of each designated pixel data among the color information of the pixel data row held by the holding means in a preset direction; and the color information changing means. The image storage element is provided with a writing unit that writes the changed color information to the holding unit and a unit that transfers the contents of the holding unit to a memory cell that stores the color information of a plurality of pixel data strings.

【0010】本発明による他の画像処理装置は、上記の
構成のほかに、前記書込み手段による前記色情報可変手
段で可変された色情報を前記保持手段に書込む際に外部
から指定された画素データの色情報の書込みを禁止する
手段を前記画像記憶素子に具備している。
According to another image processing apparatus of the present invention, in addition to the above configuration, a pixel designated externally when the color information changed by the color information changing means by the writing means is written in the holding means. The image storage element is provided with means for prohibiting writing of color information of data.

【0011】本発明による別の画像処理装置は、上記の
構成のほかに、前記書込み手段による前記色情報可変手
段で可変された色情報を前記保持手段に書込む際に前記
色情報を構成するビット情報のうち外部から指定された
ビット情報の書込みを禁止する手段を前記画像記憶素子
に具備している。
In addition to the above configuration, another image processing apparatus according to the present invention configures the color information when the color information changed by the color information changing means by the writing means is written in the holding means. The image storage element is provided with means for prohibiting writing of bit information designated from the outside of the bit information.

【0012】[0012]

【作用】画素データ列のうち指定された描画開始点の画
素の色データと、描画終了点の画素の色データとの差と
描画画素数とから隣合う画素の可変量を算出し、この可
変量を描画開始点の画素の色データに加算する。
The variable amount of the adjacent pixel is calculated from the difference between the color data of the pixel at the specified drawing start point and the color data of the pixel at the drawing end point in the pixel data string and the number of drawing pixels. The amount is added to the color data of the pixel at the drawing start point.

【0013】その加算結果を描画開始点の画素の色デー
タが保持されたレジスタの隣のレジスタに保持する。こ
の動作を描画終了点の画素の色データを保持すべきレジ
スタまで順次繰返し行う。
The addition result is held in the register next to the register in which the color data of the pixel at the drawing start point is held. This operation is sequentially repeated up to the register that should hold the color data of the pixel at the drawing end point.

【0014】これによって、各画素の色データをメモリ
セルに転送する前にシェーディングを行うことができる
ので、シェーディングの手法を用いて画像を描画する際
に充分な処理速度を得ることができ、部品コスト及び部
品実装面積を低減して装置の小型化を可能とすることが
できる。
As a result, since shading can be performed before the color data of each pixel is transferred to the memory cell, a sufficient processing speed can be obtained when an image is drawn using the shading method, The cost and the component mounting area can be reduced, and the device can be downsized.

【0015】また、色データに可変量を加算してレジス
タに書込む際に外部から指定された画素の色データの書
込みを禁止することで、シェーディングされた色データ
に対するラスタ方向のマスクが可能となり、シェーディ
ングされた色データの配置制御が高速化される。
Further, by prohibiting the writing of the color data of the pixel designated from the outside when adding the variable amount to the color data and writing the same in the register, it becomes possible to mask the shaded color data in the raster direction. The arrangement control of shaded color data is speeded up.

【0016】さらに、色データに可変量を加算してレジ
スタに書込む際に色データを構成するビット情報のうち
外部から指定されたビット情報の書込みを禁止すること
で、シェーディングされた色データに対するメモリの奥
行き方向のマスクガ可能となり、シェーディングされた
色データ全体に対する明暗等の制御を高速化される。
Furthermore, when adding a variable amount to the color data and writing it to the register, by prohibiting the writing of externally designated bit information out of the bit information forming the color data, the shaded color data can be written. The masking in the depth direction of the memory is enabled, and the speed of controlling the brightness and the like for the entire shaded color data is accelerated.

【0017】[0017]

【実施例】次に、本発明の一実施例について図面を参照
して説明する。
An embodiment of the present invention will be described with reference to the drawings.

【0018】図1は本発明の一実施例の構成を示すブロ
ック図である。図において、本発明の一実施例による画
像記憶素子は入出力バッファ(Input/Outpu
tBuffer)1と、カウンタ(Counter)2
と、ライトデータコントローラ(Write Data
Controller)3と、レジスタ群(Regi
ster)4と、色データシェーディング演算器(De
lta Value& Shade Color Ca
lculator)5と、シリアルライトコントローラ
(Serial Write Controller)
6と、ライトコントローラ(Write Contro
ller)7と、カラムアドレスレコーダ(Colum
n Decoder)8と、アドレスバッファ(Add
ress Buffer)9と、ロウアドレスデコーダ
(Law Decoder)10と、メモリセルアレイ
(Memory Cell Array)11と、シリ
アルアクセスメモリ(Serial Access M
em)12と、シリアル出力バッファ(Serial
Output Buffer)13と、ライトマスクレ
ジスタ(Write Mask Register)1
4と、ライトプレーンマスクコントローラ(Write
Plane Mask Controller)15
とから構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, an image storage device according to an embodiment of the present invention is shown as an input / output buffer (Input / Output).
tBuffer) 1 and a counter (Counter) 2
And write data controller (Write Data)
Controller) 3 and registers (Regi)
4) and a color data shading calculator (De
lta Value & Shade Color Ca
1) and a serial write controller (Serial Write Controller)
6 and the light controller (Write Control
(ller) 7 and a column address recorder (Column
n Decoder) 8 and an address buffer (Add
(resist buffer) 9, row address decoder (law decoder) 10, memory cell array (memory cell array) 11, serial access memory (serial access memory)
em) 12 and a serial output buffer (Serial
Output Buffer) 13 and write mask register (Write Mask Register) 1
4 and the light plane mask controller (Write
Plane Mask Controller) 15
It consists of and.

【0019】この画像記憶素子において、レジスタ群4
は各々8ビット長の色データを保持する256個のレジ
スタ(レジスタ番号#0〜#255)からなり、256
通りの異なる8ビット長の色データを保持することがで
きる。ここで、8ビット長の色データ各々は符号無し整
数1バイトで表現できる範囲0〜255の色値を表して
いる。
In this image storage element, the register group 4
Is composed of 256 registers (register numbers # 0 to # 255) each holding 8-bit color data.
Different types of 8-bit color data can be held. Here, each 8-bit color data represents a color value in a range of 0 to 255 that can be represented by an unsigned integer 1 byte.

【0020】また、色データシェーディング演算器5は
レジスタ群4に保持された256通りの異なる8ビット
長の色データをシェーディングする機能を持っている。
Further, the color data shading calculator 5 has a function of shading 256 different 8-bit length color data held in the register group 4.

【0021】上記の画像記憶素子を用いて色データのシ
ェーディングを行う場合、まずレジスタ群4内のレジス
タ番号#0〜#255の間の任意の隣接しない2つのレ
ジスタに夫々描画開始点及び描画終了点の画素の色デー
タを与える必要がある。
When shading of color data is performed using the above image storage element, first, the drawing start point and the drawing end are respectively set in two non-adjacent registers between the register numbers # 0 to # 255 in the register group 4. It is necessary to give the color data of the point pixel.

【0022】そこで、シェーディングされた画素の色デ
ータの書込みを行う開始点及び終了点のカラムアドレス
をカラムアドレスデコーダ8でデコードしてライトデー
タコントローラ3に出力し、ライトデータコントローラ
3によってそれらのカラムアドレスに対応するレジスタ
群4のレジスタに描画開始点及び描画終了点各々の画素
の色データのみをストアする。
Therefore, the column address decoder 8 decodes the column address at the start point and the end point at which the writing of the shaded pixel color data is performed, and outputs the decoded column address to the write data controller 3. Only the color data of the pixels at the drawing start point and the drawing end point are stored in the registers of the register group 4 corresponding to.

【0023】このシェーディング描画を行う描画画素数
は、「(描画終了点のカラムアドレス)−(描画開始点
のカラムアドレス)+1」という計算式からカウンタ2
で演算されて保持される。
The number of drawing pixels for this shading drawing is calculated by the counter 2 from the formula "(drawing end point column address)-(drawing start point column address) +1".
Is calculated and stored in.

【0024】色データシェーディング演算器5は描画開
始点の色データと描画終了点の色データとを線形補完す
ることでシェーディングを行う。すなわち、色データシ
ェーディング演算器5は描画開始点の色データと描画終
了点の色データとの差分を計算し、その差分を描画画素
数で割って画素毎に順次累算していく値を求める。
The color data shading calculator 5 performs shading by linearly complementing the color data at the drawing start point and the color data at the drawing end point. That is, the color data shading calculator 5 calculates the difference between the color data at the drawing start point and the color data at the drawing end point, divides the difference by the number of drawing pixels, and obtains a value that is sequentially accumulated for each pixel. .

【0025】色データシェーディング演算器5はその求
めた値を順次隣合う画素の色データに加算していくこと
でシェーディングを行う。色データシェーディング演算
器5でシェーディングされた画素の色データはライトデ
ータコントローラ3によってレジスタ群4の対応するレ
ジスタに順次書込まれていく。
The color data shading calculator 5 performs shading by sequentially adding the obtained values to the color data of adjacent pixels. The color data of pixels shaded by the color data shading calculator 5 is sequentially written in the corresponding registers of the register group 4 by the write data controller 3.

【0026】レジスタ群4にシェーディング描画を行お
うとする画素の色データが全て書込まれると、シリアル
ライトコントローラ6によってレジスタ群4のデータが
最大256画素分同時にメモリセルアレイ11に書込ま
れる。
When all the color data of the pixel to be subjected to the shading drawing is written in the register group 4, the serial write controller 6 simultaneously writes the data of the register group 4 for the maximum 256 pixels in the memory cell array 11.

【0027】ここで、メモリセルアレイ11は256ビ
ット×512のメモリセルが8個で構成されており、こ
れら8個のメモリセル各々には8個のカラムアドレスデ
コーダ8から夫々カラムアドレスが供給される。
Here, the memory cell array 11 is composed of eight memory cells of 256 bits × 512, and column addresses are supplied from eight column address decoders 8 to each of these eight memory cells. .

【0028】一方、入出力バッファ1に接続されたデー
タバス(図示せず)に、描画開始点及び描画終了点各々
の色データとともにラスタ方向のマスクデータを与えた
場合、そのマスクデータによってマスクされる色データ
のレジスタ群4への書込みは禁止される。
On the other hand, when mask data in the raster direction is given to the data bus (not shown) connected to the input / output buffer 1 together with the color data at the drawing start point and the drawing end point, the mask data is masked. Writing of color data to the register group 4 is prohibited.

【0029】すなわち、色データシェーディング演算器
5でシェーディングされた画素の色データがライトデー
タコントローラ3によってレジスタ群4の対応するレジ
スタに書込まれるとき、ライトデータコントローラ3は
マスクデータにしたがって対応する色データのレジスタ
群4への書込みを禁止する。
That is, when the color data of the pixel shaded by the color data shading calculator 5 is written in the corresponding register of the register group 4 by the write data controller 3, the write data controller 3 determines the corresponding color according to the mask data. Writing of data to the register group 4 is prohibited.

【0030】よって、レジスタ群4からメモリセルアレ
イ11にはマスクデータによってマスクされなかった色
データのみが転送されることとなる。これによって、表
示画面(図示せず)のラスタ方向にシェーディングされ
た色データの書込みを画素単位で禁止することができ
る。
Therefore, only the color data not masked by the mask data is transferred from the register group 4 to the memory cell array 11. As a result, writing of color data shaded in the raster direction of the display screen (not shown) can be prohibited in pixel units.

【0031】また、入出力バッファ1に接続されたデー
タバスに、描画開始点及び描画終了点各々の色データと
ともにメモリの奥行き方向のマスクデータを与えた場
合、色データを構成する8ビットのうちマスクデータに
よってマスクされるビットに対応する色データのメモリ
セルアレイ11への書込みが禁止される。
When mask data in the depth direction of the memory is given to the data bus connected to the input / output buffer 1 together with the color data at the drawing start point and the drawing end point, of the 8 bits forming the color data. Writing of the color data corresponding to the bits masked by the mask data into the memory cell array 11 is prohibited.

【0032】すなわち、データバスから入出力バッファ
1に入力されたマスクデータは、入出力バッファ1から
ライトマスクレジスタ14にストアされる。ライトプレ
ーンマスクコントローラ15はレジスタ群4からメモリ
セルアレイ11にシェーディングされた色データが転送
されるときに、ライトマスクレジスタ14にストアされ
ているマスクデータに基づき、色データを構成する8ビ
ットのうち対応するビットの色データをレジスタ群4か
らメモリセルアレイ11に転送するのを禁止する。これ
によって、メモリセルアレイ11の奥行き方向の任意の
ビットにシェーディングされた色データの書込みを禁止
することができる。
That is, the mask data input from the data bus to the input / output buffer 1 is stored in the write mask register 14 from the input / output buffer 1. When the shaded color data is transferred from the register group 4 to the memory cell array 11, the write plane mask controller 15 corresponds to the 8 bits forming the color data based on the mask data stored in the write mask register 14. The transfer of the bit color data from the register group 4 to the memory cell array 11 is prohibited. As a result, it is possible to prohibit the writing of the color data shaded in any bit in the depth direction of the memory cell array 11.

【0033】図2は図1の色データシェーディング演算
器5の構成を示すブロック図である。図において、色デ
ータシェーディング演算器5は8ビット減算器(8 b
itsubber)51と、16ビット除算器(16
bit divider)52と、16ビットデータレ
ジスタ(16 bit data register)
53と、16ビット加算器(16 bit adde
r)54とから構成されている。ここで、16ビットデ
ータレジスタ53は内部を整数部8ビット及び小数部8
ビットとして使用する。
FIG. 2 is a block diagram showing the configuration of the color data shading calculator 5 of FIG. In the figure, a color data shading calculator 5 is an 8-bit subtractor (8 b
51) and a 16-bit divider (16
bit divider 52 and a 16-bit data register (16 bit data register)
53 and a 16-bit adder (16 bit add
r) 54. Here, the 16-bit data register 53 has an 8-bit integer part and 8-bit decimal part
Used as a bit.

【0034】色データシェーディング演算器5は色デー
タをシェーディングする際に、レジスタ群4から与えら
れた2点(描画開始点及び描画終了点)の画素の色デー
タと描画画素数とに基づいて2点間の色データの差を算
出する。
When shading the color data, the color data shading calculator 5 calculates 2 based on the color data of the pixels of 2 points (drawing start point and drawing end point) given from the register group 4 and the number of drawing pixels. Calculate the difference in color data between points.

【0035】すなわち、8ビット減算器51は描画終了
点の色データから描画開始点の色データを引いて、それ
ら2点間の差を算出する。16ビット除算器52は8ビ
ット減算器51で算出された2点間の差を描画画素数で
割って2点間の色データの差分Δ値を算出する。
That is, the 8-bit subtractor 51 subtracts the color data at the drawing start point from the color data at the drawing end point to calculate the difference between these two points. The 16-bit divider 52 divides the difference between the two points calculated by the 8-bit subtractor 51 by the number of drawing pixels to calculate the difference Δ value of the color data between the two points.

【0036】上述したように、2点間の色データの差分
Δ値は、「[(描画終了点の色データ)−(描画開始点
の色データ)]/描画画素数」という計算式で求めるこ
とができる。この求められた2点間の色データの差分Δ
値は16ビットデータレジスタ53に保持される。
As described above, the difference Δ value of the color data between the two points is calculated by the formula "[(color data at the drawing end point)-(color data at the drawing start point)] / number of drawing pixels". be able to. The difference Δ of the color data obtained between the two points
The value is held in the 16-bit data register 53.

【0037】描画開始点と描画終了点との間の各画素の
メモリセルアレイ11に書込む色データを決定するに
は、16ビット加算器54で描画開始点の色データに2
点間の色データの差分Δ値を加算していくことによって
行う。
In order to determine the color data to be written in the memory cell array 11 of each pixel between the drawing start point and the drawing end point, the 16-bit adder 54 adds 2 to the color data at the drawing start point.
This is performed by adding the difference Δ value of the color data between the points.

【0038】すなわち、レジスタ#nに描画開始点の色
データが格納されている場合、このレジスタ#nに格納
された色データに16ビットデータレジスタ53に保持
された差分Δ値を16ビット加算器54で加算し、その
値をレジスタ#(n+1)に画素の色データとして書込
む。
That is, when the color data at the drawing start point is stored in the register #n, the difference Δ value held in the 16-bit data register 53 is added to the color data stored in the register #n by the 16-bit adder. The value is added at 54 and the value is written in the register # (n + 1) as the color data of the pixel.

【0039】また、レジスタ#(n+1)の色データに
差分Δ値を加算し、その値をレジスタ#(n+2)に画
素の色データとして書込むというように、隣のレジスタ
に保持された色データに差分Δ値を加算してライトデー
タコントローラ3の制御でレジスタ群4に順次書込んで
いく。ここで、レジスタ群4には計算された色データの
整数部8ビットが書込まれる。
Further, the difference Δ value is added to the color data of the register # (n + 1), and the value is written in the register # (n + 2) as the color data of the pixel. The difference Δ value is added to and the data is sequentially written into the register group 4 under the control of the write data controller 3. Here, 8 bits of the integer part of the calculated color data are written in the register group 4.

【0040】上記のようにして計算された色データの書
込み順序は、(描画開始点の色データが格納されたレジ
スタ番号)<(描画終了点の色データが格納されたレジ
スタ番号)の場合、レジスタ群4の左から右の順とな
る。
The writing order of the color data calculated as described above is as follows: (register number storing color data at the drawing start point) <(register number storing color data at the drawing end point) The order of the register group 4 is from left to right.

【0041】一方、(描画開始点の色データが格納され
たレジスタ番号)>(描画終了点の色データが格納され
たレジスタ番号)の場合、色データの書込み順序はレジ
スタ群4の右から左の順となる。
On the other hand, if (the register number in which the color data at the drawing start point is stored)> (the register number in which the color data at the drawing end point is stored), the writing order of the color data is from right to left of register group 4. Will be in order.

【0042】例えば、シェーディングされた色データが
レジスタ#29〜#228に格納され、描画開始点の色
データをx、描画終了点の色データをyとすると、レジ
スタ#30にはx+(x−y)/200が、レジスタ#
31にはx+2[(x−y)/200]が夫々格納され
る。
For example, if the shaded color data is stored in the registers # 29 to # 228 and the color data at the drawing start point is x and the color data at the drawing end point is y, then x + (x- in the register # 30. y) / 200 is the register #
31 stores x + 2 [(xy) / 200], respectively.

【0043】以降、レジスタ#32〜#227に順次差
分△値が累算された色データが格納され、レジスタ#2
28に描画終了点の色データyが格納されるというよう
に順次Δ値[(x−y)/200]が累算されて格納さ
れることになる。
Thereafter, the color data in which the difference Δ value is sequentially accumulated is stored in the registers # 32 to # 227, and the register # 2 is stored.
The color data y at the drawing end point is stored in 28, and Δ values [(x−y) / 200] are sequentially accumulated and stored.

【0044】したがって、色データシェーディング演算
器5に16ビット加算器54の加算結果を保持するレジ
スタと、このレジスタと外部から入力される色データと
のうち一方を選択するセレクタとを設けて16ビット加
算器54の加算結果に順次Δ値を加算していくようにし
てもよい。
Therefore, the color data shading calculator 5 is provided with a register for holding the addition result of the 16-bit adder 54 and a selector for selecting one of this register and color data input from the outside, and 16 bits are provided. The Δ value may be sequentially added to the addition result of the adder 54.

【0045】このように、色データのシェーディングを
画像記憶素子の内部に設けた色データシェーディング演
算器5で行うことによって、色データをシェーディング
するための外部のハードウェアが不要となる。
As described above, since the shading of the color data is performed by the color data shading calculator 5 provided inside the image storage element, external hardware for shading the color data becomes unnecessary.

【0046】よって、シェーディングの手法を用いて画
像を描画する際に充分な処理速度を得ることができ、部
品コスト及び部品実装面積を低減して装置の小型化を可
能とすることができる。
Therefore, it is possible to obtain a sufficient processing speed when drawing an image using the shading method, reduce the component cost and the component mounting area, and make the apparatus compact.

【0047】また、1回のメモリアクセスで、シェーデ
ィングされた色データをラスタ方向に同時に描画するこ
とができるので、極めて高速なシェーディング描画を行
うことができる。
Further, since shaded color data can be simultaneously drawn in the raster direction by one memory access, extremely high speed shading drawing can be performed.

【0048】さらに、この1回のメモリアクセスで、シ
ェーディングされた色データに対するラスタ方向または
メモリの奥行き方向のマスクも行うことができるので、
シェーディングされた色データの配置やその色データ全
体に対する明暗等の制御を高速に行うことができる。
Furthermore, the masking in the raster direction or the depth direction of the memory can be performed on the shaded color data by this one memory access.
It is possible to control the arrangement of shaded color data and the brightness and the like of the entire color data at high speed.

【0049】[0049]

【発明の効果】以上説明したように本発明の画像処理装
置によれば、画素データ列のうち指定された画素データ
各々の色情報を予め設定された方向に順次可変してレジ
スタに書込み、このレジスタに書込まれた画素データの
色情報をメモリセルに転送することによって、シェーデ
ィングの手法を用いて画像を描画する際に充分な処理速
度を得ることができ、部品コスト及び部品実装面積を低
減して装置の小型化を可能とすることができるという効
果がある。
As described above, according to the image processing apparatus of the present invention, the color information of each designated pixel data in the pixel data string is sequentially changed in the preset direction and written in the register. By transferring the color information of the pixel data written in the register to the memory cell, it is possible to obtain sufficient processing speed when drawing an image using the shading method, and reduce the component cost and component mounting area. Therefore, there is an effect that the device can be downsized.

【0050】また、本発明の他の画像処理装置によれ
ば、可変された画素データの色情報をレジスタに書込む
際に外部から指定された画素データの色情報の書込みを
禁止することによって、シェーディングされた色情報に
対するラスタ方向のマスクを行うことができ、シェーデ
ィングされた色データの配置制御を高速化することがで
きるという効果がある。
Further, according to another image processing apparatus of the present invention, when the color information of the changed pixel data is written in the register, the writing of the color information of the pixel data designated from the outside is prohibited, There is an effect that masking in the raster direction can be performed on shaded color information, and the speed of arrangement control of shaded color data can be increased.

【0051】さらに、本発明の別の画像処理装置によれ
ば、可変された画素データの色情報をレジスタに書込む
際に色情報を構成するビット情報のうち外部から指定さ
れたビット情報の書込みを禁止することによって、シェ
ーディングされた色情報に対するメモリの奥行き方向の
マスクを行うことができ、シェーディングされた色情報
全体に対する明暗等の制御を高速化することができると
いう効果がある。
Further, according to another image processing apparatus of the present invention, when the color information of the changed pixel data is written in the register, the bit information designated from the outside among the bit information constituting the color information is written. By prohibiting the shading, it is possible to mask the shaded color information in the depth direction of the memory, and it is possible to speed up the control of the brightness and the like for the entire shaded color information.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】図1の色データシェーディング演算器の構成を
示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a color data shading calculator shown in FIG.

【符号の説明】[Explanation of symbols]

2 カウンタ 3 ライトデータコントローラ 4 レジスタ群 5 色データシェーディング演算器 6 シリアルライトコントローラ 7 ライトコントローラ 8 カラムアドレスデコーダ 11 メモリセルアレイ 14 ライトマスクレジスタ 15 ライトプレーンマスクコントローラ 51 8ビット減算器 52 16ビット除算器 53 16ビットデータレジスタ 54 16ビット加算器 2 counter 3 write data controller 4 register group 5 color data shading calculator 6 serial write controller 7 write controller 8 column address decoder 11 memory cell array 14 write mask register 15 write plane mask controller 51 8-bit subtractor 52 16-bit divider 53 16 Bit data register 54 16-bit adder

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/10 B 9471−5G G06F 15/66 310 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/10 B 9471-5G G06F 15/66 310

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 各々色情報をもつ画素データ列を記憶す
る画像記憶素子を含む画像処理装置であって、前記画素
データ列の色情報を保持する保持手段と、前記保持手段
に保持された画素データ列の色情報のうち指定された画
素データ各々の色情報を予め設定された方向に順次可変
する色情報可変手段と、前記色情報可変手段で可変され
た色情報を前記保持手段に書込む書込み手段と、前記保
持手段の内容を複数の画素データ列の色情報を格納する
メモリセルに転送する手段とを前記画像記憶素子に有す
ることを特徴とする画像処理装置。
1. An image processing apparatus including an image storage element for storing a pixel data string having color information, the holding device holding the color information of the pixel data string, and the pixel held by the holding device. Color information varying means for sequentially varying the color information of each designated pixel data in the color information of the data string in a preset direction, and the color information varied by the color information varying means is written in the holding means. An image processing apparatus comprising: a writing unit; and a unit that transfers the contents of the holding unit to a memory cell that stores color information of a plurality of pixel data strings in the image storage element.
【請求項2】 前記書込み手段による前記色情報可変手
段で可変された色情報を前記保持手段に書込む際に外部
から指定された画素データの色情報の書込みを禁止する
手段を前記画像記憶素子に含むことを特徴とする請求項
1記載の画像処理装置。
2. A means for inhibiting writing of color information of pixel data designated from the outside when the color information changed by the color information changing means by the writing means is written in the holding means. The image processing apparatus according to claim 1, further comprising:
【請求項3】 前記書込み手段による前記色情報可変手
段で可変された色情報を前記保持手段に書込む際に前記
色情報を構成するビット情報のうち外部から指定された
ビット情報の書込みを禁止する手段を前記画像記憶素子
に含むことを特徴とする請求項1または請求項2記載の
画像処理装置。
3. When writing the color information changed by the color information changing means by the writing means to the holding means, writing of bit information designated from the outside among bit information forming the color information is prohibited. 3. The image processing apparatus according to claim 1, wherein the image storage element includes a means for performing the operation.
【請求項4】 前記色情報可変手段は、前記指定された
画素データの色情報うち描画開始点となる画素データの
色情報及び描画終了点となる画素データの色情報に基づ
いて前記描画開始点と前記描画終了点との間の画素デー
タ各々の色情報を順次可変するよう構成されたことを特
徴とする請求項1から請求項3のいずれか記載の画像処
理装置。
4. The drawing start point is based on the color information of pixel data serving as a drawing start point and the color information of pixel data serving as a drawing end point in the color information of the designated pixel data. 4. The image processing apparatus according to claim 1, wherein the color information of each pixel data between the drawing end point and the drawing end point is sequentially changed.
【請求項5】 前記色情報可変手段は、前記描画開始点
となる画素データの色情報と前記描画終了点となる画素
データの色情報との減算を行う減算手段と、前記減算手
段の減算結果を前記描画開始点と前記描画終了点との間
の画素数で除算する除算手段と、前記除算手段の除算結
果を隣合う画素データの色情報に加算する加算手段とか
ら構成されたことを特徴とする請求項4記載の画像処理
装置。
5. The subtraction means for subtracting the color information of the pixel data serving as the drawing start point from the color information of the pixel data serving as the drawing end point, and the subtraction result of the subtracting means. Is divided by the number of pixels between the drawing start point and the drawing end point, and addition means for adding the division result of the dividing means to the color information of adjacent pixel data. The image processing device according to claim 4.
JP6051254A 1994-02-23 1994-02-23 Image processing device Expired - Fee Related JP3055390B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6051254A JP3055390B2 (en) 1994-02-23 1994-02-23 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6051254A JP3055390B2 (en) 1994-02-23 1994-02-23 Image processing device

Publications (2)

Publication Number Publication Date
JPH07234948A true JPH07234948A (en) 1995-09-05
JP3055390B2 JP3055390B2 (en) 2000-06-26

Family

ID=12881820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6051254A Expired - Fee Related JP3055390B2 (en) 1994-02-23 1994-02-23 Image processing device

Country Status (1)

Country Link
JP (1) JP3055390B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001187456A (en) * 1998-11-26 2001-07-10 Seiko Epson Corp Printing device and cartridge
US6304269B1 (en) 1998-02-27 2001-10-16 Nec Corporation Image processor
JP2002370386A (en) * 1998-11-26 2002-12-24 Seiko Epson Corp Printer and cartridge
US7195346B1 (en) 1998-11-02 2007-03-27 Seiko Epson Corporation Ink cartridge and printer using the same

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62166473A (en) * 1986-01-20 1987-07-22 Hitachi Ltd Shadow graphic form generating device
JPS63276185A (en) * 1987-04-30 1988-11-14 インターナショナル・ビジネス・マシーンズ・コーポレーション Shading of display polygon

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62166473A (en) * 1986-01-20 1987-07-22 Hitachi Ltd Shadow graphic form generating device
JPS63276185A (en) * 1987-04-30 1988-11-14 インターナショナル・ビジネス・マシーンズ・コーポレーション Shading of display polygon

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6304269B1 (en) 1998-02-27 2001-10-16 Nec Corporation Image processor
US7071951B2 (en) 1998-02-27 2006-07-04 Nec Corporation Image processor
US7195346B1 (en) 1998-11-02 2007-03-27 Seiko Epson Corporation Ink cartridge and printer using the same
US7393092B2 (en) 1998-11-02 2008-07-01 Seiko Epson Corporation Ink cartridge and printer using the same
JP2001187456A (en) * 1998-11-26 2001-07-10 Seiko Epson Corp Printing device and cartridge
JP2002370386A (en) * 1998-11-26 2002-12-24 Seiko Epson Corp Printer and cartridge

Also Published As

Publication number Publication date
JP3055390B2 (en) 2000-06-26

Similar Documents

Publication Publication Date Title
US5185856A (en) Arithmetic and logic processing unit for computer graphics system
EP1025558B1 (en) A method and apparatus for performing chroma key, transparency and fog operations
JP2854866B2 (en) Image processing system and pixel data processing method
WO1999053469A1 (en) A system and method for performing blending using an over sampling buffer
CA2216915C (en) Picture drawing apparatus and picture drawing method
US4984183A (en) Graphics display controller for transferring figure data to overlapping portions of destination area and drawing-enable area defined by clipping rectangle
JPS6162980A (en) Picture memory peripheral lsi
US5777599A (en) Image generation device and method using dithering
JP2610200B2 (en) Image processing device
JP3055390B2 (en) Image processing device
US5732248A (en) Multistep vector generation for multiple frame buffer controllers
US5714975A (en) Apparatus and method for generating halftoning or dither values
US6487308B1 (en) Method and apparatus for providing 64-bit YUV to RGB color conversion
US5920322A (en) Method and apparatus for providing 32-bit YUV to RGB color conversion
JP2845384B2 (en) Image processing device
JPH08220510A (en) Display controller
US6172714B1 (en) Color adjustment table system for YUV to RGB color conversion
US8427490B1 (en) Validating a graphics pipeline using pre-determined schedules
JPH09305164A (en) Bit-blt method for bitmap data and graphic controller
JP2854867B2 (en) Image processing system and pixel data transfer method
US6088033A (en) Method and apparatus for processing picture elements
JPS6382530A (en) Semiconductor storage device
EP1120958A2 (en) Polynomial based multi-level screening
JPH0528771A (en) Memory element
EP0177058A2 (en) A method and a device for calculating a histogram

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080414

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090414

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100414

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110414

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees