JPH04205678A - Image information processor - Google Patents

Image information processor

Info

Publication number
JPH04205678A
JPH04205678A JP34039690A JP34039690A JPH04205678A JP H04205678 A JPH04205678 A JP H04205678A JP 34039690 A JP34039690 A JP 34039690A JP 34039690 A JP34039690 A JP 34039690A JP H04205678 A JPH04205678 A JP H04205678A
Authority
JP
Japan
Prior art keywords
data
memory
mask
bits
image information
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
JP34039690A
Other languages
Japanese (ja)
Inventor
Masami Taoda
政美 垰田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP34039690A priority Critical patent/JPH04205678A/en
Publication of JPH04205678A publication Critical patent/JPH04205678A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To allow the change of always the assigned plane alone by moving the access bit position memory data to the top by a barrel shifter even if image data does not begin from the top of the access data of a bit map memory. CONSTITUTION:This device is constituted of a CPU 1, a direct memory access controller 2, a memory section 5, a raster arithmetic processor 6, a magnification and reduction circuit 7, a compression and expansion circuit 8, an optical disk device 9, a scanner 10, a printer 11, and bus controllers 12 to 15. The memory data is rotated to match the position of the mask data even if the data of one picture element extends across the word boundary which is the max. number of the bits to execute data processing and, therefore, the masking processing to the assigned bit is executed even if the constitution of the data changes dynamically. Always the assigned plane alone is changed in this way.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、ビットマツプメモリ上に記憶された画像情報
に対して、論理演算処理や算術演算処理を行ない、新た
な画像情報を作成する画像情報処理装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention performs logical operation processing and arithmetic operation processing on image information stored on a bitmap memory to create a new image. The present invention relates to an image information processing device that creates information.

(従来の技術) 従来、この種の画像情報処理装置は、ビットマツプメモ
リのメモリ構成に合わせたマスクレジスタを備え、演算
を行なった結果の演算データとこの演算データの書き込
みを行なうビットマツプメモリ上のテストネーションデ
ータとの選択信号としてマスクレジスタのデータを用い
ることによって、マスク処理を行なっていた。
(Prior Art) Conventionally, this type of image information processing device has been equipped with a mask register that matches the memory configuration of the bitmap memory, and has been equipped with a mask register that matches the memory configuration of the bitmap memory, and has a mask register that stores the calculated data as a result of the calculation and the bitmap memory to which the calculated data is written. Mask processing was performed by using the data in the mask register as a selection signal with the test nation data.

しかし、マスクレジスタをビットマツプメモリのメモリ
構成に合わせて設定していたため、ビットマツプメモリ
のメモリ構成に依存した一度にアクセス可能なデータバ
ウンダリ内に画素データが納まるような画素構成になっ
ている必要があった。
However, since the mask register was set to match the memory configuration of the bitmap memory, the pixel configuration must be such that the pixel data can fit within a data boundary that can be accessed at once depending on the memory configuration of the bitmap memory. was there.

すなわち、第8図(a)のように、8ビツトのデータ処
理が可能な画像情報処理装置において、1画素を4ビツ
トで構成した場合には、8ビツトのバウンダリ内に画素
データが納まるため、8ビツトのマスクデータを用意す
ることにより、指定したプレーンのみ変更を行なうこと
が可能であるが、第8図(b)のように、1画素を3ビ
ツトで構成した場合には、画素データが8ビツトのデー
タバウンダリをまたがる場合があり、マスクデータをそ
のままメモリデータに合わせて使用すると、指定したプ
レーンのみの変更ができないという問題があった。
That is, as shown in FIG. 8(a), in an image information processing device capable of processing 8-bit data, if one pixel is composed of 4 bits, the pixel data will fit within the 8-bit boundary. By preparing 8-bit mask data, it is possible to change only the specified plane, but if one pixel is composed of 3 bits as shown in Figure 8(b), the pixel data There are cases where an 8-bit data boundary is crossed, and if the mask data is used as is in accordance with the memory data, there is a problem that only the specified plane cannot be changed.

(発明が解決しようとする課題) 従来は上述したように、マスクレジスタをビットマツプ
メモリのメモリ構成に合わせた一度にアクセス可能なデ
ータバウンダリ内に画素データを納めなければならなか
った。また、画素データが一度にアクセス可能なデータ
バウンダリ内に納まらない場合において、マスクデータ
をそのままメモリデータに合わせて使用すると、指定し
たプレーンのみの変更ができないという問題があった。
(Problems to be Solved by the Invention) Conventionally, as described above, pixel data had to be stored within a data boundary that could be accessed at once by matching the mask register to the memory configuration of the bitmap memory. Furthermore, when the pixel data does not fit within a data boundary that can be accessed at once, there is a problem in that if the mask data is used as is in conjunction with the memory data, only the designated plane cannot be changed.

そこで、本発明は、マスクレジスタをビットマツプメモ
リのメモリ構成に合わすことなく、また、−度にアクセ
ス可能なデータバウンダリ内に画素データが納まるよう
な画素構成になっていない場合でも、指定したプレーン
のみ変更することができる画像情報処理装置を提供する
ことを目的とする。
Therefore, the present invention allows you to use a specified plane without adjusting the mask register to the memory configuration of the bitmap memory, and even if the pixel configuration does not allow pixel data to fit within the data boundary that can be accessed at any time. An object of the present invention is to provide an image information processing device that can only change the image information processing device.

[発明の構成コ (課題を解決するための手段) 本発明の画像情報処理装置は、入力される画像情報を記
憶する記憶手段と、この記憶手段で記憶した画像情報に
対して演算を行なう演算手段と、指定した前記画像情報
に対してのみ演算処理し、他の画像情報の変更は行なわ
ないようにマスク処理を行なうマスクデータを格納する
格納手段と、前記演算手段における演算結果と前記記憶
手段に記憶された画像情報とを選択し、マスクデータに
よって指定されたビットには前記記憶手段の画像情報を
変更しないようにする選択手段とを具備している。
[Configuration of the Invention (Means for Solving the Problems) The image information processing device of the present invention includes a storage means for storing input image information, and an operation for performing calculations on the image information stored in the storage means. means, a storage means for storing mask data for performing a masking process such that only the specified image information is subjected to arithmetic processing and no other image information is changed; and the arithmetic results of the arithmetic means and the storage means. and selecting means for selecting the image information stored in the storage means and for not changing the image information in the storage means for bits designated by the mask data.

(作用) 本発明の画像情報処理装置によれば、上記の手段により
画素データがビットマツプメモリのアクセスデータの先
頭から始まっていない場合でも、バレルシフタによって
、メモリデータのアクセスビット位置を先頭に移動でき
るため、マスク処理が可能となり、ダイナミックにアク
セスビット位置が変化しても指定したプレーンのみに変
更を行なうことができる。
(Function) According to the image information processing device of the present invention, even if the pixel data does not start from the beginning of the access data of the bitmap memory by the above means, the access bit position of the memory data can be moved to the beginning by the barrel shifter. Therefore, mask processing becomes possible, and even if the access bit position changes dynamically, only the specified plane can be changed.

(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は、本発明に係る画像情報処理装置の構成を概略
的に示すものである。すなわち、シスチー 5 = ム全体の制御を行なうCPUI、メモリ転送を行なうダ
イレクトメモリアクセスコントローラ2、表示用のフレ
ームメモリである表示メモリ3とプログラムデータやイ
メージデータを格納するメインメモリ4とで構成される
メモリ部5、表示メモリ3の内容を表示するデイスプレ
ィ3 a % ビットアクセスが可能でありイメージデ
ータに対して種々の演算か可能であるラスク演算プロセ
ッサ6、イメージデータの拡大縮小処理を行なう拡大縮
小回路7、イメージデータの圧縮伸長を行なう圧縮伸長
回路8、圧縮したイメージデータを記憶する光デイスク
装置9、文書画像を読取るスキャナ10、イメージデー
タを出力するプリンタ11、バス間の制御を行なうバス
コントローラ(B/C)12.1B、14,1.5によ
り構成されている。
FIG. 1 schematically shows the configuration of an image information processing apparatus according to the present invention. In other words, the system system 5 consists of a CPU that controls the entire system, a direct memory access controller 2 that performs memory transfer, a display memory 3 that is a frame memory for display, and a main memory 4 that stores program data and image data. A memory unit 5, a display 3 that displays the contents of the display memory 3, a rask arithmetic processor 6 that can access bits and perform various operations on image data, and a scaling circuit that scales up and down the image data. 7, a compression/expansion circuit 8 that compresses and expands image data, an optical disk device 9 that stores compressed image data, a scanner 10 that reads document images, a printer 11 that outputs image data, and a bus controller that controls between buses ( B/C) 12.1B, 14, 1.5.

このような構成において、スキャナ10によって読取ら
れたイメージデ〜りは、バスコントローラ14、ラスク
演算プロセッサ6を介してメモリ部5の表示メモリ3あ
るいはメインメモリ4に格納される。メモリ部5に格納
されたイメージデー夕は、ラスク演算プロセッサ6の機
能を用いて画像の編集処理が可能である。さらに、高品
位な拡大縮小を行なうには、メモリ部5よりイメージデ
ータを読出し、ラスク演算プロセッサ6を介して、拡大
縮小回路7にて拡大縮小処理を行ない、再び、ラスク演
算プロセッサ6を介してメモリ部5に書き込むことによ
り可能である。メモリ部5に格納されたイメージデータ
をプリントアウトするには、ラスク演算プロセッサ6が
メモリ部5よりイメージデータを読出し、バスコントロ
ーラ14を介してプリンタ11に出力することにより実
行される。
In such a configuration, image data read by the scanner 10 is stored in the display memory 3 or main memory 4 of the memory unit 5 via the bus controller 14 and the rask calculation processor 6. The image data stored in the memory section 5 can be edited using the functions of the rask calculation processor 6. Furthermore, in order to perform high-quality scaling, the image data is read out from the memory section 5, passed through the rask arithmetic processor 6, enlarged/reduced by the enlarging/reducing circuit 7, and then read out again via the rask arithmetic processor 6. This is possible by writing into the memory section 5. Printing out the image data stored in the memory section 5 is executed by the rask calculation processor 6 reading the image data from the memory section 5 and outputting it to the printer 11 via the bus controller 14.

次に、イメージ処理を行なうラスク演算プロセッサ6に
ついて、第2図を用いて詳細に説明する。
Next, the rask arithmetic processor 6 that performs image processing will be explained in detail with reference to FIG.

ラスク演算プロセッサ6は、拡大縮小回路7や圧縮伸長
回路8が接続されたイメージバスとのインターフェース
制御を行なうイメージインターフェース(I/F)20
.パターン描画、コピー、データ交換等のシーケンス制
御を行なう描画シーケンサ21、メモリへアクセスする
ためのアドレスを生成するアドレス発生器22、アドレ
ス発生器22によって任意のビットアドレスでアクセス
されたイメージデータに対して、種々の演算処理等を行
なうことができる演算処理部23、メモリ部5とのイン
ターフェースを行なうメモリインターフェース(I/F
)24、ラスタ演算プロセツザ6の全体の制御を行なう
コントローラ25により構成されている。
The Rask calculation processor 6 has an image interface (I/F) 20 that performs interface control with an image bus to which a scaling circuit 7 and a compression/expansion circuit 8 are connected.
.. A drawing sequencer 21 that performs sequence control of pattern drawing, copying, data exchange, etc., an address generator 22 that generates addresses for accessing memory, and image data accessed by an arbitrary bit address by the address generator 22. , an arithmetic processing unit 23 that can perform various arithmetic processes, etc., and a memory interface (I/F) that interfaces with the memory unit 5.
) 24, and a controller 25 for controlling the entire raster arithmetic processor 6.

このような構成において、イメージインターフェース2
0より入力されたイメージデータは、アドレス発生器2
2によって生成されるアドレスが示すメモリ部5の格納
場所へ演算処理部23、メモリインターフェース24を
介して書き込まれる。
In such a configuration, the image interface 2
The image data input from 0 is sent to address generator 2.
The address generated by 2 is written to the storage location of the memory unit 5 indicated by the address through the arithmetic processing unit 23 and the memory interface 24.

この時のイメージデータは、任意のビットアドレスに書
き込みが可能であるため、メモリ部5に対してリードモ
ディファイライト処理を行なう。すなわち、アドレス発
生器22の示すワードアドレスのデータを一度メモリ部
5より読出して演算処理部23に取り込み、イメージイ
ンターフェース20より入力されたデータと演算処理お
よびマスキング処理を行なって、再びメモリ部5に書き
込む。このように動作させることによって、任意のビッ
トアドレスの位置からのデータ処理が可能となる。
Since the image data at this time can be written to any bit address, read-modify-write processing is performed on the memory section 5. That is, the data at the word address indicated by the address generator 22 is once read out from the memory section 5, taken into the arithmetic processing section 23, subjected to arithmetic processing and masking processing with the data input from the image interface 20, and then read back into the memory section 5. Write. By operating in this manner, data processing can be performed from any bit address position.

次に、演算処理部23について第3図を用いて詳細に説
明する。演算処理部23は、論理演算処理を行なう論理
演算部30.算術演算処理をおこなう算術演算部31、
論理演算部30と算術演算部31の結果を選択するセレ
クタ32、メモリ部5からのデータをラッチするラッチ
部33、ラッチ部33にラッチされたメモリデータをア
ドレス発生器22のオフセットアドレスに従ってローテ
ィトし、アクセスされたビットを0ビツト目の位置に移
動するバレルシフタ34、バレルシフタ34からのロー
ティト後のメモリデータか演算処理結果のデータかを選
択し、マスキング処理を行なうための制御信号を生成す
るマスク処理部35、マスク処理部35からマスクデー
タによりバレルシフタ34にてローティトされたメモリ
データとセレクタ32によって選択された演算結果の選
択とを行なうセレクタ36、セレクタ36によって選択
されたマスキング処理をされたデータを、アドレス発生
器22からのオフセットアドレスに従ってローティトし
、データをメモリ上の位置に戻すバレルシフタ37、パ
ターンデータを記憶するパターンRAM38、メモリ部
5より読出し、演算処理を行なったデータを一時演算処
理部23内部に記憶するレジスタ39、イメージインタ
ーフェース20より入力されたイメージデータとレジス
タ39に記憶されたデータとの選択を行なうセレクタ4
0、バッファ41.42.43.44により構成される
Next, the arithmetic processing section 23 will be explained in detail using FIG. 3. The arithmetic processing unit 23 includes a logic arithmetic unit 30 . an arithmetic operation unit 31 that performs arithmetic operation processing;
A selector 32 selects the results of the logical operation section 30 and the arithmetic operation section 31, a latch section 33 that latches data from the memory section 5, and rotates the memory data latched in the latch section 33 according to the offset address of the address generator 22. , a barrel shifter 34 that moves the accessed bit to the 0th bit position, and a masking process that selects either the memory data after rotation from the barrel shifter 34 or the data of the arithmetic processing result, and generates a control signal for performing masking processing. A selector 36 selects between the memory data rotated by the barrel shifter 34 and the operation result selected by the selector 32 based on the mask data from the mask processing unit 35, and the data subjected to the masking process selected by the selector 36. , a barrel shifter 37 that rotates according to the offset address from the address generator 22 and returns the data to a position on the memory, a pattern RAM 38 that stores pattern data, a temporary arithmetic processing section 23 that reads data read from the memory section 5 and performs arithmetic processing on the data. a register 39 stored internally; a selector 4 for selecting between image data input from the image interface 20 and data stored in the register 39;
0, buffers 41, 42, 43, and 44.

このような構成において論理演算部30は、ソースデー
タすなわち、イメージインターフェース20より入力さ
れたデータかあるいは内部のレジスタ39にラッチされ
たデータのいずれかと、デストネーションのデータすな
わちメモリ部5のデータと、パターンRAM38に記憶
されたパターンデータとの間で3項演算か可能である。
In such a configuration, the logical operation unit 30 uses source data, that is, data input from the image interface 20 or data latched in the internal register 39, destination data, that is, data in the memory unit 5, A ternary operation is possible with the pattern data stored in the pattern RAM 38.

また、算術演算部31は、前記のデータのうちの2つの
データに対する2項演算が可能である。ここで、メモリ
データは、8ビットで第7図上部のようになっていると
すると、アドレス発生器22からのオフセットアドレス
(ビットアドレスの下位アドレス)により、バレルシフ
タ37にて第7図の下部のようにアクセスアドレスのデ
ータをOビット目に合わすようにローティトが行なわれ
、論理演算部30および算術演算部31に入力される。
Furthermore, the arithmetic operation section 31 is capable of performing binary operations on two of the data described above. Here, assuming that the memory data is 8 bits as shown in the upper part of FIG. 7, the offset address (lower address of the bit address) from the address generator 22 causes the barrel shifter 37 to Rotation is performed so that the data of the access address is aligned with the Oth bit, and is input to the logic operation section 30 and the arithmetic operation section 31.

次に、マスク処理部35について第4図を用いて詳細に
説明する。本実施例では、説明を簡単にするため演算処
理部23のデータ処理を最大8ビツトとする。したがっ
て、メモリに一度にアクセス可能なデータは最大8ビツ
トである。すなわち、マスクデータレジスタ50は、8
ビツトのデータレジスタであり、CPUIよりセット可
能になっている。マスクデータは、「1」のときマスク
処理がなされ、「0」の箇所には演算結果が使用される
。ここで、マスクデータレジスタ50には、アドレス発
生器22が指し示すビットアドレス位置からの最大8ビ
ツトのマスクデータをセットするものとする。アクセス
マスク生成部52は、−11= オフセットアドレスとアクセス幅から実際にアクセスす
るビット以外のビットに対してマスキング処理を行なう
マスクを生成するブロックである。
Next, the mask processing section 35 will be explained in detail using FIG. 4. In this embodiment, in order to simplify the explanation, data processing by the arithmetic processing section 23 is assumed to be 8 bits at maximum. Therefore, the maximum amount of data that can be accessed in memory at one time is 8 bits. That is, the mask data register 50 has 8
This is a bit data register and can be set by the CPU. Mask processing is performed when the mask data is "1", and the calculation result is used for "0". Here, it is assumed that a maximum of 8 bits of mask data from the bit address position indicated by the address generator 22 is set in the mask data register 50. The access mask generation unit 52 is a block that generates a mask that performs masking processing on bits other than the bits that are actually accessed from the −11=offset address and access width.

第5図は、アクセスマスク生成部52にて生成されるマ
スクデータを説明するもので、第5図(a)の場合、す
なわち、オフセットアドレスが「2」、アクセス幅が「
3」、アドレス切換信号がrLJの場合にはOビット目
から4ビツトが「0」となって、マスク処理がされず、
データ処理が可能となる。ここで、アドレス切換信号は
、メモリ上の次の8ビツトを示す信号である。したがっ
て、アドレス切換信号がrHJの場合には、アクセス幅
が「3」で4ビットであるため、次の8ビツトにはアク
セスが及ばず、全てrコJとなる。
FIG. 5 explains the mask data generated by the access mask generation unit 52. In the case of FIG. 5(a), the offset address is "2" and the access width is "2".
3", when the address switching signal is rLJ, the 4th bit from the 0th bit becomes "0" and no mask processing is performed.
Data processing becomes possible. Here, the address switching signal is a signal indicating the next 8 bits on the memory. Therefore, when the address switching signal is rHJ, the access width is "3" and is 4 bits, so the next 8 bits are not accessed and all are rJ.

次に、第5図(b)の場合、すなわちアクセス幅が「7
」で8ビツトアクセスの場合、アクセスマスク生成部5
2において生成されるマスクデータは、アドレス切換信
号がrLJのとき、θビット目からの6ビツトが「0」
であり、アドレス切換信号がrHJの場合には、6ビツ
ト目と7ビツト目が「0」となって、データ処理が可能
となる。
Next, in the case of FIG. 5(b), that is, the access width is "7".
”, in the case of 8-bit access, the access mask generation unit 5
In the mask data generated in step 2, when the address switching signal is rLJ, the 6th bit from the θ-th bit is “0”.
When the address switching signal is rHJ, the 6th and 7th bits become "0" and data processing becomes possible.

そして、最終マスクデータは、マスクデータレジスタ5
0に格納されたマスクデータとアクセスマスク生成部5
2にて生成されたマスクデータをオア回路53でとった
データを使用し、セレクタ36にて「0」のピッI・に
対しては、演算処理後のデータを選択し、「1」の場合
には、ラッチ部33にラッチされ、バレルシフタ34に
てローティトされたデータを選択することにより、マス
キング処理を行なう。
Then, the final mask data is stored in the mask data register 5.
Mask data stored in 0 and access mask generation unit 5
Using the data taken by the OR circuit 53 from the mask data generated in step 2, the selector 36 selects the data after the arithmetic processing for the "0" bit I. In this case, masking processing is performed by selecting data latched by the latch unit 33 and rotated by the barrel shifter 34.

ここで、マスクデータレジスタ50にセットするマスク
データの目的は、第8図(a)に示すように、例えば、
カラー画像を扱い、メモリ構成をパックドピクセル構成
にし、]画素を4ビット構成、1プレーンを1ビツトと
したときに、メモリアクセスすると、メモリへアクセス
した8ビツト中には2画素分のデータが含まれ、アクセ
ス幅を8ビツトとしてアクセスすると、8ビツト全てを
新しいデータにしてしまう。しかしながら、ある指定し
たプレーンのみ変更したい場合には、マスクデータを用
いることにより、マスクデータによって指定されたプレ
ーンのみの書換えが可能となる。また、従来例において
は、第8図(b)に示すように1画素3ビツトとした場
合、1画素が2ワ一ド間(ここでは、1ワード=8ビッ
ト)にまたがっている場合があり、このとき、マスクデ
ータは、そのまま1ワードの8ビツトに対してかけられ
るため、指定したプレーン(1画素のOビット1」)に
マスキング処理を施すことができない。
Here, the purpose of the mask data set in the mask data register 50 is, for example, as shown in FIG. 8(a).
When handling a color image, the memory configuration is a packed pixel configuration, the pixel is 4 bits, and 1 plane is 1 bit, when the memory is accessed, the 8 bits accessed to memory will contain data for 2 pixels. If the access width is set to 8 bits, all 8 bits become new data. However, if it is desired to change only a certain specified plane, by using mask data, it becomes possible to rewrite only the plane specified by the mask data. Furthermore, in the conventional example, when one pixel has three bits as shown in FIG. 8(b), one pixel may span two words (here, one word = 8 bits). At this time, since the mask data is directly applied to the 8 bits of one word, the specified plane (O bit 1 of one pixel) cannot be subjected to masking processing.

しかしながら、本発明により、メモリデータをラッチし
た後にバレルシフタを設け、オフセットアドレスにした
かって、メモリデータのローティトを行ない、このデー
タと演算結果でマスクデータによりマスキング処理を行
なうことにより、第6図に示すように、指定プレーンに
正確にマスキング処理が可能となる。すなわち、1アク
セスが8ビツトのメモリ構成のメモリにおいて、1画素
3ビツトでイメージデータを処理する場合、2画素単位
の処理が可能である。このとき、マスクデ−タレジスタ
には、1画素中の0プレーン目を「0」として、0プレ
ーン目を書き換えるようにマスクの設定を行なう。第6
図の(A)の場合、オフセットアドレスが「0」である
ため、メモリデータのローティトは行なわず、マスク処
理を行なう。ここで、6ビツトのアクセスであるため、
アクセス幅は「5」で6ビツトのアクセスとなり、アク
セスマスク生成部52においては先頭の6ビツトに対し
て「0」が生成される。したがって、最終的なマスクデ
ータは、0ビツト目と3ビツト目が「0」となって、こ
の部分のビットが「1」となり、メモリ部5へ書かれる
。次に、第6図の(B)の場合には、オフセットアドレ
スが6であるため、メモリ部5から読み出されたデータ
がバレルシフタ34にて6ビツトローテイトされる。
However, according to the present invention, a barrel shifter is provided after the memory data is latched, the memory data is rotated to make it an offset address, and masking processing is performed using mask data using this data and the calculation result, as shown in FIG. As such, masking processing can be performed accurately on the designated plane. That is, when processing image data using 3 bits per pixel in a memory configured to allow 8 bits per access, processing is possible in units of 2 pixels. At this time, a mask is set in the mask data register so that the 0th plane in one pixel is set to "0" and the 0th plane is rewritten. 6th
In the case of (A) in the figure, since the offset address is "0", the memory data is not rotated but masked. Here, since it is a 6-bit access,
The access width is "5", which is a 6-bit access, and the access mask generation section 52 generates "0" for the first 6 bits. Therefore, in the final mask data, the 0th and 3rd bits become "0", the bits in this part become "1", and are written to the memory section 5. Next, in the case of (B) in FIG. 6, since the offset address is 6, the data read from the memory section 5 is rotated by 6 bits by the barrel shifter 34.

ここで、メモリに対しては第6図の(a)の8ビツトし
かアクセスできないため、第6図の(a)の6ビツト目
と7ビツト1」に対してまず処理を行ない、次に、アド
レス切換信号をrHJとして次の8ビツトである第6図
の(b)の8ビツトに対して処理を行なう。この時は、
アクセスマスク生成部52によって生成されたマスクデ
ータによって、メモリの0ビット目から4ビツトに対し
て処理がなされる。以上のことを繰り返し行なうことに
より、1画素のデータが2つのメモリアドレス間にまた
がった場合においても、指定したプレーンにマスク処理
を行なうことが可能となる。
Here, since only the 8 bits shown in FIG. 6(a) can be accessed to the memory, processing is first performed on the 6th bit and 7th bit "1" shown in FIG. 6(a), and then, Using the address switching signal rHJ, processing is performed on the next 8 bits, 8 bits shown in FIG. 6(b). At this time,
Using the mask data generated by the access mask generation section 52, processing is performed on 4 bits from the 0th bit of the memory. By repeating the above steps, even if one pixel data spans two memory addresses, it is possible to perform mask processing on a designated plane.

以上説明したように上記実施例によれば、1画素のデー
タがデータ処理を行なう最大ビット数であるワード境界
にまたがった場合においても、メモリデータをローティ
l−してマスクデータの位置に合わせるため、データの
構成がダイナミックに変化しても指定したビットにマス
キング処理を行なうことができる。したがって、カラー
画像等を扱った場合のデータ処理に有効である。さらに
、1画素のビット数を1ビツト、2ビット、4ビツト、
8ビツト、16ビツト、32ビツトと2のべき乗にする
必要がないため、フルカラーを扱う場合においても、R
,GSB、各8ビツトの1画素24ビットとじてメモリ
を構成できるため、メモリ容量を減らせることができる
As explained above, according to the above embodiment, even if one pixel data straddles a word boundary, which is the maximum number of bits for data processing, the memory data is rotated to match the position of the mask data. , it is possible to perform masking processing on specified bits even if the data structure changes dynamically. Therefore, it is effective for data processing when handling color images and the like. Furthermore, the number of bits in one pixel can be changed to 1 bit, 2 bits, 4 bits,
Since there is no need to use 8 bits, 16 bits, and 32 bits to a power of 2, R
, GSB, 8 bits each, making it possible to configure the memory with 24 bits per pixel, so the memory capacity can be reduced.

[発明の効果コ 以上詳述したように本発明によれば、マスクレジスタを
ビットマツプメモリのメモリ構成に合わすことなく、ま
た、−度にアクセス可能なデータバウンダリ内に画素デ
ータが納まるような画素構成になっていない場合でも、
指定したプレーンのみ変更することができる画像情報処
理装置を提供することができる。
[Effects of the Invention] As described in detail above, according to the present invention, the mask register does not need to match the memory structure of the bitmap memory, and the pixel data can be stored within the data boundary that can be accessed at every time. Even if it is not configured,
An image information processing device that can change only a designated plane can be provided.

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

第1図ないし第7図は本発明の一実施例を説明するため
のもので、第1図は画像情報処理装置の全体的な構成を
概略的に示すブロック図、第2図はラスク演算プロセッ
サの構成を示すブロック図、第3図はラスク演算プロセ
ッサ内の演算処理部の構成を示すブロック図、第4図は
ラスク演算プロセッサ内のマスク処理部の構成を示すブ
ロック図、第5図はアクセスマスク生成部にて生成され
るマスクデータを説明するための図、第6図はマスクデ
ータとメモリのデータ処理との関係を説明する− 17
 = だめの図、第7図はメモリのデータをローティトするこ
とを説明するための図、第8図は従来のマスク処理を説
明するための図である。 1・・・CPU、2・・・ダイレクトメモリアクセスコ
ントローラ、3・・・表示メモリ、4・・・メインメモ
リ、5・・・メモリ部、6・・・ラスク演算プロセッザ
、7・拡大縮小回路、8・・・圧縮伸長回路、9・・・
光デイスク装置、10・・・スキャナ、11・・・プリ
ンタ、12゜13.14.15・・・バスコントローラ
、20・・・イメージインターフェース、21・・・描
画シーケンサ、22・・・アドレス発生器、23・・・
演算処理部、24・・・メモリインターフェース、25
・・・コントローラ、30・・・論理演算部、31・・
・算術演算部、32゜35.40・・・セレクタ、33
.37・・・バレルシフタ、34・・・ラッチ部、36
・・・マスク処理部、38・・・パターンRAM、39
・・・レジスタ、4]、42゜43.44・・・バッフ
ァ、50・・・マスクデータレマスク、51・・・バレ
ルシフタ、52・・・アクセスマスク生成部、53・・
・オア回路。 OCp   寸 I+J         實・′ \      :1ト 工        」       工メモリ了りtス
単位 第8 (b) 図
1 to 7 are for explaining one embodiment of the present invention. FIG. 1 is a block diagram schematically showing the overall configuration of an image information processing device, and FIG. 2 is a rask calculation processor. 3 is a block diagram showing the configuration of the arithmetic processing section in the rask arithmetic processor, FIG. 4 is a block diagram showing the structure of the mask processing section in the rask arithmetic processor, and FIG. 5 is an access FIG. 6 is a diagram for explaining the mask data generated by the mask generation unit, and explains the relationship between the mask data and data processing in the memory.
7 is a diagram for explaining the rotation of memory data, and FIG. 8 is a diagram for explaining conventional mask processing. DESCRIPTION OF SYMBOLS 1...CPU, 2...Direct memory access controller, 3...Display memory, 4...Main memory, 5...Memory section, 6...Rusk calculation processor, 7. Enlarging/reducing circuit, 8... Compression/expansion circuit, 9...
Optical disk device, 10...Scanner, 11...Printer, 12゜13.14.15...Bus controller, 20...Image interface, 21...Drawing sequencer, 22...Address generator , 23...
Arithmetic processing unit, 24...Memory interface, 25
...Controller, 30...Logic operation section, 31...
・Arithmetic operation section, 32゜35.40...Selector, 33
.. 37...Barrel shifter, 34...Latch portion, 36
...Mask processing unit, 38...Pattern RAM, 39
...Register, 4], 42°43.44...Buffer, 50...Mask data remask, 51...Barrel shifter, 52...Access mask generation unit, 53...
・OR circuit. OCp Dimension I + J Actual ' \ : 1 t.'

Claims (2)

【特許請求の範囲】[Claims] (1)入力される画像情報を記憶する記憶手段と、 この記憶手段に記憶された画像情報に対して所定の演算
を行なう演算手段と、 指定したビットに対してのみ演算処理を行ない、他のビ
ットに対しては画像情報の変更は行なわないようにマス
ク処理を行なうマスクデータを格納する格納手段と、 前記演算手段における演算結果と前記記憶手段に記憶さ
れた画像情報とを選択し、前記マスクデータによって指
定されたビットには前記記憶手段の画像情報を変更しな
いようにする選択手段と、を具備したことを特徴とする
画像情報処理装置。
(1) A storage means for storing input image information, an arithmetic means for performing predetermined operations on the image information stored in this storage means, and an operation means for performing arithmetic processing only on specified bits and for other operations. a storage means for storing mask data that performs mask processing so that image information is not changed for bits; a calculation result in the calculation means and image information stored in the storage means; An image information processing apparatus comprising: a selection means for not changing the image information in the storage means for bits designated by data.
(2)前記格納手段に記憶されたマスクデータは、画素
の先頭から始まるものであり、メモリ上のデータをアク
セスビット位置が先頭になるようにローテイトを行なう
バレルシフタを備え、このバレルシフタを経由した後の
データと前記演算結果とを前記選択手段にて前記マスク
データにより選択することを特徴とする請求項1記載の
画像情報処理装置。
(2) The mask data stored in the storage means starts from the beginning of the pixel, and includes a barrel shifter that rotates the data on the memory so that the access bit position becomes the beginning, and after passing through the barrel shifter, 2. The image information processing apparatus according to claim 1, wherein the selection means selects the data and the calculation result using the mask data.
JP34039690A 1990-11-30 1990-11-30 Image information processor Pending JPH04205678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34039690A JPH04205678A (en) 1990-11-30 1990-11-30 Image information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34039690A JPH04205678A (en) 1990-11-30 1990-11-30 Image information processor

Publications (1)

Publication Number Publication Date
JPH04205678A true JPH04205678A (en) 1992-07-27

Family

ID=18336553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34039690A Pending JPH04205678A (en) 1990-11-30 1990-11-30 Image information processor

Country Status (1)

Country Link
JP (1) JPH04205678A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5664224A (en) * 1993-07-23 1997-09-02 Escom Ag Apparatus for selectively loading data blocks from CD-ROM disks to buffer segments using DMA operations

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5664224A (en) * 1993-07-23 1997-09-02 Escom Ag Apparatus for selectively loading data blocks from CD-ROM disks to buffer segments using DMA operations

Similar Documents

Publication Publication Date Title
US5299309A (en) Fast graphics control system capable of simultaneously storing and executing graphics commands
JPH0375873B2 (en)
US5678037A (en) Hardware graphics accelerator system and method therefor
JPS6267632A (en) Method and apparatus for transferring data to display unit from memory
JPH04205678A (en) Image information processor
JPS63108381A (en) Raster computation circuit
KR100472478B1 (en) Method and apparatus for controlling memory access
JPH06149533A (en) Segment quick plotting system for reducing plotting processing for segment outside display area
EP0284905B1 (en) Display system
JPH04205679A (en) Image information processor
JPH0728991A (en) Data processing circuit using memory
JP2656754B2 (en) Image data processing apparatus and system using the same
JPS62113193A (en) Memory circuit
JP2898000B2 (en) Character data expansion processor
JPH05189581A (en) Graphic data write device
JPS60254378A (en) Transfer device of information
JPS62245376A (en) Display memory circuit
JP2000013679A (en) Image processor
JPS63197289A (en) Logical circuit for expansion for color form of monochroic video pattern and video controller having the same
JPH06187405A (en) Picture data processor and system using this processor
JPH02105264A (en) Memory device for processing graphic data
JPS61264381A (en) Memory circuit
JPH07129460A (en) Method and device for processing image
JPH01204094A (en) Image memory device
JPS63100579A (en) Address generator for image memory in image editing device