JPH0895552A - Image processing method and apparatus - Google Patents

Image processing method and apparatus

Info

Publication number
JPH0895552A
JPH0895552A JP6230820A JP23082094A JPH0895552A JP H0895552 A JPH0895552 A JP H0895552A JP 6230820 A JP6230820 A JP 6230820A JP 23082094 A JP23082094 A JP 23082094A JP H0895552 A JPH0895552 A JP H0895552A
Authority
JP
Japan
Prior art keywords
color
screen
priority
color calculation
image
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.)
Withdrawn
Application number
JP6230820A
Other languages
Japanese (ja)
Inventor
Seiichi Kajiwara
誠一 梶原
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.)
Sega Corp
Original Assignee
Sega Enterprises Ltd
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 Sega Enterprises Ltd filed Critical Sega Enterprises Ltd
Priority to JP6230820A priority Critical patent/JPH0895552A/en
Publication of JPH0895552A publication Critical patent/JPH0895552A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

(57)【要約】 【目的】 多種多様なカラー演算を行うことができる画
像処理方法及び装置を提供する。 【構成】 コントロールレジスタには、プライオリティ
ナンバー及びカラー演算イネーブルと、それらを設定す
る単位として画面、キャラクタ、もしくはドットのいず
れかが設定される。この設定に基づき、プライオリティ
判断部40ではプライオリティが決定され、カラー演算
イネーブルコントロール部70では、カラー演算イネー
ブルが決定される。また、コントロールレジスタには、
各画面毎に、複数のカラー演算割合のうちのいずれかが
設定されており、カラー演算割合コントロール部60に
おいて、上記プライオリティに基づいて各画面のいずれ
かのカラー演算割合が選択される。これらに基づき、カ
ラー演算部110においてカラー演算が行われる。
(57) [Summary] [Object] To provide an image processing method and apparatus capable of performing various color operations. [Structure] In the control register, a priority number and color operation enable, and either a screen, a character, or a dot are set as a unit for setting them. Based on this setting, the priority determination unit 40 determines the priority, and the color calculation enable control unit 70 determines the color calculation enable. Also, in the control register,
One of a plurality of color calculation ratios is set for each screen, and the color calculation ratio control unit 60 selects one of the color calculation ratios for each screen based on the priority. Based on these, the color calculation unit 110 performs color calculation.

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 method and apparatus for performing color calculation based on the priority of each screen.

【0002】[0002]

【従来の技術】従来より、ゲーム機に使用される画像処
理装置では、背景を表示する複数の背景画(静止画)
に、ゲームに登場するキャラクタを表示する前景画(動
画)を重ね合わせて、ラスタスキャン形モニタの画面上
に表示するようになっている。これら背景画及び前景画
には、各々表示優先順位(以下、プライオリティ)が決
められており、それぞれが重なり合う位置にはプライオ
リティの高い前景画または背景画のみが表示される。プ
ライオリティはプライオリティナンバーによって決めら
れており、一例としてプライオリティナンバーが大であ
る画像が手前に表示される。このプライオリティナンバ
ーは、背景画は通常面単位もしくはセル単位で指定さ
れ、前景画はキャラクタ単位で指定される。
2. Description of the Related Art Conventionally, in an image processing device used in a game machine, a plurality of background images (still images) displaying a background are displayed.
In addition, a foreground image (moving image) for displaying a character appearing in the game is overlaid and displayed on the screen of the raster scan monitor. The display priority (hereinafter referred to as priority) is determined for each of the background image and the foreground image, and only the foreground image or the background image with high priority is displayed at a position where they overlap each other. The priority is determined by the priority number, and as an example, an image with a large priority number is displayed in the foreground. In this priority number, the background image is usually designated in plane units or cell units, and the foreground image is designated in character units.

【0003】例えば、図21(a)に示す背景画BG0
と、(b)に示す背景画BG1と、(c)に示す前景画
FGとがあり、背景画BG0のプライオリティナンバー
が「4」、背景画BG1のプライオリティナンバーが
「2」、前景画FGのキャラクタCHRのプライオリテ
ィナンバーが「6」であるとする。そして、これらを重
ね合わせると、図21(d)に示すようにキャラクタC
HR→背景画BG0→背景画BG1の順位で手前にある
ように見える。
For example, the background image BG0 shown in FIG.
There are a background image BG1 shown in (b) and a foreground image FG shown in (c), and the priority number of the background image BG0 is "4", the priority number of the background image BG1 is "2", and the foreground image FG is It is assumed that the priority number of the character CHR is “6”. When these are overlaid, the character C is displayed as shown in FIG.
HR → background image BG0 → background image BG1 appears to be in the foreground.

【0004】また、図22に示すように、背景画BG0
を通して背景画BG1が透けて見えるようにする場合が
ある。これは、背景画BG1のプライオリティに関わり
なく背景画BG0と重なり合う部分にカラー演算処理を
施すことによって得られる。このカラー演算処理は、重
なる2画面の同じ座標上にある画素のカラーデータをそ
のまま加算するか、もしくはその加算結果を2で割るこ
とにより、手前の画像を通して奥の画像が透けて見える
ような効果を出す処理である。
Further, as shown in FIG. 22, the background image BG0
In some cases, the background image BG1 may be seen through. This is obtained by performing the color arithmetic processing on the portion overlapping with the background image BG0 regardless of the priority of the background image BG1. This color calculation processing is an effect that the image in the back can be seen through the image in the foreground by adding the color data of the pixels on the same coordinates of the two overlapping screens as it is or by dividing the addition result by 2. Is the process of issuing.

【0005】このカラー演算処理を行うか否かは、RO
Mに記憶されたプログラムデータに画面毎に指定されて
いる。このプログラムデータは、CPUによって読み出
されることにより、実行される。
Whether or not this color calculation processing is performed depends on the RO
It is specified for each screen in the program data stored in M. This program data is executed by being read by the CPU.

【0006】[0006]

【発明が解決しようとする課題】ところで、従来の画像
処理装置においては、背景画のプライオリティは各画面
単位もしくはセル単位で設定していたため、各背景画上
のキャラクタのプライオリティは全て同じであり、部分
的に変えることはできなかった。また、同様に、カラー
演算を行うか否かについても、背景画の画面毎に設定し
ていたため、背景画の一部分だけにカラー演算を施すこ
とは不可能であった。
By the way, in the conventional image processing apparatus, since the priority of the background image is set in each screen unit or cell unit, all the characters on each background image have the same priority. It could not be partially changed. Similarly, whether or not the color calculation is performed is set for each screen of the background image, so that it is impossible to perform the color calculation on only a part of the background image.

【0007】更に、カラー演算処理では、2画面の画素
のカラーデータをそのまま加算するかもしくは加算した
結果を2で割る(1:1で加算する)だけであったた
め、透け方が常に同じであり、奥の画像が手前の画像に
とけ込みながら徐々に現れてくるような表示を行うこと
は困難であった。また、前景画と複数の背景画が重なり
合う部分であっても、前景画と背景画、もしくは背景画
と背景画といった2画面分のカラー演算しか行うことが
できなかった。
Further, in the color calculation process, the color data of the pixels of the two screens are either added as they are or the result of the addition is simply divided by 2 (added by 1: 1). Therefore, the transparency is always the same. It was difficult to perform a display in which the image at the back gradually merges with the image at the front and gradually appears. Further, even in the portion where the foreground image and the plurality of background images overlap, it is only possible to perform color calculation for two screens such as the foreground image and the background image or the background image and the background image.

【0008】本発明は、このような従来技術の問題点に
鑑みて提案されたものであり、その第1の目的は、セル
単位でもドット単位でも画像データのプライオリティを
設定することができる画像処理方法を提供することにあ
る。
The present invention has been proposed in view of the above problems of the prior art, and its first object is to perform image processing capable of setting the priority of image data in cell units or dot units. To provide a method.

【0009】本発明の第2の目的は、同一画面上で画面
単位、セル単位、もしくはドット単位のいずれによって
も、カラー演算を行うか否か指定することのできる画像
処理方法を提供することにある。
A second object of the present invention is to provide an image processing method capable of designating whether or not color calculation is performed on the same screen in screen units, cell units or dot units. is there.

【0010】本発明の第3の目的は、カラー演算割合を
変更することのできる画像処理方法を提供することにあ
る。
A third object of the present invention is to provide an image processing method capable of changing the color calculation ratio.

【0011】本発明の第4の目的は、3画面のカラー演
算を行うことのできる画像処理方法を提供することにあ
る。
A fourth object of the present invention is to provide an image processing method capable of performing color calculation for three screens.

【0012】本発明の第5の目的は、ラインカラー画面
を使用することのできる画像処理方法を提供することに
ある。
A fifth object of the present invention is to provide an image processing method capable of using a line color screen.

【0013】本発明の第6の目的は、同一画面上でドッ
ト毎にプライオリティを変化させることのできる画像処
理装置を提供することにある。
A sixth object of the present invention is to provide an image processing apparatus capable of changing the priority for each dot on the same screen.

【0014】本発明の第7の目的は、プライオリティを
セル単位もしくはドット単位で設定することのできる画
像処理装置を提供することにある。
A seventh object of the present invention is to provide an image processing apparatus capable of setting the priority in cell units or dot units.

【0015】本発明の第8の目的は、上記設定を簡単な
構成で行うことのできる画像処理装置を提供することに
ある。
An eighth object of the present invention is to provide an image processing apparatus capable of performing the above setting with a simple structure.

【0016】本発明の第9の目的は、セル毎もしくはド
ット毎にカラー演算を行うか否かの指定を行うことので
きる画像処理装置を提供することにある。
A ninth object of the present invention is to provide an image processing apparatus capable of designating whether or not color calculation is performed for each cell or each dot.

【0017】本発明の第10の目的は、上記指定を簡単
な構成で行うことのできる画像処理装置を提供すること
にある。
A tenth object of the present invention is to provide an image processing apparatus capable of performing the above-mentioned designation with a simple structure.

【0018】本発明の第11の目的は、複数種類のカラ
ー演算割合から選択することのできる画像処理装置を提
供することにある。
An eleventh object of the present invention is to provide an image processing apparatus capable of selecting from a plurality of types of color calculation ratios.

【0019】本発明の第12の目的は、上記選択を簡単
な構成で行うことのできる画像処理装置を提供すること
にある。
A twelfth object of the present invention is to provide an image processing apparatus capable of making the above selection with a simple structure.

【0020】本発明の第13の目的は、3画面のカラー
演算を行うことのできる画像処理装置を提供することに
ある。
A thirteenth object of the present invention is to provide an image processing apparatus capable of performing color calculation of three screens.

【0021】本発明の第14の目的は、ラインカラー画
面を使用することのできる画像処理装置を提供すること
にある。
A fourteenth object of the present invention is to provide an image processing apparatus which can use a line color screen.

【0022】本発明の第15の目的は、単色のラインカ
ラー画面を使用することのできる画像処理装置を提供す
ることにある。
A fifteenth object of the present invention is to provide an image processing apparatus capable of using a monochromatic line color screen.

【0023】本発明の第16の目的は、移動回転変換処
理が行われる画面とラインカラー画面とでカラー演算を
行うことのできる画像処理装置を提供することにある。
A sixteenth object of the present invention is to provide an image processing apparatus capable of performing color calculation on a screen on which movement / rotation conversion processing is performed and a line color screen.

【0024】[0024]

【課題を解決するための手段】上記目的を達成するため
に、請求項1記載の発明による画像処理方法は、画像メ
モリから複数の画面についての画像データを読み出し、
それらのプライオリティに基づいて映像信号を生成する
画像処理方法において、前記複数の画面のプライオリテ
ィを設定する単位として、「画面」、その画面を構成す
る「セル」、及びそのセルを構成する「ドット」のうち
のいずれか1つを選択することを特徴としている。
In order to achieve the above object, the image processing method according to the invention of claim 1 reads image data for a plurality of screens from an image memory,
In an image processing method for generating a video signal based on those priorities, as a unit for setting priorities of the plurality of screens, "screen", "cells" forming the screens, and "dots" forming the cells It is characterized in that any one of them is selected.

【0025】請求項2記載の発明による画像処理方法
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面のプライオリティが最も高い部分におい
てカラー演算を行い、その結果に基づいて映像信号を生
成する画像処理方法において、前記カラー演算を行うか
否かを設定する単位として、「画面」、その画面を構成
する「セル」、及びそのセルを構成する「ドット」のう
ちのいずれか1つを選択し、その選択した単位に応じ
て、カラー演算を行うか否かを設定することを特徴とし
ている。
In the image processing method according to the second aspect of the present invention, the image data of a plurality of screens are read from the image memory, the priorities thereof are compared, and
In the image processing method of performing color calculation in the highest priority portion of the designated screen and generating a video signal based on the result, the "screen" is a unit for setting whether or not to perform the color calculation, The feature is that any one of "cells" forming the screen and "dots" forming the cells is selected, and whether or not color calculation is performed is set according to the selected unit. There is.

【0026】請求項3記載の発明による画像処理方法
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面のプライオリティが最も高い部分におい
てカラー演算を行い、その結果に基づいて映像信号を生
成する画像処理方法において、前記カラー演算を行う際
の他の画面との演算比率であるカラー演算割合を複数設
定し、前記複数の画面の各々について前記カラー演算割
合のうちのいずれかを選択し、前記指定された画面のプ
ライオリティが最も高い部分において、当該画面の画像
データと、その部分において前記プライオリティが2番
目に高い画面の画像データとでカラー演算を行う際に、
前記指定された画面について設定された前記カラー演算
割合と、前記プライオリティが2番目に高い画面につい
て設定された前記カラー演算割合とのうちのいずれか一
方を選択し、その選択したカラー演算割合に基づいて、
カラー演算を行うことを特徴としている。
According to the image processing method of the present invention, the image data of a plurality of screens are read from the image memory and their priorities are compared with each other.
In the image processing method in which color calculation is performed in a portion having the highest priority on the designated screen and a video signal is generated based on the result, a color calculation ratio that is a calculation ratio with other screens when performing the color calculation. Is set, and any one of the color calculation ratios is selected for each of the plurality of screens, and the image data of the screen and the priority of the screen are specified in the part where the priority of the specified screen is the highest. When performing color calculation with the image data of the second highest screen,
Based on the selected color calculation ratio, one of the color calculation ratio set for the designated screen and the color calculation ratio set for the screen with the second highest priority is selected. hand,
The feature is that color calculation is performed.

【0027】請求項4記載の発明による画像処理方法
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面の中で他の画面と比べてプライオリティ
が最も高い部分においてカラー演算を行い、その結果に
基づいて映像信号を生成する画像処理方法において、前
記指定された画面のプライオリティが最も高い部分にお
いて、前記プライオリティが2番目に高い画面の画像デ
ータと3番目に高い画像データとでカラー演算を行い、
その結果を前記プライオリティが2番目に高い画面の画
像データとし、前記指定された画面の画像データとカラ
ー演算を行うことを特徴としている。
According to the image processing method of the present invention, the image data of a plurality of screens are read out from the image memory, their priorities are compared, and
In the image processing method of performing a color calculation in a portion of the designated screen having the highest priority as compared with other screens and generating a video signal based on the result, the portion of the designated screen having the highest priority In, the color calculation is performed on the image data of the screen having the second highest priority and the image data of the third highest priority,
The result is used as image data of the screen having the second highest priority, and color calculation is performed with the image data of the designated screen.

【0028】請求項5記載の発明による画像処理方法
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面の中で他の画面と比べてプライオリティ
が最も高い部分においてカラー演算を行い、その結果に
基づいて映像信号を生成する画像処理方法において、前
記画像メモリ内に、カラー演算用のラインカラー画面を
構成する各ライン毎カラーデータを、ラインカラー画面
テーブルとして格納し、前記指定された画面のプライオ
リティが最も高い部分において、前記ラインカラー画面
のカラーデータを前記プライオリティが2番目に高い画
面の画像データとし、前記指定された画面の画像データ
とカラー演算を行うことを特徴としている。
According to the image processing method of the present invention, the image data of a plurality of screens are read out from the image memory, their priorities are compared, and
In the image processing method of performing color calculation in a portion of the designated screen having the highest priority as compared with other screens and generating a video signal based on the result, a line for color calculation in the image memory. The color data for each line constituting the color screen is stored as a line color screen table, and the color data of the line color screen is stored in the line color screen table of the screen having the second highest priority in the portion having the highest priority of the specified screen. Image data is used, and color calculation is performed with the image data of the specified screen.

【0029】請求項6記載の発明による画像処理装置
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティに基づいて映像信号
を生成する画像処理装置において、前記プライオリティ
を前記画面を構成するドット毎に設定するプライオリテ
ィ設定手段を具備することを特徴としている。
According to the sixth aspect of the present invention, there is provided an image processing apparatus which reads out image data of a plurality of screens from an image memory and generates a video signal based on the priority of the plurality of screens. It is characterized in that it is provided with a priority setting means for setting each of the constituent dots.

【0030】請求項7記載の発明による画像処理装置
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティに基づいて映像信号
を生成する画像処理装置において、前記画面毎にプライ
オリティを表すプライオリティナンバーを設定するプラ
イオリティナンバー設定手段と、前記プライオリティナ
ンバーを設定する単位として、「画面」、その画面を構
成する「セル」、及びそのセルを構成する「ドット」の
うちのいずれか1つを選択するプライオリティ設定選択
手段と、前記プライオリティ設定選択手段によって前記
単位として「ドット」が選択されると、前記プライオリ
ティナンバーをドット単位で変更し、前記単位として
「セル」が選択されると、前記プライオリティナンバー
をセル単位で変更するプライオリティ変更手段とを具備
することを特徴としている。
An image processing apparatus according to a seventh aspect of the present invention is an image processing apparatus which reads out image data of a plurality of screens from an image memory and generates a video signal based on the priority of each of the screens. Priority number setting means for setting a priority number to be represented, and as a unit for setting the priority number, any one of a "screen", a "cell" forming the screen, and a "dot" forming the cell When the priority setting selection means for selecting, and "dot" is selected as the unit by the priority setting selection means, the priority number is changed in dot units, and when "cell" is selected as the unit, the Change the priority number in cell units It is characterized by comprising a priority changing means.

【0031】請求項8記載の発明による画像処理装置
は、請求項7記載の発明において、前記画像データから
前記セル単位で設定されているプライオリティ用ビット
を検出するプライオリティ用ビット検出手段を有し、前
記プライオリティ変更手段は、前記プライオリティ設定
選択手段により前記単位として「セル」が選択される
と、前記プライオリティ用ビットを当該セルを構成する
ドットのプライオリティナンバーの最下位ビットとし、
「ドット」が選択されると、前記プライオリティ用ビッ
トがオンとなっているセルを構成するドットのうち、そ
の画像データが所定の値と一致したドットのプライオリ
ティナンバーの最下位ビットをオンとすることを特徴と
している。
An image processing apparatus according to an eighth aspect of the present invention is the image processing apparatus according to the seventh aspect, further comprising priority bit detection means for detecting the priority bit set in the cell unit from the image data, The priority changing means, when the "cell" is selected as the unit by the priority setting selecting means, the priority bit is set to the least significant bit of the priority number of the dots forming the cell,
When "dot" is selected, among the dots forming the cell in which the priority bit is turned on, the least significant bit of the priority number of the dot whose image data matches a predetermined value is turned on. Is characterized by.

【0032】請求項9記載の発明による画像処理装置
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面の中で他の画面と比べてプライオリティ
が最も高い部分においてカラー演算を行い、その結果に
基づいて映像信号を生成する画像処理装置において、前
記カラー演算を行うか否かを設定する単位として、「画
面」、その画面を構成する「セル」、及びそのセルを構
成する「ドット」のうちのいずれか1つを選択するカラ
ー演算設定選択手段と、前記カラー演算設定選択手段に
よって前記単位として「画面」が選択されると、前記カ
ラー演算を行うか否かを画面毎に設定し、「セル」が選
択されるとセル毎に設定し、「ドット」が選択されると
ドット毎に設定するカラー演算イネーブル設定手段とを
具備することを特徴としている。
According to a ninth aspect of the present invention, an image processing apparatus reads out image data of a plurality of screens from an image memory, compares the priorities thereof, and
It is set whether or not to perform the color calculation in the image processing device that performs the color calculation in a portion having the highest priority compared to other screens in the designated screen and generates a video signal based on the result. As a unit, a color calculation setting selection unit that selects any one of a “screen”, a “cell” that forms the screen, and a “dot” that forms the cell; When "screen" is selected as the unit, whether or not to perform the color calculation is set for each screen, when "cell" is selected, it is set for each cell, and when "dot" is selected, it is set for each dot. And a color calculation enable setting means for setting the color calculation enable setting means.

【0033】請求項10記載の発明による画像処理装置
は、請求項9記載の発明において、前記画像データから
前記セル単位で設定されているカラー演算用ビットを検
出するカラー演算用ビット検出手段を有し、前記カラー
演算イネーブル設定手段は、前記複数の画面の各々に対
してカラー演算を行うか否かを設定するカラー演算設定
手段と、前記カラー演算設定選択手段によって前記単位
として「セル」が選択されると、前記カラー演算設定手
段によりカラー演算を行うよう設定された画面におい
て、前記カラー演算用ビットがオンであるセルに対して
のみカラー演算を行うよう設定し、前記単位として「ド
ット」が選択されると、前記カラー演算設定手段により
カラー演算を行うよう設定された画面において、前記カ
ラー演算用ビットがオンであるセルを構成するドットの
うちその画像データが所定の値と一致したドットに対し
てのみカラー演算を行うよう設定するカラー演算イネー
ブル変更手段とを有することを特徴としている。
According to a tenth aspect of the present invention, in the image processing apparatus according to the ninth aspect, there is provided color operation bit detecting means for detecting the color operation bit set in the cell unit from the image data. The color calculation enable setting means selects the "cell" as the unit by the color calculation setting means for setting whether or not to perform color calculation for each of the plurality of screens and the color calculation setting selection means. Then, in the screen set to perform color calculation by the color calculation setting means, the color calculation is set to be performed only on the cells for which the color calculation bit is turned on, and the "dot" is set as the unit. When selected, the color calculation bit is displayed on the screen set to perform color calculation by the color calculation setting means. The image data of the dots constituting the emission in a cell is characterized by having a color arithmetic enable changing means for setting to perform color operation only for the dots that match a predetermined value.

【0034】請求項11記載の発明による画像処理装置
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面の中で他の画面と比べてプライオリティ
が最も高い部分においてカラー演算を行い、その結果に
基づいて映像信号を生成する画像処理装置において、前
記カラー演算を行う際の他の画面との演算比率であって
複数種類設定されたカラー演算割合のうちのいずれか1
つを選択するカラー演算割合設定手段を具備することを
特徴としている。
An image processing apparatus according to the invention of claim 11 reads out image data of a plurality of screens from an image memory, compares the priorities thereof, and
In the image processing apparatus that performs color calculation in a portion having the highest priority among the designated screens as compared with other screens, and generates a video signal based on the result, the other screens when performing the color calculation Which is one of a plurality of color calculation ratios that are set.
It is characterized in that it is provided with a color calculation ratio setting means for selecting one.

【0035】請求項12記載の発明による画像処理装置
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面の中で他の画面と比べてプライオリティ
が最も高い部分においてカラー演算を行い、その結果に
基づいて映像信号を生成する画像処理装置において、前
記指定された画面のプライオリティが最も高い部分にお
ける各画面のプライオリティを判断するプライオリティ
判断手段と、前記複数の画面の各々について、他の画面
との演算比率であって複数種類設定されたカラー演算割
合のうちのいずれか1つを選択するカラー演算割合設定
手段と、前記指定された画面のプライオリティが最も高
い部分において、前記指定された画面の前記カラー演算
割合と、その部分において前記プライオリティが2番目
に高いと判断された画面の前記カラー演算割合とのいず
れか一方を選択するカラー演算割合選択手段と、前記カ
ラー演算割合選択手段によって選択されたカラー演算割
合に基づいて、前記指定された画面の画像データと、前
記プライオリティが2番目に高いと判断された画面の画
像データとでカラー演算を行うカラー演算手段とを具備
することを特徴としている。
An image processing apparatus according to a twelfth aspect of the present invention reads out image data of a plurality of screens from an image memory, compares the priorities of the image data, and
In the image processing apparatus that performs color calculation in a portion of the designated screen having the highest priority compared to other screens and generates a video signal based on the result, the portion of the designated screen having the highest priority Priority determining means for determining the priority of each screen, and a color for selecting one of a plurality of types of color calculation ratios for each of the plurality of screens, which is a calculation ratio with another screen. The calculation ratio setting means and the color calculation ratio of the designated screen in the highest priority part of the designated screen, and the color calculation of the screen in which the priority is determined to be the second highest in that part. A color calculation ratio selecting means for selecting one of the ratio and the color calculation ratio selection A color calculation means for performing a color calculation with the image data of the designated screen and the image data of the screen determined to have the second highest priority based on the color calculation ratio selected by the step. It is characterized by that.

【0036】請求項13記載の発明による画像処理装置
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面の中で他の画面と比べてプライオリティ
が最も高い部分においてカラー演算を行い、その結果に
基づいて映像信号を生成する画像処理装置において、前
記指定された画面のプライオリティが最も高い部分にお
ける各画面のプライオリティを判断するプライオリティ
判断手段と、前記指定された画面のプライオリティが最
も高い部分において、その部分において前記プライオリ
ティが2番目に高いと判断された画面の画像データと、
3番目に高いと判断された画面の画像データとでカラー
演算を行い、その結果と前記指定された画面の画像デー
タとでカラー演算を行うカラー演算手段とを具備するこ
とを特徴としている。
An image processing apparatus according to a thirteenth aspect of the present invention reads out image data of a plurality of screens from an image memory, compares the priorities of the image data, and
In the image processing apparatus that performs color calculation in a portion of the designated screen having the highest priority compared to other screens and generates a video signal based on the result, the portion of the designated screen having the highest priority Priority determining means for determining the priority of each screen in, and the image data of the screen in which the priority is determined to be the second highest in the part where the priority of the specified screen is the highest,
It is characterized by comprising a color calculation means for performing a color calculation with the image data of the screen determined to be the third highest and performing a color calculation with the result and the image data of the specified screen.

【0037】請求項14記載の発明による画像処理装置
は、画像メモリから複数の画面についての画像データを
読み出し、それらのプライオリティを比較すると共に、
指定された画面の中で他の画面と比べてプライオリティ
が最も高い部分においてカラー演算を行い、その結果に
基づいて映像信号を生成する画像処理装置において、前
記画像メモリ内に、カラー演算用のラインカラー画面を
構成する各ライン毎のカラーデータをラインカラー画面
テーブルとして格納する制御手段と、前記ラインカラー
画面テーブルから読み出す前記カラーデータのアドレス
を指定するアドレス指定手段と、前記アドレス指定手段
によって指定されるアドレスの前記カラーデータを順次
取り込む取り込み手段と、前記指定された画面のプライ
オリティが最も高い部分において、前記取り込み手段に
よって取り込まれるカラーデータを前記プライオリティ
が2番目に高い画面の画像データとし、前記指定された
画面の画像データとカラー演算を行うカラー演算手段と
を具備することを特徴としている。
An image processing apparatus according to a fourteenth aspect of the present invention reads out image data of a plurality of screens from an image memory, compares the priorities of the image data, and
In an image processing device that performs color calculation in a portion having the highest priority compared to other screens in the designated screen and generates a video signal based on the result, a line for color calculation is stored in the image memory. Control means for storing color data for each line constituting a color screen as a line color screen table, address designating means for designating an address of the color data read from the line color screen table, and address designating means. And a capturing means for sequentially capturing the color data of the address, and the color data captured by the capturing means in the portion having the highest priority of the designated screen is used as the image data of the screen having the second highest priority. Screen image data Perform color operation is characterized by comprising a color calculation means.

【0038】請求項15記載の発明による画像処理装置
は、請求項14記載の発明において、前記カラー演算手
段は、前記ラインカラー画面テーブルの先頭に格納され
たカラーデータのみ用いて、前記カラー演算を行うこと
を特徴としている。
According to the fifteenth aspect of the present invention, in the image processing apparatus according to the fourteenth aspect, the color calculation means uses only the color data stored at the head of the line color screen table to perform the color calculation. It is characterized by doing.

【0039】請求項16記載の発明による画像処理装置
は、請求項14または15記載の発明において、前記複
数の画面のいずれかの画像データに対し、移動回転変換
処理の演算を施す移動回転変換手段を有し、前記制御手
段は、前記画像メモリ内に、前記移動回転変換処理の演
算に用いられる係数を表し、前記画面のドット毎に設定
される係数データと、前記ラインカラー画面データと合
成して合成データとして格納し、前記移動回転変換手段
は、前記合成データのうちの係数データを用いて、前記
移動回転変換処理のための演算を行い、前記カラー演算
手段は、前記合成データのうちのカラーデータを用いて
前記指定された画面と前記ラインカラー画面とのカラー
演算を行うことを特徴としている。
According to a sixteenth aspect of the present invention, in the image processing apparatus according to the fourteenth or fifteenth aspect of the present invention, a movement / rotation conversion means for performing an operation of movement / rotation conversion processing on image data of any one of the plurality of screens. The control means represents, in the image memory, a coefficient used for the calculation of the movement rotation conversion process, and combines the coefficient data set for each dot of the screen with the line color screen data. Stored as combined data, the moving / rotating conversion unit uses the coefficient data of the combined data to perform an operation for the moving / rotation conversion process, and the color calculating unit includes It is characterized in that color calculation of the designated screen and the line color screen is performed using color data.

【0040】[0040]

【作用】請求項1記載の発明によれば、プライオリティ
を画面だけでなく、セル単位、及びドット単位で設定す
ることができる。
According to the first aspect of the present invention, the priority can be set not only in the screen but also in cell units and dot units.

【0041】請求項2記載の発明によれば、同一画面上
で画面だけでなく、セル単位、及びドット単位でカラー
演算を行うか否かを指定することができる。
According to the second aspect of the present invention, it is possible to specify whether or not the color calculation is performed not only on the same screen but also on a cell basis and a dot basis on the same screen.

【0042】請求項3記載の発明によれば、画面毎にカ
ラー演算割合を選択し、指定された画面のプライオリテ
ィが最も高い部分において、その指定された画面のカラ
ー演算割合と、プライオリティが2番目に高い画面のカ
ラー演算割合とのいずれか一方を選択することができる
ため、カラー演算割合を変更することができ、多様なカ
ラー演算を行うことができる。
According to the third aspect of the present invention, the color calculation ratio is selected for each screen, and in the portion where the priority of the designated screen is the highest, the color calculation ratio and the priority of the designated screen are the second. Since it is possible to select one of the extremely high screen color calculation ratio, the color calculation ratio can be changed, and various color calculations can be performed.

【0043】請求項4記載の発明によれば、プライオリ
ティが2番目に高い画面の画像データと3番目に高い画
面の画像データとでカラー演算を行い、その結果とプラ
イオリティが最も高い画面とでカラー演算を行うため、
3画面のカラー演算が可能となる。
According to the fourth aspect of the present invention, color calculation is performed on the image data of the screen having the second highest priority and the image data of the screen having the third highest priority, and the result and the screen having the highest priority are subjected to color calculation. To perform the calculation
Color calculation of 3 screens is possible.

【0044】請求項5記載の発明によれば、ライン毎に
カラーの設定されたラインカラー画面を使用して、多様
なカラー演算を行うことができる。
According to the fifth aspect of the invention, various color operations can be performed using the line color screen in which the color is set for each line.

【0045】請求項6記載の発明によれば、プライオリ
ティをドット毎に設定することにより、同一画面上でプ
ライオリティを変化させることができる。
According to the sixth aspect of the invention, by setting the priority for each dot, the priority can be changed on the same screen.

【0046】請求項7記載の発明によれば、プライオリ
ティ設定選択手段により、プライオリティナンバーを設
定する単位として、ドットが選択されると、プライオリ
ティナンバー設定手段によって設定されたプライオリテ
ィナンバーをドット毎に変更し、セルが選択されると、
上記プライオリティナンバーをセル毎に変更する。これ
により、プライオリティを画面だけでなく、ドットもし
くはセル単位で設定することができる。
According to the invention described in claim 7, when the dot is selected by the priority setting selecting means as a unit for setting the priority number, the priority number set by the priority number setting means is changed for each dot. , When a cell is selected,
The priority number is changed for each cell. As a result, the priority can be set not only on the screen but also on a dot or cell basis.

【0047】請求項8記載の発明によれば、プライオリ
ティナンバーを設定する単位としてセルが選択される
と、画像データから検出されるプライオリティ用ビット
の値をプライオリティナンバーの最下位ビットとし、ド
ットが選択されると、上記プライオリティ用ビットの値
がオンであるセルを構成するドットのうち、画像データ
が所定の値と一致したドットのプライオリティナンバー
の最下位ビットをオンとする。
According to the present invention, when the cell is selected as a unit for setting the priority number, the value of the priority bit detected from the image data is set as the least significant bit of the priority number and the dot is selected. Then, among the dots forming the cell in which the value of the priority bit is on, the least significant bit of the priority number of the dot whose image data matches the predetermined value is turned on.

【0048】請求項9記載の発明によれば、カラー演算
設定選択手段により、「画面」が選択されると、カラー
演算イネーブル設定手段により画面単位でカラー演算を
行うか否かが設定され、「セル」が選択されるとセル単
位で設定され、「ドット」が選択されるとドット単位で
選択される。
According to the ninth aspect of the present invention, when the "screen" is selected by the color calculation setting selection means, it is set by the color calculation enable setting means whether or not the color calculation is performed for each screen. When "cell" is selected, it is set in cell units, and when "dot" is selected, it is selected in dot units.

【0049】請求項10記載の発明によれば、カラー演
算設定選択手段によって「セル」が選択されると、カラ
ー演算設定手段によってカラー演算を行うよう設定され
た画面において、カラー演算用ビットがオンであるセル
に対してのみカラー演算を行うよう設定し、「ドット」
が選択されると、上記セルを構成するドットのうちその
画像データが所定の値と一致したドットに対してのみカ
ラー演算を行うよう設定する。
According to the tenth aspect of the invention, when the "cell" is selected by the color calculation setting selection means, the color calculation bit is turned on in the screen set to perform the color calculation by the color calculation setting means. Set to perform color calculation only for cells that are
When is selected, the color operation is set to be performed only on the dots of which the image data matches the predetermined value among the dots forming the cell.

【0050】請求項11記載の発明によれば、カラー演
算割合設定手段により、複数種類設定されたカラー演算
割合のうちのいずれか1つを設定することができるた
め、カラー演算を行った際にカラー演算割合を変えるこ
とができる。
According to the eleventh aspect of the present invention, the color calculation ratio setting means can set any one of a plurality of types of color calculation ratios set. The color calculation ratio can be changed.

【0051】請求項12記載の発明によれば、指定され
た画面のプライオリティが最も高い部分において、当該
画面の画像データとその部分においてプライオリティが
2番目に高い画面の画像データとのカラー演算を行う際
に、指定された画面のカラー演算割合とプライオリティ
が2番目に高い画面のカラー演算割合とのいずれか一方
を選択し、その選択したカラー演算割合に基づいてカラ
ー演算を行う。
According to the twelfth aspect of the invention, color calculation is performed between the image data of the designated screen and the image data of the screen having the second highest priority in that portion in the highest priority portion of the screen. At this time, either one of the color calculation ratio of the designated screen and the color calculation ratio of the screen having the second highest priority is selected, and the color calculation is performed based on the selected color calculation ratio.

【0052】請求項13記載の発明によれば、指定され
た画面のプライオリティが最も高い部分において、プラ
イオリティが2番目に高いと判断された画面と3番目に
高いと判断された画面の画像データとでカラー演算を行
い、その結果と上記指定された画面の画像データとでカ
ラー演算を行うため、3画面のカラー演算が可能とな
る。
According to the thirteenth aspect of the invention, in the portion of the designated screen having the highest priority, the image data of the screen judged to have the second highest priority and the image data of the screen judged to have the third highest priority, Since the color calculation is performed with the result and the color calculation is performed with the result and the image data of the designated screen, the color calculation of three screens is possible.

【0053】請求項14記載の発明によれば、画像メモ
リに格納されたラインカラー画面テーブルから順次カラ
ーデータを取り込み、指定された画面のプライオリティ
が最も高い部分において、そのカラーデータと当該画面
の画像データとでカラー演算を行う。ラインカラー画面
はライン毎にカラーデータが設定されているため、演算
結果である画像は、ライン毎にカラーが変化する。
According to the fourteenth aspect of the present invention, the color data is sequentially fetched from the line color screen table stored in the image memory, and the color data and the image of the screen are displayed in the designated screen having the highest priority. Perform color calculation with data. Since color data is set for each line on the line color screen, the color of the image that is the calculation result changes for each line.

【0054】請求項15記載の発明によれば、ラインカ
ラー画面テーブルの先頭に格納されたカラーデータのみ
用いてカラー演算を行うことにより、単色のラインカラ
ー画面として使用することができる。
According to the fifteenth aspect of the invention, a color operation is performed using only the color data stored at the head of the line color screen table, so that the line color screen table can be used as a single line color screen.

【0055】請求項16記載の発明によれば、指定され
た画面に対して移動回転変換処理が行われる際、移動回
転変換手段は合成後の係数データのうちの係数データを
用いて演算を行い、カラー演算手段は合成後の係数デー
タのうちのカラーデータを用いて演算を行う。
According to the sixteenth aspect of the present invention, when the movement / rotation conversion processing is performed on the designated screen, the movement / rotation conversion means performs an operation using the coefficient data of the combined coefficient data. The color calculation means calculates using the color data of the combined coefficient data.

【0056】[0056]

【実施例】以下、本発明による画像処理装置の一実施例
について、図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an image processing apparatus according to the present invention will be described below with reference to the drawings.

【0057】(1)実施例の全体構成 図1は、本発明による画像処理装置の一実施例を示すブ
ロック図である。同図中、バス14には、システム全体
をコントロールするCPU15、プログラムを格納する
ROM16、前景画の画像処理を行うスプライトエンジ
ン17、及び複数の背景画の画像処理を行うスクロール
エンジン18が接続されている。また、スプライトエン
ジン17には、CPUからのコマンドデータ及び前景画
の画像データを格納するコマンドRAM19、及び前景
画の画像データを展開するフレームバッファ21が接続
されている。スクロールエンジン18には、背景画のド
ット毎の画像データを格納するビデオRAM(以下、V
RAM)22、及びカラーRAM23が接続されてい
る。
(1) Overall Configuration of Embodiment FIG. 1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention. In the figure, a bus 15 is connected to a CPU 15 that controls the entire system, a ROM 16 that stores a program, a sprite engine 17 that performs image processing of a foreground image, and a scroll engine 18 that performs image processing of a plurality of background images. There is. The sprite engine 17 is also connected to a command RAM 19 that stores command data from the CPU and image data of the foreground image, and a frame buffer 21 that expands the image data of the foreground image. The scroll engine 18 has a video RAM (hereinafter, referred to as V RAM) that stores image data for each dot of the background image.
RAM) 22 and color RAM 23 are connected.

【0058】<スプライトエンジン17>スプライトエ
ンジン17は、コマンドRAM19からキャラクタ等の
前景画の画像データを選択して読み出し、回転、拡大、
縮小、及び色演算等の処理を行った後、フレームバッフ
ァ21の所定のアドレスに書き込む。また、このスプラ
イトエンジン17は、フレームバッファ21に書き込ん
だ1フレーム分の画像データを順次読み出し、バス14
を介さずに直接スクロールエンジン18に供給する。C
PU15は、ROM16内のプログラムを実行すること
により、スプライトエンジン17にコマンドデータを供
給する。このコマンドデータは、前景画の描画命令を示
すデータ(描画コマンド)であり、スプライトエンジン
17により、コマンドテーブルとしてコマンドRAM1
9に書き込まれる。そして、スプライトエンジン17に
よって読み出され、内部のシステムレジスタに設定され
ることにより実行される。 <前景画の画像データ>スプライトエンジン17からス
クロールエンジン18に供給される前景画の画像データ
FGDTは、1画素について16ビットで表されてい
る。この画像データFGDTは、色を指定するドットカ
ラーデータDCLと、プライオリティナンバー選択ビッ
トPRNSLと、カラー演算割合選択ビットCCRSL
とから構成されており、それぞれのビット数は、画像デ
ータFGDTの種類(スプライトタイプ)によって異な
る。
<Sprite Engine 17> The sprite engine 17 selects and reads image data of a foreground image such as a character from the command RAM 19 and rotates, enlarges,
After processing such as reduction and color calculation, it is written in a predetermined address of the frame buffer 21. The sprite engine 17 also sequentially reads the image data for one frame written in the frame buffer 21, and the bus 14
It is supplied directly to the scroll engine 18 without going through. C
The PU 15 supplies the command data to the sprite engine 17 by executing the program in the ROM 16. This command data is data (drawing command) indicating a drawing command for the foreground image, and the sprite engine 17 uses the command RAM 1 as a command table.
9 is written. Then, it is read by the sprite engine 17 and executed by being set in an internal system register. <Foreground Image Data> The foreground image data FGDT supplied from the sprite engine 17 to the scroll engine 18 is represented by 16 bits for each pixel. The image data FGDT includes dot color data DCL that specifies a color, a priority number selection bit PRNSL, and a color calculation ratio selection bit CCRSL.
And the number of bits of each differs depending on the type (sprite type) of the image data FGDT.

【0059】図2に、1画素分の画像データFGDTの
一例を示す。この図に示すように、下位11ビットD0
〜D10はドットカラーデータDCLであり、この11
ビットがカラーRAM23のアドレスとして使用され
る。前景画のキャラクタは、1ドットあたり4ビットま
たは8ビットでコマンドRAM19に格納されるが、フ
レームバッファ21に書き込む時は、キャラクタデータ
の上位側にそのキャラクタ毎に指定されたカラーRAM
アドレスオフセット値が付加される。次の2ビットD1
1〜D12はカラー演算割合選択ビットCCRSLであ
り、カラー演算を行う際のカラー演算割合を選択するた
めに使用される。カラー演算及びカラー演算割合につい
ては、後述する。
FIG. 2 shows an example of the image data FGDT for one pixel. As shown in this figure, the lower 11 bits D0
~ D10 is the dot color data DCL.
The bits are used as the address of the color RAM 23. The characters of the foreground picture are stored in the command RAM 19 at 4 bits or 8 bits per dot, but when writing to the frame buffer 21, the color RAM designated for each character is placed on the upper side of the character data.
The address offset value is added. Next 2 bits D1
1 to D12 are color calculation ratio selection bits CCRSL, which are used to select a color calculation ratio when performing color calculation. The color calculation and the color calculation ratio will be described later.

【0060】さらに、次の2ビットD13〜D14はプ
ライオリティナンバー選択ビットPRNSLであり、複
数の画像を重ねて表示する場合、重なる各画素毎のプラ
イオリティを比較するために使用される。この場合、プ
ライオリティの高い画素が低い画素に優先して表示され
る。最上位ビットD15はウインドウフラグもしくはシ
ャドウ用ビットであり、当該キャラクタデータに対しウ
インドウ処理もしくはシャドウ処理を施す場合に使用さ
れる。
Further, the next two bits D13 to D14 are priority number selection bits PRNSL, which are used for comparing priorities of respective overlapping pixels when a plurality of images are displayed in an overlapping manner. In this case, pixels with high priority are displayed with priority over pixels with low priority. The most significant bit D15 is a window flag or a shadow bit and is used when performing window processing or shadow processing on the character data.

【0061】<スクロールエンジン18>また、VRA
M22には、縦横8×8画素のセルの画像データからな
るパターンデータが格納されている。さらに、上記セル
を縦横28×40セル分敷きつめて1フレーム分の背景
画BG0,BG1,BG2、BG3を構成する場合、そ
の並べ方に対応してパターンネームデータが格納されて
いる。このパターンネームデータは、各フレーム分格納
されており、VRAM22に格納されているパターンデ
ータの先頭アドレスを示すビット、及び特殊機能ビット
とから構成されている。この特殊機能ビットとしては、
プライオリティ用ビットPRIとカラー演算用ビットC
Cとが設定されている。
<Scroll engine 18> Also, VRA
M22 stores pattern data composed of image data of cells of 8 × 8 pixels in the vertical and horizontal directions. Further, when the above cells are laid out horizontally and vertically by 28 × 40 cells to form one frame of background images BG0, BG1, BG2, BG3, pattern name data is stored corresponding to the arrangement. This pattern name data is stored for each frame, and is composed of a bit indicating the start address of the pattern data stored in the VRAM 22 and a special function bit. As for this special function bit,
Priority bit PRI and color operation bit C
C and are set.

【0062】また、カラーRAM23には、前景画及び
背景画の画像データがパレット形式である場合に、カラ
ーデータであるRGBデータが格納される。
Further, the color RAM 23 stores RGB data which is color data when the image data of the foreground image and the background image is in the palette format.

【0063】スクロールエンジン18は、背景画生成部
31と、表示制御部32と、図示しないコントロールレ
ジスタとを有しており、コントロールレジスタは、CP
U15によってその内容が書き換えられるようになって
いる。また、背景画生成部31は、VRAM22からパ
ターンネームデータPNを読み出し、このパターンネー
ムデータPNに対応するパターンデータを読み出す。そ
して、背景画生成部31は、水平同期信号に同期して、
上記パターンネームデータPNのうちパターンデータの
アドレスを除いたデータと、パターンデータのうちの1
画素分の画像データBG0DT,BG1DT,BG2D
T,BG3DTとを表示制御部32に出力する。
The scroll engine 18 has a background image generator 31, a display controller 32, and a control register (not shown). The control register is CP.
The contents can be rewritten by U15. The background image generation unit 31 also reads the pattern name data PN from the VRAM 22 and reads the pattern data corresponding to this pattern name data PN. Then, the background image generation unit 31 synchronizes with the horizontal synchronization signal,
Data of the pattern name data PN excluding the address of the pattern data and one of the pattern data
Image data for pixels BG0DT, BG1DT, BG2D
T and BG3DT are output to the display control unit 32.

【0064】さらに、スクロールエンジン18の表示制
御部32からは、水平同期信号に同期してプライオリテ
ィが最も高い1画素分のRGBデータが出力され、D/
Aコンバータ23に供給される。D/Aコンバータ24
は、上記RGBデータをアナログ信号に変換して映像信
号として出力する。この映像信号は図示しないモニタに
供給され、TV画面に表示される。
Further, from the display control section 32 of the scroll engine 18, RGB data for one pixel having the highest priority is output in synchronization with the horizontal synchronizing signal, and D /
It is supplied to the A converter 23. D / A converter 24
Converts the RGB data into an analog signal and outputs it as a video signal. This video signal is supplied to a monitor (not shown) and displayed on the TV screen.

【0065】(2)プライオリティ判断とカラー演算処
理 次に、上記表示制御部32において行われるプライオリ
ティ判断及びカラー演算処理について、図3を参照して
説明する。
(2) Priority Judgment and Color Calculation Processing Next, the priority judgment and color calculation processing performed in the display control section 32 will be described with reference to FIG.

【0066】(a)コントロールレジスタの内容 まず、表示制御部32の動作に関連してコントロールレ
ジスタに設定される内容について、以下に示す。
(A) Contents of Control Register First, the contents set in the control register in relation to the operation of the display control unit 32 will be described below.

【0067】a.スプライトコントロールレジスタ スプライトカラー演算条件ビット:前景画を他の画面と
カラー演算を行うか否かを、キャラクタ毎に選択したプ
ライオリティナンバーFGPNの値、もしくはドット毎
にカラーRAM23から選択したカラーデータの最上位
ビットの値によって指定することができる。この指定に
よって以下のいずれかの条件が満たされたときに、キャ
ラクタ毎またはドット毎に前景画のカラー演算が行われ
る。
A. Sprite control register Sprite color calculation condition bit: Priority number FGPN value selected for each character or whether the foreground image is color-computed with another screen, or the highest order of color data selected from color RAM 23 for each dot It can be specified by the value of the bit. When one of the following conditions is satisfied by this designation, the foreground color calculation is performed for each character or each dot.

【0068】1)(プライオリティナンバー)≦(カラ
ー演算条件ナンバー)のときのみ 2)(プライオリティナンバー)=(カラー演算条件ナ
ンバー)のときのみ 3)(プライオリティナンバー)≧(カラー演算条件ナ
ンバー)のときのみ 4)カラーデータの最上位ビットが1のときのみ スプライトカラー演算条件ナンバービット:上記カラー
演算条件に使用されるカラー演算条件ナンバー。
1) Only when (Priority number) ≤ (Color calculation condition number) 2) Only when (Priority number) = (Color calculation condition number) 3) When (Priority number) ≥ (Color calculation condition number) Only 4) Only when the most significant bit of color data is 1. Sprite color operation condition number bit: Color operation condition number used for the above color operation conditions.

【0069】スプライトタイプビット:各データのビッ
ト構成によるスプタイトタイプを指定。
Sprite type bit: The sprite type is designated by the bit configuration of each data.

【0070】b.プライオリティナンバーレジスタ スプライト用プライオリティナンバービット:前景画の
プライオリティナンバーとして複数設定されており、前
景画の画像データFGDTのプライオリティナンバー選
択ビットPRNSLによって選択される。
B. Priority number register Priority number bit for sprite: Multiple priority number bits are set as the foreground priority number and are selected by the priority number selection bit PRNSL of the foreground image data FGDT.

【0071】スクロール用プライオリティナンバービッ
ト:各背景画毎に、プライオリティナンバーが設定され
ている。このプライオリティナンバーは、通常は画面全
体に使用されるが、後述する特殊プライオリティモード
が設定されることにより、その最下位ビットの値をキャ
ラクタもしくはドット毎に変えることができる。
Priority number for scrolling: A priority number is set for each background image. This priority number is normally used for the entire screen, but the value of the least significant bit can be changed for each character or dot by setting a special priority mode described later.

【0072】c.特殊プライオリティモードレジスタ 特殊プライオリティモードビット:上記プライオリティ
ナンバーの最下位ビットをキャラクタもしくはドット毎
に変える機能を設定する。この機能を利用して、背景画
中のある部分だけのプライオリティを変えることができ
る。特殊プライオリティモードを以下に示す。
C. Special priority mode register Special priority mode bit: Set the function to change the least significant bit of the above priority number for each character or dot. This function can be used to change the priority of only a part of the background image. The special priority modes are shown below.

【0073】<モード0>プライオリティナンバーの最
下位ビットを画面毎に指定する。
<Mode 0> The least significant bit of the priority number is designated for each screen.

【0074】各背景画に対応したスクロール用プライオ
リティナンバービットの値がそのまま使用される。
The value of the scrolling priority number bit corresponding to each background image is used as it is.

【0075】<モード1>プライオリティナンバーの最
下位ビットをキャラクタ毎に指定する。
<Mode 1> The least significant bit of the priority number is designated for each character.

【0076】プライオリティ用ビットPRI(後述す
る)の値がプライオリティナンバーの最下位ビットとし
て使用される。
The value of the priority bit PRI (described later) is used as the least significant bit of the priority number.

【0077】<モード2>プライオリティナンバーの最
下位ビットをドット毎に指定する。
<Mode 2> The least significant bit of the priority number is designated for each dot.

【0078】プライオリティ用ビットPRIが「1」に
指定されたキャラクタパターンにおいて、後述する特殊
機能コードビットに指定されたドットカラーコードと一
致したドットのみ、プライオリティナンバーの最下位ビ
ットを1にし、それ以外は最下位ビットを0に固定す
る。
In the character pattern in which the priority bit PRI is designated as "1", the least significant bit of the priority number is set to 1 only for the dot which matches the dot color code designated in the special function code bit described later, and other than that. Fixes the least significant bit to 0.

【0079】d.特殊機能コードレジスタ 特殊機能コードビット:特殊機能を使用するドットカラ
ーコードの例えば下位4ビットの値に対応して設定され
ている。
D. Special function code register Special function code bit: It is set corresponding to, for example, the lower 4 bits of the dot color code that uses the special function.

【0080】e.カラー演算割合レジスタ スプライト用カラー演算割合ビット:前景画のカラー演
算割合として複数設定されており、前景画の画像データ
FGDTのカラー演算割合選択ビットCCRSLによっ
て選択される。
E. Color calculation ratio register Sprite color calculation ratio bit: A plurality of color calculation ratios for the foreground image are set, and are selected by the color calculation ratio selection bit CCRSL of the foreground image data FGDT.

【0081】スクロール用カラー演算割合ビット:各背
景画毎に、カラー演算割合が設定されている。
Color operation ratio bit for scroll: A color operation ratio is set for each background image.

【0082】スプライト用及びスクロール用共に、トッ
プ画像:セカンド画像=31:1〜0:32の計32段
階を指定することができる。なお、トップ画像及びセカ
ンド画像については後述する。
A total of 32 steps of top image: second image = 31: 1 to 0:32 can be designated for both sprite and scroll. The top image and the second image will be described later.

【0083】f.カラー演算コントロールレジスタ カラー演算イネーブルビット:カラー演算を行うか否か
を指定する。カラー演算を行う画面についてのビットの
値が「1」となる。カラー演算を行うか否かは、通常は
画面全体に指定するが、後述する特殊カラー演算モード
が設定されることにより、キャラクタ毎もしくはドット
毎に指定したり、カラーデータの最上位ビットで指定し
たりすることができる。
F. Color operation control register Color operation enable bit: Specifies whether or not color operation is performed. The bit value for the screen on which the color calculation is performed is “1”. Whether or not to perform color calculation is usually specified for the entire screen, but it can be specified for each character or dot or by the most significant bit of color data by setting the special color calculation mode described later. You can

【0084】カラー演算割合モードビット:カラー演算
割合モードとして、以下のモードを指定する。
Color operation ratio mode bit: The following mode is designated as the color operation ratio mode.

【0085】<モード0>カラー演算割合をトップ画像
側で指定する。
<Mode 0> The color calculation ratio is specified on the top image side.

【0086】セカンド画像の画面に関係なく、トップ画
像になった前景画または背景画のカラー演算割合の値が
使用される。
Regardless of the screen of the second image, the value of the color calculation ratio of the foreground image or the background image which becomes the top image is used.

【0087】<モード1>カラー演算割合をセカンド画
像側で指定する。
<Mode 1> The color calculation ratio is designated on the second image side.

【0088】セカンド画像の画面によってカラー演算割
合を変えることができ、ラインカラー画面のカラー演算
割合の値を使用することが可能となる。
The color calculation ratio can be changed depending on the screen of the second image, and the value of the color calculation ratio of the line color screen can be used.

【0089】カラー演算モードビット:カラー演算モー
ドとして、以下のモードを指定する。 <モード0>カラー演算割合レジスタの値に従って加算
する。
Color operation mode bit: The following modes are designated as the color operation mode. <Mode 0> Add according to the value of the color operation ratio register.

【0090】<モード1>そのままの値で加算する。<Mode 1> The value is added as it is.

【0091】g.特殊カラー演算モードレジスタ 特殊カラー演算モードビット:上述したカラー演算イネ
ーブルを、画面全体だけでなくキャラクタ単位もしくは
ドット単位で指定することができる。
G. Special color calculation mode register Special color calculation mode bit: The color calculation enable described above can be specified not only for the entire screen but also for each character or each dot.

【0092】<モード0>カラー演算イネーブルを画面
毎に指定する。
<Mode 0> Color calculation enable is designated for each screen.

【0093】各背景画に対応したカラー演算イネーブル
ビットの値が1のときにカラー演算を行う。
When the value of the color operation enable bit corresponding to each background image is 1, color operation is performed.

【0094】<モード1>カラー演算イネーブルをキャ
ラクタ毎に指定する。
<Mode 1> Color operation enable is designated for each character.

【0095】カラー演算イネーブルビットが1に指定さ
れた背景画において、パターンネームデータ中のカラー
演算用ビットCCの値が1であるキャラクタパターンに
のみカラー演算を行う。
In the background image in which the color operation enable bit is set to 1, color operation is performed only on the character pattern in which the value of the color operation bit CC in the pattern name data is 1.

【0096】<モード2>カラー演算イネーブルをドッ
ト毎に指定する。
<Mode 2> The color operation enable is designated for each dot.

【0097】カラー演算イネーブルビットが1に指定さ
れた背景画のパターンネームデータ中のカラー演算用ビ
ットCCの値が1であるキャラクタパターンにおいて、
特殊機能コードビットに指定されたドットカラーコード
と一致したドットにのみカラー演算を行う。
In the character pattern in which the value of the color operation bit CC in the pattern name data of the background image in which the color operation enable bit is designated 1 is 1,
Color calculation is performed only on the dots that match the dot color code specified in the special function code bit.

【0098】<モード3>カラーデータの最上位ビット
で指定する。
<Mode 3> Designate by the most significant bit of color data.

【0099】カラー演算イネーブルビットが1に指定さ
れた背景画の画像データがパレット形式のとき、最上位
ビットを1に指定したカラーデータを使用したドットに
のみカラー演算を行う。画像データがRGB形式のと
き、このモードが指定されると、常にカラー演算を行
う。
When the image data of the background image for which the color operation enable bit is designated as 1 is in the palette format, color calculation is performed only for the dots using the color data for which the most significant bit is designated as 1. When the image data is in RGB format and this mode is designated, color calculation is always performed.

【0100】h.画像表示イネーブルレジスタ 画像表示イネーブルビット:各背景画BG0,BG1,
BG2,BG3,RBG0,RBG1を表示するか否か
を指定する。背景画BG0,BG1,BG2,BG3は
ノーマルスクロール画面として使用する場合であり、背
景画RBG0,RBG1は回転スクロール画面として使
用する場合である。このノーマルスクロール画面及び回
転スクロール画面については、後述する。
H. Image display enable register Image display enable bit: Background images BG0, BG1,
Designate whether to display BG2, BG3, RBG0, RBG1. The background images BG0, BG1, BG2, BG3 are used as a normal scroll screen, and the background images RBG0, RBG1 are used as a rotary scroll screen. The normal scroll screen and the rotary scroll screen will be described later.

【0101】(b)処理の流れ 次に、プライオリティ判断とカラー演算処理の流れにつ
いて図3により説明する。同図において、スプライトド
ットデータビット検出部10、スプライトプライオリテ
ィナンバーコントロール部20、スクロールドットデー
タコード判断部80、スクロールプライオリティナンバ
ーコントロール部90、及びプライオリティ判断部40
により、プライオリティコントロール部11が構成され
ている。また、スプライトカラー演算割合コントロール
部30、スクロールカラー演算割合コントロール部12
0、カラー演算割合コントロール部60、スプライトカ
ラー演算イネーブルコントロール部50、スクロールカ
ラー演算イネーブルコントロール部100、カラー演算
イネーブルコントロール部70、及びカラー演算部11
0により、カラー演算コントロール部12が構成されて
いる。
(B) Processing Flow Next, the flow of priority judgment and color calculation processing will be described with reference to FIG. In the figure, a sprite dot data bit detection unit 10, a sprite priority number control unit 20, a scroll dot data code determination unit 80, a scroll priority number control unit 90, and a priority determination unit 40.
The priority control unit 11 is configured by the above. Further, the sprite color calculation ratio control unit 30 and the scroll color calculation ratio control unit 12
0, color calculation ratio control unit 60, sprite color calculation enable control unit 50, scroll color calculation enable control unit 100, color calculation enable control unit 70, and color calculation unit 11
0 configures the color calculation control unit 12.

【0102】A.プライオリティ判断 <前景画のプライオリティナンバーの決定>まず、スプ
ライトエンジン17から出力される前景画の画像データ
FGDTは、スプライトドットデータビット検出部10
に供給される。スプライトドットデータビット検出部1
0により、上記画像データFGDTは、コントロールレ
ジスタに設定されたスプライトタイプに基づいて、ドッ
トカラーデータDCL、プライオリティナンバー選択ビ
ットPRNSL、及びカラー演算割合選択ビットCCR
SLに分けられる。そして、プライオリティナンバー選
択ビットPRNSLは、スプライトプライオリティナン
バーコントロール部20に供給され、カラー演算割合選
択ビットCCRSLは、スプライトカラー演算割合コン
トロール部30に供給され、ドットカラーデータDCL
は、プライオリティ判断部40に供給される。
A. Priority Determination <Determination of Priority Number of Foreground Image> First, the foreground image data FGDT output from the sprite engine 17 is the sprite dot data bit detection unit 10.
Is supplied to. Sprite dot data bit detector 1
When the image data FGDT is 0, the dot color data DCL, the priority number selection bit PRNSL, and the color calculation ratio selection bit CCR are set based on the sprite type set in the control register.
Divided into SL. Then, the priority number selection bit PRNSL is supplied to the sprite priority number control unit 20, the color calculation ratio selection bit CCRSL is supplied to the sprite color calculation ratio control unit 30, and the dot color data DCL is supplied.
Is supplied to the priority determination unit 40.

【0103】スプライトプライオリティナンバーコント
ロール部20では、プライオリティナンバー選択ビット
PRNSLに基づき、スプライト用プライオリティナン
バーレジスタに設定されたプライオリティナンバーのう
ちの1つが選択される。そして、この選択されたプライ
オリティナンバーFGPNは、プライオリティ判断部4
0及びスプライトカラー演算イネーブルコントロール部
50に供給される。
In the sprite priority number control unit 20, one of the priority numbers set in the priority number register for sprite is selected based on the priority number selection bit PRNSL. Then, the selected priority number FGPN is assigned to the priority determination unit 4
0 and the sprite color calculation enable control unit 50.

【0104】<背景画のプライオリティナンバーの決定
>一方、背景画生成部31から出力される背景画のパタ
ーンネームデータPNのうち、プライオリティ用ビット
PRIはスクロールプライオリティナンバーコントロー
ル部90に供給され、カラー演算用ビットCCはスクロ
ールカラー演算イネーブルコントロール部100に供給
される。また、背景画生成部31から出力される画像デ
ータBG0DT,BG1DT,BG2DT、BG3DT
は、プライオリティ判断部40及びスクロールドットデ
ータコード判断部80に供給される。スクロールドット
データコード判断部80では、上記画像データBG0D
T,BG1DT,BG2DT,BG3DTのうちの下位
4ビットの値(コード値CODE)が検出され、スクロ
ールプライオリティナンバーコントロール部90とスク
ロールカラー演算イネーブルコントロール部100とに
出力される。
<Determination of Priority Number of Background Image> On the other hand, of the background image pattern name data PN output from the background image generation unit 31, the priority bit PRI is supplied to the scroll priority number control unit 90 for color calculation. The use bit CC is supplied to the scroll color operation enable control unit 100. Also, the image data BG0DT, BG1DT, BG2DT, BG3DT output from the background image generation unit 31.
Is supplied to the priority determination unit 40 and the scroll dot data code determination unit 80. In the scroll dot data code determination unit 80, the image data BG0D
The lower 4-bit value (code value CODE) of T, BG1DT, BG2DT, and BG3DT is detected and output to the scroll priority number control unit 90 and the scroll color calculation enable control unit 100.

【0105】スクロールプライオリティナンバーコント
ロール部90では、スクロール用プライオリティナンバ
ービットにより、背景画BG0,BG1,BG2,BG
3毎のプライオリティナンバーが決定される。ここで
は、まず、特殊プライオリティモードレジスタに設定さ
れたモードに基づき、プライオリティナンバーの最下位
ビットが指定される。すなわち、モード0が設定されて
いる場合は、上記スクロール用プライオリティナンバー
ビットの値がそのまま使用され、モード1が設定されて
いる場合は、プライオリティ用ビットPRIの値が最下
位ビットとして使用される。また、モード2が設定され
ている場合は、プライオリティ用ビットPRIが1であ
り、特殊機能コードビットに指定されたドットカラーコ
ードと一致したドットについて、その最下位ビットを1
にする。このようにして決定したプライオリティナンバ
ーBG0PN,BG1PN,BG2PN,BG3PN
は、プライオリティ判断部40に供給される。
In the scroll priority number control unit 90, the background images BG0, BG1, BG2, BG are selected by the scroll priority number bits.
A priority number for each 3 is determined. Here, first, the least significant bit of the priority number is designated based on the mode set in the special priority mode register. That is, when the mode 0 is set, the value of the scroll priority number bit is used as it is, and when the mode 1 is set, the value of the priority bit PRI is used as the least significant bit. When the mode 2 is set, the priority bit PRI is 1 and the least significant bit of the dot that matches the dot color code designated as the special function code bit is 1
To Priority numbers BG0PN, BG1PN, BG2PN, BG3PN determined in this way
Is supplied to the priority determination unit 40.

【0106】<プライオリティの判断>プライオリティ
判断部40では、前景画のFGPNと、各背景画のプラ
イオリティナンバーBG0PN,BG1PN,BG2P
N,BG3PNとから、プライオリティが決定される。
このとき、プライオリティの高いドットで構成された画
面をトップ画像、2番目に高いドットで構成された画面
をセカンド画像、3番目に高いドットで構成された画面
をサード画像とする。ここで、図4に、トップ画像、セ
カンド画像、及びサード画像の例を示す。例えば、同図
(a)に示す背景画BG0、(b)に示す背景画BG
1、(c)に示す背景画BG2、及び(d)に示す背景
画BG3とがあり、各々のプライオリティが「6」、
「4」、「2」、及び「1」であるとする。この結果、
トップ画像は同図(e)に示すようになり、セカンド画
像は(f)に示すようになり、サード画像は(g)に示
すようになる。
<Priority Judgment> In the priority judgment unit 40, the FGPN of the foreground image and the priority numbers BG0PN, BG1PN, BG2P of the respective background images.
The priority is determined from N and BG3PN.
At this time, a screen composed of high priority dots is a top image, a screen composed of second highest dots is a second image, and a screen composed of third highest dots is a third image. Here, FIG. 4 shows an example of the top image, the second image, and the third image. For example, the background image BG0 shown in FIG. 9A and the background image BG shown in FIG.
1, a background image BG2 shown in (c) and a background image BG3 shown in (d), each of which has a priority of "6",
It is assumed that they are "4", "2", and "1". As a result,
The top image is as shown in (e) of the figure, the second image is as shown in (f), and the third image is as shown in (g).

【0107】そして、このようにして決定された結果
は、プライオリティPRIORとしてカラー演算割合コ
ントロール部60及びカラー演算部110に供給され
る。
The result thus determined is supplied to the color calculation ratio control unit 60 and the color calculation unit 110 as the priority PRIOR.

【0108】B.カラー演算イネーブル <前景画のカラー演算イネーブル>一方、スプライトプ
ライオリティナンバーコントロール部20から前景画の
プライオリティナンバーFGPNが供給されるスプライ
トカラー演算イネーブルコントロール部50では、前景
画と他の画面とのカラー演算を行うか否かが判断され、
その結果がカラー演算イネーブルFGENとして出力さ
れる。このとき、スプライトコントロールレジスタのス
プライトカラー演算条件ビットには、前景画のカラー演
算条件が設定されている。条件1)〜3)が設定されて
いる場合は、上記プライオリティナンバーFGPNと、
スプライトカラー演算条件ナンバービットに設定された
カラー演算条件ナンバーとが比較される。また、条件
4)が設定されている場合は、ドットカラーデータDC
Lに基づいてカラーRAM23からカラーデータの最上
位ビットが読み出され、この値が1であるか否かが判断
される。このようにして判断された結果、前景画のカラ
ー演算が行われる場合は、出力されるカラー演算イネー
ブルFGENがオンとなる。
B. Color calculation enable <Foreground image color calculation enable> On the other hand, the sprite color number enable control unit 50 to which the foreground priority number FGPN is supplied from the sprite priority number control unit 20 performs color calculation of the foreground image and other screens. It is decided whether to do it,
The result is output as the color operation enable FGEN. At this time, the color calculation condition of the foreground image is set in the sprite color calculation condition bit of the sprite control register. When the conditions 1) to 3) are set, the priority number FGPN and
The sprite color calculation condition number bit is compared with the color calculation condition number set in the bit. If condition 4) is set, dot color data DC
Based on L, the most significant bit of the color data is read from the color RAM 23, and it is determined whether or not this value is 1. As a result of the determination as described above, when the color calculation of the foreground image is performed, the output color calculation enable FGEN is turned on.

【0109】<背景画のカラー演算イネーブル>一方、
スクロールカラー演算イネーブルコントロール部100
では、上記コード値CODEと、カラー演算用ビットC
Cとに基づき、各背景画についてカラー演算を行うか否
かが判断され、その結果がカラー演算イネーブルBG0
EN,BG1EN,BG2EN,BG3ENとして出力
される。
<Background image color calculation enable> On the other hand,
Scroll color calculation enable control unit 100
Then, the code value CODE and the color calculation bit C
Based on C, it is determined whether or not color calculation is performed for each background image, and the result is the color calculation enable BG0.
It is output as EN, BG1EN, BG2EN, BG3EN.

【0110】まず、特殊カラー演算モードレジスタに設
定された特殊カラー演算モードビットに基づき、カラー
演算イネーブルのモードが選択される。すなわち、モー
ド0が設定されている場合は、カラー演算イネーブルビ
ットの値が1のときにカラー演算を行うよう判断され、
モード1が設定されている場合は、カラー演算イネーブ
ルビットが1に指定されており、カラー演算用ビットC
Cの値が1である場合にそのキャラクタパターンに対し
カラー演算を行うよう判断される。
First, the color operation enable mode is selected based on the special color operation mode bit set in the special color operation mode register. That is, when the mode 0 is set, it is determined that the color operation is performed when the value of the color operation enable bit is 1.
When mode 1 is set, the color operation enable bit is set to 1, and the color operation bit C
When the value of C is 1, it is determined to perform color calculation on the character pattern.

【0111】また、モード2が設定されている場合は、
カラー演算イネーブルビットが1に指定されており、そ
のキャラクタパターンのカラー演算用ビットCCの値が
1であって、特殊コードビットに指定されたドットカラ
ーコードと一致している場合にそのドットに対しカラー
演算を行うよう判断される。更に、モード3が設定され
ている場合は、画像データBG0DT,BG1DT,B
G2DT,BG3DTに基づいてカラーRAM23から
カラーデータの最上位ビットが読み出され、この値が1
であるか否かが判断される。このようにして判断された
結果、カラー演算が行われる背景画については、出力さ
れるカラー演算イネーブルBG0EN,BG1EN,B
G2EN,BG3ENがオンとなる。
When mode 2 is set,
If the color operation enable bit is specified as 1, the value of the color operation bit CC of the character pattern is 1, and the dot color code specified in the special code bit matches, It is decided to perform a color operation. Furthermore, when mode 3 is set, the image data BG0DT, BG1DT, B
The most significant bit of the color data is read from the color RAM 23 based on G2DT and BG3DT, and this value is 1
Is determined. As a result of the determination as described above, for the background image for which the color calculation is performed, the color calculation enable BG0EN, BG1EN, B to be output is output.
G2EN and BG3EN are turned on.

【0112】<カラー演算イネーブル>以上のようにし
て出力される前景画のカラー演算イネーブルFGEN
と、背景画のカラー演算イネーブルBG0EN,BG1
EN,BG2EN,BG3ENとは、カラー演算イネー
ブルコントロール部70に供給される。そして、いずれ
の画面に対しカラー演算が行われるかが判断され、その
結果がカラー演算イネーブルENとしてカラー演算部1
10に出力される。
<Color operation enable> The color operation enable FGEN of the foreground image output as described above
And background image color calculation enable BG0EN, BG1
EN, BG2EN, BG3EN are supplied to the color operation enable control unit 70. Then, it is determined to which screen the color calculation is to be performed, and the result is set as the color calculation enable EN to the color calculation unit 1.
It is output to 10.

【0113】C.カラー演算割合 <前景画のカラー演算割合>一方、スプライトカラー演
算割合コントロール部30では、スプライトドットデー
タビット検出部10から供給されるカラー演算割合選択
ビットCCRSLに基づき、スプライト用カラー演算割
合レジスタに設定されているカラー演算割合のうちの1
つが選択される。そして、この選択されたカラー演算割
合FGCRは、カラー演算割合コントロール部60に供
給される。
C. Color calculation ratio <Color calculation ratio of foreground image> On the other hand, in the sprite color calculation ratio control unit 30, the color calculation ratio register for sprite is set in the sprite color calculation ratio register based on the color calculation ratio selection bit CCRSL supplied from the sprite dot data bit detection unit 10. 1 of the calculated color calculation ratios
One is selected. Then, the selected color calculation ratio FGCR is supplied to the color calculation ratio control unit 60.

【0114】<背景画のカラー演算割合>また、スクロ
ールカラー演算割合コントロール部120により、スク
ロール用カラー演算割合レジスタに画面毎に設定された
カラー演算割合BG0CR,BG1CR,BG2CR,
BG3CRが、カラー演算割合コントロール部60に供
給される。
<Color calculation ratio of background image> Also, the color calculation ratios BG0CR, BG1CR, BG2CR, set in the scroll color calculation ratio register for each screen by the scroll color calculation ratio control unit 120.
BG3CR is supplied to the color calculation ratio control unit 60.

【0115】<カラー演算割合>カラー演算割合コント
ロール部60では、カラー演算割合が決定される。ま
ず、カラー演算割合コントロールレジスタに設定された
カラー演算割合モードに基づき、トップ画像もしくはセ
カンド画像のカラー演算割合が選択される。すなわち、
モード0が設定されている場合は、プライオリティ判断
部40から供給されRプライオリティPRIORに基づ
き、トップ画像になった画面のカラー演算割合の値が選
択される。また、モード1が設定されている場合は、セ
カンド画像になった画面のカラー演算割合の値が選択さ
れる。このようにして選択されたカラー演算割合CR
は、カラー演算部110に供給される。
<Color Calculation Ratio> The color calculation ratio control unit 60 determines the color calculation ratio. First, the color calculation ratio of the top image or the second image is selected based on the color calculation ratio mode set in the color calculation ratio control register. That is,
When the mode 0 is set, the value of the color calculation ratio of the screen which becomes the top image is selected based on the R priority PRIOR supplied from the priority determination unit 40. When the mode 1 is set, the value of the color calculation ratio of the screen which becomes the second image is selected. Color calculation ratio CR selected in this way
Are supplied to the color calculation unit 110.

【0116】D.カラー演算 カラー演算部110では、プライオリティ判断部40か
らのプライオリティPRIOR、カラー演算イネーブル
コントロール70からのカラー演算イネーブルEN及び
カラー演算割合コントロール部60からのカラー演算割
合CRに基づき、カラー演算が行われる。
D. Color operation In the color operation section 110, color operation is performed based on the priority PRIOR from the priority determination section 40, the color operation enable EN from the color operation enable control 70, and the color operation rate CR from the color operation rate control section 60.

【0117】ここで、例えば図5に示すように、前景画
FG及び背景画BG0,BG1,BG2,BG3があ
り、それぞれのプライオリティナンバーが「8」、
「6」、「4」、「2」、及び「1」であるとする。こ
れらを表示した時に、図6に示すように、前景画FGの
キャラクタCHRの内部にカラー演算を施して、背景画
BG0の画像が透けて見えるようにする場合について説
明する。
Here, for example, as shown in FIG. 5, there are foreground image FG and background images BG0, BG1, BG2, BG3, each of which has a priority number of "8",
It is assumed that they are “6”, “4”, “2”, and “1”. A case will be described in which, when these are displayed, as shown in FIG. 6, color calculation is performed inside the character CHR of the foreground image FG so that the image of the background image BG0 can be seen through.

【0118】このとき、キャラクタCHRの内部を表示
する際、プライオリティナンバーによるプライオリティ
判断部40の判断により、プライオリティは、前景画F
G→背景画BG0→背景画BG1→背景画BG2→背景
画BG3の順番となる。従って、トップ画像は前景画F
Gの画像となり、セカンド画像が背景画BG0の画像と
なる。
At this time, when displaying the inside of the character CHR, the priority is determined by the priority determination unit 40 based on the priority number, and the priority is the foreground image F.
The order is G → background image BG0 → background image BG1 → background image BG2 → background image BG3. Therefore, the top image is the foreground image F
It becomes the image of G, and the second image becomes the image of the background image BG0.

【0119】一方、スプライトコントロールレジスタに
設定されたスプライトカラー演算条件が条件3)であ
り、カラー演算条件ナンバーが6であった場合、スプラ
イトカラー演算イネーブルコントロール部により、前景
画FGのカラー演算が行われるよう判断される。この判
断結果に応じたカラー演算イネーブルFGENが、カラ
ー演算イネーブルコントロール70に供給される。
On the other hand, when the sprite color calculation condition set in the sprite control register is condition 3) and the color calculation condition number is 6, the sprite color calculation enable control unit executes the color calculation of the foreground image FG. Will be judged. The color calculation enable FGEN corresponding to the result of this determination is supplied to the color calculation enable control 70.

【0120】また、前景画FGのカラー演算割合が2
0:12であり、背景画BG0のカラー演算割合が1
6:16であり、カラー演算モードビットにモード0が
指定され、カラー演算割合モードビットにモード0が指
定されているとする。それによって、カラー演算割合コ
ントロール部60からは、前景画FGのカラー演算割合
である20:12を示すカラー演算割合CRがカラー演
算部110に出力される。
Further, the color calculation ratio of the foreground image FG is 2
0:12, and the color calculation ratio of the background image BG0 is 1
It is 6:16, and it is assumed that mode 0 is specified in the color operation mode bit and mode 0 is specified in the color operation ratio mode bit. As a result, the color calculation ratio control unit 60 outputs the color calculation ratio CR indicating 20:12, which is the color calculation ratio of the foreground image FG, to the color calculation unit 110.

【0121】従って、カラー演算部110において、前
景画FGと背景画BG0の画像データFGDT及びBG
0DTがパレット形式である場合は、カラーRAM23
からRGBデータが読み出され、そのRGBデータの値
がカラー演算割合20:12で加算される。また、前景
画FGと背景画BG0の画像データFGDT及びBG0
DTがRGBデータである場合は、そのままの値がカラ
ー演算割合20:12で加算される。そして、この加算
の結果がRGBデータとしてD/Aコンバータ23に出
力される。
Therefore, in the color calculation section 110, the image data FGDT and BG of the foreground image FG and the background image BG0.
If 0DT is a palette format, color RAM 23
The RGB data is read from and the values of the RGB data are added at a color operation ratio of 20:12. Also, the image data FGDT and BG0 of the foreground image FG and the background image BG0.
When DT is RGB data, the value as it is is added at the color operation ratio of 20:12. Then, the result of this addition is output to the D / A converter 23 as RGB data.

【0122】(c)特殊なカラー演算処理 次に、特殊なカラー演算処理について説明する。(C) Special Color Calculation Process Next, the special color calculation process will be described.

【0123】A.ボカシ演算処理 まず、ボカシ演算機能について説明する。ボカシ演算機
能は、指定した1画面の水平方向のカラーデータを一定
の割合で加算する機能であり、遠くの背景をぼかすよう
な効果を得ることができる。このとき、カラー演算コン
トロールレジスタには、以下の情報が設定される。
A. Blurring Computation Processing First, the blurring computing function will be described. The blurring calculation function is a function of adding the specified color data in the horizontal direction in the horizontal direction at a constant ratio, and can obtain the effect of blurring a distant background. At this time, the following information is set in the color calculation control register.

【0124】ボカシ演算イネーブルビット:ボカシ演算
機能を使用するか否かを指定する。
Blurred arithmetic enable bit: Designates whether to use the blurred arithmetic function.

【0125】ボカシ画面ナンバービット:上記ボカシ演
算機能を使用する画面を指定する。
Blurry screen number bit: Designates a screen using the blurry calculation function.

【0126】このボカシ演算機能の具体的な例を、図7
に示す。まず、同図(a)に示す背景画BG0と、
(b)に示す背景画BG1と、(c)に示す背景画BG
2とがあり、それぞれプライオリティナンバーが
「6」、「4」、及び「2」であるとする。また、
(a)及び(b)において、領域A及びBは透明であ
り、(c)はボカシ演算指定画面であるとする この場合、カラー演算コントロールレジスタのボカシ演
算イネーブルビットが「1」となり、ボカシ画面ナンバ
ービットで背景画BG2が指定される。プライオリティ
判断部40でプライオリティが判断された結果、同図
(d)に示すトップ画像と同図(e)に示すセカンド画
像とが得られる。ここで、カラー演算部110におい
て、背景画BG2の画像データBG2DTによりボカシ
演算が行われる。このボカシ演算は、以下のようにして
行う。
A concrete example of this blurring calculation function is shown in FIG.
Shown in. First, the background image BG0 shown in FIG.
The background image BG1 shown in (b) and the background image BG shown in (c).
2 and the priority numbers are “6”, “4”, and “2”, respectively. Also,
In (a) and (b), areas A and B are transparent, and (c) is a blurring calculation designation screen. In this case, the blurring calculation enable bit of the color calculation control register becomes "1", and the blurring screen is displayed. The background image BG2 is designated by the number bit. As a result of the priority determination unit 40 determining the priority, the top image shown in FIG. 7D and the second image shown in FIG. Here, in the color calculation unit 110, blurring calculation is performed using the image data BG2DT of the background image BG2. This blurring operation is performed as follows.

【0127】まず、指定画面(この場合、背景画BG
2)の当該ドットの表示座標の2ドット前(表示画面で
は2ドット左)のカラーデータと、1ドット前(表示画
面では1ドット左)のカラーデータとを保持しておく。
そして、各ドットのカラーデータをRGBそれぞれ1/
4倍にし、その値に対して以下のような割合で加算す
る。
First, a designated screen (in this case, the background image BG
The color data of 2 dots before (2 dots left on the display screen) and the color data of 1 dot before (1 dot left on the display screen) of the display coordinates of the dot of 2) are held.
Then, the color data of each dot is set to 1 / RGB.
It is quadrupled and added to the value at the following ratio.

【0128】 (表示座標の2ドット : (表示座標の1ドット : (表示座標の 左のカラーデータ) 左のカラーデータ) カラーデータ) = 1 : 1 : 2 このようにしてボカシ演算が行われた背景画BG2がト
ップ画像もしくはセカンド画像となっている領域、すな
わち、図7(d)における領域Cと同図(e)における
領域Dにおいて、同図(f)に示すように、上記ボカシ
演算した背景画BG2を強制的にセカンド画像とする。
そして、カラー演算部110により、同図(d)に示す
トップ画像と(f)に示すセカンド画像とのカラー演算
が行われ、(g)に示す画像が生成される。なお、
(f)に示すセカンド画像のうち上記領域以外の部分
は、通常どおりプライオリティで決定された画面とな
る。
(2 dots of display coordinates: (1 dot of display coordinates: (color data on the left of display coordinates) Color data on the left) Color data) = 1: 1: 2: 2 In this way, the blur calculation is performed. In the area in which the background image BG2 is the top image or the second image, that is, in the area C in FIG. 7D and the area D in FIG. 7E, the blur calculation is performed as shown in FIG. The background image BG2 is forcibly set as the second image.
Then, the color calculation unit 110 performs color calculation on the top image shown in FIG. 7D and the second image shown in FIG. 6F to generate the image shown in FIG. In addition,
The part of the second image shown in (f) other than the above-mentioned area is the screen determined by the priority as usual.

【0129】B.拡張カラー演算処理 a.3画面のカラー演算 上述したように、通常は、トップ画像とセカンド画像と
の2画面でのみカラー演算が行われる。しかしながら、
セカンド画像とサード画像とを一定の割合で加算した結
果をセカンド画像のデータとすることにより、3画面の
カラー演算が可能となる。このとき、カラー演算コント
ロールレジスタに拡張カラー演算イネーブルビットが設
定される。拡張カラー演算機能を使用する場合、このビ
ットの値が「1」となる。
B. Extended color arithmetic processing a. Color Calculation of Three Screens As described above, normally, color calculation is performed only on the two screens of the top image and the second image. However,
By using the result of adding the second image and the third image at a constant ratio as the data of the second image, color calculation of three screens is possible. At this time, the extended color operation enable bit is set in the color operation control register. When the extended color operation function is used, the value of this bit is "1".

【0130】例えば、図6に示すキャラクタCHRの内
部において、拡張カラー演算処理が行われる場合につい
て説明する。この場合、この部分では、背景画BG1の
画像がサード画像となっている。従って、スクロールカ
ラー演算イネーブルコントロール部100から出力され
る背景画BG1のカラー演算イネーブルBG1ENもオ
ンとなり、カラー演算イネーブルコントロール部70か
ら出力されるカラー演算イネーブルENとしては、前景
画FG、背景画BG0、及び背景画BG1が指定され
る。
For example, a case where the extended color arithmetic processing is performed inside the character CHR shown in FIG. 6 will be described. In this case, in this portion, the image of the background image BG1 is the third image. Therefore, the color calculation enable BG1EN of the background image BG1 output from the scroll color calculation enable control unit 100 is also turned on, and the color calculation enable EN output from the color calculation enable control unit 70 includes the foreground image FG and the background image BG0. And the background image BG1 is designated.

【0131】そして、拡張カラー演算機能の使用が設定
され、上記カラー演算イネーブルENが供給されると、
カラー演算部110では、まず、背景画BG0の画像デ
ータBG0DTと背景画BG1の画像データBG1DT
とが一定の割合で加算される。そして、これがセカンド
画像のデータとなり、トップ画像である前景画FGの画
像データFGDTと、上述したようにカラー演算が行わ
れる。
When the use of the extended color calculation function is set and the color calculation enable EN is supplied,
In the color calculation unit 110, first, the image data BG0DT of the background image BG0 and the image data BG1DT of the background image BG1 are displayed.
And are added at a fixed rate. Then, this becomes the data of the second image, and the color calculation is performed as described above with the image data FGDT of the foreground image FG which is the top image.

【0132】b.ラインカラー画面 本実施例においては、カラー演算を行うためだけに使用
されるラインカラー画面が設けられている。このライン
カラー画面を使用した場合の例を、図8に示す。まず、
同図(a)に示すように、山を表示する背景画BG0と
画面の奥に向かう道路を表示する背景画BG1とがある
とする。そして、同図(b)に示すように、画面上部か
ら下部に向かって暗い色から明るい色へ徐々に変化する
ラインカラー画面LNを用いて、上記背景画BG1とカ
ラー演算させる。これにより、同図(c)に示すよう
に、手前から奥に向かって表示される色が徐々に暗くな
り、距離感のある画像を生成することができる。
B. Line Color Screen In this embodiment, a line color screen used only for performing color calculation is provided. An example of using this line color screen is shown in FIG. First,
As shown in (a) of the figure, it is assumed that there is a background image BG0 displaying a mountain and a background image BG1 displaying a road heading to the back of the screen. Then, as shown in FIG. 7B, the background image BG1 is color-calculated using a line color screen LN that gradually changes from a dark color to a light color from the upper part of the screen to the lower part. As a result, as shown in FIG. 7C, the color displayed from the front to the back gradually becomes darker, and an image with a sense of distance can be generated.

【0133】このようなラインカラー画面を使用する場
合、VRAM22にラインカラー画面テーブルを設定
し、ラインカラー画面のライン毎のデータ(カラーRA
M23のアドレス)をこのラインカラー画面テーブルに
格納する。このラインカラー画面テーブルとラインカラ
ー画面との対応を、図9に示す。また、このようにライ
ン毎にカラーを指定する場合だけでなく、画面全体を単
色に指定する場合もある。このとき、1ライン目のデー
タが、画面全体のデータとして使用される。
When such a line color screen is used, a line color screen table is set in the VRAM 22 and data (color RA) for each line of the line color screen is set.
The address of M23) is stored in this line color screen table. The correspondence between the line color screen table and the line color screen is shown in FIG. In addition to the case of specifying the color for each line as described above, the whole screen may be specified as a single color. At this time, the data of the first line is used as the data of the entire screen.

【0134】スクロールエンジン18のレジスタには、
以下のレジスタが設定される。
In the register of the scroll engine 18,
The following registers are set.

【0135】ラインカラー画面イネーブルビット:各画
面について、それぞれがトップ画像になったときにライ
ンカラー画面を挿入するか否かを指定する。挿入する場
合、このビットの値が「1」となる。
Line color screen enable bit: For each screen, specifies whether or not to insert a line color screen when each becomes the top image. When inserting, the value of this bit becomes "1".

【0136】ラインカラー画面カラーモードレジスタ:
ラインカラー画面のカラーモードを指定する。
Line Color Screen Color Mode Register:
Line color Specifies the screen color mode.

【0137】<モード0>ラインカラー画面全体を単色
にする。
<Mode 0> The entire line color screen is made monochrome.

【0138】<モード1>ラインカラー画面のライン毎
に指定する。
<Mode 1> Line It is designated for each line of the color screen.

【0139】ラインカラー画面テーブルアドレスビッ
ト:VRAM22上のラインカラー画面テーブルの先頭
アドレスを指定する。
Line color screen table address bit: Designates the start address of the line color screen table on the VRAM 22.

【0140】モード0が指定された場合は、VRAM2
2から、ラインカラー画面テーブルアドレスビットに指
定されたアドレスのデータが読み出され、ラインカラー
画面のカラーとなる。また、モード1が指定された場合
は、ライン毎にラインカラー画面テーブルアドレスビッ
トに指定されたアドレスのデータが読み出され、ライン
カラー画面の各ラインのカラーとなる。
When mode 0 is designated, VRAM2
The data of the address designated by the line color screen table address bit is read from 2 and becomes the color of the line color screen. When the mode 1 is designated, the data of the address designated by the line color screen table address bit is read line by line and becomes the color of each line of the line color screen.

【0141】c.ラインカラー画面と回転スクロール <スクロール機能について>本実施例による画像処理装
置では、背景画を左右上下方向に移動させたり回転させ
たりするスクロール機能がある。このスクロール機能に
よって表示される背景画は、実際上の演算ではVRAM
22に格納された仮想的な静止画であり、この画像につ
いての情報を変換するような演算、すなわち、背景画を
動かすような処理が行われているわけではない。実際に
行われる演算のグラフィカルなイメージは、スクリーン
画面の枠及びプレーヤの視点が、VRAM22に背景画
全体の上を自由に動いていくようなものである。なお、
スクリーン画面とは、厳密には移動変換や回転変換を行
う回路毎に設定される仮想画面のことであるが、画像が
表示される画面であるという観点から見れば、ディスプ
レイ装置のモニタ画面と考えてよい。
C. Line color screen and rotary scroll <Regarding scroll function> The image processing apparatus according to the present embodiment has a scroll function of moving or rotating a background image in the left-right and up-down directions. The background image displayed by this scroll function is VRAM in the actual calculation.
It is a virtual still image stored in 22, and a calculation for converting information about this image, that is, a process for moving the background image is not performed. The graphical image of the actual calculation is such that the frame of the screen screen and the viewpoint of the player move freely in the VRAM 22 over the entire background image. In addition,
Strictly speaking, the screen screen is a virtual screen that is set for each circuit that performs movement conversion and rotation conversion, but from the viewpoint of the screen on which an image is displayed, it is considered to be the monitor screen of the display device. You may

【0142】<回転スクロール画面>スクロール画面の
種類には、左右及び上下に移動するいわゆるノーマルス
クロール画面と回転を行う回転スクロール画面とがあ
る。ここでの回転スクロール画面とは、座標軸(X,
Y,Z軸)を回転軸とした回転と、モニタ画面に垂直な
画面軸を回転軸とした回転とを行うスクロール画面のこ
とである。
<Rotary Scroll Screen> Types of scroll screens include a so-called normal scroll screen that moves horizontally and vertically and a rotary scroll screen that rotates. The rotation scroll screen here means coordinate axes (X,
This is a scroll screen that performs rotation about (Y, Z axes) as a rotation axis and rotation about a screen axis perpendicular to the monitor screen as a rotation axis.

【0143】回転スクロール画面を表示する際の、スク
ロール画面、スクリーン画面及び視点の関係について、
図面を参照して説明する。図10に示した状態を初期状
態とすると、図11がスクロール画面に対しスクリーン
画面をX軸を中心にして回転させた「X軸回転」の場
合、図12がスクロール画面に対しスクリーン画面をY
軸を中心にして回転させた「Y軸回転」の場合、図13
がスクロール画面に対しスクリーン画面をZ軸を中心に
して回転させた「Z軸回転」の場合である。
Regarding the relationship between the scroll screen, the screen screen and the viewpoint when displaying the rotary scroll screen,
A description will be given with reference to the drawings. When the state shown in FIG. 10 is the initial state, when FIG. 11 is “X-axis rotation” in which the screen screen is rotated about the X axis with respect to the scroll screen, FIG.
In the case of “Y-axis rotation” rotated about the axis, FIG.
Is the case of "Z axis rotation" in which the screen screen is rotated around the Z axis with respect to the scroll screen.

【0144】<移動回転変換式>上述した図10に示す
状態から、図11〜図13に示すようにスクリーン画面
が動く場合、スクリーン画面上の画像は図14〜図17
に示すような表示となる。図14が図10に、図15が
図11に、図16が図12に、図17が図13に対応す
る。なお、図14〜図17の下部に示したものは各図の
状態における回転マトリクスパラメータである。
<Movement Rotation Conversion Type> When the screen screen moves from the state shown in FIG. 10 as shown in FIGS. 11 to 13, the images on the screen screen are shown in FIGS.
The display is as shown in. 14 corresponds to FIG. 10, FIG. 15 corresponds to FIG. 11, FIG. 16 corresponds to FIG. 12, and FIG. 17 corresponds to FIG. Note that the lower part of FIGS. 14 to 17 is the rotation matrix parameter in the state of each drawing.

【0145】本実施例では、移動回転変換を行ったスク
リーン画面(すなわち、回転スクロール画面の表示画
面)は、中心点を基準に視点及びスクリーン画面を回転
変換させ、変換後の視点から変換後のスクリーン画面を
通った視線が、固定されたスクロールマップと交差する
点を集めたものである。ここで、座標変換前の視点(P
x,Py,Pz)を、中心点(Cx,Cy,Cz)を中
心として回転し、更に平行移動して変換後の視点を(X
p,Yp,Zp)とする移動回転とする移動回転変換式
は、次式で与えられる。
In the present embodiment, the screen screen subjected to the movement rotation conversion (that is, the display screen of the rotary scroll screen) is subjected to the rotation conversion of the viewpoint and the screen screen with the center point as a reference, and the viewpoint after the conversion is converted to the converted screen. The line of sight through the screen is a collection of points that intersect the fixed scroll map. Here, the viewpoint (P
(x, Py, Pz) is rotated about the center point (Cx, Cy, Cz), and further translated to move the viewpoint after conversion to (X
The movement-rotation conversion equation, which is the movement rotation of (p, Yp, Zp), is given by the following equation.

【0146】[0146]

【数1】 但し、Mx,My,MzはX,Y,Z軸それぞれに対す
る平行移動量、A〜Iは回転マトリクスパラメータであ
る。
[Equation 1] However, Mx, My, and Mz are parallel movement amounts with respect to the X, Y, and Z axes, and A to I are rotation matrix parameters.

【0147】また、座標変換前のスクリーン画面上の点
(Sx,Sy,Sz)を、前記と同様に移動回転させ
て、座標変換後のスクリーン画面上の点を(Xs,Y
s,Zs)とする移動回転変換式は次式で与えられる。
Further, the point (Sx, Sy, Sz) on the screen screen before coordinate conversion is moved and rotated in the same manner as described above, and the point on the screen screen after coordinate conversion is changed to (Xs, Y).
s, Zs) is given by the following equation.

【0148】[0148]

【数2】 さらに、変換後の視点から変換後のスクリーン画面上の
点を通り、表示させるスクロール画面上の点(X,Y,
Z)に至る視点は次式で表される。
[Equation 2] Furthermore, the point on the scroll screen to be displayed passes through the point on the screen screen after conversion from the viewpoint after conversion (X, Y,
The viewpoint leading to Z) is expressed by the following equation.

【0149】[0149]

【数3】 ここで表示させるスクロール画面つまりVRAM22内
に格納された背景画は、Z=0の平面であることから表
示させるスクロール画面のX,Y座標は次式で表され
る。
[Equation 3] Since the scroll screen to be displayed here, that is, the background image stored in the VRAM 22 is a plane of Z = 0, the X and Y coordinates of the scroll screen to be displayed are expressed by the following equations.

【0150】 X=k(Xs−Xp)+Xp Y=k(Ys−Yp)+Yp …(4) 但し、k=−Zp/(Zs−Zp) 上記の係数kは(1)式、(2)式から次のように表さ
れる。
X = k (Xs−Xp) + Xp Y = k (Ys−Yp) + Yp (4) However, k = −Zp / (Zs−Zp) The above coefficient k is the equation (1), (2). From the formula, it is expressed as follows.

【0151】[0151]

【数4】 (5)式において、変換前の視点(Px,Py,P
z)、変換前の中心点(Cx,Cy,Cz)、平行移動
量(Mx,My,Mz)及び回転マトリクスパラメータ
A〜Iは、1フレーム内では固定値であるので、係数k
は変換前のスクリーン画面上の点(Sx,Sy,Sz)
の値に従って変化する。
[Equation 4] In the equation (5), the viewpoint (Px, Py, P
z), the center point before conversion (Cx, Cy, Cz), the amount of parallel movement (Mx, My, Mz) and the rotation matrix parameters A to I are fixed values within one frame, so the coefficient k
Is the point (Sx, Sy, Sz) on the screen screen before conversion
Changes according to the value of.

【0152】以上のように移動回転変換に用いられる係
数kは、CPU15により、係数データとしてVRAM
22内の係数データテーブルに書き込まれる。この係数
データは、CPU15によって計算されたものであり、
画素毎に1画面分、垂直及び水平ブランキング期間など
に書き込まれる。そして、画面の回転に合わせて、係数
データが読み出される。この時、表示座標(H,V)で
の読み出しアドレスTAは、以下の式によって求められ
る。なお、TAstは係数データテーブルの開始アドレ
ス、△TAstは垂直方向アドレス増分、△TAは水平
方向アドレス増分、HはHカウント値、VはVカウント
値である。
As described above, the coefficient k used for the movement / rotation conversion is stored in the VRAM as the coefficient data by the CPU 15.
22 is written in the coefficient data table. This coefficient data is calculated by the CPU 15,
One screen is written for each pixel in the vertical and horizontal blanking periods. Then, the coefficient data is read according to the rotation of the screen. At this time, the read address TA at the display coordinates (H, V) is obtained by the following formula. Note that TAst is the start address of the coefficient data table, ΔTAst is the vertical address increment, ΔTA is the horizontal address increment, H is the H count value, and V is the V count value.

【0153】 TA=TAst+△TAst×V+△TA×H …(6) <ラインカラー画面と回転スクロール画面>上述した回
転スクロール画面とラインカラー画面とでカラー演算す
る場合には、通常のラインカラー画面のカラーデータを
読み出して演算を行う場合と、回転スクロール画面の回
転に合わせてラインカラー画面を回転させる場合とがあ
る。このとき、係数テーブルコントロールレジスタとし
て以下の情報が設定される。
TA = TAst + ΔTAst × V + ΔTA × H (6) <Line color screen and rotary scroll screen> When performing color calculation on the rotary scroll screen and line color screen described above, a normal line color screen is displayed. There is a case where the color data is read out and the calculation is performed, and a case where the line color screen is rotated in accordance with the rotation of the rotary scroll screen. At this time, the following information is set as the coefficient table control register.

【0154】係数ラインカラーイネーブルビット:係数
データ中のラインカラー画面データを使用するか否かを
指定する。
Coefficient line color enable bit: Designates whether to use the line color screen data in the coefficient data.

【0155】係数テーブルイネーブルビット:係数デー
タテーブルを使用するか否かを指定する。
Coefficient table enable bit: Designates whether or not to use the coefficient data table.

【0156】本実施例では、上述したように回転スクロ
ール画面の回転に合わせてラインカラー画面を回転させ
るような場合、上記係数データと、ラインカラー画面の
カラーデータ(ラインカラー画面データ)の一部とを1
組のデータとしてVRAM22に格納してお句。そし
て、必要に応じて、ラインカラー画面テーブルから読み
出すラインカラー画面データの一部に、上記係数データ
中のラインカラー画面データの一部を付加する。例え
ば、図18(a)に示すように11ビットからなるライ
ンカラー画面データのうちの4ビットと、同図(b)に
示すように16ビットからなる係数データのうちの7ビ
ットとを合成し、同図(c)に示すような合成データと
する。
In this embodiment, when the line color screen is rotated in accordance with the rotation of the rotary scroll screen as described above, part of the coefficient data and the color data of the line color screen (line color screen data) is used. And 1
The phrase is stored in the VRAM 22 as a set of data. Then, if necessary, a part of the line color screen data in the coefficient data is added to a part of the line color screen data read from the line color screen table. For example, as shown in FIG. 18A, 4 bits of the line color screen data of 11 bits are combined with 7 bits of the coefficient data of 16 bits as shown in FIG. , And synthetic data as shown in FIG.

【0157】図19に、このラインカラー画面と回転ス
クロール画面とカラー演算に係わるスクロールエンジン
18の構成を示す。同図において、背景画生成部31
は、ノーマルスクロール画像データコントロール部20
0、回転スクロール画像データコントロール部210、
回転スクロール用係数テーブルアドレスコントロール部
220、ノーマルスクロール用ラインカラー画面テーブ
ルアドレスコントロール部230、係数データバッファ
240a、回転スクロール用ラインカラー画面データバ
ッファ240b、ノーマルスクロール用ラインカラー画
面データバッファ250、及びスイッチ260から構成
される。
FIG. 19 shows the structure of the line color screen, the rotary scroll screen, and the scroll engine 18 for color calculation. In the figure, the background image generation unit 31
Is the normal scroll image data control unit 20.
0, rotary scroll image data control unit 210,
Rotating scroll coefficient table address control unit 220, normal scroll line color screen table address control unit 230, coefficient data buffer 240a, rotating scroll line color screen data buffer 240b, normal scroll line color screen data buffer 250, and switch 260. Composed of.

【0158】まず、背景画としてノーマルスクロール画
面が使用される場合、背景画BG0、BG1、BG2、
もしくはBG3についての画像表示イネーブルビットが
「1」となる。そして、ノーマルスクロール画像データ
コントロール部200は、上述したようにVRAM22
からパターンネームデータ及びパターンデータを読み出
し、1画素分の画像データBG0DT,BG1DT,B
G2DT,BG3DTを出力する。これらのデータは、
表示制御部32のプライオリティコントロール部11に
供給される。そして、上述したように通常のカラー演算
処理が行われる。
First, when the normal scroll screen is used as the background image, the background images BG0, BG1, BG2,
Alternatively, the image display enable bit for BG3 becomes "1". Then, the normal scroll image data control unit 200 uses the VRAM 22 as described above.
The pattern name data and the pattern data are read from the image data BG0DT, BG1DT, B for one pixel.
Outputs G2DT and BG3DT. These data are
It is supplied to the priority control unit 11 of the display control unit 32. Then, as described above, the normal color calculation processing is performed.

【0159】また、ノーマルスクロール画面が使用され
る時に、ラインカラー画面が使用される場合、ノーマル
スクロール用ラインカラー画面テーブルアドレスコント
ロール部230により、VRAM22内のラインカラー
画面テーブルのラインカラー画面データの読み出しアド
レスが設定される。そして、この読み出しアドレスに基
づいてラインカラー画面データが読み出され、ノーマル
スクロール用ラインカラー画面データバッファ250に
格納される。この時、スイッチ260はノーマルスクロ
ール用ラインカラー画面データバッファ250側に切り
換えられており、上記ラインカラー画面データがカラー
演算コントロール部12に供給される。
When the normal scroll screen is used and the line color screen is used, the normal scroll line color screen table address control unit 230 reads the line color screen data of the line color screen table in the VRAM 22. The address is set. Then, the line color screen data is read based on the read address and stored in the normal scroll line color screen data buffer 250. At this time, the switch 260 is switched to the normal scroll line color screen data buffer 250 side, and the line color screen data is supplied to the color calculation control unit 12.

【0160】一方、背景画として回転スクロール画面が
使用される場合、背景画RBG0もしくはRBG1につ
いての画像表示イネーブルビットが「1」となる。そし
て、回転スクロール用係数テーブルアドレスコントロー
ル部220は、上記式(6)より係数データテーブルの
読み出しアドレスTAを求める。この読み出しアドレス
TAによりVRAM22がアクセスされ、読み出された
係数データは係数データバッファ240aに格納され
る。そして、この係数データは、回転スクロール画像デ
ータコントロール部210に供給される。回転スクロー
ル画像データコントロール部210では、上記係数デー
タに基づいて上述した式(1)〜(4)によってX,Y
座標が求められ、それに従ってVRAM22がアクセス
される。そして、パターンネームデータ及びパターンデ
ータが読み出され、画像データRBG0DTもしくはR
RBG1DTが出力される。
On the other hand, when the rotary scroll screen is used as the background image, the image display enable bit for the background image RBG0 or RBG1 becomes "1". Then, the rotary scroll coefficient table address control unit 220 obtains the read address TA of the coefficient data table from the above equation (6). The VRAM 22 is accessed by the read address TA, and the read coefficient data is stored in the coefficient data buffer 240a. Then, this coefficient data is supplied to the rotary scroll image data control unit 210. In the rotary scroll image data control unit 210, X, Y are calculated according to the above equations (1) to (4) based on the coefficient data.
The coordinates are determined and the VRAM 22 is accessed accordingly. Then, the pattern name data and the pattern data are read, and the image data RBG0DT or R
RBG1DT is output.

【0161】また、回転スクロール画面が使用される時
に、通常のラインカラー画面が使用される場合は、回転
スクロール用係数テーブルアドレスコントロール部22
0により、ノーマルスクロール画面の場合と同様にVR
AM22内のラインカラー画面データが読み出され、回
転スクロール用ラインカラー画面データバッファ240
bを介してカラー演算コントロール部12に供給され
る。一方、ラインカラー画面も回転させる場合は、係数
テーブルコントロールレジスタの係数ラインカラーイネ
ーブルビットに「1」が設定される。これにより、回転
スクロール用係数テーブルアドレスコントロール部22
0は係数データテーブルの読み出しアドレスTAを求め
ると共に、ラインカラー画面テーブルの読み出しアドレ
スを設定する。そして、係数データバッファ240aに
係数データが格納されると共に、回転スクロール用ライ
ンカラー画面データバッファ240bに上述したように
合成されたラインカラー画面データが格納される。そし
て、このラインカラー画面データは、スイッチ260に
供給される。この時、スイッチ260は回転スクロール
用ラインカラー画面データバッファ240b側に切り換
えられているため、上記ラインカラー画面データはカラ
ー演算コントロール部12に供給される。
When a rotary scroll screen is used and a normal line color screen is used, the rotary scroll coefficient table address control unit 22 is used.
By setting 0, VR as in the case of normal scroll screen
The line color screen data in the AM 22 is read out, and the line color screen data buffer 240 for rotary scrolling is read.
It is supplied to the color calculation control unit 12 via b. On the other hand, when the line color screen is also rotated, "1" is set to the coefficient line color enable bit of the coefficient table control register. As a result, the coefficient table address control unit for rotary scroll 22
0 obtains the read address TA of the coefficient data table and sets the read address of the line color screen table. Then, the coefficient data is stored in the coefficient data buffer 240a, and the line color screen data combined as described above is stored in the rotary scroll line color screen data buffer 240b. Then, this line color screen data is supplied to the switch 260. At this time, since the switch 260 is switched to the rotary scroll line color screen data buffer 240b side, the line color screen data is supplied to the color calculation control unit 12.

【0162】d.ラインカラー画面を挿入した4画面の
カラー演算 次に、ラインカラー画面を挿入することによる4画面の
拡張カラー演算処理について説明する。図20に、この
4画面のカラー演算処理の例を示す。同図(a)に背景
画BG0、(b)に背景画BG1、(c)に背景画BG
2、(d)に背景画BG3を示し、それぞれのプライオ
リティナンバーを「6」、「4」、「2」、及び「1」
とする。そして、背景画BG0及びBG2についてライ
ンカラー画面イネーブルビットが「1」となっており、
それらがトップ画像となっている部分のセカンド画像と
して、同図(d)に示すラインカラー画面LNを挿入す
る。
D. Color Calculation of Four Screens with Line Color Screen Inserted Next, the extended color calculation process of four screens by inserting the line color screen will be described. FIG. 20 shows an example of the color calculation processing of the four screens. In the figure, (a) is a background image BG0, (b) is a background image BG1, and (c) is a background image BG.
2, (d) shows the background image BG3, and the respective priority numbers are “6”, “4”, “2”, and “1”.
And The line color screen enable bit for the background images BG0 and BG2 is "1",
The line color screen LN shown in FIG. 9D is inserted as the second image of the portion that is the top image.

【0163】図3に示すプライオリティ判断部40にお
いて、背景画BG0→背景画BG1→背景画BG2→背
景画BG3の順番でプライオリティが決定される。そし
て、カラー演算部110には、上記プライオリティPR
IORと共に、図20に示すスイッチ260から出力さ
れるラインカラー画面データLNDTが供給される。カ
ラー演算部110では、図20(f)及び(g)に示す
ように、背景画BG0がトップ画像となる部分、すなわ
ちキャラクタCH0の部分と、背景画BG2がトップ画
像となる部分、すなわちキャラクタCH2がキャラクタ
CHR0,CHR1と重ならない部分に、ラインカラー
画面データLNDTがセカンド画像として挿入される。
そして、ラインカラー画面が挿入された部分において、
挿入する前のセカンド画像は図20(h)に示すように
サード画像に、サード画像は同図(i)に示すようにフ
ォース画像となる。
In the priority determining section 40 shown in FIG. 3, the priorities are determined in the order of background image BG0 → background image BG1 → background image BG2 → background image BG3. Then, the color calculation unit 110 is provided with the priority PR.
The line color screen data LNDT output from the switch 260 shown in FIG. 20 is supplied together with the IOR. In the color calculation unit 110, as shown in FIGS. 20F and 20G, the background image BG0 is the top image, that is, the portion of the character CH0, and the background image BG2 is the top image, that is, the character CH2. The line color screen data LNDT is inserted as a second image in a portion that does not overlap the characters CHR0 and CHR1.
And in the part where the line color screen is inserted,
The second image before being inserted becomes a third image as shown in FIG. 20 (h), and the third image becomes a force image as shown in FIG. 20 (i).

【0164】例えば、キャラクタCHR0とキャラクタ
CHR1との重なる領域AR0でカラー演算を行う場合
に、背景画BG1の上記領域AR0のカラー演算イネー
ブルビットが「0」であるとする。その場合、領域AR
0において、サード画像とラインカラー画面とが一定の
割合でカラー演算され、この結果がセカンド画像のデー
タとなる。また、背景画BG1の領域AR0におけるカ
ラー演算イネーブルビットが「1」であるとすると、ま
ず、サード画像とフォース画像とが一定の割合でカラー
演算され、この結果とラインカラー画面とがカラー演算
される。そして、この結果が、セカンド画像のデータと
なる。
For example, when performing color calculation in the area AR0 where the character CHR0 and the character CHR1 overlap, it is assumed that the color calculation enable bit of the area AR0 of the background image BG1 is "0". In that case, the area AR
At 0, the third image and the line color screen are color-calculated at a constant ratio, and the result becomes the data of the second image. If the color calculation enable bit in the area AR0 of the background image BG1 is "1", first, the third image and the force image are color-calculated at a constant ratio, and the result and the line color screen are color-calculated. It Then, this result becomes the data of the second image.

【0165】このように、サード画像となる画面のカラ
ー演算イネーブルビットが「0」である場合は、3画面
の拡張カラー演算となり、「1」である場合は、4画面
の拡張カラー演算となる。
As described above, when the color operation enable bit of the screen which is the third image is "0", the extended color operation of three screens is performed, and when it is "1", the extended color operation of four screens is performed. .

【0166】(3)実施例の効果 以上のように、本実施例によれば、背景画毎に設定され
たプライオリティナンバーを、キャラクタ単位もしくは
ドット単位で変更することができる。また、各背景画毎
に設定されたカラー演算イネーブルについても、キャラ
クタ単位もしくはドット単位で変更することができる。
(3) Effects of the Embodiment As described above, according to this embodiment, the priority number set for each background image can be changed in character units or dot units. Further, the color calculation enable set for each background image can be changed in character units or dot units.

【0167】また、カラー演算割合は複数種類のうちの
いずれかが画面毎に設定されているため、画面の表示に
応じてカラー演算割合を徐々に変えることが可能であ
る。また、カラー演算用としてラインカラー画面を使用
することができるため、ライン毎にこのラインカラー画
面のカラーデータとカラー演算を行うことができる。こ
のため、例えば、指定した画面の色を徐々に変化させる
ような表示を行うことも可能となる。
Further, since one of a plurality of color calculation ratios is set for each screen, it is possible to gradually change the color calculation ratio according to the display on the screen. Further, since the line color screen can be used for color calculation, the color data and color calculation of the line color screen can be performed for each line. Therefore, for example, it is possible to perform a display in which the designated screen color is gradually changed.

【0168】更に、3画面の拡張カラー演算、及びライ
ンカラー画面を使用した4画面の拡張カラー演算を行う
こともできる。また、背景画を回転スクロール画面とし
て使用する場合、ラインカラー画面データの一部と係数
データとを1組にしてVRAMに格納しておき、上記背
景画とラインカラー画面とでカラー演算を行う際、ライ
ンカラー画面データを読み出してそれに上記ラインカラ
ー画面の一部を付加する。このため、回転スクロール画
面を使用する際に、ラインカラー画面テーブルのアドレ
スを計算する回路を別個に設ける必要がない。
Furthermore, it is also possible to perform extended color calculation for three screens and extended color calculation for four screens using a line color screen. Further, when the background image is used as a rotary scroll screen, a part of the line color screen data and the coefficient data are stored as a set in the VRAM and color calculation is performed on the background image and the line color screen. , Line color screen data is read and a part of the line color screen is added to it. Therefore, it is not necessary to separately provide a circuit for calculating the address of the line color screen table when using the rotary scroll screen.

【0169】(4)その他の実施例 なお、本発明は上記実施例に限定されるものではなく、
テレビゲーム機以外、すなわち、パーソナルコンピュー
タその他のコンピュータの画像表示装置においても広く
使用可能である。
(4) Other Embodiments The present invention is not limited to the above embodiments,
It can be widely used in image display devices of computers other than video game machines, that is, personal computers and the like.

【0170】[0170]

【発明の効果】以上述べたように、本発明によれば、以
下のような効果が得られる。
As described above, according to the present invention, the following effects can be obtained.

【0171】(1)画面のプライオリティを、セル単位
及びドット単位で設定することができる。
(1) The screen priority can be set in cell units and dot units.

【0172】(2)同一画面上で、カラー演算を行うか
否かの設定を、セル単位及びドット単位で行うことがで
きる。
(2) On the same screen, it is possible to set whether or not to perform color calculation in cell units and dot units.

【0173】(3)カラー演算割合を、従来のように1
種類ではなく複数種類の中から選択して設定するため、
表示される際に、手前の画像に対する奥の画像の透け加
減を変えることができる。
(3) The color calculation ratio is set to 1 as in the conventional case.
Since you select from multiple types instead of types and set,
When displayed, it is possible to change the amount of see-through of the back image with respect to the front image.

【0174】(4)ライン毎にカラーが設定されたライ
ンカラー画面を使用してカラー演算を行うことにより、
指定された画面のカラーを徐々に変化させていくような
表示をすることができる。また、ラインカラー画面の1
ライン目のカラーのみを使用することにより、指定され
た画面と単色のラインカラー画面とでカラー演算を行う
ことができる。
(4) By performing color calculation using the line color screen in which the color is set for each line,
It is possible to display such that the color of the designated screen is gradually changed. In addition, 1 of the line color screen
By using only the color of the line eye, color calculation can be performed on the designated screen and the monochromatic line color screen.

【0175】(5)画面に対して移動回転変換処理を行
い、この画面とラインカラー画面とでカラー演算を行う
場合に、移動回転変換処理の演算に使用する係数データ
とラインカラー画面データとを1組の係数データとして
画像メモリに格納するため、係数データの読み出しアド
レスを設定する手段と別にラインカラー画面データを読
み出す手段を設ける必要がない。そのため、回路規模を
大きくせずに、上記演算を行うことができる。
(5) When the moving / rotating conversion process is performed on the screen and color calculation is performed on this screen and the line color screen, the coefficient data and the line color screen data used for the calculation of the moving / rotating conversion process are calculated. Since a set of coefficient data is stored in the image memory, it is not necessary to provide a means for reading the line color screen data separately from a means for setting the read address of the coefficient data. Therefore, the above calculation can be performed without increasing the circuit scale.

【0176】以上のようなことから、多種多様なカラー
演算を行うことができ、簡単な構成で、より多彩な画面
表示を実現することができる。
As described above, a wide variety of color calculations can be performed, and a more versatile screen display can be realized with a simple structure.

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

【図1】本発明の一実施例による画像処理装置の全体構
成を示すブロック図である。
FIG. 1 is a block diagram showing an overall configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】同実施例における前景画FGの画像データFG
DTの構成を示す図である。
FIG. 2 is image data FG of the foreground image FG in the embodiment.
It is a figure which shows the structure of DT.

【図3】同実施例におけるプライオリティ判断及びカラ
ー演算処理を説明するブロック図である。
FIG. 3 is a block diagram illustrating priority determination and color calculation processing in the embodiment.

【図4】同実施例におけるプライオリティの判断につい
て説明する図である。
FIG. 4 is a diagram for explaining determination of priority in the embodiment.

【図5】同実施例におけるカラー演算処理を説明するた
めの(a)前景画FG、(b)背景画BG0、(c)背
景画BG1、(d)背景画BG2、及び(e)背景画B
G3を示す図である。
5A, 5B, 5C, 5D, 5E, 5D, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5E, 5e, 5e, 5e, 5e, 5e, 5e, 5e, 5e, 5e, 6e, 6e, 6e, 6e, 6e, 6e, 6e, 6e, 6e, 6e, 6e, 6e, 6e, 7e, 7e, 7e, 7e, 7e, and 6e, and 7e, background image BG0, BG0, BG1 and BG2 are shown. B
It is a figure which shows G3.

【図6】図5に示す画面に基づいて表示される画面を示
す図である。
FIG. 6 is a diagram showing a screen displayed based on the screen shown in FIG.

【図7】同実施例におけるボカシ演算機能の例を示す図
である。
FIG. 7 is a diagram showing an example of a blurring calculation function in the embodiment.

【図8】同実施例におけるラインカラー画面を用いたカ
ラー演算を説明する図である。
FIG. 8 is a diagram illustrating color calculation using a line color screen in the example.

【図9】同実施例におけるラインカラー画面テーブルと
ラインカラー画面との対応を示す図である。
FIG. 9 is a diagram showing a correspondence between a line color screen table and a line color screen in the embodiment.

【図10】スクロール画面、スクリーン画面、及び視線
を示す斜視図である。
FIG. 10 is a perspective view showing a scroll screen, a screen screen, and a line of sight.

【図11】図4のスクリーン画面をスクロール画面に対
しX軸回転させた斜視図である。
11 is a perspective view of the screen screen of FIG. 4 rotated on the X-axis with respect to the scroll screen.

【図12】図4のスクリーン画面をスクロール画面に対
しY軸回転させた斜視図である。
FIG. 12 is a perspective view of the screen screen of FIG. 4 rotated in the Y-axis with respect to the scroll screen.

【図13】図4のスクリーン画面をスクロール画面に対
しZ軸回転させた斜視図である。
13 is a perspective view of the screen screen of FIG. 4 rotated in the Z-axis with respect to the scroll screen.

【図14】図4に対応したスクリーン画面を示す正面図
である。
14 is a front view showing a screen screen corresponding to FIG. 4. FIG.

【図15】図5に対応したスクリーン画面を示す正面図
である。
15 is a front view showing a screen screen corresponding to FIG. 5. FIG.

【図16】図6に対応したスクリーン画面を示す正面図
である。
16 is a front view showing a screen screen corresponding to FIG.

【図17】図7に対応したスクリーン画面を示す正面図
である。
17 is a front view showing a screen screen corresponding to FIG. 7. FIG.

【図18】ラインカラー画面データと係数データとの合
成を説明する図である。
FIG. 18 is a diagram illustrating composition of line color screen data and coefficient data.

【図19】本実施例におけるラインカラー画面と回転ス
クロール画面とのカラー演算に関わるスクロールエンジ
ン18の構成を示すブロック図である。
FIG. 19 is a block diagram showing a configuration of a scroll engine 18 relating to color calculation of a line color screen and a rotary scroll screen in this embodiment.

【図20】本実施例における4画面の拡張カラー演算に
ついて説明する図である。
FIG. 20 is a diagram illustrating an expanded color calculation of four screens according to this embodiment.

【図21】従来の画像処理装置におけるプライオリティ
機能について説明する図である。
FIG. 21 is a diagram illustrating a priority function in a conventional image processing apparatus.

【図22】従来の画像処理装置におけるカラー演算機能
について説明する図である。
FIG. 22 is a diagram illustrating a color calculation function in a conventional image processing apparatus.

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

10…スプライトドットデータビット検出部 18…スクロールエンジン 20…スプライトプライオリティナンバーコントロール
部 22…VRAM 23…カラーRAM 30…スプライトカラー演算割合コントロール部 31…背景画生成部 32…表示制御部 40…プライオリティ判断部 50…スプライトカラー演算イネーブルコントロール部 60…カラー演算割合コントロール部 70…カラー演算イネーブルコントロール部 80…スクロールドットデータコード判断部 90…スクロールプライオリティナンバーコントロール
部 100…スクロールカラー演算イネーブルコントロール
部 110…カラー演算部 120…スクロールカラー演算コントロール部 210…回転スクロール画像データコントロール部 220…回転スクロール用係数テーブルアドレスコント
ロール部 230…ノーマルスクロール用ラインカラー画面テーブ
ルアドレスコントロール部 240a…係数データバッファ 240b…回転スクロール用ラインカラー画面データバ
ッファ 250…ノーマルスクロール用ラインカラー画面データ
バッファ 260…スイッチ
10 ... Sprite dot data bit detection unit 18 ... Scroll engine 20 ... Sprite priority number control unit 22 ... VRAM 23 ... Color RAM 30 ... Sprite color calculation ratio control unit 31 ... Background image generation unit 32 ... Display control unit 40 ... Priority determination unit 50 ... Sprite color calculation enable control unit 60 ... Color calculation ratio control unit 70 ... Color calculation enable control unit 80 ... Scroll dot data code determination unit 90 ... Scroll priority number control unit 100 ... Scroll color calculation enable control unit 110 ... Color calculation unit 120 ... Scroll color calculation control unit 210 ... Rotating scroll image data control unit 220 ... Rotating scroll Table address control unit 230 ... normal scroll line color screen table address control unit 240a ... coefficient data buffer 240b ... rotating scroll line color screen data buffer 250 ... line for normal scrolling color screen data buffer 260 ... switch

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】 画像メモリから複数の画面についての画
像データを読み出し、それらのプライオリティに基づい
て映像信号を生成する画像処理方法において、 前記複数の画面のプライオリティを設定する単位とし
て、「画面」、その画面を構成する「セル」、及びその
セルを構成する「ドット」のうちのいずれか1つを選択
することを特徴とする画像処理方法。
1. An image processing method for reading image data of a plurality of screens from an image memory and generating a video signal based on those priorities, wherein a "screen" is a unit for setting the priorities of the plurality of screens. An image processing method, characterized in that any one of "cells" forming the screen and "dots" forming the cell is selected.
【請求項2】 画像メモリから複数の画面についての画
像データを読み出し、それらのプライオリティを比較す
ると共に、指定された画面のプライオリティが最も高い
部分においてカラー演算を行い、その結果に基づいて映
像信号を生成する画像処理方法において、 前記カラー演算を行うか否かを設定する単位として、
「画面」、その画面を構成する「セル」、及びそのセル
を構成する「ドット」のうちのいずれか1つを選択し、 その選択した単位に応じて、カラー演算を行うか否かを
設定することを特徴とする画像処理方法。
2. The image data of a plurality of screens are read from the image memory, their priorities are compared with each other, color calculation is performed in a portion having the highest priority of the designated screen, and a video signal is generated based on the result. In the image processing method to generate, as a unit for setting whether to perform the color calculation,
Select any one of "screen", "cell" that composes the screen, and "dot" that composes the cell, and set whether to perform color calculation according to the selected unit. An image processing method comprising:
【請求項3】 画像メモリから複数の画面についての画
像データを読み出し、それらのプライオリティを比較す
ると共に、指定された画面のプライオリティが最も高い
部分においてカラー演算を行い、その結果に基づいて映
像信号を生成する画像処理方法において、 前記カラー演算を行う際の他の画面との演算比率である
カラー演算割合を複数設定し、 前記複数の画面の各々について前記カラー演算割合のう
ちのいずれかを選択し、 前記指定された画面のプライオリティが最も高い部分に
おいて、当該画面の画像データと、その部分において前
記プライオリティが2番目に高い画面の画像データとで
カラー演算を行う際に、前記指定された画面について設
定された前記カラー演算割合と、前記プライオリティが
2番目に高い画面について設定された前記カラー演算割
合とのうちのいずれか一方を選択し、 その選択したカラー演算割合に基づいて、カラー演算を
行うことを特徴とする画像処理方法。
3. The image data of a plurality of screens are read from the image memory, their priorities are compared with each other, color calculation is performed in a portion of the designated screen having the highest priority, and a video signal is generated based on the result. In the image processing method to be generated, a plurality of color calculation ratios, which are calculation ratios with other screens when performing the color calculation, are set, and one of the color calculation ratios is selected for each of the plurality of screens. , In the portion with the highest priority of the designated screen, when performing color calculation with the image data of the screen and the image data of the screen with the second highest priority in that portion, regarding the designated screen Set for the screen with the second highest priority and the color calculation ratio that has been set. An image processing method, characterized in that one of the selected color calculation ratios is selected and color calculation is performed based on the selected color calculation ratio.
【請求項4】 画像メモリから複数の画面についての画
像データを読み出し、それらのプライオリティを比較す
ると共に、指定された画面の中で他の画面と比べてプラ
イオリティが最も高い部分においてカラー演算を行い、
その結果に基づいて映像信号を生成する画像処理方法に
おいて、 前記指定された画面のプライオリティが最も高い部分に
おいて、前記プライオリティが2番目に高い画面の画像
データと3番目に高い画像データとでカラー演算を行
い、その結果を前記プライオリティが2番目に高い画面
の画像データとし、前記指定された画面の画像データと
カラー演算を行うことを特徴とする画像処理方法。
4. The image data of a plurality of screens is read from the image memory, their priorities are compared with each other, and color calculation is performed in a portion of the designated screens having the highest priority compared to other screens.
In an image processing method for generating a video signal based on the result, in a portion where the designated screen has the highest priority, color calculation is performed using image data of a screen having the second highest priority and image data of the third highest priority. And the result is used as image data of the screen having the second highest priority, and color calculation is performed with the image data of the specified screen.
【請求項5】 画像メモリから複数の画面についての画
像データを読み出し、それらのプライオリティを比較す
ると共に、指定された画面の中で他の画面と比べてプラ
イオリティが最も高い部分においてカラー演算を行い、
その結果に基づいて映像信号を生成する画像処理方法に
おいて、 前記画像メモリ内に、カラー演算用のラインカラー画面
を構成する各ライン毎カラーデータを、ラインカラー画
面テーブルとして格納し、 前記指定された画面のプライオリティが最も高い部分に
おいて、前記ラインカラー画面のカラーデータを前記プ
ライオリティが2番目に高い画面の画像データとし、前
記指定された画面の画像データとカラー演算を行うこと
を特徴とする画像処理方法。
5. The image data of a plurality of screens is read from the image memory, their priorities are compared with each other, and color calculation is performed in a portion of the designated screen having the highest priority as compared with other screens.
In an image processing method for generating a video signal based on the result, in the image memory, color data for each line forming a line color screen for color calculation is stored as a line color screen table, and the specified Image processing, wherein color data of the line color screen is used as image data of a screen having the second highest priority in a portion having the highest screen priority, and color calculation is performed with the image data of the designated screen. Method.
【請求項6】 画像メモリから複数の画面についての画
像データを読み出し、それらのプライオリティに基づい
て映像信号を生成する画像処理装置において、 前記プライオリティを前記画面を構成するドット毎に設
定するプライオリティ設定手段を具備することを特徴と
する画像処理装置。
6. An image processing apparatus for reading out image data for a plurality of screens from an image memory and generating a video signal based on those priorities, wherein a priority setting means for setting the priority for each dot forming the screen. An image processing apparatus comprising:
【請求項7】 画像メモリから複数の画面についての画
像データを読み出し、それらのプライオリティに基づい
て映像信号を生成する画像処理装置において、 前記画面毎にプライオリティを表すプライオリティナン
バーを設定するプライオリティナンバー設定手段と、 前記プライオリティナンバーを設定する単位として、
「画面」、その画面を構成する「セル」、及びそのセル
を構成する「ドット」のうちのいずれか1つを選択する
プライオリティ設定選択手段と、 前記プライオリティ設定選択手段によって前記単位とし
て「ドット」が選択されると、前記プライオリティナン
バーをドット単位で変更し、前記単位として「セル」が
選択されると、前記プライオリティナンバーをセル単位
で変更するプライオリティ変更手段とを具備することを
特徴とする画像処理装置。
7. An image processing apparatus for reading out image data of a plurality of screens from an image memory and generating a video signal based on those priorities, wherein a priority number setting means for setting a priority number representing a priority for each screen. And, as a unit for setting the priority number,
Priority setting selection means for selecting any one of "screen", "cell" forming the screen, and "dot" forming the cell, and "dot" as the unit by the priority setting selection means Is selected, the priority number is changed in dot units, and when "cell" is selected as the unit, the priority number changing unit changes the priority number in cell units. Processing equipment.
【請求項8】 前記画像データから前記セル単位で設定
されているプライオリティ用ビットを検出するプライオ
リティ用ビット検出手段を有し、 前記プライオリティ変更手段は、 前記プライオリティ設定選択手段により前記単位として
「セル」が選択されると、前記プライオリティ用ビット
を当該セルを構成するドットのプライオリティナンバー
の最下位ビットとし、「ドット」が選択されると、前記
プライオリティ用ビットがオンとなっているセルを構成
するドットのうち、その画像データが所定の値と一致し
たドットのプライオリティナンバーの最下位ビットをオ
ンとすることを特徴とする請求項7記載の画像処理装
置。
8. A priority bit detecting means for detecting a priority bit set in the cell unit from the image data, wherein the priority changing means is "cell" as the unit by the priority setting selecting means. When the priority bit is selected, the priority bit is set as the least significant bit of the priority number of the dots forming the cell, and when "dot" is selected, the dots forming the cell in which the priority bit is turned on. 8. The image processing apparatus according to claim 7, wherein the least significant bit of the priority number of a dot whose image data matches a predetermined value is turned on.
【請求項9】 画像メモリから複数の画面についての画
像データを読み出し、それらのプライオリティを比較す
ると共に、指定された画面の中で他の画面と比べてプラ
イオリティが最も高い部分においてカラー演算を行い、
その結果に基づいて映像信号を生成する画像処理装置に
おいて、 前記カラー演算を行うか否かを設定する単位として、
「画面」、その画面を構成する「セル」、及びそのセル
を構成する「ドット」のうちのいずれか1つを選択する
カラー演算設定選択手段と、 前記カラー演算設定選択手段によって前記単位として
「画面」が選択されると、前記カラー演算を行うか否か
を画面毎に設定し、「セル」が選択されるとセル毎に設
定し、「ドット」が選択されるとドット毎に設定するカ
ラー演算イネーブル設定手段とを具備することを特徴と
する画像処理装置。
9. The image data of a plurality of screens are read from the image memory, their priorities are compared, and color calculation is performed in a portion of the designated screens having the highest priority compared to other screens.
In an image processing device that generates a video signal based on the result, as a unit for setting whether to perform the color calculation,
A color calculation setting selection unit that selects any one of a “screen”, a “cell” that forms the screen, and a “dot” that forms the cell; When "Screen" is selected, whether to perform the color calculation is set for each screen, when "Cell" is selected, it is set for each cell, and when "Dot" is selected, it is set for each dot. An image processing apparatus comprising: color calculation enable setting means.
【請求項10】 前記画像データから前記セル単位で設
定されているカラー演算用ビットを検出するカラー演算
用ビット検出手段を有し、 前記カラー演算イネーブル設定手段は、 前記複数の画面の各々に対してカラー演算を行うか否か
を設定するカラー演算設定手段と、 前記カラー演算設定選択手段によって前記単位として
「セル」が選択されると、前記カラー演算設定手段によ
りカラー演算を行うよう設定された画面において、前記
カラー演算用ビットがオンであるセルに対してのみカラ
ー演算を行うよう設定し、前記単位として「ドット」が
選択されると、前記カラー演算設定手段によりカラー演
算を行うよう設定された画面において、前記カラー演算
用ビットがオンであるセルを構成するドットのうちその
画像データが所定の値と一致したドットに対してのみカ
ラー演算を行うよう設定するカラー演算イネーブル変更
手段とを有することを特徴とする請求項9記載の画像処
理装置。
10. A color operation bit detection unit for detecting a color operation bit set in the cell unit from the image data, wherein the color operation enable setting unit is provided for each of the plurality of screens. Color calculation setting means for setting whether or not color calculation is performed, and when "cell" is selected as the unit by the color calculation setting selection means, the color calculation setting means is set to perform color calculation. On the screen, when the color operation is set to be performed only for the cells for which the color operation bit is turned on and "dot" is selected as the unit, the color operation setting means is set to perform the color operation. On the screen, the image data of the dots that make up the cell with the color operation bit turned on matches the specified value. 10. The image processing apparatus according to claim 9, further comprising a color calculation enable changing unit that sets color calculation only for the selected dots.
【請求項11】 画像メモリから複数の画面についての
画像データを読み出し、それらのプライオリティを比較
すると共に、指定された画面の中で他の画面と比べてプ
ライオリティが最も高い部分においてカラー演算を行
い、その結果に基づいて映像信号を生成する画像処理装
置において、 前記カラー演算を行う際の他の画面との演算比率であっ
て複数種類設定されたカラー演算割合のうちのいずれか
1つを選択するカラー演算割合設定手段を具備すること
を特徴とする画像処理装置。
11. The image data of a plurality of screens is read from the image memory, their priorities are compared with each other, and color calculation is performed in a portion of the designated screen having the highest priority as compared with other screens. In an image processing apparatus that generates a video signal based on the result, selects one of a plurality of types of color calculation ratios, which is a calculation ratio with another screen when performing the color calculation. An image processing apparatus comprising color calculation ratio setting means.
【請求項12】 画像メモリから複数の画面についての
画像データを読み出し、それらのプライオリティを比較
すると共に、指定された画面の中で他の画面と比べてプ
ライオリティが最も高い部分においてカラー演算を行
い、その結果に基づいて映像信号を生成する画像処理装
置において、 前記指定された画面のプライオリティが最も高い部分に
おける各画面のプライオリティを判断するプライオリテ
ィ判断手段と、 前記複数の画面の各々について、他の画面との演算比率
であって複数種類設定されたカラー演算割合のうちのい
ずれか1つを選択するカラー演算割合設定手段と、 前記指定された画面のプライオリティが最も高い部分に
おいて、前記指定された画面の前記カラー演算割合と、
その部分において前記プライオリティが2番目に高いと
判断された画面の前記カラー演算割合とのいずれか一方
を選択するカラー演算割合選択手段と、 前記カラー演算割合選択手段によって選択されたカラー
演算割合に基づいて、前記指定された画面の画像データ
と、前記プライオリティが2番目に高いと判断された画
面の画像データとでカラー演算を行うカラー演算手段と
を具備することを特徴とする画像処理装置。
12. The image data of a plurality of screens is read from the image memory, their priorities are compared with each other, and color calculation is performed in a portion of the designated screens having the highest priority as compared with other screens. In an image processing device that generates a video signal based on the result, a priority determination unit that determines the priority of each screen in the portion where the priority of the specified screen is the highest, and for each of the plurality of screens, another screen And a color calculation ratio setting means for selecting any one of a plurality of types of color calculation ratios set, and the specified screen in the portion with the highest priority of the specified screen. The color calculation ratio of
Based on the color calculation ratio selection means for selecting one of the color calculation ratio of the screen for which the priority is judged to be the second highest in that portion, and the color calculation ratio selected by the color calculation ratio selection means. The image processing apparatus further comprises a color calculation unit that performs color calculation on the image data of the designated screen and the image data of the screen determined to have the second highest priority.
【請求項13】 画像メモリから複数の画面についての
画像データを読み出し、それらのプライオリティを比較
すると共に、指定された画面の中で他の画面と比べてプ
ライオリティが最も高い部分においてカラー演算を行
い、その結果に基づいて映像信号を生成する画像処理装
置において、 前記指定された画面のプライオリティが最も高い部分に
おける各画面のプライオリティを判断するプライオリテ
ィ判断手段と、 前記指定された画面のプライオリティが最も高い部分に
おいて、その部分において前記プライオリティが2番目
に高いと判断された画面の画像データと、3番目に高い
と判断された画面の画像データとでカラー演算を行い、
その結果と前記指定された画面の画像データとでカラー
演算を行うカラー演算手段とを具備することを特徴とす
る画像処理装置。
13. The image data of a plurality of screens is read from the image memory, their priorities are compared with each other, and color calculation is performed in a portion of the designated screens having the highest priority as compared with other screens. In an image processing device that generates a video signal based on the result, a priority determining unit that determines the priority of each screen in the portion where the designated screen has the highest priority, and the portion where the designated screen has the highest priority In that part, color calculation is performed on the image data of the screen determined to have the second highest priority and the image data of the screen determined to be the third highest in that portion,
An image processing apparatus comprising: a color calculation unit that performs a color calculation on the result and the image data of the designated screen.
【請求項14】 画像メモリから複数の画面についての
画像データを読み出し、それらのプライオリティを比較
すると共に、指定された画面の中で他の画面と比べてプ
ライオリティが最も高い部分においてカラー演算を行
い、その結果に基づいて映像信号を生成する画像処理装
置において、 前記画像メモリ内に、カラー演算用のラインカラー画面
を構成する各ライン毎のカラーデータをラインカラー画
面テーブルとして格納する制御手段と、 前記ラインカラー画面テーブルから読み出す前記カラー
データのアドレスを指定するアドレス指定手段と、 前記アドレス指定手段によって指定されるアドレスの前
記カラーデータを順次取り込む取り込み手段と、 前記指定された画面のプライオリティが最も高い部分に
おいて、前記取り込み手段によって取り込まれるカラー
データを前記プライオリティが2番目に高い画面の画像
データとし、前記指定された画面の画像データとカラー
演算を行うカラー演算手段とを具備することを特徴とす
る画像処理装置。
14. The image data of a plurality of screens is read from the image memory, their priorities are compared with each other, and color calculation is performed in a portion of the designated screens having the highest priority as compared with other screens. In the image processing device for generating a video signal based on the result, in the image memory, control means for storing color data for each line forming a line color screen for color calculation as a line color screen table, Addressing means for designating an address of the color data read from the line color screen table, loading means for sequentially loading the color data at the addresses designated by the addressing means, and a portion of the designated screen having the highest priority. In the above, The image processing apparatus in which the color data priority are incorporated is the second highest screen image data, characterized by comprising a color arithmetic means for performing image data and the color arithmetic of the specified screen Te.
【請求項15】 前記カラー演算手段は、 前記ラインカラー画面テーブルの先頭に格納されたカラ
ーデータのみ用いて、前記カラー演算を行うことを特徴
とする請求項14記載の画像処理装置。
15. The image processing apparatus according to claim 14, wherein the color calculation means performs the color calculation using only the color data stored at the head of the line color screen table.
【請求項16】 前記複数の画面のいずれかの画像デー
タに対し、移動回転変換処理の演算を施す移動回転変換
手段を有し、 前記制御手段は、 前記画像メモリ内に、前記移動回転変換処理の演算に用
いられる係数を表し、前記画面のドット毎に設定される
係数データと、前記ラインカラー画面データと合成して
合成データとして格納し、 前記移動回転変換手段は、 前記合成データのうちの係数データを用いて、前記移動
回転変換処理のための演算を行い、 前記カラー演算手段は、 前記合成データのうちのカラーデータを用いて前記指定
された画面と前記ラインカラー画面とのカラー演算を行
うことを特徴とする請求項14または15記載の画像処
理装置。
16. A moving / rotating converting unit for performing an operation of a moving / rotating converting process on image data of any one of the plurality of screens, wherein the control unit stores the moving / rotating converting process in the image memory. Represents the coefficient used for the calculation of, the coefficient data set for each dot of the screen and the line color screen data are combined and stored as combined data, An operation for the movement rotation conversion process is performed using coefficient data, and the color operation means performs color operation between the designated screen and the line color screen using color data of the composite data. 16. The image processing apparatus according to claim 14, which is performed.
JP6230820A 1994-09-27 1994-09-27 Image processing method and apparatus Withdrawn JPH0895552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6230820A JPH0895552A (en) 1994-09-27 1994-09-27 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6230820A JPH0895552A (en) 1994-09-27 1994-09-27 Image processing method and apparatus

Publications (1)

Publication Number Publication Date
JPH0895552A true JPH0895552A (en) 1996-04-12

Family

ID=16913798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6230820A Withdrawn JPH0895552A (en) 1994-09-27 1994-09-27 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JPH0895552A (en)

Similar Documents

Publication Publication Date Title
KR0169541B1 (en) An image processing apparatus, a method thereof, and an electronic device having an image processing apparatus
KR960006527B1 (en) Image processing device
JPH07146952A (en) Three-dimensional image processor
US7348996B2 (en) Method of and system for pixel sampling
JP3514947B2 (en) Three-dimensional image processing apparatus and three-dimensional image processing method
US6900817B2 (en) Map image processing apparatus and method for forming birds-eye view from two-dimensional map image
US6339430B1 (en) Video game machine and method for changing texture of models
JPH0659665A (en) Image processing device
US6441818B1 (en) Image processing apparatus and method of same
KR20080100854A (en) A computer readable recording medium on which a rendering processing method, a rendering processing apparatus, and a rendering processing program are recorded.
JP2001126086A (en) Method and device for displaying three-dimensional model in video game, game machine, and computer- readable recording medium storing three-dimensional model displaying program for video game
JP2003066943A (en) Image processing device and program
JPH0895552A (en) Image processing method and apparatus
JP2005107602A (en) 3D image drawing apparatus and 3D image drawing method
US6636233B1 (en) Apparatus for processing two-dimensional images and method of doing the same
US7485041B2 (en) Program for projecting an image onto a character in a game, game machine incorporating the program, and storage medium having the program stored thereon
JP2990642B2 (en) Image processing method and apparatus
JP2763481B2 (en) Image synthesizing apparatus and image synthesizing method
JP2755827B2 (en) Image processing apparatus and method, and electronic device having image processing apparatus
JP2755204B2 (en) Polyhedron display method and polyhedron display device
JP2000014932A (en) Game image display method and game device using the same
JP3252359B2 (en) Image processing device
JP3460486B2 (en) Sprite display method and apparatus
JP3514763B2 (en) Scroll screen display circuit
JPH05298455A (en) Texture mapping device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020115