JP4952285B2 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP4952285B2
JP4952285B2 JP2007034610A JP2007034610A JP4952285B2 JP 4952285 B2 JP4952285 B2 JP 4952285B2 JP 2007034610 A JP2007034610 A JP 2007034610A JP 2007034610 A JP2007034610 A JP 2007034610A JP 4952285 B2 JP4952285 B2 JP 4952285B2
Authority
JP
Japan
Prior art keywords
data
alpha
character
image
pattern
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.)
Expired - Fee Related
Application number
JP2007034610A
Other languages
Japanese (ja)
Other versions
JP2008198065A (en
Inventor
光弘 本目
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.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2007034610A priority Critical patent/JP4952285B2/en
Publication of JP2008198065A publication Critical patent/JP2008198065A/en
Application granted granted Critical
Publication of JP4952285B2 publication Critical patent/JP4952285B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置、画像処理方法、及びプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a program.

ゲーム、カーナビ、AVアンプなどの画面に表示される文字、図形等のキャラクタには、複数ドットで構成されたパターンデータが用いられるが、その表示の際には、複数のキャラクタを前後に重みを付けて重ね合わせるアルファブレンディング処理が行われる。また、その際、エッジ部分を滑らかに表現するため、アンチエイリアス処理が行われることもある。   Characters such as characters and figures displayed on the screen of games, car navigation systems, AV amplifiers, and the like use pattern data composed of a plurality of dots. Alpha blending processing is performed to superimpose. At that time, anti-aliasing processing may be performed in order to express the edge portion smoothly.

アルファブレンディング処理及びアンチエイリアス処理を行う画像処理装置は、表示対象のパターンデータごとに、ドットごとの混合比を示す混合比データ(以下、アルファデータ)を記憶している。そして、このアルファデータにより示される混合比で、ドットごとに、パターンデータにより示される画像データ(パターンデータに色情報を付加したもの。ドットごとのRGBデータからなるデータである。)と、当該パターンデータを表示する際その背景に表示される背景画像データ(ドットごとのRGBデータからなるデータ。)と、を混合する。これにより、前後のパターンデータを合成できるとともに、エッジ部分での色変化を緩和することができ、エッジ部分が滑らかに表現される。特許文献1には、このアンチエイリアス処理の一例が開示されている。   An image processing apparatus that performs alpha blending processing and anti-aliasing processing stores, for each pattern data to be displayed, mixing ratio data (hereinafter referred to as alpha data) indicating a mixing ratio for each dot. Then, at the mixing ratio indicated by the alpha data, image data indicated by the pattern data for each dot (color data added to the pattern data; data consisting of RGB data for each dot) and the pattern. When displaying data, background image data (data consisting of RGB data for each dot) displayed on the background is mixed. As a result, the pattern data before and after can be synthesized, the color change at the edge portion can be reduced, and the edge portion can be expressed smoothly. Patent Document 1 discloses an example of this antialiasing process.

また、特許文献2には、パターンデータに拡大処理を施す補間処理の一種であるバイリニア処理が開示されている。
特開2004−213464号公報 特開2006−18382号公報
Patent Document 2 discloses bilinear processing which is a kind of interpolation processing for performing enlargement processing on pattern data.
JP 2004-213464 A JP 2006-18382 A

しかしながら、上記従来の技術では、キャラクタごとにパターンデータとアルファデータの両方を記憶する必要があり、メモリの消費量が大きいという問題があった。   However, in the above-described conventional technique, it is necessary to store both pattern data and alpha data for each character, and there is a problem that memory consumption is large.

従って、本発明の目的の一つは、アルファブレンディング処理又はアンチエイリアス処理を行うために必要となるメモリ量を低減することを可能にする画像処理装置、画像処理方法、及びプログラムを提供することにある。   Accordingly, one of the objects of the present invention is to provide an image processing apparatus, an image processing method, and a program that can reduce the amount of memory required for performing alpha blending processing or anti-aliasing processing. .

上記課題を解決するための本発明にかかる画像処理装置は、描画対象のキャラクタが文字である場合は表示色データを取得し、描画対象のキャラクタが文字以外のものである場合は該キャラクタに対応するパターンデータを取得するパターンデータ取得手段と、複数のドットにそれぞれ対応する複数個の第1アルファデータを取得する第1アルファデータ取得手段と、複数のドットにそれぞれ対応する複数個の画像データを記憶する画像データバッファと、ドットごとに、前記パターンデータ取得手段により取得された前記表示色データまたは前記パターンデータと、処理対象ドットに対応する前記画像データとを、前記第1アルファデータに基づく混合比で混合し、前記画像データバッファを上書きする混合手段とを含むことを特徴とする。
これによれば、パターンデータを用いることなくアルファデータのみでアルファブレンディング処理又はアンチエイリアス処理を行うことができるので、パターンデータの記憶が不要になり、アルファブレンディング処理又はアンチエイリアス処理を行うために必要となるメモリ量を低減することが実現される。
An image processing apparatus according to the present invention for solving the above-described problem obtains display color data when a character to be drawn is a character , and handles the character when the character to be drawn is other than a character. Pattern data acquisition means for acquiring pattern data to be obtained, first alpha data acquisition means for acquiring a plurality of first alpha data corresponding to a plurality of dots, and a plurality of image data corresponding to the plurality of dots, respectively. The image data buffer to be stored, the display color data or the pattern data acquired by the pattern data acquisition unit for each dot, and the image data corresponding to the processing target dot are mixed based on the first alpha data Mixing means for mixing at a ratio and overwriting the image data buffer
According to this, since alpha blending processing or anti-aliasing processing can be performed only with alpha data without using pattern data, it becomes unnecessary to store pattern data, and is necessary for performing alpha blending processing or anti-aliasing processing. A reduction in the amount of memory is realized.

また、上記画像処理装置において、前記第1アルファデータ取得手段により取得された前記各第1アルファデータを補間処理により拡大してなる第2アルファデータを取得する第2アルファデータ取得手段、を含み、前記混合手段は、前記第1アルファデータに替えて、前記第2アルファデータに基づく混合比で混合するものである、こととしてもよい。
第1混合比パターンデータにより示される混合比パターンにバイリニア補間による拡大処理を施すと、従来技術にかかるパターンデータにバイリニア補間による拡大処理を施したのと同様の拡大効果が得られる。
The image processing apparatus further includes second alpha data acquisition means for acquiring second alpha data obtained by enlarging each first alpha data acquired by the first alpha data acquisition means by interpolation processing, The mixing means may be configured to perform mixing at a mixing ratio based on the second alpha data instead of the first alpha data.
When the enlargement process by bilinear interpolation is performed on the mixture ratio pattern indicated by the first mixture ratio pattern data, the same enlargement effect as that obtained by performing the enlargement process by bilinear interpolation on the pattern data according to the prior art can be obtained.

また、本発明にかかる画像処理方法は、パターンデータ取得手段と、第1アルファデータ取得手段と、複数のドットにそれぞれ対応する複数個の画像データを記憶する画像データバッファと、混合手段とを備える画像処理装置における画像処理方法であって、前記パターンデータ取得手段が、描画対象のキャラクタが文字である場合は表示色データを取得し、描画対象のキャラクタが文字以外のものである場合は該キャラクタに対応するパターンデータを取得するパターンデータ取得ステップと、前記第1アルファデータ取得手段が、複数のドットにそれぞれ対応する複数個の第1アルファデータを取得する第1アルファデータ取得ステップと、前記混合手段が、ドットごとに、前記パターンデータ取得ステップにおいて取得された前記表示色データまたは前記パターンデータと、前記画像データバッファに記憶される該各画像データのうち当該ドットに対応するものとを、前記第1アルファデータに基づく混合比で混合し、前記画像データバッファを上書きする混合ステップと、を含むことを特徴とする。 The image processing method according to the present invention includes a pattern data acquisition unit, a first alpha data acquisition unit, an image data buffer that stores a plurality of image data respectively corresponding to a plurality of dots, and a mixing unit. An image processing method in an image processing apparatus, wherein the pattern data acquisition means acquires display color data when a character to be drawn is a character, and the character when the character to be drawn is other than a character. Pattern data acquisition step for acquiring pattern data corresponding to the first alpha data acquisition step, wherein the first alpha data acquisition means acquires a plurality of first alpha data respectively corresponding to a plurality of dots, and the mixing means, for each dot, the display obtained in the pattern data acquiring step And data or the pattern data, and those corresponding to the dot of the respective image data stored in the image data buffer, and mixed at a mixing ratio based on the first alpha data, overwrites the image data buffer And a mixing step.

また、上記画像処理方法において、前記画像処理装置は、第2アルファデータ取得手段をさらに備え、前記第2アルファデータ取得手段が、前記第1アルファデータ取得ステップにおいて取得された前記各第1アルファデータを補間処理により拡大してなる第2アルファデータを取得する第2アルファデータ取得ステップ、を含み、前記混合ステップは、前記第1アルファデータに替えて、前記第2アルファデータに基づく混合比で混合するものである、こととしてもよい。 In the image processing method, the image processing apparatus further includes a second alpha data acquisition unit, and the second alpha data acquisition unit acquires the first alpha data acquired in the first alpha data acquisition step. A second alpha data acquisition step of acquiring second alpha data obtained by enlarging the first alpha data by interpolation processing, wherein the mixing step mixes at a mixing ratio based on the second alpha data instead of the first alpha data It is also possible to do that.

また、本発明にかかるプログラムは、描画対象のキャラクタが文字である場合は表示色データを取得し、描画対象のキャラクタが文字以外のものである場合は該キャラクタに対応するパターンデータを取得するパターンデータ取得手段、複数のドットにそれぞれ対応する複数個の第1アルファデータを取得する第1アルファデータ取得手段、及びドットごとに、前記パターンデータ取得手段により取得された前記表示色データまたは前記パターンデータと、複数のドットにそれぞれ対応する複数個の画像データを記憶する画像データバッファに記憶される該各画像データのうち当該ドットに対応するものとを、前記第1アルファデータに基づく混合比で混合し、前記画像データバッファを上書きする混合手段、としてコンピュータを機能させるためのプログラムである。 The program according to the present invention obtains display color data when the character to be drawn is a character, and obtains pattern data corresponding to the character when the character to be drawn is other than a character. Data display means, first alpha data acquisition means for acquiring a plurality of first alpha data respectively corresponding to a plurality of dots, and the display color data or pattern data acquired by the pattern data acquisition means for each dot And the image data stored in the image data buffer storing the plurality of image data respectively corresponding to the plurality of dots are mixed at the mixing ratio based on the first alpha data. And the computer functions as a mixing means for overwriting the image data buffer. It is a program for.

また、上記プログラムにおいて、前記第1アルファデータ取得手段により取得された前記各第1アルファデータを補間処理により拡大してなる第2アルファデータを取得する第2アルファデータ取得手段、として前記コンピュータを機能させ、前記混合手段は、前記第1アルファデータに替えて、前記第2アルファデータに基づく混合比で混合するものである、こととしてもよい。   In the above program, the computer functions as second alpha data acquisition means for acquiring second alpha data obtained by enlarging the first alpha data acquired by the first alpha data acquisition means by interpolation processing. The mixing means may be configured to mix at a mixing ratio based on the second alpha data instead of the first alpha data.

本発明の実施の形態について、図面を参照しながら説明する。
[実施の形態1]
図1は本発明の実施の形態1にかかる画像処理装置1のシステム構成を示すブロック図である。同図に示すように、画像処理装置1は、CPU(中央処理装置:Central Processing Unit)10、パターンメモリ20、CRT(ブラウン管表示装置:Cathode Ray Tube)40と接続されており、全体として画像表示装置30を構成する。また、画像処理装置1はその内部に、CPUインターフェイス50、パターンメモリインターフェイス51、スプライト属性テーブル53、レジスタ54、スプライト描画部55a、スプライト生成部56、ラインバッファ57、ピクセルデータ制御部58、CRT制御部59、クロック生成部60、3つのD/Aコンバータ(Digital / Analog コンバータ)61−1〜3を含んで構成される。
Embodiments of the present invention will be described with reference to the drawings.
[Embodiment 1]
FIG. 1 is a block diagram showing a system configuration of an image processing apparatus 1 according to the first embodiment of the present invention. As shown in the figure, the image processing apparatus 1 is connected to a CPU (Central Processing Unit) 10, a pattern memory 20, and a CRT (Cathode Ray Tube) 40, and displays an image as a whole. The apparatus 30 is configured. The image processing apparatus 1 includes a CPU interface 50, a pattern memory interface 51, a sprite attribute table 53, a register 54, a sprite drawing unit 55a, a sprite generation unit 56, a line buffer 57, a pixel data control unit 58, and a CRT control. Section 59, clock generation section 60, and three D / A converters (Digital / Analog converters) 61-1 to 61-3.

CRT40は、ブラウン管を用い、2次元座標空間上に画像データを表示する表示装置である。なお、CRT40に代えてLCD(液晶表示装置:Liquid Crystal Display)やEL(エレクトロルミネッセンス:Electro Luminescence)ディスプレイなどを用いてもよい。
上記2次元座標空間は、マトリクス状に配置された多数のドットにより構成される。マトリクスの行に相当する各ドットの組み合わせは1つの走査線を構成しており、CRT40は、この走査線ごとに、画像データの入力を受け付ける。
The CRT 40 is a display device that displays image data on a two-dimensional coordinate space using a cathode ray tube. Instead of the CRT 40, an LCD (Liquid Crystal Display), an EL (Electro Luminescence) display, or the like may be used.
The two-dimensional coordinate space is composed of a large number of dots arranged in a matrix. Each combination of dots corresponding to a matrix row constitutes one scanning line, and the CRT 40 receives input of image data for each scanning line.

画像データは、上記ドットごとの画像データ(RGBデータ)から構成される。ここで、RGBデータは、赤、緑、青の3原色それぞれの輝度を各256階調で示すデータであり、具体的には、赤、緑、青それぞれに対応する3つの8ビットデータから構成される。CRT40は、各ドットを各画像データに応じて光らせることにより画像データを表示する表示処理を行う。CRT40は、この表示処理を1走査線ずつ行う。   The image data is composed of image data (RGB data) for each dot. Here, the RGB data is data indicating the luminance of each of the three primary colors of red, green, and blue in 256 gradations, and specifically includes three 8-bit data corresponding to each of red, green, and blue. Is done. The CRT 40 performs display processing for displaying image data by causing each dot to shine according to each image data. The CRT 40 performs this display process for each scanning line.

画像処理装置1は、ドットごとのRGBデータにより構成される上記画像データを生成するための描画処理を行い、生成した該画像データをCRT40に出力する。ここでは特に、画像処理装置1は、いくつかのスプライト(画像データ)を重ねて描画することで、CRT40に出力する画像データを生成する。画像処理装置1の処理の詳細については後述する。   The image processing apparatus 1 performs a drawing process for generating the image data composed of RGB data for each dot, and outputs the generated image data to the CRT 40. Here, in particular, the image processing apparatus 1 generates image data to be output to the CRT 40 by drawing several sprites (image data) in an overlapping manner. Details of the processing of the image processing apparatus 1 will be described later.

パターンメモリ20は、描画対象のキャラクタのうち文字以外のものごとにパターンデータを格納しており、かつ、キャラクタごとに、複数のドットにそれぞれ対応する複数個の第1アルファデータを記憶する。各第1アルファデータは4ビットの数値(係数)により構成されるデータであり、それぞれ後述する混合比(スプライト(後述)に対する背景画像(後述)の割合。)を示している。
画像処理装置1のパターンメモリインターフェイス51は、パターンメモリ20と画像処理装置1の各部との間のデータ授受を制御する。
The pattern memory 20 stores pattern data for each character other than characters among the characters to be drawn, and stores a plurality of first alpha data respectively corresponding to a plurality of dots for each character. Each first alpha data is data composed of 4-bit numerical values (coefficients), and each indicates a mixing ratio (a ratio of a background image (described later) to a sprite (described later)) described later.
The pattern memory interface 51 of the image processing apparatus 1 controls data exchange between the pattern memory 20 and each part of the image processing apparatus 1.

CPU10は、画像処理装置1に対し、行うべき描画処理の具体的内容を指示する。すなわち、CPU10は、描画対象のキャラクタを特定し、画像処理装置1に描画開始を指示するとともに、該キャラクタに対応する第1アルファデータが記憶されるパターンメモリ20のアドレス位置、該キャラクタの上記2次元座標空間上の位置、及び該キャラクタの拡大縮小率を指示するためのデータ(スプライト属性データ)を、画像処理装置1に対して出力する。また、CPU10は、キャラクタが文字である場合、上記指示情報により描画を指示した該文字の色を示す表示色データ(RGBデータ)も、画像処理装置1に対して出力する。   The CPU 10 instructs the image processing apparatus 1 on the specific contents of the drawing process to be performed. That is, the CPU 10 specifies a character to be drawn, instructs the image processing apparatus 1 to start drawing, and also specifies the address position of the pattern memory 20 where the first alpha data corresponding to the character is stored, and the above 2 of the character. Data (sprite attribute data) for designating the position in the dimensional coordinate space and the enlargement / reduction ratio of the character is output to the image processing apparatus 1. When the character is a character, the CPU 10 also outputs display color data (RGB data) indicating the color of the character instructed to be drawn by the instruction information to the image processing apparatus 1.

画像処理装置1のCPUインターフェイス50は、CPU10と画像処理装置1の各部との間のデータ授受を制御する。CPU10は、このCPUインターフェイス50を介して、画像処理装置1のスプライト属性テーブル53に上記スプライト属性データを書き込むとともに、レジスタ54に上記表示色データを書き込む。   The CPU interface 50 of the image processing apparatus 1 controls data exchange between the CPU 10 and each unit of the image processing apparatus 1. The CPU 10 writes the sprite attribute data in the sprite attribute table 53 of the image processing apparatus 1 and the display color data in the register 54 via the CPU interface 50.

以下、画像処理装置1の詳細について説明する。
スプライト属性テーブル53は、CPU10から書き込まれたスプライト属性データを記憶する。また、レジスタ54は、CPU10から書き込まれた上記表示色データの他、CRT40の走査線数などの各種データを記憶する。
Details of the image processing apparatus 1 will be described below.
The sprite attribute table 53 stores sprite attribute data written from the CPU 10. The register 54 stores various data such as the number of scanning lines of the CRT 40 in addition to the display color data written from the CPU 10.

スプライト生成部56は、スプライト属性テーブル53に記憶されているスプライトの属性データに含まれるパターンメモリ20のアドレス位置を取得し、スプライト描画部55に出力する。また、スプライト描画部55が行う各処理のタイミング制御や、スプライト描画部55とスプライト属性テーブル53及びレジスタ54との間での各種データの受け渡しを行う。   The sprite generation unit 56 acquires the address position of the pattern memory 20 included in the sprite attribute data stored in the sprite attribute table 53 and outputs the acquired address position to the sprite drawing unit 55. In addition, the timing control of each process performed by the sprite drawing unit 55 and the exchange of various data between the sprite drawing unit 55 and the sprite attribute table 53 and the register 54 are performed.

スプライト描画部55は、スプライト生成部56から入力されたアドレス位置に基づいてパターンメモリ20から第1アルファデータを取得し、該第1アルファデータにより示される混合比で混合を行う処理を含む描画処理を行うことにより、画像データをCRT40の1走査線分ごとに生成し、ラインバッファ57に記憶させる。スプライト描画部55の処理については、後に詳述する。   The sprite drawing unit 55 obtains the first alpha data from the pattern memory 20 based on the address position input from the sprite generation unit 56, and performs a drawing process including a process of performing mixing at the mixing ratio indicated by the first alpha data. As a result, image data is generated for each scanning line of the CRT 40 and stored in the line buffer 57. The processing of the sprite drawing unit 55 will be described in detail later.

ラインバッファ57はラインバッファ57−1及び2から構成されるダブルバッファ構成の画像データバッファであり、スプライト描画部55が一方を用いて画像データの描画処理を行っている間、後述するピクセルデータ制御部58が他方を用いて画像データの読み出し処理を行う。すなわち、スプライト描画部55とピクセルデータ制御部58は、ラインバッファ57を、交互に切り替えつつ使用する。また、各ラインバッファ57は、CRT40の1走査線を構成するドット数分の記憶領域を備えており、各記憶領域に、各ドットに対応する画像データを記憶する。   The line buffer 57 is an image data buffer having a double buffer configuration composed of the line buffers 57-1 and 2. While the sprite rendering unit 55 performs image data rendering processing using one of them, pixel data control described later is performed. The unit 58 reads out image data using the other. That is, the sprite drawing unit 55 and the pixel data control unit 58 use the line buffer 57 while alternately switching the line buffer 57. Each line buffer 57 includes a storage area for the number of dots constituting one scanning line of the CRT 40, and stores image data corresponding to each dot in each storage area.

ピクセルデータ制御部58は、ラインバッファ57の一方からCRT40の1走査線を構成するドット数分の画像データを読み出し、CRT40に出力する。なお、CRT40は、機種によって、アナログ信号の入力を受け付けるものと、デジタル信号の入力を受け付けるものとがある。アナログ信号の入力を受け付けるCRT40を用いる場合には、ピクセルデータ制御部58が出力した各画像データはD/Aコンバータ61−1〜3によってアナログ信号に変換されてから、CRT40に入力される。なお、各D/Aコンバータ61−1〜3は、それぞれ赤色(R)、緑色(G)、青色(B)に対応している。一方、デジタル信号の入力を受け付けるCRT40を用いる場合には、ピクセルデータ制御部58が出力した画像データはそのままCRT40に入力される。   The pixel data control unit 58 reads image data for the number of dots constituting one scanning line of the CRT 40 from one of the line buffers 57 and outputs the image data to the CRT 40. There are CRTs 40 that accept analog signal input and digital signal input depending on the model. When the CRT 40 that accepts an analog signal input is used, each image data output from the pixel data control unit 58 is converted into an analog signal by the D / A converters 61-1 to 61-3 and then input to the CRT 40. Each D / A converter 61-1 to 6-3 corresponds to red (R), green (G), and blue (B), respectively. On the other hand, when the CRT 40 that accepts input of a digital signal is used, the image data output from the pixel data control unit 58 is input to the CRT 40 as it is.

CRT制御部59は、ピクセルデータ制御部58がラインバッファ57の一方から画像データを読み出し、CRT40に対して出力するタイミングと、CRT40が表示処理を行うタイミングと、を同期させる。
クロック生成部60は、クロックパルスを生成し、画像処理装置1の各部に出力する。各部は、このクロックパルスに同期して、各処理を行う。
The CRT control unit 59 synchronizes the timing at which the pixel data control unit 58 reads out image data from one of the line buffers 57 and outputs the image data to the CRT 40 and the timing at which the CRT 40 performs display processing.
The clock generation unit 60 generates a clock pulse and outputs it to each unit of the image processing apparatus 1. Each unit performs each process in synchronization with this clock pulse.

以下、スプライト描画部55の処理について、詳細に説明する。
図2は、実施の形態1にかかるスプライト描画部55の機能ブロックを示す機能ブロック図である。同図に示すように、スプライト描画部55は、アルファデータ取得部551、アルファブレンディング部553a、パターンデータ(表示色データ)取得部554を含んで構成される。
Hereinafter, the processing of the sprite drawing unit 55 will be described in detail.
FIG. 2 is a functional block diagram of functional blocks of the sprite drawing unit 55 according to the first embodiment. As shown in the figure, the sprite drawing unit 55 includes an alpha data acquisition unit 551, an alpha blending unit 553a, and a pattern data (display color data) acquisition unit 554.

スプライト描画部55は、CPU10からスプライト属性テーブル53に文字の描画指示を示すスプライト属性パターンが書き込まれたとき、各部を用いて、描画処理を開始する。   When a sprite attribute pattern indicating a character drawing instruction is written in the sprite attribute table 53 from the CPU 10, the sprite drawing unit 55 starts drawing processing using each unit.

アルファデータ取得部551は、描画対象文字についてスプライト生成部56から入力されたアドレス位置に基づき、パターンメモリ20から描画対象文字に対応する第1アルファデータを読み出すことにより、第1アルファデータを取得する第1アルファデータ取得手段として機能する。   The alpha data acquisition unit 551 acquires the first alpha data by reading the first alpha data corresponding to the drawing target character from the pattern memory 20 based on the address position input from the sprite generation unit 56 for the drawing target character. It functions as first alpha data acquisition means.

また、パターンデータ取得部554は、描画対象のキャラクタが文字である場合に、レジスタ54から描画対象文字にかかる表示色データを取得する表示色データ取得手段として機能する。なお、描画対象のキャラクタが文字以外のものである場合には、パターンデータ取得部554は、パターンメモリ20に記憶されるパターンデータを取得する。   The pattern data acquisition unit 554 functions as display color data acquisition means for acquiring display color data relating to the drawing target character from the register 54 when the drawing target character is a character. If the character to be drawn is something other than characters, the pattern data acquisition unit 554 acquires pattern data stored in the pattern memory 20.

アルファブレンディング部553aは、上記2次元座標空間のドットごとに、パターンデータ取得部554により取得された表示色データと、ラインバッファ57に記憶される各画像データのうち当該ドットに対応するものとを、アルファデータ取得部551により取得された第1アルファデータにより示される混合比で混合することにより混合データを生成する。そして、この混合データによりラインバッファ57を上書きする混合手段として機能する。   For each dot in the two-dimensional coordinate space, the alpha blending unit 553a displays the display color data acquired by the pattern data acquisition unit 554 and the image data stored in the line buffer 57 corresponding to the dot. The mixture data is generated by mixing at the mixture ratio indicated by the first alpha data acquired by the alpha data acquisition unit 551. The mixed data functions as a mixing unit that overwrites the line buffer 57.

具体的には、アルファブレンディング部553aは、赤色(R)、緑色(G)、青色(B)の色ごとに式(1)又は式(2)の計算を行うことにより、混合データを生成する。なお、第1アルファデータが0以上7以下のとき式(1)を、第1アルファデータが8以上15以下のとき式(2)を、それぞれ用いる。ただし、(fore layer)は表示色データであり、(back layer)はラインバッファ57に記憶された画像データである。このように第1アルファデータの値によって異なる式を用いるのは、4ビットの情報である第1アルファデータを用いて、17段階に分類された混合比を実現するためである。
混合データ=(fore layer)×(16−第1アルファデータ)/16+(back layer)×第1アルファデータ/16 ・・・(1)
混合データ=(fore layer)×(16−第1アルファデータ−1)/16+(back layer)×(第1アルファデータ+1)/16 ・・・(2)
Specifically, the alpha blending unit 553a generates mixed data by performing the calculation of the formula (1) or the formula (2) for each color of red (R), green (G), and blue (B). . When the first alpha data is 0 or more and 7 or less, Expression (1) is used, and when the first alpha data is 8 or more and 15 or less, Expression (2) is used. However, (for layer) is display color data, and (back layer) is image data stored in the line buffer 57. The reason why different formulas are used depending on the value of the first alpha data is to realize the mixing ratio classified into 17 levels using the first alpha data which is 4-bit information.
Mixed data = (fore layer) × (16−first alpha data) / 16 + (back layer) × first alpha data / 16 (1)
Mixed data = (fore layer) × (16−first alpha data−1) / 16 + (back layer) × (first alpha data + 1) / 16 (2)

なお、アルファブレンディング部553aは、上記混合を、CRT40の走査線ごとに、第1アルファデータの該走査線との重複部分にかかる座標について行う。
以上の処理により、アルファブレンディング部553aは、結果として、ラインバッファ57に記憶される画像データに、パターンデータ取得部554により取得された表示色データを各ドットに対応するパターンデータとする画像データ(スプライト)を混合したことになっている。
Note that the alpha blending unit 553a performs the above mixing for each scanning line of the CRT 40 with respect to the coordinates of the overlapping portion of the first alpha data with the scanning line.
As a result, the alpha blending unit 553a, as a result, uses the display color data acquired by the pattern data acquisition unit 554 as pattern data corresponding to each dot in the image data stored in the line buffer 57. Sprite).

