JPH1185118A - Video overlay device - Google Patents

Video overlay device

Info

Publication number
JPH1185118A
JPH1185118A JP9237022A JP23702297A JPH1185118A JP H1185118 A JPH1185118 A JP H1185118A JP 9237022 A JP9237022 A JP 9237022A JP 23702297 A JP23702297 A JP 23702297A JP H1185118 A JPH1185118 A JP H1185118A
Authority
JP
Japan
Prior art keywords
pixel clock
code
video
signal
overlay
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.)
Granted
Application number
JP9237022A
Other languages
Japanese (ja)
Other versions
JP3283448B2 (en
Inventor
Hiroaki Sato
浩明 佐藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP23702297A priority Critical patent/JP3283448B2/en
Publication of JPH1185118A publication Critical patent/JPH1185118A/en
Application granted granted Critical
Publication of JP3283448B2 publication Critical patent/JP3283448B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable setting an appropriate pixel clock frequency and adjusting an overlay coordinate. SOLUTION: When video reproduction software is started, a video window is displayed on a graphic screen. A start code and a finish code including a specific color pattern are generated by adjusting to the display timing of the video window. A code detecting circuit 405 detects these codes out of graphic signals 401. A coordinate counter 406 counts pixel clocks, and a pixel clock control circuit 408 adjusts frequencies of pixel clocks in a video overlay. And an overlay control circuit 409 detects a coordinate of the video window on a video overlay screen by counting adjusted pixel clocks.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はコンピュータのグラ
フィック画面に、外部から入力された画像を特定の位置
にオーバーレイさせるビデオオーバーレイ装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video overlay apparatus for overlaying an externally input image on a graphic screen of a computer at a specific position.

【0002】[0002]

【従来の技術】図8にビデオオーバーレイ装置の全体構
成を示す。ホストコンピュータ200の中には、ビデオ
オーバーレイブロック201とグラフィックブロック2
02とが設けられている。グラフィックブロック202
は、ホストコンピュータ200のグラフィック画面を出
力するものである。ビデオオーバーレイブロック201
は、グラフィックブロック202が出力するVGAやX
GA等のグラフィック信号204を入力し、ホストコン
ピュータ200が指定したエリア(ウィンドウ)にビデ
オ画像をオーバーレイするものである。ビデオオーバー
レイ出力信号205がモニタ203に送られると、ユー
ザはグラフィック画面上に外部から入力された動画像を
見ることができる。
2. Description of the Related Art FIG. 8 shows the overall configuration of a video overlay apparatus. The host computer 200 includes a video overlay block 201 and a graphic block 2.
02 is provided. Graphic block 202
Outputs a graphic screen of the host computer 200. Video overlay block 201
Is the VGA or X output from the graphic block 202.
A graphic signal 204 such as GA is input and a video image is overlaid on an area (window) designated by the host computer 200. When the video overlay output signal 205 is sent to the monitor 203, the user can see an externally input moving image on the graphic screen.

【0003】図9にグラフィック座標を示す。グラフィ
ック座標とは、コンピュータ(PC)のOS上での論理
的な座標である。しかしモニタ203に表示する場合
は、水平同期信号(以下、HSYNCという)とx軸の
原点Gx0との間にはブランキング区間が存在する。こ
のブランキング区間のためにHSYNC間のピクセル数
は一意に決めることはできない。座標Gx1、Gx2、
Gy1、Gy2の理論的な値はOS上で既知である。モ
ニタ上のGx1の位置は、HSYNCの基準値+ブラン
キング区間+Gx1となる。従ってブランキング区間の
時間が判らないと、HSYNC間の正確なピクセルクロ
ックの数は判らない。
FIG. 9 shows graphic coordinates. The graphic coordinates are logical coordinates on the OS of the computer (PC). However, when displaying on the monitor 203, there is a blanking interval between the horizontal synchronization signal (hereinafter, referred to as HSYNC) and the origin Gx0 of the x-axis. Because of this blanking interval, the number of pixels between HSYNC cannot be uniquely determined. Coordinates Gx1, Gx2,
The theoretical values of Gy1 and Gy2 are known on the OS. The position of Gx1 on the monitor is (reference value of HSYNC + blanking section + Gx1). Therefore, if the time of the blanking interval is not known, the exact number of pixel clocks between HSYNC cannot be known.

【0004】図10にビデオオーバーレイブロック上の
座標を示す。Vx1、Vx2は、HYSNCからのピク
セルクロックのカウント数により決定できる。またVy
1、Vy2は、垂直同期信号(以下、VSYNCとい
う)からHSYNCのカウント数により決定できる。但
し、グラフィック信号204にはピクセルクロックが存
在しないため、ビデオオーバーレイブロックでピクセル
クロックを再生しなければならない。これを再生するに
は、 (1)グラフック画面の解像度(VGA、SVGA、X
GA等の区別)が判らなければならない。 (2)グラフック画面のリフレッシュレート(VSYN
Cの周波数)が判らなければならない。 (3)水平及び垂直方向のブランキング区間が判らなけ
ればならない。
FIG. 10 shows coordinates on a video overlay block. Vx1 and Vx2 can be determined by the count number of the pixel clock from HYSNC. Vy
1, Vy2 can be determined from the vertical synchronization signal (hereinafter, referred to as VSYNC) by the count number of HSYNC. However, since the pixel clock is not present in the graphic signal 204, the pixel clock must be reproduced by the video overlay block. To play this, (1) Graphic screen resolution (VGA, SVGA, X
GA, etc.) must be known. (2) Graphic screen refresh rate (VSYN
C frequency). (3) The horizontal and vertical blanking intervals must be known.

【0005】(1)については、OSにより知ることが
できる。(2)、(3)については一般に不明である。
従って、ビデオオーバーレイブロック上でピクセルクロ
ックを再生するためには、何らかの方法でグラフィック
画面上のビデオ表示エリア(ウィンドウ)を知る必要が
ある。
[0005] (1) can be known by the OS. (2) and (3) are generally unknown.
Therefore, in order to reproduce the pixel clock on the video overlay block, it is necessary to know the video display area (window) on the graphic screen in some way.

【0006】もし、ピクセルクロックの周波数がグラフ
ィック画面とビデオ画面で一致していなければ、図11
に示すようにグラフィック座標系(Gx,Gy)とビデ
オオーバーレイ座標系(Vx,Vy)がずれ、グラフィ
ック画面上のビデオ表示エリアA1と、ビデオオーバー
レイ上の表示エリアA2の位置及びサイズが合わなくな
る。そこで、ビデオオーバーレイブロック上において、
ピクセルクロックを適当な周波数に設定できれば、グラ
フィック画面上のビデオ表示エリアと、ビデオオーバー
レイ上の表示エリアを同一位置にすることができる。
If the frequency of the pixel clock does not match between the graphic screen and the video screen, FIG.
As shown in (1), the graphic coordinate system (Gx, Gy) deviates from the video overlay coordinate system (Vx, Vy), and the position and size of the video display area A1 on the graphic screen and the display area A2 on the video overlay do not match. So, on the video overlay block,
If the pixel clock can be set to an appropriate frequency, the video display area on the graphic screen and the display area on the video overlay can be located at the same position.

【0007】図12に従来のビデオオーバーレイブロッ
ク201の構成図を示す。コンピュータの出力信号1と
して、VSYNC、HSYNC、グラフィック信号であ
るR信号、G信号、B信号が夫々ビデオオーバーレイブ
ロック201に与えられる。一方、GUI環境でのビデ
オ再生ソフトウェアがユーザにより起動されると、ビデ
オ表示用の矩形領域(以下、ビデオウィンドウという)
が表示される。コンピュータはビデオオーバーレイブロ
ック201に対して、ビデオウィンドウをグラフィック
信号によって指示する。このとき、コンピュータはビデ
オウィンドウの領域を予め決められた色(以下、カラー
キーという)で塗りつぶす。
FIG. 12 shows a configuration diagram of a conventional video overlay block 201. As an output signal 1 of the computer, VSYNC, HSYNC, and R, G, and B signals, which are graphic signals, are given to the video overlay block 201, respectively. On the other hand, when the video playback software in the GUI environment is started by the user, a rectangular area for video display (hereinafter referred to as a video window)
Is displayed. The computer indicates a video window to the video overlay block 201 by a graphic signal. At this time, the computer paints the area of the video window with a predetermined color (hereinafter referred to as a color key).

【0008】この場合、ビデオウィンドウ内では、R信
号、G信号、B信号は夫々予め決められた信号レベルと
なる。カラーキー検出回路2は3つの信号レベルの値か
らカラーキーを検出し、カラーキーエリア信号10をR
GB信号切換回路5に出力する。一方、グラフィック画
面にオーバーレイすべきディジタルビデオ信号7は、ビ
デオ同期信号8と共にオーバーレイ制御回路4に対して
グラフィック信号とは無関係に入力される。
In this case, the R signal, the G signal, and the B signal each have a predetermined signal level in the video window. The color key detection circuit 2 detects a color key from three signal level values, and outputs a color key area signal
Output to the GB signal switching circuit 5. On the other hand, the digital video signal 7 to be overlaid on the graphic screen is input to the overlay control circuit 4 together with the video synchronizing signal 8 irrespective of the graphic signal.

【0009】オーバーレイ制御回路4はICで構成さ
れ、ホストバス6経由でコンピュータよりビデオ表示エ
リアの座標、ビデオの拡大又は縮小率、ビデオ表示モー
ドなどが任意に設定できるようになっている。オーバー
レイ制御回路4に入力されたディジタルビデオ信号7
は、飛び越し走査信号から非飛び越し走査信号へ、また
輝度信号と色差信号(以下、YUV信号という)から、
グラフィック信号と同じRGB信号へ変換される。そし
てコンピュータが設定した拡大又は縮小率により信号処
理を受けた後、専用のビデオメモリに記憶される。
The overlay control circuit 4 is composed of an IC, and the computer can set the coordinates of the video display area, the enlargement or reduction ratio of the video, the video display mode, etc. arbitrarily through the host bus 6. The digital video signal 7 input to the overlay control circuit 4
From the interlaced scanning signal to the non-interlaced scanning signal, and from the luminance signal and the color difference signal (hereinafter referred to as YUV signal),
It is converted to the same RGB signal as the graphic signal. After being subjected to signal processing according to the enlargement or reduction ratio set by the computer, it is stored in a dedicated video memory.

【0010】オーバーレイ制御回路4には、コンピュー
タの出力信号1であるHSYNC、VSYNCが入力さ
れ、ピクセルクロック発生回路3からピクセルクロック
が入力される。ピクセルクロック発生回路3は、ホスト
バス6を通じてコンピュータから入力された信号に基づ
き、グラフィック画面と適応した周波数のピクセルクロ
ックを発生する。そしてオーバーレイ制御回路4は、入
力されたHSYNC、VSYNC、ピクセルクロックを
夫々カウントし、これらのカウント結果により、グラフ
ィック画面上の座標を求めたり、ディジタルビデオ信号
をアナログのRGB信号に変換したりする。
The overlay control circuit 4 receives HSYNC and VSYNC, which are the output signals 1 of the computer, and receives the pixel clock from the pixel clock generation circuit 3. The pixel clock generation circuit 3 generates a pixel clock having a frequency adapted to a graphic screen based on a signal input from a computer through the host bus 6. Then, the overlay control circuit 4 counts the input HSYNC, VSYNC, and pixel clock, respectively, and obtains coordinates on a graphic screen or converts a digital video signal into an analog RGB signal based on these count results.

【0011】またオーバーレイ制御回路4は、グラフィ
ック信号がビデオウィンドウ内にあるときに、ビデオウ
ィンドウエリア信号11を出力する。その様子を図13
に示す。図13の縦軸は水平同期信号(HSYNC)3
00の発生位置を示し、横軸は垂直同期信号(VSYN
C)301が出力される走査ラインを示す。座標x1は
ビデオウィンドウ306の水平方向の開始位置を示し、
座標x2は終了位置を示す。これらの座標x1、x2は
HSYNC300からピクセルクロックをカウントして
求められる。同様に座標y1はビデオウィンドウ306
の垂直方向の開始位置を示し、座標y2は終了位置を示
す。座標y1、y2はVSYNC301の基準点からH
SYNC300をカウントして求めることができる。オ
ーバーレイ座標はこのような座標x1、x2、y1、y
2によって決定される。
The overlay control circuit 4 outputs a video window area signal 11 when the graphic signal is in the video window. Fig. 13
Shown in The vertical axis in FIG. 13 is the horizontal synchronization signal (HSYNC) 3
00, the horizontal axis indicates the vertical synchronization signal (VSYN).
C) 301 indicates a scan line to be output. The coordinate x1 indicates the horizontal start position of the video window 306,
The coordinate x2 indicates the end position. These coordinates x1 and x2 are obtained by counting pixel clocks from the HSYNC 300. Similarly, the coordinates y1 are displayed in the video window 306.
, And the coordinate y2 indicates the end position. Coordinates y1 and y2 are H from the reference point of VSYNC 301.
The SYNC 300 can be obtained by counting. The overlay coordinates are such coordinates x1, x2, y1, y
2 determined.

【0012】ピクセルクロックとHSYNCのカウント
による座標値が、コンピュータが設定したオーバーレイ
の座標内にくると、オーバーレイ制御回路4は、ピクセ
ルクロックのタイミングでディジタル−アナログ変換し
たビデオ出力9と、ビデオウィンドウエリア信号11と
をRGB信号切換回路5に出力する。RGB信号切換回
路5は、ビデオウィンドウエリア信号11とカラーキー
エリア信号10が共にアクティブであれば、コンピュー
タの出力信号1をビデオ出力9に切り換える。このよう
にしてモニタに与えられる出力信号12は、外部から入
力されたビデオ信号がグラフィック画面の所定の位置に
オーバーレイされたものになる。
When the coordinate values based on the pixel clock and the HSYNC count fall within the overlay coordinates set by the computer, the overlay control circuit 4 outputs a video output 9 obtained by digital-to-analog conversion at the timing of the pixel clock and a video window area. The signal 11 is output to the RGB signal switching circuit 5. The RGB signal switching circuit 5 switches the computer output signal 1 to the video output 9 when the video window area signal 11 and the color key area signal 10 are both active. The output signal 12 supplied to the monitor in this manner is a signal obtained by overlaying a video signal input from the outside at a predetermined position on the graphic screen.

【0013】[0013]

【発明が解決しようとする課題】しかしビデオ出力9が
グラフィック画面の所定の位置にタイミングよく出力さ
れるためには、コンピュータの出力グラフィック信号で
あるR、G、B信号に適合するように、ピクセルクロッ
クの周波数が設定されなければならない。またビデオウ
ィンドウの座標(グラフィック座標)と、オーバーレイ
ブロック201より求められたビデオオーバーレイ座標
(ビデオ座標)とが一致しなければならない。
However, in order for the video output 9 to be output at a predetermined position on the graphic screen in a timely manner, the pixel output must be adjusted in accordance with the R, G, and B signals output from the computer. The clock frequency must be set. In addition, the coordinates (graphic coordinates) of the video window and the video overlay coordinates (video coordinates) obtained from the overlay block 201 must match.

【0014】しかし適合したピクセルクロックを発生さ
せるためには、例えコンピュータのグラフィック画面の
解像度が既知であっても、垂直同期信号の周波数により
ピクセルクロックの周波数が変化しなければならない。
このような場合に、従来のビデオオーバーレイブロック
201では、画像信号に適合するピクセルクロックを正
確に発生できない。ピクセルクロックの周波数を適合さ
せるには、ビデオ表示エリアの水平方向の時間を求める
必要があるが、カラーキーによるビデオ表示エリアの検
出方法では、ビデオ表示エリア以外にもカラーキーと同
色の画像が存在することもあり、常に正確な検出が行え
るとは限らない。
However, in order to generate a suitable pixel clock, the frequency of the pixel clock must vary with the frequency of the vertical synchronization signal, even if the resolution of the graphic screen of the computer is known.
In such a case, the conventional video overlay block 201 cannot accurately generate a pixel clock suitable for the image signal. To adjust the frequency of the pixel clock, it is necessary to determine the horizontal time of the video display area.However, the video display area detection method using the color key has an image of the same color as the color key other than the video display area. And accurate detection is not always possible.

【0015】また従来のビデオオーバーレイブロック2
01では、ブランキング内のピクセルクロック数及びラ
イン数を特定できないため、ビデオ画像(動画)をオー
バーレイする表示位置の正確な座標の設定を行うことが
できなかった。
A conventional video overlay block 2
In No. 01, since the number of pixel clocks and the number of lines in blanking cannot be specified, it is not possible to set accurate coordinates of a display position where a video image (moving image) is overlaid.

【0016】このように、ピクセルクロックがグラフィ
ック信号と適合していないコンピュータの初期状態や、
コンピュータのユーザが自らグラフィック画面の解像度
を変更したり、垂直同期信号の周波数を変更したとき場
合には、ピクセルクロックの周波数の調整と、ビデオオ
ーバーレイ座標の設定を行うには、従来方式であれば特
別な設定モードを用意し、人手を介して調整しなければ
ならなかった。
As described above, the initial state of the computer in which the pixel clock does not match the graphic signal,
When the computer user changes the resolution of the graphic screen or changes the frequency of the vertical synchronization signal, the conventional method is used to adjust the frequency of the pixel clock and set the video overlay coordinates. A special setting mode had to be provided and adjusted manually.

【0017】しかし、適正なピクセルクロックに調整さ
れていない初期状態において、ピクセルクロックの調整
を新たに行い、ビデオオーバーレイ座標の調整を行うこ
とは、装置の構成を知らないユーザにとっては煩雑な作
業となる。また一度ピクセルクロックとビデオ表示エリ
アの座標を最適に設定しても、ユーザがグラフィック画
面の解像度や垂直同期信号の周波数の設定を変えれば、
ピクセルクロックの適正周波数が変化し、その都度ピク
セルクロックの周波数の調整とビデオオーバーレイ座標
の位置調整とが必要になり、使用上好ましくなくなる。
However, in the initial state where the pixel clock is not properly adjusted, adjusting the pixel clock anew and adjusting the video overlay coordinates is a complicated operation for a user who does not know the configuration of the apparatus. Become. Also, once the pixel clock and the coordinates of the video display area are set optimally, if the user changes the settings of the resolution of the graphic screen and the frequency of the vertical synchronization signal,
When the proper frequency of the pixel clock changes, it is necessary to adjust the frequency of the pixel clock and the position of the video overlay coordinates each time, which is not preferable in use.

【0018】本発明は、このような従来の問題点に鑑み
てなされたものであって、ビデオ信号を表示するソフト
ウェアを起動すると、コンピュータが出力するグラフィ
ック信号から、自動的に適正なピクセルクロックの周波
数の調整を行い、更にグラフィック画面における水平同
期信号と垂直同期信号とピクセルクロックとから、ビデ
オウィンドウ座標と一致するビデオオーバーレイ座標を
求める機能を有するビデオオーバーレイ装置を実現する
ことを目的とする。
The present invention has been made in view of such a conventional problem, and when software for displaying a video signal is started, an appropriate pixel clock is automatically converted from a graphic signal output from a computer. It is an object of the present invention to realize a video overlay apparatus having a function of adjusting a frequency and further obtaining a video overlay coordinate that matches a video window coordinate from a horizontal synchronization signal, a vertical synchronization signal, and a pixel clock on a graphic screen.

【0019】[0019]

【課題を解決するための手段】このような課題を解決す
るため、本願の請求項1記載の発明は、コンピュータか
ら出力された信号を表示するグラフィック画面におい
て、前記グラフィック画面の特定のウィンドウに外部か
ら入力された画像をオーバーレイ画像として表示するビ
デオオーバーレイ装置であって、外部から画像信号を入
力し、前記グラフィック画面に表示できるような走査方
式の画像信号に変換すると共に、コンピュータのソフト
ウェアによって設定された縮小拡大率により前記画像信
号を縮小拡大するビデオオーバーレイ制御手段と、前記
ソフトウェアによって前記グラフィック画面上のウィン
ドウの位置が設定されたとき、前記ウィンドウの座標を
決定するための開始コードと終了コードを生成するコー
ド発生手段と、前記ソフトウェアによって設定された前
記ウィンドウに前記画像信号をオーバーレイするとき、
前記コード発生手段の開始コードと終了コードに基づい
て前記グラフィック画面上におけるオーバーレイ座標を
検出するビデオオーバーレイ座標検出手段と、水平同期
信号を基準クロックとして任意の周波数を有するピクセ
ルクロックを発生すると共に、前記ビデオオーバーレイ
座標検出手段が検出したオーバーレイ座標とグラフィッ
ク画面の解像度とに基づいて、前記オーバーレイ画像の
サイズと前記ウィンドウのサイズとが一致するよう前記
ピクセルクロックを調整するピクセルクロック調整手段
と、前記ウィンドウの表示領域を示す切換信号を検出し
て、グラフィック信号から前記画像信号に切り替え、前
記ピクセルクロック調整手段によって制御されたピクセ
ルクロックに応じて画像信号を出力する画像切換手段
と、を具備することを特徴とするものである。
In order to solve such a problem, the invention according to claim 1 of the present application provides a graphic screen for displaying a signal output from a computer on a specific window of the graphic screen. A video overlay device that displays an image input from an external device as an overlay image, which receives an external image signal, converts the image signal into a scanning image signal that can be displayed on the graphic screen, and is set by software of a computer. Video overlay control means for reducing and enlarging the image signal according to the reduction / enlargement ratio, and a start code and an end code for determining the coordinates of the window when the position of the window on the graphic screen is set by the software. Code generating means for generating, When overlaying the image signal in the window set by software,
A video overlay coordinate detection means for detecting overlay coordinates on the graphic screen based on a start code and an end code of the code generation means, and a pixel clock having an arbitrary frequency with a horizontal synchronization signal as a reference clock; Pixel clock adjusting means for adjusting the pixel clock so that the size of the overlay image matches the size of the window based on the overlay coordinates detected by the video overlay coordinate detecting means and the resolution of the graphic screen; and Image switching means for detecting a switching signal indicating a display area, switching from a graphic signal to the image signal, and outputting an image signal according to a pixel clock controlled by the pixel clock adjusting means. It is an feature.

【0020】また本願の請求項2記載の発明は、請求項
1のビデオオーバーレイ装置において、前記コード発生
手段は、R,G,B信号のうち、特定の色信号の組み合
わせを用いて第1及び第2のストライプパターンを生成
し、前記第1及び第2のストライプパターンをビデオオ
ーバーレイの開始コード及び終了コードとすることを特
徴とするものである。
According to a second aspect of the present invention, in the video overlay apparatus according to the first aspect, the code generation means uses a combination of specific color signals among R, G, and B signals to generate the first and the second color signals. A second stripe pattern is generated, and the first and second stripe patterns are used as a start code and an end code of a video overlay.

【0021】また本願の請求項3記載の発明は、請求項
1のビデオオーバーレイ装置において、前記ビデオオー
バーレイ座標検出手段は、前記コード発生手段が生成し
た前記開始コード及び終了コードを検出するコード検出
回路と、前記コード検出回路によって前記開始コード及
び終了コードが検出される間に、前記ピクセルクロック
調整手段から出力されたピクセルクロックを計数し、前
記ウィンドウのx座標を生成するxカウンタと、前記コ
ード検出回路によって前記開始コード及び終了コードが
検出される間に前記グラフィック画面の水平同期信号の
数を計数し、前記ウィンドウのy座標を生成するyカウ
ンタと、を有し、前記xカウンタとyカウンタの計数結
果から前記ビデオオーバーレイ座標を生成することを特
徴とするものである。
According to a third aspect of the present invention, in the video overlay apparatus according to the first aspect, the video overlay coordinate detecting means detects the start code and the end code generated by the code generating means. An x counter that counts a pixel clock output from the pixel clock adjusting unit while the code detection circuit detects the start code and the end code and generates an x coordinate of the window; A y counter for counting the number of horizontal synchronization signals of the graphic screen while the start code and the end code are detected by a circuit, and generating a y coordinate of the window. Generating the video overlay coordinates from the counting result. .

【0022】また本願の請求項4記載の発明は、請求項
1のビデオオーバーレイ装置において、前記ピクセルク
ロック調整手段は、水平同期信号を基準クロックとし
て、周波数制御信号に基づいて任意の周波数のピクセル
クロックを生成して前記ビデオオーバーレイ制御手段に
与えるピクセルクロック発生回路と、前記ビデオオーバ
ーレイ座標検出手段が生成したオーバーレイ座標とグラ
フィック画面の解像度とに基づいて、前記オーバーレイ
画像のサイズと前記ウィンドウとが一致するよう前記周
波数制御信号を前記ピクセルクロック発生回路に与える
ピクセルクロック制御回路と、を有することを特徴とす
るものである。
According to a fourth aspect of the present invention, in the video overlay device according to the first aspect, the pixel clock adjusting means uses a horizontal synchronization signal as a reference clock and a pixel clock having an arbitrary frequency based on a frequency control signal. A size of the overlay image and the window are matched based on a pixel clock generating circuit for generating and providing the video overlay control means to the video overlay control means and the resolution of the graphic screen and the overlay coordinates generated by the video overlay coordinate detection means. And a pixel clock control circuit for supplying the frequency control signal to the pixel clock generation circuit.

【0023】このような構成によれば、コンピュータ上
からソフトウェアを起動して、特定のウィンドウに動画
像を再生するときに、ピクセルクロックの調整を自動で
行うことにより、ビデオオーバーレイ画面の座標が適切
でなくても、ユーザの手を介することなく、グラフィッ
ク画面上のウィンドウに外部入力の画像を適切に表示で
きる。
According to such a configuration, when the software is started from the computer and the moving picture is reproduced in a specific window, the pixel clock is automatically adjusted, so that the coordinates of the video overlay screen are appropriately adjusted. However, the image of the external input can be appropriately displayed in the window on the graphic screen without the user's hand.

【0024】[0024]

【発明の実施の形態】以下、本発明の実施の形態におけ
るビデオオーバーレイ装置について図面を参照しながら
説明する。ユーザがビデオ再生を行うため、ソフトウェ
アを起動すると、ソフトウェアのプログラムにより、図
1に示すようにビデオ表示のウィンドウであるビデオ表
示エリア602が指示された大きさで作成される。また
コード発生手段(図示せず)は、ソフトウェアによって
グラフィック画面上のウィンドウの位置が設定されたと
き、ウィンドウの範囲を示す開始コード605と終了コ
ード606を生成する。そしてピクセルクロックを最適
値に調整するため、ビデオ表示エリア602に対して、
開始コード605及び終了コード606によって定まる
所定のカラーパターンが作成される。この場合、グラフ
ィック画面601と水平方向の時間との関係を明らかに
するため、HSYNCとグラフィック信号を図1の下部
に示す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a video overlay device according to an embodiment of the present invention will be described with reference to the drawings. When the user starts the software in order to play back a video, the software program creates a video display area 602, which is a video display window, in a designated size, as shown in FIG. When a window position on the graphic screen is set by software, a code generation unit (not shown) generates a start code 605 and an end code 606 indicating a window range. Then, to adjust the pixel clock to the optimal value, the video display area 602
A predetermined color pattern determined by the start code 605 and the end code 606 is created. In this case, HSYNC and graphic signals are shown at the bottom of FIG. 1 to clarify the relationship between the graphic screen 601 and the time in the horizontal direction.

【0025】またグラフィック画面601と垂直同期信
号と描画区間との関係を明らかにするために、VSYN
Cと垂直方向描画区間を図1の右部に示す。左右に示す
区間608と区間614は、グラフィック画面がモニタ
上に表示されない水平方向のブランキング区間である。
区間609と区間613は、ビデオ表示エリア以外のグ
ラフィック画面の区間である。区間610は開始コード
区間であり、区間611はビデオ表示区間であり、区間
612は終了コード区間である。上下に示す区間616
と区間620は、垂直方向のブランキング区間である。
区間617と区間619は、ビデオ表示区間以外のグラ
フィック画面の区間であり、区間618は垂直方向のビ
デオ表示区間である。
In order to clarify the relationship between the graphic screen 601, the vertical synchronizing signal, and the drawing section, VSYN
C and the vertical drawing section are shown in the right part of FIG. The sections 608 and 614 shown on the left and right are blanking sections in the horizontal direction in which the graphic screen is not displayed on the monitor.
The section 609 and the section 613 are sections of the graphic screen other than the video display area. Section 610 is a start code section, section 611 is a video display section, and section 612 is an end code section. Section 616 shown above and below
And the section 620 are vertical blanking sections.
The section 617 and the section 619 are sections of the graphic screen other than the video display section, and the section 618 is a video display section in the vertical direction.

【0026】本実施の形態のビデオオーバーレイ装置に
設けられるビデオオーバーレイブロック400の構成を
図2に示す。このビデオオーバーレイブロック400
は、波形整形回路403、比較回路404、コード検出
回路405、座標カウンタ406、ピクセルクロック発
生回路407、ピクセルクロック制御回路408、オー
バーレイ制御回路409、カラーキー検出回路410、
RGB信号切換回路411を含んで構成される。なお、
オーバーレイ制御回路409はICで構成され、図12
に示す従来例のオーバーレイ制御回路4と同一のオーバ
ーレイ制御手段である。また従来例と同一名称の回路に
ついては、詳細な説明を省略する。
FIG. 2 shows the configuration of the video overlay block 400 provided in the video overlay apparatus of the present embodiment. This video overlay block 400
Are a waveform shaping circuit 403, a comparison circuit 404, a code detection circuit 405, a coordinate counter 406, a pixel clock generation circuit 407, a pixel clock control circuit 408, an overlay control circuit 409, a color key detection circuit 410,
It is configured to include an RGB signal switching circuit 411. In addition,
The overlay control circuit 409 is composed of an IC,
Is the same overlay control means as the conventional overlay control circuit 4 shown in FIG. Further, detailed description of the circuits having the same names as those of the conventional example will be omitted.

【0027】前述したようにグラフィック画面は、コン
ピュータからの出力信号401に含まれるHSYNC、
VSYNC、アナログのグラフィック信号であるR信
号、G信号、B信号により作成される。波形整形回路4
03は、HSYNCとVSYNCの立ち上がり又は立ち
下がりを検出し、夫々HS420とVS421として他
の回路に出力する。立ち上がり又は立ち下がりを基準に
した理由は、グラフィック画面の解像度により、HSY
NC及びVSYNCの論理が変化するためである。ここ
ではHSYNC及びVSYNCがハイレベルになるとき
を正論理の同期タイミングとし、立ち上がりエッジによ
りHS420及びVS421が生成される。また、HS
YNC及びVSYNCがローレベルになるときを負論理
の同期タイミングとし、立ち下がりエッジによりHS4
20及びVS421が生成される。
As described above, the graphic screen includes HSYNC, which is included in the output signal 401 from the computer.
VSYNC is created by R, G, and B signals, which are analog graphic signals. Waveform shaping circuit 4
03 detects the rise or fall of HSYNC and VSYNC and outputs them to other circuits as HS420 and VS421, respectively. The reason based on the rise or fall is that HSY depends on the resolution of the graphic screen.
This is because the logics of NC and VSYNC change. Here, the timing when HSYNC and VSYNC become high level is defined as the synchronization timing of positive logic, and HS420 and VS421 are generated by the rising edge. Also, HS
The time when YNC and VSYNC go low is defined as negative logic synchronization timing.
20 and VS421 are generated.

【0028】比較回路404はR信号、B信号、G信号
を夫々任意の閾値電圧と比較する回路である。図3は比
較回路404の具体的な構成を示すブロック図である。
この比較回路404は、3つの電圧比較器503,50
7,511で構成される。電圧比較器503は、グラフ
ィックのR信号501と閾値電圧502とを比較し、R
コンパレート信号504を出力する回路である。電圧比
較器507は、グラフィックのG信号505と閾値電圧
506とを比較し、Gコンパレート信号508を出力す
る回路である。電圧比較器511は、グラフィックのB
信号509と閾値電圧510とを比較し、Bコンパレー
ト信号512を出力する回路である。
The comparison circuit 404 is a circuit for comparing each of the R signal, the B signal, and the G signal with an arbitrary threshold voltage. FIG. 3 is a block diagram showing a specific configuration of the comparison circuit 404.
The comparison circuit 404 includes three voltage comparators 503 and 50
7,511. The voltage comparator 503 compares the graphic R signal 501 with the threshold voltage 502, and
This is a circuit that outputs a compare signal 504. The voltage comparator 507 is a circuit that compares a graphic G signal 505 with a threshold voltage 506 and outputs a G compare signal 508. The voltage comparator 511 has a graphic B
This circuit compares the signal 509 with the threshold voltage 510 and outputs a B compare signal 512.

【0029】本実施の形態ではアナログの電圧比較器を
用いたが、アナログ−ディジタル変換した後にディジタ
ル信号の比較器を設けて比較をしてもよい。これら電圧
比較器は夫々閾値電圧と比較し、Hレベル又はLレベル
の比較結果を出力する。
Although an analog voltage comparator is used in this embodiment, a digital signal comparator may be provided after analog-to-digital conversion for comparison. Each of these voltage comparators compares with a threshold voltage and outputs an H level or L level comparison result.

【0030】これらの2値信号は図2のコード検出回路
405とカラーキー検出回路410に与えられる。コー
ド検出回路405では2値信号の組み合わせ(厳密に
は、一定ビットのR、G、B信号を夫々シリアル−パラ
レル変換し、8ビットコードとしたもの)から、ビデオ
表示エリアの開始コード605と終了コード606が検
出される。図4にその様子を示す。この時点は初期状態
であるので、ピクセルクロックの周波数が適正に設定さ
れていない。このため本実施の形態では、Rコンパレー
ト信号504、Gコンパレート信号508の組合わせを
開始及び終了コードとして検出できるようにし、Bコン
パレート信号512を1ピクセル毎に変化する同期クロ
ックとし、これらの信号をビデオウィンドウ内に描画す
る。
These binary signals are applied to the code detection circuit 405 and the color key detection circuit 410 of FIG. The code detection circuit 405 determines the start code 605 and the end of the video display area from a combination of binary signals (strictly speaking, serial-parallel conversion of R, G, and B signals of a certain bit to form an 8-bit code). Code 606 is detected. FIG. 4 shows this state. Since this time is an initial state, the frequency of the pixel clock is not properly set. Therefore, in the present embodiment, the combination of the R compare signal 504 and the G compare signal 508 can be detected as a start and end code, and the B compare signal 512 is used as a synchronous clock that changes every pixel. Is drawn in the video window.

【0031】ビデオ表示エリア602内には、表示色7
02で示すような画像が1ライン毎に出力されるので、
垂直方向に各色のストライプパターンが初期のフレーム
に描画されることになる。コード検出回路405は、B
コンパレート信号512を同期クロックとして用い、R
コンパレート信号504、Gコンパレート信号508が
設定したコードに一致すると、開始コード605及び終
了コード606を出力する。またコード検出回路405
の出力するINT417はHS420に同期しており、
ピクセルクロックが適正な周波数になるまでの間で、且
つ開始コード605及び終了コード606を両方検出し
た場合のみ、ホストコンピュータに対する割込信号とし
て利用される。
In the video display area 602, the display color 7
Since an image such as 02 is output line by line,
The stripe pattern of each color is drawn in the initial frame in the vertical direction. The code detection circuit 405
Using the compare signal 512 as a synchronization clock,
When the compare signal 504 and the G compare signal 508 match the set codes, a start code 605 and an end code 606 are output. Also, a code detection circuit 405
Is synchronized with HS420,
It is used as an interrupt signal to the host computer until the pixel clock reaches an appropriate frequency and only when both the start code 605 and the end code 606 are detected.

【0032】この理由は、ある特定のパターンを持った
画像信号であっても、有限色の組み合わせである以上、
誤検出の可能性があるためである。また、GUI環境の
コンピュータシステムで、一般的なマウスカーソルがビ
デオウィンドウのコードに使用する描画エリア上にくる
と、グラフィック画面上のコードが壊される。このため
ピクセルクロックの周波数の調整範囲を、開始コード及
び終了コードを検出した有効なラインに限定するためで
ある。
The reason is that even if the image signal has a specific pattern, it is a combination of finite colors,
This is because there is a possibility of erroneous detection. Also, in a computer system in a GUI environment, when a general mouse cursor comes over a drawing area used for a code in a video window, the code on the graphic screen is broken. Therefore, the adjustment range of the frequency of the pixel clock is limited to a valid line in which the start code and the end code are detected.

【0033】図4の開始コード605及び終了コード6
06は、図2に示すようにコード検出信号416として
座標カウンタ406及びピクセルクロック制御回路40
8に出力される。ピクセルクロック発生回路407は、
任意の周波数が設定可能なPLL(フェーズ・ロック・
ループ)発振器で構成されており、ビデオ再生ソフトウ
ェアの起動時にそのソフトウェアにより初期値がホスト
バス412を介して設定される。そしてこの初期値の設
定周波数によってピクセルクロック発生回路407でク
ロックを発振させる。
The start code 605 and the end code 6 in FIG.
Reference numeral 06 denotes a coordinate counter 406 and a pixel clock control circuit 40 as a code detection signal 416 as shown in FIG.
8 is output. The pixel clock generation circuit 407 includes:
PLL (Phase Locked)
An initial value is set via the host bus 412 by the video playback software when the software is activated. Then, a clock is oscillated by the pixel clock generation circuit 407 at the set frequency of the initial value.

【0034】ピクセルクロック制御回路408は、開始
コード605を検出したら、ピクセルクロックのカウン
トを始め、終了コード606を検出したら、カウントを
終了する構成になっている。ビデオウィンドウのサイズ
から適正なピクセルクロックのカウント値は判るので、
実際のピクセルクロックのカウント値と理論的なカウン
ト値とを比較することにより、現在のピクセルクロック
の設定周波数が、高いか、低いか、又は適正かを判別す
ることができる。
The pixel clock control circuit 408 starts counting pixel clocks when the start code 605 is detected, and ends counting when the end code 606 is detected. Since the proper pixel clock count value can be determined from the size of the video window,
By comparing the actual pixel clock count value with the theoretical count value, it is possible to determine whether the current frequency of the pixel clock is high, low, or appropriate.

【0035】この判定結果は、ピクセルクロック制御回
路408内のステータスレジスタにロードされる。この
ロードは終了コード606を検出したタイミングで行わ
れ、コンピュータが後にこの判定結果を自由に読み出す
ことができる。本実施の形態では、ホストコンピュータ
がINT417の信号を基に、ホストバス412を介し
てステータスレジスタから判定結果を読み出す。その結
果、ピクセルクロック発生回路407は、最適な周波数
のピクセルクロックを発生する。このようにピクセルク
ロックの周波数が適正値に調整されると、ピクセルクロ
ック制御回路408からEVEN413がコード検出回
路405に対して出力される。ここで波形整形回路40
3、比較回路404、コード検出回路405、座標カウ
ンタ406はビデオオーバーレイ座標検出手段の機能を
構成している。又カラーキー検出回路410とRGB信
号切換回路411は、画像切換手段を構成している。
The result of this determination is loaded into a status register in the pixel clock control circuit 408. This loading is performed at the timing when the end code 606 is detected, and the computer can freely read out the determination result later. In the present embodiment, the host computer reads the determination result from the status register via the host bus 412 based on the signal of the INT 417. As a result, the pixel clock generation circuit 407 generates a pixel clock having an optimum frequency. When the frequency of the pixel clock is adjusted to an appropriate value, the pixel clock control circuit 408 outputs EVEN 413 to the code detection circuit 405. Here, the waveform shaping circuit 40
3, the comparison circuit 404, the code detection circuit 405, and the coordinate counter 406 constitute a function of a video overlay coordinate detection means. The color key detection circuit 410 and the RGB signal switching circuit 411 constitute an image switching unit.

【0036】ホストコンピュータは、このEVEN41
3をピクセルクロック制御回路408上のステータスレ
ジスタを介して取得できるので、ピクセルクロックの調
整後は、ビデオオーバーレイ座標検出のための動作を、
ビデオウィンドウ内の描画の動作に変える。その様子を
図5に示す。
The host computer operates the EVEN 41
3 can be obtained via the status register on the pixel clock control circuit 408, so that after adjusting the pixel clock, the operation for video overlay coordinate detection is performed as follows.
Change to drawing behavior in the video window. This is shown in FIG.

【0037】ピクセル数801はビデオウィンドウの開
始位置からのピクセルクロック数を示すものである。ピ
クセルクロック802は、ピクセルクロック調整手段で
あるピクセルクロック制御回路408とピクセルクロッ
ク発生回路407によって調整されたピクセルクロック
である。Rコンパレート信号504、Gコンパレート信
号508、Bコンパレート信号512は、夫々比較回路
404によって2値化されたグラフィック信号である。
開始コード605は、ピクセルクロック802に同期し
てRコンパレート信号504とGコンパレート信号50
8をシリアル−パラレル変換し、特定のコードと一致し
たときアクティブになる信号である。
The number of pixels 801 indicates the number of pixel clocks from the start position of the video window. The pixel clock 802 is a pixel clock adjusted by the pixel clock control circuit 408 and the pixel clock generation circuit 407 as pixel clock adjustment means. The R compare signal 504, the G compare signal 508, and the B compare signal 512 are graphic signals binarized by the comparison circuit 404, respectively.
The start code 605 is synchronized with the pixel clock 802 by synchronizing the R compare signal 504 and the G compare signal 50.
8 is a signal that becomes active when a specific code is obtained by performing serial-parallel conversion on 8.

【0038】座標カウンタ406では、コード検出回路
405によりビデオウィンドウ上の開始コード及び終了
コードを検出し、HSYNCを基準としてピクセルクロ
ックをカウントすることにより、水平方向のビデオオー
バーレイ上の開始位置の座標及び終了位置の座標を求め
る。また座標カウンタ406は、垂直方向としてVSY
NCを基準に、開始コード又は終了コードを検出したラ
インのHSYNCをカウントすることにより、垂直方向
のビデオオーバーレイ上の開始位置の座標及び終了位置
の座標を求める。その様子を図6に示す。
In the coordinate counter 406, the code detection circuit 405 detects the start code and the end code on the video window, and counts the pixel clock with reference to HSYNC to obtain the coordinates of the start position on the video overlay in the horizontal direction. Find the coordinates of the end position. Also, the coordinate counter 406 determines that the vertical direction is VSY
By counting the HSYNC of the line where the start code or the end code is detected with reference to the NC, the coordinates of the start position and the end position on the video overlay in the vertical direction are obtained. FIG. 6 shows this state.

【0039】水平方向基準901はHS420の出力タ
イミングを示し、水平方向の座標カウンタのクリアに用
いられる。垂直方向基準902はVS421の出力タイ
ミングを示し、垂直方向の座標カウンタのクリアに用い
られる。水平方向基準901から最初の開始コード60
5までのカウント値から、8ピクセル分引いたカウント
値は、ビデオ表示エリア602の水平方向のレフト座標
906となる。また水平方向基準901から終了コード
606までのカウント値は、ビデオ表示エリアのライト
座標907になる。
The horizontal reference 901 indicates the output timing of the HS 420 and is used to clear the horizontal coordinate counter. The vertical reference 902 indicates the output timing of the VS421, and is used to clear the vertical coordinate counter. First start code 60 from horizontal reference 901
The count value obtained by subtracting 8 pixels from the count value up to 5 becomes the horizontal left coordinate 906 of the video display area 602. The count value from the horizontal reference 901 to the end code 606 is the light coordinates 907 of the video display area.

【0040】垂直方向の座標は、垂直方向基準902か
ら、最初の開始コード605又は終了コード606のい
ずれか一方を検出するまでHSYNCをカウントするこ
とによって得られる。従ってビデオ表示エリア602の
垂直方向のトップ座標908は、前記カウント値から1
ライン引いた値となる。また垂直方向のボトム座標90
9は、垂直方向基準902から最初の開始コード605
又は終了コード606のいずれか一方を検出した後、ど
ちらも検出できなくなるまでのHSYNCをカウントし
たカウント値から、1ラインを引いたカウント値とな
る。
The vertical coordinates are obtained by counting HSYNC from the vertical reference 902 until either the first start code 605 or the end code 606 is detected. Therefore, the vertical top coordinate 908 of the video display area 602 is 1
This is the value obtained by subtracting the line. Also, the bottom coordinate 90 in the vertical direction
9 is the first start code 605 from the vertical reference 902
Alternatively, after detecting either one of the end codes 606, the count value is obtained by subtracting one line from the count value obtained by counting HSYNC until neither of them can be detected.

【0041】しかし垂直方向の座標のカウントは、開始
コード605もしくは終了コード606のどちらか一方
の検出によって制御されている。これは前記したマウス
カーソルによって開始又は終了コードの破壊が起こる場
合の対策であるが、コードの誤検出による座標カウント
を誤る可能性を増加させる。したがって本実施の形態で
は、ビデオ表示エリア602の座標をカウントする手順
を、別の描画データによって再度行うことにより、座標
カウントの誤りを無くすようにする。もし1回目の各カ
ウント値と、2回目のカウント値が一致しなければ、ホ
ストコンピュータは再度、描画データを変更して座標検
出を行い、多数決によりビデオ表示エリアの座標を認識
する。
However, the counting of the coordinates in the vertical direction is controlled by detecting either the start code 605 or the end code 606. This is a countermeasure in the case where the start or end code is destroyed by the mouse cursor, but increases the possibility of erroneous coordinate counting due to erroneous code detection. Therefore, in the present embodiment, the procedure of counting the coordinates of the video display area 602 is performed again with another drawing data, so that the error of the coordinate count is eliminated. If the first count value and the second count value do not match, the host computer changes the drawing data again, performs coordinate detection, and recognizes the coordinates of the video display area by majority decision.

【0042】図7は座標カウンタ406の構成図であ
る。水平方向のカウントはx1カウンタ1007及びX
2カウンタ1008によって行われるが、まず波形整形
回路403を通って波形整形されたHSYNCであるH
S1002によりクリアされる。x1カウンタ1007
はビデオ表示エリアのレフト座標をカウントし、X2カ
ウンタ1008はビデオ表示エリアのライト座標をカウ
ントする。即ち、x1カウンタ1007は開始コード6
05がアクティブになるまでピクセルクロック1001
をカウントする。またx2カウンタ1008は終了コー
ド606が入力されるまでカウントする。x1レジスタ
1009はx1カウンタ1007のカウントデータを保
持する。x2レジスタ1010はx2カウンタ1008
のカウントデータを保持する。これらのカウントデータ
はホストコンピュータによって読み出される。xロード
1017は、X1レジスタ1009及びX2レジスタ1
010にデータをロードする信号であり、1ライン中に
開始コードと終了コードとを検出した後、HS1002
に同期して出力される。
FIG. 7 is a configuration diagram of the coordinate counter 406. The horizontal count is x1 counter 1007 and X
H counter H, which is an HSYNC whose waveform has been shaped through the waveform shaping circuit 403 first.
Cleared by S1002. x1 counter 1007
Counts the left coordinates of the video display area, and the X2 counter 1008 counts the right coordinates of the video display area. That is, the x1 counter 1007 has the start code 6
Pixel clock 1001 until 05 becomes active
Count. The x2 counter 1008 counts until the end code 606 is input. The x1 register 1009 holds the count data of the x1 counter 1007. The x2 register 1010 is an x2 counter 1008
Holds the count data. These count data are read by the host computer. The x load 1017 includes the X1 register 1009 and the X2 register 1
010 is a signal for loading data. After detecting a start code and an end code in one line, the HS1002
Is output in synchronization with.

【0043】垂直方向の座標カウントは、y1カウンタ
1013及びy2カウンタ1015によって行われる
が、先ずVSYNCであるVS1005によりクリアさ
れる。y1カウンタ1013はビデオ表示エリアの垂直
方向の上側の座標をカウントし、y2カウンタ1015
はビデオ表示エリアの垂直方向の下側の座標をカウント
する。y1カウンタ1013は、最初の開始コード又は
終了コードを検出するとアクティブになり、トップ検出
信号1011がアクティブになるまでHS1002をカ
ウントする。そして次のVS1005でクリアされる。
またy2カウンタ1015は、トップ検出信号1011
がアクティブになった後、開始コードと終了コードのど
ちらのコードも検出できなくなるとアクティブになり、
ボトム検出信号1012がアクティブになるまでカウン
トする。そして次のVS1005でクリアされる。
The vertical coordinate count is performed by the y1 counter 1013 and the y2 counter 1015, but is first cleared by the VS1005 which is VSYNC. The y1 counter 1013 counts the coordinates on the upper side in the vertical direction of the video display area, and the y2 counter 1015
Counts the lower coordinate in the vertical direction of the video display area. The y1 counter 1013 becomes active when detecting the first start code or end code, and counts the HS 1002 until the top detection signal 1011 becomes active. Then, it is cleared at the next VS1005.
The y2 counter 1015 outputs the top detection signal 1011
Becomes active when it can no longer detect either the start or end code,
It counts until the bottom detection signal 1012 becomes active. Then, it is cleared at the next VS1005.

【0044】y1カウンタ1013の値はy1レジスタ
1014に保持され、y2カウンタ1015の値はy2
レジスタ1016に保持される。y1レジスタ1014
及びy2レジスタ1016の内容はホストバス1006
経由でホストコンピュータにより読み出される。y1レ
ジスタ1014及びy2レジスタ1016のデータはy
ロード1018によりロードされるが、ボトム検出信号
1012がアクティブとなり、且つHS1002がアク
ティブのとき出力される。
The value of the y1 counter 1013 is held in the y1 register 1014, and the value of the y2 counter 1015 is
It is held in the register 1016. y1 register 1014
And the contents of the y2 register 1016 are stored in the host bus 1006.
Read by the host computer via The data in the y1 register 1014 and the y2 register 1016 is y
It is loaded by the load 1018, and is output when the bottom detection signal 1012 is active and the HS 1002 is active.

【0045】座標カウンタ406には前述したようにス
テータスレジスタ1019が設けられている。ステータ
スレジスタ1019は、トップ検出信号1011、ボト
ム検出信号1012、開始コード605、終了コード6
06をHS1002のタイミングで保持し、ホストバス
経由でホストコンピュータよって自由に読み出される。
従ってホストコンピュータは描画データをビデオ表示エ
リアに描画した後、ステータスレジスタ1019の状態
をモニタしながら、前記したビデオ表示エリア座標検出
手順を複数回実行し、検出した各カウンタの値からコン
ピュータがビデオオーバーレイ座標を決定する。
The coordinate counter 406 is provided with the status register 1019 as described above. The status register 1019 includes a top detection signal 1011, a bottom detection signal 1012, a start code 605, and an end code 6
06 is held at the timing of the HS 1002, and is freely read by the host computer via the host bus.
Therefore, after drawing the drawing data in the video display area, the host computer executes the above-described video display area coordinate detection procedure a plurality of times while monitoring the status of the status register 1019. Determine the coordinates.

【0046】以上のようにビデオオーバーレイ座標が決
定されると、従来例と同様の動作が行われる。即ち、図
2においてカラーキー検出回路410が比較回路404
の出力する比較結果から、特定のR信号、G信号、B信
号の組み合わせであるカラーキーを検出すると、RGB
切換信号422を発生する。RGB信号切換回路411
はこのRGB切換信号422が与えられると、コンピュ
ータの出力信号401をビデオ出力414に切り換え
る。このようにしてモニタに与えられる出力信号402
は、外部から入力されたビデオ信号がグラフィック画面
の所定の位置にオーバーレイされたものになる。
When the video overlay coordinates are determined as described above, the same operation as in the conventional example is performed. That is, in FIG.
When a color key which is a combination of a specific R signal, G signal, and B signal is detected from the comparison result output by
A switching signal 422 is generated. RGB signal switching circuit 411
When the RGB switching signal 422 is provided, the computer switches the computer output signal 401 to the video output 414. The output signal 402 thus provided to the monitor
Is a signal in which a video signal input from the outside is overlaid on a predetermined position on a graphic screen.

【0047】以後ユーザによってビデオウィンドウの位
置が変更されたり、サイズが変更されたとき、ビデオオ
ーバーレイ座標検出手段で求めた座標を基準にして、オ
ーバーレイ制御回路409に設定する座標、およびピク
セルクロック発生回路407に設定する周波数データを
決定すれば、適切なピクセルクロック周波数と、ビデオ
ウィンドウに適応したビデオ表示が実現できる。
Thereafter, when the position or size of the video window is changed by the user, the coordinates to be set in the overlay control circuit 409 and the pixel clock generation circuit based on the coordinates obtained by the video overlay coordinate detection means. If the frequency data to be set to 407 is determined, an appropriate pixel clock frequency and video display adapted to the video window can be realized.

【0048】[0048]

【発明の効果】以上のように本発明によれば、外部から
与えられた画像信号を、コンピュータのグラフィック画
面上にビデオオーバーレイ表示するにあたり、ソウトウ
ェアにより指定されたウィンドウ上に位置ずれを起こす
ことなく外部画像を表示することができる。また従来ユ
ーザが手作業で行っていたピクセルクロックの周波数調
整やビデオ表示画面座標の検出を自動的に行うことがで
きる。このため、常に最適なビデオオーバーレイ表示環
境を実現できる。
As described above, according to the present invention, when an externally applied image signal is displayed as a video overlay on a graphic screen of a computer, the image signal is not displaced on a window specified by software. External images can be displayed. Further, the frequency adjustment of the pixel clock and the detection of the coordinates of the video display screen, which have conventionally been performed manually by the user, can be automatically performed. Therefore, an optimal video overlay display environment can always be realized.

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

【図1】本実施の形態におけるグラフィック画面とグラ
フィック信号との関係を示す説明図である。
FIG. 1 is an explanatory diagram showing a relationship between a graphic screen and a graphic signal in the present embodiment.

【図2】本発明の実施の形態におけるビデオオーバーレ
イ装置の構成図である。
FIG. 2 is a configuration diagram of a video overlay device according to the embodiment of the present invention.

【図3】本実施の形態のビデオオーバーレイ装置に用い
られる比較回路の構成図である。
FIG. 3 is a configuration diagram of a comparison circuit used in the video overlay device of the present embodiment.

【図4】適正な周波数のピクセルクロックが設定されて
ない状態で、描画コードを検出するタイムチャートであ
る。
FIG. 4 is a time chart for detecting a drawing code when a pixel clock having an appropriate frequency is not set.

【図5】本実施の形態において、適正なピクセルクロッ
ク周波数が設定された後の描画コードを検出するタイム
チャートである。
FIG. 5 is a time chart for detecting a drawing code after an appropriate pixel clock frequency is set in the present embodiment.

【図6】ビデオオーバーレイ座標における座標カウンタ
の動作説明図である。
FIG. 6 is an explanatory diagram of an operation of a coordinate counter in video overlay coordinates.

【図7】本実施の形態のビデオオーバーレイ装置に用い
られる座標カウンタの構成図である。
FIG. 7 is a configuration diagram of a coordinate counter used in the video overlay device of the present embodiment.

【図8】ビデオオーバーレイ機能を持つホストコンピュ
ータの構成図である。
FIG. 8 is a configuration diagram of a host computer having a video overlay function.

【図9】グラフィック座標の説明図である。FIG. 9 is an explanatory diagram of graphic coordinates.

【図10】ビデオ座標の説明図である。FIG. 10 is an explanatory diagram of video coordinates.

【図11】グラフィック座標とビデオ座標のずれを示す
説明図である。
FIG. 11 is an explanatory diagram showing a deviation between graphic coordinates and video coordinates.

【図12】従来のビデオオーバーレイ装置の構成例を示
すブロック図である。
FIG. 12 is a block diagram illustrating a configuration example of a conventional video overlay device.

【図13】グラフィック画面上のビデオウィンドウとグ
ラフィック座標の関係を示す説明図である。
FIG. 13 is an explanatory diagram showing a relationship between a video window on a graphic screen and graphic coordinates.

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

200 ホストコンピュータ 201 ビデオオーバーレイブロック 202 グラフィックブロック 203 モニタ 204 グラフィック信号 205 ビデオオーバーレイ出力信号 400 ビデオオーバーレイブロック 403 波形整形回路 404 比較回路 405 コード検出回路 406 座標カウンタ 407 ピクセルクロック発生回路 408 ピクセルクロック制御回路 409 オーバーレイ制御回路 410 カラーキー検出回路 411 RGB信号切換回路 503,507,511 電圧比較器 1007 x1カウンタ 1008 x2カウンタ 1009 x1レジスタ 1010 x2レジスタ 1013 y1カウンタ 1015 y2カウンタ 1014 y1レジスタ 1016 y2レジスタ 1019 ステータスレジスタ 200 host computer 201 video overlay block 202 graphic block 203 monitor 204 graphic signal 205 video overlay output signal 400 video overlay block 403 waveform shaping circuit 404 comparison circuit 405 code detection circuit 406 coordinate counter 407 pixel clock generation circuit 408 pixel clock control circuit 409 overlay Control circuit 410 Color key detection circuit 411 RGB signal switching circuit 503, 507, 511 Voltage comparator 1007 x1 counter 1008 x2 counter 1009 x1 register 1010 x2 register 1013 y1 counter 1015 y2 counter 1014 y1 register 1016 y2 register 1019 status register

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータから出力された信号を表示
するグラフィック画面において、前記グラフィック画面
の特定のウィンドウに外部から入力された画像をオーバ
ーレイ画像として表示するビデオオーバーレイ装置であ
って、 外部から画像信号を入力し、前記グラフィック画面に表
示できるような走査方式の画像信号に変換すると共に、
コンピュータのソフトウェアによって設定された縮小拡
大率により前記画像信号を縮小拡大するビデオオーバー
レイ制御手段と、 前記ソフトウェアによって前記グラフィック画面上のウ
ィンドウの位置が設定されたとき、前記ウィンドウの座
標を決定するための開始コードと終了コードを生成する
コード発生手段と、 前記ソフトウェアによって設定された前記ウィンドウに
前記画像信号をオーバーレイするとき、前記コード発生
手段の開始コードと終了コードに基づいて前記グラフィ
ック画面上におけるオーバーレイ座標を検出するビデオ
オーバーレイ座標検出手段と、 水平同期信号を基準クロックとして任意の周波数を有す
るピクセルクロックを発生すると共に、前記ビデオオー
バーレイ座標検出手段が検出したオーバーレイ座標とグ
ラフィック画面の解像度とに基づいて、前記オーバーレ
イ画像のサイズと前記ウィンドウのサイズとが一致する
よう前記ピクセルクロックを調整するピクセルクロック
調整手段と、 前記ウィンドウの表示領域を示す切換信号を検出して、
グラフィック信号から前記画像信号に切り替え、前記ピ
クセルクロック調整手段によって制御されたピクセルク
ロックに応じて画像信号を出力する画像切換手段と、を
具備することを特徴とするビデオオーバーレイ装置。
1. A video overlay device for displaying an image input from the outside in a specific window of the graphic screen as an overlay image on a graphic screen for displaying a signal output from a computer, comprising: Input and convert to a scanning type image signal that can be displayed on the graphic screen,
Video overlay control means for reducing or enlarging the image signal according to a reduction / enlargement ratio set by software of a computer, and for determining the coordinates of the window when the position of the window on the graphic screen is set by the software. Code generating means for generating a start code and an end code; and when overlaying the image signal on the window set by the software, overlay coordinates on the graphic screen based on the start code and the end code of the code generating means. And a pixel clock having an arbitrary frequency using the horizontal synchronization signal as a reference clock, and the overlay coordinates and the graph detected by the video overlay coordinates detecting means. Based on the resolution of Ikku screen, a pixel clock adjustment means for adjusting the pixel clock so that the size of the overlay image and the size of the window coincides detects a switch signal indicating the display area of the window,
An image switching unit for switching from a graphic signal to the image signal and outputting an image signal according to a pixel clock controlled by the pixel clock adjusting unit.
【請求項2】 前記コード発生手段は、 R,G,B信号のうち、特定の色信号の組み合わせを用
いて第1及び第2のストライプパターンを生成し、前記
第1及び第2のストライプパターンをビデオオーバーレ
イの開始コード及び終了コードとするものであることを
特徴とする請求項1記載のビデオオーバーレイ装置。
2. The code generating means generates first and second stripe patterns by using a combination of specific color signals among R, G, and B signals, and generates the first and second stripe patterns. 2. The video overlay apparatus according to claim 1, wherein? Is a start code and an end code of the video overlay.
【請求項3】 前記ビデオオーバーレイ座標検出手段
は、 前記コード発生手段が生成した前記開始コード及び終了
コードを検出するコード検出回路と、 前記コード検出回路によって前記開始コード及び終了コ
ードが検出される間に、前記ピクセルクロック調整手段
から出力されたピクセルクロックを計数し、前記ウィン
ドウのx座標を生成するxカウンタと、 前記コード検出回路によって前記開始コード及び終了コ
ードが検出される間に前記グラフィック画面の水平同期
信号の数を計数し、前記ウィンドウのy座標を生成する
yカウンタと、を有し、 前記xカウンタとyカウンタの計数結果から前記ビデオ
オーバーレイ座標を生成することを特徴とする請求項1
記載のビデオオーバーレイ装置。
3. The video overlay coordinate detecting means includes: a code detecting circuit for detecting the start code and the end code generated by the code generating means; and while the code detecting circuit detects the start code and the end code. An x counter that counts a pixel clock output from the pixel clock adjusting means and generates an x coordinate of the window; and a display of the graphic screen while the start code and the end code are detected by the code detection circuit. 2. A y-counter that counts the number of horizontal synchronization signals and generates a y-coordinate of the window, wherein the video overlay coordinate is generated from a count result of the x-counter and the y-counter.
A video overlay device as described.
【請求項4】 前記ピクセルクロック調整手段は、 水平同期信号を基準クロックとして、周波数制御信号に
基づいて任意の周波数のピクセルクロックを生成して前
記ビデオオーバーレイ制御手段に与えるピクセルクロッ
ク発生回路と、 前記ビデオオーバーレイ座標検出手段が生成したオーバ
ーレイ座標とグラフィック画面の解像度とに基づいて、
前記オーバーレイ画像のサイズと前記ウィンドウとが一
致するよう前記周波数制御信号を前記ピクセルクロック
発生回路に与えるピクセルクロック制御回路と、を有す
ることを特徴とする請求項1記載のビデオオーバーレイ
装置。
4. A pixel clock generation circuit, comprising: a pixel clock generation circuit that generates a pixel clock having an arbitrary frequency based on a frequency control signal using a horizontal synchronization signal as a reference clock and provides the pixel clock to the video overlay control unit; Based on the overlay coordinates generated by the video overlay coordinate detection means and the resolution of the graphic screen,
2. The video overlay device according to claim 1, further comprising: a pixel clock control circuit that supplies the frequency control signal to the pixel clock generation circuit so that the size of the overlay image matches the window.
JP23702297A 1997-09-02 1997-09-02 Video overlay equipment Expired - Fee Related JP3283448B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23702297A JP3283448B2 (en) 1997-09-02 1997-09-02 Video overlay equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23702297A JP3283448B2 (en) 1997-09-02 1997-09-02 Video overlay equipment

Publications (2)

Publication Number Publication Date
JPH1185118A true JPH1185118A (en) 1999-03-30
JP3283448B2 JP3283448B2 (en) 2002-05-20

Family

ID=17009239

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23702297A Expired - Fee Related JP3283448B2 (en) 1997-09-02 1997-09-02 Video overlay equipment

Country Status (1)

Country Link
JP (1) JP3283448B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006330754A (en) * 2001-12-27 2006-12-07 Renesas Technology Corp Display system and mobile phone unit using same
JP2007139866A (en) * 2005-11-15 2007-06-07 Micomsoft Co Ltd Video signal processing system
CN100403780C (en) * 2001-06-13 2008-07-16 英特尔公司 Adjusting pixel clock

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100403780C (en) * 2001-06-13 2008-07-16 英特尔公司 Adjusting pixel clock
JP2006330754A (en) * 2001-12-27 2006-12-07 Renesas Technology Corp Display system and mobile phone unit using same
JP2007139866A (en) * 2005-11-15 2007-06-07 Micomsoft Co Ltd Video signal processing system

Also Published As

Publication number Publication date
JP3283448B2 (en) 2002-05-20

Similar Documents

Publication Publication Date Title
EP0805430B1 (en) Video adapter and digital image display apparatus
US5579029A (en) Display apparatus having automatic adjusting apparatus
JP3867296B2 (en) Image reproduction apparatus, projector, image reproduction system, and information storage medium
KR0162529B1 (en) Device and method for controlling display of multi-sync.correspondence crystal display device
US6559837B1 (en) Image luminance detection and correction employing histograms
US6008791A (en) Automatic adjusting apparatus of multiscan display
JP2002351442A (en) Persistence preventing device for image display device
JP3214820B2 (en) Digital image display
JP3283448B2 (en) Video overlay equipment
JP4017335B2 (en) Video signal valid period detection circuit
JP3721738B2 (en) Image display device
JP2910883B2 (en) Video signal processing device
JPS61172484A (en) Video field decoder
JP3141223B2 (en) Video signal system discriminating method and video signal processing apparatus using this method
JPH07219486A (en) Liquid crystal display device
JPH11219158A (en) Video overlay device
JP3619642B2 (en) Image composition processing circuit
JPH0887244A (en) Display device
JP3578747B2 (en) Image output device
JP3491959B2 (en) Television receiver
JP3896368B2 (en) Image display device
JP3023116B2 (en) Video signal processing device
KR100314071B1 (en) Method for automatically adjusting picture size
JPH1011023A (en) Display device
JPH1091132A (en) Picture display device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees