JPH07320037A - Video data transfer device - Google Patents

Video data transfer device

Info

Publication number
JPH07320037A
JPH07320037A JP6130935A JP13093594A JPH07320037A JP H07320037 A JPH07320037 A JP H07320037A JP 6130935 A JP6130935 A JP 6130935A JP 13093594 A JP13093594 A JP 13093594A JP H07320037 A JPH07320037 A JP H07320037A
Authority
JP
Japan
Prior art keywords
color
signal
video data
data
video
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.)
Withdrawn
Application number
JP6130935A
Other languages
Japanese (ja)
Inventor
Kesatoshi Takeuchi
啓佐敏 竹内
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 JP6130935A priority Critical patent/JPH07320037A/en
Publication of JPH07320037A publication Critical patent/JPH07320037A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To transfer only a part of a desired color of an animation to a frame memory at a high speed. CONSTITUTION:A color comparison part sets its color comparison signal CCMP to an L level when the color of animation video data MDATA is nearly equal to a specific color, or to an H level when not equal. An OR gate 610 inhibits video data from being written in a VRAM by holding a write signal/MWR at the H level when the color comparison signal CCMP is at the L level, and writes the video data in the VRAM by allowing the write signal/MWR to fall to the L level when the color comparison signal CCMP is at the H level. Consequently, only the animation part except a color specified as an object not to be transferred is transferred to a 2-port VRAM and displayed on a display device.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、映像データをフレーム
メモリに転送する映像データ転送装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video data transfer device for transferring video data to a frame memory.

【0002】[0002]

【従来の技術】外部から与えられた映像データをパーソ
ナルコンピュータの映像メモリに転送する方法として、
いわゆるDMA(Direct Memory Access)転送を利用す
ることができる。
2. Description of the Related Art As a method of transferring video data given from the outside to a video memory of a personal computer,
So-called DMA (Direct Memory Access) transfer can be used.

【0003】図39は、映像データをビデオRAMに転
送するためのDMAコントローラを備えた従来のコンピ
ュータシステムを示すブロック図である。3つの映像メ
モリ51R,51G,51Bには、赤色(R)、緑色
(G)、青色(B)に色相分解された色データDr ,D
g ,Db がそれぞれ記憶されている。これらの色データ
Dr ,Dg ,Db は、例えばディザ法で予め2値化され
ている。DMAコントローラ55は、アドレスバス53
と、データバス52と、制御バス54の使用権をCPU
59から取得し、3つの映像メモリ51R,51G,5
1Bに記憶された2値色データDr ,Dg ,Db をリア
ルタイムに表示用のビデオRAM56R,56G,56
Bにそれぞれ転送する。転送された2値色データDr ,
Dg ,Dbは、VRAM56R、56G、56Bを通じ
てモニタ−制御部57に送られ、モニタ−58に映像を
表示させる。
FIG. 39 is a block diagram showing a conventional computer system having a DMA controller for transferring video data to a video RAM. The three video memories 51R, 51G and 51B have color data Dr and D which are color-separated into red (R), green (G) and blue (B).
g and Db are stored respectively. These color data Dr, Dg, Db are binarized in advance by, for example, the dither method. The DMA controller 55 uses the address bus 53
The right to use the data bus 52 and the control bus 54 to the CPU
59 video, three video memories 51R, 51G, 5
Video RAM 56R, 56G, 56 for displaying binary color data Dr, Dg, Db stored in 1B in real time
Transfer to B respectively. The transferred binary color data Dr,
Dg and Db are sent to the monitor-control unit 57 through the VRAMs 56R, 56G and 56B to display the image on the monitor-58.

【0004】DMA転送の際には、まず、CPU59
が、R成分用のVRAM56Rにおける表示開始アドレ
スをDMAコントローラ55に送ってDMAコントロー
ラ55を起動する。DMAコントローラ55は、バスの
使用権をCPU59から獲得して1ライン目のR成分の
2値色データDr をR成分用のVRAM56Rに転送
し、その後、CPU59にバスの使用権を戻す。次に、
CPU59がG成分用のVRAM56Gの表示開始アド
レスをDMAコントローラ55に送ってDMAコントロ
ーラ55を起動すると、R成分と同様に2値色データD
g の転送が行なわれる。さらに、B成分も同様に転送さ
れる。2ライン目の映像データを転送する際には、CP
U59はVRAM56R,56G,56Bそれぞれの2
ライン目の表示開始アドレスを算出してこれをDMAコ
ントローラ55に送り、RGB各色の2値色データDr
,Dg ,Db を順次転送する。
In the DMA transfer, first, the CPU 59
Sends the display start address in the VRAM 56R for the R component to the DMA controller 55 to activate the DMA controller 55. The DMA controller 55 acquires the right to use the bus from the CPU 59, transfers the binary color data Dr of the R component of the first line to the VRAM 56R for the R component, and then returns the right to use the bus to the CPU 59. next,
When the CPU 59 sends the display start address of the VRAM 56G for the G component to the DMA controller 55 and activates the DMA controller 55, the binary color data D is generated in the same manner as the R component.
Transfer of g is performed. Further, the B component is transferred in the same manner. When transferring the video data of the second line, use CP
U59 is 2 for each of VRAM 56R, 56G, 56B
The display start address of the line is calculated and sent to the DMA controller 55, and the binary color data Dr of each color of RGB is drawn.
, Dg, Db are sequentially transferred.

【0005】このように、CPU59は各ライン毎にV
RAM56R,56G,56Bの表示開始アドレスを算
出してDMAコントローラ55に教示し、DMAコント
ローラ55がこれに応じて各ラインの色データDr ,D
g ,Db を順次DMA転送していくことにより、1フィ
−ルド分の色データがVRAM56に転送される。な
お、「1フィールド」とは、画面の左上隅から右下隅ま
での1回の走査でカバーされる画像を言う。多くの場合
には、2:1のインターレス(飛び越し走査)が行なわ
れており、2フィールドで1フレーム(1画面)の画像
を構成している。こうして、1秒間に約60フィ−ルド
分の2値色データを順次DMA転送していくことによっ
て、動画がモニタ−58に表示される。
As described above, the CPU 59 controls the V for each line.
The display start address of the RAM 56R, 56G, 56B is calculated and taught to the DMA controller 55, and the DMA controller 55 responds to this by the color data Dr, D of each line.
By sequentially DMA-transferring g and Db, color data for one field is transferred to the VRAM 56. The "1 field" refers to an image covered by one scan from the upper left corner to the lower right corner of the screen. In many cases, 2: 1 interlace (interlaced scanning) is performed, and one field (one screen) image is composed of two fields. In this way, a moving image is displayed on the monitor 58 by sequentially DMA-transferring about 60 fields of binary color data per second.

【0006】[0006]

【発明が解決しようとする課題】NTSC(National T
elevision System Commmittee )方式による映像信号を
利用した場合、水平1ラインの走査期間は63μsであ
る。一方、図39のシステムにおいて、CPU59が表
示開始アドレスを計算してDMAコントローラ55に転
送する時間と、DMAコントローラ55がCPU59か
ら各バスの使用権を取得する時間と、各2値色データD
r ,Dg ,Db の1ライン分をDMA転送する時間とを
合計すると、1秒間に数フィ−ルド分のデータしか転送
できない。これはCPU59が表示開始アドレスを計算
したり、DMAコントローラ55に表示開始アドレスを
設定したりするための時間が必要以上にかかるためと考
えられる。このように、従来のデータ転送装置では、1
秒間に数フィールド分のデータしか転送できないため、
スム−ズな動画を表示することは不可能であった。
[Problems to be Solved by the Invention] NTSC (National T
When a video signal based on the Elevation System Commuttee method is used, the scanning period for one horizontal line is 63 μs. On the other hand, in the system of FIG. 39, the time when the CPU 59 calculates the display start address and transfers it to the DMA controller 55, the time when the DMA controller 55 acquires the right to use each bus from the CPU 59, and each binary color data D
When the time for DMA transfer of one line of r, Dg, and Db is summed up, only a few fields worth of data can be transferred per second. This is considered to be because it takes more time than necessary for the CPU 59 to calculate the display start address and to set the display start address in the DMA controller 55. Thus, in the conventional data transfer device,
Since only a few fields of data can be transferred per second,
It was impossible to display a smooth video.

【0007】また、以下に示すように、従来のデータ転
送装置では転送される映像の所望の色部分のみを転送す
ることはできなかった。図40は、図39の装置によっ
て2つの映像を合成(スーパーインポーズ)する方法を
示す説明図である。図40(A)に示す音符記号の映像
はパーソナルコンピュータによって生成された静止画で
あり、図39のVRAM56R,56G,56Bに予め
記憶されている映像である。図40(B)に示す人形の
映像はVRAMにDMA転送される動画であり、メモリ
51R,51G,51Bに記憶されている映像である。
なお、人形の背景は所定の一様な色を有している。DM
A転送が実行されると、静止画と動画が合成されて図4
0(C)のような映像が表示される。
Further, as shown below, the conventional data transfer device cannot transfer only the desired color portion of the transferred image. FIG. 40 is an explanatory diagram showing a method of synthesizing (superimposing) two videos by the device of FIG. 39. The image of the note symbol shown in FIG. 40 (A) is a still image generated by a personal computer, and is an image stored in advance in the VRAMs 56R, 56G, 56B of FIG. The image of the doll shown in FIG. 40B is a moving image DMA-transferred to the VRAM, and is an image stored in the memories 51R, 51G, and 51B.
The background of the doll has a predetermined uniform color. DM
When the A transfer is executed, the still image and the moving image are combined and the result shown in FIG.
An image like 0 (C) is displayed.

【0008】図40(C)において、人形の背景である
一様色の部分(図中斜線で示す)は表示する必要は無い
ので、このような背景を表わす映像データをVRAMに
転送せずに、パーソナルコンピュータで生成した映像
(すなわち音符記号の映像)を背景の代わりに表示した
いという要望があった。しかし、従来は動画全体を転送
していたので、背景部分の転送のみを禁止することは不
可能であった。
In FIG. 40 (C), since it is not necessary to display the uniform color portion (shown by diagonal lines in the figure) which is the background of the doll, the image data representing such background is not transferred to the VRAM. , There was a demand to display an image generated by a personal computer (that is, an image of a musical note symbol) instead of the background. However, in the past, since the entire moving image was transferred, it was impossible to prohibit only the transfer of the background portion.

【0009】この発明は、従来技術における上述の課題
を解決するためになされたものであり、動画の所望の色
の部分のみをフレームメモリに高速に転送することを目
的とする。
The present invention has been made to solve the above-mentioned problems in the prior art, and an object thereof is to transfer only a desired color portion of a moving image to a frame memory at high speed.

【0010】[0010]

【課題を解決するための手段および作用】上述の課題を
解決するため、この発明の請求項1に記載した映像デー
タ転送装置は、表示デバイスに表示される映像の映像デ
ータを記憶するフレームメモリと、前記フレームメモリ
に転送される動画映像データを供給する動画映像データ
供給手段と、前記フレームメモリに接続されたバスと、
前記動画映像データを前記フレームメモリに書込むため
の書込みアドレスを算出するとともに、該書込みアドレ
スと前記動画映像データとを前記バス上に出力するデー
タ転送手段と、所定の色度の範囲を規定するための色デ
ータを記憶する色データメモリと、前記動画映像データ
を前記色データと比較して、その比較結果を示す色比較
信号を生成する色比較手段と、前記色比較信号に応じて
前記動画映像データの前記フレームメモリへの書込みを
制御する書込制御手段と、を備える。
In order to solve the above problems, a video data transfer apparatus according to a first aspect of the present invention is provided with a frame memory for storing video data of a video displayed on a display device. A moving picture image data supplying means for supplying moving picture image data transferred to the frame memory, a bus connected to the frame memory,
A write address for writing the moving image video data in the frame memory is calculated, and a data transfer means for outputting the write address and the moving image video data to the bus, and a predetermined chromaticity range are defined. Color data memory for storing color data for storing, color comparison means for comparing the moving image video data with the color data and generating a color comparison signal indicating the comparison result, and the moving image according to the color comparison signal. Writing control means for controlling writing of video data to the frame memory.

【0011】データ転送手段は、CPU等の他の手段か
ら書込みアドレスを受け取らずに自ら書込みアドレスを
算出するので、動画映像データを高速にバス上に出力で
きる。また、色比較信号に応じて動画映像データの書込
みを制御するので、動画の所望の色の部分のみをフレー
ムメモリに高速に転送することができる。
Since the data transfer means calculates the write address by itself without receiving the write address from other means such as the CPU, the moving picture image data can be outputted on the bus at high speed. Further, since the writing of the moving image video data is controlled according to the color comparison signal, only the desired color portion of the moving image can be transferred to the frame memory at high speed.

【0012】請求項2に記載した映像データ転送装置で
は、前記色比較手段は、前記動画映像データで表わされ
る色度が前記所定の色度の範囲内である場合には前記フ
レームメモリの書込みを禁止する第1のレベルに前記色
比較信号を設定し、前記動画映像データで表わされる色
度が前記所定の色度の範囲外である場合には前記フレー
ムメモリへの書込みを許可する前記第2のレベルに前記
色比較信号を設定する色比較信号設定手段、を有する。
In the video data transfer device according to a second aspect of the present invention, the color comparison means writes the frame memory when the chromaticity represented by the moving image data is within the predetermined chromaticity range. The color comparison signal is set to a prohibited first level, and when the chromaticity represented by the moving image data is out of the predetermined chromaticity range, the writing to the frame memory is permitted. And a color comparison signal setting means for setting the color comparison signal to the level.

【0013】こうすれば、動画の中で所定の色度の範囲
外にある映像部分のみがフレームメモリに書き込まれ
る。
In this way, only the image portion of the moving image outside the range of the predetermined chromaticity is written in the frame memory.

【0014】請求項3に記載した映像データ転送装置で
は、前記色データは、RGBの3原色に対する映像デー
タ成分の上限値と下限値とをそれぞれ含んでおり、前記
色比較信号設定手段は、前記動画映像データで表わされ
る3原色の成分がそれぞれの前記上限値と前記下限値の
間の範囲内にある場合には前記色比較信号を前記第1の
レベルに設定し、前記動画映像データの各色の成分の少
なくとも1つがそれぞれの前記上限値と下限値の間の範
囲外にある場合には前記色比較信号を前記第2のレベル
に設定する手段、を有する。
In the video data transfer device according to a third aspect of the present invention, the color data includes an upper limit value and a lower limit value of the video data component with respect to the three primary colors of RGB, respectively, and the color comparison signal setting means has the When the components of the three primary colors represented by the moving image data are in the range between the upper limit value and the lower limit value, the color comparison signal is set to the first level and each color of the moving image data is set. Means for setting the color comparison signal to the second level when at least one of the components is outside the range between the respective upper and lower limits.

【0015】こうすれば、映像データの3原色の成分に
対する上限値と下限値を設定することによって、色度の
範囲を任意に設定することができる。
In this way, the chromaticity range can be set arbitrarily by setting the upper limit value and the lower limit value for the three primary color components of the video data.

【0016】請求項4に記載した映像データ転送装置で
は、前記色データは、RGBの3原色に対する映像デー
タ成分の参照値をそれぞれ含んでおり、前記色比較信号
設定手段は、前記動画映像データの3原色の成分がそれ
ぞれの前記参照値と等しい場合には前記色比較信号を前
記第1のレベルに設定し、前記動画映像データの各色の
成分の少なくとも1つが前記参照値と異なる場合には前
記色比較信号を前記第2のレベルに設定する比較器、を
有する。
According to another aspect of the present invention, in the video data transfer device, the color data includes reference values of video data components for the three primary colors of RGB, and the color comparison signal setting means sets the video image data. When the three primary color components are equal to the respective reference values, the color comparison signal is set to the first level, and when at least one of the respective color components of the moving image data is different from the reference value, the color comparison signal is set to the first level. A comparator for setting the color comparison signal to the second level.

【0017】この場合には、動画映像データの3原色の
成分がそれぞれの参照値と等しい場合にフレームメモリ
への書込みが禁止され、少なくとも1つが参照値と等し
くない場合にフレームメモリへの書込みが許可される。
In this case, when the three primary color components of the moving image data are equal to the respective reference values, the writing to the frame memory is prohibited, and when at least one is not equal to the reference value, the writing to the frame memory is prohibited. Allowed

【0018】請求項5に記載した映像データ転送装置で
は、前記データ転送手段は、前記フレームメモリの書込
み動作を許可するための書込信号を生成する手段を備
え、前記書込制御手段は、前記色比較信号の値に応じて
前記書込信号のレベルを調整する書込信号調整手段を備
える。
According to another aspect of the video data transfer device of the present invention, the data transfer means includes means for generating a write signal for permitting a write operation of the frame memory, and the write control means includes the write control means. A write signal adjusting means for adjusting the level of the write signal according to the value of the color comparison signal is provided.

【0019】書込信号のレベルを調整するようにすれ
ば、ビット数の多い動画映像データやアドレスを制御す
る方法に比べて簡単な回路構成でフレームメモリへの動
画映像データの書込みを許可したり禁止したりすること
ができる。
If the level of the write signal is adjusted, writing of the moving picture image data to the frame memory can be permitted with a simple circuit configuration as compared with the method of controlling the moving picture image data having a large number of bits and the address. You can ban it.

【0020】請求項6に記載した映像データ転送装置で
は、前記書込信号調整手段は、前記色比較信号と前記書
込信号との論理演算によって前記書込信号のレベルを各
ドットごとに調整する手段を有する。
According to another aspect of the video data transfer device of the present invention, the write signal adjusting means adjusts the level of the write signal for each dot by a logical operation of the color comparison signal and the write signal. Have means.

【0021】このような構成によって書込信号のレベル
を容易に調整することができる。
With such a structure, the level of the write signal can be easily adjusted.

【0022】請求項7に記載した映像データ転送装置で
は、前記データ転送手段は、前記動画映像データを転送
する際に前記フレームメモリと前記書込みアドレスを算
出するアドレス算出手段を備え、前記アドレス算出手段
は、前記フレームメモリ内における前記動画映像データ
の書込領域の開始位置を示すオフセットアドレス値を記
憶する第1のメモリと、前記フレームメモリ内における
隣接する走査線同士のアドレスの差を示す加算アドレス
値を記憶する第2のメモリと、前記動画映像データに同
期した垂直同期信号と水平同期信号とに応じて、与えら
れた前記水平同期信号のパルス数に基づいて特定される
走査線の順番を示す走査線番号と、前記加算アドレス値
とを乗算した値に等しい垂直アドレス値を算出する第1
の演算手段と、前記動画内の各走査線上において、各走
査線の始点から各走査線上の各画素までのアドレスの差
を示す水平アドレス値を生成する水平カウンタと、前記
オフセットアドレス値と前記垂直アドレス値と前記水平
アドレス値とを加算することによって、各走査線上にお
ける各画素の位置に相当する前記フレームメモリ内のア
ドレスを生成する第2の演算手段と、を備える。
In the video data transfer device according to claim 7, the data transfer means includes an address calculation means for calculating the frame memory and the write address when transferring the moving picture video data, and the address calculation means. Is a first memory that stores an offset address value that indicates the start position of the moving image video data writing area in the frame memory, and an addition address that indicates the difference between the addresses of adjacent scanning lines in the frame memory. A second memory for storing a value, and an order of scanning lines specified based on the number of pulses of the given horizontal synchronizing signal according to a vertical synchronizing signal and a horizontal synchronizing signal synchronized with the moving image data. Calculating a vertical address value equal to a value obtained by multiplying the scanning line number shown by the addition address value;
Calculating means, a horizontal counter for generating a horizontal address value on each scanning line in the moving image, which indicates a difference in address from a starting point of each scanning line to each pixel on each scanning line, the offset address value and the vertical Second arithmetic means for generating an address in the frame memory corresponding to a position of each pixel on each scanning line by adding an address value and the horizontal address value.

【0023】書込みアドレスは第1の演算手段と第2の
演算手段とによる算術演算によって算出されるので、フ
レームメモリの書込みアドレスが高速に算出され、映像
データを高速に転送することが可能となる。
Since the write address is calculated by the arithmetic operation by the first calculating means and the second calculating means, the write address of the frame memory can be calculated at high speed and the video data can be transferred at high speed. .

【0024】[0024]

【実施例】【Example】

A.動画映像データの準備:図1は、DMA転送の対象
外とする色を指定する様子を示す説明図である。図1に
おいて、一様な色の背景BG(スクリーン)の前に人形
が配置されている。背景BGは表示が不要な映像部分で
あり、人形の色とは異なる所定の色を有している。後述
するように、背景BGとほぼ同じ色を有する映像部分
は、DMA転送の対象外となる。
A. Preparation of moving image data: FIG. 1 is an explanatory diagram showing how to specify a color to be excluded from DMA transfer. In FIG. 1, a doll is placed in front of a background BG (screen) having a uniform color. The background BG is an image portion that does not need to be displayed and has a predetermined color different from the color of the doll. As will be described later, a video portion having almost the same color as the background BG is not subject to DMA transfer.

【0025】背景BGの色は、以下のようにして分析さ
れる。まず、背景BGのみを含む領域(例えば領域R
1)をビデオカメラで撮像し、その映像データをパーソ
ナルコンピュータによって分析する。図2は、背景BG
の映像データを色分解して得られたR(レッド),G
(グリーン),B(ブルー)各色の輝度を示すヒストグ
ラムである。横軸は輝度の%であり、縦軸は画素数Nで
ある。なお、この明細書における「輝度」という用語
は、3原色の刺激値を示している。図2に示すように、
RGB各色についての輝度の最大値と最小値に所定の余
裕εを取り、各色の上限値DUR,DUG,DUBと下限値D
LR,DLG,DLBとをそれぞれ決定する。DMA転送の際
には、後述するように、RGBのそれぞれの上限値DU
R,DUG,DUBと下限値DLR,DLG,DLBとの間に入る
動画映像データは、背景BGとほぼ同じ色を有すると判
断される。なお、背景BGの映像データを分析して上限
値DUR,DUG,DUBと下限値DLR,DLG,DLBとを決定
する処理は、所定のソフトウエアプログラムによって実
現される。
The background BG color is analyzed as follows. First, a region including only the background BG (for example, the region R
1) is imaged by a video camera and the image data is analyzed by a personal computer. Fig. 2 shows the background BG
R (red) and G obtained by color separation of the video data of
It is a histogram showing the brightness of each color of (green) and B (blue). The horizontal axis represents% of brightness, and the vertical axis represents the number of pixels N. The term "luminance" in this specification indicates the stimulus values of the three primary colors. As shown in FIG.
A predetermined margin ε is set for the maximum value and the minimum value of the brightness of each color of RGB, and the upper limit values DUR, DUG, DUB and the lower limit value D of each color are set.
LR, DLG and DLB are determined respectively. At the time of DMA transfer, as will be described later, the respective upper limit values DU of RGB are
It is determined that the moving image data which falls between R, DUG, DUB and the lower limit values DLR, DLG, DLB has substantially the same color as the background BG. The process of analyzing the image data of the background BG and determining the upper limit values DUR, DUG, DUB and the lower limit values DLR, DLG, DLB is realized by a predetermined software program.

【0026】図3は、こうして得られたRGB各色の上
限値DUR,DUG,DUBと下限値DLR,DLG,DLBとによ
って規定される指定色範囲CAをCIE色度図上で示す
図である。このCIE色度図は、国際照明委員会によっ
て推奨された色度図であり、日本ではJIS Z870
1で規定されている。なお、図3における指定色範囲C
Aは、ピンク色に近い色度の範囲である。背景BGの色
としては、DMA転送したい所望の画像部分(図1の例
では人形部分)に含まれていない任意の色を選択するこ
とが可能である。
FIG. 3 is a diagram showing, on the CIE chromaticity diagram, the designated color range CA defined by the upper limit values DUR, DUG, DUB and the lower limit values DLR, DLG, DLB of the RGB colors thus obtained. This CIE chromaticity diagram is a chromaticity diagram recommended by the International Commission on Illumination, and is JIS Z870 in Japan.
It is specified in 1. The designated color range C in FIG.
A is a range of chromaticity close to pink. As the color of the background BG, it is possible to select any color which is not included in the desired image portion (the doll portion in the example of FIG. 1) desired to be DMA-transferred.

【0027】次に、背景BGの前で人形が動く映像を撮
像する。図1は平面的な物体の映像であるが、所定の色
の背景BGの前で3次元の物体(人,動物,ロボットな
ど)が動く映像を撮像してもよい。こうして作成された
動画の映像信号がパーソナルコンピュータに与えられる
と、指定色範囲CA以外の色を有する映像部分がフレー
ムメモリにDMA転送されてカラーモニタ上に表示され
ることになる。
Next, an image of the doll moving in front of the background BG is captured. Although FIG. 1 shows an image of a planar object, an image of a three-dimensional object (human, animal, robot, etc.) moving in front of a background BG of a predetermined color may be captured. When the video signal of the moving image created in this way is given to the personal computer, the video portion having a color other than the designated color range CA is DMA-transferred to the frame memory and displayed on the color monitor.

【0028】B.システム構成:図4は、本発明の第1
の実施例としてのコンピュータシステムの構成を示すブ
ロック図である。このコンピュータシステムは、パーソ
ナルコンピュータ本体200と、カラーCRT300
と、カラー液晶ディスプレイ(LCD)302とを備え
ている。パーソナルコンピュータ本体200は、CPU
202と、RAM204と、ROM206と、I/Oイ
ンタフェイス208と、ビデオアクセラレータ210
と、2ポートVRAM212と、D−A変換器(DA
C)214と、LCDドライバ216と、DMAコント
ローラ220と、A−D変換器222と、映像デコーダ
224と、映像入力端子226とを備えている。これら
のうちで、CPU202、RAM204、ROM20
6、I/Oインタフェイス208、ビデオアクセラレー
タ210、および、DMAコントローラ220は、CP
Uバス201で互いに接続されている。また、ビデオア
クセラレータ210と、2ポートVRAM212と、D
MAコントローラ220は、ローカルバス(アドレスバ
ス228、データバス229、制御バス230)で相互
に接続されている。
B. System configuration: FIG. 4 shows the first of the present invention.
3 is a block diagram showing the configuration of a computer system as an example of the present invention. This computer system includes a personal computer main body 200 and a color CRT 300.
And a color liquid crystal display (LCD) 302. The personal computer body 200 is a CPU
202, RAM 204, ROM 206, I / O interface 208, and video accelerator 210
, 2-port VRAM 212, DA converter (DA
C) 214, an LCD driver 216, a DMA controller 220, an A / D converter 222, a video decoder 224, and a video input terminal 226. Of these, CPU 202, RAM 204, ROM 20
6, the I / O interface 208, the video accelerator 210, and the DMA controller 220 are CPs.
They are connected to each other by a U bus 201. Also, a video accelerator 210, a 2-port VRAM 212, a D
The MA controllers 220 are mutually connected by a local bus (address bus 228, data bus 229, control bus 230).

【0029】なお、DMAコントローラ220とA−D
変換器222と映像デコーダ224と映像入力端子22
6は、1枚の拡張ボードまたは拡張カード上に実現する
ことができる。
The DMA controller 220 and AD
Converter 222, video decoder 224, and video input terminal 22
6 can be implemented on one expansion board or expansion card.

【0030】映像入力端子226にはビデオプレーヤや
テレビジョンチューナからのコンポジット映像信号VS
が与えられる。入力されたコンポジット映像信号VS
は、映像デコーダ224でデコードされて、RGB各色
の輝度成分を含む色信号CS(コンポーネント映像信
号)と、垂直同期信号VSYNCと、水平同期信号HS
YNCと、フィールド指示信号FISとに分解される。
フィールド指示信号FISは、インターレース走査の場
合に奇数フィールドか偶数フィールドかを示す信号であ
る。
The video input terminal 226 has a composite video signal VS from a video player or a television tuner.
Is given. Input composite video signal VS
Is decoded by the video decoder 224 and includes a color signal CS (component video signal) including luminance components of RGB colors, a vertical synchronization signal VSYNC, and a horizontal synchronization signal HS.
It is decomposed into YNC and field indicating signal FIS.
The field instruction signal FIS is a signal that indicates an odd field or an even field in the case of interlaced scanning.

【0031】色信号CSはA−D変換器222によって
アナログ信号からデジタル信号に変換され、デジタル化
された映像データDSはDMAコントローラ220に与
えられる。DMAコントローラ220は、デジタル化さ
れた映像データのビット数を調整した後、その映像デー
タを2ポートVRAM212に転送する。2ポートVR
AM212から読み出された映像データは、D−A変換
器214を介してカラーCRT300に与えられ、ま
た、LCDドライバ216を介して液晶ディスプレイ3
02に与えられる。
The color signal CS is converted from an analog signal to a digital signal by the AD converter 222, and the digitized video data DS is given to the DMA controller 220. The DMA controller 220 adjusts the number of bits of the digitized video data, and then transfers the video data to the 2-port VRAM 212. 2 port VR
The video data read from the AM 212 is given to the color CRT 300 via the D / A converter 214, and the liquid crystal display 3 via the LCD driver 216.
Given to 02.

【0032】図5は、DMAコントローラ220の内部
構成を示すブロック図である。DMAコントローラ22
0は、CPUインタフェイス310と、3ステートOR
ゲート610と、2つの3ステートバッファ回路61
2,614と、色比較部550と、DMAアドレス演算
部312と、データ出力部314と、DMA制御部31
6と、FIFOメモリユニット318と、色調整部32
0とを備えている。
FIG. 5 is a block diagram showing the internal structure of the DMA controller 220. DMA controller 22
0 is a 3-state OR with the CPU interface 310
Gate 610 and two 3-state buffer circuits 61
2, 614, a color comparison unit 550, a DMA address calculation unit 312, a data output unit 314, and a DMA control unit 31.
6, the FIFO memory unit 318, and the color adjustment unit 32
It has 0 and.

【0033】色調整部320に与えられるデジタル映像
信号DSは、24ビット(RGB各8ビット)のフルカ
ラー映像データである。色調整部320は、この24ビ
ットのデジタル映像信号DSを、必要に応じて16ビッ
ト(R:G:B=5:6:5ビットで1677万色を再
現可能)、8ビット(R:G:B=3:3:2ビットで
6万色を再現可能)、4ビット(カラーパレットにより
16色を再現可能)、3ビット(カラーパレットにより
8色を再現可能)の映像データに変換する回路である。
4ビットや3ビットの映像データに変換する場合には、
ディザ法による2値化が実行される。カラーパレット
は、2ポートVRAM212の出力側に設けられてい
る。なお、どのタイプの映像データに変換するかは、オ
ペレータの指定に応じてCPU202によって設定され
る。但し、以下では24ビットのフルカラー映像データ
(「コンポーネント映像データ」と呼ぶ)を色調整部3
20がそのまま出力する場合について説明する。
The digital video signal DS supplied to the color adjusting section 320 is 24-bit (8 bits for each RGB) full-color video data. The color adjusting unit 320 can reproduce the 24-bit digital video signal DS in 16 bits (R: G: B = 5: 6: 5 bits can reproduce 16.77 million colors) and 8 bits (R: G). : B = 3: 3: 60,000 colors can be reproduced with 2 bits, 4 bits (16 colors can be reproduced with a color palette), 3 bits (8 colors can be reproduced with a color palette) Is.
When converting to 4-bit or 3-bit video data,
Binarization by the dither method is executed. The color palette is provided on the output side of the 2-port VRAM 212. The type of video data to be converted is set by the CPU 202 according to the operator's designation. However, in the following, 24-bit full-color video data (referred to as “component video data”) is used as the color adjustment unit 3.
The case where 20 outputs as it is will be described.

【0034】FIFOメモリユニット318は、色調整
部320から与えられた映像データVDを、内蔵する2
つのFIFOメモリに一時記憶して、データ転送時のタ
イミングを調整する機能を有している。FIFOメモリ
ユニット318から出力された映像データVD(=MD
ATA)は、データ出力部314内のラッチで保持され
て、3ステートバッファ回路614を介してローカルな
データバス229(図1)上に出力される。
The FIFO memory unit 318 incorporates the video data VD supplied from the color adjusting section 320.
It has a function of temporarily storing the data in one FIFO memory and adjusting the timing of data transfer. The video data VD (= MD output from the FIFO memory unit 318
ATA) is held by the latch in the data output unit 314 and is output to the local data bus 229 (FIG. 1) via the 3-state buffer circuit 614.

【0035】DMA制御部316は、アドレスバス22
8と、データバス229と、制御バス230の使用権を
ビデオアクセラレータ210から取得し、映像データM
DATAを2ポートVRAM212に転送する。この
際、DMAアドレス演算部312がアドレスを算出し、
3ステートバッファ回路612およびアドレスバス22
8を介して2ポートVRAM212にそのアドレスが供
給される。
The DMA controller 316 uses the address bus 22.
8, the data bus 229 and the control bus 230 are acquired from the video accelerator 210, and the video data M is acquired.
Transfer DATA to the 2-port VRAM 212. At this time, the DMA address calculation unit 312 calculates an address,
3-state buffer circuit 612 and address bus 22
The address is supplied to the 2-port VRAM 212 via 8.

【0036】映像データMDATAの転送に関連するコ
ントロール信号としては、DMA要求信号/DMARQ
と、DMA許可信号/DMAACKと、書込信号/MW
Rとがある。なお、図5において、信号名の上に線が引
かれているものは負論理であることを意味しており、明
細書中においては各信号名の前にスラッシュ「/」が付
加されている。DMA要求信号/DMARQは、DMA
制御部316がビデオアクセラレータ210にDMA転
送を要求する信号である。DMA許可信号/DMAAC
Kは、ビデオアクセラレータ210がDMA制御部31
6にDMA転送を許可する信号である。書込信号/MW
Rは、2ポートVRAM212にデータの書込みを行な
わせる信号である。
A DMA request signal / DMARQ is used as a control signal related to the transfer of the video data MDATA.
, DMA permission signal / DMAACK, and write signal / MW
There is R. It should be noted that in FIG. 5, a line drawn above the signal name means negative logic, and in the specification, a slash “/” is added before each signal name. . DMA request signal / DMARQ is DMA
The control unit 316 is a signal for requesting the DMA transfer to the video accelerator 210. DMA enable signal / DMAAC
In K, the video accelerator 210 is the DMA control unit 31.
6 is a signal for permitting DMA transfer. Write signal / MW
R is a signal that causes the 2-port VRAM 212 to write data.

【0037】3ステートORゲート610は、映像デー
タを2ポートVRAM212に転送する際に、DMA制
御部316から出力された書込信号/MWEを、色比較
部550から与えられる色比較信号CCMPによってマ
スクするためのゲートである。すなわち、色比較信号C
CMPがHレベルであれば、DMA制御部316から出
力された書込信号/MWEが3ステートORゲート61
0をそのまま通過し、書込信号/MWRとして2ポート
VRAM212に与えられる。一方、色比較信号CCM
PがLレベルであれば、DMA制御部316から出力さ
れた書込信号/MWEが3ステートORゲート610で
阻止されて、2ポートVRAM212に与えられる書込
信号/MWRは常にLレベルに保たれる。すなわち、3
ステートORゲート610は、書込信号調整手段として
の機能を有している。このような動作の詳細については
さらに後述する。
The 3-state OR gate 610 masks the write signal / MWE output from the DMA control unit 316 with the color comparison signal CCMP supplied from the color comparison unit 550 when transferring the video data to the 2-port VRAM 212. It is a gate to do. That is, the color comparison signal C
If CMP is at H level, the write signal / MWE output from the DMA control unit 316 is the 3-state OR gate 61.
It passes through 0 as it is and is given to the 2-port VRAM 212 as a write signal / MWR. On the other hand, the color comparison signal CCM
If P is at L level, write signal / MWE output from DMA control unit 316 is blocked by 3-state OR gate 610, and write signal / MWR provided to 2-port VRAM 212 is always kept at L level. Be done. That is, 3
The state OR gate 610 has a function as a write signal adjusting unit. Details of such an operation will be described later.

【0038】なお、3ステートORゲート610と、2
つの3ステートバッファ回路612,614は、ビデオ
アクセラレータ210の動作中はハイ・インピーダンス
状態に保たれる。
The 3-state OR gate 610 and 2
The three 3-state buffer circuits 612 and 614 are kept in a high impedance state during the operation of the video accelerator 210.

【0039】この実施例では、ORゲート610により
書込信号/MWRのレベルを調整することによって、映
像データMDATAの2ポートVRAM212への書込
みを制御するようにしているので、回路構成が単純であ
るという利点がある。また、映像データMDATAとア
ドレスMADDは、動画全体をDMA転送する場合と同
様にバス上に出力すればよいので、映像データMDAT
AとアドレスMADDを転送対象外の色に応じて調整す
る必要がない。すなわち、DMA転送の処理そのものの
動作は簡単なので高速なDMA転送を実現することがで
きる。
In this embodiment, the OR gate 610 adjusts the level of the write signal / MWR to control the writing of the video data MDATA into the 2-port VRAM 212, so that the circuit configuration is simple. There is an advantage. Further, since the video data MDATA and the address MADD may be output on the bus as in the case of DMA transfer of the entire moving image, the video data MDAT
It is not necessary to adjust A and the address MADD according to the colors not to be transferred. That is, since the operation of the DMA transfer process itself is simple, high-speed DMA transfer can be realized.

【0040】なお、従来は、動画と静止画とを組み合わ
せる場合には表示用のフレームメモリの他に動画専用の
映像メモリを必要としていた。この実施例によるコンピ
ュータシステムでは、動画専用の映像メモリを必要とせ
ずに、動画映像データを高速に転送することができると
いう利点もある。
Conventionally, when a moving image and a still image are combined, a video memory dedicated to the moving image is required in addition to the frame memory for display. The computer system according to this embodiment also has an advantage that moving image data can be transferred at high speed without the need for a moving image dedicated video memory.

【0041】図6は、色比較部550の内部構成を示す
ブロック図である。色比較部550は、比較値記憶回路
552と、色比較回路554とを有している。比較値記
憶回路552は、CPU202から与えられた背景BG
のRGB各色の上限値DUR,DUG,DUBと下限値DLR,
DLG,DLB(図2)を記憶する。これらの上限値と下限
値は、比較値記憶回路552から色比較回路554に与
えられる。比較値記録回路552は色データメモリとし
ての機能を有しており、色比較回路554は色比較信号
設定手段としての機能を有している。
FIG. 6 is a block diagram showing the internal structure of the color comparing section 550. The color comparison unit 550 has a comparison value storage circuit 552 and a color comparison circuit 554. The comparison value storage circuit 552 uses the background BG provided from the CPU 202.
Upper limit value DUR, DUG, DUB and lower limit value DLR of each RGB color of
Memorize DLG and DLB (Fig. 2). The upper limit value and the lower limit value are given from the comparison value storage circuit 552 to the color comparison circuit 554. The comparison value recording circuit 552 has a function as a color data memory, and the color comparison circuit 554 has a function as a color comparison signal setting means.

【0042】図7(A)は、色比較回路554の内部構
成を示すブロック図である。色比較回路554は、RG
Bの各色の映像データ成分に対するウインドウ比較器5
60と、AND回路570とを有している。ただし、図
7(A)では図示の便宜上、G成分とB成分に対するウ
インドウ比較器は省略されている。以下では、映像デー
タのR成分に対する色比較回路554の処理について説
明する。
FIG. 7A is a block diagram showing the internal structure of the color comparison circuit 554. The color comparison circuit 554 is RG
Window comparator 5 for the video data component of each color of B
60 and an AND circuit 570. However, in FIG. 7A, the window comparators for the G component and the B component are omitted for convenience of illustration. The processing of the color comparison circuit 554 for the R component of the video data will be described below.

【0043】ウインドウ比較器560は、2つの比較器
562,564と、AND回路566とを有している。
第1の比較器562は、比較値記憶回路552から与え
られた上限値DURと、データ出力部314から与えられ
た映像データMDATAのR成分とを比較する。一方、
第2の比較器564は、比較値記憶回路552から与え
られた下限値DLRと、映像データMDATAのR成分と
を比較する。2つの比較器562,564の出力はAN
D回路566に入力される。この結果、AND回路56
6から比較信号CR が出力される。比較信号CR は、映
像データMDATAのR成分の値が上限値DURと下限値
DLRの範囲内にある場合にはHレベルとなり、上限値D
URと下限値DLRの範囲外にある場合にはLレベルとな
る。G成分およびB成分に対するウインドウ比較器56
0も同様にして比較信号CG ,CBをそれぞれ生成す
る。これらの比較信号CR ,CG ,CB は3入力AND
回路570に入力される。
The window comparator 560 has two comparators 562 and 564 and an AND circuit 566.
The first comparator 562 compares the upper limit value DUR given from the comparison value storage circuit 552 with the R component of the video data MDATA given from the data output unit 314. on the other hand,
The second comparator 564 compares the lower limit value DLR given from the comparison value storage circuit 552 with the R component of the video data MDATA. The outputs of the two comparators 562 and 564 are AN
It is input to the D circuit 566. As a result, the AND circuit 56
A comparison signal CR is output from 6. The comparison signal CR becomes H level when the value of the R component of the video data MDATA is within the range of the upper limit value DUR and the lower limit value DLR, and the upper limit value D
When it is outside the range of UR and the lower limit value DLR, it becomes L level. Window comparator 56 for G component and B component
Similarly, 0 also generates the comparison signals CG and CB, respectively. These comparison signals CR, CG and CB are 3-input AND
It is input to the circuit 570.

【0044】3入力AND回路570の反転出力である
色比較信号CCMPは、映像データMDATAのRGB
の各色成分の値のすべてが、それぞれの上限値と下限値
の範囲内にある場合にLレベルとなる。一方、少なくと
も1つの色成分の値が上限値と下限値の範囲外にある場
合には、色比較信号CCMPはHレベルとなる。言い換
えれば、色比較信号CCMPは、映像データMDATA
で表わされる色が、図4に示す指定色範囲CAの中に含
まれる場合にはLレベルとなり、指定色範囲CAの外に
ある場合にはHレベルとなる。指定色範囲CAは、映像
の背景BGの色度を示しているので、映像データMDA
TAで表わされる色が、背景BGと等しい色度を有して
いる部分では色比較信号CCMPがLレベルとなる。
The color comparison signal CCMP, which is the inverted output of the 3-input AND circuit 570, is the RGB of the video data MDATA.
When all the values of each color component of are within the range of the respective upper limit value and lower limit value, the L level is set. On the other hand, when the value of at least one color component is outside the range between the upper limit value and the lower limit value, the color comparison signal CCMP becomes H level. In other words, the color comparison signal CCMP is the video data MDATA.
When the color represented by is included in the designated color range CA shown in FIG. 4, it becomes L level, and when it is outside the designated color range CA, it becomes H level. Since the designated color range CA indicates the chromaticity of the background BG of the image, the image data MDA
In the portion where the color represented by TA has the same chromaticity as the background BG, the color comparison signal CCMP becomes L level.

【0045】図7(B)は、動画映像データMDATA
が4ビットのデータである場合の色比較回路554aの
構成を示している。4ビットの映像データのように、色
再現時にカラーパレットが用いられる映像データに対し
ては、色比較回路として図7(B)に示すような4ビッ
トの比較器554aが用いられる。この比較器554a
は、4ビットの映像データMDATAと4ビットの参照
値Dref とを比較して色比較信号CCMPを生成する。
なお、参照値Dref は、上述した上限値DU と下限値D
L とが等しい場合の比較値であるとみなすこともでき
る。比較器554aは、映像データMDATAと参照値
Dref が等しい場合にはLレベルの色比較信号CCMP
を出力し、映像データMDATAと参照値Dref が等し
くない場合にはHレベルの色比較信号CCMPを出力す
る。
FIG. 7B shows the moving image data MDATA.
Shows the configuration of the color comparison circuit 554a when is data of 4 bits. For video data that uses a color palette during color reproduction, such as 4-bit video data, a 4-bit comparator 554a as shown in FIG. 7B is used as a color comparison circuit. This comparator 554a
Generates a color comparison signal CCMP by comparing the 4-bit video data MDATA with the 4-bit reference value Dref.
The reference value Dref is the upper limit value DU and the lower limit value D described above.
It can be regarded as a comparison value when L and L are equal. When the video data MDATA and the reference value Dref are equal to each other, the comparator 554a outputs an L level color comparison signal CCMP.
When the video data MDATA and the reference value Dref are not equal, the H level color comparison signal CCMP is output.

【0046】図5に示すように、色比較信号CCMPは
書込信号調整手段としてのORゲート610に与えられ
ている。映像データMDATAで表わされる色が背景B
Gとほぼ等しい色度を有している場合には色比較信号C
CMPがLレベルになるので、映像データMDATAの
2ポートVRAM212への転送が阻止される。一方、
映像データMDATAで表わされる色が背景BGの色と
異なる場合には色比較信号CCMPがHレベルとなり、
映像データMDATAが2ポートVRAM212に書き
込まれる。この結果、図8に示すように、音符記号の静
止画の一部に、動画内の人形の映像部分のみがスーパー
インポーズされる。なお、音符記号の静止画は、CPU
202によって作成され、予め2ポートVRAM212
に記憶されていた映像である。
As shown in FIG. 5, the color comparison signal CCMP is applied to the OR gate 610 as the write signal adjusting means. The background B is the color represented by the video data MDATA.
When the chromaticity is almost equal to G, the color comparison signal C
Since CMP becomes L level, transfer of the video data MDATA to the 2-port VRAM 212 is blocked. on the other hand,
When the color represented by the video data MDATA is different from the color of the background BG, the color comparison signal CCMP becomes H level,
The video data MDATA is written in the 2-port VRAM 212. As a result, as shown in FIG. 8, only the video part of the doll in the moving image is superimposed on a part of the still image of the musical note symbol. Note that the still image of the musical notation is the CPU
2 port VRAM 212 created in advance by 202
It is the image that was stored in.

【0047】動画映像データMDATAは、例えば30
フレーム/秒(60フィールド/秒)の割合で2ポート
VRAM212にDMA転送される。動画内の人形は動
いているので、DMA転送される動画の各フィールド内
の人形の姿は順次変化している。このような各フィール
ドを2ポートVRAM212に上書きしていくと、実際
に表示デバイスに表示される映像は、人形の動きの軌跡
を示す映像となる。例えば、動画として人間のゴルフス
ウィングを表わすビデオを使用すれば、スウィングの軌
跡が表示デバイスに順次表示されていく。この実施例に
よるデータ転送装置では、このような動作の軌跡を容易
に表示することができる。
The moving image data MDATA is, for example, 30
DMA transfer is performed to the 2-port VRAM 212 at a rate of frame / second (60 fields / second). Since the doll in the moving image is moving, the appearance of the doll in each field of the moving image to be DMA transferred is sequentially changing. When these fields are overwritten in the 2-port VRAM 212, the image actually displayed on the display device becomes an image showing the locus of movement of the doll. For example, if a video showing a golf swing of a person is used as a moving image, the trajectory of the swing is sequentially displayed on the display device. The data transfer device according to this embodiment can easily display the locus of such an operation.

【0048】動作の軌跡を表示したくない場合には、D
MAコントローラ220による1フィールド分または1
フレーム分の動画のDMA転送と、ビデオアクセラレー
タ210による静止画の2ポートVRAM212への書
込みとを交互に行なうようにすればよい。例えばCPU
202が、垂直同期信号VSYNCの割込みを2回受け
るたびに1フィールド分のDMA転送をDMAコントロ
ーラ220に許可し、このDMA転送の間にビデオアク
セラレータ210による静止画の書込みを許可する。こ
の場合には、30フィールド/秒(15フレーム/秒)
の割合で動画のDMA転送が可能である。このように、
動画と静止画とを交互に2ポートVRAM212に書き
込むようにすれば、動作の軌跡が表示されずに、かつ、
スムーズに動く動画が表示される。
When it is not desired to display the motion locus, D
1 field for MA controller 220 or 1
The DMA transfer of the moving image for the frame and the writing of the still image to the 2-port VRAM 212 by the video accelerator 210 may be alternately performed. CPU
Each time the 202 receives the interrupt of the vertical synchronization signal VSYNC twice, it allows the DMA controller 220 to perform DMA transfer for one field, and allows the video accelerator 210 to write a still image during this DMA transfer. In this case, 30 fields / second (15 frames / second)
It is possible to transfer a moving image by DMA. in this way,
If the moving image and the still image are alternately written in the 2-port VRAM 212, the locus of operation is not displayed, and
A moving video is displayed.

【0049】C.動画映像データのDMA転送処理の概
要:以下では、図8(C)の垂直方向(Y1−Y2線
上)に沿ったDMA転送処理と、水平方向(X1−X2
線上)に沿ったDMA転送処理の動作について説明す
る。
C. Outline of DMA transfer processing of moving image data: In the following, the DMA transfer processing along the vertical direction (on the Y1-Y2 line) in FIG. 8C and the horizontal direction (X1-X2).
The operation of the DMA transfer process along the line) will be described.

【0050】図9は、垂直方向のDMA転送の動作を示
すタイミングチャートである。まず、CPU202がD
MA制御部316(図5)に動作開始の指示を与えると
(図9(a))、DMA制御部316がDMA要求信号
/DMARQをコントロールバス230上に出力する。
そして、ビデオアクセラレータ210からDMA制御部
316にDMA許可信号/DMAACKが与えられて、
DMAコントローラ220がローカルバス228,22
9,230の使用権を取得する。
FIG. 9 is a timing chart showing the operation of vertical DMA transfer. First, the CPU 202
When the operation start instruction is given to the MA control unit 316 (FIG. 5) (FIG. 9A), the DMA control unit 316 outputs the DMA request signal / DMARQ onto the control bus 230.
Then, the video accelerator 210 gives a DMA permission signal / DMAACK to the DMA control unit 316,
DMA controller 220 uses local buses 228, 22
Acquire usage rights of 9,230.

【0051】一方、CPU202からDMA転送の指示
が与えられた後に垂直同期信号VSYNCがDMAコン
トローラ220に与えられると、DMAコントローラ2
20が初期状態にセットされる。
On the other hand, when the vertical synchronizing signal VSYNC is given to the DMA controller 220 after the DMA transfer instruction is given from the CPU 202, the DMA controller 2
20 is set to the initial state.

【0052】垂直同期信号VSYNCの後にはバックポ
ーチ期間が続いているが、図9ではその詳細は省略され
ている。バックポーチ期間の後の有効映像期間では、D
MA許可信号/DMAACK(図9(e))がLレベル
の期間は、DMAコントローラ220がアドレスMAD
D(図9(f))と映像データMDATA(図9
(g))と書込信号/MWR(図9(i))とをローカ
ルバス上に出力してDMA転送を行なう。
Although the back porch period continues after the vertical synchronizing signal VSYNC, the details thereof are omitted in FIG. During the effective video period after the back porch period, D
While the MA permission signal / DMAACK (FIG. 9 (e)) is at the L level, the DMA controller 220 sets the address MAD
D (Fig. 9 (f)) and video data MDATA (Fig. 9
(G)) and the write signal / MWR (FIG. 9 (i)) are output onto the local bus to perform DMA transfer.

【0053】色比較部550から出力される色比較信号
CCMP(図9(h))がLレベルの間は、ORゲート
610(図5)から出力される書込信号/MWRはHレ
ベルに保たれるので、2ポートVRAM212への動画
映像データMDATAの書込みは禁止される。一方、
色比較信号CCMPがHレベルの間では、DMA制御部
316から出力された書込信号/MWRがORゲート6
10をそのまま通過して2ポートVRAM212の書込
信号/MWRとなるので、2ポートVRAM212に動
画映像データMDATAが書込まれる。
While the color comparison signal CCMP (FIG. 9 (h)) output from the color comparison unit 550 is at L level, the write signal / MWR output from the OR gate 610 (FIG. 5) is kept at H level. Since it falls down, writing of the moving image video data MDATA into the 2-port VRAM 212 is prohibited. on the other hand,
While the color comparison signal CCMP is at the H level, the write signal / MWR output from the DMA control unit 316 is the OR gate 6.
Since it passes through 10 as it is and becomes the write signal / MWR of the 2-port VRAM 212, the moving image data MDATA is written in the 2-port VRAM 212.

【0054】なお、DMA許可信号/DMAACKがH
レベルの期間は、ビデオアクセラレータ210がバスを
使用する(図9(j)〜(l))。
The DMA permission signal / DMAACK is H
During the level period, the video accelerator 210 uses the bus (FIGS. 9 (j) to 9 (l)).

【0055】図10は、水平方向のDMA転送の動作を
示すタイミングチャートであり、図9の水平同期信号X
HSYNCの1周期の間の動作を示している。なお、こ
の水平同期信号XHSYNCは、映像デコーダ224
(図4)から与えられた第1の水平同期信号HSYNC
に基づいてFIFOメモリユニット318(図5)が生
成したものであり、2ポートVRAM212に書き込ま
れる動画映像データMDATAの1水平ラインの期間を
規定する同期信号である。
FIG. 10 is a timing chart showing the operation of the DMA transfer in the horizontal direction. The horizontal synchronizing signal X of FIG.
The operation during one cycle of HSYNC is shown. The horizontal synchronizing signal XHSYNC is supplied to the video decoder 224.
The first horizontal synchronizing signal HSYNC given from (FIG. 4)
The sync signal is generated by the FIFO memory unit 318 (FIG. 5) based on the above, and is a synchronization signal that defines the period of one horizontal line of the moving image video data MDATA written in the two-port VRAM 212.

【0056】図10において、DMA許可信号/DMA
ACKがLレベルに保たれている期間にDMA転送のア
ドレスMADDと映像データMDATAがローカルバス
上に出力される。しかし、色比較信号CCMPがLレベ
ルの間は、2ポートVRAM212に与えられる書込信
号/MWRがHレベルに保たれるので、映像データMD
ATAの書込みは禁止される。一方、色比較信号CCM
PがHレベルの期間では、書込信号/MWRがドット毎
にLレベルに立下り、各ドットの映像データMDATA
(RGBデータ)が2ポートVRAM212に書き込ま
れる。
In FIG. 10, DMA permission signal / DMA
The address MADD of the DMA transfer and the video data MDATA are output to the local bus while the ACK is kept at the L level. However, while the color comparison signal CCMP is at the L level, the write signal / MWR applied to the 2-port VRAM 212 is kept at the H level, so that the video data MD
Writing of ATA is prohibited. On the other hand, the color comparison signal CCM
While P is at the H level, the write signal / MWR falls to the L level for each dot, and the video data MDATA of each dot is generated.
(RGB data) is written in the 2-port VRAM 212.

【0057】図11は、図10のA部(色比較信号CC
MPの段部)の詳細を示すタイミングチャートである。
図11から解るように、画面上の1ドット(1画素)毎
にアドレスMADD(=TADD)と映像データMDA
TAとが更新されている。また、色比較信号CCMPが
Hレベルの期間でのみ書込信号/MWRがLレベルに立
下り、これに応じて映像データMDATAが2ポートV
RAM212に書き込まれる。
FIG. 11 shows part A (color comparison signal CC of FIG.
It is a timing chart which shows the detail of the step part of MP.
As can be seen from FIG. 11, the address MADD (= TADD) and the video data MDA for each dot (one pixel) on the screen.
TA and have been updated. Further, the write signal / MWR falls to the L level only while the color comparison signal CCMP is at the H level, and in response to this, the video data MDATA is converted into the 2-port V signal.
It is written in the RAM 212.

【0058】以上のように、動画映像データMDATA
の2ポートVRAM212への書込みは、色比較信号C
CMPがHレベルの時に許可され、Lレベルの時には禁
止される。図7において説明したように、色比較信号C
CMPは、動画の色が所定の指定色の範囲外の場合には
Hレベルとなり、指定色の範囲内の場合にはLレベルと
なる信号である。従って、指定色の範囲外の動画映像デ
ータMDATAのみが2ポートVRAM212に書き込
まれる。図1ないし図3において説明したように、指定
色の範囲CAは、動画の背景BGとほぼ等しい色を示し
ているので、動画の背景BGを表わす映像データMDA
TAは2ポートVRAM212に書き込まれず、背景B
G以外の映像部分(すなわち人形部分)を表わす映像デ
ータMDATAのみが2ポートVRAM212に書き込
まれることになる。
As described above, the moving image data MDATA
Of the color comparison signal C to the 2-port VRAM 212
It is permitted when CMP is at H level and prohibited when it is at L level. As described in FIG. 7, the color comparison signal C
The CMP is a signal that becomes H level when the color of the moving image is outside the range of the predetermined designated color, and becomes L level when it is within the range of the designated color. Therefore, only the moving image video data MDATA outside the specified color range is written in the 2-port VRAM 212. As described with reference to FIG. 1 to FIG. 3, the designated color range CA indicates a color that is substantially the same as the background BG of the moving image, and therefore the image data MDA representing the background BG of the moving image
TA is not written to the 2-port VRAM 212 and the background B
Only the video data MDATA representing the video portion other than G (that is, the doll portion) is written in the 2-port VRAM 212.

【0059】なお、書込信号/MWRのレベルを色比較
信号CCMPで制御することによって映像データの書込
みを制御する代わりに、ビデオRAM特有の機能である
ライトパービットモードにおいて、2ポートVRAM2
12の書込動作をビット単位で禁止することも可能であ
る。
Instead of controlling the writing of the video data by controlling the level of the write signal / MWR by the color comparison signal CCMP, the 2-port VRAM2 is used in the write per bit mode which is a function peculiar to the video RAM.
It is also possible to prohibit the 12 write operations in bit units.

【0060】D.DMAコントローラ220内の回路構
成の詳細: 図5に示すDMAコントローラ220は、動画映像デー
タのDMA転送時のアドレスを演算する機能を有すると
ともに、動画を垂直方向と水平方向に任意に変倍する機
能を有している。以下ではこれらの機能とこれに関連す
る回路の構成について説明する。
D. Details of Circuit Configuration in DMA Controller 220: The DMA controller 220 shown in FIG. 5 has a function of calculating an address at the time of DMA transfer of moving image data, and a function of arbitrarily scaling a moving image vertically and horizontally. have. Below, these functions and the configuration of circuits related thereto will be described.

【0061】図12は、図5に示すFIFOメモリユニ
ット318の内部構成を示すブロック図である。図12
(A)に示すように、FIFOメモリユニット318
は、FIFO制御部321と、2つのFIFOメモリ3
22,324を備えている。また、図12(B)に示す
ように、FIFO制御部321は5つのPLL回路32
5〜328,510と波形成形部511とを有してい
る。第1ないし第3のPLL回路325〜327は、水
平同期信号HSYNCの周波数をNH0倍、(NH0*H
X)倍、および、NH 倍した信号CLKI,CLKO,
DCLKをそれぞれ生成する。また、第4のPLL回路
328は、垂直同期信号VSYNCの周波数をNV 倍し
た信号HINCを生成する。第5のPLL回路510
は、図12(C)に示すように、水平同期信号HSYN
Cの周波数をHX倍した信号HSYNC*HXを生成
し、波形成形部511はその立ち上がりエッジを検出し
て第2の水平同期信号XHSYNCを生成する。この第
2の水平同期信号XHSYNCは、第1の水平同期信号
HSYNCのHX倍の周波数を有する同期信号である。
なお、各PLL回路内の設定値NH0,(NH0*HX),
NH ,NV ,HXは、CPU202によって設定され
る。これらのPLL回路325〜328は、映像の拡大
・縮小を行なうための回路であり、その機能については
後述する。
FIG. 12 is a block diagram showing an internal structure of the FIFO memory unit 318 shown in FIG. 12
As shown in (A), a FIFO memory unit 318
Is a FIFO control unit 321 and two FIFO memories 3
22 and 324 are provided. Further, as shown in FIG. 12B, the FIFO control unit 321 has five PLL circuits 32.
It has 5-328,510 and the waveform shaping part 511. The first to third PLL circuits 325 to 327 multiply the frequency of the horizontal synchronization signal HSYNC by NH0, (NH0 * H).
X) times and NH times signals CLKI, CLKO,
Generate DCLK respectively. Further, the fourth PLL circuit 328 generates a signal HINC that is the frequency of the vertical synchronizing signal VSYNC multiplied by NV. Fifth PLL circuit 510
Is the horizontal synchronization signal HSYN, as shown in FIG.
A signal HSYNC * HX obtained by multiplying the frequency of C by HX is generated, and the waveform shaping section 511 detects the rising edge thereof to generate the second horizontal synchronization signal XHSYNC. The second horizontal synchronizing signal XHSYNC is a synchronizing signal having a frequency that is HX times the frequency of the first horizontal synchronizing signal HSYNC.
The set values NH0, (NH0 * HX) in each PLL circuit,
NH, NV and HX are set by the CPU 202. These PLL circuits 325 to 328 are circuits for enlarging / reducing images, and their functions will be described later.

【0062】なお、2つのFIFOメモリ322,32
4は、所定量の映像データを一時的に記憶する映像デー
タバッファとしての機能を有しており、FIFO制御部
321は映像データバッファ制御部としての機能を有し
ている。また、第1のPLL回路325は入力クロック
生成手段として、第2のPLL回路326は出力クロッ
ク生成手段として、第3のPLL回路327はドットク
ロック生成手段として、第4のPLL回路328はライ
ンインクリメント信号生成手段としての機能をそれぞれ
有している。なお、第2と第4のPLL回路326,3
28およびFIFOメモリユニット318が協同して、
映像を垂直方向に変倍可能な変倍手段としての機能を発
揮する。また、第2と第3のPLL回路326,327
が協同して、映像データで表わされる映像を水平方向に
変倍可能な変倍手段としての機能を発揮する。
The two FIFO memories 322 and 32 are
Reference numeral 4 has a function as a video data buffer for temporarily storing a predetermined amount of video data, and the FIFO control unit 321 has a function as a video data buffer control unit. Further, the first PLL circuit 325 serves as an input clock generation means, the second PLL circuit 326 serves as an output clock generation means, the third PLL circuit 327 serves as a dot clock generation means, and the fourth PLL circuit 328 serves as a line increment. Each has a function as a signal generation means. The second and fourth PLL circuits 326, 3
28 and the FIFO memory unit 318 work together,
It exerts a function as a scaling unit that can scale an image vertically. In addition, the second and third PLL circuits 326 and 327
Cooperate with each other to exert a function as a scaling means capable of scaling a video represented by video data in the horizontal direction.

【0063】図5に示したように、FIFOメモリユニ
ット318から出力された映像データは、データ出力部
314を介してデータバス229上に出力される。そし
て、DMA制御部316がアドレスバス228と、デー
タバス229と、制御バス230の使用権をビデオアク
セラレータ210から取得し、映像データMDATAを
2ポートVRAM212に転送する。
As shown in FIG. 5, the video data output from the FIFO memory unit 318 is output to the data bus 229 via the data output unit 314. Then, the DMA control unit 316 acquires the right to use the address bus 228, the data bus 229, and the control bus 230 from the video accelerator 210, and transfers the video data MDATA to the 2-port VRAM 212.

【0064】図13は、DMAコントローラ220内の
DMAアドレス演算部312と、データ出力部314
と、DMA制御部316の内部構成を示すブロック図で
ある。データ出力部314は、コンポーネント映像デー
タVDを保持するためのラッチ364を備えている。な
お、コンポーネント映像データVDを複数画素分まとめ
てデータバス229上に出力する場合には、シリアル/
パラレル変換器を備えるようにすればよい。
FIG. 13 shows a DMA address calculation unit 312 and a data output unit 314 in the DMA controller 220.
3 is a block diagram showing an internal configuration of a DMA control unit 316. FIG. The data output unit 314 includes a latch 364 for holding the component video data VD. When outputting the component video data VD for a plurality of pixels together on the data bus 229, serial / serial
A parallel converter may be provided.

【0065】DMAアドレス演算部312は、オフセッ
トアドレス記憶部330と、加算アドレス値記憶部33
2と、垂直カウンタ部334と、水平カウンタ部336
と、乗算器338と、2つの加算器340,342とを
有している。乗算器338は、加算アドレス値記憶部3
32に記憶された加算アドレス値と、垂直カウンタ部3
34から出力される垂直方向のカウント値とを乗算す
る。第1の加算器340は、オフセットアドレス記憶部
330に予め記憶されたオフセットアドレス(後述す
る)と乗算器338の乗算結果とを加算する。第2の加
算器342は、第1の加算器340の加算結果と、水平
カウンタ部336のカウント値とを加算する。なお、第
2の加算器342の出力AD2が、DMA転送時にVR
AM212に与えられるアドレスMADDとなる。第2
の加算器342はトライステート出力を有している。
The DMA address calculation unit 312 has an offset address storage unit 330 and an addition address value storage unit 33.
2, a vertical counter unit 334, and a horizontal counter unit 336.
, And a multiplier 338 and two adders 340 and 342. The multiplier 338 is used by the addition address value storage unit 3
The added address value stored in 32 and the vertical counter unit 3
It is multiplied by the vertical count value output from 34. The first adder 340 adds an offset address (described later) stored in advance in the offset address storage unit 330 and the multiplication result of the multiplier 338. The second adder 342 adds the addition result of the first adder 340 and the count value of the horizontal counter unit 336. The output AD2 of the second adder 342 is VR
It becomes the address MADD given to the AM 212. Second
Adder 342 has a tri-state output.

【0066】E.データ転送時のアドレス演算:図14
は、2ポートVRAM212のメモリマップである。こ
のVRAM212の1ワードは24ビットであり、1ワ
ードに映像データのR成分とG成分とB成分とが含まれ
ている。また、画面上の1画素(1ドット)が1ワード
に対応している。
E. Address calculation during data transfer: Fig. 14
Is a memory map of the 2-port VRAM 212. One word of this VRAM 212 is 24 bits, and one word contains R component, G component and B component of video data. Further, one pixel (one dot) on the screen corresponds to one word.

