JPH0477941A - Picture controller - Google Patents

Picture controller

Info

Publication number
JPH0477941A
JPH0477941A JP19082790A JP19082790A JPH0477941A JP H0477941 A JPH0477941 A JP H0477941A JP 19082790 A JP19082790 A JP 19082790A JP 19082790 A JP19082790 A JP 19082790A JP H0477941 A JPH0477941 A JP H0477941A
Authority
JP
Japan
Prior art keywords
image data
data
address
display
section
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
JP19082790A
Other languages
Japanese (ja)
Inventor
Noboru Yokoyama
登 横山
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP19082790A priority Critical patent/JPH0477941A/en
Publication of JPH0477941A publication Critical patent/JPH0477941A/en
Priority to US08/100,347 priority patent/US5381163A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Image Input (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 information processing device, and more particularly to an image control device that stores image data and controls display of the image.

[従来の技術] 従来、画像データを記憶し、その画像の表示を制御する
画像制御装置は第11図に示すように構成されていた。
[Prior Art] Conventionally, an image control device that stores image data and controls the display of the image has been configured as shown in FIG.

説明のため、この画像制御装置の画像データ入出力単位
は8ビツトであり、画像データは1画素1ビツトとする
。記憶部101の記憶アドレス先頭を0番地(バス・マ
スクから見たアドレスは、これにオフセット・アドレス
が加算される)とすると、二次元のマトリックス構造を
もつ画像データは、第12図に示すように、左上端から
8画素毎に列方向に記憶部101の0番地から1行分、
col、end番地まで、順に格納される。次に、2行
目の画像データが、pitch番地から(pitch 
+co1.end )番地まで格納される。以下同様に
して、最後の行(row、end)の画像デー夕まで、
記憶部101に格納される。ここで、般には、pitc
h≧co1.endである。通常、ソフトウェアでのア
ドレスの扱い易さやハードウェアの周辺回路の簡単化の
ため、pitchの値ば2のべき乗の数値(=2”)が
用いられる。
For the sake of explanation, it is assumed that the image data input/output unit of this image control device is 8 bits, and the image data is 1 pixel and 1 bit. Assuming that the beginning of the memory address of the memory unit 101 is address 0 (the address seen from the bus mask has an offset address added thereto), the image data having a two-dimensional matrix structure is as shown in FIG. , one row from address 0 of the storage unit 101 in the column direction every 8 pixels from the upper left corner,
The data is stored in order up to the col and end addresses. Next, the image data in the second line starts from the pitch address (pitch
+co1. end ) address is stored. Similarly, until the image data of the last row (row, end),
It is stored in the storage unit 101. Here, in general, pitc
h≧co1. It is end. Normally, in order to make it easier to handle addresses in software and to simplify peripheral circuits in hardware, a value that is a power of 2 (=2'') is used as the pitch value.

従って、第12図が示すように0から数えてy行目の、
8画素単位で0から数えてX番目のデータが格納されて
いる記憶部のアドレスは(pitchX y + X 
)番地となる。このように記憶アドレスを定義すると、
表示装置制御部102で発生する記憶部に対するアドレ
スは、水平方向をカウントするカウンタと垂直方向をカ
ウントするカウンタのそれぞれの出力を単に連結するだ
けでよく演算回路が必要ない。
Therefore, as shown in Figure 12, the y-th row counting from 0,
The address of the storage section where the Xth data is stored counting from 0 in units of 8 pixels is (pitchX y +
) becomes the address. Defining the storage address like this,
The address for the storage unit generated by the display device control unit 102 can be obtained by simply connecting the respective outputs of a counter that counts in the horizontal direction and a counter that counts in the vertical direction, and no arithmetic circuit is required.

次に、画像データを、例えば、ラスタ・スキャン方式の
CRTデイスプレィ(以下、CRTという)をもつ表示
装置に伝送する手順について説明する。ラスタ・スキャ
ン方式による画像データ表示の場合、一般に、CRTを
左から右へ走査しなから1画素づつ表示し、右端に達し
た時表示なしに左端に戻り、これを繰り返し1ラインず
つ上から下へと表示していくという順序をとる。このよ
うな走査において、左右方向の走査のタイミングは、水
平同期信号(以下、H3YNC信号という)を基準とし
ている。左右方向の走査を続けながら、走査がCRT最
下部に達したら、表示を行うことなくCRT最上部に走
査を戻し、以降、これを繰り返す。この上下方向の走査
のタイミングは、垂直同期信号(以下、VSYNC信号
という)を基準としている。第13図は、この走査の様
子を模式的に示したものである。また、第13図におい
て、実線は表示しながらの走査で、点線は表示しない状
態での走査を示す。第14図と第15図とは、それぞれ
、表示装置制御部102と表示装置I/F部103のブ
ロック図である。表示装置制御部102では、VSYN
C信号で、垂直方向カウンタ132をクリアし、続<H
3YNC信号で、水平方向カウンタ131をクリアする
。表示装置I/F部103のLOAD信号は、表示装置
制御部102に送られ、この信号を基に、表示可能信号
を発生し、アドレス・セレクタ部104を表示時のアド
レスに切り換え、かつ、表示データ要求信号を発生し、
記憶部101に画像データの転送要求を行う。一方、表
示装置I/F部103では、表示装置の同期信号である
VSYNC信号、H5YNC信号、及び非表示期間を示
すブランク信号を発生し、かつ、記憶部から送られる画
像表示データ(ここでは、8画素)をロード信号(以下
、LOAD信号という)で、パラレル・シリアル変換器
141にラッチし、シリアライズされたデータを表示装
置に送る。ここで、左右方向走査に関する非表示期間を
示すブランク信号をHBLANK信号、上下方向に関す
るものをVBLANK信号という。第16図は、画像デ
ータを表示するため、CRTを走査する制御信号のタイ
ムチャートを表す図である。さらに、第17図には、表
示開始時の1ライン走査の制御タイミングを詳細に表す
タイムチャートを示す。
Next, a procedure for transmitting image data to a display device having, for example, a raster scan type CRT display (hereinafter referred to as CRT) will be explained. When displaying image data using the raster scan method, generally the CRT is scanned from left to right and displayed one pixel at a time, and when the right end is reached, it returns to the left end without displaying, and this is repeated one line at a time from top to bottom. The order is as follows. In such scanning, the timing of horizontal scanning is based on a horizontal synchronization signal (hereinafter referred to as H3YNC signal). While continuing scanning in the left and right direction, when the scanning reaches the bottom of the CRT, the scanning returns to the top of the CRT without displaying, and this process is repeated thereafter. The timing of this vertical scanning is based on a vertical synchronization signal (hereinafter referred to as a VSYNC signal). FIG. 13 schematically shows the state of this scanning. Further, in FIG. 13, solid lines indicate scanning while displaying, and dotted lines indicate scanning without displaying. FIG. 14 and FIG. 15 are block diagrams of the display device control section 102 and the display device I/F section 103, respectively. In the display device control unit 102, VSYN
C signal clears the vertical counter 132 and continues <H
The horizontal direction counter 131 is cleared by the 3YNC signal. The LOAD signal of the display device I/F section 103 is sent to the display device control section 102, which generates a display enable signal based on this signal, switches the address selector section 104 to the address for display, and generates a data request signal;
A request is made to the storage unit 101 to transfer image data. On the other hand, the display device I/F unit 103 generates a VSYNC signal, a H5YNC signal, which is a synchronization signal of the display device, and a blank signal indicating a non-display period, and also generates image display data sent from the storage unit (here, 8 pixels) is latched into the parallel-to-serial converter 141 using a load signal (hereinafter referred to as LOAD signal), and the serialized data is sent to the display device. Here, a blank signal indicating a non-display period related to horizontal direction scanning is referred to as an HBLANK signal, and a blank signal related to the vertical direction is referred to as a VBLANK signal. FIG. 16 is a diagram showing a time chart of control signals for scanning a CRT to display image data. Furthermore, FIG. 17 shows a time chart showing in detail the control timing of one line scan at the start of display.

前述の二つのカウンタ(水平方向カウンタと垂直方向カ
ウンタ)の出力は連結し、アドレス・セレクタ部104
を介して、記憶部101に記憶アドレスを提供する。ま
ず、表示開始時には記憶部101のアドレスは0番地が
セットされる。そのとき、バス制御部105に、表示デ
ータ要求信号が送られると、バス制御部105から記憶
部101に制御信号が送られ、0番地に格納された画像
データ左上端の8画素が表示データとして表示装置1/
Fm103に送られる。次の表示データ要求信号オンの
タイミングで、水平方向カウンタ131のみインクリメ
ントされ、記憶部の1番地に格納された画像データが、
表示データとして表示装置に送られる。以下、同様にし
て、HBLANK信号がオンとなるまで画像データの伝
送が繰り返される。そして、HBLANK信号がオンと
なった時点で1行分の画像データの表示が完了したこと
になる。次のH5YNC信号の発生で、表示装置制御部
102では、水平方向カウンタ131はクリアされ、垂
直方向カウンタ132はインクリメントされ、次の行の
画像データ転送が開始される。記憶部101には、アド
レスとして(pit−chX]、)番地が送られ、記憶
部101からは、2行目の画像データが表示データとし
て出力される。このように、H5YNC信号毎に、1行
分の画像データが表示装置に送られる。最終行の最後の
データが送られると、VBLANK信号がオンとなり、
次のVSYNC信号で、また再び、CRT左上端から走
査を開始し、以下、これを繰り返す。
The outputs of the two counters (horizontal counter and vertical counter) are connected and sent to address selector section 104.
A storage address is provided to the storage unit 101 via. First, at the start of display, the address of the storage unit 101 is set to 0. At that time, when a display data request signal is sent to the bus control unit 105, a control signal is sent from the bus control unit 105 to the storage unit 101, and the upper left 8 pixels of the image data stored at address 0 are displayed as display data. Display device 1/
Sent to Fm103. At the next display data request signal ON timing, only the horizontal direction counter 131 is incremented, and the image data stored at address 1 in the storage section is
The data is sent to the display device as display data. Thereafter, image data transmission is repeated in the same manner until the HBLANK signal is turned on. Then, when the HBLANK signal turns on, the display of one line of image data is completed. Upon generation of the next H5YNC signal, in the display device control unit 102, the horizontal counter 131 is cleared, the vertical counter 132 is incremented, and image data transfer of the next row is started. The address (pit-chX], ) is sent to the storage unit 101 as an address, and the image data on the second line is output from the storage unit 101 as display data. In this way, one line of image data is sent to the display device for each H5YNC signal. When the last data of the last row is sent, the VBLANK signal turns on,
At the next VSYNC signal, scanning is started again from the upper left corner of the CRT, and this is repeated thereafter.

[発明が解決しようとする課題] しかしながら、上記従来例では、画像データ1行分の読
み出しをH3YNC信号のタイミングに合わせていたた
め、縦長型CRTを採用した場合、CRT画面のチラッ
キを抑えるために、横長型CRTと同じVSYNC信号
周波数で走査を続けようとすると、HSYNC信号周波
数を高く設定する必要があった。しかし、H3YNC信
号周波数を高くすると、それに合わせて画像データの記
憶部からの読み出しを速くする必要があり、このことは
、結果として記憶部に高速メモリの採用を余儀なくして
いた。さらに、H3YNC信号を高周波化することは、
CRT内の偏向ヨーク(電子銃より放出される電子を偏
向させるために磁界を制御するコイル)に流れる電流を
増大させ、発熱や部品のランクアップの問題を生じさせ
ることにもなる。このため、縦長型CRTは高価なもの
になるという欠点があった。
[Problems to be Solved by the Invention] However, in the above conventional example, the reading of one line of image data was synchronized with the timing of the H3YNC signal, so when a vertical CRT is adopted, in order to suppress flickering on the CRT screen, In order to continue scanning at the same VSYNC signal frequency as that of a horizontal CRT, it was necessary to set the HSYNC signal frequency high. However, when the H3YNC signal frequency is increased, it is necessary to read out image data from the storage section faster, and as a result, it is necessary to use a high-speed memory for the storage section. Furthermore, increasing the frequency of the H3YNC signal is
This increases the current flowing through the deflection yoke (a coil that controls the magnetic field to deflect the electrons emitted from the electron gun) in the CRT, causing problems such as heat generation and an increase in the rank of components. For this reason, the vertically elongated CRT has the drawback of being expensive.

本発明は上記従来例に鑑みてなされたもので、簡単な構
成で画像データを効率的に入出力できる画像制御装置を
提供することを目的とする。
The present invention has been made in view of the above conventional example, and an object of the present invention is to provide an image control device that can efficiently input and output image data with a simple configuration.

[課題を解決するための手段] 上記目的を達成するために本発明の画像制御装置は、以
下の様な構成からなる。すなわち、画像データを記憶し
、前記画像データの入出力を制御する画像制御装置であ
って、前記画像データを記憶する記憶手段と、前記画像
データ入出力の際に、前記画像データのアドレスの一部
に従い前記画像データを並べ換える入出力データ並べ換
え手段と、前記画像データ表示時、前記記憶手段から前
記画像データの読み出し方向を変化させて読み出すよう
指示する指示手段と、前記指示手段の指示に従って、前
記記憶手段のアドレスを発生するアドレス生成手段と、
前記画像データ表示時に前記記憶手段より読み出した画
像データを前記指示手段の指示に従い並べ換える表示デ
ータ並べ換え手段とを有することを特徴とする画像制御
装置を備える。
[Means for Solving the Problems] In order to achieve the above object, an image control device of the present invention has the following configuration. That is, the image control device stores image data and controls the input/output of the image data, and includes a storage means for storing the image data, and one address of the image data when inputting/outputting the image data. input/output data rearranging means for rearranging the image data according to the section, instruction means for instructing to change the reading direction of the image data from the storage means when displaying the image data, and following instructions from the instruction means, address generation means for generating an address of the storage means;
and a display data rearranging means for rearranging the image data read from the storage means in accordance with instructions from the instruction means when displaying the image data.

[作用] 以上の構成により、本発明は、画像データを記憶部に書
き込む際に、各行ごとに並べ換えて記憶させ、記憶部か
ら画像データを読み出す際に、記憶部のアドレスを生成
し、読み出されたデータを並べ換えることにより、各列
ごとに表示データを得ることができるよう動作する。
[Function] With the above configuration, the present invention rearranges and stores image data for each line when writing it to the storage section, and generates an address of the storage section when reading out the image data from the storage section. By sorting the displayed data, display data can be obtained for each column.

[実施例] 以下、添付図面を参照して本発明の好適な実施例を詳細
に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本発明の代表的な実施例である入出力データの
単位が8ビツトの画像制御装置を示すブロック図である
。第1図において、CPUやグラフィック・コントロー
ラ、イメージ・プロセッサなどのバス・マスクを1、画
像データを記憶する記憶部を2、バス・マスタエのアド
レスや制御信号から記憶部2などの制御信号を生成する
バス制御部を3、バス・マスタ1のアクセス時のデータ
をアドレスの一部に従い並べ換える入出力データ並べ換
え部を4、記憶部2から表示装置に送るために読み出す
時のアドレス、その時読み出されたデータの並べ換え信
号及びその他表示時の制御信号を生成する表示装置制御
部を5、バス・マスタ1のアクセス時のアドレスと表示
時に表示装置制御部5で生成されるアドレスを切り換え
るアドレス・セレクタ部を6、表示装置に送るために記
憶部2から読み出されたデータを表示装置制御部5の並
べ換え信号に従い並べ換える表示データ並べ換え部を7
、そして、表示装置の制御信号を発生し、表示装置との
インタフェースをとる表示装置I/F部を8としている
FIG. 1 is a block diagram showing an image control device in which the unit of input/output data is 8 bits, which is a typical embodiment of the present invention. In Figure 1, 1 is a bus mask for the CPU, graphic controller, image processor, etc., 2 is a storage section that stores image data, and generates control signals for storage section 2 etc. from bus master addresses and control signals. 3, an input/output data sorting unit that sorts the data when accessed by the bus master 1 according to a part of the address; A display device control section 5 generates a rearrangement signal for the data and other control signals during display, and an address selector switches between an address during access by the bus master 1 and an address generated by the display device control section 5 during display. 6, a display data rearrangement unit 7 for rearranging the data read from the storage unit 2 in accordance with a rearrangement signal from the display device control unit 5 in order to send it to the display device;
, and a display device I/F unit 8 that generates control signals for the display device and interfaces with the display device.

本実施例においては、画像処理装置の記憶部2の各部分
(#7〜#0)をそれぞれ2メガビツト(1メガビツト
=1048576 (=2”)ビツト)として説明する
。さらに、画像データは1画素1ビツトであるとし1人
8力単位に対して各ビットの入出力が記憶部#7〜#0
にそれぞれ割り当てられているとする。このような場合
、記憶部2に格納される画像データの格納場所を表すア
ドレス八〇は、記憶部2の各部分(#7〜#0)の容量
が2メガビツト(〜2”ビット)であるため、21ビツ
トの長さで表現できる。いま、このアドレスAI、の各
ビットを、Ago〜Aoとする。
In this embodiment, each part (#7 to #0) of the storage unit 2 of the image processing device will be explained as having 2 megabits (1 megabit = 1048576 (=2'') bits). Assuming that it is 1 bit, the input and output of each bit is stored in storage units #7 to #0 for each person's 8-power unit.
Assume that each is assigned to In such a case, the address 80 representing the storage location of the image data stored in the storage unit 2 indicates that each part (#7 to #0) of the storage unit 2 has a capacity of 2 megabits (~2” bits). Therefore, it can be expressed with a length of 21 bits.Let each bit of this address AI be Ago to Ao.

また、本実施例における記憶部2の全記憶容量は2メガ
ビツトx8=16メガビツトとなるので、例えば、40
96画素(横)X4096ライン(縦)の構成で1画素
1ビツトの画像データを扱うことができる。
Further, the total storage capacity of the storage unit 2 in this embodiment is 2 megabits x 8 = 16 megabits, so for example, 40 megabits.
With a configuration of 96 pixels (horizontal) x 4096 lines (vertical), image data of 1 pixel and 1 bit can be handled.

次に第2図(A)が示すように、1画素1ビツト、40
96画素(横)x4096ライン(縦)で構成される画
像データ全体を、8ラインx8画素単位にブロック化し
て考えると、第2図(B)が示すように、アドレスA、
lの内部構成を、A。
Next, as shown in FIG. 2(A), 1 pixel, 1 bit, 40
If the entire image data consisting of 96 pixels (horizontal) x 4096 lines (vertical) is divided into blocks of 8 lines x 8 pixels, as shown in Figure 2 (B), addresses A,
The internal configuration of l is shown in A.

〜Aoで各列のブロックアドレスを、A x o ” 
A l tで各行のブロックアドレスを、そして各ブロ
ック内の8行の各ラインアドレスをA、〜A、でそれぞ
れ表現するよう組むことができる。ここで、特に、A8
〜Ao、A2o〜AI□、A、、 〜A9をそれぞれ、
M B CA 8〜0 (Memory Block 
ColumnAddress  :メモリブロック列ア
ドレス)、MBRA 8〜O(Memory Bloc
k Row Address :メモリブロック行アド
レス) 、 MLNA2〜O(MemoryBlock
 LiNe Address:メモリブロックラインア
ドレス)と呼ぶことにする。バス・マスタ1が記憶2を
アクセスする時には、このM B CA nとMBRA
nはアドレス・セレクタ部6を通してそのまま記憶部2
のB CA n (Block Column Add
ress ニブロック列アドレス) 、 B RA n
 (Block RowAddress  ニブロック
行アドレス)に供給され、MBCAn=BCAn%MB
RAn=BRAnとなる。また、MLNAnは記憶部2
の各部分のMAn(メモリアドレス)に共通に供給され
る。
~Ao is the block address of each column, A x o ”
The block address of each row can be represented by Al t, and each line address of eight rows in each block can be represented by A, ~A, respectively. Here, in particular, A8
~Ao, A2o~AI□, A,, ~A9, respectively,
M B CA 8~0 (Memory Block
ColumnAddress: Memory block column address), MBRA 8~O (Memory Block column address)
k Row Address: Memory block row address), MLNA2~O (MemoryBlock
It will be called LiNe Address (memory block line address). When bus master 1 accesses memory 2, this MB CA n and MBRA
n is passed through the address selector section 6 to the storage section 2 as it is.
B CA n (Block Column Add
ress Ni block column address), B RA n
(Block RowAddress), MBCAn=BCAn%MB
RAn=BRAn. In addition, MLNAn is the storage unit 2
It is commonly supplied to MAn (memory address) of each part.

このような記憶部2において、縦長方向の画像を表示す
る場合には、第3図のように記憶部2の■の部分を使用
し、また、横長方向の画像を表示するには■の部分を使
用すれば良い。
In such a storage section 2, when displaying an image in the vertical direction, the section marked ■ of the storage section 2 is used as shown in Figure 3, and when displaying an image in the horizontal direction, the section marked ■ is used. You can use .

まず、最初にバス・マスタ1が、画像データを入出力す
る場合について考える。本実施例ではバス・マスタ1の
扱う画像データはM L N A nに従い、第4図(
A)に示す入出力データ並べ換え部4内のビットスワツ
パ41で並べ換えられて記憶部に対して読み出し、書き
込みが行われる。ここで、バス・マスタlの扱う表示デ
ータの8画素は、最上位ビットをB7、最下位ビットな
りOとして、入出力データ並べ換え部4を通して読み書
きされるものとする。並べ換え方法は種々の方法が適用
できるが、ここでは、第4図(B)に示す論理式で表さ
れる並べ換え方法を考える。このような並べ換え方法に
従うなら、ピットスワツパ41は、8個の8→1(8個
の入力から1個を選択する)データセレクタで構成され
る回路となる。
First, let us consider the case where the bus master 1 inputs and outputs image data. In this embodiment, the image data handled by the bus master 1 follows M L N A n as shown in FIG.
The bit swapper 41 in the input/output data rearranging unit 4 shown in A) rearranges the data, and the data is read from and written to the storage unit. Here, it is assumed that eight pixels of display data handled by bus master I are read and written through input/output data sorting section 4 with the most significant bit being B7 and the least significant bit being O. Although various methods can be applied to the rearrangement, a rearrangement method expressed by the logical formula shown in FIG. 4(B) will be considered here. If such a rearrangement method is followed, the pit swapper 41 will be a circuit composed of eight 8->1 (selecting one from eight inputs) data selectors.

これは入力42 (in?、in6.in5.in4.
in3.in2.inl。
This is input 42 (in?, in6.in5.in4.
in3. in2. inl.

LnO)から入力されたデータ(b7.b6.b5.b
4.b3゜b2.bl、bO)が、並べ換え指定44 
(S2.Sl、5(1) テ指定された並べ換え方法に
従って並べ換えられ、8力43 (out7.out6
.out5.out4.out3.out2゜outL
、outO)に出力されるものである。このとき、並べ
換え指定44 (S2.SL、SO)によって指定され
る並べ換えは、は次の通りである。ここで説明の都合上
、各並べ換えに対して、swapS2 SI S。
Data input from LnO) (b7.b6.b5.b
4. b3゜b2. bl, bO) is the sort specification 44
(S2.Sl, 5(1) TE is sorted according to the specified sorting method, 8 force 43 (out7.out6
.. out5. out4. out3. out2゜outL
, outO). At this time, the rearrangement specified by the rearrangement specification 44 (S2.SL, SO) is as follows. For convenience of explanation here, for each permutation, swapS2 SIS.

(S2 SI Soはそれぞれ0もしくは1の値が入る
(S2 SI So each has a value of 0 or 1.

但し、swapoooは並べ換え無しを意味する)と名
前をつける。
However, name it "swapooo" (meaning no sorting).

(S2.Sl、So) = (0,0,0)の時、(b
7.b6.b5.b4.b3.b2.bl、bo) :
swapooo(S2.Sl、So) = (0,0,
1)の時、(b6.b7.b4.b5.b2.b3.b
O,bl)  :swapOol(S2.Sl、SO)
 = (0,1,0)の時、(b5.b4.b7.b6
.bl、bO,b3.b2)  :swapolo(S
2.Sl、SO) = (0,1,1)の時、(b4.
b5.b6.b7.bO,bl、b2.b3)  :s
wapoll(S2.Sl、SO) = (1,0,0
)の時、(b3.b2.bl、bO,b7.b6.b5
.b4)  :swaplOO(S2.Sl、SO) 
= (1,0,1)の時、(b2.b3.b[)、bl
、b6.b7.b4.b5)  :5vaplO1(S
2.SL、So) = (1,1,0)の時、(bl、
bo、b3.b2.b5.b4.b7.b6)  :s
wapH0(S2.SL、So) = (1,1,1)
の時、(bo、bl、b2.b3.b4.b5.b6.
b7)  :swapHl第5図は入出力並べ換え部4
の構成を示すブロック図である。前述の並べ換えswa
pS2 SI Soは2回行なうと元に戻る性質がある
ことから、この入出力並べ換え部4においては、前述の
並べ換えswapS2 SI SOに従う同じピットス
ワツパ51.52を用いている。このような場合、バス
・マスタ1が書き込むデータは、入出力データ並べ換え
部4において、swapS2 SI SOに従って並べ
換えられて記憶部2に記憶され、そのデータをバス・マ
スタ1が読み出す際には入出力データ並べ換え部4でも
う一度swaps2 SI Soに従って並べ換えられ
て読み出される。このようにして、書き込んだ時と同じ
データが読み出される。従って、バス・マスタ1は通常
のメモリと金(同様にアクセスできる。また、別の並べ
換え方法を採用した場合、例えば、入力の際の並べ換え
方法として、(、S2.Sl。
When (S2.Sl, So) = (0, 0, 0), (b
7. b6. b5. b4. b3. b2. bl, bo):
swapoo(S2.Sl, So) = (0,0,
1), (b6.b7.b4.b5.b2.b3.b
O,bl) :swapOol(S2.Sl,SO)
= (0,1,0), (b5.b4.b7.b6
.. bl, bO, b3. b2) :swapolo(S
2. When (Sl, SO) = (0, 1, 1), (b4.
b5. b6. b7. bO, bl, b2. b3) :s
wapoll(S2.Sl,SO) = (1,0,0
), (b3.b2.bl, bO, b7.b6.b5
.. b4) :swaplOO(S2.Sl, SO)
= (1,0,1), (b2.b3.b[), bl
, b6. b7. b4. b5) :5vaplO1(S
2. When SL, So) = (1, 1, 0), (bl,
bo, b3. b2. b5. b4. b7. b6) :s
wapH0(S2.SL, So) = (1,1,1)
When (bo, bl, b2.b3.b4.b5.b6.
b7) :swapHl Figure 5 shows input/output sorting section 4
FIG. 2 is a block diagram showing the configuration of FIG. The aforementioned reordering swa
Since pS2 SI So has the property of returning to its original state after being performed twice, this input/output rearrangement section 4 uses the same pit swappers 51 and 52 that follow the above-mentioned rearrangement swapS2 SI SO. In such a case, the data written by the bus master 1 is rearranged in the input/output data rearranging section 4 according to swapS2 SI SO and stored in the storage section 2, and when the bus master 1 reads the data, the input/output The data rearrangement unit 4 rearranges the data again according to swaps2 SI So and reads it out. In this way, the same data as written is read out. Therefore, the bus master 1 can access the normal memory and the memory (S2.Sl.

SO) = (0,0,0)の時はOビット、(0,0
,1,)の時は1ビツト、((+、1.0 )の時は2
ビツト、以下同様にして(1,1,1)の時は7ビツト
それぞれ圧にローテーションさせるとすると、出力の際
の並べ換え方法としては右にローテーションさせる方法
を用いなければならない。このような場合には、入力、
出力の並べ換え方法が異なるが、要はバス・マスタ1か
ら見て記憶部2に書き込んだデータと同じデータが読み
出せるように入出力データ並べ換え部4を設計すれば良
い。バス・マスク1が、画像データを前述の並べ換えs
wapS2SI SOに従って1ブロツク(8画素×8
ライン)書き込んだ時の記憶部2の内部記憶の様子を第
6図に示す。
SO) = (0,0,0), O bit, (0,0
, 1,) is 1 bit, and ((+, 1.0) is 2 bits.
Similarly, if the 7 bits are rotated in the same way when the bits are (1, 1, 1), then a method of rotating them to the right must be used as a sorting method during output. In such a case, input
Although the method of rearranging the outputs is different, the input/output data rearranging section 4 should be designed so that the same data written in the storage section 2 as seen from the bus master 1 can be read out. Bus mask 1 reorders the image data as described above.
wapS2SI 1 block (8 pixels x 8 pixels) according to SO
FIG. 6 shows the state of internal storage in the storage unit 2 when writing (line).

次に、記憶部2に書き込まれた画像データを読み出して
表示する制御について説明する。第7図(A)及び第7
図(B)に表示装置制御部5の構成を示す。この表示装
置制御部5は縦長型CRTを表示装置として制御できる
よう動作する。このとき、表示装置制御部5は、第8図
に示すように縦長型CRTを縦方向に下から上へ水平走
査するよう制御するので、垂直方向カウンタ71は、タ
ウン・カウントとなり、HSYNC信号がオンとなるご
とにリセットされる。また、表示装置制御部5は、縦長
型CRTを左から右へ垂直走査するよう制御するので、
水平方向カウンタ72は、アップ・カウントとなり、H
5YNC信号がオンとなるごとにインクリメントされ、
VSYNC信号によりリセットされる。それらカウンタ
出力を用いて記憶部2に対するアドレスと表示データ並
べ換え部7に対する並べ換えの指定を行う。この場合、
表示装置I/F部8やバス制御部3に対する制御信号は
従来と同じなので、表示装置I/F部8とバス制御部3
とは従来と同じものを用いることができる。
Next, control for reading and displaying image data written in the storage section 2 will be explained. Figure 7 (A) and Figure 7
Figure (B) shows the configuration of the display device control section 5. This display device control section 5 operates to control a vertically elongated CRT as a display device. At this time, the display device control unit 5 controls the vertically long CRT to horizontally scan from bottom to top as shown in FIG. 8, so the vertical counter 71 becomes a town count and the HSYNC signal is It is reset every time it is turned on. Furthermore, since the display device control unit 5 controls the vertically long CRT to scan vertically from left to right,
The horizontal counter 72 counts up and reaches H
It is incremented every time the 5YNC signal turns on,
Reset by VSYNC signal. Using these counter outputs, an address for the storage section 2 and a rearrangement for the display data rearrangement section 7 are specified. in this case,
Since the control signals for the display device I/F section 8 and the bus control section 3 are the same as before, the display device I/F section 8 and the bus control section 3
can be the same as before.

画像データの読み出しは、最初に画像データ1ブロツク
(8画素×8ライン)について、次に、lブロックの内
部について説明する。垂直方向カウンタ71では表示デ
ータ出力の垂直方向(8画素単位)アドレスをカウント
するので、垂直カウンタ出力(VCNT8〜O)は表示
画面上の画像データ1ブロツク(8画素×8ライン)ブ
ロック行アドレスを指定する。これに対して、水平方向
カウンタ72では表示データ出力の水平方向(1ライン
単位)をカウントするので、水平カウンタ出力の一部(
HCN72〜0)は表示画面上の画像データ1ブロツク
(8画素×8ライン)ブロック列アドレスを指定する。
Regarding the reading of image data, first one block of image data (8 pixels x 8 lines) will be explained, and then the inside of one block will be explained. Since the vertical direction counter 71 counts the vertical direction (8 pixel unit) address of the display data output, the vertical counter output (VCNT8 to O) corresponds to the block row address of one block (8 pixels x 8 lines) of image data on the display screen. specify. On the other hand, since the horizontal direction counter 72 counts the horizontal direction (in units of one line) of the display data output, a part of the horizontal counter output (
HCN72-0) specifies the block column address of one block (8 pixels x 8 lines) of image data on the display screen.

また、水平カウンタ出力の残り(HCN72〜0)は画
像データ1ブロツク内の列数な指定する。ここで、40
96画素X4096ライン、1画素1ビツトのブロック
化された画像データを縦型CRT表示するために、水平
カウンタ出力(HCN72〜0)と垂直カウンタ出力(
VCNT8〜0)から、表示ブロック列アドレス(DB
CA8〜0)、表示ブロック行アドレス(DBRA8〜
O)及び表示ブロック内列数(DLNA2〜0)を第9
図(A)に示すように定義する。即ち、VCNT8〜0
=DBRA8〜0、HCNTII〜3=DBCA8〜0
、HCNT2〜0=DLNA2〜0である。また、第9
図(B)にはDMA2〜0、DMA2〜0及びDLNA
2〜0と表示データの対応関係を示す。前述の説明から
れかるように、垂直方向カウンタがHSYNC信号によ
り制御され、水平方向カウンタがVSYNC信号により
制御されることにより、画像データlブロック(8画素
×8ライン)単位で、行方向に1列分づつH8YNC信
号のタイミングにあわせて読み出されることになるので
、CRT画面の下から上へ走査を繰り返し、その走査を
左から右へ行うことによって画像データの表示が行われ
る。
Further, the remaining horizontal counter outputs (HCN72-0) are designated as the number of columns within one block of image data. Here, 40
In order to display blocked image data of 96 pixels x 4096 lines and 1 bit per pixel on a vertical CRT, horizontal counter outputs (HCN72 to 0) and vertical counter outputs (
VCNT8~0) to display block column address (DB
CA8~0), display block row address (DBRA8~
O) and the number of columns in the display block (DLNA2 to 0) as the 9th
Define as shown in Figure (A). That is, VCNT8~0
=DBRA8~0, HCNTII~3=DBCA8~0
, HCNT2-0=DLNA2-0. Also, the 9th
Figure (B) shows DMA2-0, DMA2-0 and DLNA.
The correspondence relationship between 2 to 0 and display data is shown. As can be seen from the above description, the vertical counter is controlled by the HSYNC signal, and the horizontal counter is controlled by the VSYNC signal, so that one block of image data (8 pixels x 8 lines) is processed in the row direction. Since each column is read out in accordance with the timing of the H8YNC signal, the image data is displayed by repeatedly scanning from the bottom to the top of the CRT screen and then from left to right.

次に、画像データ1ブロツク(8画素×8ライン)内部
について考える。第7図(B)が示すように、記憶部2
の画像データブロック内部の行の指定は、HCNT2〜
0で行われる。表示装置制御部5でHCNT2〜0を基
に出力される表示データ記憶アドレス(Display
 data Memory Add−ress:DMA
2〜0)は、アドレス・セレクタ部6を介して記憶部2
にMA2〜Oとして供給される。第10図(A)に、H
CNT2〜0とMA2〜Oの関係を示す。第10図(A
)から明らかなように、MA2〜0は各記憶部(#7〜
#0)で異なるものとなる。このことは、第10図(B
)の91に示すブロックの内部状態の各画素の右上の添
数字で示される。例えば、HCNT2〜0=(0,0,
0)の時は、その添数字がOの部分が読み出されるので
、第10図(B)の92に示すように表示データ並べ換
え部7の入力の1行目のデータは、それらを並べたもの
となっている。以下、)(CNT2〜o= (o、o、
i >〜(1,1,1)ついても同様である。表示装置
制御部5の表示データ並べ換え部7に対する並べ換え指
定(S2. Sl、 SO)は、HCNT2〜Oの各ビ
ットを反転したものとなるので、第10図の93が示す
ように、表示データ並べ換え部7の出力は、第6図の6
1で示した元の入力画像データ1ブロツクに対して、時
計回りに902回転させたもののようになる。また、先
に定義したようにHCNT2〜0=DLNA2〜0なの
で、DLNA2〜0により画像データブロック内のデー
タアドレス指定ができる。しかし、DMA2〜0はブロ
ック内列数として定義されていることを考慮すると、画
像データはブロック内で第1列、第2列、・・・、第8
列と配列し直されて読み出されることになる。このこと
は、言い換えると、反時計回りに90゛回転して読み出
していることになる。ここで、表示データ並べ換え部7
の出力が、元の入力画像データブロックに対して、時計
回りに90゛回転していることを考慮すると、DLNA
2〜0によって列数指定を行って読み出した画像データ
は元と同じ画像データとなって読み出されることになる
Next, consider the inside of one block of image data (8 pixels x 8 lines). As shown in FIG. 7(B), the storage unit 2
Specify the rows inside the image data block of HCNT2~
It is done with 0. The display data storage address (Display
data Memory Add-res: DMA
2 to 0) are sent to the storage unit 2 via the address selector unit 6.
is supplied as MA2-O. In FIG. 10(A), H
The relationship between CNT2-0 and MA2-O is shown. Figure 10 (A
), MA2 to MA0 are connected to each memory section (#7 to
#0) will be different. This is shown in Figure 10 (B
) is indicated by the subscript number on the upper right of each pixel of the internal state of the block shown in 91. For example, HCNT2~0=(0,0,
0), the part whose subscript number is O is read out, so the data in the first line of the input to the display data sorting section 7 is the arrangement of these parts, as shown at 92 in FIG. 10(B). It becomes. Hereinafter, )(CNT2~o= (o, o,
The same holds true for i>~(1,1,1). The rearrangement designation (S2.Sl, SO) for the display data rearrangement unit 7 of the display device control unit 5 is the inversion of each bit of HCNT2 to O, so the display data rearrangement is performed as indicated by 93 in FIG. The output of section 7 is 6 in FIG.
It looks like one block of original input image data indicated by 1 has been rotated 902 clockwise. Further, as defined above, since HCNT2-0=DLNA2-0, data addresses within the image data block can be specified by DLNA2-0. However, considering that DMA2-0 is defined as the number of columns within a block, the image data is
It will be read out after being rearranged into columns. In other words, this means that the image is read out by rotating it 90 degrees counterclockwise. Here, display data sorting section 7
Considering that the output of DLNA is rotated 90° clockwise with respect to the original input image data block, DLNA
The image data read out by specifying the number of columns by 2 to 0 will be read out as the same image data as the original.

従って、本実施例に従えば、記憶部から読み出す画像デ
ータを並べ換えることにより、列方向に画像データを読
み出すことができるので、H3YNC信号のタイミング
と、画像データ1列分の読み出しを合わせることにより
、HSYNC信号周波数を変えることなく、効率的に画
像データを縦長型CRTに表示することができる。
Therefore, according to this embodiment, the image data can be read out in the column direction by rearranging the image data read out from the storage section. , image data can be efficiently displayed on a vertically elongated CRT without changing the HSYNC signal frequency.

また、本実施例に従えば、配憶部における画像データ並
べ換えを考慮することなく、バス・マスクからの画像デ
ータ入出力を行うことができる。
Furthermore, according to this embodiment, image data can be input and output from the bus mask without considering image data rearrangement in the storage section.

[他の実施例] 記憶部2をダイナミックRAMで構成する場合には、バ
ス制御部3で、RAS、CAS、WEを発生し、アドレ
ス・セレクタ部6の出力アドレスを2つに分けRASと
CASに合わせてダイナミックRAMに供給すれば良い
[Other Embodiments] When the storage section 2 is configured with a dynamic RAM, the bus control section 3 generates RAS, CAS, and WE, and the output address of the address selector section 6 is divided into two: RAS and CAS. It is sufficient to supply the data to the dynamic RAM according to the time.

なお、本実施例においては1画素1ビツトで記憶する画
像制御装置について説明してきたが、本発明はこれに限
定されるものではない。例えば、階調表現する表示装置
あるいはカラー表示する表示装置のように、1画素を複
数ビットで記憶する画像処理システムの場合にも、各ビ
ット単位で本発明を適用することができる。
In this embodiment, an image control device that stores data in one pixel and one bit has been described, but the present invention is not limited to this. For example, even in the case of an image processing system that stores one pixel in multiple bits, such as a display device that expresses gradation or a display device that displays color, the present invention can be applied to each bit unit.

[発明の効果] 以上説明したように、本発明によれば、簡単な構成で画
像データを効率的に入出力することができる効果がある
[Effects of the Invention] As described above, according to the present invention, image data can be input and output efficiently with a simple configuration.

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

第1図は本発明の代表的な実施例である画像制御装置を
示すブロック図、 第2図(A)はブロック化された画像データと記憶部ア
ドレスとの対応を示す図、 第2図(B)は記憶部アドレスの構成図、第3図は記憶
部2と表示データサイズの対応を示す図、 第4図(A)ピットスワツパの入力、出力及び制御デー
タを示す図、 第4図(B)はデータ入れ換えの論理式を表す図、 第5図は入出力データ並べ換え部4の構成図、第6図は
画像データ1ブロツク分の人力データ第10図(A)は
画像データ1ブロツク内の列数と記憶アドレスの関係を
示す図、 第1O図(B)は画像データjブロック内のデータ並べ
換えを説明する図、そして、第11図〜第17図は従来
例の説明図である。 図中、1・・・バス・マスク、2・・・記憶部、3・・
・バス制御部、4・・・入出力データ並べ換え部、5・
・・表示制御部、6・・・アドレス・セレクタ部、7・
・・表示データ並べ換え部、8・・・表示装置I/F部
、41・・・ピットスワツパ、71・・・垂直方向カウ
ンタ、72・・・水平方向カウンタである。 第8図は縦長型CRTの走査を示す図、第9図(A)は
表示データアドレスと水平・垂直方向カウンタ出力との
対応関係を示す図、第9図(B)は表示データと表示デ
ータアドレスの対応関係を示す図、 特許出願人   キャノン株式会社 、::j ’−二二; 第 図 (A) 第 図 (B) 第4 図 (A) 第 図 第 図 ! 第 図 水平方向 アップカウント 第 図 第 図 (A) 水平方向 6□ !
FIG. 1 is a block diagram showing an image control device that is a typical embodiment of the present invention, FIG. B) is a diagram showing the configuration of the storage unit address, Figure 3 is a diagram showing the correspondence between the storage unit 2 and the display data size, Figure 4 (A) is a diagram showing the input, output, and control data of the pit swapper, Figure 4 (B) ) is a diagram showing the logical formula for data swapping, FIG. 5 is a configuration diagram of the input/output data sorting section 4, and FIG. 6 is human data for one block of image data. FIG. 10(B) is a diagram illustrating the relationship between the number of columns and storage address; FIG. 10(B) is a diagram illustrating rearrangement of data within j block of image data; and FIGS. 11 to 17 are diagrams illustrating conventional examples. In the figure, 1... bus mask, 2... memory section, 3...
・Bus control unit, 4...I/O data sorting unit, 5.
...Display control section, 6...Address selector section, 7.
. . . Display data rearrangement unit, 8 . . . Display device I/F unit, 41 . . . Pit swapper, 71 . Figure 8 is a diagram showing the scanning of a vertically elongated CRT, Figure 9 (A) is a diagram showing the correspondence between display data addresses and horizontal and vertical counter outputs, and Figure 9 (B) is a diagram showing display data and display data. Diagram showing address correspondence, Patent applicant: Canon Co., Ltd.::j'-22; Figure (A) Figure (B) Figure 4 (A) Figure! Figure: Horizontal up count Figure: (A) Horizontal direction 6□!

Claims (1)

【特許請求の範囲】  画像データを記憶し、前記画像データの入出力を制御
する画像制御装置であつて、 前記画像データを記憶する記憶手段と、 前記画像データ入出力の際に、前記画像データのアドレ
スの一部に従い前記画像データを並べ換える入出力デー
タ並べ換え手段と、 前記画像データ表示時、前記記憶手段から前記画像デー
タの読み出し方向を変化させて読み出すよう指示する指
示手段と、 前記指示手段の指示に従つて、前記記憶手段のアドレス
を発生するアドレス生成手段と、前記画像データ表示時
に前記記憶手段より読み出した画像データを前記指示手
段の指示に従い並べ換える表示データ並べ換え手段とを
有することを特徴とする画像制御装置。
[Scope of Claims] An image control device that stores image data and controls input/output of the image data, comprising: a storage unit that stores the image data; input/output data rearranging means for rearranging the image data according to part of the address of the image data; instruction means for instructing to change the read direction of the image data from the storage means when displaying the image data; and the instruction means. and display data rearranging means for rearranging image data read from the storage means when displaying the image data according to instructions from the instruction means. Characteristic image control device.
JP19082790A 1990-06-13 1990-07-20 Picture controller Pending JPH0477941A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP19082790A JPH0477941A (en) 1990-07-20 1990-07-20 Picture controller
US08/100,347 US5381163A (en) 1990-06-13 1993-08-02 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19082790A JPH0477941A (en) 1990-07-20 1990-07-20 Picture controller

Publications (1)

Publication Number Publication Date
JPH0477941A true JPH0477941A (en) 1992-03-12

Family

ID=16264426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19082790A Pending JPH0477941A (en) 1990-06-13 1990-07-20 Picture controller

Country Status (1)

Country Link
JP (1) JPH0477941A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160552A (en) * 1993-12-02 1995-06-23 Nec Corp Bit map file access system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160552A (en) * 1993-12-02 1995-06-23 Nec Corp Bit map file access system

Similar Documents

Publication Publication Date Title
US4862154A (en) Image display processor for graphics workstation
US4564915A (en) YIQ Computer graphics system
US5748174A (en) Video display system including graphic layers with sizable, positionable windows and programmable priority
US4168488A (en) Image rotation apparatus
US6172669B1 (en) Method and apparatus for translation and storage of multiple data formats in a display system
US4459677A (en) VIQ Computer graphics system
NO301913B1 (en) Display generator circuits for personal computer system
JPH03504171A (en) Vertical filtering device and method for raster scanned display devices
CA1220293A (en) Raster scan digital display system
JPS6360492A (en) Display controller
US4876663A (en) Display interface system using buffered VDRAMs and plural shift registers for data rate control between data source and display
GB2137857A (en) Computer Graphics System
US5859646A (en) Graphic drawing processing device and graphic drawing processing system using thereof
JPH0355832B2 (en)
US5381163A (en) Image processing apparatus
US4570158A (en) Horizontal and vertical image inversion circuit for a video display
GB2073997A (en) Computer graphics system
JPH06214549A (en) Apparatus and method for display in double buffer-type output display system
US4626839A (en) Programmable video display generator
GB2073995A (en) Computer graphic system
US5895502A (en) Data writing and reading method for a frame memory having a plurality of memory portions each having a plurality of banks
JPH0477941A (en) Picture controller
US5309560A (en) Data selection device
JPS6016634B2 (en) Graphic generation method in display devices
US5977991A (en) Frame buffer system with non-overlapping pixel buffer access variable interleaving, nibble replication