JPH03218577A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH03218577A
JPH03218577A JP2309025A JP30902590A JPH03218577A JP H03218577 A JPH03218577 A JP H03218577A JP 2309025 A JP2309025 A JP 2309025A JP 30902590 A JP30902590 A JP 30902590A JP H03218577 A JPH03218577 A JP H03218577A
Authority
JP
Japan
Prior art keywords
image data
bit
data
circuit
shift
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
JP2309025A
Other languages
Japanese (ja)
Inventor
Takeo Endo
岳男 遠藤
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2309025A priority Critical patent/JPH03218577A/en
Publication of JPH03218577A publication Critical patent/JPH03218577A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Image Processing (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、グラフィック画像データの編集に用いられる
画像処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device used for editing graphic image data.

〔従来の技術〕[Conventional technology]

メモリ等から読み込んだ第1画像データをグラフィック
画面の任意の位置に表示させる処理は、従来よりソフト
ウエア1−,よって行われていた。第11図に画像デー
タ合成処理のフローチャートを示す。まずメモリ等に格
納された任意の第1画像データを、一回の処理単位であ
る転送データ長ごとに順次読み込んで(stepl)、
この第1画像データをビット単位でシフトする(ste
p2)。ここでビットシフト処理を行う必要があるのは
、グラフィック画面上の所望の位置に表示するために、
ビット単位の調整が必要だからである。
The process of displaying first image data read from a memory or the like at an arbitrary position on a graphic screen has conventionally been performed by software 1-. FIG. 11 shows a flowchart of image data synthesis processing. First, any first image data stored in a memory or the like is sequentially read for each transfer data length, which is a unit of processing (step),
This first image data is shifted bit by bit.
p2). What we need to do here is bit shift processing, in order to display it at the desired position on the graphic screen.
This is because bit-by-bit adjustment is required.

このビットシフトした第1画像データをグラフィック画
面に対応したグラフィック表示記憶装置(以下VRAM
という)の任意の位置に書き込むが、この書き込みは転
送データ長ごとに行われるため、第1画像データの前後
に不要データが含まれる場合がある。その部分はVRA
Mの書き込み位置に既に格納されている第2画像データ
の対応部分と置き換える必要がある。そこで、書き込み
位置の第2画像データを事前に読み込んで(step3
)、第1画像データとの部分的な置き換えを行った上で
(s t ep4) 、置き換え後の第1画像データを
VRAMに書き込む(step5)。
This bit-shifted first image data is stored in a graphic display storage device (hereinafter referred to as VRAM) corresponding to a graphic screen.
However, since this writing is performed for each transfer data length, unnecessary data may be included before and after the first image data. That part is VRA
It is necessary to replace it with the corresponding portion of the second image data already stored in the write position of M. Therefore, the second image data at the writing position is read in advance (step 3).
), after performing partial replacement with the first image data (step 4), the replaced first image data is written into the VRAM (step 5).

そして、メモリ等から第1画像データをすべて読み込む
までこれらの処理を繰り返す(step6)。すべての
第1画像データが書き込まれた後に、このVRAMの画
像データをグラフィック画面に表示させる(step7
)。
These processes are then repeated until all the first image data is read from the memory or the like (step 6). After all the first image data has been written, the image data in the VRAM is displayed on the graphic screen (step 7).
).

従来はこのようなソフト処理はすべて中央演算処理装置
(以下CPUという)の指令によって行われていた。
Conventionally, all such software processing was performed by instructions from a central processing unit (hereinafter referred to as CPU).

〔発明か解決しようとする課題〕[Invention or problem to be solved]

このようなソフトウエアによる画像データ合成処理は、
処理の間中CPUが専有されてしまい問題であった。特
に、CPUかビット操作処理に費やす時間が長かった。
Image data synthesis processing using such software is
The problem was that the CPU was monopolized throughout the process. In particular, the time spent on the CPU or bit manipulation processing was long.

そのため、ソフトウエアで対応していたデータのビット
シフト処理およびビットマスク生成処理を改善し、CP
Uの負荷を軽減させることが課題となっていた。本発明
はこのような課題を解決し、画像データ合成動作をより
声速に動作させてCPUの負荷を軽減させることにある
Therefore, we improved the data bit shift processing and bit mask generation processing that were supported by software, and
The challenge was to reduce the load on U. The present invention solves these problems, and aims to reduce the load on the CPU by performing image data synthesis operations at a faster speed.

〔課題を解決するための手段〕[Means to solve the problem]

上記課題を解決するために、本発明の画像処理装置は、
第2画像データと置き換えるために第1画像データを水
平方向にビット単位でシフト処理する画像データシフト
回路部と、画像データシフト回路部から転送された第1
画像データを、第2記憶装置から読み出した第2画像デ
ータと置き換えて、第2記憶装置の第2画像データが格
納されていた領域に格納する画像データ合成回路部と、
第1記憶装置に格納された第1画像データを読み出して
画像データシフト回路部と画像データ合成回路部でそれ
ぞれデータ処理して第2記憶装置に格納するよう指令を
出す制御装置とから構成されている。
In order to solve the above problems, an image processing device of the present invention includes:
an image data shift circuit section that shifts the first image data bit by bit in the horizontal direction in order to replace it with the second image data;
an image data synthesis circuit unit that replaces the image data with second image data read from the second storage device and stores it in an area of the second storage device where the second image data was stored;
It is comprised of a control device that issues a command to read first image data stored in a first storage device, process the data in an image data shift circuit section and an image data synthesis circuit section, and store it in a second storage device. There is.

〔作用〕[Effect]

本発明の構成によれば、制御装置の指令によって第1記
憶装置から第1画像データが読み出されて画像データシ
フト回路部に転送される。画像データシフト回路部では
、第1画像データを水平方向にビット単位でシフト処理
する。シフト処理された第1画像データはデータ合成部
に転送され、制御装置の指令で第2記憶装置から読み出
された第2画像データと合成される。合成された画像デ
ータは制御装置の指令で第2記憶装置に格納される。
According to the configuration of the present invention, the first image data is read from the first storage device and transferred to the image data shift circuit section according to a command from the control device. The image data shift circuit section shifts the first image data in the horizontal direction bit by bit. The first image data subjected to the shift processing is transferred to the data synthesis section, and is synthesized with the second image data read from the second storage device according to a command from the control device. The combined image data is stored in the second storage device according to a command from the control device.

〔実施例〕〔Example〕

第1図は、本発明の一実施例を示す画像処理装置の構成
図である。この画像処理装置は第1画像データか格納さ
れた画像データメモリ装置100と、第2画像データの
格納されたVRAMI 1 0と、第2画像データと置
き換えるために第1画像データの水平方向の調整を行う
画像データシフト回路部120と、第1画像データを第
2画像デ−夕と置き換えてVRAMI 1 0に格納す
る画像データ合成回路部140と、画像データシフト回
路部120と画像データ合成回路部140のデータ処理
を制御するCPU160とから構成されている。画像デ
ータシフト回路部120には第1画像データを必要ビッ
ト数だけ終端方向にシフトするビットシフト部121と
、ビットシフト回路部のビットシフト処理を制御するビ
ット制御回路131と、画像データ合成回路部140と
に転送するシフトビット数の情報が格納されたシフトビ
ット格納部132および遅延素子133とが備えられて
いる。また、画像データ合成回路部140には第1画像
データをVRAMI 1 0に書き込むデータ合成部1
41と、マスクパターンを生成してデータ合成部141
に転送するマスク生成部151とが備えられている。そ
して、ビットシフト部12]にはローテーション回路1
22、第1ラッチ回路123、第2ラッチ回路124、
セレクタ回路125が備えられ、データ合成部141に
は合成回路142と第3ラッチ回路143が備えられ、
マスク生成部151にはマスク生成回路152と演算回
路153が備えられている。
FIG. 1 is a block diagram of an image processing apparatus showing an embodiment of the present invention. This image processing device includes an image data memory device 100 storing first image data, a VRAMI 10 storing second image data, and horizontal adjustment of the first image data in order to replace it with the second image data. an image data shift circuit section 120 that performs the following operations; an image data synthesis circuit section 140 that replaces the first image data with the second image data and stores it in the VRAMI 10; and the image data shift circuit section 120 and the image data synthesis circuit section. 140, and a CPU 160 that controls data processing of 140. The image data shift circuit section 120 includes a bit shift section 121 that shifts the first image data by the necessary number of bits toward the end, a bit control circuit 131 that controls bit shift processing of the bit shift circuit section, and an image data synthesis circuit section. A shift bit storage section 132 storing information on the number of shift bits to be transferred to the shift bit storage section 140 and a delay element 133 are provided. In addition, the image data synthesis circuit section 140 includes a data synthesis section 1 that writes the first image data to the VRAMI 10.
41, and a data synthesis unit 141 that generates a mask pattern.
A mask generation unit 151 is provided for transmitting data to a mask. The bit shift unit 12] includes a rotation circuit 1.
22, first latch circuit 123, second latch circuit 124,
A selector circuit 125 is provided, a data synthesis section 141 is provided with a synthesis circuit 142 and a third latch circuit 143,
The mask generation section 151 includes a mask generation circuit 152 and an arithmetic circuit 153.

次に、本実施例の処理の概要について、第2図を用いて
説明する。第2図のディスプレイ画面190は処理開始
前の映像である。そして、ディスプレイ画面198は処
理終了後の映像である。
Next, an overview of the processing of this embodiment will be explained using FIG. 2. The display screen 190 in FIG. 2 is an image before the start of processing. The display screen 198 is an image after the processing is completed.

本実施例の操作としては、まずユーザが蝶の左上のポイ
ントと右下のポイントをマウス等でクリックして画像デ
ータ191bを指定する。次に移動先の画像データ19
2bをマウス等で指定することによって、ディスプレイ
画面190の左上を飛んでいる蝶を、右下の花の間に移
動させることができる。この移動処理を具体的に説明す
ると、画像データメモリ装置100に格納されている画
像データ191が読み出されてビットシフト部121に
転送される。ビットシフト部121では、蝶の絵か画像
データ192の花の絵の間に来るように、画像データ1
93を右にシフトさせて画像データ194を作成する。
In the operation of this embodiment, the user first clicks the upper left point and lower right point of the butterfly with a mouse or the like to designate the image data 191b. Next, the destination image data 19
By specifying 2b with a mouse or the like, the butterfly flying in the upper left of the display screen 190 can be moved between the flowers in the lower right. To explain this moving process in detail, image data 191 stored in image data memory device 100 is read out and transferred to bit shift section 121. The bit shift unit 121 shifts the image data 1 so that it is between the butterfly picture and the flower picture of the image data 192.
Image data 194 is created by shifting 93 to the right.

このように作成された画像データ194はデータ合成部
141に転送される。データ合成部141ては、マスク
生成部151で生成されたマスクパターン195を用い
て、VRAMI IClから読み出された画像データ1
96と合成する。この合成処理によって画像データ19
7が作成される。この画像データ197をVRAMI 
1 0の画像データ192が格納されていた位置に書き
込むことにより、蝶が花の間に移動したディスプレイ画
面198が作成される。
The image data 194 created in this way is transferred to the data synthesis section 141. The data synthesis unit 141 uses the mask pattern 195 generated by the mask generation unit 151 to combine image data 1 read from the VRAMI ICl.
Combine with 96. Through this compositing process, the image data 19
7 is created. This image data 197 is transferred to VRAMI
By writing to the location where the image data 192 of 10 was stored, a display screen 198 is created in which the butterfly has moved among the flowers.

ここで画像データメモリ装置100から読み出したいデ
ータは画像データ19lbの画像データだけであるか、
画像データメモリ装置100のデータアクセスは転送デ
ータ長単位で行われるので、転送データ長単位で区切ら
れた画像データ191全体を読み出す必要がある。また
、VRAM110に格納したい領域は画像データ192
bだけてあるか、VRAMI 1 0のデータアクセス
も転送データ単位で行われるので、転送データ長単位で
区切られた画像データ192として書き込まなlナれば
ならない。そこで、画像データ]9】を画像データ19
2の位置に書き込むことによって、蝶の絵(画像データ
1 9 1 b)を花の絵の間(画像データ192b)
に移動させる処理を実現させた。
Is the data you want to read from the image data memory device 100 only 19 lb of image data?
Since data access to the image data memory device 100 is performed in transfer data length units, it is necessary to read out the entire image data 191 divided by transfer data length units. In addition, the area to be stored in the VRAM 110 is the image data 192.
Since the data access of VRAMI 10 is also performed in transfer data units, it must be written as image data 192 divided by transfer data length units. Therefore, image data [9] is converted into image data [19]
By writing in position 2, the butterfly picture (image data 1 9 1 b) is placed between the flower pictures (image data 192b).
I realized the process of moving it to .

ところで、前述したシフト処理および合成処理はシフト
ビット格納部132に格納された先頭ビット数情報(D
BA)、格納ポインタ情報(SBA)および転送ビット
長情報(BLEN)に基づいて行われる。ここで先頭ビ
ット数情報(D B A)は画像データ192aのビッ
ト数で、蝶の絵を花の絵の間に移動させるための先頭位
置を決定する情報である。また格納ポインタ情報(SB
A)は画像データ191aのビット数で、画像.データ
191の先頭位置からユーザの指定した蝶の入った領域
までの長さの情報である。さらに転送ビット長情報(B
LEN)はユーザの指定した蝶の入った領域の横幅の情
報である。
By the way, the above-mentioned shift processing and combining processing are performed using the leading bit number information (D
BA), storage pointer information (SBA), and transfer bit length information (BLEN). Here, the leading bit number information (DBA) is the number of bits of the image data 192a, and is information for determining the leading position for moving the butterfly picture between the flower pictures. Also, storage pointer information (SB
A) is the number of bits of the image data 191a; This is information about the length from the beginning position of the data 191 to the area in which the butterfly is specified by the user. Additionally, transfer bit length information (B
LEN) is information about the width of the area containing the butterfly specified by the user.

次に、第1図に戻って、本実施例の処理の詳細な概要に
ついて説明する。まず、CPU160の指令によって、
第1画像データをVRAMI 1 0に書き込むために
必要な初期データである先頭ビット数、格納ポインタお
よび転送ビット長などの情報がシフトビット格納部13
2に入力される。
Next, returning to FIG. 1, a detailed outline of the processing of this embodiment will be explained. First, according to a command from the CPU 160,
Information such as the number of leading bits, storage pointer, and transfer bit length, which are initial data necessary to write the first image data to VRAMI 10, is stored in the shift bit storage section 13.
2 is input.

そして、画像データシフト回路部120および画像デー
タ合成回路部140ではこれらの初期データに基づいて
処理が開始される。CPU160による処理開始の指令
によって、画像データメモリ装置100に格納された第
1画像データが転送データ長ごとに読み込まれて、画像
データシフト回路部120に転送される。この画像デー
タメモリ装置100からの読込み処理は第1画像データ
の読込みがすべて終了するまで連続して行われる。
Processing is then started in the image data shift circuit section 120 and the image data synthesis circuit section 140 based on these initial data. In response to a command to start processing from the CPU 160, the first image data stored in the image data memory device 100 is read for each transfer data length and transferred to the image data shift circuit section 120. This reading process from the image data memory device 100 is performed continuously until all the first image data has been read.

画像データシフト回路部120に転送された第1画像デ
ータ171はまずローテーション回路122に与えられ
る。ローテーション回路122にはビット制御回路13
1よりローテーション数が与えられ、ローテーション数
分のローテーション処理が行われる。このローテーショ
ン数はシフトビット格納部132に格納された先頭ビッ
ト数情報(DBA)と格納ポインタ情報(SBA)をビ
ット制#回路131が読み込んで決定する。ロ−テーシ
ョンされた第1画像データ172は第1ラッチ回路12
3に転送される。第1ラッチ回路123では、クロック
端子180から印加される第12ロック信号が遅延素子
133を通して与えられると、第2ラッチ回路124お
よびセレクタ回路125の両方に第1画像データ173
が転送される。第2ラッチ回路124に転送された第1
画像データ173は、次の第1クロック信号によってセ
レクタ回路125に転送される。セレクタ回路125で
は、第1ラッチ回路123および第2ラッチ回路124
から転送された2つの第1画像データ173、174を
ビット単位で合成して画像データ合成回路部140に転
送する。なお、ここでの合成処理は後述する。転送され
た第1画像データ175は合成回路142に与えられる
The first image data 171 transferred to the image data shift circuit section 120 is first given to the rotation circuit 122. The rotation circuit 122 includes a bit control circuit 13.
The number of rotations is given from 1, and rotation processing is performed for the number of rotations. The rotation number is determined by the bit system # circuit 131 reading the leading bit number information (DBA) and storage pointer information (SBA) stored in the shift bit storage section 132. The rotated first image data 172 is transferred to the first latch circuit 12.
Transferred to 3. In the first latch circuit 123, when the twelfth lock signal applied from the clock terminal 180 is applied through the delay element 133, the first image data 173 is sent to both the second latch circuit 124 and the selector circuit 125.
is transferred. The first data transferred to the second latch circuit 124
Image data 173 is transferred to selector circuit 125 in response to the next first clock signal. In the selector circuit 125, the first latch circuit 123 and the second latch circuit 124
The two first image data 173 and 174 transferred from the first image data 173 and 174 are synthesized bit by bit and transferred to the image data synthesis circuit section 140. Note that the compositing process here will be described later. The transferred first image data 175 is given to the synthesis circuit 142.

合成回路142には第1画像データ175の他に、第3
ラッチ回路143に格納された第2画像データ176か
与えられる。この第2画像データ176はこれから書き
込みを行うVRAMI 1 0の所望のアドレスに格納
された第2画像データ177をクロック端子181から
印加される第2クロック信号のタイミングで第3ラッチ
回路143に転送したものである。そして第1画像デー
タ175、第2画像データ176は、マスク生成回路1
52で生成されるマスク情報に基づいて合成回路142
で置き換えられる。このように合成回路142で置き換
えられた第1画像データ178は、第2画像データ17
7が格納されていたVRAM11 0の同一アドレスに
上書きされる。
In addition to the first image data 175, the synthesis circuit 142 also receives third image data 175.
The second image data 176 stored in the latch circuit 143 is applied. This second image data 176 is stored in a desired address of VRAMI 10 to be written from now on, and the second image data 177 is transferred to the third latch circuit 143 at the timing of the second clock signal applied from the clock terminal 181. It is something. The first image data 175 and the second image data 176 are stored in the mask generation circuit 1.
The synthesis circuit 142 based on the mask information generated in 52
can be replaced with The first image data 178 replaced by the synthesis circuit 142 in this way is replaced by the second image data 17
The same address in the VRAM 110 where 7 was stored is overwritten.

次に、マスク生成回路152の動作を第3図の回路図を
用いて説明する。マスク生成回路152はレジスタA2
01、レジスタB202、状態発生回路203および1
6個のセレクタ回路204〜208から構成される。シ
フトビット格納部132に格納された先頭ビット数情報
(DBA)、格納ポインタ情報(SBA)および転送ビ
ット長情報(BLEN)が演算回路153に入力され、
ビットマスク信号を作成するためのマスクパターンか生
成される。生成された各マスクパターンがマスク生成回
路152のレジスタA201およびレジスタB202に
与えられ、16個のセレクタ回路204〜208に転送
される。各セレクタ回路には入力端子A−E,Sがあり
、入力端子AにはレジスタA201から、入力端子Bに
はレジスタB202からマスクパターンが入力される。
Next, the operation of the mask generation circuit 152 will be explained using the circuit diagram of FIG. The mask generation circuit 152 is a register A2.
01, register B202, state generation circuit 203 and 1
It is composed of six selector circuits 204-208. The leading bit number information (DBA), storage pointer information (SBA), and transfer bit length information (BLEN) stored in the shift bit storage section 132 are input to the arithmetic circuit 153,
A mask pattern for creating a bit mask signal is generated. Each generated mask pattern is given to register A201 and register B202 of mask generation circuit 152, and transferred to 16 selector circuits 204-208. Each selector circuit has input terminals A-E and S, and input terminal A receives a mask pattern from register A201, and input terminal B receives a mask pattern from register B202.

また、入力端子Sには状態発生回路203からマスクパ
ターン選択のデータが入力される。入力端子Sは図中で
は1本の信号線で表現しているが実際には複数本の信号
線から構成されている。さらに入力端子Cにはレジスタ
A201とレジスタB202に格納されたマスクパター
ンのビットごとの論理積が入力され、入力端子Dには+
5vの電源端子が、入力端子EにはGNDがそれぞれ接
続されている。そして各セレクタ回路では、状態発生回
路203からの指示に基づいて入力端子A〜Eに入力さ
れるマスクパターンA−Eから選択して、合成回路14
2に転送する。
Furthermore, mask pattern selection data is input to the input terminal S from the state generation circuit 203. Although the input terminal S is represented by one signal line in the figure, it actually consists of a plurality of signal lines. Furthermore, the bit-by-bit AND of the mask patterns stored in register A201 and register B202 is input to input terminal C, and +
A 5V power supply terminal is connected to the input terminal E, and GND is connected to the input terminal E. Then, each selector circuit selects from mask patterns A to E input to input terminals A to E based on instructions from the state generation circuit 203, and selects one from the mask patterns A to E input to the input terminals A to E,
Transfer to 2.

次に、第4図〜第7図を用いて、各回路でのデータ処理
について説明する。この例は、16ビットの転送データ
長で読み込まれる第1画像データをVRAMI 1 0
の所望のアドレスの第7ビット目から連続して19ビッ
ト書き込んだ場合の処理である。
Next, data processing in each circuit will be explained using FIGS. 4 to 7. In this example, the first image data read with a transfer data length of 16 bits is transferred to VRAMI 1 0
This is a process in which 19 bits are written consecutively starting from the 7th bit of a desired address.

第4図(a)〜(C)は、ローテーション回路122で
の第1画像データ170のローテーション処理の概念図
である。シフトビット格納部132の先頭ビット数情報
(DBA)には「7」が、画像データ302にはr01
10010001011101」の2進データが格納さ
れている。
4A to 4C are conceptual diagrams of rotation processing of the first image data 170 in the rotation circuit 122. The leading bit number information (DBA) of the shift bit storage unit 132 is “7”, and the image data 302 is r01.
10010001011101" binary data is stored.

ローテーンヨン回路122では7ビット右回転のローテ
ーションが行われ、その結果、画像データ303は下位
9ビットと上位7ビット(データの左端から下位ビット
、右端から上位ビットとする)が入れ替りrl0111
01011001000Jの2進データとなる。
The rotation circuit 122 performs 7-bit clockwise rotation, and as a result, in the image data 303, the lower 9 bits and the upper 7 bits (lower bits from the left end of the data, upper bits from the right end) are exchanged.rl0111
The binary data is 01011001000J.

第5図(a)〜(g)は、画像データシフト回路部12
0てのデータの合成を示す概念図である。
FIGS. 5(a) to 5(g) show the image data shift circuit section 12.
FIG. 2 is a conceptual diagram illustrating the synthesis of zero data.

画像データ402にはデータrabcdJが格納されて
いる。ここでraJと「c」は9ビットのデータを、r
bJとrdJは7ビットのデータを示す。したがって画
像データ402は全体で32ビットの長さのデータとな
る。画像データシフト回路部120に転送される1回の
転送データ長は16ビットなので、この画像データ40
2は2回に分けてローテーション回路122に転送され
る。
Data rabcdJ is stored in the image data 402. Here, raJ and "c" represent 9-bit data, r
bJ and rdJ indicate 7-bit data. Therefore, the image data 402 has a total length of 32 bits. Since the data length of one transfer to the image data shift circuit section 120 is 16 bits, this image data 40
2 is transferred to the rotation circuit 122 in two parts.

先頭ビット数情報(DBA)には「7」が格納されてい
るので、これらの画像データ402は7ビットの右回転
ローテーションが行われ、画像データ403に示すデー
タjbadcJとなる。このデータが第1ラッチ回路1
23、第2ラッチ回路124に第1クロック信号のタイ
ミングで転送される。このときの第2ラッチ回路124
には、1クロック前に第1ラッチ回路123が格納して
いたデータが転送され、第1ラッチ回路123にはロー
テーション回路122の画像データが転送される。これ
らのラッチ回路ではデータ格納の誤動作を発生させない
ために、遅延素子133を用いて第1ラッチ回路123
への転送のタイミングを約2ns遅らせている。このよ
うにして第1ラッチ回路123、第2ラッチ回路124
に格納された画像データは、次にセレクタ回路125で
合成される。セレクタ回路125には画像データ404
、405の内どちらのデータを選択するかのビット単位
の情報がビット制御回路131から入力され、画像デー
タ404、405の中の斜線で示したデータが選択され
て、画像データ407が作成される。この画像データ4
07に示す「ba b c d clが画像データ合成
回路部140に転送される。
Since "7" is stored in the leading bit number information (DBA), these image data 402 are subjected to 7-bit clockwise rotation and become data jbadcJ shown in image data 403. This data is the first latch circuit 1
23, the signal is transferred to the second latch circuit 124 at the timing of the first clock signal. The second latch circuit 124 at this time
, the data stored in the first latch circuit 123 one clock ago is transferred, and the image data of the rotation circuit 122 is transferred to the first latch circuit 123. In order to prevent data storage malfunctions in these latch circuits, a delay element 133 is used to delay the first latch circuit 123.
The timing of transfer to is delayed by about 2 ns. In this way, the first latch circuit 123 and the second latch circuit 124
The image data stored in is then synthesized by a selector circuit 125. Image data 404 is stored in the selector circuit 125.
, 405 is inputted from the bit control circuit 131, and the data indicated by diagonal lines among the image data 404 and 405 is selected to create image data 407. . This image data 4
07 is transferred to the image data synthesis circuit section 140.

第6図(a)〜(g)は、マスク生成回路152でのビ
ットマスク信号の生成を示す概念図である。ビットマス
ク信号は幾つかのマスクパターンを並べたパターン列か
ら構成されている。
FIGS. 6(a) to 6(g) are conceptual diagrams showing the generation of bit mask signals in the mask generation circuit 152. The bit mask signal is composed of a pattern string in which several mask patterns are arranged.

マスクパターンA502はパターン列の末尾部分のマス
クパターンである。下位10ビットに「1」が、上位6
ビットに「0」が詰められており、このマスクパターン
A502を用いれば、下位10ビットに第1画像データ
175を、上位6ビットに第2画像データ176を組み
込んで合成することができる。このマスクパターンA5
02は演算回路153で次のように形成される。演算回
路153には、シフトビット格納部132に格納された
先頭ビット数情報(DBA)と転送ビット長(BLEN
)が与えられる。この例では先頭ビット数情報(DBA
)が「7」、転送ビット長(BLEN)か「19」なの
で、演算回路153はCPU160の指令により、この
情報に基づいて先頭から7ビットシフトした位置から1
9ビットの長さの第1画像データをVRAMI 1 0
に格納できるマスクパターンを形成する。
Mask pattern A502 is a mask pattern at the end of the pattern row. “1” is in the lower 10 bits, and the upper 6 bits are “1”
The bits are filled with "0", and if this mask pattern A502 is used, it is possible to combine the first image data 175 into the lower 10 bits and the second image data 176 into the upper 6 bits. This mask pattern A5
02 is formed by the arithmetic circuit 153 as follows. The arithmetic circuit 153 includes the leading bit number information (DBA) and the transfer bit length (BLEN) stored in the shift bit storage unit 132.
) is given. In this example, the leading bit number information (DBA
) is "7" and the transfer bit length (BLEN) is "19", so the arithmetic circuit 153 receives a command from the CPU 160 and starts from a position shifted by 7 bits from the beginning based on this information.
The first image data with a length of 9 bits is transferred to VRAMI 1 0
Form a mask pattern that can be stored in

次に、マスクパターン8503はパターン列の先頭部分
のマスクパターンである。下位7ビットに「0」が、上
位9ビットに「1」が詰められおり、このマスクパター
ン8503を用いれば、下位7ビットに第2画像データ
176を、上位9ビットに第1画像データ175を組み
込んで合成することができる。
Next, a mask pattern 8503 is a mask pattern at the beginning of the pattern sequence. The lower 7 bits are filled with "0" and the upper 9 bits are filled with "1". If this mask pattern 8503 is used, the lower 7 bits are filled with the second image data 176, and the upper 9 bits are filled with the first image data 175. It can be incorporated and synthesized.

マスクパターンC504はデータ長が16ビット以下の
画像データに使用するマスクパターンで、1つのマスク
パターンでビットマスク信号を構成する。この場合には
、先頭部分と末尾部分とがマスクパターンの前後に備わ
るため、マスクパターンA502とマスクパターンB5
03のビットごとの論理積を取っている。したがって、
第7ビット目から3ビットが「1」で、それ以外のビッ
トは「0」にしている。
Mask pattern C504 is a mask pattern used for image data with a data length of 16 bits or less, and one mask pattern constitutes a bit mask signal. In this case, since the leading portion and the trailing portion are provided before and after the mask pattern, mask pattern A502 and mask pattern B5
03 is logically ANDed for each bit. therefore,
Three bits from the seventh bit are set to "1", and the other bits are set to "0".

マスクパターンD505は第1画像データのみを選択す
るためのマスクパターンで、+5Vの電源端子と接続し
て全ビットに「1」を詰めている。
Mask pattern D505 is a mask pattern for selecting only the first image data, and is connected to a +5V power supply terminal, and all bits are filled with "1".

マスクパターンE506は第2画像データのみを選択す
るためのマスクパターンで、GNDと接続して全ビット
に「0」を詰めている。
Mask pattern E506 is a mask pattern for selecting only the second image data, and is connected to GND and all bits are filled with "0".

状態発生回路203の指示により、これらのマスクパタ
ーンの中からマスクパターンB503、マスクパターン
A502、マスクパターンE506が順に選択されて、
ビットマスク信号507が生成される。
According to instructions from the state generation circuit 203, mask pattern B503, mask pattern A502, and mask pattern E506 are selected in order from among these mask patterns.
A bitmask signal 507 is generated.

第7図(a)〜(e)は、合成回路142でのデータの
合成を示す概念図である。画像データ合成回路部140
に転送された第1画像データ602と、第3ラッチ回路
143に格納された第2画像データ603は第2クロツ
ク信号606のタイミングで合成される。合成処理はマ
スク生成回路152で生成されたビットマスク信号60
4に基づいて、ビット単位で行われる。具体的には、ビ
ットマスク信号604か「0」のビットは第2画像デー
タ603が選択され、ビットマスク信号が「1」のビッ
トは第1画像データ602が選択される。その結果、第
1画像データ602の先頭7ビットと末尾22ビットが
第2画像データ603に置き換えられて、第1画像デー
タ605が生成される。
FIGS. 7(a) to 7(e) are conceptual diagrams showing data synthesis in the synthesis circuit 142. FIG. Image data synthesis circuit section 140
The first image data 602 transferred to the third latch circuit 143 and the second image data 603 stored in the third latch circuit 143 are synthesized at the timing of the second clock signal 606. The synthesis process uses the bit mask signal 60 generated by the mask generation circuit 152.
4, on a bit-by-bit basis. Specifically, the second image data 603 is selected when the bit of the bit mask signal 604 is "0", and the first image data 602 is selected when the bit of the bit mask signal is "1". As a result, the first 7 bits and the last 22 bits of the first image data 602 are replaced with the second image data 603, and the first image data 605 is generated.

次に、別の画像データを使った本実施例のデータの流れ
を示す例を第8図に示す。この例での転送データ長は1
6ビットで、メモリから読み出した第1画像データの第
2ビット目から39ビットのデータを、VRAMIIO
の所望のアドレスの第5ビット目から連続して書き込む
ものである。
Next, FIG. 8 shows an example of the data flow of this embodiment using different image data. In this example, the transfer data length is 1
6 bits, data of 39 bits from the second bit of the first image data read from the memory is transferred to the VRAMIIO.
The data is written continuously starting from the fifth bit of the desired address.

39ビットの画像データを16ビットずつ書き込むので
、全部のデータを書き込むには3回の書き込み操作が必
要である。
Since 39-bit image data is written 16 bits at a time, three write operations are required to write all the data.

まずメモリから読み出した第1画像データ701はロー
テーション回路122を通過する際、ビット制御回路1
31の指示により3ビットのローテーションが行われる
。ここで3ビットなのはVRAMI 1 0に書き込む
位置である5ビットから第1画像データの先頭である2
ビットを引いた数のローテーションが必要だからである
。ローテーション後の第1画像データ702は第1ラッ
チ回路123と第2ラッチ回路124とにそれぞれ格納
される。なお、第2ラッチ回路124で1回目に格納す
る画像データは不定であるので「×」としている。ビッ
ト制御回路131で生成される制御信号704の下位3
ビットには「1」が立っており、二の制御信号704が
セレクタ回路125に与えられる。このセレクタ回路1
25によって第1ラッチ回路123と第2ラッチ回路1
24とにそれぞれ格納された第1画像データ7 (’l
 2と第1画像データ703とが合成される。
First, when the first image data 701 read from the memory passes through the rotation circuit 122, the bit control circuit 1
31 instruction causes 3-bit rotation. Here, the 3 bits are from bit 5, which is the position to be written to VRAMI 1 0, to bit 2, which is the beginning of the first image data.
This is because the number of rotations minus the bits is required. The first image data 702 after rotation is stored in the first latch circuit 123 and the second latch circuit 124, respectively. Note that since the image data stored the first time in the second latch circuit 124 is undefined, it is marked with "x". The lower 3 of the control signal 704 generated by the bit control circuit 131
The bit is set to “1” and the second control signal 704 is applied to the selector circuit 125. This selector circuit 1
25, the first latch circuit 123 and the second latch circuit 1
The first image data 7 ('l
2 and the first image data 703 are combined.

この合成された第1画像データ705が連続して合成回
路142に与えられる。また合成回路142には第3ラ
ッチ回路143に格納された第2画像データ706が与
えられる。これらの画像データはマスク生成回路152
より与えられるビットマスク信号707によって必要な
部分が置き換えられる。ビットマスク信号707は一回
毎にパターンが変わり、状態発生回路203によってマ
スクする状態が決定されて、セレクタ回路204〜20
8のマスクパターンASD,Bが順に選択される。合成
回路142で置き換えられた第1画像データ708は、
VRAM110の任意のアドレスの第5ビット目から連
続して書き込まれる。
This synthesized first image data 705 is continuously supplied to the synthesis circuit 142. Further, the second image data 706 stored in the third latch circuit 143 is supplied to the synthesis circuit 142 . These image data are sent to the mask generation circuit 152.
A necessary portion is replaced by a bit mask signal 707 given by The pattern of the bit mask signal 707 changes every time, the state to be masked is determined by the state generation circuit 203, and the bit mask signal 707 is sent to the selector circuits 204 to 20.
8 mask patterns ASD and B are selected in sequence. The first image data 708 replaced by the synthesis circuit 142 is
Data is written continuously from the fifth bit of an arbitrary address in the VRAM 110.

なお、本実施例の応用例として、画像データシフト回路
部の前後に反転回路を挿入した画像データシフト回路部
801のブロック図を第9図に示す。この応用例の特徴
は、第1反転回路802および第2反転回路803を挿
入して画像データを反転させることにより、アドレスの
低い方から高い方への順方向の連続書き込みばかりでな
く、アドレスの高い方から低い方への逆方向への連続書
き込みも可能となる。この場合、どの方向への転送かと
いうことをDIR信号804によってあらかじめ設定し
ておく必要がある。
As an application example of this embodiment, FIG. 9 shows a block diagram of an image data shift circuit section 801 in which inverting circuits are inserted before and after the image data shift circuit section. The feature of this application example is that by inserting the first inversion circuit 802 and the second inversion circuit 803 to invert the image data, it is possible to not only write sequentially in the forward direction from the lower address to the higher address, but also to Continuous writing in the opposite direction from high to low is also possible. In this case, it is necessary to previously set in which direction the data should be transferred using the DIR signal 804.

また、本実施例の別の応用例として、多彩なビットマス
ク信号を生成することのできるマスク生成回路152の
回路図を第10図に示す。この応用例の特徴は、レジス
タD901にあらかじめ任意のマスクパターンを設定し
ておき、このマスクパターンとセレクタ回路902〜9
04の出力との論理和を論理素子905〜907でとり
、このデータをビットマスク信号とすることである。つ
まり、別に設定したマスクパターンでセレクタ回路90
2〜904から出力されるデータをマスク処理すること
か可能となる。さらに、セレクタ回路902〜904の
入力端子を増やし、多くのレジスタからの人力を可能と
した。例えばセレクタ回路902の人力部分に示すよう
に、マスクパターンの直接入力や論理積、論理和を取っ
た入力などにより、多彩なビットマスク信号の生成か可
能となる。
Further, as another application example of this embodiment, FIG. 10 shows a circuit diagram of a mask generation circuit 152 that can generate various bit mask signals. The feature of this application example is that an arbitrary mask pattern is set in register D901 in advance, and this mask pattern and selector circuits 902 to 9
The logic elements 905 to 907 perform a logical sum with the output of 04, and use this data as a bit mask signal. In other words, the selector circuit 90 uses a separately set mask pattern.
It becomes possible to mask the data output from 2 to 904. Furthermore, the number of input terminals of the selector circuits 902 to 904 was increased to enable manual input from many registers. For example, as shown in the manual portion of the selector circuit 902, it is possible to generate a wide variety of bit mask signals by directly inputting mask patterns, inputting logical products, and inputting logical sums.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明の画像処理装置によれば、
ビットシフト処理およびビットマスク処理がCPUの制
御から離れて各回路で行われる。
As explained above, according to the image processing device of the present invention,
Bit shift processing and bit mask processing are performed in each circuit away from the control of the CPU.

この制御分散によって、CPUの負荷は軽減される。こ
のため処理の高速化が実現できる。
This control distribution reduces the load on the CPU. Therefore, processing speed can be increased.

また、画像データシフト回路部の前後に反転回路を挿入
することによって、アドレスの低い方から高い方への順
方向の連続書き込みばかりでなく、アドレスの高い方か
ら低い方への逆方向への連続書き込みが可能となる。
In addition, by inserting inverting circuits before and after the image data shift circuit, it is possible to not only write sequentially in the forward direction from the lower address to the higher address, but also to write continuously in the reverse direction from the higher address to the lower address. Writing becomes possible.

さらに、複数のマスクパターンの中から所望のマスクパ
ターンを選択するマスク生成回路を用いることによって
、多彩なビットマスク信号の生成が可能となる。
Furthermore, by using a mask generation circuit that selects a desired mask pattern from among a plurality of mask patterns, it is possible to generate a wide variety of bit mask signals.

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

第1図は本発明の一実施例を示す画像処理装置の構成図
、第2図は本実施例の概要を示す概念図、第3図はマス
ク生成回路の回路図、第4図はローテーション回路での
ローテーション処理の概念図、第5図は画像データシフ
ト回路部でのデータの合成を示す概念図、第6図はマス
ク生成回路でのビットマスク信号の生成を示す概念図、
第7図は合成回路でのデータの合成を示す概念図、第8
図は本実施例のデータの流れを示す概念図、第9図は本
実施例の応用例を示すブロック図、第10図は本実施例
の応用例を示す回路図、第11図は従来例の処理の流れ
を示す概念図である。 100・・・画像データメモリ装置、110・・・VR
AM.120・・・画像データシフト回路部、121・
・・ビットシフト部、122・・・ローテーション回路
、123・・・第1ラッチ回路、124・・・第2ラッ
チ回路、125・・・セレクタ回路、131・・・ビッ
ト制御回路、132・・・シフトビット格納部、133
・・・遅延素子、140・・・画像データ合成回路部、
141・・・データ合成部、142・・・合成回路、1
43・・・第3ラッチ回路、151・・・マスク生成部
、152・マスク生成回路、153・・・演算回路、1
60・・・CPU,171〜175・・・第1画像デー
タ、176、177・・・第2画像データ、178・・
・第1画像データ、180、181・・・クロック端子
Fig. 1 is a block diagram of an image processing device showing an embodiment of the present invention, Fig. 2 is a conceptual diagram showing an overview of this embodiment, Fig. 3 is a circuit diagram of a mask generation circuit, and Fig. 4 is a rotation circuit. FIG. 5 is a conceptual diagram showing data synthesis in the image data shift circuit, FIG. 6 is a conceptual diagram showing bit mask signal generation in the mask generation circuit,
Figure 7 is a conceptual diagram showing the synthesis of data in the synthesis circuit;
Figure 9 is a conceptual diagram showing the data flow of this embodiment, Figure 9 is a block diagram showing an application example of this embodiment, Figure 10 is a circuit diagram showing an application example of this embodiment, and Figure 11 is a conventional example. FIG. 2 is a conceptual diagram showing the flow of processing. 100... Image data memory device, 110... VR
A.M. 120... Image data shift circuit section, 121.
...Bit shift section, 122... Rotation circuit, 123... First latch circuit, 124... Second latch circuit, 125... Selector circuit, 131... Bit control circuit, 132... Shift bit storage section, 133
...Delay element, 140... Image data synthesis circuit section,
141... Data synthesis section, 142... Synthesis circuit, 1
43...Third latch circuit, 151...Mask generation section, 152-Mask generation circuit, 153... Arithmetic circuit, 1
60...CPU, 171-175...First image data, 176, 177...Second image data, 178...
- First image data, 180, 181...clock terminal.

Claims (1)

【特許請求の範囲】 1、第1記憶装置に格納された第1画像データを第2記
憶装置に格納された第2画像データと置き換える画像処
理装置において、 前記第2画像データと置き換えるために前記第1画像デ
ータを水平方向にビット単位でシフト処理する画像デー
タシフト回路部と、前記画像データシフト回路部から転
送された前記第1画像データを、前記第2記憶装置から
読み出した前記第2画像データと置き換えて、前記第2
記憶装置の前記第2画像データが格納されていた領域に
格納する画像データ合成回路部と、前記第1記憶装置に
格納された前記第1画像データを読み出して前記画像デ
ータシフト回路部と前記画像データ合成回路部でそれぞ
れデータ処理して前記第2記憶装置に格納するよう指令
を出す制御装置とから構成されることを特徴とする画像
処理装置。2、前記画像データシフト回路部には、前記
第1記憶装置から転送データ長単位で読み出した前記第
1画像データを必要ビット数だけ終端方向にシフトして
、シフトによって生じるはみ出し部分を、次に読み出す
前記第1画像データのシフトによるデータの喪失部分と
置き換えるビットシフト部と、前記ビットシフト回路部
のビットシフト処理を制御するビット制御回路と、前記
ビット制御回路部と前記画像データ合成回路部とに転送
するシフトビット数の情報が格納されたシフトビット格
納部とが備えられることを特徴とする請求項1記載の画
像処理装置。 3、前記画像データ合成回路部には、前記第2記憶装置
から第2画像データを転送データ長単位で読み込んで、
前記画像データシフト回路部より転送された第1画像デ
ータの前後に生じることのある不要データをこの第2画
像データの対応する部分と置き換えて、この置き換え後
の第1画像データを前記第2記憶装置の第2画像データ
が格納されていた領域に書き込むデータ合成部と、マス
クパターンを生成して前記データ回路部に転送するマス
ク生成部とが備えられることを特徴とする請求項2記載
の画像処理装置。 4、転送データ長単位で読み込まれる第1画像データの
上位ビットと下位ビットを反転させて前記画像データシ
フト回路部で処理させるために、前記画像データシフト
回路部の入力部分と出力部分とに一対の転送データ方向
反転回路が備えられている請求項2記載の画像処理装置
。 5、前記マスク生成部は複数のマスクパタ ーンの中から所望のマスクパターンを選択し、このマス
クパターンと別のマスクパターンとの論理和をデータ合
成処理で使用するビットマスクパターンとすることを特
徴とする請求項3記載の画像処理装置。
[Scope of Claims] 1. In an image processing device that replaces first image data stored in a first storage device with second image data stored in a second storage device, in order to replace the second image data with the second image data, the an image data shift circuit that shifts the first image data horizontally bit by bit; and a second image that reads the first image data transferred from the image data shift circuit from the second storage device. replacing the data with the second
an image data synthesis circuit unit that stores the second image data in the area of the storage device where the second image data was stored; and an image data shift circuit unit that reads out the first image data stored in the first storage device; An image processing device comprising: a control device that issues a command to process data in a data synthesis circuit section and store it in the second storage device. 2. The image data shift circuit section shifts the first image data read out from the first storage device in units of transfer data length by the necessary number of bits toward the end, and then removes the protruding portion caused by the shift. a bit shift unit that replaces a portion of data lost due to shifting of the first image data to be read; a bit control circuit that controls bit shift processing of the bit shift circuit unit; the bit control circuit unit and the image data synthesis circuit unit; 2. The image processing apparatus according to claim 1, further comprising a shift bit storage section storing information on the number of shift bits to be transferred. 3. The image data synthesis circuit section reads second image data from the second storage device in transfer data length units;
Unnecessary data that may occur before and after the first image data transferred from the image data shift circuit section is replaced with a corresponding portion of this second image data, and the first image data after this replacement is stored in the second memory. 3. The image according to claim 2, further comprising: a data synthesis section that writes into the area where the second image data of the device was stored; and a mask generation section that generates a mask pattern and transfers it to the data circuit section. Processing equipment. 4. In order to invert the upper bits and lower bits of the first image data read in units of transfer data length and process them in the image data shift circuit, a pair is provided at the input and output parts of the image data shift circuit. 3. The image processing apparatus according to claim 2, further comprising a transfer data direction inversion circuit. 5. The mask generation unit selects a desired mask pattern from among a plurality of mask patterns, and uses a logical sum of this mask pattern and another mask pattern as a bit mask pattern to be used in data synthesis processing. The image processing apparatus according to claim 3.
JP2309025A 1989-11-18 1990-11-15 Picture processor Pending JPH03218577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2309025A JPH03218577A (en) 1989-11-18 1990-11-15 Picture processor

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP1-300186 1989-11-18
JP30018689 1989-11-18
JP1-300187 1989-11-18
JP2309025A JPH03218577A (en) 1989-11-18 1990-11-15 Picture processor

Publications (1)

Publication Number Publication Date
JPH03218577A true JPH03218577A (en) 1991-09-26

Family

ID=26562248

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2309025A Pending JPH03218577A (en) 1989-11-18 1990-11-15 Picture processor

Country Status (1)

Country Link
JP (1) JPH03218577A (en)

Similar Documents

Publication Publication Date Title
CA2012798C (en) Digital image overlay system and method
JPS6125188A (en) Image display unit
US5623624A (en) Memory control architecture for high speed transfer options
JP2500858B2 (en) Display system having extended raster operation circuit
EP0239119B1 (en) Information transferring method and apparatus of transferring information from one memory area to another memory area
US4916746A (en) Image rotation circuit
JPS5831591B2 (en) Pattern display method at arbitrary position
US5486844A (en) Method and apparatus for superimposing displayed images
JPH0282329A (en) Method of transferring data
JPS5952290A (en) Video ram writing controller
JPH03218577A (en) Picture processor
JPS6057593B2 (en) Character pattern processing method
JP3546527B2 (en) Image data rotation processing device
JP3145477B2 (en) Sub screen display circuit
JPH04225453A (en) data processing equipment
JP3247441B2 (en) Image processing device
JP2901631B2 (en) Image processing device
JPH0193868A (en) Data processor
JP2771350B2 (en) Image processing device
JP2605609B2 (en) Dot display processing device
JPS6095482A (en) Rotary image processing system
JPS61250729A (en) Shifter circuit
JPS63253396A (en) display device
JPH0381880A (en) Method for generating pixel mask and graphic processor
JPS6375986A (en) bit map memory system