図3は、スプライト描画部55の上記処理を説明するための説明図である。同図は、赤色(R)、緑色(G)、青色(B)のうちの1色についての上記処理を示している。図3(a)は、パターンデータ取得部554により取得される表示色データを示している。同図に示した数値は輝度である。また、図3(b)は、アルファデータ取得部551により取得される4×4ドット分の第1アルファデータを示している。同図の四角形はそれぞれドットを示しており、それぞれに対応する数値は第1アルファデータである。図3(c)は、ラインバッファ57が記憶している4×4ドット分の画像データを示している。同図の四角形もそれぞれドットを示しており、それぞれに対応する数値は輝度である。なお、図3(c)は、走査線4本分を並べて示したものである。   FIG. 3 is an explanatory diagram for explaining the above-described processing of the sprite drawing unit 55. The figure shows the above processing for one color of red (R), green (G), and blue (B). FIG. 3A shows display color data acquired by the pattern data acquisition unit 554. The numerical value shown in FIG. FIG. 3B shows the first alpha data for 4 × 4 dots acquired by the alpha data acquisition unit 551. Each square in the figure represents a dot, and the numerical value corresponding to each square is the first alpha data. FIG. 3C shows image data for 4 × 4 dots stored in the line buffer 57. The squares in the figure also indicate dots, and the numerical value corresponding to each is luminance. FIG. 3C shows four scanning lines side by side.

