JPS63104191A - Drawn picture processor - Google Patents

Drawn picture processor

Info

Publication number
JPS63104191A
JPS63104191A JP24963286A JP24963286A JPS63104191A JP S63104191 A JPS63104191 A JP S63104191A JP 24963286 A JP24963286 A JP 24963286A JP 24963286 A JP24963286 A JP 24963286A JP S63104191 A JPS63104191 A JP S63104191A
Authority
JP
Japan
Prior art keywords
data
register
address
image data
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.)
Pending
Application number
JP24963286A
Other languages
Japanese (ja)
Inventor
Yoshikazu Yokota
善和 横田
Jun Sato
潤 佐藤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP24963286A priority Critical patent/JPS63104191A/en
Publication of JPS63104191A publication Critical patent/JPS63104191A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To speedily display layout accompanied by the compression of picture data by providing a register which specifies the size of a picture element group to be reduced and a picture element to be calculated among the picture elements in the group. CONSTITUTION:A source address is transmitted to a switch 18 from a source address register 15. Simultaneously reduction pattern data is read out of a pattern RAM20. If the data is '1', the switch 18 is turned on to supply the data to a frame buffer 3. Picture data is read out and fetched to a drawn picture data register 12. Next the picture data is supplied to a drawn picture data computing element 11 to logically operate it, and the drawn picture data register 12 holds the results. If the data read out of the pattern RAM20 is '0', the switch 18 is turned off, and no data is read out. At the end of all operations regarding reduction, drawn picture data in the drawn picture data register 12 is outputted and written in the frame buffer 3.

Description

【発明の詳細な説明】 [産業上の利用分野コ この発明は、描画処理技術さらには画像メモリに供給す
る画像データの演算方式に適用して特に有効な技術に関
し1例えばグラフィック・コントローラのような描画機
能を有するLSIにおける演算方式に利用して有効な技
術に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a technique that is particularly effective when applied to a drawing processing technique and a calculation method for image data supplied to an image memory. The present invention relates to a technique that is effective for use in an arithmetic method in an LSI having a drawing function.

[従来の技術] ワードプロセッサのような表示装置を備えたマイクロコ
ンピュータシステムにおいては、表示画面上に文書の一
部しか表示できないことがある。
[Prior Art] In a microcomputer system equipped with a display device such as a word processor, only a portion of a document may be displayed on the display screen.

そのような場合にも、文書全体のレイアウトを知りたい
ことがある。そこで、文書の一部の他に全体のレイアウ
トを表示できるようにされたワードプロセッサも提供さ
れている(例えば[株]日立製作所製ワードプロセッサ
「ワードパル」等)。
Even in such cases, you may want to know the layout of the entire document. Therefore, there are word processors that are capable of displaying not only a portion of a document but also the entire layout of the document (for example, WordPal, a word processor manufactured by Hitachi, Ltd.).

上記の場合、一画面に表示できない文書全体を縮小表示
するものであるから、多忙の画像データを圧縮もしくは
間引きしてやる必要がある。
In the above case, since the entire document that cannot be displayed on one screen is displayed in a reduced size, it is necessary to compress or thin out the busy image data.

[発明が解決しようとする問題点] しかしながら、従来の表示システムに使用されるCRT
コントローラもしくはグラフィック・コントローラは、
画像メモリに書き込む画像データを演算する機能を有す
るものであっても、画像データを圧縮演算する機能まで
は有していなかった。
[Problems to be solved by the invention] However, the CRT used in the conventional display system
controller or graphics controller
Even if the device has a function of calculating image data to be written into the image memory, it does not have a function of compressing the image data.

そのため、従来の表示システムにおけるレイアウト表示
は、もっばらソフトウェア処理で実現せざるを得なかっ
た。その結果、上記のようなデータの圧縮演算処理に要
する時間が長くなる。しかも、表示画面のカラー化に伴
い、1画素当りの画像データの情報量が多くなるに従っ
てメモリのアクセス回数が多くなって、ますます実時間
にレイアウト表示を行なうことが困難になるという問題
点がある。
Therefore, layout display in conventional display systems has had to be realized entirely through software processing. As a result, the time required for the data compression calculation process as described above increases. Moreover, with the shift to color display screens, the number of memory accesses increases as the amount of image data per pixel increases, making it increasingly difficult to display layouts in real time. be.

この発明の目的は、画像データの圧縮を伴うレイアウト
表示を高速で行なえるような描画処理技術を提供するこ
とにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a drawing processing technique that can display a layout at high speed while compressing image data.

この発明の他の目的は、画像データの圧縮の際の致命的
な情報欠落を防止して、より精度の高いレイアウト表示
を行なえるような描画処理技術を提供することにある。
Another object of the present invention is to provide a drawing processing technique that can prevent fatal information loss when compressing image data and display a layout with higher accuracy.

この発明の前記ならびにそのほかの目的と新規な特徴に
ついては、本明細書の記述および添附図面から明らかに
なるであろう。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

[問題点を解決するための手段] 本願において開示される発明のうち代表的なものの概要
を説明すれば、下記のとおりである。
[Means for Solving the Problems] Representative inventions disclosed in this application will be summarized as follows.

すなわち、描画処理部に縮小対象となる画素群の大きさ
およびそれらのうち演算対象とすべき画素を指定するた
めのレジスタおよびRAMを設け、これらの情報に基づ
いて演算したソースアドレスを外部へ出力するかしない
か決定する制御信号を形成し、指定された画素の画像デ
ータを読み出して一つ一つの縮小領域についてそれらの
画像データに論理演算を施して描画データを形成するよ
うにするものである。
That is, the drawing processing unit is provided with a register and RAM for specifying the size of the pixel group to be reduced and which pixels are to be subjected to calculation among them, and the source address calculated based on this information is output to the outside. It forms a control signal that determines whether or not to perform the reduction, reads out the image data of the specified pixel, and performs logical operations on the image data for each reduced area to form drawing data. .

[作用] 上記した手段によれば、画像データの圧縮をハードウェ
アにより行なえるため、画像データの圧縮を伴うレイア
ウト表示を高速で行なえる。また、縮小対象領域のうち
演算対象を指定するためのRAMもしくはレジスタのデ
ータを書き換えることで自由度の高い画像データの演算
が行なえるようにして、画像データの圧縮の際の致命的
な情報欠落を防止して、より精度の高いレイアウト表示
を行なえるようにするという上記目的を達成することが
できる。
[Function] According to the above-described means, since image data can be compressed by hardware, layout display accompanied by image data compression can be performed at high speed. In addition, by rewriting data in RAM or registers for specifying the calculation target in the reduction target area, it is possible to perform calculations on image data with a high degree of freedom, resulting in fatal information loss when compressing image data. It is possible to achieve the above-mentioned purpose of preventing the above problems and displaying a layout with higher accuracy.

[実施例] 第2図には、本発明が適用されるグラフィックコントロ
ーラを備えた表示システムの構成例が示されている。
[Embodiment] FIG. 2 shows a configuration example of a display system equipped with a graphic controller to which the present invention is applied.

すなわち、このシステムは、マイクロプロセッサ(以下
MPUと称する)1と、システムプログラムが格納され
たシステムROM (読出し専用記憶装置)やMPUが
はたらくときのワークエリアやテキストエリアとなるワ
ーキングRA M (随時読出し書込み可能な記憶装置
iりからなるメインメモリ2.CRT表示装置9に表示
される画像データ等を記憶するフレームバッファ(画像
メモリ)3、MPU1からの指令に基づいてフレームバ
ッファ3に画像データの書込み、読出しを行なうグラフ
ィックコントローラ4、フレームバッファ3内から読み
出された画像データに基づいてRGB(レッド・グリー
ン・ブルー)信号のようなビデオ信号(映像信号)を形
成し出力する並−直列変換回路(もしくはビデオコント
ローラ)5、メインメモリ2内及びメインメモリ2とフ
レームバッファ3間で、直接データの転送を行なうDM
Aコントローラ6等から構成される。
That is, this system consists of a microprocessor (hereinafter referred to as MPU) 1, a system ROM (read-only storage device) in which system programs are stored, and a working RAM (read-only memory device) that serves as a work area and text area when the MPU works. A main memory 2 consisting of a writable storage device 2. A frame buffer (image memory) 3 that stores image data etc. displayed on the CRT display device 9. Image data is written to the frame buffer 3 based on instructions from the MPU 1. , a graphic controller 4 that performs reading, and a parallel-to-serial conversion circuit that forms and outputs a video signal such as an RGB (red, green, blue) signal based on the image data read out from the frame buffer 3. (or video controller) 5. DM that directly transfers data within the main memory 2 and between the main memory 2 and the frame buffer 3
It is composed of the A controller 6 and the like.

上記グラフィックコントローラ4は、システムバス7を
介してMPUIからコマンドを受は取ると、それを解読
してアドレス計算及び画像データの作成を行ない、それ
をローカルバス8を介してフレームバッファ3に供給し
、画像データの書込みを行なう。これとともに、グラフ
ィックコントローラ4は、アドレスカウンタのような表
示アドレス発生部を有し、上記描画処理と平行して、表
示アドレスを次々とローカルバス8上に出力してフレー
ムバッファ3から画像データを読み出し、これをCRT
表示装置9へ供給して表示画面上への表示を行なうよう
になっている。
When the graphic controller 4 receives a command from the MPUI via the system bus 7, it decodes the command, calculates an address and creates image data, and supplies it to the frame buffer 3 via the local bus 8. , writes image data. Along with this, the graphic controller 4 has a display address generation section such as an address counter, and in parallel with the above-mentioned drawing processing, outputs display addresses one after another onto the local bus 8 and reads image data from the frame buffer 3. , this is a CRT
The data is supplied to the display device 9 and displayed on the display screen.

第1図には、上記グラフィックコントローラ4の描画処
理部の構成の一実施例が示されている。
FIG. 1 shows an embodiment of the configuration of the drawing processing section of the graphic controller 4. As shown in FIG.

符号11で示されているのは、カラー情報を含む描画デ
ータを演算する描画データ演算器、また12は描画デー
タ演算器11で演算された描画データを保持する描画デ
ータレジスタである。描画データ演算器11は、OR,
ANDあるいはFORなど任意の論理演算を行なえるよ
うに構成されており、外部のフレームバッファ3から読
み出された画像データと描画データレジスタ12内のデ
ータとの論理演算を行なって、その演算結果を描画デー
タレジスタ12へ送るようにされている。
Reference numeral 11 denotes a drawing data calculator that calculates drawing data including color information, and 12 a drawing data register that holds the drawing data calculated by the drawing data calculator 11. The drawing data calculator 11 includes OR,
It is configured to be able to perform arbitrary logical operations such as AND or FOR, and performs logical operations on the image data read from the external frame buffer 3 and the data in the drawing data register 12, and uses the result of the operation. The data is sent to the drawing data register 12.

描画データレジスタ12に保持された描画データは、フ
レームバッファ3へ供給され、所望の位置に書き込まれ
る。
The drawing data held in the drawing data register 12 is supplied to the frame buffer 3 and written to a desired position.

この実施例では、MPUから供給されるコマンドを保持
するコマンドレジスタ13内のコマンドの一部をデコー
ダ14においてデコードすることによって形成された制
御信号によって、描画データ演算器11における演算の
種類が指定されるようにされている。
In this embodiment, the type of operation in the drawing data calculator 11 is specified by a control signal formed by decoding a part of the command in the command register 13 that holds commands supplied from the MPU in the decoder 14. It is designed to be

また、符号15で示されているのは、フレームバッファ
3から所望の画像データを読み出すためのアドレスが格
納されるソースアドレスレジスタ、16は上記描画デー
タ演算器11で演算された描画データを書き込むべき位
置(描画アドレス)を保持するディスティネーションア
ドレスレジスタである。
Further, reference numeral 15 indicates a source address register in which an address for reading desired image data from the frame buffer 3 is stored, and reference numeral 16 indicates a source address register in which the drawing data calculated by the drawing data calculation unit 11 is to be written. This is a destination address register that holds the position (drawing address).

ソースアドレスレジスタ15およびディスティネーショ
ンアドレスレジスタ16内のアドレスはアドレス演算器
17に供給されて更新され、形成されたアドレスがもと
のレジスタに格納される。
The addresses in the source address register 15 and destination address register 16 are supplied to the address calculator 17 and updated, and the formed address is stored in the original register.

ソースアドレスレジスタ15内のアドレスはスイッチ1
8を介して、またディスティネーションアドレスレジス
タ16内のアドレスは直接、それぞれアドレス変換部1
9に供給されて、X−Y座標で示される論理アドレスか
らフレームバッファのメモリ空間に対応した物理アドレ
ス(リニアアドレス)に変換され、フレームバッファ3
へ供給されるようにされている。
The address in source address register 15 is switch 1
8 and directly the address in the destination address register 16, respectively.
9, the logical address indicated by the X-Y coordinates is converted into a physical address (linear address) corresponding to the memory space of the frame buffer, and the frame buffer 3
It is designed to be supplied to

そして、この実施例では、内の演算対象を指定するため
のパターンRAM20と、このパターンRAM20内の
データの使用範囲即ち表示画面上での縮小処理の対象範
囲dX、dYを指定するパターンコントロールレジスタ
21が設けられている。また、上記パターンRAM20
内の次に使用するデータの位置を示すRAMポインタ制
御部22が設けられている。
In this embodiment, there is a pattern RAM 20 for specifying the calculation target in the pattern RAM 20, and a pattern control register 21 for specifying the usage range of data in the pattern RAM 20, that is, the target range dX, dY of reduction processing on the display screen. is provided. In addition, the above pattern RAM20
A RAM pointer control unit 22 is provided to indicate the position of data to be used next.

パターンコントロールレジスタ21に設定されたパター
ンRAMの使用範囲を示す値dX、dYは、アドレス演
算器17に供給されてパターンRAM用のアドレスが演
算される。演算されたアドレスはRAMポインタ制御部
22内のポインタに設定され、それに基づいてパターン
RAM20のアクセスが実行される。このときパターン
RAM20は、指定された範囲dX、dY内のデータが
左から右へ一つずつ順番に読み出され、前記スイッチ1
8ヘオン・オフ制御信号として供給される。
Values dX and dY indicating the usage range of the pattern RAM set in the pattern control register 21 are supplied to the address calculator 17 to calculate an address for the pattern RAM. The calculated address is set in a pointer in the RAM pointer control unit 22, and access to the pattern RAM 20 is executed based on it. At this time, data within the specified range dX, dY is read out one by one from left to right in the pattern RAM 20, and the switch 1
Provided as an 8-head on/off control signal.

これによって、例えば、パターンRAMから読み出され
たデータが「0」のときはスイッチ18がオフされ、ま
た、データが「1」のときはスイッチ18がオンされ、
ソースアドレスレジスタ15内のアドレスがスイッチ1
8を介してアドレス変換部19へ供給される。
As a result, for example, when the data read from the pattern RAM is "0", the switch 18 is turned off, and when the data is "1", the switch 18 is turned on,
The address in source address register 15 is switch 1
8 to the address conversion unit 19.

さらに、上記各部をシーケンシャルに制御して所望の描
画処理を実行させるべく、制御部30が設けられている
。制御部30は、特に制限されないがマイクロプログラ
ムが格納されたマイクロROMから構成されており、M
PUから供給されたコマンドによってマイクロROMが
起動され、そのコマンドに対応する処理を実行するため
の一連のマイクロ命令が次々と読み出されて、各レジス
タや演算器に対する制御信号が形成されるようになって
いる。
Further, a control section 30 is provided to sequentially control each of the above sections to execute desired drawing processing. The control unit 30 is composed of a micro ROM in which a micro program is stored, although it is not particularly limited.
The micro ROM is activated by a command supplied from the PU, and a series of micro instructions to execute the process corresponding to the command are read out one after another to form control signals for each register and arithmetic unit. It has become.

第3図には、レイアウト表示の際の画像データの縮小処
理を行なう場合の制御部30における制御手順の一例が
示されている。ただし、縮小処理を指令するコマンドが
実行される前に、ソースアドレスレジスタ15やディス
ティネーションアドレスレジスタ16およびパターンコ
ントロールレジスタ21への設定が終了しているものと
する。
FIG. 3 shows an example of a control procedure in the control unit 30 when performing a reduction process on image data when displaying a layout. However, it is assumed that the settings in the source address register 15, destination address register 16, and pattern control register 21 are completed before the command instructing the reduction process is executed.

縮小処理コマンドが入って来ると、先ずパターンRAM
の読出し位置を示すRAMポインタのリセットを行なう
。また、必要ならこのとき同時に描画データレジスタ1
2のリセットも行なう。
When a reduction processing command comes in, first the pattern RAM
The RAM pointer indicating the read position is reset. Also, if necessary, at this time, the drawing data register 1
Also perform the 2nd reset.

次に、ソースアドレスレジスタ15内からソースアドレ
スを読み出してスイッチ18へ送るとともに、パターン
RAM20からの縮小パターンデータの読出しを行なう
。ここで、パターンRAM20から読み出されたデータ
が「1」ならば、スイッチ18がオンされてソースアド
レスがアドレス変換部19へ供給され、論理アドレスか
ら物理アドレスへの変換が行なわれてから、外部のフレ
ームバッファ3へ供給される。これによってフレームバ
ッファ3から画像データが読み出されるので、これを描
画データレジスタ12に取り込む。
Next, the source address is read from the source address register 15 and sent to the switch 18, and the reduced pattern data is read from the pattern RAM 20. Here, if the data read from the pattern RAM 20 is "1", the switch 18 is turned on and the source address is supplied to the address conversion unit 19, where the logical address is converted into a physical address, and then the external is supplied to the frame buffer 3 of. As a result, the image data is read from the frame buffer 3, and this is taken into the drawing data register 12.

それから、この描画データレジスタ12内の画像データ
を描画データ演算器11に供給して、コマンドによって
指定された論理演算を行なってその結果を描画データレ
ジスタ12に保持させる。
Then, the image data in the drawing data register 12 is supplied to the drawing data arithmetic unit 11, which performs a logical operation specified by the command, and causes the drawing data register 12 to hold the result.

次に、ソースアドレスレジスタ15内のソースアドレス
をアドレス演算器17に供給してソースアドレスの更新
を行なった後、それをソースアドレスレジスタ15へ一
旦戻すとともに、パターンコントロールレジスタ21内
のアドレスをアドレス演算器17に供給してRAMポイ
ンタの更新を行なう。そして、パターンRAM20内の
データの使用範囲(dX、dY)に対応する数の画素に
ついて上記演算処理が全て終了したか否か判定し、終了
していなければ、再びソースアドレスレジスタ15およ
びパターンRAM20内のデータの読出しを行なう。
Next, the source address in the source address register 15 is supplied to the address calculator 17 to update the source address, and then it is temporarily returned to the source address register 15, and the address in the pattern control register 21 is subjected to address calculation. 17 to update the RAM pointer. Then, it is determined whether or not all of the above arithmetic processing has been completed for the number of pixels corresponding to the data use range (dX, dY) in the pattern RAM 20. If not, the source address register 15 and the pattern RAM 20 are Read the data.

しかして、パターンRAM20の読出しデータが「0」
の場合には、スイッチ18がオフされてソースアドレス
がアドレス変換部19に供給されないので、画像データ
の読出しおよび描画データの演算は行なわないで縮小対
象(dx、dY)に関する全演算処理が終了したか否か
判定する。
Therefore, the read data of the pattern RAM 20 is "0".
In this case, the switch 18 is turned off and the source address is not supplied to the address converter 19, so all arithmetic processing related to the reduction target (dx, dY) is completed without reading the image data or calculating the drawing data. Determine whether or not.

縮小対象(dX、dY)に関する全演算処理が終了する
と、レジスタ16からディスティネーションアドレスを
読み出してアドレス変換部19へ供給して、物理アドレ
スに変換してから出力してフレームバッファ3に供給す
る。これとともに、そのとき画像データレジスタ12内
に入っている描画データを出力して、フレームバッファ
3内のディスティネーションアドレスの示す位置に書き
込んでやる。それから、レジスタ16内のアドレスをア
ドレス演算器17へ供給してディスティネーションアド
レスの更新を行なって、それを再び元のレジスタ16に
戻した後1表示画面上のすべての画像データについての
縮小演算処理が終了したか否か判定し、終了するまで上
記動作を繰り返す。
When all arithmetic processing related to the reduction target (dX, dY) is completed, the destination address is read from the register 16 and supplied to the address conversion unit 19, where it is converted into a physical address, outputted, and supplied to the frame buffer 3. At the same time, the drawing data contained in the image data register 12 at that time is output and written to the position indicated by the destination address in the frame buffer 3. Then, the address in the register 16 is supplied to the address calculator 17 to update the destination address, and after returning it to the original register 16, reduction calculation processing is performed on all image data on one display screen. It is determined whether or not the process is completed, and the above operation is repeated until the process is completed.

第4図には、パターンRAM20内の3×3のマトリッ
ク領域に例えば第5図(A)のごとく斜め方向の3ビツ
トに1.1.1なるデータが書き込まれている場合にお
いて、上記制御手順に従った縮小演算処理が実行された
ときの描画データの形成のされ方が示されている。
FIG. 4 shows the control procedure described above in the case where data 1.1.1 is written in 3 bits in a diagonal direction as shown in FIG. It shows how drawing data is formed when reduction calculation processing according to the above is executed.

グラフィック・コントローラ4からは先ずフレームバッ
ファ3内の矩形領域S1の■、■、■で示す画素の画像
データを読み出すようなソースアドレスが次々と出力さ
れる。そして、これによって読み出された画像データは
、グラフィック・コントローラ4内に取り込まれ、所望
の論理演算が実行されて、演算■傘■廖■で示されるよ
うな描画データAが形成される。その描画データAはグ
ラフィック・コントローラ4からフレームバッファ3に
供給され、そのときグラフィック・コントローラ4から
出力されているディスティネーションアドレスの示す位
置に書き込まれる。
First, the graphic controller 4 successively outputs source addresses for reading out the image data of the pixels indicated by ■, ■, ■ in the rectangular area S1 in the frame buffer 3. The image data thus read out is taken into the graphic controller 4, and a desired logical operation is executed to form the drawing data A as shown by the operation ``■ `` `` `` `` . The drawing data A is supplied from the graphics controller 4 to the frame buffer 3, and written to the position indicated by the destination address output from the graphics controller 4 at that time.

同様にして、フレームバッファ3内の矩形領域S2,8
3.S4.・・・・の各画像データに関して次々と3つ
のデータの論理演算が実行されて描画データB、C,D
、・・・・が生成され、フレームバッファ3のディステ
ィネーション領域に格納されていく。その結果、例えば
第4図に示す6個の矩形領域(1つの領域は9画素から
なる)の画像デ−タが6つの画素データに圧縮されてフ
レームバッファ3に格納される。そこで、この圧縮され
た画像データを読み出してCRT表示装置上に表示させ
てやると、9分の1に縮小された画像が得られる。
Similarly, the rectangular areas S2 and 8 in the frame buffer 3
3. S4. Three data logic operations are executed one after another for each image data of... to create drawing data B, C, D.
, . . . are generated and stored in the destination area of the frame buffer 3. As a result, for example, the image data of six rectangular areas (one area consists of nine pixels) shown in FIG. 4 is compressed into six pixel data and stored in the frame buffer 3. Therefore, when this compressed image data is read out and displayed on a CRT display device, an image reduced to one-ninth is obtained.

上記の場合、縮小処理の際の論理演算の種類は表示画面
上の画像の内容(文字表示、グラフィック表示、カラー
表示等)に応じて変更してやればよい。しかも、上記実
施例では、矩形領域内の演算の対象とすべき画素を、パ
ターンRAM内のデータを書き換えることで変更するこ
とができる。
In the above case, the type of logical operation during the reduction process may be changed depending on the content of the image on the display screen (character display, graphic display, color display, etc.). Furthermore, in the above embodiment, the pixels to be subjected to calculation within the rectangular area can be changed by rewriting the data in the pattern RAM.

従って、例えば表示画面上に縦や横の線が多い画像と斜
めの線が多い画像かでパターンRAM内のデータを書き
直すと良好な結果が得られる。つまり、表示画面上に縦
や横の線が多いとき、パターンRAMのデータパターン
として第5図(B)。
Therefore, good results can be obtained by rewriting the data in the pattern RAM, for example, depending on whether the image has many vertical or horizontal lines or the image has many diagonal lines on the display screen. In other words, when there are many vertical and horizontal lines on the display screen, the data pattern in the pattern RAM is as shown in FIG. 5(B).

(C)のようなデータパターンを選択すると縦や横の線
が欠落するおそれがあるが、パターンRAMのデータパ
ターンとして第5図(A)のようなデータパターンを選
択すればこれを避けることができる。一方、表示画面上
に右上がりの斜めの線が多いときは第5図(A)のデー
タパターンよりもむしろ同図(B)のデータを使用する
とデータの欠落の少ないデータ圧縮が可能になる。この
ように1表示画面に応じてパターンRAMのデータパタ
ーンを決定することにより、良好な縮小画面が得られる
ようになる。
If you select a data pattern like (C), there is a risk that vertical or horizontal lines may be missing, but this can be avoided if you select a data pattern like Figure 5 (A) as the data pattern for the pattern RAM. can. On the other hand, when there are many diagonal lines upward to the right on the display screen, data compression with less data loss can be achieved by using the data shown in FIG. 5(B) rather than the data pattern shown in FIG. 5(A). By determining the data pattern of the pattern RAM according to one display screen in this way, a good reduced screen can be obtained.

なお、上記実施例では、描画処理部の構成の一例が示さ
れているが、グラフィックコントローラ内には上記描画
処理部とは別個にフレームバッファから画像データの読
出しを行なって表示画面上への表示させる処理を行なう
表示処理部が設けられる。
In the above embodiment, an example of the configuration of the drawing processing section is shown, but the graphics controller reads image data from the frame buffer separately from the drawing processing section and displays it on the display screen. A display processing unit is provided to perform processing to display the image.

また、第1図の描画処理部についても本発明の実施に必
要な要部のみが示されているにすぎず。
Further, regarding the drawing processing section in FIG. 1, only the essential parts necessary for implementing the present invention are shown.

その他にも、例えばフレームバッファ内の描画開始位置
Asを示すレジスタや描画領域X、Yを示すレジスタ等
が設けられる。
In addition, for example, a register indicating the drawing start position As in the frame buffer, a register indicating the drawing areas X and Y, and the like are provided.

さらに、上記実施例では、縮小処理対象となる矩形領域
の画素のうち演算対象とすべきが否がのデータを格納す
るため、2次元構成パターンRAMを設けているが、こ
れは1次元構成のレジスタとすることも可能である。
Furthermore, in the above embodiment, a two-dimensional configuration pattern RAM is provided to store data on whether or not to perform calculations on pixels in a rectangular area to be reduced, but this is different from the one-dimensional configuration pattern RAM. It is also possible to use a register.

以上説明したように上記実施例は、描画処理部に縮小対
象となる画素群の大きさおよびそれらのうち演算対象と
すべき画素を指定するためのレジスタおよびRAMを設
け、これらの情報に基づいて演算したソースアドレスを
外部へ出力するかしないか決定する制御信号を形成し、
指定された画素の画像データを読み出して一つ一つの縮
小領域についてそれらの画像データに論理演算を施して
描画データを形成するようにしたので、画像データの圧
縮をハードウェアにより行なえるという作用により、画
像データの圧縮を伴うレイアウト表示を高速で行なえる
という効果がある。
As explained above, in the above embodiment, the drawing processing unit is provided with a register and a RAM for specifying the size of a pixel group to be reduced and which pixels are to be subjected to calculation among them, and the drawing process is performed based on this information. Forms a control signal that determines whether or not to output the calculated source address to the outside,
Since the image data of specified pixels is read out and logical operations are performed on the image data for each reduced area to form drawing data, the image data can be compressed by hardware. This has the advantage that layout display accompanied by image data compression can be performed at high speed.

また、描画処理部に縮小対象となる画素群の大きさおよ
びそれらのうち演算対象とすべき画素を指定するための
レジスタおよびRAMを設け、これらの情報に基づいて
演算したソースアドレスを外部へ出力するかしないか決
定する制御信号を形成し、指定された画素の画像データ
を読み出して一つ一つの縮小領域についてそれらの画像
データに論理演算を施して描画データを形成するように
するとともに、縮小領域設定手段をRAMもしくはレジ
スタにより構成したので、RA Mもしくはレジスタの
データを書き換えることで自由度の高い画像データの演
算が行なえるという作用により、画像データの圧縮の際
の致命的な情報欠落が防止され、より精度の高いレイア
ウト表示が行なえるようになるという効果がある。
In addition, the drawing processing unit is equipped with a register and RAM for specifying the size of the pixel group to be reduced and the pixels to be calculated among them, and the source address calculated based on this information is output to the outside. It forms a control signal that determines whether or not to perform the reduction, reads the image data of the specified pixel, and performs logical operations on the image data for each reduction area to form drawing data. Since the area setting means is configured with RAM or registers, image data calculations can be performed with a high degree of freedom by rewriting data in RAM or registers, which prevents fatal information loss when compressing image data. This has the effect of preventing this problem and enabling more accurate layout display.

以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は上記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない。
Although the invention made by the present inventor has been specifically explained above based on Examples, it goes without saying that the present invention is not limited to the above Examples and can be modified in various ways without departing from the gist thereof. Nor.

[発明の効果] 本願において開示される発明のうち代表的なものによっ
て得られる効果を簡単に説明すれば下記のとおりである
[Effects of the Invention] The effects obtained by typical inventions disclosed in this application are briefly explained below.

すなわち、ワードプロセッサのような表示装置を備えた
マイクロコンピュータシステムにおいて、画像データの
圧縮を伴うレイアウト表示を高速で行なえるとともに、
画像データの圧縮の際の致命的な情報欠落を防止して、
より精度の高いレイアウト表示を行なえるようになる。
In other words, in a microcomputer system equipped with a display device such as a word processor, layout display with compression of image data can be performed at high speed, and
Preventing fatal information loss when compressing image data,
This allows for more accurate layout display.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明を描画機能を有するグラフィック・コ
ントローラに適用した場合の描画処理部の構成の一実施
例を示すブロック図、 第2図は、そのグラフィック・コントローラを用いた表
示システムの構成例を示すブロック図、第3図は、縮小
演算処理の制御手順の一例を示すフローチャート、 第4図は、縮小演算処理の作用を示す説明図、第5図(
A)、CB)、(C)は、縮小演算対象を指定するパタ
ーンRAM内のデータの一例を示す説明図である。 9・・・・CRT表示装置、20・・・・演算対象指定
手段(パターンRAM) 、21・・・・縮小領域設第
  4  図 ■−0襲○卦■
FIG. 1 is a block diagram showing an example of the configuration of a drawing processing section when the present invention is applied to a graphics controller having a drawing function, and FIG. 2 is a configuration of a display system using the graphics controller. FIG. 3 is a flowchart showing an example of the control procedure of the reduction calculation process; FIG. 4 is an explanatory diagram showing the operation of the reduction calculation process; FIG.
A), CB), and (C) are explanatory diagrams showing an example of data in a pattern RAM that specifies a reduction calculation target. 9...CRT display device, 20...Calculation target designation means (pattern RAM), 21...Reduction area setting No. 4 Figure ■-0 Attack○卦■

Claims (1)

【特許請求の範囲】 1、描画アドレスを演算するためのアドレス演算器と、
画像データを演算するための画像データ演算器と、縮小
・対象となる画素群の大きさを設定する縮小領域設定手
段と、この縮小領域設定手段により設定された縮小領域
のうち演算対象とすべき画素を指定するための演算対象
指定手段と、上記アドレス演算器で演算された描画アド
レスを保持するアドレスレジスタとを備え、上記演算対
象指定手段により指定される画素についてのみソースア
ドレスを出力して画像データを読み出し、一つ一つの縮
小領域についてそれらの画像データに論理演算を施して
描画データを形成するようにしたことを特徴とする描画
処理装置。 2、上記縮小領域設定手段は、レジスタもしくは随時書
込み読出し可能なメモリにより構成されてなることを特
徴とする特許請求の範囲第1項記載の描画処理装置。
[Claims] 1. An address calculator for calculating a drawing address;
An image data calculator for calculating image data, a reduction area setting means for setting the size of a pixel group to be reduced and targeted, and a reduction area to be subjected to calculation among the reduction areas set by this reduction area setting means. It includes a calculation target designation means for designating a pixel, and an address register that holds the drawing address calculated by the address calculation unit, and outputs a source address only for the pixel designated by the calculation target designation unit to create an image. A drawing processing device characterized in that it reads data and performs logical operations on the image data for each reduced area to form drawing data. 2. The drawing processing device according to claim 1, wherein the reduction area setting means is constituted by a register or a memory that can be written to and read from at any time.
JP24963286A 1986-10-22 1986-10-22 Drawn picture processor Pending JPS63104191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24963286A JPS63104191A (en) 1986-10-22 1986-10-22 Drawn picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24963286A JPS63104191A (en) 1986-10-22 1986-10-22 Drawn picture processor

Publications (1)

Publication Number Publication Date
JPS63104191A true JPS63104191A (en) 1988-05-09

Family

ID=17195914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24963286A Pending JPS63104191A (en) 1986-10-22 1986-10-22 Drawn picture processor

Country Status (1)

Country Link
JP (1) JPS63104191A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020042558A (en) * 2018-09-11 2020-03-19 株式会社東芝 Image drawing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020042558A (en) * 2018-09-11 2020-03-19 株式会社東芝 Image drawing device

Similar Documents

Publication Publication Date Title
US4725831A (en) High-speed video graphics system and method for generating solid polygons on a raster display
JP3227086B2 (en) TV on-screen display device
US5877769A (en) Image processing apparatus and method
JPH09245179A (en) Computer graphic device
US4747042A (en) Display control system
KR100281949B1 (en) Video drawing device
JPS63104191A (en) Drawn picture processor
JP2898482B2 (en) Computer game equipment
US5566313A (en) Apparatus for controlling the transfer of data
JP3252359B2 (en) Image processing device
JPS61130991A (en) Graphic processing method and apparatus
JP3218034B2 (en) Image processing device
JP3337385B2 (en) Display control circuit
JP3595497B2 (en) Graphic processing apparatus and graphic processing method
JP2822672B2 (en) Graphic drawing method and apparatus
JPH11259057A (en) Picture display device
JPS6232491A (en) Crt display unit
JPH0253797B2 (en)
JPH08110954A (en) Picture processing method, picture processor and circuit
JPS61285489A (en) Graphic display unit
JPH083842B2 (en) Image processing method
JPS61875A (en) Method and device for graphic processing
JPH0612054A (en) Picture display control method for graphic display device
JPS62223787A (en) Display controller
JPS63153684A (en) Picture drawing processing unit