【0067】図15は、VRAM212のメモリ空間と
画面との対応関係を示す説明図である。この図では、V
RAM212の水平レンジ80の画素数は640(50
hワード)、垂直レンジ81の走査線本数は199h
(=409)である。DMA転送によって動画の映像デ
ータが書き込まれる動画領域MPAは、図15に斜線で
示すように、垂直方向に2ライン目で水平方向に2画素
目の開始位置から、水平方向に2画素の幅を有し、垂直
方向に2ラインの幅を有する合計4画素の領域である。
なお、動画領域MPAの位置とサイズは、オペレータが
カラーCRT300またはカラー液晶ディスプレイ30
2の画面上で指定する。
FIG. 15 is an explanatory diagram showing the correspondence between the memory space of the VRAM 212 and the screen. In this figure, V
The number of pixels of the horizontal range 80 of the RAM 212 is 640 (50
The number of scanning lines in the vertical range 81 is 199h.
(= 409). The moving image area MPA in which the moving image data is written by the DMA transfer has a width of 2 pixels in the horizontal direction from the start position of the second pixel in the horizontal direction on the second line in the vertical direction, as shown by the diagonal lines in FIG. It is an area of 4 pixels in total having a width of 2 lines in the vertical direction.
It should be noted that the position and size of the moving image area MPA can be set by the operator in the color CRT 300 or the color liquid crystal display 30.
Specify on screen 2.

【0068】なお、動画領域MPAは矩形の領域である
が、前述したように、色比較信号CCMPのレベルに応
じて指定色以外の色を有する映像データのみが2ポート
VRAM212に書き込まれる。但し、以下では説明の
便宜上、動画領域MPA内の映像データが全て2ポート
VRAM212に書き込まれる場合について説明する。
Although the moving image area MPA is a rectangular area, as described above, only the video data having a color other than the designated color according to the level of the color comparison signal CCMP is written in the 2-port VRAM 212. However, for convenience of description, a case where all the video data in the moving image area MPA is written in the 2-port VRAM 212 will be described below.

【0069】図16は、カラーCRT300の画面上に
おける動画領域MPAを示す平面図である。図15に示
すメモリ空間は、図16に示すカラーCRT300の表
示画面と1:1で対応している。
FIG. 16 is a plan view showing a moving image area MPA on the screen of the color CRT 300. The memory space shown in FIG. 15 has a 1: 1 correspondence with the display screen of the color CRT 300 shown in FIG.

【0070】以下ではインターレース走査の行なわない
場合のアドレス演算について最初に説明し、インターレ
ース走査を行なう場合のアドレスの演算については後述
する。
In the following, address calculation when interlaced scanning is not performed will be described first, and address calculation when interlaced scanning is performed will be described later.

【0071】図17は、アドレス演算部312を拡大し
て示すブロック図である。オフセットアドレス記憶部3
30に記憶されるオフセットアドレスOFADは、図1
5において、先頭アドレス0000hから動画領域MP
Aの書込み開始位置のアドレス(0051h)までのオ
フセットの値(51h)である。
FIG. 17 is an enlarged block diagram showing the address calculation unit 312. Offset address storage unit 3
The offset address OFAD stored in 30 is shown in FIG.
5, the moving image area MP from the start address 0000h
It is an offset value (51h) up to the address (0051h) of the write start position of A.

【0072】書込み開始位置のアドレス(=0051
h)は、画面上においてオペレータが指定した動画領域
MPA(図16)の左上点P1の位置に応じて決定され
る。オペレータが動画領域MPAを指定すると、CPU
202が左上点P1に相当する書込み開始位置のアドレ
ス(=0051h)を算出し、このアドレス(=005
1h)をオフセットアドレスOFADとしてオフセット
アドレス記憶部330に設定する。オペレータはカラー
CRT300またはカラー液晶ディスプレイ302の画
面上で任意の位置に任意の大きさの動画領域MPAを設
定することができ、これに応じてオフセットアドレスO
FADが設定される。
Address of write start position (= 0051
h) is determined according to the position of the upper left point P1 of the moving image area MPA (FIG. 16) designated by the operator on the screen. When the operator specifies the moving image area MPA, the CPU
202 calculates the address (= 0051h) of the write start position corresponding to the upper left point P1, and this address (= 005
1h) is set in the offset address storage unit 330 as the offset address OFAD. The operator can set the moving image area MPA of any size at any position on the screen of the color CRT 300 or the color liquid crystal display 302, and the offset address O can be set accordingly.
FAD is set.

【0073】加算アドレス値記憶部332に記憶される
加算アドレスADADは、メモリ空間における1走査線
分の画素数に等しく、この実施例では50hに設定され
ている。
The addition address ADAD stored in the addition address value storage unit 332 is equal to the number of pixels of one scanning line in the memory space, and is set to 50h in this embodiment.

【0074】乗算器338の出力MULと、2つの加算
器340,342の出力AD1,AD2は、それぞれ次
の算術式で与えられる。 MUL=ADAD×VCNT …(1) AD1=OFAD+MUL …(2) AD2=AD1+HCNT …(3)
The output MUL of the multiplier 338 and the outputs AD1 and AD2 of the two adders 340 and 342 are given by the following arithmetic expressions, respectively. MUL = ADAD × VCNT… (1) AD1 = OFAD + MUL… (2) AD2 = AD1 + HCNT… (3)

【0075】上記(1)〜(3)式をまとめると、各画
素に対する第2の加算器342の出力AD2は次の算術
式で与えられる。 AD2 =(ADAD×VCNT)+OFAD+HCNT …(4)
Summarizing the above equations (1) to (3), the output AD2 of the second adder 342 for each pixel is given by the following arithmetic equation. AD2 = (ADAD × VCNT) + OFAD + HCNT (4)

【0076】垂直カウントVCNTは動画領域MPA内
の走査線番号を示している。水平カウントHCNTは各
走査線の左端点から測った位置を画素単位で示してお
り、本発明における水平アドレス値に相当する。なお、
乗算器338の出力MULは、本発明における垂直アド
レス値に相当する。
The vertical count VCNT indicates the scanning line number in the moving image area MPA. The horizontal count HCNT indicates the position measured from the left end point of each scanning line in pixel units, and corresponds to the horizontal address value in the present invention. In addition,
The output MUL of the multiplier 338 corresponds to the vertical address value in the present invention.

【0077】上記の(4)式は、垂直カウントVCNT
と水平カウントHCNTで示される位置に対応するアド
レスAD2を与える式である。なお、この実施例ではA
DAD=50h,OFAD=51hなので、(4)式は
次の(5)式に書き換えられる。 AD2 =(50h×VCNT)+51h+HCNT …(5)
Equation (4) above is the vertical count VCNT.
And an address AD2 corresponding to the position indicated by the horizontal count HCNT. In this embodiment, A
Since DAD = 50h and OFAD = 51h, the equation (4) can be rewritten as the following equation (5). AD2 = (50h × VCNT) + 51h + HCNT… (5)

【0078】後述するように、動画領域MPA(図1
6)内の1本の走査線分のDMA転送が終了するたびに
垂直カウントVCNTが1つ増加し、また、同一の走査
線上におい各画素の1ワード分の映像データがDMA転
送されるたびに水平カウントHCNTが1つ増加する。
この結果、動画領域MPA内の映像を表わすコンポーネ
ント映像データVDが上記数式(5)で示されるアドレ
スに従ってVRAM212に書き込まれる。
As will be described later, the moving image area MPA (see FIG.
Each time the DMA transfer for one scanning line in 6) is completed, the vertical count VCNT is incremented by one, and each time one-word video data of each pixel is DMA transferred on the same scanning line. The horizontal count HCNT is incremented by 1.
As a result, the component video data VD representing the video in the moving image area MPA is written in the VRAM 212 according to the address shown by the above equation (5).

【0079】F.データ転送の詳細動作:図18は、図
10に示すDMA転送の動作の詳細を示すタイミングチ
ャートである。バックポーチ期間が過ぎ、有効映像期間
において第2の水平同期信号XHSYNCがLレベルに
なると、水平カウンタ部336が0にリセットされて動
作開始状態となり、また、垂直カウンタ部334のカウ
ントアップが開始される。ここで、垂直カウンタ部33
4の動作を理解するために、その内部構成について説明
する。
F. Detailed operation of data transfer: FIG. 18 is a timing chart showing details of the operation of the DMA transfer shown in FIG. When the back porch period has passed and the second horizontal synchronizing signal XHSYNC becomes L level in the effective video period, the horizontal counter section 336 is reset to 0 to start the operation, and the vertical counter section 334 starts counting up. It Here, the vertical counter unit 33
In order to understand the operation of No. 4, the internal configuration will be described.

【0080】図19は、垂直カウンタ部334の内部構
成と、FIFO制御部321内の関連部分を示すブロッ
ク図である。FIFO制御部321のPLL回路327
は、映像デコーダ224から与えられた水平同期信号H
SYNCの周波数をNH 倍したドットクロック信号DC
LKを生成する。また、他のPLL回路328は、垂直
同期信号VSYNCの周波数をNV 倍したラインインク
リメント信号HINCを生成する。ラインインクリメン
ト信号HINCは、後述するように、映像を垂直方向に
縮小する際に用いられる。ここではまず、ラインインク
リメント信号HINCの周波数が第2の水平同期信号X
HSYNCと同じである場合のDMA転送について説明
する。ラインインクリメント信号HINCの周波数が第
2の水平同期信号XHSYNCと同じである場合には、
映像の縮小が行なわれない。
FIG. 19 is a block diagram showing an internal structure of the vertical counter section 334 and a related portion in the FIFO control section 321. PLL circuit 327 of FIFO control section 321
Is the horizontal synchronizing signal H supplied from the video decoder 224.
Dot clock signal DC with SYNC frequency multiplied by NH
Generate LK. Further, the other PLL circuit 328 generates a line increment signal HINC obtained by multiplying the frequency of the vertical synchronization signal VSYNC by NV. The line increment signal HINC is used when the image is reduced in the vertical direction, as described later. Here, first, the frequency of the line increment signal HINC is the second horizontal synchronization signal X.
The DMA transfer when it is the same as HSYNC will be described. If the frequency of the line increment signal HINC is the same as the second horizontal synchronization signal XHSYNC,
The image is not reduced.

【0081】垂直カウンタ部334は、バックポーチ記
憶部402と、比較器404と、バックポーチカウンタ
406と、垂直カウンタ408と、ラッチ410とを有
している。バックポーチ記憶部402は、CPUバスを
介してCPU202から与えられたバックポーチ数BP
を記憶する。ここで、バックポーチ数BPはバックポー
チ期間における水平同期信号HSYNCのパルス数であ
る。バックポーチカウンタ406には第1の水平同期信
号HSYNCが与えられ、ラッチ410のクロック入力
端子には第2の水平同期信号XHSYNCが与えられて
いる。また、垂直カウンタ408のクロック入力端子に
はラインインクリメント信号HINCが与えられてい
る。また、バックポーチカウンタ406と垂直カウンタ
408のリセット入力端子には垂直同期信号VSYNC
が与えられている。比較器404は、バックポーチ記憶
部402に記憶されたバックポーチ数BPと、バックポ
ーチカウンタ406のカウント値BPCとを比較する。
The vertical counter unit 334 has a back porch storage unit 402, a comparator 404, a back porch counter 406, a vertical counter 408, and a latch 410. The back porch storage unit 402 is a back porch number BP given from the CPU 202 via the CPU bus.
Memorize Here, the back porch number BP is the pulse number of the horizontal synchronizing signal HSYNC in the back porch period. The back porch counter 406 is supplied with the first horizontal synchronizing signal HSYNC, and the clock input terminal of the latch 410 is supplied with the second horizontal synchronizing signal XHSYNC. A line increment signal HINC is given to the clock input terminal of the vertical counter 408. The vertical sync signal VSYNC is applied to the reset input terminals of the back porch counter 406 and the vertical counter 408.
Is given. The comparator 404 compares the back porch number BP stored in the back porch storage unit 402 with the count value BPC of the back porch counter 406.

【0082】比較器404の出力CMPはBP=BPC
の時にHレベルとなり、BP≠BPCの時にはLレベル
となる。また、バックポーチカウンタ406は比較器4
04の出力CMPがLレベルの時にイネーブルとなり、
垂直カウンタ408はCMPがHレベルの時にイネーブ
ルとなる。
The output CMP of the comparator 404 is BP = BPC
When it is, it becomes H level, and when BP ≠ BPC, it becomes L level. The back porch counter 406 is the comparator 4
When the output CMP of 04 is L level, it is enabled,
The vertical counter 408 is enabled when CMP is at H level.

【0083】垂直同期信号VSYNCが垂直カウンタ部
334に与えられるとバックポーチカウンタ406と垂
直カウンタ408とがリセットされる。このとき、比較
器404の出力CMPはLレベルなので、バックポーチ
カウンタ406がイネーブルとなり、水平同期信号HS
YNCのパルス数をカウントする。一方、垂直カウンタ
408は停止したままである。水平同期信号HSYNC
のパルスがバックポーチ数BPと等しい数だけバックポ
ーチカウンタ406に入力されると、BP=BPCとな
る。この結果、比較器404の出力CMPがHレベルと
なり、バックポーチカウンタ406が停止するととも
に、垂直カウンタ408がカウントアップを開始する。
垂直カウンタ408のカウント値CNTは、第2の水平
同期信号XHSYNCの立上がりエッジでラッチ410
に保持されて、垂直カウントVCNTとして出力され
る。この垂直カウントVCNTが画面上の走査線番号を
示している。なお、垂直方向に縮小を行なわない場合に
は、第2の水平同期信号XHSYNCとラインインクリ
メント信号HINCの周波数が等しく、従って、垂直カ
ウントVCNTは第2の水平同期信号XHSYNCのパ
ルス数に等しい。
When the vertical synchronizing signal VSYNC is applied to the vertical counter section 334, the back porch counter 406 and the vertical counter 408 are reset. At this time, since the output CMP of the comparator 404 is L level, the back porch counter 406 is enabled, and the horizontal synchronization signal HS is output.
Count the number of YNC pulses. On the other hand, the vertical counter 408 remains stopped. Horizontal sync signal HSYNC
When the number of pulses of (1) is input to the back porch counter 406 by the number equal to the back porch number BP, BP = BPC. As a result, the output CMP of the comparator 404 becomes H level, the back porch counter 406 stops, and the vertical counter 408 starts counting up.
The count value CNT of the vertical counter 408 is latched 410 at the rising edge of the second horizontal synchronization signal XHSYNC.
, And is output as the vertical count VCNT. This vertical count VCNT indicates the scanning line number on the screen. When no reduction is performed in the vertical direction, the frequencies of the second horizontal synchronizing signal XHSYNC and the line increment signal HINC are equal, and thus the vertical count VCNT is equal to the number of pulses of the second horizontal synchronizing signal XHSYNC.

【0084】このように、垂直カウンタ408とラッチ
410は、走査線番号を加算する手段としての機能を有
している。
As described above, the vertical counter 408 and the latch 410 have a function as means for adding the scanning line numbers.

【0085】DMA制御部316内の制御信号発生部3
60(図13)には、FIFO制御部321のPLL回
路327(図19)で生成されたドットクロック信号D
CLKが与えられている。制御信号発生部360は、こ
のドットクロック信号DCLKに同期して、水平カウン
タ部336を制御している。
Control signal generator 3 in DMA controller 316
60 (FIG. 13), the dot clock signal D generated by the PLL circuit 327 (FIG. 19) of the FIFO control unit 321.
CLK is given. The control signal generating section 360 controls the horizontal counter section 336 in synchronization with the dot clock signal DCLK.

【0086】図18の期間TT1において、1画素(=
1ワ−ド=24ビット)分の映像データMDATAがD
MA転送されると、制御信号発生部360がワード同期
信号WSYNCを水平カウンタ部336に出力する。な
お、制御信号発生部360は、ドットクロック信号DC
LKの1パルス毎にワード同期信号WSYNCを1パル
ス出力している。水平カウンタ部336はワード同期信
号WSYNCの各パルスに応じて水平カウントHCNT
を1つカウントアップする。期間TT1では、上記
(5)式においてVCNT=0h,HCNT=0hとな
るので、AD2=0051hとなる。このアドレスAD
2は、図15に示す動画領域MPAの左上部分のアドレ
スに相当する。
In the period TT1 of FIG. 18, one pixel (=
1 word = 24 bits) worth of video data MDATA is D
Upon MA transfer, the control signal generator 360 outputs the word synchronization signal WSYNC to the horizontal counter 336. The control signal generation unit 360 uses the dot clock signal DC
One pulse of the word synchronization signal WSYNC is output for each pulse of LK. The horizontal counter unit 336 counts the horizontal count HCNT in response to each pulse of the word synchronization signal WSYNC.
Count up by one. In the period TT1, since VCNT = 0h and HCNT = 0h in the above equation (5), AD2 = 0051h. This address AD
2 corresponds to the address of the upper left portion of the moving image area MPA shown in FIG.

【0087】期間TT2では、VCNT=0h,HCN
T=1hとなるので、AD2=A0052hとなる。こ
のアドレスAD2は、図15に示す動画領域MPAの右
上部分のアドレスに相当する。
In the period TT2, VCNT = 0h, HCN
Since T = 1h, AD2 = A0052h. The address AD2 corresponds to the address in the upper right portion of the moving image area MPA shown in FIG.

【0088】このように、期間TT1,TT2におい
て、図16の動画領域MPA内の第1番目の走査線L1
についての転送が終了する。従って、期間TT2が終了
すると、DMA制御部316に走査線の終了と開始を示
す第2の水平同期信号XHSYNCが与えられる。な
お、この第2の水平同期信号XHSYNCは、図12
(B)に示すように、FIFO制御部321内において
第1の水平同期信号HSYNCの周波数をHX倍するこ
とによって生成された信号である。
As described above, in the periods TT1 and TT2, the first scanning line L1 in the moving image area MPA shown in FIG.
Ends the transfer. Therefore, when the period TT2 ends, the second horizontal synchronizing signal XHSYNC indicating the end and start of the scanning line is given to the DMA control unit 316. The second horizontal synchronization signal XHSYNC is shown in FIG.
As shown in (B), it is a signal generated by multiplying the frequency of the first horizontal synchronization signal HSYNC by HX in the FIFO control unit 321.

【0089】期間TT3の始期を示す第2の水平同期信
号XHSYNCのパルスに応じて、垂直カウンタ部33
4の垂直カウントVCNTが1つ増加してVCNT=1
hになるとともに、水平カウンタ部336の水平カウン
トHCNTが0にリセットされる。この後は、上記と同
様な手順によって、映像データMDATAがVRAM2
12のアドレス00A1h,00A2hに順次転送され
る。
In response to the pulse of the second horizontal synchronizing signal XHSYNC indicating the start of the period TT3, the vertical counter unit 33
Vertical count VCNT of 4 is incremented by 1 and VCNT = 1
At the same time as h, the horizontal count HCNT of the horizontal counter unit 336 is reset to 0. After that, the video data MDATA is transferred to the VRAM2 by the same procedure as described above.
Twelve addresses 00A1h and 00A2h are sequentially transferred.

【0090】こうして動画領域MPA(図16)内にお
けるすべての走査線L1,L2に関するDMA転送が終
了すると、垂直同期信号VSYNCに応じて垂直カウン
タ部334と水平カウンタ部336が0にリセットされ
る。この結果、DMAコントローラ220は初期状態に
戻り、次のフィ−ルドの映像データが送られてくるまで
待機する。
When the DMA transfer for all the scanning lines L1 and L2 in the moving image area MPA (FIG. 16) is completed in this way, the vertical counter section 334 and the horizontal counter section 336 are reset to 0 according to the vertical synchronizing signal VSYNC. As a result, the DMA controller 220 returns to the initial state and waits until the video data of the next field is sent.

【0091】このように、映像を垂直方向に縮小しない
場合には、垂直同期信号VSYNCが与えられるたびに
垂直カウントVCNTと水平カウントHCNTが0にリ
セットされ、また、第2の水平同期信号XHSYNCが
与えられるたびに垂直カウントVCNTが1つ増加する
とともに水平カウントHCNTが0にリセットされる。
映像を垂直方向に縮小する場合には、第2の水平同期信
号XHSYNCとラインインクリメント信号HINCと
に応じて垂直カウントVCNTが増加するが、これにつ
いては後述する。
As described above, when the image is not reduced in the vertical direction, the vertical count VCNT and the horizontal count HCNT are reset to 0 each time the vertical synchronization signal VSYNC is applied, and the second horizontal synchronization signal XHSYNC is set. Each time it is applied, the vertical count VCNT is incremented by 1 and the horizontal count HCNT is reset to 0.
When the image is reduced in the vertical direction, the vertical count VCNT increases according to the second horizontal synchronizing signal XHSYNC and the line increment signal HINC, which will be described later.

【0092】上述したように、垂直カウントVCNT
は、第2の水平同期信号XHSYNCとラインインクリ
メント信号HINCとに応じてカウントアップされ、水
平カウントHCNTはワード同期信号WSYNCに応じ
てカウントアップされる。また、VRAM212上のア
ドレスは前述の(5)式に従って求められるので、第2
の水平同期信号XHSYNCと、ラインインクリメント
信号HINCと、ワード同期信号WSYNCとに応じて
VRAM上のアドレスが順次更新されていくことにな
る。この結果、動画領域MPA内における映像を表わす
映像データMDATAが約1/60秒ごとにVRAM2
12に転送されて、動画が表示される。
As described above, the vertical count VCNT
Is counted up according to the second horizontal synchronizing signal XHSYNC and the line increment signal HINC, and the horizontal count HCNT is counted up according to the word synchronizing signal WSYNC. Since the address on the VRAM 212 is obtained according to the above equation (5), the second
The address on the VRAM is sequentially updated according to the horizontal synchronizing signal XHSYNC, the line increment signal HINC, and the word synchronizing signal WSYNC. As a result, the video data MDATA representing the video in the moving image area MPA is stored in the VRAM2 every 1/60 seconds.
12, and the moving image is displayed.

【0093】G.インターレース走査を行なう場合のア
ドレス演算:図20は、インターレース走査を行なう場
合の奇数ラインフィールドと偶数ラインフィールドのメ
モリ空間を示す説明図であり、図15に対応する図であ
る。奇数ラインフィールドは、動画領域MPA内の4つ
のアドレスのうちで2つのアドレス00A1h,00A
2hのみを含んでおり、偶数ラインフィールドは他の2
つのアドレス0051Ah,0052Aのみを含んでい
る。
G. Address calculation when interlaced scanning is performed: FIG. 20 is an explanatory diagram showing a memory space of odd line fields and even line fields when interlaced scanning is performed, and is a diagram corresponding to FIG. The odd line field has two addresses 00A1h, 00A out of the four addresses in the moving image area MPA.
2h only, the even line field is
Only one address 0051Ah, 0052A is included.

【0094】インターレースを行なう場合には、オフセ
ットアドレス記憶部330(図13)に奇数ラインフィ
ールド用のオフセットアドレスOFAD1=A1hと偶
数ラインフィールド用のオフセットアドレスOFAD2
=51hとを登録する。オフセットアドレス記憶部33
0は、これらの2つのオフセットアドレスOFAD1,
OFAD2の一方をフィールド指示信号FISに応じて
選択的に出力する。なお、2:1のインターレースの場
合には、加算アドレスADADはインターレースが無い
場合の値(=50h)の2倍(=A0h)となる。この
ように、インターレース走査の場合には、オフセットア
ドレスOFADと加算アドレスADADとを調整するこ
とによって、インターレースが無い場合と同様に、上記
(5)式に従って映像データのアドレスを算出できる。
When interlacing is performed, an offset address OFAD1 = A1h for odd line fields and an offset address OFAD2 for even line fields are stored in the offset address storage unit 330 (FIG. 13).
= 51h is registered. Offset address storage unit 33
0 represents these two offset addresses OFAD1,
One of OFAD2 is selectively output according to the field instruction signal FIS. In the case of 2: 1 interlace, the addition address ADAD is twice (= A0h) the value (= 50h) when there is no interlace. Thus, in the case of interlaced scanning, by adjusting the offset address OFAD and the addition address ADAD, the address of the video data can be calculated according to the above equation (5), as in the case without interlacing.

【0095】なお、インターレースを行なうための映像
データを転送する場合にも、意図的にインターレースを
行なわずに同一のアドレスに奇数ラインフィールドと偶
数ラインフィールドの映像データを書き込むことも可能
である。この場合には、インターレースが無い場合のオ
フセットアドレスOFADと加算アドレスADADと
を、両方のフィールドに共通して使用すればよい。
Even when video data for interlacing is transferred, it is possible to write video data of odd line fields and even line fields at the same address without intentionally performing interlacing. In this case, the offset address OFAD and the addition address ADAD when there is no interlace may be commonly used for both fields.

【0096】上記実施例によれば、DMAコントローラ
220内部のアドレス演算部312が1つの乗算器と複
数の加算器だけで構成されているので、アドレスを高速
に演算することができる。さらに、VRAM212以外
に映像メモリを必要とせずにDMA転送を実行すること
ができるので、コンピュータシステム全体の回路構成が
比較的単純であり、安価に構成できるという利点があ
る。
According to the above embodiment, the address calculation unit 312 inside the DMA controller 220 is composed of only one multiplier and a plurality of adders, so that the address can be calculated at high speed. Furthermore, since the DMA transfer can be executed without requiring a video memory other than the VRAM 212, there is an advantage that the circuit configuration of the entire computer system is relatively simple and can be configured at low cost.

【0097】H.映像の拡大・縮小処理:このコンピュ
ータシステムでは、FIFOメモリユニット318(図
12)が映像を拡大・縮小する機能を有している。図2
1は、垂直方向に拡大する機能を説明する説明図であ
り、(a)は入力映像データVDI 、(b)は出力映像
データVDO 、(c)は2つのFIFOメモリの動作を
それぞれ示している。但し、図21(a),(b)で
は、図示の便宜上、映像データを元のアナログ映像信号
VSの形で描いている。
H. Image enlargement / reduction processing: In this computer system, the FIFO memory unit 318 (FIG. 12) has a function of enlarging / reducing an image. Figure 2
FIG. 1 is an explanatory view for explaining the function of vertically expanding, (a) shows input video data VDI, (b) shows output video data VDO, and (c) shows operations of two FIFO memories. . However, in FIGS. 21A and 21B, for convenience of illustration, the video data is drawn in the form of the original analog video signal VS.

【0098】図21(c)に示すように、2つのFIF
Oメモリ322,324の入力端子と出力端子は、仮想
的なトグルスイッチ323a,323bによって相補的
に交互に切換えられている。これらの仮想的なトグルス
イッチ323a,323bは、FIFO制御部321か
ら与えられる入力イネーブル信号REと出力イネーブル
信号OEによって、2つのFIFOメモリ322,32
4の入出力が相補的に交互に切換えられることを等価的
に示したものである。2つのFIFOメモリ322,3
24には、入力クロック信号CLKIと出力クロック信
号CLKOとが共通に与えられている。入力クロック信
号CLKIの周波数fCLKIは、図12(B)からも解る
ように、水平同期信号HSYNCの周波数をNH0倍した
ものであり、映像入力端子226に与えられた映像信号
VSがNTSC信号の場合には約6MHzの一定の周波
数である。一方、出力クロック信号CLKOの周波数f
CLKOは、入力クロック信号CLKIの周波数fCLKIのH
X倍(HXは整数)の値である(図12(B)参照)。
すなわち、出力クロック信号CLKOを生成するPLL
回路326の設定値(NH0*HX)は、入力クロック信
号CLKIを生成するPLL回路325の設定値NH0の
HX倍に設定される。この実施例では、HX=3と仮定
する。
As shown in FIG. 21C, two FIFs are
Input terminals and output terminals of the O memories 322 and 324 are complementarily and alternately switched by virtual toggle switches 323a and 323b. These virtual toggle switches 323a and 323b receive the two FIFO memories 322 and 32 according to the input enable signal RE and the output enable signal OE provided from the FIFO control section 321.
It is equivalently shown that the inputs and outputs of 4 are complementarily and alternately switched. Two FIFO memories 322,3
An input clock signal CLKI and an output clock signal CLKO are commonly supplied to 24. As can be seen from FIG. 12B, the frequency fCLKI of the input clock signal CLKI is the frequency of the horizontal synchronizing signal HSYNC multiplied by NH0, and when the video signal VS given to the video input terminal 226 is an NTSC signal. Has a constant frequency of about 6 MHz. On the other hand, the frequency f of the output clock signal CLKO
CLKO is H of the frequency fCLKI of the input clock signal CLKI.
The value is X times (HX is an integer) (see FIG. 12B).
That is, the PLL that generates the output clock signal CLKO
The set value (NH0 * HX) of the circuit 326 is set to HX times the set value NH0 of the PLL circuit 325 that generates the input clock signal CLKI. In this example, assume HX = 3.

【0099】図21(a),(b)の第1の期間TT1
1と第3の期間TT13では、第1のFIFOメモリ3
22に入力映像データVDI が書き込まれ、第2のFI
FOメモリ324から出力映像データVDO が読み出さ
れる。第2の期間TT12では、第2のFIFOメモリ
324に入力映像データVDI が書き込まれ、第1のF
IFOメモリ322から出力映像データVDO が読み出
される。この結果、第1の期間TT11では第1の走査
線L1に関する映像データが第1のFIFOメモリ32
2に書き込まれる。また、第2の期間TT12では、第
2の走査線L2に関する映像データが第2のFIFOメ
モリ324に書き込まれる。図21の例は出力クロック
信号CLKOの周波数fCLKOが入力クロック信号CLK
Iの周波数fCLKIの3倍に設定されているので、第2の
期間TT12において、第1の走査線L1に関する映像
データが第1のFIFOメモリ322から3回読み出さ
れる。
21A and 21B, the first period TT1
In the first and third periods TT13, the first FIFO memory 3
The input video data VDI is written in 22 and the second FI
The output video data VDO is read from the FO memory 324. In the second period TT12, the input video data VDI is written in the second FIFO memory 324, and the first F
The output video data VDO is read from the IFO memory 322. As a result, in the first period TT11, the video data regarding the first scanning line L1 is stored in the first FIFO memory 32.
Written to 2. In addition, in the second period TT12, the video data regarding the second scanning line L2 is written in the second FIFO memory 324. In the example of FIG. 21, the frequency fCLKO of the output clock signal CLKO is the input clock signal CLK.
Since the frequency is set to 3 times the frequency fCLKI of I, the video data regarding the first scanning line L1 is read from the first FIFO memory 322 three times in the second period TT12.

【0100】図22は、映像の垂直方向の拡大と縮小の
様子を示す説明図である。図22(A)は入力映像デー
タVDI を示し、図22(B)は出力映像データVDO
を示している。出力映像データVDO では、入力映像デ
ータVDI の各走査線がそれぞれHX(=3)回ずつ繰
り返されており、これによって映像が垂直方向にHX
(=3)倍に拡大されている。図22(B)において、
例えば「L1a」,「L1b」,「L1c」は、元の走
査線L1の映像データが3回繰り返して出力されている
ことを示している。このように、2つのFIFOメモリ
322,324を用いて出力クロック信号CLKOの周
波数fCLKOを入力クロック信号CLKIの周波数fCLKI
の整数倍に設定することによって、映像を垂直方向に整
数倍で拡大することが可能である。
FIG. 22 is an explanatory diagram showing how the image is enlarged and reduced in the vertical direction. 22A shows the input video data VDI, and FIG. 22B shows the output video data VDO.
Is shown. In the output video data VDO, each scanning line of the input video data VDI is repeated HX (= 3) times, so that the video is HX vertically.
(= 3) times as large. In FIG. 22 (B),
For example, “L1a”, “L1b”, and “L1c” indicate that the video data of the original scanning line L1 is repeatedly output three times. As described above, the frequency fCLKO of the output clock signal CLKO is changed to the frequency fCLKI of the input clock signal CLKI by using the two FIFO memories 322 and 324.
It is possible to enlarge the image in the vertical direction by an integral multiple by setting the integral multiple of.

【0101】垂直方向の縮小は、図19に示すFIFO
制御部321内のPLL回路328と、垂直カウンタ部
334内の垂直カウンタ408およびラッチ410とに
よって実現される。図23は、垂直方向の縮小動作を示
すタイミングチャートである。PLL回路328で生成
されるラインインクリメント信号HINC(図23
(a))は、垂直同期信号VSYNCの周波数fVSYNC
のNV 倍の周波数fHINCを有している。第2の水平同期
信号XHSYNC(図23(c))は、垂直同期信号V
SYNCの周波数fVSYNC の(NV0*HX)倍の周波数
fXHSYNCを有しており、NV0の値は元のアナログ映像信
号VSにおける1フィールドの走査線数(以下、「全画
ライン数」と呼ぶ)を示す一定値(NTSC信号の場合
にはNV0=262.5)である。なお、図24(A),
(B)に示すように、アナログ映像信号VSで表わされ
る映像の全画ライン数をNV0、有効画ライン数をNVLと
し、その映像をディスプレイデバイスに表示する際の表
示ライン数をNVMとすると、PLL回路328の設定値
NV は次式で与えられる。 NV =NVM*HX*NV0/(HX*NVL) =NVM*NV0/NVL ただし、NVM≦HX*NVLである。
The vertical reduction is performed by the FIFO shown in FIG.
It is realized by the PLL circuit 328 in the control unit 321 and the vertical counter 408 and the latch 410 in the vertical counter unit 334. FIG. 23 is a timing chart showing the reduction operation in the vertical direction. The line increment signal HINC generated by the PLL circuit 328 (see FIG.
(A)) shows the frequency fVSYNC of the vertical synchronization signal VSYNC.
Of the frequency fHINC. The second horizontal synchronizing signal XHSYNC (FIG. 23 (c)) is the vertical synchronizing signal V
The frequency fXHSYNC is (NV0 * HX) times the frequency fVSYNC of SYNC, and the value of NV0 is the number of scanning lines in one field in the original analog video signal VS (hereinafter, referred to as "total number of image lines"). It is a constant value (NV0 = 262.5 in the case of NTSC signal) shown. Note that FIG.
As shown in (B), if the total number of image lines of the image represented by the analog image signal VS is NV0, the number of effective image lines is NVL, and the number of display lines when displaying the image on the display device is NVM, The set value NV of the PLL circuit 328 is given by the following equation. NV = NVM * HX * NVO / (HX * NVL) = NVM * NV0 / NVL However, NVM≤HX * NVL.

【0102】上式において、例えば、NV0=262.
5,NVL=240,NVM=480を代入すれ、NV =5
25となる。
In the above equation, for example, NV0 = 262.
5, NVL = 240, NVM = 480 are substituted, NV = 5
25.

【0103】垂直カウンタ408(図19)は、ライン
インクリメント信号HINCの立上りエッジに応じてカ
ウント値CNT(図23(b))をカウントアップし、
また、ラッチ410は第2の水平同期信号XHSYNC
の立上りエッジに応じて垂直カウンタ408のカウント
値CNTをラッチして垂直カウントVCNT(図23
(d))として出力する。
The vertical counter 408 (FIG. 19) counts up the count value CNT (FIG. 23 (b)) in response to the rising edge of the line increment signal HINC,
Further, the latch 410 receives the second horizontal synchronizing signal XHSYNC.
The count value CNT of the vertical counter 408 is latched according to the rising edge of
(D)) is output.

【0104】図23の例では、ラインインクリメント信
号HINCの周波数fHINCと第2の水平同期信号XHS
YNCの周波数fXHSYNCの比(NV /NV0*HX)は2
/3であり、これに応じて、垂直カウントVCNT(図
23(d))は0,1,2,2,3,4,4,5…のよ
うに、2つ目毎に同じ値が1回繰り返される。垂直カウ
ントVCNTはVRAM212における垂直アドレスを
示しているので、3番目の垂直アドレスVCNT=2に
は、3本目の走査線L1cの映像データと4本目の走査
線L2aの映像データが書き込まれることになる。この
結果、3番目の垂直アドレスVCNT=2に最初に書き
込まれた走査線L1cの映像データは、次の走査線L2
aの映像データに置き換えられる。これが繰り返される
と、3の倍数の位置にある走査線の映像データが間引か
れて、垂直方向に縮小される結果となる。
In the example of FIG. 23, the frequency fHINC of the line increment signal HINC and the second horizontal synchronizing signal XHS
YNC frequency fXHSYNC ratio (NV / NV0 * HX) is 2
/ 3, and accordingly, the vertical count VCNT (Fig. 23 (d)) has the same value of 1 for every second such as 0, 1, 2, 2, 3, 4, 4, 5. Repeated times. Since the vertical count VCNT indicates the vertical address in the VRAM 212, the video data of the third scanning line L1c and the video data of the fourth scanning line L2a are written at the third vertical address VCNT = 2. . As a result, the video data of the scanning line L1c first written at the third vertical address VCNT = 2 is changed to the next scanning line L2.
It is replaced with the video data of a. When this is repeated, the image data of the scanning lines located at the multiples of 3 are thinned out, and the result is reduced in the vertical direction.

【0105】図22(B),(C)には、図23の動作
によって映像が垂直方向に縮小される様子が示されてい
る。2つのFIFOメモリ322,324の切換によっ
てHX倍に拡大された映像データVDO は9つの走査線
L1a〜L3cに亘っているが、この中で、3番目の走
査線L1cの映像データはその次の走査線L2aの映像
データで置き換えられ、また、6番目の走査線L2cの
映像データもその次の走査線L3aの映像データで置き
換えられる。この結果、映像が垂直方向にNV/(NV0
*HX)倍される。なお、2つのFIFOメモリ32
2,324によって映像データが予め垂直方向にHX倍
に拡大されているので、総合的な垂直方向の倍率MV は
次式で与えられる。 MV =NV /NV0 …(6)
FIGS. 22B and 22C show the manner in which the image is vertically reduced by the operation of FIG. The video data VDO enlarged by HX times by switching between the two FIFO memories 322 and 324 extends over nine scanning lines L1a to L3c. Among them, the video data of the third scanning line L1c is the next. The video data of the scanning line L2a is replaced, and the video data of the sixth scanning line L2c is also replaced by the video data of the next scanning line L3a. As a result, the video is displayed vertically in the NV / (NV0
* HX) multiplied. The two FIFO memories 32
Since the image data is previously expanded in the vertical direction by HX times 2 and 324, the total vertical magnification MV is given by the following equation. MV = NV / NV0 (6)

【0106】映像の水平方向の拡大・縮小の倍率MH
は、映像データをVRAM212に書き込む際のドット
クロック信号DCLK(図19)の周波数fDCLKと、F
IFOメモリ322,324から映像データを読み出す
際の出力クロック信号CLKO(図21(c))の周波
数fCLKOとの比fDCLK/fCLKOに等しい。図21におい
て述べたように、出力クロックCLKOの周波数fCLKO
は、入力クロック信号CLKIの周波数fCLKIのHX倍
であり、入力クロック信号CLKIはコンポジット映像
信号VSの周波数特性に応じた一定値である。従って、
水平方向の倍率MH は、次の(7)式で与えられる。 MH =fDCLK/fCLKO=fDCLK/(HX*fCLKI) …(7)
Magnification factor MH for horizontal enlargement / reduction of image
Is the frequency fDCLK of the dot clock signal DCLK (FIG. 19) when writing the video data to the VRAM 212, and F
It is equal to the ratio fDCLK / fCLKO to the frequency fCLKO of the output clock signal CLKO (FIG. 21 (c)) when the video data is read from the IFO memories 322 and 324. As described in FIG. 21, the frequency fCLKO of the output clock CLKO
Is HX times the frequency fCLKI of the input clock signal CLKI, and the input clock signal CLKI is a constant value according to the frequency characteristics of the composite video signal VS. Therefore,
The horizontal magnification MH is given by the following equation (7). MH = fDCLK / fCLKO = fDCLK / (HX * fCLKI) (7)

【0107】さらに、図12(B)からも解るように、
入力クロック信号CLKIの周波数fCLKIは、水平同期
信号HSYNCの周波数fHSYNC のNH0倍であり、fHS
YNC,NH0は定数である。また、ドットクロック信号D
CLKは、水平同期信号HSYNCの周波数fHSYNC の
NH 倍の周波数を有する。従って、上記(7)式は、次
のように書き換えられる。 MH =fDCLK/(HX*fCLKI) =fHSYNC *NH /(HX*fHSYNC *NH0) =NH /(HX*NH0) …(8)
Further, as can be seen from FIG. 12 (B),
The frequency fCLKI of the input clock signal CLKI is NH0 times the frequency fHSYNC of the horizontal synchronization signal HSYNC, and fHS
YNC and NH0 are constants. Also, the dot clock signal D
CLK has a frequency that is NH times the frequency fHSYNC of the horizontal synchronization signal HSYNC. Therefore, the above equation (7) can be rewritten as follows. MH = fDCLK / (HX * fCLKI) = fHSYNC * NH / (HX * fHSYNC * NH0) = NH / (HX * NH0) (8)

【0108】垂直倍率MV を示す(6)式と水平倍率M
H を示す(8)式において、CPU202から設定でき
る値は、HX,NV ,NH の3つであり、これらはいず
れもFIFO制御部321内の設定値である。これらの
3つの値HX,NV ,NH は、例えば次の式で決定され
る。
Equation (6) showing the vertical magnification MV and the horizontal magnification M
In the equation (8) indicating H, the three values that can be set from the CPU 202 are HX, NV, and NH, all of which are set values in the FIFO control unit 321. These three values HX, NV and NH are determined by the following equations, for example.

【0109】HX=RND(MV ) …(9a) NV =NV0*MV …(9b) NH =NH0*MH *HX …(9c) ここで、演算子RNDは、括弧内の数値の小数点以下を
切り上げた整数を示している。
HX = RND (MV) (9a) NV = NV0 * MV (9b) NH = NH0 * MH * HX (9c) Here, the operator RND is rounded up to the right of the decimal point. Indicates an integer.

【0110】なお、(9b),(9c)式は、整数HX
としてどのような値を用いても成立するので、整数HX
の値を(9a)式以外の式で決定することも可能であ
る。
The expressions (9b) and (9c) are integers HX.
Since it holds even if any value is used as
It is also possible to determine the value of by an equation other than the equation (9a).

【0111】図24(A)は元のコンポジット映像信号
VSで表わされる映像ORを示しており、図24(B)
は拡大・縮小後の映像MRを記憶するVRAM空間を示
している。ここでは、水平方向の最大画素数780,有
効画素数640,垂直方向の最大ライン数525,有効
ライン数480としている。VRAM空間における映像
MRは、カラーCRT300やカラー液晶ディスプレイ
302にそのまま表示される。従って、垂直方向の倍率
MV と水平方向の倍率MH は、ディスプレイデバイス上
で設定された映像表示用ウィンドウのサイズと元の映像
ORのサイズとの比に等しい。CPU202は、ディス
プレイデバイス上に設定された映像表示用ウィンドウの
サイズから倍率MV ,MH を算出し、さらに、上記(9
a)〜(9c)に従って3つの値HX,NV ,NH を算
出して、FIFO制御部321内に設定する。
FIG. 24 (A) shows the video OR represented by the original composite video signal VS, and FIG. 24 (B).
Indicates a VRAM space for storing the enlarged / reduced image MR. Here, the maximum number of pixels in the horizontal direction is 780, the number of effective pixels is 640, the maximum number of lines in the vertical direction is 525, and the number of effective lines is 480. The image MR in the VRAM space is displayed as it is on the color CRT 300 or the color liquid crystal display 302. Therefore, the vertical magnification MV and the horizontal magnification MH are equal to the ratio of the size of the video display window set on the display device and the size of the original video OR. The CPU 202 calculates the magnifications MV and MH from the size of the video display window set on the display device, and further calculates (9) above.
Three values HX, NV, and NH are calculated according to a) to (9c) and set in the FIFO control unit 321.

【0112】このように、上記の実施例では、VRAM
212に映像データをDMA転送する際に、映像を任意
の倍率で拡大・縮小することができる。また、映像の表
示位置もアドレス演算部312によって任意に設定でき
るので、ディスプレイデバイスの任意の位置に任意の倍
率で動画を表示することが可能である。
As described above, in the above embodiment, the VRAM is
When performing DMA transfer of video data to the 212, the video can be enlarged or reduced at an arbitrary magnification. Further, since the display position of the image can be arbitrarily set by the address calculation unit 312, it is possible to display the moving image at any position on the display device at any magnification.

【0113】I.DMA転送回路の変形例:DMA転送
に関連する回路の構成に関しては、以下のような種々の
変形が可能である。
I. Modifications of DMA transfer circuit: Various modifications as described below are possible with respect to the configuration of circuits related to DMA transfer.

【0114】映像メモリとしては、2つ以上のポートを
有する任意のRAMを用いることが可能である。また、
実際には1ポートのみのRAMであっても、ポートの入
出力を切換えるようにして2ポートRAMと等価な機能
を実現したものを映像メモリとして使用することも可能
である。
As the video memory, any RAM having two or more ports can be used. Also,
Actually, even if the RAM has only one port, it is also possible to use, as the video memory, one that realizes a function equivalent to that of the two-port RAM by switching the input / output of the port.

【0115】RGB各色の色信号(コンポーネント映像
信号)でなく、NTSC方式によるYUV信号などの他
の方式の映像信号を処理する場合についても本発明を適
応することが可能である。
The present invention can be applied to the case of processing a video signal of another system such as a YUV signal of the NTSC system instead of the color signal (component video signal) of each color of RGB.

【0116】この発明は、圧縮されたデジタル映像デー
タを伸長してVRAM内へ書き込む場合にも適用するこ
とができる。この場合には、DMAコントローラ220
とA−D変換器222の間にあるデジタル映像データD
Sの入力ポート(「CD−ROM」と記されている)
に、画像伸長部からのデジタル映像データを入力すれば
よい。
The present invention can also be applied to the case where compressed digital video data is expanded and written in the VRAM. In this case, the DMA controller 220
Image data D between the A and D converter 222
S input port (written as "CD-ROM")
Then, the digital video data from the image decompression unit may be input.

【0117】上述した(4)式で与えられるアドレスA
D2を算出する回路としては、上記実施例以外の種々の
構成が考えられる。例えば、DMAコントローラ220
中の加算器を減算器に置き換えたり、加算順序を変更さ
せたりしても同様の結果が得られる。
Address A given by the above equation (4)
As the circuit for calculating D2, various configurations other than the above-described embodiment can be considered. For example, the DMA controller 220
Similar results can be obtained by replacing the adder inside with a subtracter or changing the order of addition.

【0118】また、図13に示す乗算器338を、加算
器とカウントアップ用カウンタとで置き換えて、加算ア
ドレス値記憶部332に記憶された加算アドレスADA
Dを垂直カウンタ部334の垂直カウントVCNTの回
数だけ加算するようにしてもよい。
The multiplier 338 shown in FIG. 13 is replaced with an adder and a count-up counter, and the addition address ADA stored in the addition address value storage unit 332.
It is also possible to add D by the number of vertical counts VCNT of the vertical counter unit 334.

【0119】図25に示すように、図19におけるPL
L回路328を1/N分周器329で置き換えることも
可能である。この1/N分周器329は、垂直同期信号
VSYNCによってリセットされ、リセットされた後に
ドットクロック信号DCLKを1/Nに分周してライン
インクリメント信号HINCを生成する。このように1
/N分周器329を用いると、PLL回路を用いた場合
よりもラインインクリメント信号HINCのジッタを少
なくすることができるという利点がある。
As shown in FIG. 25, PL in FIG.
It is also possible to replace the L circuit 328 with the 1 / N frequency divider 329. The 1 / N frequency divider 329 is reset by the vertical synchronizing signal VSYNC, and after being reset, divides the dot clock signal DCLK into 1 / N to generate a line increment signal HINC. 1 like this
The use of the / N frequency divider 329 has an advantage that the jitter of the line increment signal HINC can be reduced as compared with the case where the PLL circuit is used.

【0120】図26は、3つのFIFOメモリを用いて
垂直方向の拡大とともに走査線間の補間を行なう回路の
構成と動作を示す説明図であり、図21に対応する図で
ある。図26(c)に示すように、この回路は、3つの
FIFOメモリ421,422,423と、3つの等価
的なスイッチ431,432,433と、2つの乗算器
441,442と、加算器450とを含んでいる。図2
6(a),(b)に示すように、各期間TT21,TT
22,TT23では、1つのFIFOメモリに1走査線
分の映像データが書き込まれ、他の2つのFIFOメモ
リから映像データが読み出される。映像データが書き込
まれるFIFOメモリと映像データが読み出されるFI
FOメモリは、所定の順番で選択される。図26(c)
は、第3の期間TT23の前半におけるスイッチの接続
状態を示している。この時、第1のFIFOメモリ42
1から読み出された第1の走査線L1の映像データは第
1の乗算器441でk1倍され、第2のFIFOメモリ
422から読み出された第2の走査線L2の映像データ
は第2の乗算器442でk2倍される。2つの乗算器4
41,442の出力は加算器450で加算されるので、
期間TT23の前半において加算器450から出力され
る出力映像データVDO は、(L1*k1+L2*k
2)となる(図26(b))。ここで、係数k1,k2
をともに0.5とおけば、期間TT23の前半における
出力映像データVDO は、2本の走査線L1,L2の映
像データを単純平均したデータとなる。k1,k2を0
でない適当な値に設定すれば、重み付き平均を得ること
ができる。なお、期間TT23の後半では、第2の走査
線L2の映像データがそのまま出力映像データVDO と
して出力される。
FIG. 26 is an explanatory diagram showing the configuration and operation of a circuit for performing vertical enlargement and interpolation between scanning lines using three FIFO memories, and corresponds to FIG. As shown in FIG. 26C, this circuit includes three FIFO memories 421, 422, 423, three equivalent switches 431, 432, 433, two multipliers 441, 442, and an adder 450. Includes and. Figure 2
6 (a) and 6 (b), each period TT21, TT
In 22 and TT23, the video data for one scanning line is written in one FIFO memory, and the video data is read out from the other two FIFO memories. FIFO memory into which video data is written and FI from which video data is read
The FO memory is selected in a predetermined order. FIG. 26 (c)
Indicates the switch connection state in the first half of the third period TT23. At this time, the first FIFO memory 42
The image data of the first scanning line L1 read from the first scanning line L1 is multiplied by k1 by the first multiplier 441, and the image data of the second scanning line L2 read from the second FIFO memory 422 is the second data. It is multiplied by k2 in the multiplier 442 of. Two multipliers 4
Since the outputs of 41 and 442 are added by the adder 450,
In the first half of the period TT23, the output video data VDO output from the adder 450 is (L1 * k1 + L2 * k
2) (FIG. 26 (b)). Here, the coefficients k1 and k2
If both are set to 0.5, the output video data VDO in the first half of the period TT23 is data obtained by simply averaging the video data of the two scanning lines L1 and L2. k1 and k2 are 0
If set to an appropriate value, a weighted average can be obtained. In the latter half of the period TT23, the video data of the second scanning line L2 is output as it is as the output video data VDO.

【0121】また、垂直方向を拡大させるためのFIF
Oメモリユニット318と同様に機能するFIFOメモ
リユニットをA−D変換器222と色調整部320の間
に設けることによっても、垂直方向の拡大と補間に関す
る同様な効果が得られる。この場合には、図12(A)
のFIFOメモリユニット318は映像データVDの垂
直方向の拡大を行なわず、データ転送のタイミングを調
整する回路として使用される。
Also, a FIF for enlarging the vertical direction
By providing a FIFO memory unit that functions similarly to the O memory unit 318 between the AD converter 222 and the color adjusting unit 320, the same effect regarding the vertical expansion and interpolation can be obtained. In this case, FIG. 12 (A)
The FIFO memory unit 318 is used as a circuit for adjusting the timing of data transfer without vertically expanding the video data VD.

【0122】本発明において、「映像を垂直方向に拡大
する」という用語は、図21のように単純に拡大する場
合に限らず、図26のように垂直方向に補間しつつ拡大
する場合も意味している。
In the present invention, the term "enlarge the image vertically" is not limited to the case of simply enlarging the image as shown in FIG. 21, but also the case of enlarging the image by interpolation in the vertical direction as shown in FIG. is doing.

【0123】なお、複数のFIFOメモリの代わりにR
AMなどの他のタイプの映像データバッファを用いるこ
とによってFIFOメモリユニットと等価な機能を有す
る回路を構成することも可能である。一般には、複数の
映像データバッファとバッファ制御回路を設け、バッフ
ァ制御回路によって複数の映像データバッファを所定の
順番で切換えることによって、上述したFIFOメモリ
ユニットの機能を実現することが可能である。
It should be noted that instead of a plurality of FIFO memories, R
It is also possible to construct a circuit having a function equivalent to that of the FIFO memory unit by using another type of video data buffer such as AM. In general, a plurality of video data buffers and a buffer control circuit are provided, and the plurality of video data buffers are switched in a predetermined order by the buffer control circuit, whereby the function of the FIFO memory unit described above can be realized.

【0124】図12(B)のPLL回路325と等価な
機能は、PLL回路326で得られた信号CLKOを入
力として(1/NH0)で分周出力し、水平同期信号HS
YNCでリセットする回路を用いても実現できる。この
ように、図12(B)ではPLL回路を複数用いている
が、分周回路等の組み合わせによって等価な回路を実現
することも可能である。
The function equivalent to that of the PLL circuit 325 of FIG. 12B is that the signal CLKO obtained by the PLL circuit 326 is input and frequency-divided and output at (1 / NH0) to output the horizontal synchronizing signal HS.
It can also be realized by using a circuit that resets with YNC. As described above, although a plurality of PLL circuits are used in FIG. 12B, an equivalent circuit can be realized by combining frequency divider circuits and the like.

【0125】図5の色調整部320は、デジタル映像信
号DSをYUV信号で受けて色相変換を行なった後、コ
ンポーネント映像データVDをRGB信号として出力す
る回路として構成してもよい。
The color adjusting section 320 shown in FIG. 5 may be configured as a circuit which receives the digital video signal DS as the YUV signal and performs the hue conversion, and then outputs the component video data VD as the RGB signal.

【0126】なお、図5に示すDMAコントローラ22
0の回路の一部(例えばDMAアドレス演算部312や
DMA制御部316)を、ビデオアクセラレータ210
に含むようにすることも可能である。
The DMA controller 22 shown in FIG.
0 part of the circuit (for example, the DMA address calculation unit 312 and the DMA control unit 316) is connected to the video accelerator 210
It is also possible to include in.

【0127】J.第2の実施例:図27は、本発明の第
2の実施例としてのコンピュータシステムの構成を示す
ブロック図である。このコンピュータシステムは、図4
に示す第1の実施例におけるシステムにマスクデータR
AM213を追加したものである。なお、後述するよう
に、DMAコントローラ220aは図4に示すDMAコ
ントローラ220の内部構成を修正したものである。
J. Second Embodiment: FIG. 27 is a block diagram showing the configuration of a computer system as a second embodiment of the present invention. This computer system is shown in FIG.
In the system in the first embodiment shown in FIG.
AM 213 is added. As will be described later, the DMA controller 220a is a modification of the internal configuration of the DMA controller 220 shown in FIG.

【0128】図28は、2ポートVRAM212とマス
クデータRAM213の対応関係を示す説明図である。
図28(A)に示すように、2ポートVRAM212
は、RGBの各色8ビットのコンポジット映像データ
を、表示デバイス(カラーCRT300,液晶ディスプ
レイ302)の画面の各ドット毎に記憶するフレームメ
モリである。また、マスクデータRAM213は、動画
が書き込まれる2ポートVRAM212の領域(以下、
「動画書込領域」と呼ぶ)を表わす1ビットのマスクデ
ータを各ドット毎に記憶するメモリである。また、図2
8(B)に示すように、2ポートVRAM212とマス
クデータRAM213は、DMAコントローラ220a
から見て同一のアドレス空間にマッピングされている。
FIG. 28 is an explanatory diagram showing the correspondence relationship between the 2-port VRAM 212 and the mask data RAM 213.
As shown in FIG. 28A, the 2-port VRAM 212
Is a frame memory that stores 8-bit composite video data of each color of RGB for each dot of the screen of the display device (color CRT 300, liquid crystal display 302). Further, the mask data RAM 213 is an area (hereinafter, referred to as an area of the 2-port VRAM 212 in which a moving image is written).
This is a memory that stores 1-bit mask data for each dot, which represents a "moving image writing area". Also, FIG.
As shown in FIG. 8B, the 2-port VRAM 212 and the mask data RAM 213 are the DMA controller 220a.
Seen from the same address space.

【0129】ここで簡単のために色比較信号CCMPが
動画の全領域においてHレベルであると仮定する。この
場合には、マスクデータがHレベルの領域では動画映像
データが2ポートRAM212にDMA転送され、マス
クデータがLレベルの領域ではDMA転送が禁止され
る。この結果、マスクデータがHレベルの領域の動画部
分は表示デバイスに表示される。反対に、マスクデータ
がLレベルの領域では動画が表示されず、背景や静止画
が表示される。このようなマスクデータを用いた動画表
示の動作については後述する。
Here, for simplicity, it is assumed that the color comparison signal CCMP is at the H level in the entire area of the moving image. In this case, moving image data is DMA-transferred to the 2-port RAM 212 in the area where the mask data is at the H level, and DMA transfer is prohibited in the area where the mask data is at the L level. As a result, the moving image portion in the area where the mask data is at the H level is displayed on the display device. On the contrary, in the area where the mask data is at the L level, the moving image is not displayed, but the background and the still image are displayed. The operation of displaying a moving image using such mask data will be described later.

【0130】図29は、DMAコントローラ220aの
内部構成を示すブロック図である。DMAコントローラ
220aは、図5に示すDMAコントローラ220に、
RAM切換部604と、3ステートORゲート606
と、アドレス切換部608と、2つの3ステートバッフ
ァ回路612,614とを追加し、2入力の3ステート
ORゲート610を3入力の3ステートORゲート61
1に置き換えた構成を有している。
FIG. 29 is a block diagram showing the internal structure of the DMA controller 220a. The DMA controller 220a is similar to the DMA controller 220 shown in FIG.
RAM switching unit 604 and 3-state OR gate 606
, An address switching unit 608 and two 3-state buffer circuits 612 and 614 are added, and the 2-input 3-state OR gate 610 is replaced by the 3-input 3-state OR gate 61.
It has a configuration replaced with 1.

【0131】DMAコントローラ220aとマスクデー
タRAM213との間で交換される信号は、アドレスT
ADDと、マスクデータTDATAと、コントロール信
号TCONTである。コントロール信号TCONTは、
マスクデータRAM213のための書込信号/TWRと
出力イネーブル信号/TOEとを含んでいる。なお、書
込信号/TWRはORゲート606から出力され、出力
イネーブル信号/TOEはDMA制御部316から出力
される。
The signal exchanged between the DMA controller 220a and the mask data RAM 213 is the address T
ADD, mask data TDATA, and control signal TCONT. The control signal TCONT is
It includes a write signal / TWR for mask data RAM 213 and an output enable signal / TOE. The write signal / TWR is output from the OR gate 606, and the output enable signal / TOE is output from the DMA control unit 316.

【0132】アドレス切換部608は、DMAアドレス
演算部312から与えられたアドレスMADDと、CP
Uインタフェイス310を介してCPU202から与え
られたアドレスMAINADDのうちの一方を、マスク
データRAM213に与えるアドレスTADDとして選
択するセレクタである。アドレス切換部608における
切換を指示するセレクト信号/TCSは、RAM切換部
604から与えられている。
The address switching unit 608 uses the address MADD supplied from the DMA address operation unit 312 and CP.
This is a selector that selects one of the addresses MAINADD given from the CPU 202 via the U interface 310 as the address TADD given to the mask data RAM 213. The select signal / TCS instructing the switching in the address switching unit 608 is given from the RAM switching unit 604.

【0133】RAM切換部604は、上述したセレクト
信号/TCSの他に、2ポートVRAM212の書込ポ
ートの動作を許可するためのチップセレクト信号/VC
Sと、マスクデータRAM213へのマスクデータの書
込みを許可するためのチップセレクト信号/TCSSと
を出力する。RAM切換部604は、これらの各信号/
TCS,/VCS,/TCSSを保持するためのラッチ
を有しており、CPUインタフェイス310を介してC
PU202から指定された各信号のレベルをそれぞれ保
持している。
In addition to the select signal / TCS described above, the RAM switching section 604 uses the chip select signal / VC for permitting the operation of the write port of the 2-port VRAM 212.
S and a chip select signal / TCSS for permitting the writing of the mask data to the mask data RAM 213 are output. The RAM switching unit 604 uses the signals for these signals /
It has a latch for holding TCS, / VCS, / TCSS, and C via the CPU interface 310.
It holds the level of each signal designated by the PU 202.

【0134】ORゲート606は、マスクデータRAM
213のためのチップセレクト信号/TCSSと、CP
Uインタフェイス310を介してCPU202から与え
られる書込信号/MAINWRとの負論理の論理積(A
ND)を取って、マスクデータRAM213に与える書
込信号/TWRを生成する。後述するように、書込信号
/TWRがLレベルの期間においてマスクデータがマス
クデータRAM213に書き込まれる。チップセレクト
信号/TCSSは、2ポートVRAM212に映像デー
タを書き込む際にもLレベルとなるが、この時にはCP
U202から与えられる書込信号/MAINWRがHレ
ベルに保たれて、書込信号/TWRがHレベルとなり、
マスクデータRAM213へのデータの書込が禁止され
る。換言すれば、書込信号/TWRは、マスクデータを
マスクデータRAM213に書き込む時にのみLレベル
となって、その書込みを許可する。
The OR gate 606 is a mask data RAM.
213 chip select signal / TCSS and CP
Negative logical product of the write signal / MAINWR provided from the CPU 202 via the U interface 310 (A
ND) to generate a write signal / TWR to be given to the mask data RAM 213. As will be described later, the mask data is written in the mask data RAM 213 while the write signal / TWR is at the L level. The chip select signal / TCSS becomes L level when the video data is written in the 2-port VRAM 212, but at this time, CP
The write signal / MAINWR applied from U202 is kept at H level, and the write signal / TWR becomes H level,
Writing of data to the mask data RAM 213 is prohibited. In other words, the write signal / TWR becomes L level only when the mask data is written in the mask data RAM 213, and the writing is permitted.

【0135】3ステートORゲート611は、映像デー
タを2ポートVRAM212に転送する際に、DMA制
御部316から出力された書込信号/MWEをマスクデ
ータTDATAと色比較信号CCMPとによってマスク
するためのゲートである。すなわち、マスクデータTD
ATAと色比較信号CCMPが共にHレベルであれば、
DMA制御部316から出力された書込信号/MWEが
3ステートORゲート611をそのまま通過し、書込信
号/MWRとして2ポートVRAM212に与えられ
る。一方、マスクデータTDATAと色比較信号CCM
Pの少なくとも一方がLレベルであれば、DMA制御部
316から出力された書込信号/MWEが3ステートO
Rゲート611で阻止されて、2ポートVRAM212
に与えられる書込信号/MWRは常にLレベルに保たれ
る。このような動作の詳細についてはさらに後述する。
The 3-state OR gate 611 masks the write signal / MWE output from the DMA control unit 316 with the mask data TDATA and the color comparison signal CCMP when transferring the video data to the 2-port VRAM 212. It is a gate. That is, the mask data TD
If both ATA and color comparison signal CCMP are at H level,
The write signal / MWE output from the DMA control unit 316 passes through the 3-state OR gate 611 as it is and is given to the 2-port VRAM 212 as the write signal / MWR. On the other hand, mask data TDATA and color comparison signal CCM
If at least one of the P's is at the L level, the write signal / MWE output from the DMA control unit 316 is in the 3-state O.
2-port VRAM 212 blocked by R gate 611
Write signal / MWR applied to is always maintained at the L level. Details of such an operation will be described later.

【0136】図30は、マスクデータTDATAと色比
較信号CCMPを利用して、任意の形状の領域内の指定
色以外の映像データを2ポートVRAM212にDMA
転送する方法を示す説明図である。通常は、映像データ
MDATAで表わされる動画MIの形状は矩形である。
DMAアドレス演算部312は、2ポートVRAM21
2のアドレス空間(すなわち表示デバイスの画面領域に
対応する空間)内における矩形の動画MIのアドレスを
ドット毎に演算して2ポートVRAM212に与えてい
る。このアドレスMADDは、マスクデータRAM21
3にも同時に与えられる。従って、矩形の動画MIを表
わす映像データMDATAがドット毎に2ポートVRA
M212に与えられると同時に、各ドットのマスクデー
タTDATAがマスクデータRAM213から読出され
てORゲート611に入力される。
In FIG. 30, by using the mask data TDATA and the color comparison signal CCMP, the video data other than the designated color in the area of an arbitrary shape is DMA'd to the 2-port VRAM 212.
It is explanatory drawing which shows the method of transferring. Usually, the shape of the moving image MI represented by the video data MDATA is a rectangle.
The DMA address calculation unit 312 is a 2-port VRAM 21.
The address of the rectangular moving image MI in the two address spaces (that is, the space corresponding to the screen area of the display device) is calculated for each dot and given to the 2-port VRAM 212. This address MADD is the mask data RAM 21.
It is given to 3 at the same time. Therefore, the image data MDATA representing the rectangular moving image MI is 2-port VRA for each dot.
At the same time as being supplied to M212, the mask data TDATA of each dot is read from the mask data RAM 213 and input to the OR gate 611.

【0137】マスクデータRAM213内に記憶されて
いるマスクデータTDATAの値は、2ポートVRAM
212の画像空間において動画が書き込まれるべき領域
(動画書込領域)MRに対しては1(Hレベル)であ
り、動画書込領域MR以外の領域では0(Lレベル)で
ある。なお、2ポートVRAM212における動画書込
領域は、表示デバイスにおいて動画が表示される動画表
示領域に対応しているので、以下では動画書込領域と動
画表示領域を、いずれも「動画表示領域」と呼ぶ。
The value of the mask data TDATA stored in the mask data RAM 213 is the 2-port VRAM.
It is 1 (H level) for a region (moving image writing region) MR in which a moving image is to be written in the image space 212, and 0 (L level) for regions other than the moving image writing region MR. Since the moving image writing area in the 2-port VRAM 212 corresponds to the moving image display area in which a moving image is displayed on the display device, both the moving image writing area and the moving image display area will be referred to as “moving image display area” below. Call.

【0138】ORゲート611は、マスクデータTDA
TAの反転信号/TDATAと、色比較信号CCMPの
反転信号/CCMPと、DMA制御部620から出力さ
れる書込信号/MWEとの負論理の論理積(AND)を
取り、その出力/MWRを2ポートVRAM212に与
えている。この結果、マスクデータTDATAと色比較
信号CCMPが共にHレベルの場合には2ポートVRA
Mへの映像データMDATAの書込みが許可され、マス
クデータTDATAと色比較信号CCMPの少なくとも
一方がLレベルの場合には2ポートVRAM212への
映像データMDATAの書込みが禁止される。
The OR gate 611 uses the mask data TDA.
The negative logical product (AND) of the inverted signal / TDATA of TA, the inverted signal / CCMP of the color comparison signal CCMP, and the write signal / MWE output from the DMA control unit 620 is taken, and the output / MWR is obtained. It is given to the 2-port VRAM 212. As a result, when both the mask data TDATA and the color comparison signal CCMP are at the H level, the 2-port VRA
Writing of the video data MDATA to M is permitted, and writing of the video data MDATA to the 2-port VRAM 212 is prohibited when at least one of the mask data TDATA and the color comparison signal CCMP is at the L level.

【0139】図30の例において、2ポートVRAM2
12内の動画表示領域MRに隣接したメモリ領域には、
静止画SIa,SIbの映像データがビデオアクセラレ
ータ210によって書き込まれている。また、動画表示
領域MR内にも音符の静止画が予め書き込まれている。
このような2ポートVRAM212内の映像が表示デバ
イスに表示されると、静止画SIa,SIbのウィンド
ウの後ろ側にある動画表示領域MR内において、指定色
以外の動画部分が動いている状態が観察される。動画映
像データMDATAは高速にDMA転送されるので、動
画表示領域MR内の映像は実際に動いているように見え
る。
In the example of FIG. 30, the 2-port VRAM2
In the memory area adjacent to the moving image display area MR in 12,
Video data of the still images SIa and SIb is written by the video accelerator 210. Still images of notes are also written in advance in the moving image display area MR.
When such an image in the 2-port VRAM 212 is displayed on the display device, a state in which a moving image portion other than the designated color is moving is observed in the moving image display region MR behind the windows of the still images SIa and SIb. To be done. Since the moving image video data MDATA is transferred at high speed by DMA, the image in the moving image display area MR looks like actually moving.

【0140】マスクデータTDATAの分布を変更すれ
ば、任意の形状の動画表示領域内の動画映像データMD
ATAを選択的に2ポートVRAM212に転送するこ
とが可能である。なお、マスクデータTDATAは、矩
形の動画MIの一部をマスクする機能を有すると言い換
えることもできる。アドレスMADDの値とマスクデー
タTDATAの分布を変更すれば、表示デバイスの画面
上において動画が表示される領域の位置を任意に変更す
ることも可能である。また、前述したように、任意の形
状の動画表示領域内において動画を水平方向と垂直方向
に任意の倍率で変倍することも可能である。
If the distribution of the mask data TDATA is changed, the moving picture image data MD in the moving picture display area of any shape can be obtained.
It is possible to selectively transfer the ATA to the 2-port VRAM 212. It should be noted that the mask data TDATA can be restated as having a function of masking a part of the rectangular moving image MI. By changing the value of the address MADD and the distribution of the mask data TDATA, it is possible to arbitrarily change the position of the area where the moving image is displayed on the screen of the display device. Further, as described above, it is also possible to change the magnification of the moving image in the horizontal direction and the vertical direction in the moving image display area of an arbitrary shape at an arbitrary magnification.

【0141】K.マスクデータの書込処理:図31は、
マスクデータRAM213へのマスクデータの書込動作
のタイミングチャートである。マスクデータRAM21
3へのマスクデータの書込みは、ビデオアクセラレータ
210が2ポートVRAM212にアクセスする期間
(以下、「静止画期間」と呼ぶ)に実行される。マスク
データの書込み時には、静止画期間において、2ポート
VRAM212の書込ポートの動作を許可するためのチ
ップセレクト信号/VCSがHレベルに保たれて2ポー
トVRAM212への書込動作が禁止され、また、DM
A制御部316から出力される出力イネーブル信号/T
OEがHレベルに保たれてマスクデータRAM213に
データの書込み動作であることが指示される。なお、チ
ップセレクト信号/VCSによって2ポートVRAM2
12の書込動作を禁止するのは、2つのRAM212,
213が同一のアドレスにマッピングされているので、
マスクデータRAM213にマスクデータを書き込む時
に2ポートVRAM212に間違ってデータが書き込ま
れることを防止するためである。
K. Mask data writing process:
7 is a timing chart of a mask data write operation to the mask data RAM 213. Mask data RAM 21
The writing of the mask data into 3 is executed during the period in which the video accelerator 210 accesses the 2-port VRAM 212 (hereinafter, referred to as “still image period”). At the time of writing the mask data, the chip select signal / VCS for permitting the operation of the write port of the 2-port VRAM 212 is kept at the H level during the still image period, and the write operation to the 2-port VRAM 212 is prohibited. , DM
Output enable signal / T output from the A control unit 316
OE is kept at the H level to instruct the mask data RAM 213 that it is a data write operation. It should be noted that the 2-port VRAM2 is set by the chip select signal / VCS.
12 write operations are prohibited by the two RAMs 212,
Since 213 is mapped to the same address,
This is to prevent data from being erroneously written in the 2-port VRAM 212 when writing mask data in the mask data RAM 213.

【0142】アドレス切換部608(図29)に与えら
れるセレクト信号/TCSがLレベルに立下ると、CP
U202から与えられたアドレスMAINADDがアド
レス切換部608で選択されてマスクデータRAM21
3に与えられる。この時、CPU202から出力された
マスクデータMAINDATA(=TDATA)もCP
Uインタフェイス310を介してマスクデータRAM2
13に与えられる。その後、チップセレクト信号/TC
SSがLレベルに立下ってORゲート606が開き、さ
らに、書込信号/TWRがLレベルとなった期間におい
て、マスクデータRAM213にマスクデータTDAT
Aが書込まれる。
When select signal / TCS applied to address switching unit 608 (FIG. 29) falls to L level, CP
The address MAINADD supplied from U202 is selected by the address switching unit 608 and the mask data RAM21
Given to 3. At this time, the mask data MAINDATA (= TDATA) output from the CPU 202 is also CP.
Mask data RAM2 via U interface 310
Given to 13. After that, chip select signal / TC
During the period when SS falls to L level, the OR gate 606 is opened, and the write signal / TWR is at L level, the mask data RAM 213 stores the mask data TDAT.
A is written.

【0143】なお、動画期間(DMA転送期間)におい
てはマスクデータRAM213からマスクデータTDA
TAが読出されて、図30で説明した動画のマスク処理
に利用される。
In the moving image period (DMA transfer period), the mask data TDA is changed from the mask data RAM 213.
TA is read and used for masking the moving image described in FIG.

【0144】上述したように、マスクデータRAM21
3にマスクデータTDATAを書き込む処理はDMA転
送ではなく、CPU202によって実行される処理であ
る。従って、マスクデータRAM213に2ポートRA
Mを用いてCPUバス201に接続し、CPU202か
ら直接マスクデータTDATAを書き込むようにしても
よい。
As described above, the mask data RAM 21
The process of writing the mask data TDATA in 3 is not a DMA transfer but a process executed by the CPU 202. Therefore, the mask data RAM 213 has a 2-port RA
The mask data TDATA may be directly written from the CPU 202 by connecting to the CPU bus 201 using M.

【0145】図32は、マスクデータの更新処理の手順
を示すフローチャートである。ステップS1では、マス
クデータの初期データが2ポートVRAM212に書き
込まれる。ここで、マスクデータの初期データとは、初
めて動画MIが表示される際に書き込まれるマスクデー
タのことを言い、通常は矩形の動画表示領域を示すマス
クデータである。
FIG. 32 is a flow chart showing the procedure of the mask data update processing. In step S1, the initial data of the mask data is written in the 2-port VRAM 212. Here, the initial data of the mask data refers to mask data written when the moving image MI is displayed for the first time, and is usually mask data indicating a rectangular moving image display area.

【0146】ステップS2では、CPU202が、表示
デバイスの画面上において動画ウィンドウの状態が変更
されたか否かを監視する。動画ウィンドウとは、画面上
の動画表示領域と同じ意味であり、2ポートVRAM2
12の画像空間における動画書込領域に対応している。
動画ウィンドウの状態が変更されるのは、動画ウィンド
ウに重なる静止画のウィンドウのサイズや位置を変更し
た場合、動画ウィンドウ自身のサイズや位置を変更した
場合、および、動画ウィンドウと静止画ウィンドウの重
なりの上下関係を変更した場合などがある。
In step S2, the CPU 202 monitors whether or not the state of the moving picture window has been changed on the screen of the display device. The moving image window has the same meaning as the moving image display area on the screen, and is a 2-port VRAM2.
This corresponds to the moving image writing area in 12 image spaces.
The state of the movie window changes only when the size or position of the still image window that overlaps the movie window is changed, when the size or position of the movie window itself is changed, or when the movie window and still image window overlap. There are cases where the hierarchical relationship of is changed.

【0147】動画ウィンドウの状態が変更されると、ス
テップS3においてチップセレクト信号/VCSがHレ
ベルに立上げられ、2ポートVRAM212への書込み
が禁止される。ステップS4では、CPU202がマス
クデータRAM213に新たなマスクデータを書き込む
ことによって、ママスクデータRAM213内のスクデ
ータを更新する。ステップS5では、チップセレクト信
号/VCSがLレベルに立ち下げられ、2ポートVRA
M212へのデータの書込みが許可される。
When the state of the moving image window is changed, the chip select signal / VCS is raised to the H level in step S3, and writing to the 2-port VRAM 212 is prohibited. In step S4, the CPU 202 writes new mask data in the mask data RAM 213 to update the mask data in the mask data RAM 213. In step S5, the chip select signal / VCS is lowered to the L level and the 2-port VRA
Writing of data to M212 is permitted.

【0148】このように、ユーザが表示デバイスの画面
上で動画ウィンドウや静止画ウィンドウを変更すること
によって動画ウィンドウの位置や形状が変更されると、
その度にマスクデータが更新される。なお、図32のマ
スクデータ更新処理はCPU202が所定のアプリケー
ションプログラムを実行することによって実現されてい
る。
As described above, when the position or shape of the moving picture window is changed by the user changing the moving picture window or the still picture window on the screen of the display device,
The mask data is updated each time. The mask data update process of FIG. 32 is realized by the CPU 202 executing a predetermined application program.

【0149】L.動画映像データのDMA転送処理の概
要:図33は、表示デバイス(カラーCRT300,液
晶ディスプレイ302)に表示された映像を示す説明図
である。この画面には、2つの静止画SIa,SIbの
ウィンドウの下側に動画表示領域MRが存在し、動画表
示領域MR内において指定色以外の色を有する動画部分
が動いている映像が表示されている。動画映像データ
は、例えば30フレーム/秒(60フィールド/秒)の
割合で2ポートVRAM212にDMA転送される。以
下では、図32の垂直方向(Y1−Y2線上)に沿った
DMA転送処理と、水平方向(X1−X2線上)に沿っ
たDMA転送処理の動作について説明する。
L. Outline of DMA transfer processing of moving image data: FIG. 33 is an explanatory diagram showing an image displayed on a display device (color CRT 300, liquid crystal display 302). On this screen, a moving image display area MR exists below the windows of the two still images SIa and SIb, and an image in which a moving image portion having a color other than the designated color is moving is displayed in the moving image display area MR. There is. The moving image data is DMA-transferred to the 2-port VRAM 212 at a rate of 30 frames / second (60 fields / second), for example. The operations of the DMA transfer processing along the vertical direction (on the Y1-Y2 line) and the DMA transfer processing along the horizontal direction (on the X1-X2 line) of FIG. 32 will be described below.

【0150】図34は、垂直方向のDMA転送の動作を
示すタイミングチャートである。なお、図34は、図9
のタイミングチャートにチップセレクト信号/VCS
(図34(b))とマスクデータTDATA(図34
(i))とを追加した図である。DMA転送時には、2
ポートVRAM212に動画映像データMDATAを書
き込むので、チップセレクト信号/VCSはLレベルに
保たれる。前述したように、マスクデータTDATA
(図34(i))と色比較信号CCMP(図34
(j))とが共にHレベルの部分において動画映像デー
タMDATAが2ポートVRAM212に書き込まれ、
マスクデータTDATAと色比較信号CCMPの少なく
とも一方がLレベルの部分においては動画映像データM
DATAの書込みは禁止される。
FIG. 34 is a timing chart showing the operation of vertical DMA transfer. Note that FIG. 34 corresponds to FIG.
The chip select signal / VCS
(FIG. 34B) and mask data TDATA (FIG. 34B).
It is the figure which added (i)). 2 for DMA transfer
Since the video image data MDATA is written in the port VRAM 212, the chip select signal / VCS is kept at L level. As described above, the mask data TDATA
(FIG. 34 (i)) and the color comparison signal CCMP (FIG.
(J)) is the H level portion, the moving image video data MDATA is written in the 2-port VRAM 212,
In the portion where at least one of the mask data TDATA and the color comparison signal CCMP is L level, the moving image data M
Writing of DATA is prohibited.

【0151】図35は、水平方向のDMA転送の動作を
示すタイミングチャートである。図35も、図10のタ
イミングチャートにチップセレクト信号/VCS(図3
5(b))とマスクデータTDATA(図35(i))
とを追加した図である。
FIG. 35 is a timing chart showing a horizontal DMA transfer operation. FIG. 35 also shows the chip select signal / VCS (see FIG. 3) in the timing chart of FIG.
5 (b)) and mask data TDATA (FIG. 35 (i)).
It is the figure which added and.

【0152】図36は、図35のA部(マスクデータT
DATAと色比較信号CCMPの段部を含む部分)の詳
細を示すタイミングチャートである。マスクデータTD
ATAと色比較信号CCMPが共にHレベルの期間での
み書込信号/MWRがLレベルに立下り、これに応じて
映像データMDATAが2ポートVRAM212に書き
込まれる。
FIG. 36 shows the portion A (mask data T
6 is a timing chart showing details of a portion including DATA and a step portion of a color comparison signal CCMP). Mask data TD
The write signal / MWR falls to the L level only while the ATA and the color comparison signal CCMP are both at the H level, and the video data MDATA is written to the 2-port VRAM 212 in response to this.

【0153】以上のように、DMA転送時には2ポート
VRAM212とマスクデータTAM213に同一のア
ドレスMADD(=TADD)が与えられるので、画面
上における映像データMDATAのドット位置に対応し
たマスクデータTDATAが読出される。そして、マス
クデータTDATAと色比較信号CCMPのレベルに応
じて2ポートVRAM212への映像データMDATA
の書込みが制御される。また、上述したように、動画ウ
ィンドウ(動画表示領域)の位置と形状に応じてマスク
データTDATAが更新されるので、画面上の任意の位
置で任意の形状の動画を表示することができる。
As described above, since the same address MADD (= TADD) is given to the 2-port VRAM 212 and the mask data TAM213 during the DMA transfer, the mask data TDATA corresponding to the dot position of the video data MDATA on the screen is read. It Then, in accordance with the levels of the mask data TDATA and the color comparison signal CCMP, the video data MDATA to the 2-port VRAM 212
Is controlled. Further, as described above, since the mask data TDATA is updated according to the position and shape of the moving picture window (moving picture display area), it is possible to display a moving picture of any shape at any position on the screen.

【0154】M.第3の実施例:図37は、この発明の
第3の実施例としてのコンピュータシステムの構成を示
すブロック図である。このコンピュータシステムは、図
27のシステムに第2の映像メモリとしてのVRAM5
20と、映像データ変換手段としてのDOS表示制御部
522とを追加した構成を有している。
M. Third Embodiment: FIG. 37 is a block diagram showing the configuration of a computer system according to a third embodiment of the present invention. This computer system is similar to the system shown in FIG.
20 and a DOS display control unit 522 as a video data conversion unit are added.

【0155】第3の実施例のコンピュータシステムは、
2つのオペレーティングシステム(以下「OS」と呼
ぶ)の管理下で動作しており、第1の映像メモリとして
の2ポートVRAM212は第1のOS(例えばMS-Win
dows(マイクロソフト社の商標))によって管理され、
第2の映像メモリとしてのVRAM520は第2のOS
(例えばMS-DOS(マイクロソフト社の商標))によって
管理されている。
The computer system of the third embodiment is
It operates under the control of two operating systems (hereinafter referred to as "OS"), and the 2-port VRAM 212 as the first video memory is the first OS (for example, MS-Win).
managed by dows (a trademark of Microsoft Corporation),
The VRAM 520 as the second video memory is the second OS.
(For example, MS-DOS (trademark of Microsoft Corporation)).

【0156】2つのVRAM212,520に記憶され
る映像データの形式は、以下に示すように互いに異なっ
ている。2ポートVRAM212に記憶される映像デー
タは、表示デバイス(カラーCRT300およびカラー
液晶ディスプレイ302)の各ドット毎にRGBの各色
を8ビットで表わしたビットマップデータである。VR
AM520は、テキストVRAMとグラフィックVRA
Mとを含んでいる。テキストVRAMには、映像が文字
である場合には文字を表わす文字コードと、各文字の属
性(文字の色、反転表示、ブリンク表示等)を表わすア
トリビュートデータとが記憶される。アトリビュートデ
ータでは、例えば文字の色は3ビットによって8色のう
ちの1色が指定されている。グラフィックVRAMに
は、そのグラフィックをドット毎に表わすビットマップ
データが記憶される。グラフィックのビットマップデー
タは、3ビットで8色中の1色を指定する場合や、4ビ
ットで16色中の1色が指定する場合がある。
The formats of the video data stored in the two VRAMs 212 and 520 are different from each other as shown below. The video data stored in the 2-port VRAM 212 is bitmap data in which each color of RGB is represented by 8 bits for each dot of the display device (color CRT 300 and color liquid crystal display 302). VR
AM520 is a text VRAM and graphic VRA
Contains M and. When the image is a character, the text VRAM stores a character code indicating the character and attribute data indicating the attribute of each character (character color, reverse display, blink display, etc.). In the attribute data, for example, one of eight colors is designated by 3 bits as the color of the character. The graphic VRAM stores bitmap data representing the graphic for each dot. In the bitmap data of the graphic, 1 bit out of 8 colors may be designated by 3 bits, or 1 color out of 16 colors may be designated by 4 bits.

【0157】DOS表示制御部522は、VRAM52
0に記憶された映像データを、2ポートVRAM212
に記憶される映像データの形式に変換する映像データ変
換手段としての機能を有している。具体的には、DOS
表示制御部522は、文字コートをビットマップデータ
に変換するキャラクタジェネレータと、文字に属性を与
えるアトリビュートジェネレータと、グラフィックデー
タの色を変換するカラーパレットと、文字画像とグラフ
ィックとを合成するビデオマルチプレクサとしての機能
を有している。DOS表示制御部522によって変換さ
れた映像データは、DMAコントローラ220aによっ
て2ポートVRAM212に高速に転送される。
The DOS display control section 522 has the VRAM 52.
The video data stored in 0 to the 2-port VRAM 212.
It has a function as a video data conversion means for converting into a format of video data stored in. Specifically, DOS
The display control unit 522 serves as a character generator that converts a character code into bitmap data, an attribute generator that gives an attribute to a character, a color palette that converts the color of graphic data, and a video multiplexer that combines a character image and a graphic. It has the function of. The video data converted by the DOS display controller 522 is transferred to the 2-port VRAM 212 at high speed by the DMA controller 220a.

【0158】図38は、VRAM520から2ポートV
RAM212へのデータの転送経路を示す説明図であ
る。図38(A)に示すように、VRAM520に記憶
された映像データは、DOS表示制御部522によって
データ形式を変換されてDMAコントローラ220aに
与えられる。DMAコントローラ220aは、DOS表
示制御部522またはA−D変換器222から与えられ
た映像データを、第1の実施例において詳述した手順に
よって2ポートVRAM212に転送する。なお、2ポ
ートVRAM212に記憶された映像データは、表示デ
バイスに与えられる。図38(B)に示すように、VR
AM520に対応する表示領域は、2ポートVRAM2
12に対応する表示領域よりも小さいことが好ましい。
この場合には、VRAM520に記憶された映像が表示
デバイスの画面の一部に表示される。なお、図38
(B)のようなVRAM520のための表示領域は、MS
-WindowsにおいてDOS-BOX と呼ばれているものである。
FIG. 38 shows a 2-port V from the VRAM 520.
5 is an explanatory diagram showing a data transfer path to a RAM 212. FIG. As shown in FIG. 38 (A), the video data stored in the VRAM 520 is converted in data format by the DOS display control unit 522 and is given to the DMA controller 220a. The DMA controller 220a transfers the video data supplied from the DOS display control unit 522 or the AD converter 222 to the 2-port VRAM 212 by the procedure described in detail in the first embodiment. The video data stored in the 2-port VRAM 212 is given to the display device. As shown in FIG. 38 (B), VR
The display area corresponding to AM520 is a 2-port VRAM2
It is preferably smaller than the display area corresponding to 12.
In this case, the video stored in the VRAM 520 is displayed on a part of the screen of the display device. Note that FIG.
The display area for the VRAM 520 as in (B) is MS
-It is called DOS-BOX in Windows.

【0159】上記の第3の実施例では、2ポートVRA
M212内の映像データとはデータ形式(データ構造)
が異なるVRAM520内の映像データを、データ形式
を変換しつつDMAコントローラ220aによって2ポ
ートVRAM212に高速に転送することができるとい
う利点がある。また、データ形式の変換をハードウェア
であるDOS表示制御部522で行なっているので、C
PU202を使用して変換する場合に比べて高速に変換
することができる。さらに、VRAM520の表示画面
中の映像に関しても、上述した拡大・縮小を行なうこと
ができるという利点もある。
In the third embodiment, the 2-port VRA is used.
Video data in M212 is a data format (data structure)
There is an advantage that the video data in the VRAM 520 different from each other can be transferred to the 2-port VRAM 212 at high speed by the DMA controller 220a while converting the data format. Further, since the data format conversion is performed by the DOS display control unit 522 which is hardware, C
The conversion can be performed at a higher speed than the conversion using the PU 202. Further, there is also an advantage that the above-mentioned enlargement / reduction can be performed on the image on the display screen of the VRAM 520.

【0160】なお、第3の実施例では、2つのVRAM
212,520が異なるOSによって管理されているも
のとしたが、これに限らず、2つ以上のVRAMが異な
るデータ形式の映像データを記憶するものである場合に
本発明を適用することが可能である。
In the third embodiment, two VRAMs are used.
Although 212 and 520 are managed by different OSs, the present invention is not limited to this, and the present invention can be applied when two or more VRAMs store video data in different data formats. is there.

【0161】上記の各実施例ではビデオアクセラレータ
210を有するコンピュータシステムについて説明した
が、ビデオアクセラレータを含まないコンピュータシス
テムにも本発明を適用することが可能である。
In each of the above embodiments, the computer system having the video accelerator 210 has been described, but the present invention can be applied to a computer system not including the video accelerator.

【0162】[0162]

【発明の効果】以上説明したように、請求項1に記載し
た発明によれば、色比較手段の比較結果に応じてフレー
ムメモリへの書込みを制御するので、動画の所望の色の
部分のみをフレームメモリに高速に転送することができ
る。
As described above, according to the invention described in claim 1, since the writing to the frame memory is controlled according to the comparison result of the color comparing means, only the desired color portion of the moving image is displayed. It can be transferred to the frame memory at high speed.

【0163】請求項2に記載した発明によれば、動画の
中で所定の色度の範囲外にある映像部分のみをフレーム
メモリに書き込むことができる。
According to the invention described in claim 2, it is possible to write only the video portion outside the range of the predetermined chromaticity in the moving image in the frame memory.

【0164】請求項3に記載した発明によれば、映像デ
ータの3原色の成分に対する上限値と下限値を設定する
ことによって、所望の色度の範囲を任意に設定すること
ができる。
According to the third aspect of the present invention, the desired chromaticity range can be set arbitrarily by setting the upper limit value and the lower limit value for the three primary color components of the video data.

【0165】請求項4に記載した発明によれば、動画映
像データの3原色の成分がそれぞれの参照値と等しい場
合にフレームメモリへの書込みを禁止し、少なくとも1
つが参照値と等しくない場合にはフレームメモリへの書
込みを許可することができる。
According to the invention described in claim 4, when the components of the three primary colors of the moving image data are equal to the respective reference values, the writing to the frame memory is prohibited, and at least 1.
If one does not equal the reference value, then writing to the frame memory can be allowed.

【0166】請求項5に記載した発明によれば、ビット
数の多い動画映像データやアドレスを制御する方法に比
べて簡単な回路構成でフレームメモリへの動画映像デー
タの書込みを許可したり禁止したりすることができる。
According to the fifth aspect of the present invention, the moving picture image data writing to the frame memory is permitted or prohibited with a simple circuit structure as compared with the method of controlling moving picture image data having a large number of bits and addresses. You can

【0167】請求項6に記載した発明によれば、書込信
号のレベルを容易に調整することができる。
According to the invention described in claim 6, the level of the write signal can be easily adjusted.

【0168】請求項7に記載した発明によれば、書込み
アドレスは第1の演算手段と第2の演算手段とによる算
術演算によって算出されるので、フレームメモリの書込
みアドレスが高速に算出され、映像データを高速に転送
することができる。
According to the invention described in claim 7, since the write address is calculated by the arithmetic operation by the first arithmetic means and the second arithmetic means, the write address of the frame memory is calculated at high speed, Data can be transferred at high speed.

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

【図1】転送される動画を示す平面図。FIG. 1 is a plan view showing a moving image to be transferred.

【図2】動画の背景の映像データを色分解して得られた
各色の輝度を示すヒストグラム。
FIG. 2 is a histogram showing the brightness of each color obtained by color-separating the video data of the background of the moving image.

【図3】RGB各色の上限値と下限値とによって規定さ
れる指定色領域CAを示す色度図。
FIG. 3 is a chromaticity diagram showing a designated color area CA defined by an upper limit value and a lower limit value of RGB colors.

【図4】本発明の第1の実施例としてのコンピュータシ
ステムを示すブロック図。
FIG. 4 is a block diagram showing a computer system as a first embodiment of the present invention.

【図5】DMAコントローラ220の内部構成を示すブ
ロック図。
FIG. 5 is a block diagram showing an internal configuration of a DMA controller 220.

【図6】色比較部550の内部構成を示すブロック図。FIG. 6 is a block diagram showing an internal configuration of a color comparison unit 550.

【図7】色比較回路554の内部構成を示すブロック
図。
FIG. 7 is a block diagram showing an internal configuration of a color comparison circuit 554.

【図8】実施例のDMA転送によって重畳された映像を
示す平面図。
FIG. 8 is a plan view showing an image superimposed by the DMA transfer of the embodiment.

【図9】垂直方向のDMA転送の動作を示すタイミング
チャート。
FIG. 9 is a timing chart showing a vertical DMA transfer operation.

【図10】水平方向のDMA転送の動作を示すタイミン
グチャート。
FIG. 10 is a timing chart showing a horizontal DMA transfer operation.

【図11】図10のA部の詳細を示すタイミングチャー
ト。
11 is a timing chart showing details of a portion A in FIG.

【図12】FIFOメモリユニット318の内部構成を
示すブロック図。
FIG. 12 is a block diagram showing an internal configuration of a FIFO memory unit 318.

【図13】DMAアドレス演算部312とデータ出力部
314とDMA制御部316の内部構成を示すブロック
図。
FIG. 13 is a block diagram showing the internal configuration of a DMA address calculation unit 312, a data output unit 314, and a DMA control unit 316.

【図14】2ポートVRAM212のアドレスマップ。FIG. 14 is an address map of the 2-port VRAM 212.

【図15】2ポートVRAM212と画面との対応関係
を示す説明図。
FIG. 15 is an explanatory diagram showing a correspondence relationship between a 2-port VRAM 212 and a screen.

【図16】カラーモニタの画面内の動画領域MPAを示
す平面図。
FIG. 16 is a plan view showing a moving image area MPA on the screen of the color monitor.

【図17】DMAコントローラ220内のアドレス演算
部312を拡大して示すブロック図。
FIG. 17 is an enlarged block diagram showing an address calculation unit 312 in the DMA controller 220.

【図18】DMA転送の動作の詳細を示すタイミングチ
ャート。
FIG. 18 is a timing chart showing details of a DMA transfer operation.

【図19】垂直カウンタ部334およびFIFO制御部
321の内部構成を示すブロック図。
FIG. 19 is a block diagram showing an internal configuration of a vertical counter section 334 and a FIFO control section 321.

【図20】インターレース走査を行なう場合の奇数ライ
ンフィールドと偶数ラインフィールドのメモリ空間を示
す説明図。
FIG. 20 is an explanatory diagram showing a memory space of an odd line field and an even line field when performing interlaced scanning.

【図21】映像の垂直方向の拡大動作を示す説明図。FIG. 21 is an explanatory diagram showing a vertical enlargement operation of an image.

【図22】映像の垂直方向の拡大と縮小の様子を示す説
明図。
FIG. 22 is an explanatory diagram showing a state of vertical enlargement and reduction of an image.

【図23】映像の垂直方向の縮小動作を示すタイミング
チャート。
FIG. 23 is a timing chart showing a vertical reduction operation of an image.

【図24】映像の垂直方向と水平方向の拡大・縮小の様
子を示す説明図。
FIG. 24 is an explanatory diagram showing how the image is scaled up / down in the vertical and horizontal directions.

【図25】第2のPLL回路328を1/N分周器で置
き換えた場合の回路構成を示すブロック図。
FIG. 25 is a block diagram showing a circuit configuration when the second PLL circuit 328 is replaced with a 1 / N frequency divider.

【図26】3つのFIFOメモリを用いて垂直方向の拡
大とともに走査線間の補間を行なう構成と動作を示す説
明図。
FIG. 26 is an explanatory diagram showing a configuration and operation of performing interpolation between scanning lines along with vertical expansion using three FIFO memories.

【図27】本発明の第2の実施例としてのコンピュータ
システムを示すブロック図。
FIG. 27 is a block diagram showing a computer system as a second embodiment of the present invention.

【図28】2ポートVRAM212とマスクデータRA
M213の構成を示す説明図。
FIG. 28 is a 2-port VRAM 212 and mask data RA
Explanatory drawing which shows the structure of M213.

【図29】DMAコントローラ220の内部構成を示す
ブロック図。
FIG. 29 is a block diagram showing an internal configuration of a DMA controller 220.

【図30】マスクデータを利用して任意の形状の表示領
域内の映像データMDATAを2ポートVRAM212
にDMA転送する方法を示す説明図。
FIG. 30 is a 2-port VRAM 212 for converting video data MDATA in a display area having an arbitrary shape by using mask data.
Explanatory diagram showing a method of performing a DMA transfer to.

【図31】マスクデータRAM213へのマスクデータ
の書込み動作のタイミングチャート。
FIG. 31 is a timing chart of a mask data write operation to the mask data RAM 213.

【図32】マスクデータの更新処理の手順を示すフロー
チャート。
FIG. 32 is a flowchart showing the procedure of mask data update processing.

【図33】表示デバイスに表示された映像を示す説明
図。
FIG. 33 is an explanatory diagram showing an image displayed on a display device.

【図34】垂直方向のDMA転送の動作を示すタイミン
グチャート。
FIG. 34 is a timing chart showing the operation of vertical DMA transfer.

【図35】水平方向のDMA転送の動作を示すタイミン
グチャート。
FIG. 35 is a timing chart showing a horizontal DMA transfer operation.

【図36】図35のA部の詳細を示すタイミングチャー
ト。
FIG. 36 is a timing chart showing details of a portion A in FIG. 35.

【図37】本発明の第3の実施例としてのコンピュータ
システムの構成を示すブロック図。
FIG. 37 is a block diagram showing the configuration of a computer system as a third embodiment of the present invention.

【図38】第3の実施例における映像データの転送経路
を示す説明図。
FIG. 38 is an explanatory diagram showing a transfer route of video data in the third embodiment.

【図39】従来のDMAコントローラを用いたコンピュ
ータシステムのブロック図。
FIG. 39 is a block diagram of a computer system using a conventional DMA controller.

【図40】従来のDMA転送によって重畳された映像を
示す平面図。
FIG. 40 is a plan view showing an image superimposed by conventional DMA transfer.

【符号の説明】[Explanation of symbols]

51R,51G,51B…映像メモリ 52…データバス 53…アドレスバス 54…制御バス 55…DMAコントローラ 56R,56G,56B…VRAM モニタ57…制御部 59…CPU 80…水平レンジ 81…垂直レンジ 201…CPUバス 202…CPU 204…RAM 206…ROM 208…I/Oインタフェイス 210…ビデオアクセラレータ 212…2ポートVRAM(フレームメモリ) 213…マスクデータRAM 214…D−A変換器 216…LCDドライバ 220…DMAコントローラ 222…A−D変換器 224…映像デコーダ 226…映像入力端子 228…アドレスバス 229…データバス 230…コントロールバス 230…制御バス 300…カラーCRT 302…カラー液晶ディスプレイ 310…CPUインタフェイス 312…DMAアドレス演算部 314…データ出力部 316…DMA制御部 318…FIFOメモリユニット 320…色調整部 321…FIFO制御部(映像データバッファ制御手
段) 322,324…FIFOメモリ(映像データバッフ
ァ) 323a,323b…トグルスイッチ 325…PLL回路(入力クロック生成手段) 326…PLL回路(出力クロック生成手段) 327…PLL回路(ドットクロック生成手段) 328…PLL回路(ラインインクリメント信号生成手
段) 330…オフセットアドレス記憶部 332…加算アドレス値記憶部 334…垂直カウンタ部(走査線番号生成手段) 336…水平カウンタ部 338…乗算器 340,342…加算器 360…制御信号発生部 362…バス制御部 364…ラッチ 402…バックポーチ記憶部 404…比較器 406…バックポーチカウンタ 408…垂直カウンタ 410…ラッチ 421,422,423…FIFOメモリ 431,432,433…スイッチ 441,442…乗算器 450…加算器 460…アクセラレータユニット 462…CPUインタフェイス 470…画像処理ユニット 471…データバス 472…制御バス 474…画像形成制御部 510…PLL回路 511…波形成形部 520…VRAM 522…DOS表示制御部 550…色比較部 552…比較値記憶回路 544…色比較回路 544a…比較器 560…ウインドウ比較器 562,564…比較器 566…ANDゲート 570…NANDゲート 604…RAM切換部 606…ORゲート 608…アドレス切換部 610…3ステートORゲート 612,614…3ステートバッファ AD2…アドレス ADAD…加算アドレス BG…背景 BP…バックポーチ数 BPC…カウント値 CA…転送対象外の色を示す指定色範囲 CCMP…色比較信号 CLKI…入力クロック信号 CLKO…出力クロック信号 CNT…カウント値 DCLK…ドットクロック信号 DL ,DLR…色の下限値 DU ,DUR…色の上限値 FIS…フィールド指示信号 HCNT…水平カウント HINC…ラインインクリメント信号 HSYNC…水平同期信号 HX…垂直拡大倍率 INTACK…転送許可信号 L1〜L3…走査線 MH …水平倍率 MV …垂直倍率 MADD…DMAアドレス MCONT…コントロール信号 MDATA…動画映像データ MPA…動画領域 OFAD…オフセットアドレス TADD…マスクデータRAM213のアドレス TCONT…コントロール信号 TDATA…マスクデータ VCNT…垂直アドレス VD…コンポーネント映像データ VS…コンポジット映像信号 VSYNC…垂直同期信号 WINT…割り込み信号 WSYNC…ワード同期信号 /DMAACK…DMA許可信号 /DMARQ…DMA要求信号 /MWE…書込信号 /MWR…書込信号 /TCS…セレクト信号 /TCSS…マスクデータRAM213のチップセレク
ト信号 /VCS…2ポートVRAM212のチップセレクト信
号 fCLKI…FIFOの入力クロック信号CLKIの周波数 fCLKO…FIFOの出力クロック信号CLKOの周波数 fDCLK…ドットクロック信号DCLKの周波数 fHINC…ラインインクリメント信号HINCの周波数 fHSYNC…水平同期信号HSYNCの周波数 fVSYNC…垂直同期信号VSYNCの周波数
51R, 51G, 51B ... Video memory 52 ... Data bus 53 ... Address bus 54 ... Control bus 55 ... DMA controller 56R, 56G, 56B ... VRAM monitor 57 ... Control unit 59 ... CPU 80 ... Horizontal range 81 ... Vertical range 201 ... CPU Bus 202 ... CPU 204 ... RAM 206 ... ROM 208 ... I / O interface 210 ... Video accelerator 212 ... 2-port VRAM (frame memory) 213 ... Mask data RAM 214 ... DA converter 216 ... LCD driver 220 ... DMA controller 222 ... A-D converter 224 ... Video decoder 226 ... Video input terminal 228 ... Address bus 229 ... Data bus 230 ... Control bus 230 ... Control bus 300 ... Color CRT 302 ... Color liquid crystal display 310 CPU interface 312 ... DMA address calculation unit 314 ... Data output unit 316 ... DMA control unit 318 ... FIFO memory unit 320 ... Color adjustment unit 321 ... FIFO control unit (video data buffer control unit) 322, 324 ... FIFO memory (video data) Buffers 323a, 323b ... Toggle switches 325 ... PLL circuits (input clock generation means) 326 ... PLL circuits (output clock generation means) 327 ... PLL circuits (dot clock generation means) 328 ... PLL circuits (line increment signal generation means) 330 ... offset address storage unit 332 ... addition address value storage unit 334 ... vertical counter unit (scanning line number generation means) 336 ... horizontal counter unit 338 ... multipliers 340, 342 ... adder 360 ... control signal generation unit 362 ... bus control Control unit 364 ... Latch 402 ... Back porch storage unit 404 ... Comparator 406 ... Back porch counter 408 ... Vertical counter 410 ... Latch 421, 422, 423 ... FIFO memory 431, 432, 433 ... Switch 441, 442 ... Multiplier 450 ... Adder 460 ... Accelerator unit 462 ... CPU interface 470 ... Image processing unit 471 ... Data bus 472 ... Control bus 474 ... Image formation control section 510 ... PLL circuit 511 ... Waveform shaping section 520 ... VRAM 522 ... DOS display control section 550 ... Color comparison unit 552 ... Comparison value storage circuit 544 ... Color comparison circuit 544a ... Comparator 560 ... Window comparator 562, 564 ... Comparator 566 ... AND gate 570 ... NAND gate 604 ... RAM switching unit 606 ... OR gate 608 ... Address switching unit 610 ... 3-state OR gate 612, 614 ... 3-state buffer AD2 ... Address ADAD ... Addition address BG ... Background BP ... Back porch number BPC ... Count value CA ... Specified color range indicating color not to be transferred CCMP ... Color Comparison signal CLKI ... Input clock signal CLKO ... Output clock signal CNT ... Count value DCLK ... Dot clock signals DL, DLR ... Color lower limit value DU, DUR ... Color upper limit value FIS ... Field instruction signal HCNT ... Horizontal count HINC ... Line increment Signal HSYNC ... Horizontal sync signal HX ... Vertical magnification ratio INTACK ... Transfer enable signal L1-L3 ... Scan line MH ... Horizontal magnification MV ... Vertical magnification MADD ... DMA address MCONT ... Control signal MDATA ... Video image data MPA ... Video area FAD ... Offset address TADD ... Address of mask data RAM 213 TCONT ... Control signal TDATA ... Mask data VCNT ... Vertical address VD ... Component video data VS ... Composite video signal VSYNC ... Vertical sync signal WINT ... Interrupt signal WSYNC ... Word sync signal / DMAACK ... DMA enable signal / DMARQ ... DMA request signal / MWE ... write signal / MWR ... write signal / TCS ... select signal / TCSS ... mask data RAM213 chip select signal / VCS ... 2-port VRAM212 chip select signal fCLKI ... FIFO Frequency of input clock signal CLKI fCLKO ... Frequency of FIFO output clock signal CLKO fDCLK ... Frequency of dot clock signal DCLK fHINC ... Line ink Frequency of the rement signal HINC fHSYNC ... frequency of the horizontal sync signal HSYNC fVSYNC ... frequency of the vertical sync signal VSYNC

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 // H04N 9/75 G06F 15/64 310 450 E 15/66 450 Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location // H04N 9/75 G06F 15/64 310 450 E 15/66 450

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 映像データをフレームメモリに転送する
装置であって、 表示デバイスに表示される映像の映像データを記憶する
フレームメモリと、 前記フレームメモリに転送される動画映像データを供給
する動画映像データ供給手段と、 前記フレームメモリに接続されたバスと、 前記動画映像データを前記フレームメモリに書込むため
の書込みアドレスを算出するとともに、該書込みアドレ
スと前記動画映像データとを前記バス上に出力するデー
タ転送手段と、 所定の色度の範囲を規定するための色データを記憶する
色データメモリと、 前記動画映像データを前記色データと比較して、その比
較結果を示す色比較信号を生成する色比較手段と、 前記色比較信号に応じて前記動画映像データの前記フレ
ームメモリへの書込みを制御する書込制御手段と、 を備える映像データ転送装置。
1. An apparatus for transferring video data to a frame memory, the frame memory storing video data of a video displayed on a display device, and a video video for supplying video video data transferred to the frame memory. Data supply means, a bus connected to the frame memory, a write address for writing the moving image video data in the frame memory, and the write address and the moving image data are output to the bus. Data transfer means, a color data memory for storing color data for defining a predetermined chromaticity range, the moving image data is compared with the color data, and a color comparison signal indicating the comparison result is generated. Color comparing means for controlling the writing of the moving image data to the frame memory according to the color comparing signal. Video data transfer apparatus comprising: a control means.
【請求項2】 請求項1記載の映像データ転送装置であ
って、 前記色比較手段は、前記動画映像データで表わされる色
度が前記所定の色度の範囲内である場合には前記フレー
ムメモリの書込みを禁止する第1のレベルに前記色比較
信号を設定し、前記動画映像データで表わされる色度が
前記所定の色度の範囲外である場合には前記フレームメ
モリへの書込みを許可する前記第2のレベルに前記色比
較信号を設定する色比較信号設定手段、を有する映像デ
ータ転送装置。
2. The video data transfer device according to claim 1, wherein the color comparison unit is configured to operate the frame memory when the chromaticity represented by the moving image data is within the predetermined chromaticity range. The color comparison signal is set to a first level that prohibits writing of the data, and if the chromaticity represented by the moving image data is outside the range of the predetermined chromaticity, writing to the frame memory is permitted. A video data transfer device comprising: color comparison signal setting means for setting the color comparison signal to the second level.
【請求項3】 請求項2記載の映像データ転送装置であ
って、 前記色データは、RGBの3原色のそれぞれに対する映
像データ成分の上限値と下限値とを含んでおり、 前記色比較信号設定手段は、前記動画映像データで表わ
される3原色の成分がそれぞれの前記上限値と前記下限
値の間の範囲内にある場合には前記色比較信号を前記第
1のレベルに設定し、前記動画映像データの各色の成分
の少なくとも1つがそれぞれの前記上限値と下限値の間
の範囲外にある場合には前記色比較信号を前記第2のレ
ベルに設定する手段、を有する映像データ転送装置。
3. The video data transfer device according to claim 2, wherein the color data includes an upper limit value and a lower limit value of a video data component for each of the three primary colors RGB, and the color comparison signal setting. The means sets the color comparison signal to the first level when the components of the three primary colors represented by the moving image data are within the range between the upper limit value and the lower limit value, respectively. A video data transfer device comprising: means for setting the color comparison signal to the second level when at least one of the components of each color of the video data is outside the range between the upper limit value and the lower limit value.
【請求項4】 請求項2記載の映像データ転送装置であ
って、 前記色データは、RGBの3原色に対する映像データ成
分の参照値をそれぞれ含んでおり、 前記色比較信号設定手段は、前記動画映像データの3原
色の成分がそれぞれの前記参照値と等しい場合には前記
色比較信号を前記第1のレベルに設定し、前記動画映像
データの各色の成分の少なくとも1つが前記参照値と異
なる場合には前記色比較信号を前記第2のレベルに設定
する比較器、を有する映像データ転送装置。
4. The video data transfer device according to claim 2, wherein the color data includes reference values of video data components for three primary colors of RGB, and the color comparison signal setting unit includes the moving image. When the three primary color components of the video data are equal to the respective reference values, the color comparison signal is set to the first level, and at least one of the color components of the moving image data is different from the reference value. And a comparator for setting the color comparison signal to the second level.
【請求項5】 請求項1ないし4のいずれかに記載の映
像データ転送装置であって、 前記データ転送手段は、前記フレームメモリの書込み動
作を許可するための書込信号を生成する手段を備え、 前記書込制御手段は、前記色比較信号の値に応じて前記
書込信号のレベルを調整する書込信号調整手段を備え
る、映像データ転送装置。
5. The video data transfer device according to claim 1, wherein the data transfer means includes means for generating a write signal for permitting a write operation of the frame memory. The video data transfer device, wherein the writing control means includes writing signal adjusting means for adjusting the level of the writing signal according to the value of the color comparison signal.
【請求項6】 請求項5記載の映像データ転送装置であ
って、 前記書込信号調整手段は、前記色比較信号と前記書込信
号との論理演算によって前記書込信号のレベルを各ドッ
トごとに調整する手段を有する、映像データ転送装置。
6. The video data transfer device according to claim 5, wherein the write signal adjusting means sets the level of the write signal for each dot by a logical operation of the color comparison signal and the write signal. A video data transfer device having means for adjusting to.
【請求項7】 請求項1ないし6のいずれかに記載の映
像データ転送装置であって、 前記データ転送手段は、前記動画映像データを転送する
際に前記フレームメモリと前記書込みアドレスを算出す
るアドレス算出手段を備え、 前記アドレス算出手段は、 前記フレームメモリ内における前記動画映像データの書
込領域の開始位置を示すオフセットアドレス値を記憶す
る第1のメモリと、 前記フレームメモリ内における隣接する走査線同士のア
ドレスの差を示す加算アドレス値を記憶する第2のメモ
リと、 前記動画映像データに同期した垂直同期信号と水平同期
信号とに応じて、与えられた前記水平同期信号のパルス
数に基づいて特定される走査線の順番を示す走査線番号
と、前記加算アドレス値とを乗算した値に等しい垂直ア
ドレス値を算出する第1の演算手段と、 前記動画内の各走査線上において、各走査線の始点から
各走査線上の各画素までのアドレスの差を示す水平アド
レス値を生成する水平カウンタと、 前記オフセットアドレス値と前記垂直アドレス値と前記
水平アドレス値とを加算することによって、各走査線上
における各画素の位置に相当する前記フレームメモリ内
のアドレスを生成する第2の演算手段と、を備える映像
データ転送装置。
7. The video data transfer device according to claim 1, wherein the data transfer unit calculates the frame memory and the write address when transferring the video image data. A first memory that stores an offset address value that indicates a start position of the moving image video data writing area in the frame memory; and an adjacent scanning line in the frame memory. A second memory for storing an added address value indicating a difference in address between the two; and a pulse number of the given horizontal synchronizing signal according to a vertical synchronizing signal and a horizontal synchronizing signal synchronized with the moving image data. Calculates a vertical address value equal to the product of the scan line number indicating the order of the scan lines specified by A first computing means, a horizontal counter for generating a horizontal address value on each scanning line in the moving image, the horizontal address value indicating a difference in address from a starting point of each scanning line to each pixel on each scanning line, and the offset address value. And a second arithmetic means for generating an address in the frame memory corresponding to the position of each pixel on each scanning line by adding the vertical address value and the horizontal address value. .
JP6130935A 1994-05-20 1994-05-20 Video data transfer device Withdrawn JPH07320037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6130935A JPH07320037A (en) 1994-05-20 1994-05-20 Video data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6130935A JPH07320037A (en) 1994-05-20 1994-05-20 Video data transfer device

Publications (1)

Publication Number Publication Date
JPH07320037A true JPH07320037A (en) 1995-12-08

Family

ID=15046146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6130935A Withdrawn JPH07320037A (en) 1994-05-20 1994-05-20 Video data transfer device

Country Status (1)

Country Link
JP (1) JPH07320037A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008180940A (en) * 2007-01-25 2008-08-07 Funai Electric Co Ltd Image display device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008180940A (en) * 2007-01-25 2008-08-07 Funai Electric Co Ltd Image display device

Similar Documents

Publication Publication Date Title
US5517612A (en) Device for scaling real-time image frames in multi-media workstations
US5257348A (en) Apparatus for storing data both video and graphics signals in a single frame buffer
US5821918A (en) Video processing apparatus, systems and methods
JP3562049B2 (en) Video display method and apparatus
JP3451722B2 (en) Video data transfer device
JP3419046B2 (en) Video display device
EP0752695A2 (en) Method and apparatus for simultaneously displaying graphics and video data on a computer display
JPH08202318A (en) Display control method and its display system for display device having storability
US5585864A (en) Apparatus for effecting high speed transfer of video data into a video memory using direct memory access
JPH0432593B2 (en)
WO2005006772A1 (en) Image display device and image display method
JP3605891B2 (en) Computer system
JP3542690B2 (en) Video graphics equipment for television
JP3484763B2 (en) Video data transfer device and computer system
JP3536312B2 (en) Video processing device and computer system
JPH07320037A (en) Video data transfer device
JP2002500478A (en) Method and apparatus for reducing flicker in a television display of network application data
JPH06180569A (en) Image processor
JP3894173B2 (en) Computer system for video data transfer
JP2582743B2 (en) Image processing device
JP2005045769A (en) Image display device and image display method
JP3605889B2 (en) Computer system
JP4089590B2 (en) Video display method
JP3252359B2 (en) Image processing device
JP3855988B2 (en) Video display method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040629

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20040806