図3(d)は、図3(a)に示した表示色データと、図3(c)に示した画像データと、を図3(b)に示した第1アルファデータにより示される混合比でドットごとに混合してなる各混合データ(アルファブレンディング部553aの混合結果)を示している。例えば、左から2番目かつ上から3番目のドットに注目すると、式(1)は以下の式(3)のように計算される。
混合データ=100×(16−7)/16+50×7/16≒78 ・・・(3)
FIG. 3 (d) shows the display color data shown in FIG. 3 (a) and the image data shown in FIG. 3 (c), with the mixing ratio indicated by the first alpha data shown in FIG. 3 (b). FIG. 6 shows each mixing data (mixing result of the alpha blending unit 553a) obtained by mixing each dot. For example, when attention is paid to the second dot from the left and the third dot from the top, Equation (1) is calculated as Equation (3) below.
Mixed data = 100 × (16−7) / 16 + 50 × 7 / 16≈78 (3)

一方、右下隅のドットに注目すると、式(2)は以下の式(4)のように計算される。この式(4)によって算出される混合データは画像データと同一であるが、これは、混合比が1(第1アルファデータが15)であり、(fore layer)の第1アルファデータに対する寄与が0%であるためである。
混合データ=100×(16−16)/16+50×16/16=50 ・・・(4)
On the other hand, when attention is paid to the dot in the lower right corner, the equation (2) is calculated as the following equation (4). The mixed data calculated by the equation (4) is the same as the image data. This is because the mixing ratio is 1 (first alpha data is 15), and the contribution to the first alpha data of (fore layer) is This is because it is 0%.
Mixed data = 100 × (16−16) / 16 + 50 × 16/16 = 50 (4)

以上説明したように、文字に関し、スプライト描画部55の処理で必要となるのは表示色データのみであるので、パターンメモリ20にパターンデータを記憶しておく必要がなくなる。   As described above, since only the display color data is required for the processing of the sprite drawing unit 55 for characters, it is not necessary to store the pattern data in the pattern memory 20.

[実施の形態2]
実施の形態2は、実施の形態1のスプライト描画部55の内部を変更したものである。図4は、実施の形態2にかかるスプライト描画部55の機能ブロックを示す概略ブロック図である。同図に示すように、スプライト描画部55は、アルファデータ取得部551とアルファブレンディング部553aの間にバイリニア処理部555bを含んだものとなっている。以下、実施の形態1との相違点について説明する。
[Embodiment 2]
In the second embodiment, the inside of the sprite drawing unit 55 of the first embodiment is changed. FIG. 4 is a schematic block diagram illustrating functional blocks of the sprite drawing unit 55 according to the second embodiment. As shown in the figure, the sprite drawing unit 55 includes a bilinear processing unit 555b between the alpha data acquisition unit 551 and the alpha blending unit 553a. Hereinafter, differences from the first embodiment will be described.

バイリニア処理部555bは、アルファデータ取得部551が取得した第1アルファデータを補間処理により拡大してなる第2アルファデータを取得する第2アルファデータ取得手段として機能する。アルファブレンディング部553aは、この第2アルファデータにより示される混合比で混合を行う。   The bilinear processing unit 555b functions as a second alpha data acquisition unit that acquires second alpha data obtained by enlarging the first alpha data acquired by the alpha data acquisition unit 551 by interpolation processing. The alpha blending unit 553a performs mixing at the mixing ratio indicated by the second alpha data.

すなわち、拡大前の段階では、各第1アルファデータは、それぞれ上記2次元座標空間のドットが位置している座標(以下、ドット座標という。)に対応している。しかし、拡大後になると、各第1アルファデータとドット座標との対応付けが崩れ、対応するアルファデータがないドット座標が存在することになってしまうため、このままではドットごとの混合ができなくなる。そこで、バイリニア処理部555bは、各ドット座標に対応するアルファデータ(第2アルファデータ)を補間処理により生成し、アルファブレンディング部553aに出力するものである。以下、詳細に説明する。   That is, before the enlargement, each first alpha data corresponds to the coordinates where the dots in the two-dimensional coordinate space are located (hereinafter referred to as dot coordinates). However, after the enlargement, the correspondence between the first alpha data and the dot coordinates is lost, and there are dot coordinates that do not have corresponding alpha data. Therefore, the bilinear processing unit 555b generates alpha data (second alpha data) corresponding to each dot coordinate by interpolation processing, and outputs it to the alpha blending unit 553a. Details will be described below.

図5はバイリニア処理部555bによって、第1アルファデータから第2アルファデータを生成する原理を説明するための図である。ここで、同図中×印を第2アルファデータに対応する座標とし、A,B,C,Dをそれぞれ第1アルファデータに対応する座標とし、xdをAからXまでの水平距離、ydをAからXまでの垂直距離とすると、第2アルファデータは、
第2アルファデータ=(1−xd)×(1−yd)×A+xd×(1−yd)×B+(1−xd)×yd×C+xd×yd×D ・・・(5)
の計算を行うことにより求めることができる。
なお、式(5)の計算により第2アルファデータが整数値とならない場合は、小数点以下を四捨五入または切り捨て、もしくは切り上げすることにより整数値とすればよい。
FIG. 5 is a diagram for explaining the principle of generating the second alpha data from the first alpha data by the bilinear processing unit 555b. Here, in the figure, the x mark is the coordinate corresponding to the second alpha data, A, B, C, and D are the coordinates corresponding to the first alpha data, xd is the horizontal distance from A to X, and yd is Assuming a vertical distance from A to X, the second alpha data is
Second alpha data = (1−xd) × (1−yd) × A + xd × (1−yd) × B + (1−xd) × yd × C + xd × yd × D (5)
Can be obtained by performing the following calculation.
If the second alpha data does not become an integer value by the calculation of the equation (5), the integer value may be obtained by rounding off or rounding up or down after the decimal point.

アルファブレンディング部553aは、ドットごとに、パターンデータ取得部554により取得された表示色データと、ラインバッファ57に記憶される各画像データのうち当該ドットに対応するものとを、バイリニア処理部555bから入力された第2アルファデータにより示される混合比で混合することにより混合データを生成する。   For each dot, the alpha blending unit 553a displays the display color data acquired by the pattern data acquisition unit 554 and the image data stored in the line buffer 57 corresponding to the dot from the bilinear processing unit 555b. Mixing data is generated by mixing at the mixing ratio indicated by the input second alpha data.

以上説明したように、画像表示装置30によれば、拡大処理後の混合比パターンに基づいて、各ドットと1対1に対応する各第2アルファデータを生成しているので、拡大処理後も、アルファブレンディング部553aによる混合が可能になる。   As described above, according to the image display device 30, the second alpha data corresponding to each dot one-to-one is generated based on the mixture ratio pattern after the enlargement process. , Mixing by the alpha blending unit 553a becomes possible.

[実施の形態3]
実施の形態3は、実施の形態2のスプライト描画部55の内部を変更するとともに、パターンメモリ20に、複数のドットにそれぞれ対応する複数個のパターンデータを記憶するようにしたものである。各パターンデータは1ビットの数値により構成されるデータであり、「1」が色付きドットであることを、「0」が透明ドットであることを、それぞれ示している。また、パターンメモリ20は、描画対象の文字ごとに、上記各パターンデータを記憶する。
[Embodiment 3]
In the third embodiment, the inside of the sprite drawing unit 55 of the second embodiment is changed, and a plurality of pattern data respectively corresponding to a plurality of dots is stored in the pattern memory 20. Each pattern data is data composed of a 1-bit numerical value, which indicates that “1” is a colored dot and “0” is a transparent dot. The pattern memory 20 stores the pattern data for each character to be drawn.

図6は、本実施の形態にかかるスプライト描画部55の機能ブロックを示す概略ブロック図である。同図に示すように、本実施の形態にかかるスプライト描画部55は、実施の形態2にかかるスプライト描画部55において、アルファデータ取得部551、バイリニア処理部555b、及びアルファブレンディング部553aを、それぞれパターンデータ取得部556、バイリニア処理部555c、及びアルファブレンディング部553cで置き換えたものとなっている。以下、実施の形態2との相違点について説明する。   FIG. 6 is a schematic block diagram showing functional blocks of the sprite drawing unit 55 according to the present embodiment. As shown in the figure, the sprite rendering unit 55 according to the present embodiment includes an alpha data acquisition unit 551, a bilinear processing unit 555b, and an alpha blending unit 553a in the sprite rendering unit 55 according to the second embodiment. The pattern data acquisition unit 556, the bilinear processing unit 555c, and the alpha blending unit 553c are replaced. Hereinafter, differences from the second embodiment will be described.

パターンデータ取得部556は、描画対象文字についてスプライト生成部56から入力されたアドレス位置に基づき、パターンメモリ20から描画対象文字に対応するパターンデータを読み出すことにより、パターンデータを取得するパターンデータ取得手段として機能する。   The pattern data acquisition unit 556 reads pattern data corresponding to the drawing target character from the pattern memory 20 based on the address position input from the sprite generation unit 56 for the drawing target character, thereby acquiring pattern data. Function as.

バイリニア処理部555cは、パターンデータ取得部556により取得されたパターンデータを補間処理により拡大してなるアルファデータを取得するアルファデータ取得手段として機能する。具体的には、パターンデータ取得部556からパターンデータを取得するとともに、スプライト属性テーブル53から拡大率を取得する。そして、パターンデータの各ドットを反転させた上で、これらに式(5)を適用することにより各ドット座標にそれぞれ対応する複数個のアルファデータを生成し、アルファブレンディング部553cに出力する。バイリニア処理部555cの処理は、入力されるデータがパターンデータである以外は、バイリニア処理部555bのものと同様である。ただし、本実施の形態におけるアルファデータは、4ビット(0〜15)の数値ではなく、小数値となる。   The bilinear processing unit 555c functions as an alpha data acquisition unit that acquires alpha data obtained by enlarging the pattern data acquired by the pattern data acquisition unit 556 by interpolation processing. Specifically, the pattern data is acquired from the pattern data acquisition unit 556 and the enlargement ratio is acquired from the sprite attribute table 53. Then, after inverting each dot of the pattern data, a plurality of alpha data corresponding to each dot coordinate is generated by applying the formula (5) to these, and output to the alpha blending unit 553c. The processing of the bilinear processing unit 555c is the same as that of the bilinear processing unit 555b except that the input data is pattern data. However, the alpha data in the present embodiment is not a 4-bit (0-15) value but a decimal value.

アルファブレンディング部553cは、アルファブレンディング部553aと同様の処理を行い、混合手段として機能するが、式(1)及び式(2)に代えて、下記の式(6)を用いる。これは、アルファデータが小数値であるためである。
混合データ=(fore layer)×(1−アルファデータ)+(back layer)×アルファデータ ・・・(6)
The alpha blending unit 553c performs the same processing as the alpha blending unit 553a and functions as a mixing unit. However, the following formula (6) is used instead of the formulas (1) and (2). This is because alpha data is a decimal value.
Mixed data = (fore layer) × (1−alpha data) + (back layer) × alpha data (6)

図7は、スプライト描画部55の上記処理を説明するための説明図である。同図は、赤色(R)、緑色(G)、青色(B)のうちの1色についての上記処理を示している。図7(a),(e)は、いずれも図3(a)と同じ表示色データである。また、図7(c)は図3(c)と同じ画像データであり、図7(g)は、ラインバッファ57が記憶している7×7ドット分の背景画像データを示している。また、図7(b)は、パターンデータ取得部556により取得されたパターンデータの各ドットを反転させたものを示している。さらに、図7(f)は、バイリニア処理部555cが生成したアルファデータを示している。同図に示すアルファデータは、図7(b)に示したパターンデータに基づいて生成されており、拡大率は4/7である。また、同図中の下線を引いた数値は、拡大後にちょうどドット座標上に位置したアルファデータ以外のアルファデータである。   FIG. 7 is an explanatory diagram for explaining the above processing of the sprite drawing unit 55. The figure shows the above processing for one color of red (R), green (G), and blue (B). 7A and 7E are the same display color data as in FIG. 3A. FIG. 7C shows the same image data as FIG. 3C, and FIG. 7G shows the background image data of 7 × 7 dots stored in the line buffer 57. FIG. 7B shows an inverted version of each dot of the pattern data acquired by the pattern data acquisition unit 556. Further, FIG. 7F shows alpha data generated by the bilinear processing unit 555c. The alpha data shown in the figure is generated based on the pattern data shown in FIG. 7B, and the enlargement ratio is 4/7. Also, the numerical value with the underline in the figure is alpha data other than alpha data located on the dot coordinates after enlargement.

図7(d)は、式(6)に基づき、図7(a)に示した表示色データと、図7(c)に示した画像データと、を図7(b)に示したパターンデータにより示される混合比でドットごとに混合してなる混合データ(アルファブレンディング部553cの混合結果)を示している。   FIG. 7D shows, based on the equation (6), the display color data shown in FIG. 7A and the image data shown in FIG. 7C, the pattern data shown in FIG. 7B. The mixing data (mixing result of the alpha blending unit 553c) obtained by mixing for each dot at the mixing ratio indicated by is shown.

一方、図7(h)は、式(6)に基づき、図7(e)に示した表示色データと、図7(g)に示した画像データと、を図7(f)に示したパターンデータに基づいて構成されたアルファデータにより示される混合比でドットごとに混合してなる混合データ(アルファブレンディング部553cの混合結果)を示している。このように、本実施の形態によれば、拡大時にアンチエイリアス効果が得られる。   On the other hand, FIG. 7H shows the display color data shown in FIG. 7E and the image data shown in FIG. 7G based on the equation (6) in FIG. The mixed data (mixing result of the alpha blending unit 553c) obtained by mixing for each dot at the mixing ratio indicated by the alpha data configured based on the pattern data is shown. Thus, according to the present embodiment, an anti-aliasing effect can be obtained at the time of enlargement.

以上説明したように、実施の形態3によれば、例えばユーザが表示する文字の大きさの拡大を指示したときに、パターンデータからアルファデータを生成することができ、これをアルファブレンディング部553cで用いる混合比とすることができる。すなわち、アルファデータに代えて1ビット/ドットのパターンデータを記憶しておくことでアンチエイリアス処理を行うことができるので、必要なメモリ量をさらに低減することが実現されている。   As described above, according to the third embodiment, for example, when the user gives an instruction to enlarge the size of the character to be displayed, alpha data can be generated from the pattern data, and this can be performed by the alpha blending unit 553c. The mixing ratio used can be set. That is, since anti-aliasing processing can be performed by storing 1-bit / dot pattern data instead of alpha data, it is possible to further reduce the amount of memory required.

例えばキャラクタ全体を半透明にするためにアルファブレンディング処理を行う場合には複数ビット/ドットのアルファデータを記憶しなければならないが、アンチエイリアス処理のためだけにアルファブレンディング処理を行う場合には、実施の形態3で示したように、1ビット/ドットのパターンデータをアルファデータの代わりに記憶しておくことができる。そして、このようにすることにより、必要なメモリ量を削減することができる。   For example, when alpha blending processing is performed to make the entire character translucent, multi-bit / dot alpha data must be stored. However, when alpha blending processing is performed only for anti-aliasing processing, As shown in the third embodiment, 1-bit / dot pattern data can be stored instead of alpha data. And by doing in this way, a required memory amount can be reduced.

以上本発明の実施の形態について説明したが、本発明はこうした実施の形態に何等限定されるものではなく、本発明は、その要旨を逸脱しない範囲において、種々なる態様で実施され得ることは勿論である。   Although the embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and the present invention can of course be implemented in various forms without departing from the scope of the present invention. It is.

例えば、各画像処理ユニットの機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより、上記各処理を行ってもよい。
ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものであってもよい。また、この「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、フラッシュメモリ等の書き込み可能な不揮発性メモリ、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。
さらに、「コンピュータ読み取り可能な記録媒体」には、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
さらに、上記プログラムは、上述した各機能の一部を実現するためのものであってもよい。さらに、上述した各機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。
For example, a program for realizing the function of each image processing unit is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into a computer system and executed, whereby the above-described processes are performed. You may go.
Here, the “computer system” may include an OS and hardware such as peripheral devices. Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” means a flexible disk, a magneto-optical disk, a ROM, a writable nonvolatile memory such as a flash memory, a portable medium such as a CD-ROM, a hard disk built in a computer system, etc. This is a storage device.
Furthermore, the “computer-readable recording medium” includes a volatile memory (for example, DRAM (DRAM) in a computer system that becomes a server or a client when a program is transmitted through a network such as the Internet or a communication line such as a telephone line. Dynamic Random Access Memory)), etc., which hold programs for a certain period of time.
The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
Further, the program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve each function mentioned above in combination with the program already recorded on the computer system, what is called a difference file (difference program) may be sufficient.

本発明の実施の形態1にかかる画像処理装置のシステム構成を示すブロック図である。1 is a block diagram showing a system configuration of an image processing apparatus according to a first embodiment of the present invention. 本発明の実施の形態1にかかるスプライト描画部の機能ブロックを示すブロック図である。It is a block diagram which shows the functional block of the sprite drawing part concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかるスプライト描画部の処理を説明するための説明図である。It is explanatory drawing for demonstrating the process of the sprite drawing part concerning Embodiment 1 of this invention. 本発明の実施の形態2にかかるスプライト描画部の機能ブロックを示すブロック図である。It is a block diagram which shows the functional block of the sprite drawing part concerning Embodiment 2 of this invention. 本発明の実施の形態2にかかるバイリニア処理の説明図である。It is explanatory drawing of the bilinear process concerning Embodiment 2 of this invention. 本発明の実施の形態3にかかるスプライト描画部の機能ブロックを示すブロック図である。It is a block diagram which shows the functional block of the sprite drawing part concerning Embodiment 3 of this invention. 本発明の実施の形態3にかかるスプライト描画部の処理を説明するための説明図である。It is explanatory drawing for demonstrating the process of the sprite drawing part concerning Embodiment 3 of this invention.

符号の説明Explanation of symbols

1 画像処理装置、10 CPU、20 パターンメモリ、30 画像表示装置、50 CPUインターフェイス、51 パターンメモリインターフェイス、53 スプライト属性テーブル、54 レジスタ、55 スプライト描画部、56 スプライト生成部、57 ラインバッファ、58 ピクセルデータ制御部、59 CRT制御部、60 クロック生成部、61 A/Dコンバータ、551 アルファデータ取得部、553a,553c アルファブレンディング部、554,556 パターンデータ取得部、555b,555c バイリニア処理部。   1 image processing device, 10 CPU, 20 pattern memory, 30 image display device, 50 CPU interface, 51 pattern memory interface, 53 sprite attribute table, 54 register, 55 sprite drawing unit, 56 sprite generation unit, 57 line buffer, 58 pixels Data control unit, 59 CRT control unit, 60 clock generation unit, 61 A / D converter, 551 alpha data acquisition unit, 553a, 553c alpha blending unit, 554, 556 pattern data acquisition unit, 555b, 555c Bilinear processing unit.

Claims (6)

描画対象のキャラクタが文字である場合は表示色データを取得し、描画対象のキャラクタが文字以外のものである場合は該キャラクタに対応するパターンデータを取得するパターンデータ取得手段と、
複数のドットにそれぞれ対応する複数個の第1アルファデータを取得する第1アルファデータ取得手段と、
複数のドットにそれぞれ対応する複数個の画像データを記憶する画像データバッファと、
ドットごとに、前記パターンデータ取得手段により取得された前記表示色データまたは前記パターンデータと、処理対象ドットに対応する前記画像データとを、前記第1アルファデータに基づく混合比で混合し、前記画像データバッファを上書きする混合手段と
を含むことを特徴とする画像処理装置。
Pattern data acquisition means for acquiring display color data when the character to be drawn is a character, and acquiring pattern data corresponding to the character when the character to be drawn is other than a character ;
First alpha data acquisition means for acquiring a plurality of first alpha data respectively corresponding to a plurality of dots;
An image data buffer for storing a plurality of image data respectively corresponding to a plurality of dots;
For each dot, the display color data or the pattern data acquired by the pattern data acquisition unit and the image data corresponding to the processing target dot are mixed at a mixing ratio based on the first alpha data, and the image An image processing apparatus comprising: mixing means for overwriting a data buffer.
請求項1に記載の画像処理装置において、
前記第1アルファデータ取得手段により取得された前記各第1アルファデータを補間処理により拡大してなる第2アルファデータを取得する第2アルファデータ取得手段、
を含み、
前記混合手段は、前記第1アルファデータに替えて、前記第2アルファデータに基づく混合比で混合するものである、
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
Second alpha data acquisition means for acquiring second alpha data obtained by enlarging each first alpha data acquired by the first alpha data acquisition means by interpolation processing;
Including
The mixing means mixes at a mixing ratio based on the second alpha data instead of the first alpha data.
An image processing apparatus.
パターンデータ取得手段と、第1アルファデータ取得手段と、複数のドットにそれぞれ対応する複数個の画像データを記憶する画像データバッファと、混合手段とを備える画像処理装置における画像処理方法であって、
前記パターンデータ取得手段が、描画対象のキャラクタが文字である場合は表示色データを取得し、描画対象のキャラクタが文字以外のものである場合は該キャラクタに対応するパターンデータを取得するパターンデータ取得ステップと、
前記第1アルファデータ取得手段が、複数のドットにそれぞれ対応する複数個の第1アルファデータを取得する第1アルファデータ取得ステップと、
前記混合手段が、ドットごとに、前記パターンデータ取得ステップにおいて取得された前記表示色データまたは前記パターンデータと、前記画像データバッファに記憶される該各画像データのうち当該ドットに対応するものとを、前記第1アルファデータに基づく混合比で混合し、前記画像データバッファを上書きする混合ステップと、
を含むことを特徴とする画像処理方法。
An image processing method in an image processing apparatus comprising pattern data acquisition means, first alpha data acquisition means, an image data buffer for storing a plurality of image data corresponding to a plurality of dots, and a mixing means,
The pattern data obtaining means obtains display color data when the character to be drawn is a character, and obtains pattern data corresponding to the character when the character to be drawn is other than a character. Steps,
A first alpha data acquisition step in which the first alpha data acquisition means acquires a plurality of first alpha data respectively corresponding to a plurality of dots;
It said mixing means, for each dot, the display color data or the pattern data acquired in the pattern data acquiring step, and those corresponding to the dot of the respective image data stored in the image data buffer Mixing at a mixing ratio based on the first alpha data and overwriting the image data buffer;
An image processing method comprising:
請求項3に記載の画像処理方法において、
前記画像処理装置は、第2アルファデータ取得手段をさらに備え、
前記第2アルファデータ取得手段が、前記第1アルファデータ取得ステップにおいて取得された前記各第1アルファデータを補間処理により拡大してなる第2アルファデータを取得する第2アルファデータ取得ステップ、
を含み、
前記混合ステップは、前記第1アルファデータに替えて、前記第2アルファデータに基づく混合比で混合するものである、
ことを特徴とする画像処理方法。
The image processing method according to claim 3.
The image processing apparatus further includes second alpha data acquisition means,
A second alpha data acquisition step in which the second alpha data acquisition means acquires second alpha data obtained by enlarging the first alpha data acquired in the first alpha data acquisition step by interpolation processing;
Including
The mixing step is to mix with a mixing ratio based on the second alpha data instead of the first alpha data.
An image processing method.
描画対象のキャラクタが文字である場合は表示色データを取得し、描画対象のキャラクタが文字以外のものである場合は該キャラクタに対応するパターンデータを取得するパターンデータ取得手段、
複数のドットにそれぞれ対応する複数個の第1アルファデータを取得する第1アルファデータ取得手段、及び
ドットごとに、前記パターンデータ取得手段により取得された前記表示色データまたは前記パターンデータと、複数のドットにそれぞれ対応する複数個の画像データを記憶する画像データバッファに記憶される該各画像データのうち当該ドットに対応するものとを、前記第1アルファデータに基づく混合比で混合し、前記画像データバッファを上書きする混合手段、
としてコンピュータを機能させるためのプログラム。
Pattern data acquisition means for acquiring display color data when the character to be drawn is a character, and acquiring pattern data corresponding to the character when the character to be drawn is other than a character ;
First alpha data acquisition means for acquiring a plurality of first alpha data respectively corresponding to a plurality of dots; and for each dot, the display color data or the pattern data acquired by the pattern data acquisition means; The image data corresponding to the dots among the image data stored in the image data buffer storing a plurality of image data respectively corresponding to the dots is mixed at a mixing ratio based on the first alpha data, and the image Mixing means to overwrite the data buffer,
As a program to make the computer function as.
請求項5に記載のプログラムにおいて、
前記第1アルファデータ取得手段により取得された前記各第1アルファデータを補間処理により拡大してなる第2アルファデータを取得する第2アルファデータ取得手段、
として前記コンピュータを機能させ、
前記混合手段は、前記第1アルファデータに替えて、前記第2アルファデータに基づく混合比で混合するものである、
ことを特徴とするプログラム。
The program according to claim 5,
Second alpha data acquisition means for acquiring second alpha data obtained by enlarging each first alpha data acquired by the first alpha data acquisition means by interpolation processing;
Function the computer as
The mixing means mixes at a mixing ratio based on the second alpha data instead of the first alpha data.
A program characterized by that.
JP2007034610A 2007-02-15 2007-02-15 Image processing apparatus, image processing method, and program Expired - Fee Related JP4952285B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007034610A JP4952285B2 (en) 2007-02-15 2007-02-15 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007034610A JP4952285B2 (en) 2007-02-15 2007-02-15 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2008198065A JP2008198065A (en) 2008-08-28
JP4952285B2 true JP4952285B2 (en) 2012-06-13

Family

ID=39756926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007034610A Expired - Fee Related JP4952285B2 (en) 2007-02-15 2007-02-15 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP4952285B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5515487B2 (en) * 2009-07-29 2014-06-11 ヤマハ株式会社 Image processing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4307763B2 (en) * 2001-06-22 2009-08-05 株式会社ルネサステクノロジ Image processing system and car navigation system
JP4466234B2 (en) * 2004-06-30 2010-05-26 ヤマハ株式会社 Image processing method and apparatus

Also Published As

Publication number Publication date
JP2008198065A (en) 2008-08-28

Similar Documents

Publication Publication Date Title
US4225861A (en) Method and means for texture display in raster scanned color graphic
US6373462B1 (en) Method and apparatus for displaying higher color resolution on a hand-held LCD device
US5736981A (en) Display control apparatus
JPH0836371A (en) Display controller
US6369827B1 (en) Method and apparatus for displaying higher color resolution on a hand-held LCD device
JP4952285B2 (en) Image processing apparatus, image processing method, and program
US20110025917A1 (en) Video processing device
JP2005077522A (en) Image processor and image processing method
JP4570025B2 (en) Controller driver and display panel driving method
JP4307763B2 (en) Image processing system and car navigation system
JP4698709B2 (en) Data creation device, data creation method, data creation program, drawing device, drawing method, drawing program, and computer-readable recording medium
JP3578533B2 (en) Image display control device
JP2005215252A (en) Image processing method and device
JP2008198066A (en) Image processor, image processing method, and program
JP2005221853A (en) Controller driver, mobile terminal, and display panel driving method
US7050064B2 (en) Method and apparatus for displaying higher color resolution on a hand-held LCD device
JP3481913B2 (en) Image processing device
JP2009109708A (en) Projection system, information processing apparatus and projector
US20130321449A1 (en) Window combining device
JP3872056B2 (en) Drawing method
JP3324580B2 (en) Image processing device
CN101714072B (en) For the treatment of the method and apparatus of the pixel planes of expression visual information
JP2006227498A (en) Image processing system
JP3252359B2 (en) Image processing device
JPH07210133A (en) Picture display circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110802

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111003

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120214

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120227

R150 Certificate of patent or registration of utility model

Ref document number: 4952285

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150323

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees