JPH0731497B2 - Image memory input / output control device - Google Patents
Image memory input / output control deviceInfo
- Publication number
- JPH0731497B2 JPH0731497B2 JP62163938A JP16393887A JPH0731497B2 JP H0731497 B2 JPH0731497 B2 JP H0731497B2 JP 62163938 A JP62163938 A JP 62163938A JP 16393887 A JP16393887 A JP 16393887A JP H0731497 B2 JPH0731497 B2 JP H0731497B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- image memory
- rectangular area
- write
- coordinate
- 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 - Lifetime
Links
Landscapes
- Digital Computer Display Output (AREA)
- Memory System (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Input (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、画像メモリを有するグラフイツクCRTデイス
プレイ装置において、画像メモリ内の矩形領域の処理を
高速に行なうことのできる、画像メモリ入出力制御装置
に関する。The present invention relates to an image memory input / output control device capable of high-speed processing of a rectangular area in an image memory in a graphic CRT display device having an image memory. Regarding
従来、この種のデイスプレイ装置としては、例えば第9
図に示すものが知られている。同図において、1は種々
の画像を処理する画像処理装置、2は画像メモリの入出
力制御部、3は画像メモリ、4は表示用アドレス発生
部、5は画像メモリより読み出した表示用データを処理
する部分、6はCRTモニタ、7はアクセス用X,Y座標、8
はアクセス用制御信号、10は表示用X,Y座標、11は画像
メモリアドレス、12は画像メモリ制御信号、13は画像メ
モリデータバス、14はCRT表示データである。Conventionally, as a display device of this type, for example,
The one shown in the figure is known. In the figure, 1 is an image processing apparatus for processing various images, 2 is an input / output control unit of an image memory, 3 is an image memory, 4 is a display address generating unit, and 5 is display data read from the image memory. Processing part, 6 is CRT monitor, 7 is X and Y coordinates for access, 8
Is an access control signal, 10 is a display X and Y coordinate, 11 is an image memory address, 12 is an image memory control signal, 13 is an image memory data bus, and 14 is CRT display data.
第9図に示すようなX,Y直交座標系画像メモリを有する
ラスタスキヤン形CRTデイスプレイ装置は、画像処理装
置1により画像メモリ3内のアクセスすべきX,Y座標
7、アクセス制御信号9の発生及びアクセスデータ8の
処理を行なう。第10図に示すように、CRTモニタ表示面1
5もX,Y直交座標系を持つ。A raster scanning CRT display device having an X, Y orthogonal coordinate system image memory as shown in FIG. 9 generates an X, Y coordinate 7 to be accessed and an access control signal 9 in the image memory 3 by the image processing device 1. And processing the access data 8. CRT monitor display surface 1
5 also has an X, Y Cartesian coordinate system.
画像メモリ3は第10図の如く、CRTモニタ表示面15の座
標と同様に割り付けられ、CRTモニタ表示面15の座標交
点群以上の交点群を持ち、各交点は記憶素子により構成
される。画像メモリ3へのアクセス(読み出し,書き込
み)はX座標方向に例えば4ピクセルで、Y座標方向に
4ピクセル幅の16ピクセル矩形領域を単位として行うこ
とで、高速化を計つている。画像メモリ3内の図形デー
タをCRTモニタ表示面15へ表示する場合、画像メモリ3
を第10図の17の方向で順次読み出し、CRTモニタ表示面1
5に第10図の16の方向にスキヤンしながら表示動作を行
わせる。As shown in FIG. 10, the image memory 3 is allocated in the same manner as the coordinates of the CRT monitor display surface 15 and has a group of intersections which are equal to or larger than the coordinate intersections of the CRT monitor display surface 15, and each intersection is composed of a storage element. The access (reading / writing) to the image memory 3 is performed in units of a 16-pixel rectangular area having 4 pixels in the X coordinate direction and 4 pixels in the Y coordinate direction, thereby speeding up the process. When the graphic data in the image memory 3 is displayed on the CRT monitor display surface 15, the image memory 3
Are sequentially read out in the direction of 17 in FIG.
The display operation is performed while scanning 5 in the direction 16 in FIG.
画像メモリのアクセスは、画像メモリ3が“RANDOM"な
アクセス(読み出し,書き込み)のためのポートと、X
座標に平行な方向の1ライン分のデータを1度にラツチ
し(データ転送サイクル)、外部からのクロツクに同期
してピクセルデータを読み出せるポートの2つのポート
を有する「DUAL PORT DYNAMIC RAM」で構成されてい
る場合、第11図に示すように、水平同期信号18によつて
定義される1ラインのスキヤン期間中は、1回のデータ
転送サイクル21,数回のリフレツシユサイクル22及びラ
ンダムアクセスサイクル23(残りのサイクル全部)で構
成される画像メモリサイクル20が行なわれているのが一
般的である。The image memory is accessed by a port for the image memory 3 being "RANDOM" (read / write) and X
With "DUAL PORT DYNAMIC RAM", which has two ports that can read one line of data parallel to the coordinates at one time (data transfer cycle) and read pixel data in synchronization with the clock from the outside. When configured, as shown in FIG. 11, one data transfer cycle 21, several refresh cycles 22 and random access during the scan period of one line defined by the horizontal sync signal 18. Generally, the image memory cycle 20 including the cycle 23 (all the remaining cycles) is performed.
第12図は従来の画像メモリ入出力制御部の一例を示すブ
ロツク図である。FIG. 12 is a block diagram showing an example of a conventional image memory input / output control unit.
第1に、表示用のデータ転送サイクル21においては、表
示用座標発生部4よりの表示用X,Y座標がX・Y座標セ
レクタ29で選択され、画像メモリアドレスバス11を通し
て画像メモリ3に供給される。データ転送サイクル21の
発生は水平同期信号18により検知され、画像メモリ制御
部33によりコントロールされる。以上の動作により、1
ライン分の表示データは画像メモリ3内にラツチされ、
水平ブランキング信号19に合わせてピクセルデータが表
示用データ処理部5に送られていく。First, in the display data transfer cycle 21, the display X and Y coordinates from the display coordinate generator 4 are selected by the XY coordinate selector 29 and supplied to the image memory 3 through the image memory address bus 11. To be done. The occurrence of the data transfer cycle 21 is detected by the horizontal synchronizing signal 18 and controlled by the image memory control unit 33. By the above operation, 1
The display data for lines is latched in the image memory 3,
Pixel data is sent to the display data processing unit 5 in accordance with the horizontal blanking signal 19.
第2に、画像メモリ3のリフレツシユサイクル22におい
ては、リフレツシユアドレス発生部27より発生されたリ
フレツシユアドレスはX,Y座標セレクタ29で選択され、
画像メモリアドレスバス11を通して画像メモリ3に供給
される。リフレツシユサイクル22の発生は、水平同期信
号18により検知され、画像メモリ制御部33によりコント
ロールされる。リフレツシユサイクルは、画像メモリ3
のリフレツシユタイムにより、サイクル数が決定され
る。Secondly, in the refresh cycle 22 of the image memory 3, the refresh address generated by the refresh address generator 27 is selected by the X, Y coordinate selector 29.
It is supplied to the image memory 3 through the image memory address bus 11. The occurrence of the refresh cycle 22 is detected by the horizontal synchronizing signal 18 and controlled by the image memory control unit 33. The refresh cycle is the image memory 3
The number of cycles is determined by the refresh time of.
第3に、ランダムアクセスサイクルにおいては、動作が
読み出しの時は、まず画像処理装置1よりアクセスすべ
きX,Y座標がアクセスX・Y座標レジスタ24に入力され
る。アクセスX・Y座標レジスタ24の出力はX・Y座標
セレクタ29で選択され、画像メモリアドレスバス11を通
して画像メモリ3に供給される。読み出し動作は画像メ
モリ制御部33によりコントロールされ、画像メモリ3か
らの読み出し画像データは、画像メモリデータバス13を
通してリードレジスタ31に入力される。このデータは読
み出し用データレジスタ25より、アクセス用データバス
8を通して画像処理装置1に取り込まれる。一方、動作
が書き込みの時は、画像処理装置1よりアクセスすべき
X,Y座標が、アクセスX・Y座標レジスタ24に入力され
ると同時に、書き込み画像データが書き込み用データレ
ジスタ26に入力される。アクセスX・Y座標レジスタ24
の座標はX・Y座標セレクタ29で選択され、画像メモリ
アドレスバス11を通して画像メモリ3に供給される。画
像データの書き込みは、書き込みを行うべきアクセスX
・Y座標レジスタ24で示された画像メモリ3中のデータ
を、まず画像メモリデータバス13を通してリードレジス
タ31に取り込む。このリードレジスタ31のデータと書き
込み用データレジスタ26のデータを、演算部28で“AN
D",“OR",“EOR",“かさね書き”等の演算を行なつた
後、第13図に示されるように、書き込みデータが4×4
ピクセル書き込みデータ35の場合は、書き込みデータマ
スク回路30では何ら処理せず、1ピクセル書き込みデー
タ34の場合は、アクセスX・Y座標レジスタ24で指定さ
れたピクセル以外はリードレジスタ31のピクセルデータ
で入れ換え、ライトレジスタ32を経由し画像メモリ3に
書き込みが行なわれる。Thirdly, in the random access cycle, when the operation is read, the X and Y coordinates to be accessed by the image processing apparatus 1 are first input to the access XY coordinate register 24. The output of the access X / Y coordinate register 24 is selected by the X / Y coordinate selector 29 and supplied to the image memory 3 through the image memory address bus 11. The read operation is controlled by the image memory control unit 33, and the read image data from the image memory 3 is input to the read register 31 through the image memory data bus 13. This data is taken into the image processing apparatus 1 from the read data register 25 through the access data bus 8. On the other hand, when the operation is writing, the image processing apparatus 1 should access it.
The X and Y coordinates are input to the access X / Y coordinate register 24, and at the same time, the write image data is input to the write data register 26. Access X / Y coordinate register 24
Is selected by the X / Y coordinate selector 29 and supplied to the image memory 3 through the image memory address bus 11. To write image data, access X that should be written
First, the data in the image memory 3 indicated by the Y coordinate register 24 is taken into the read register 31 through the image memory data bus 13. The data in the read register 31 and the data in the write data register 26 are set in
After performing operations such as D "," OR "," EOR ", and" summary writing ", as shown in FIG. 13, the write data is 4 × 4.
In the case of the pixel write data 35, the write data mask circuit 30 does not perform any processing. In the case of the 1-pixel write data 34, the pixel data of the read register 31 is replaced except for the pixels designated by the access X / Y coordinate register 24. , Is written to the image memory 3 via the write register 32.
以上述べてきたような構成をとるグラフイツクCRTデイ
スプレイ装置において、第1に、第14図に示すように、
画像メモリ3上のある矩形領域(クリツピング領域36)
のみに画像データを書き込む場合、書き込みデータが第
13図の34,35の構成しかとれず、しかも書き込む領域が
X,Y座標方向にそれぞれ4ピクセル単位の一定の領域37
にしか書き込めないため、第14図中の拡大図に示される
ように、クリツピング領域36が4×4ピクセル領域37の
一部分しか含まない時は、1ピクセル単位に書き込んで
いくか、書き込む直前に画像処理装置1でデータ処理を
行い、4×4ピクセル単位で書き込むかのどちらかの方
法しかとれず、高速にデータ書き込みが行なえない。In the graphic CRT display device having the configuration as described above, firstly, as shown in FIG.
A rectangular area on the image memory 3 (clipping area 36)
When writing image data only to the
Only the configuration of 34 and 35 in Fig. 13 can be taken, and the writing area is
A fixed area of 4 pixels each in the X and Y coordinate directions 37
Since it can only be written to, as shown in the enlarged view in FIG. 14, when the clipping area 36 includes only a part of the 4 × 4 pixel area 37, write in 1 pixel units or immediately before writing. Data processing can be performed by the processing device 1 and writing can be performed in units of 4 × 4 pixels, and data writing cannot be performed at high speed.
第2に、第15図に示すように、画像メモリ3上のある矩
形領域(読み出し領域38)から別の矩形領域(書き込み
領域39)へデータを転送する場合、前述のクリツピング
領域と同様に、ピクセル単位の境界データ処理が高速に
行なえない。Secondly, as shown in FIG. 15, when data is transferred from one rectangular area (reading area 38) on the image memory 3 to another rectangular area (writing area 39), like the above clipping area, Boundary data processing in pixel units cannot be performed at high speed.
つまり、以上のような画像メモリアクセス方式では、ピ
クセル単位の矩形領域内データ処理を高速に行なえない
と云う問題がある。That is, the above-mentioned image memory access method has a problem that the data processing in the rectangular area in units of pixels cannot be performed at high speed.
したがつて、本発明はピクセル単位で設定された矩形領
域内のデータに対しても処理スピードを落すことなく、
高速に処理できるようにすることを目的とする。Therefore, the present invention does not reduce the processing speed for the data in the rectangular area set in pixel units,
The purpose is to enable high-speed processing.
読み出し矩形領域内のブロツクデータ群から書き込み矩
形領域内の対応するブロツクの座標位置ずれを加味した
ブロツクデータを選択する読出データ選択手段と、該選
択されたブロツクデータのうち書き込み矩形領域の境界
を含むブロツクデータに対しては、領域外のデータと画
像メモリ中の書き込もうとしているブロツク領域内のデ
ータとからブロツクデータを作成し、これを書き込み矩
形領域に書き込む書込データ選択手段とを設ける。A read data selecting means for selecting block data from the block data group in the read rectangular area, in which the coordinate position deviation of the corresponding block in the write rectangular area is added, and a boundary of the write rectangular area in the selected block data. For the block data, write data selecting means is provided which creates block data from the data outside the area and the data in the block area to be written in the image memory, and writes this in the write rectangular area.
画像メモリ内の同形な2つの矩形領域において、一方の
矩形領域内のデータをあるブロツク単位で、他方の矩形
領域内の対応したブロツクに転送する場合、読み出し矩
形領域内のブロツクデータ群から書き込み矩形領域内の
対応したブロツクの座標位置ずれを加味した新たなブロ
ツクデータを選択し、書き込み矩形領域の境界を含むブ
ロツクデータに対しては、領域外のデータとブロツク領
域中のデータとを選択して新たなブロツクデータを作
り、書き込み矩形領域に書き込むことで、高速に矩形領
域のデータ処理を行なうことができるようにする。In two identical rectangular areas in the image memory, when the data in one rectangular area is transferred to a corresponding block in the other rectangular area in units of a block, the writing rectangular area is written from the block data group in the reading rectangular area. Select new block data that takes into account the coordinate shift of the corresponding block in the area, and select the data outside the area and the data in the block area for the block data that includes the boundary of the writing rectangular area. By creating new block data and writing it in the write rectangular area, the data processing of the rectangular area can be performed at high speed.
第1図は本発明の実施例を示すブロツク図、第2図は読
み出し矩形領域と書き込み矩形領域とを説明するための
説明図、第3図は8×8ピクセルデータから4×4ピク
セルデータを選択する方法を説明するための説明図、第
4図は書き込みデータ選択部を示すブロツク図、第5図
は第nピクセルを選択するセレクト回路を示す回路図、
第6図は境界での書き込みデータを説明するための説明
図、第7図は書き込みデータ選択部を示すブロツク図、
第8図は矩形領域境界検出部を示すブロツク図である。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram for explaining a read rectangular area and a write rectangular area, and FIG. 3 shows 4 × 4 pixel data from 8 × 8 pixel data. FIG. 4 is a block diagram showing a write data selection unit, FIG. 5 is a circuit diagram showing a select circuit for selecting the nth pixel, and FIG.
FIG. 6 is an explanatory diagram for explaining the write data at the boundary, FIG. 7 is a block diagram showing the write data selection unit,
FIG. 8 is a block diagram showing the rectangular area boundary detection unit.
こゝでは、第2図の如き画像メモリ3上のある読み出し
矩形領域44(第15図の読み出し領域38に相当)から、あ
る書き込み矩形領域47(第15図の書き込み領域39に相
当)へデータを転送する場合を例にとり説明する。Here, data is read from a certain read rectangular area 44 (corresponding to the read area 38 in FIG. 15) on the image memory 3 as shown in FIG. 2 to a certain write rectangular area 47 (corresponding to the write area 39 in FIG. 15). Will be described as an example.
矩形領域座標設定部40では、第2図に示すような読み出
し矩形領域44を左上点45と右下点46により設定し、書き
込み矩形領域47を左上点48と右下点49により設定してお
り、矩形領域44からのデータ読み出しは、第12図で示し
た従来と同様の手順でリードレジスタ31に取り込まれ、
第1図で示される読み出しデータ選択部42に入力され
る。この選択部42は、第3図に示されるような隣接した
4個の4×4ピクセル領域中のデータ(8×8ピクセル
データ)から、任意に4×4ピクセルデータを選択する
回路であり、書き込み矩形領域47の左上点48の4×4ピ
クセル領域内でのピクセル座標に、読み出し矩形領域44
の左上点45の4×4ピクセル領域内でのピクセル座標を
合わせることで、全体的に読み出し矩形領域44と書き込
み矩形領域45のピクセル単位の座標ずれを補正するため
に使用される。In the rectangular area coordinate setting unit 40, the read rectangular area 44 as shown in FIG. 2 is set by the upper left point 45 and the lower right point 46, and the write rectangular area 47 is set by the upper left point 48 and the lower right point 49. , The data read from the rectangular area 44 is loaded into the read register 31 in the same procedure as the conventional one shown in FIG.
It is input to the read data selection unit 42 shown in FIG. The selection unit 42 is a circuit that arbitrarily selects 4 × 4 pixel data from data (8 × 8 pixel data) in four adjacent 4 × 4 pixel regions as shown in FIG. The read rectangular area 44 is located at the pixel coordinates of the upper left point 48 of the write rectangular area 47 within the 4 × 4 pixel area.
By adjusting the pixel coordinates of the upper left point 45 in the 4 × 4 pixel area, the pixel coordinates of the read rectangular area 44 and the write rectangular area 45 are used to correct the coordinate deviation in pixel units.
まず、第4図のラッチ58,59,60,61はそれぞれ4×4ピ
クセル領域のデータをラッチするものであり、最初は全
てクリアされているものとし、読み出し矩形領域の左上
点45と書き込み矩形領域の左上点48のそれぞれのX,Y座
標の下位2ビット51,52,53,54を2ビット減算器50に入
力する。それらの出力はセレクト信号デコーダ53で、第
1表の如き真理値表に従ってデータセレクト信号に変換
される。First, the latches 58, 59, 60, 61 in FIG. 4 are each for latching the data in the 4 × 4 pixel area, and it is assumed that all of them are cleared at the beginning, and the upper left point 45 of the read rectangular area and the write rectangle. The lower 2 bits 51, 52, 53, 54 of each X, Y coordinate of the upper left point 48 of the area are input to the 2-bit subtractor 50. Those outputs are converted by the select signal decoder 53 into data select signals according to the truth table as shown in Table 1.
また、X,Y座標の減算結果はラッチ58,59,60,61へのデー
タ記憶順番を決定する。Y座標について減算結果が“0"
より大きければ、読み出し矩形領域の上辺部において、
第3図に示されるような8×8ピクセルデータの上部2
個の4×4ピクセルデータに空白(データなし)を挿入
する。すなわち、第2図においては読み出し矩形領域の
左上点45のY座標が“10"であるが、書き込み矩形領域
の左上点のY座標が“10"よりも大きい値“11"であった
とすると、Y座標“11"にY座標“10"のデータを書き込
むためには、の領域よりも上の領域のY座標“11"を
出発点としてデータを読み出さなければいけないため、
上部2個の4×4ピクセルデータに空白(データなし)
を挿入するのである。これに対して、第2図に示すよう
に読み出し矩形領域の左上点45のY座標が“10"であ
り、書き込み矩形領域の左上点48のY座標が“01"であ
る場合には、Y座標について減算結果が“0"以下であれ
ば、この時には左上点45のY座標“10"より1つ小さい
座標“01"を出発点としてデータを読み出せば良いた
め、上部2個の4×4ピクセルデータに空白(データな
し)を挿入する必要はない。 Also, the subtraction result of the X and Y coordinates determines the data storage order to the latches 58, 59, 60 and 61. The subtraction result for the Y coordinate is "0"
If it is larger, at the upper side of the read rectangular area,
Top 2 of 8x8 pixel data as shown in Figure 3
A blank (no data) is inserted into each 4 × 4 pixel data. That is, in FIG. 2, assuming that the Y coordinate of the upper left point 45 of the read rectangular area is "10", but the Y coordinate of the upper left point of the write rectangular area is "11", which is larger than "10". In order to write the data of the Y coordinate "10" to the Y coordinate "11", the data must be read starting from the Y coordinate "11" of the area above the area of
Blank in the top two 4x4 pixel data (no data)
To insert. On the other hand, when the Y coordinate of the upper left point 45 of the read rectangular area is "10" and the Y coordinate of the upper left point 48 of the write rectangular area is "01" as shown in FIG. If the subtraction result for the coordinates is "0" or less, at this time, the data can be read using the coordinate "01", which is one smaller than the Y coordinate "10" of the upper left point 45, as the starting point. It is not necessary to insert a blank (no data) in the 4-pixel data.
同様に、第2図に示すように読み出し矩形領域の左上点
45のX座標が“01"であり、書き込み矩形領域の左上点4
8のX座標が“10"である場合には、X座標についての減
算結果が“0"より大きくなり、X座標“10"にX座標“0
1"のデータを書き込むためにはの領域のX座標“11"
を出発点としてデータを読み出さなければいけないた
め、左部2個の4×4ピクセルデータに空白(データな
し)を挿入する。X座標について減算結果が“0"以下で
あれば左部2個の4×4ピクセルデータに空白(データ
なし)を挿入する必要はない。Similarly, as shown in FIG. 2, the upper left point of the read rectangular area
The X coordinate of 45 is "01", and the upper left point 4 of the writing rectangular area
When the X coordinate of 8 is “10”, the subtraction result for the X coordinate becomes larger than “0”, and the X coordinate of “0” becomes “0”.
To write 1 "data, the X coordinate of the area is" 11 "
Since the data must be read starting from, a blank (no data) is inserted in the two left 4 × 4 pixel data. If the subtraction result for the X coordinate is "0" or less, it is not necessary to insert a blank (no data) in the two left 4 × 4 pixel data.
このように、X座標,Y座標の減算結果に応じて、左部,
上部2個の4×4ピクセルデータに空白(データなし)
を挿入することにより8×8ピクセルデータ作る。Thus, depending on the result of subtraction of the X and Y coordinates,
Blank in the top two 4x4 pixel data (no data)
To create 8 × 8 pixel data.
以上のことを第2図に基づいて説明すると、前述のとお
り第2図の場合にはX座標の減算結果が“0"より大き
く、Y座標の減算結果が“0"以下であるため、左部2個
の4×4ピクセルデータに空白(データなし)を挿入す
る。このため、ラッチ58にはの領域の4×4ピクセル
データ、ラッチ59にはの領域の4×4ピクセルデー
タ、ラッチ60にはの領域の4×4ピクセルデータ、ラ
ッチ61にはの領域の4×4ピクセルデータを取り込む
ことにより左部に空白を形成した形で8×8ピクセルデ
ータが作られる。そして、この8×8ピクセルデータは
63,64,65,66を通して、8×8→4×4ピクセルデータ
セレクタ62に供給される。このセレクタ62は第5図のセ
レクト回路の集合体であり、セレクト信号デコーダ56で
指定された4×4ピクセルデータを選択し、67より出力
する。第2図の場合には、X座標の減算結果が“11"、
Y座標の減算結果が“01"であるため、第1表でS7が指
定されるため、の領域の4×4ピクセルデータの中
で、X座標“11"、Y座標“01"のデータから選択が開始
され、67より出力される。このの領域のX座標“1
1"、Y座標“01"を出発点として読み出される4×4ピ
クセルデータの座標は、書き込み矩形領域の座標と同じ
であるため、これにより最初の が作られることになる。To explain the above with reference to FIG. 2, as described above, in the case of FIG. 2, the subtraction result of the X coordinate is larger than “0” and the subtraction result of the Y coordinate is “0” or less. A blank (no data) is inserted in the 4 × 4 pixel data of two copies. Therefore, the latch 58 has 4 × 4 pixel data in the area, the latch 59 has 4 × 4 pixel data in the area, the latch 60 has 4 × 4 pixel data in the area, and the latch 61 has 4 × 4 pixel data in the area. By capturing the × 4 pixel data, 8 × 8 pixel data is created with a blank space formed on the left side. And this 8x8 pixel data is
It is supplied to the 8 × 8 → 4 × 4 pixel data selector 62 through 63, 64, 65 and 66. The selector 62 is a group of select circuits shown in FIG. 5, and selects 4 × 4 pixel data designated by the select signal decoder 56 and outputs it from 67. In the case of FIG. 2, the subtraction result of the X coordinate is “11”,
Since the subtraction result of the Y coordinate is "01", S7 is specified in the first table. Therefore, from the data of the X coordinate "11" and the Y coordinate "01" in the 4x4 pixel data of the area of Selection is started and output from 67. X coordinate of this area "1
Since the coordinates of the 4 × 4 pixel data read from the 1 ”, Y coordinate“ 01 ”as the starting point are the same as the coordinates of the write rectangular area, the first Will be made.
次の読み出し矩形領域44からのデータの読み出しは、第
2図の→の順で行なわれるとともに、前回のラッチ
58,59のデータ,はラツチ60,61にシフトされ、,
,,という新たな8×8ピクセルデータから、 が選択される。The next read of data from the rectangular area 44 is performed in the order of → in FIG.
The data of 58,59 is shifted to the latch 60,61,
From the new 8 × 8 pixel data, Is selected.
これらの動作を読み出し矩形領域44の右端まで行ない、
順次書き込みデータを選択していき、その後にまた左端
にもどり、第2図の,,,のように、今後はY
座標方向に4ピクセル増加させた領域について同様の動
作を行なう。このくり返しで、読み出し矩形領域の右下
点を含む4×4ピクセル領域まで、順次書き込みデータ
を選択していく。Perform these operations to the right edge of the read rectangular area 44,
Sequentially select the write data, then return to the left end again, and in the future, as shown by ,,, in Figure 2, Y
The same operation is performed for the area increased by 4 pixels in the coordinate direction. By repeating this, the write data is sequentially selected up to the 4 × 4 pixel area including the lower right point of the read rectangular area.
矩形領域47へのデータ書き込みは、第12図で示した従来
と同様の手順で“リード",“演算",“ライト”動作によ
り行なわれる。リードレジスタ31に、書き込み領域47よ
り読み出したデータが取り込まれ、その後、読み出しデ
ータ選択部42では何ら処理を行なわずに、このデータを
演算部28に入力させる。そして、演算部28で、前述の読
み出し矩形領域内のデータから読み出しデータ選択部42
により作られた書き込みデータと演算し、書き込みデー
タ選択部43に送る。Data writing to the rectangular area 47 is performed by "read", "calculation", and "write" operations in the same procedure as in the conventional case shown in FIG. The read register 31 takes in the data read from the write area 47, and thereafter, the read data selection unit 42 causes the arithmetic unit 28 to input this data without performing any processing. Then, the calculation unit 28 selects the read data selection unit 42 from the data in the read rectangular area described above.
The write data created by is calculated and sent to the write data selection unit 43.
書き込みデータ選択部43では、第6図に示すように、書
き込み矩形領域が4×4ピクセル領域37中において一部
分のピクセルデータしか含まない場合に、この4×4ピ
クセル領域37の書き込み矩形領域外のデータを、書き込
み矩形領域より読み出してきたデータに置き換える動作
を行なう。このことにより、書き込み矩形領域がX,Y座
標方向にそれぞれピクセル単位で設定できることにな
る。書き込みデータ選択部43のブロツク図は第7図に示
されるように、2→1セレクタ43A〜43Qの集合体であ
り、X,Y座標方向にそれぞれ4本のマトリツクス信号X0
〜3,Y0〜3によりセレクト動作を行なう。この書き込み
データセレクト用マトリクス信号は、第8図(イ),
(ロ)に示される矩形領域境界検出部より作られる。す
なわち、同図(イ)では書き込み矩形領域の左上点のX
座標70及び右下点のX座標71と、今現在書き込もうとし
ているX座標69を比較器68で比較し、領域の設定X座標
に対して内部か,左端か,右端かを検出し、書き込みデ
ータセレクト回路75に伝える。また、この回路75には
左,右端のX座標の下位2ビツト77,78及び1ピクセル
のみの書き込み信号76も入力され、第2表に示す真理表
に従つて書き込みデータセレクト信号79(X0〜X3)を出
力する。なお、第2表では、(a)はX座標に関する真
理表、(b)はY座標に関する真理表を示している。Y
座標に対してもX座標同様、同図(ロ)の如く書き込み
矩形領域の右下点のY座標73及び左上点のY座標74と、
今現在書き込もうとしているY座標72を比較器68で比較
し、領域の設定Y座標に対して内部か,上端か,下端か
を検出し、上,下端のY座標の下位2ビツト80,81及び
1ピクセルのみの書き込み信号76とともに書き込みデー
タセレクト回路75に入力し、書き込みデータセレクト信
号82(Y0〜Y3)を得る。As shown in FIG. 6, in the write data selection unit 43, when the write rectangular area includes only a part of pixel data in the 4 × 4 pixel area 37, the write rectangular area of the 4 × 4 pixel area 37 is outside the write rectangular area. The operation of replacing the data with the data read from the write rectangular area is performed. As a result, the writing rectangular area can be set in pixel units in the X and Y coordinate directions. As shown in FIG. 7, the block diagram of the write data selection unit 43 is an aggregate of 2 → 1 selectors 43A to 43Q, and four matrix signals X0 are provided in each of the X and Y coordinate directions.
~ 3, Y0 ~ 3 select operation. This write data select matrix signal is shown in FIG.
It is created by the rectangular area boundary detection unit shown in (b). That is, in the same figure (a), X at the upper left point of the writing rectangular area
The comparator 70 compares the X coordinate 71 of the lower right point with the X coordinate 71 of the lower right point with the comparator 68, and detects whether it is inside, left end or right end with respect to the set X coordinate of the area, and writes. Notify the data select circuit 75. The lower two bits 77 and 78 of the left and right X coordinates and the write signal 76 for only one pixel are also input to the circuit 75, and the write data select signal 79 (X0 ... X3) is output. In Table 2, (a) shows a truth table regarding the X coordinate, and (b) shows a truth table regarding the Y coordinate. Y
Similarly to the X coordinate, the Y coordinate 73 of the lower right point and the Y coordinate 74 of the upper left point of the writing rectangular area are also set for the coordinate as shown in FIG.
The comparator 68 compares the Y-coordinate 72 which is about to be written at present, and detects whether it is inside, the upper end or the lower end with respect to the set Y-coordinate of the area, and the lower two bits 80, 81 of the upper and lower Y-coordinates. And a write signal 76 for only one pixel are input to the write data select circuit 75 to obtain write data select signals 82 (Y0 to Y3).
このようにして、書き込みデータ選択部43で領域の境界
でのピクセル単位の処理を施された書き込みデータはラ
イトレジスタ32を経由し、画像メモリ3に書き込まれ
る。 In this way, the write data that has been processed in pixel units at the boundary of the area by the write data selection unit 43 is written to the image memory 3 via the write register 32.
以上、画像メモリ3内ではコピー動作を例にとり、実施
例を説明したが、クリツピング動作もコピー動作の1機
能とみなせば容易に実現可能であり、かつ本発明は特許
請求の範囲内で種々変更可能である。Although the embodiment has been described above by taking the copy operation as an example in the image memory 3, the clipping operation can be easily realized if it is regarded as one function of the copy operation, and the present invention is variously modified within the scope of the claims. It is possible.
以上のように、本発明によれば、画像メモリ内の2つの
同形な矩形領域間でデータを転送する場合、画像メモリ
入出力制御回路内に読み出し矩形領域のデータの書き込
み矩形領域に対するX,Y座標方向(ピクセル単位)の位
置ずれを補正する読み出しデータ選択回路と、書き込み
矩形領域の境界において領域外のデータと領域内のデー
タを選択し書き込みデータを作り出す書き込みデータ選
択回路とを設けたので、ピクセル単位で設定された矩形
領域であつても、データを高速に転送ができて転送速度
が向上するばかりでなく、X,Y座標方向にピクセル単位
のクリツピング動作も同様にして行なうことができる利
点がもたらされる。As described above, according to the present invention, when data is transferred between two same-shaped rectangular areas in the image memory, the data in the read rectangular area is written in the image memory input / output control circuit as X, Y for the writing rectangular area. Since the read data selection circuit that corrects the positional deviation in the coordinate direction (pixel unit) and the write data selection circuit that creates the write data by selecting the data outside the area and the data within the area at the boundary of the write rectangular area are provided, Even if it is a rectangular area set in pixel units, not only can data be transferred at high speed to improve the transfer speed, but the clipping operation in pixel units in the X and Y coordinate directions can also be performed in the same way. Is brought about.
第1図は本発明の実施例を示すブロツク図、第2図は読
み出し矩形領域と書き込み矩形領域とを説明するための
説明図、第3図は8×8ピクセルデータから4×4ピク
セルデータを選択する方法を説明するための説明図、第
4図は書き込みデータ選択部を示すブロツク図、第5図
は第nピクセルを選択するセレクト回路を示す回路図、
第6図は境界での書き込みデータを説明するための説明
図、第7図は書き込みデータ選択部を示すブロツク図、
第8図は矩形領域境界検出部を示すブロツク図、第9図
は一般的なCRTデイスプレイ装置を示す構成図、第10図
は画像メモリの座標割り付けとCRTモニタのスキヤン方
法を説明するための説明図、第11図は画像メモリサイク
ルを説明するための説明図、第12図は画像メモリ入出力
制御部の従来例を示すブロツク図、第13図は書き込みデ
ータマスク回路の動作を説明するための説明図、第14図
はクリツピング処理を説明するための説明図、第15図は
コピー処理を説明するための説明図である。 符号説明 1……画像処理装置、2……画像メモリ入出力制御部、
3……画像メモリ、4……表示用座標発生部、5……表
示用データ処理部、6……CRTモニタ、24……アクセス
X・Y座標レジスタ、25……読み出し用データレジス
タ、26……書き込み用データレジスタ、27……リフレツ
シユアドレス発生部、29……X・Y座標セレクタ、30…
…書き込みデータマスク回路、31……リードレジスタ、
32……ラストレジスタ、33……画像メモリ制御部、40…
…矩形領域座標設定部、41……矩形領域境界検出部、42
……読み出しデータ選択部、43……書込みデータ選択
部、43A〜43Q,62……セレクタ、50……2ビツト減算
器、53……セレクト信号デコーダ、58,59,60,61……ラ
ツチ、68……比較器、75……書き込みデータセレクト回
路。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram for explaining a read rectangular area and a write rectangular area, and FIG. 3 shows 4 × 4 pixel data from 8 × 8 pixel data. FIG. 4 is a block diagram showing a write data selection unit, FIG. 5 is a circuit diagram showing a select circuit for selecting the nth pixel, and FIG.
FIG. 6 is an explanatory diagram for explaining the write data at the boundary, FIG. 7 is a block diagram showing the write data selection unit,
FIG. 8 is a block diagram showing a rectangular area boundary detection unit, FIG. 9 is a block diagram showing a general CRT display device, and FIG. 10 is an explanation for explaining coordinate allocation of image memory and scanning method of CRT monitor. FIG. 11 is an explanatory diagram for explaining the image memory cycle, FIG. 12 is a block diagram showing a conventional example of the image memory input / output control unit, and FIG. 13 is a diagram for explaining the operation of the write data mask circuit. FIG. 14 is an explanatory diagram for explaining the clipping process, and FIG. 15 is an explanatory diagram for explaining the copy process. Reference numeral 1 ... Image processing device, 2 ... Image memory input / output control unit,
3 ... Image memory, 4 ... Display coordinate generation unit, 5 ... Display data processing unit, 6 ... CRT monitor, 24 ... Access X / Y coordinate register, 25 ... Read data register, 26 ... ... Data register for writing, 27 ... Reflection address generator, 29 ... X / Y coordinate selector, 30 ...
… Write data mask circuit, 31… Read register,
32 ... Last register, 33 ... Image memory control unit, 40 ...
… Rectangular area coordinate setting unit, 41 …… Rectangular area boundary detection unit, 42
...... Read data selection unit, 43 …… Write data selection unit, 43A to 43Q, 62 …… Selector, 50 …… 2 bit subtractor, 53 …… Select signal decoder, 58,59,60,61 …… Latch, 68 …… Comparator, 75 …… Write data select circuit.
Claims (1)
で、一方の矩形領域内のデータを或るブロツク単位で他
方の矩形領域内の対応するブロツクに転送するための画
像メモリ入出力制御装置において、 読み出し矩形領域内のブロツクデータ群から書き込み矩
形領域内の対応するブロツクの座標位置ずれを加味した
ブロツクデータを選択する読出データ選択手段と、 該選択されたブロツクデータのうち書き込み矩形領域の
境界を含むブロツクデータに対しては、領域外のデータ
と画像メモリ中の書き込もうとしているブロツク領域内
のデータとからブロツクデータを作成し、これを書き込
み矩形領域に書き込む書込データ選択手段と、 を設けてなることを特徴とする画像メモリ入出力制御装
置。1. An image memory input / output control for transferring data in one rectangular area in two rectangular areas having the same shape in an image memory to a corresponding block in another rectangular area in units of a certain block. In the device, read data selecting means for selecting block data from the block data group in the read rectangular area in consideration of the coordinate positional deviation of the corresponding block in the write rectangular area, and read data selecting means of the selected block data in the write rectangular area. For block data including the boundary, create block data from the data outside the area and the data in the block area in the image memory that is about to be written, and write data selection means for writing this in the write rectangular area, An image memory input / output control device comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62163938A JPH0731497B2 (en) | 1987-07-02 | 1987-07-02 | Image memory input / output control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62163938A JPH0731497B2 (en) | 1987-07-02 | 1987-07-02 | Image memory input / output control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS649495A JPS649495A (en) | 1989-01-12 |
| JPH0731497B2 true JPH0731497B2 (en) | 1995-04-10 |
Family
ID=15783675
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62163938A Expired - Lifetime JPH0731497B2 (en) | 1987-07-02 | 1987-07-02 | Image memory input / output control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0731497B2 (en) |
-
1987
- 1987-07-02 JP JP62163938A patent/JPH0731497B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS649495A (en) | 1989-01-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0396311B1 (en) | Image processing apparatus and method | |
| JPS61249175A (en) | Graphic processor | |
| EP0827114B1 (en) | Method and apparatus for texture data | |
| US5579458A (en) | Display control system for a scan type display apparatus | |
| JPS6049391A (en) | Raster scan display system | |
| GB2269081A (en) | Image processing apparatus | |
| JPH0355832B2 (en) | ||
| US4885699A (en) | Data processing apparatus for editing, filing, and printing image data by means of visual observation of the data on a display screen | |
| CN86105738A (en) | TV monitor control circuit wiring | |
| US4799173A (en) | Transformation circuit to effect raster operations | |
| KR0125276B1 (en) | Image contour detecting apparatus | |
| US5606656A (en) | Image data processing unit for forming a plurality of identical images in a single output image area | |
| JPH0731497B2 (en) | Image memory input / output control device | |
| JPH05282199A (en) | Image memory | |
| JPS6016634B2 (en) | Graphic generation method in display devices | |
| JP3110975B2 (en) | Display with character mask function | |
| EP0357076B1 (en) | Inclined rectangular pattern generating system | |
| JPS6247095A (en) | Box cursor display method | |
| JPH0584943B2 (en) | ||
| JPS6249570A (en) | Picture processor | |
| JPH02232784A (en) | Clipping method and graphics system and workstation | |
| JPS61290486A (en) | Display controller | |
| JPS63111584A (en) | Image processing device | |
| JPS6368985A (en) | Face painting system | |
| JPH0652328A (en) | Image processor |