JPH0670739B2 - Line pixel number search method - Google Patents

Line pixel number search method

Info

Publication number
JPH0670739B2
JPH0670739B2 JP63284377A JP28437788A JPH0670739B2 JP H0670739 B2 JPH0670739 B2 JP H0670739B2 JP 63284377 A JP63284377 A JP 63284377A JP 28437788 A JP28437788 A JP 28437788A JP H0670739 B2 JPH0670739 B2 JP H0670739B2
Authority
JP
Japan
Prior art keywords
state
value
delay time
clock signal
signal
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.)
Expired - Lifetime
Application number
JP63284377A
Other languages
Japanese (ja)
Other versions
JPH02130593A (en
Inventor
和宣 吉田
幸孝 飯田
吉昭 慶山
Original Assignee
ソニー・テクトロニクス株式会社
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 ソニー・テクトロニクス株式会社 filed Critical ソニー・テクトロニクス株式会社
Priority to JP63284377A priority Critical patent/JPH0670739B2/en
Publication of JPH02130593A publication Critical patent/JPH02130593A/en
Publication of JPH0670739B2 publication Critical patent/JPH0670739B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、デジタル映像信号の1水平走査期間中の総画
素数を探索する方法に関する。
The present invention relates to a method for searching the total number of pixels in one horizontal scanning period of a digital video signal.

[従来技術及び発明が解決しようとする課題] コンピュータ・グラフィックスなどで用いられる表示装
置にプリンタ等を接続して、表示画像のハード・コピー
を作成する際に、各表示装置に対応してプリンタの各設
定値を調整しなければならない。この時、表示装置の1
水平走査期間中の総画素数(以下、ライン画素数とい
う)の値も入力しなければならないが、この値が未知の
場合もある。ここで、ライン画総数とは、1水平走査期
間(1ライン期間)を1画素(ピクセル)期間で除算し
た数であり、帰線期間中にも画素が存在すると仮定した
場合の1ライン期間中の総画総数である。表示装置のス
クリーンの1走査線上に表示可能な有効画素数が同じで
も、水平走査周波数や有効走査期間と帰線期間との割合
などが表示装置によって異なる場合があり、ライン画素
数(総画素数/ライン)は同じとは限らない。
[Prior Art and Problems to be Solved by the Invention] When a printer or the like is connected to a display device used in computer graphics or the like to make a hard copy of a display image, the printer is compatible with each display device. You must adjust each setting value of. At this time, the display device 1
The value of the total number of pixels (hereinafter referred to as the number of line pixels) during the horizontal scanning period must be input, but this value may be unknown. Here, the total number of line images is a number obtained by dividing one horizontal scanning period (one line period) by one pixel (pixel) period, and during one line period when it is assumed that pixels also exist during the blanking period. Is the total number of strokes. Even if the number of effective pixels that can be displayed on one scanning line of the screen of the display device is the same, the horizontal scanning frequency or the ratio of the effective scanning period to the blanking period may differ depending on the display device. / Line) is not always the same.

このライン画素数が未知の場合には、その値を測定しな
ければならない。例えば、1水平走査周期とデジタル映
像信号の1画素分の周期をオシロスコープ等で測定して
算出する方法や、隣接する画素の論理状態が総て異なる
デジタル映像信号を作成し、この信号をカウンタで計数
するなどの方法が考えられるが、極めて煩雑で実用的と
は言えない。
If the line pixel count is unknown, its value must be measured. For example, a method of measuring and calculating one horizontal scanning cycle and the cycle of one pixel of a digital video signal with an oscilloscope, or creating a digital video signal in which the logical states of adjacent pixels are all different and using this signal with a counter A method such as counting is conceivable, but it is extremely complicated and not practical.

従って、本発明の目的は、デジタル映像信号のライン画
素数が未知の場合、その値を自動的に求めるライン画素
数探索方法を提供することである。
Therefore, it is an object of the present invention to provide a line pixel number search method for automatically obtaining the value when the line pixel number of a digital video signal is unknown.

[課題を解決する為の手段] 本発明のライン画素数探索方法によれば、先ず、ライン
画素数が未知のデジタル映像信号の1水平走査期間(1
ライン期間)を探索変数で等分割した周期のクロック信
号を発生する。即ち、このクロック信号の1ライン期間
内の総数が探索変数と等しいので、この探索変数の値を
未知のライン画素数に等しくなるように調整すれば良
い。次に、デジタル映像信号の遷移に応じて上記クロッ
ク信号をサンプリングして第1又は第2状態の何れかを
検出する。ここで、表示装置には、英数字又は図形等が
表示されており、1画面内に充分に多くの映像信号の遷
移が略ランダムに存在するものと仮定する。また、サン
プリング結果の第1状態とは、クロック信号の高レベル
状態及び低レベル状態の一方を1画面期間中のどこかの
画像信号の遷移で少なくとも1回サンプリングしたこと
を意味し、第2状態とは、表示装置の1画面分全体の画
像信号に総ての遷移で1回もクロック信号の上記高レベ
ル状態及び低レベル状態の一方をサンプリング出来なか
った、即ち、1画面分全体の全サンプリング値が上記高
レベル状態及び低レベル状態の他方であったことを意味
する。ライン画素数と1ライン内のクロック信号の総数
とが一致していない場合には、1画面内に多くの映像信
号の遷移が略ランダムに存在すると仮定しているので、
サンプリング結果は必ず第1状態になると考えられる。
これが本発明の基本思想である。次に、クロック信号及
びデジタル映像信号の相対遅延時間を1単位ずつ遅延す
る毎に、上記サンプリング動作を実行する。相対遅延時
間が所定時間を超えた時に、探索変数を増加する。上記
第2状態を検出するまで上記相対遅延時間及び探索変数
を変化させ、上記第2状態を検出した時の探索変数がラ
イン画素数に等しいことになる。
[Means for Solving the Problems] According to the line pixel number searching method of the present invention, first, one horizontal scanning period (1
A clock signal having a period obtained by equally dividing the line period) by the search variable is generated. That is, since the total number of the clock signals in one line period is equal to the search variable, the value of the search variable may be adjusted to be equal to the number of unknown line pixels. Next, the clock signal is sampled according to the transition of the digital video signal to detect either the first state or the second state. Here, it is assumed that alphanumeric characters or figures are displayed on the display device, and that a sufficiently large number of video signal transitions are present substantially randomly within one screen. The first state of the sampling result means that one of the high-level state and the low-level state of the clock signal is sampled at least once by the transition of the image signal somewhere during one screen period, and the second state. Means that one of the high level state and the low level state of the clock signal could not be sampled even once in all transitions to the image signal of the entire screen of the display device, that is, the entire sampling of the entire screen. It means that the value was the other of the high level state and the low level state. When the number of line pixels and the total number of clock signals in one line do not match, it is assumed that many video signal transitions exist in one screen substantially randomly.
It is considered that the sampling result is always in the first state.
This is the basic idea of the present invention. Next, the sampling operation is performed each time the relative delay time of the clock signal and the digital video signal is delayed by one unit. When the relative delay time exceeds a predetermined time, the search variable is increased. The relative delay time and the search variable are changed until the second state is detected, and the search variable when the second state is detected is equal to the number of line pixels.

また、本発明によれば、上述の方法と同様に、探索変数
に基づいてクロック信号を発生し、クロック信号及びデ
ジタル映像信号の相対遅延時間を1単位ずつ遅延する毎
に、デジタル映像信号の遷移に応じてクロック信号をサ
ンプリングし、上記第1状態又は第2状態の何れかを検
出する。そして、このサンプリング結果が第1状態から
第2状態に変化した時の相対遅延時間を第1遅延時間と
する。その後、相対遅延時間を更に1単位ずつ遅延する
毎にデジタル映像信号の遷移に応じてクロック信号をサ
ンプリングし、上記第1状態又は第2状態の何れかを検
出する。そして、このサンプリング結果が第2状態から
第1状態に変化した時の相対遅延時間を第2遅延時間と
する。これら第1及び第2遅延時間を求める処理の途中
で、相対遅延時間が所定遅延時間の範囲を超えた場合に
は、探索変数の値が未知のライン画素数と一致していな
いことになるので、探索変数の値を1増加する。以上の
手順を繰返し、上記第1及び第2遅延時間が共に上記所
定時間内で求められた時の探索変数の値を求めるライン
画素数とする。
Further, according to the present invention, similarly to the above-described method, the clock signal is generated based on the search variable, and the transition of the digital video signal is performed every time the relative delay time of the clock signal and the digital video signal is delayed by one unit. According to the above, the clock signal is sampled to detect either the first state or the second state. The relative delay time when the sampling result changes from the first state to the second state is the first delay time. After that, each time the relative delay time is further delayed by one unit, the clock signal is sampled according to the transition of the digital video signal to detect either the first state or the second state. The relative delay time when the sampling result changes from the second state to the first state is defined as the second delay time. If the relative delay time exceeds the range of the predetermined delay time during the process of obtaining the first and second delay times, the value of the search variable does not match the unknown line pixel number. , Increment the value of the search variable by 1. The above procedure is repeated, and the value of the search variable when both the first and second delay times are obtained within the predetermined time is taken as the number of line pixels to be obtained.

更に、本発明によれば、上記第1遅延時間及び第2遅延
時間の差に応じて決まる基準値とその時の探索変数との
値を比較し、探索変数が上記基準値より小さい場合には
探索変数を更に増加して探索処理を続行する。基準値よ
り大きい探索変数が求めるライン画素数となる。この基
準値はライン画素数の1/2より大きい値に設定されてい
る。
Further, according to the present invention, the reference value determined according to the difference between the first delay time and the second delay time is compared with the value of the search variable at that time, and if the search variable is smaller than the reference value, the search is performed. The variable is further increased and the search process is continued. A search variable larger than the reference value is the number of line pixels to be obtained. This reference value is set to a value larger than half the number of line pixels.

[作用] 本発明のライン画素数探索方法によれば、1画面内に略
ランダムに多数存在するデジタル画素信号の遷移を応じ
て、探索変数に基づくクロック信号をサンプリングして
第1又は第2状態を検出し、画素信号のパルスとクロッ
ク信号のパルスの位相関係が適正でない場合又はライン
画素数と1ライン内の総クロック数が一致していない場
合には、第1状態が検出されるという事実を利用してい
る。よって、第2状態の検出により容易にライン画素数
を求めることが出来る。
[Operation] According to the line pixel number search method of the present invention, the clock signal based on the search variable is sampled to sample the clock signal based on the search variable in response to the transitions of a large number of digital pixel signals that are present substantially randomly within one screen. The fact that the first state is detected when the phase relationship between the pulse of the pixel signal and the pulse of the clock signal is not proper or when the number of line pixels and the total number of clocks in one line do not match Are using. Therefore, the number of line pixels can be easily obtained by detecting the second state.

サンプリング結果が第1状態から第2状態に変化した時
の第1遅延時間と第2状態から第1状態へ変化した時の
第2遅延時間を求め、これら第1及び第2遅延時間が求
められた時の探索変数をライン画素数とする。これによ
り、更に測定精度を向上することが出来る。
A first delay time when the sampling result changes from the first state to the second state and a second delay time when the sampling state changes from the second state to the first state are obtained, and these first and second delay times are obtained. The search variable is set to the number of line pixels. Thereby, the measurement accuracy can be further improved.

第1及び第2遅延時間の差は、1画素期間に対し略一定
の割合となり、且つライン画素数と略一定の相関関係が
あるので、この値によって決まる基準値と探索変数の値
を比較することにより、確実にライン画素数を求めるこ
とが出来る。
The difference between the first and second delay times has a substantially constant ratio with respect to one pixel period and has a substantially constant correlation with the number of line pixels. Therefore, the reference value determined by this value is compared with the value of the search variable. As a result, the number of line pixels can be reliably obtained.

[実施例] 以下、添付図を参照して本発明の好適な実施例を説明す
る。
[Embodiment] A preferred embodiment of the present invention will be described below with reference to the accompanying drawings.

第3図は、本発明のライン画素数探索方法を利用するの
に好適な装置の一実施例のブロック図である。この実施
例は、2値化デジタル映像信号(黒及び白のみで表現さ
れる映像信号)のコピー装置に適用されている。
FIG. 3 is a block diagram of an embodiment of an apparatus suitable for utilizing the line pixel number searching method of the present invention. This embodiment is applied to a copying apparatus for binarized digital video signals (video signals represented by black and white only).

入力端子10には、コンピュータ・グラフィック・ターミ
ナル等の任意の映像信号源からデジタル映像信号が供給
される。この映像信号は、「高」(論理「1」)又は
「低」(論理「0」)のモノクロ2値信号である。しか
し、異なる複数の不連続なレベルから成るカラー信号で
も良いが、その場合、複数のレベルは「1」又は「0」
の何れかに強制的に分けられる。なお、映像信号の1ピ
クセル(画素)の期間は、接続される表示装置によって
例えば約8〜30ナノ秒程度まで変化する。この映像信号
は、増幅器12及び比較器14を介して可変遅延回路16に供
給される。この可変遅延回路16は、複数の遅延素子を直
列接続し、各遅延素子の出力端子を遅延設定信号Dに応
じて選択する回路である。なお、可変遅延回路16は、映
像信号と後述のサンプリング・クロック信号との相対位
相を調整する位相調整手段である。
A digital video signal is supplied to the input terminal 10 from an arbitrary video signal source such as a computer graphic terminal. This video signal is a “high” (logic “1”) or “low” (logic “0”) monochrome binary signal. However, a color signal composed of a plurality of different discontinuous levels may be used, in which case the plurality of levels are "1" or "0".
It is forcibly divided into either. The period of one pixel (pixel) of the video signal changes up to about 8 to 30 nanoseconds depending on the connected display device. This video signal is supplied to the variable delay circuit 16 via the amplifier 12 and the comparator 14. The variable delay circuit 16 is a circuit in which a plurality of delay elements are connected in series and an output terminal of each delay element is selected according to the delay setting signal D. The variable delay circuit 16 is a phase adjusting unit that adjusts the relative phase between the video signal and a sampling clock signal described later.

入力端子10の映像信号は、同期分離回路18にも供給され
て、垂直同期信号及び水平同期信号が分離される。水平
パルス発生回路20は、同期分離回路18からの水平及び垂
直同期信号、又は外部同期端子22及び24からの外部水平
同期信号及び垂直同期信号に応じて、水平同期信号と同
相の水平パルスを発生する。なお、増幅器12に直流再生
機能を付加して、同期分離回路18で分離した水平同期信
号を増幅器12に供給してもよい。
The video signal from the input terminal 10 is also supplied to the sync separation circuit 18 to separate the vertical sync signal and the horizontal sync signal. The horizontal pulse generation circuit 20 generates horizontal pulses in phase with the horizontal sync signal in response to the horizontal and vertical sync signals from the sync separation circuit 18 or the external horizontal sync signal and the vertical sync signal from the external sync terminals 22 and 24. To do. Note that the amplifier 12 may be provided with a direct current reproducing function, and the horizontal sync signal separated by the sync separation circuit 18 may be supplied to the amplifier 12.

水平パルス発生器20からの水平パルスを位相拘束ループ
(PLL)回路26に供給して、この水平パルスに同期した
サンプリング・クロック信号SCを発生させる。PLL回路2
6は、出力側に積分器を含んだ位相比較器28、電圧制御
発振器(VCO)30及び分周器32から構成された従来形式
の回路であり、クロック信号発生手段として働く。この
サンプリング・クロック信号SCの周波数は、ラッチ40か
ら分周器32に入力される探索変数(分周比データの値)
によって決まる。即ち、探索変数の値で水平同期信号の
周期を等分割した周期のサンプリング・クロック信号を
発生させる。このクロック信号が適正に調整された時、
即ち、探索変数がライン画素数に等しくなった時、1ク
ロック周期は映像信号の1ピクセル期間に対応する。
The horizontal pulse from the horizontal pulse generator 20 is supplied to a phase locked loop (PLL) circuit 26 to generate a sampling clock signal SC synchronized with this horizontal pulse. PLL circuit 2
Reference numeral 6 is a circuit of a conventional type composed of a phase comparator 28 including an integrator on the output side, a voltage controlled oscillator (VCO) 30 and a frequency divider 32, and serves as a clock signal generating means. The frequency of this sampling clock signal SC is the search variable (value of the division ratio data) input from the latch 40 to the divider 32.
Depends on That is, the sampling clock signal having a period obtained by equally dividing the period of the horizontal synchronizing signal by the value of the search variable is generated. When this clock signal is adjusted properly,
That is, when the search variable becomes equal to the number of line pixels, one clock period corresponds to one pixel period of the video signal.

制御手段である主制御器34は、マイクロプロセッサ、RO
M、RAM等で構成され、第3図の装置全体を制御する。ま
た、ROMには第1図及び第2図の流れ図に対応するプロ
グラムが記憶されており、マイクロプロセッサがこれら
のプログラムを実行する。この主制御器34からの各デー
タが、ラッチ回路36、38及び40にラッチされる。ラッチ
回路36は、ラッチしたデータをデジタル・アナログ変換
器(DAC)42に供給して、比較器14に閾値電圧を供給す
る。ラッチ回路38は、遅延時間設定データDをラッチし
て可変遅延回路16の遅延時間を制御すると共に、後述の
信号もラッチする。この実施例では、遅延時間設定デー
タDの値が0〜63の整数値の範囲で変化した時、可変遅
延回路16の遅延時間は0〜63ナノ秒の範囲を1ナノ秒単
位で可変される。即ち、1ナノ秒が遅延時間の1単位と
なる。ラッチ回路40は、分周器32用の探索変数(分周比
データ)をラッチして、分周器32の動作を制御する。こ
の探索変数を変更することにより、サンプリング・クロ
ック信号の周波数を可変することが出来、後述する本発
明のライン画素数探索方法に利用する。
The main controller 34 as a control means is a microprocessor, RO
It is composed of M, RAM, etc. and controls the entire apparatus of FIG. Further, the ROM stores programs corresponding to the flowcharts of FIGS. 1 and 2, and the microprocessor executes these programs. Each data from the main controller 34 is latched in the latch circuits 36, 38 and 40. The latch circuit 36 supplies the latched data to the digital-analog converter (DAC) 42 and supplies the threshold voltage to the comparator 14. The latch circuit 38 latches the delay time setting data D to control the delay time of the variable delay circuit 16 and also latches a signal described later. In this embodiment, when the value of the delay time setting data D changes in the range of integer values of 0 to 63, the delay time of the variable delay circuit 16 is changed in the range of 0 to 63 nanoseconds in units of 1 nanosecond. . That is, one nanosecond is one unit of delay time. The latch circuit 40 latches the search variable (frequency division ratio data) for the frequency divider 32 and controls the operation of the frequency divider 32. By changing this search variable, the frequency of the sampling clock signal can be changed, which is used in the line pixel number searching method of the present invention described later.

第1サンプリング手段であるラッチ回路(D型フリップ
・フロップ)44は、そのデータ端子Dに、オア・ゲート
46を介して、可変遅延回路16の出力信号を受け、また、
そのクロック端子に、オア・ゲート48を介して、PLL回
路26からのサンプリング・クロック信号SCを受ける。な
お、オア・ゲート48は、ラッチ回路38からの制御信号C
も受ける。
The latch circuit (D-type flip-flop) 44 which is the first sampling means has an OR gate at its data terminal D.
The output signal of the variable delay circuit 16 is received via 46,
The clock terminal receives the sampling clock signal SC from the PLL circuit 26 via the OR gate 48. The OR gate 48 controls the control signal C from the latch circuit 38.
Also receive.

第2サンプリング手段であるラッチ回路(D型フリップ
・フロップ)50は、そのデータ端子Dにオア・ゲート48
の出力を受け、そのリセット端子Rにラッチ回路38から
のラッチ信号を受ける。また、ノア・ゲート52は、オア
・ゲート46の出力信号及びラッチ回路50のQ出力信号の
論理和の反転を、インバータ54を介して、ラッチ回路50
クロック端子に供給する。なお、ラッチ回路44及び50
は、クロック端子に立ち上がり遷移が生じたときに、D
端子のレベルをラッチ(サンプリング)する。また、こ
れらラッチ回路44及び50は、同一の集積回路内の同一特
性(特に、同一伝播遅延時間)のものが好ましい。
The latch circuit (D-type flip-flop) 50 which is the second sampling means has an OR gate 48 at its data terminal D.
Output, and the reset terminal R receives the latch signal from the latch circuit 38. Further, the NOR gate 52 inverts the logical sum of the output signal of the OR gate 46 and the Q output signal of the latch circuit 50 via the inverter 54, and the latch circuit 50.
Supply to the clock terminal. The latch circuits 44 and 50
Is D when a rising transition occurs on the clock terminal.
Latch (sampling) the pin level. It is preferable that the latch circuits 44 and 50 have the same characteristics (especially, the same propagation delay time) in the same integrated circuit.

インバータ56は、主制御器34の出力信号に応じて付勢さ
れ、ラッチ回路50の/Q出力信号を反転して(即ちQ出力
信号を)主制御器34に供給する。
The inverter 56 is energized according to the output signal of the main controller 34, inverts the / Q output signal of the latch circuit 50 (that is, supplies the Q output signal) to the main controller 34.

副制御器58は、主制御器34の命令に応じて、第1サンプ
リング手段の出力信号を処理する回路を制御する。これ
ら回路には、シフト・レジスタ60、メモリ62、インタフ
ェース64等がある。シフト・レジスタ60は、オア・ゲー
ト48及び70を介してのサンプリング・クロック信号に応
じて、オア・ゲート68を介してのラッチ回路44の/Q出力
信号を直列データとして取り込み、並列データとして出
力する。オア・ゲート68及び70の導通及び非導通は、副
制御器58が制御する。メモリ62は、副制御器58からのア
ドレス信号及び書込み/読出し制御信号に応じて、シフ
ト・レジスタ60からの並列データを記憶したり、並列デ
ータをインタフェース64に出力したりする。このインタ
フェース64は、メモリ62及びプリンタ66の間をインタフ
ェースする。
The sub controller 58 controls a circuit for processing the output signal of the first sampling means in response to an instruction from the main controller 34. These circuits include shift register 60, memory 62, interface 64, and the like. The shift register 60 captures the / Q output signal of the latch circuit 44 via the OR gate 68 as serial data and outputs it as parallel data in response to the sampling clock signal via the OR gates 48 and 70. To do. Sub-controller 58 controls the conduction and non-conduction of OR gates 68 and 70. The memory 62 stores the parallel data from the shift register 60 and outputs the parallel data to the interface 64 according to the address signal and the write / read control signal from the sub controller 58. The interface 64 interfaces between the memory 62 and the printer 66.

第4図は、デジタル映像信号Vとサンプリング・クロッ
ク信号SCとの周波数関係及び位相関係が略最適に調整さ
れている時の1例を表す波形図である。破線で示されて
いる各区間が1ピクセル期間であり、且つクロック信号
の周期に対応している。サンプリング・クロック信号の
立ち上がり遷移は、各ピクセル期間の略中央にあるの
で、サンプリング・クロック信号SCに応じて第3図のラ
ッチ44は、映像信号Vを確実にサンプリングすることが
出来る。このような最適な関係の場合、映像信号Vの各
ピクセル信号の立ち上がり遷移は、必ずクロック信号SC
の「低」状態の時点にあることに留意されたい。映像信
号とサンプリング・クロック信号との位相関係が狂った
り、ライン画素数と1ライン上のクロック信号の総数が
等しくない場合には、1画面内に多くのピクセル信号の
遷移が略ランダムに存在しているならば、どこかのピク
セル信号の立ち上がり遷移の時点で、サンプリング・ク
ロック信号SCが「高」状態となると考えられる。本発明
は、以上の事実に基づくものであり、どこかのピクセル
信号の立ち上がり遷移の時点が、どこかのクロック信号
SCの「高」(論理「1」)状態となる状態を第1状態と
定義し、1画面内の総てのピクセル信号の立ち上がり遷
移の時点が、クロック信号SCの「低」(論理「0」)状
態となる状態を第2状態と定義する。即ち、第1状態
は、ピクセル信号とクロック信号との位相又は周波数関
係が望ましくない状態であり、第2状態は、両者の位相
及び周波数関係が適正になり得る状態を表している。こ
れら第1及び第2状態は、後述するように、第2図のラ
ッチ50のQ出力の状態を主制御回路34が読み出して判断
する。
FIG. 4 is a waveform diagram showing an example when the frequency relationship and the phase relationship between the digital video signal V and the sampling clock signal SC are adjusted to be substantially optimal. Each section shown by a broken line is one pixel period and corresponds to the cycle of the clock signal. Since the rising transition of the sampling clock signal is approximately in the center of each pixel period, the latch 44 of FIG. 3 can reliably sample the video signal V in response to the sampling clock signal SC. In the case of such an optimum relationship, the rising transition of each pixel signal of the video signal V must be the clock signal SC.
Note that the "low" state of If the phase relationship between the video signal and the sampling clock signal is wrong, or if the number of line pixels and the total number of clock signals on one line are not equal, many pixel signal transitions are present in one screen substantially randomly. If so, the sampling clock signal SC is considered to be in the “high” state at the rising transition of the pixel signal somewhere. The present invention is based on the above facts, and the time of the rising transition of the pixel signal of somewhere is the clock signal of somewhere.
The state in which the SC is in the “high” (logic “1”) state is defined as the first state, and the rising transition points of all pixel signals in one screen are “low” (logic “0”) in the clock signal SC. )) State is defined as a second state. That is, the first state is a state in which the phase or frequency relationship between the pixel signal and the clock signal is not desirable, and the second state represents a state in which the phase and frequency relationship between the two can be appropriate. The first and second states are determined by the main control circuit 34 reading the state of the Q output of the latch 50 shown in FIG. 2, as described later.

第1図は本発明の基本的な実施例を表す流れ図である。
開始後、ブロック100で第3図のラッチ40を介して分周
器32の分周比の値である探索変数PIXELに初期値を設定
する。この初期値は外部から手動で設定しても、又は主
制御回路34により自動的に設定しても良いが、求めるラ
イン画素数より必ず小さい値に設定される。また、この
探索変数の初期値は、求めるライン画素数の値の1/2よ
り大きい数であることが望ましいが、これについては後
述する。次のブロック102では可変遅延回路の遅延量D
が0に初期設定される。次のブロック104では、第3図
のラッチ38を介してオア・ゲート48の1入力端子のCの
状態を「0」に設定し、クロック信号SCをラッチ回路50
のD入力端子に供給し、1画面内に略ランダムに多数存
在する画素信号の立ち上がり遷移に応じてクロック信号
をサンプリングする。ラッチ50のQ出力端子はオア・ゲ
ート52の入力端に接続され、Q出力が「1」になるとラ
ッチ50への画素信号の供給を遮断する。よって、多数の
サンプリング動作のうち1回でもQ出力が「1」になれ
ば、その状態がラッチされる。このQ出力の状態を主制
御回路34が/Q出力端子からインバータ56を介して読み出
す。この時、Qの状態が「1」ならば、状態変数Pを
「1」とし、このP=「1」を第1状態と定義する。1
画面分の総ての画素信号でクロック信号をサンプリング
した結果、1回もQ=「1」とならない時、P=「0」
とし、これを第2状態と定義する。次の判断ブロック10
6でP=「0」か否かが判断される。ライン画素数と1
ライン内のクロック信号の総数が一致していない場合又
は両者の位相関係が適正でない場合にはP=「1」とな
ることが期待出来る。何故なら、1画面内に多数の画素
信号の遷移が略ランダムに存在するならば、P=「0」
となるのは、探索変数がライン画素数に一致した時のみ
であると考えられるからである。よって、P=「1」
(第1状態)なら判断ブロック108で相対遅延量Dの値
が所定値(この場63)より大きいか否かが判断される。
Dの値が63以下ならブロック110でDの値を1増加し、
処理104〜110を繰返す。ブロック108でDの値が63を超
えた場合には、ブロック112で探索変数PIXELの値を1増
加し、処理はブロック102に戻される。即ち、1つの探
索変数の値に対し、Dの値を0〜63まで変化させ、その
中でP=「0」(第2状態)が検出されない時に探索変
数を1増加して探索処理を進めていく。ブロック106で
P=「0」が検出されると、その時の探索変数の値が求
めるライン画素数に等しいと見なされ、ブロック114で
処理が終了する。以上の処理で、探索変数が求めるライ
ン画素数の整数分の1の値の場合、その値がライン画素
数と誤認される可能性がある。従って、探索変数の初期
値は、ライン画素数の1/2の値より大きい値にすること
が望ましい。スクリーンの1走査線上に表示可能な有効
表示画素数は既知である場合が多く、この条件を満たし
ているので、この有効表示画素数を探索変数の初期値と
すれば良い。
FIG. 1 is a flow chart showing a basic embodiment of the present invention.
After the start, in block 100, an initial value is set to the search variable PIXEL which is the value of the frequency division ratio of the frequency divider 32 via the latch 40 of FIG. This initial value may be set manually from the outside or automatically by the main control circuit 34, but it is always set to a value smaller than the desired line pixel number. The initial value of this search variable is preferably a number larger than 1/2 of the value of the number of line pixels to be obtained, which will be described later. In the next block 102, the delay amount D of the variable delay circuit
Is initialized to 0. In the next block 104, the state of C of one input terminal of the OR gate 48 is set to "0" via the latch 38 of FIG. 3, and the clock signal SC is set to the latch circuit 50.
And the clock signal is sampled in accordance with the rising transitions of a large number of pixel signals that are present substantially randomly within one screen. The Q output terminal of the latch 50 is connected to the input terminal of the OR gate 52, and when the Q output becomes "1", the supply of the pixel signal to the latch 50 is cut off. Therefore, if the Q output becomes "1" even once in many sampling operations, the state is latched. The main control circuit 34 reads the state of the Q output from the / Q output terminal via the inverter 56. At this time, if the state of Q is “1”, the state variable P is set to “1”, and this P = “1” is defined as the first state. 1
As a result of sampling the clock signal with all the pixel signals for the screen, when Q does not become "1" even once, P = "0"
And this is defined as the second state. Next decision block 10
At 6, it is determined whether P = “0”. Line pixel count and 1
If the total number of clock signals in the lines does not match or the phase relationship between them is not appropriate, it can be expected that P = “1”. The reason is that if a large number of pixel signal transitions exist in one screen in a substantially random manner, P = “0”
It is considered that it is only when the search variable matches the number of line pixels. Therefore, P = “1”
If it is (first state), a decision block 108 decides whether or not the value of the relative delay amount D is larger than a predetermined value (in this case 63).
If the value of D is 63 or less, the value of D is incremented by 1 in block 110,
The processes 104 to 110 are repeated. If the value of D exceeds 63 in block 108, the value of search variable PIXEL is incremented by 1 in block 112, and the process is returned to block 102. That is, the value of D is changed from 0 to 63 with respect to the value of one search variable, and when P = "0" (second state) is not detected in the value, the search variable is increased by 1 and the search process is advanced. To go. When P = “0” is detected in block 106, the value of the search variable at that time is regarded as equal to the desired number of line pixels, and the process ends in block 114. In the above process, when the search variable has a value that is an integer fraction of the number of line pixels to be obtained, that value may be mistaken for the number of line pixels. Therefore, it is desirable that the initial value of the search variable be a value larger than half the number of line pixels. In many cases, the number of effective display pixels that can be displayed on one scanning line of the screen is known, and since this condition is satisfied, this number of effective display pixels may be used as the initial value of the search variable.

第2A図〜第2F図は、本発明のライン画素数探索方法の他
の実施例を示す流れ図である。第2A図は、メイン・ルー
チンであり、開始後、ブロック120で探索変数PIXELに初
期値を設定する。次に遅延時間探索サブルーチン122で
第1及び第2遅延時間D1及びD2を求める。第1遅延時間
D1は、可変遅延回路16を順次1単位ずつ遅延させる毎
に、ピクセル信号の立ち上がり遷移に応じてクロック信
号の状態をサンプリングした結果が上記第1状態から第
2状態へ変化した時の相対遅延時間Dの値を表し、第2
遅延時間D2は、D1の遅延後更に相対遅延時間Dを順次増
加し、第2状態から第1状態へ変化した時の相対遅延時
間Dの値を表している。これら第1及び第2遅延時間D1
及びD2が求められれば、探索変数PIXELがライン画素数
に等しくなったことになり、ブロック124で探索処理は
終了する。遅延時間探索サブルーチン102に於いて、相
対遅延時間Dの値が所定範囲(ここでは63)を超えた場
合には、処理は、直ちにブロック125(符号A)に飛
び、ブロック126で探索変数PIXELの値を1増加し、判断
ブロック128でPIXEL値が所定上限値(ここでは4096)以
下か否かを判断し、上限値を超えたらブロック129で探
索不能のエラー表示をする。そうでなければ、処理はブ
ロック122に戻り、ブロック122でD1及びD2の値が所定範
囲内で求まるまで、以上の処理を繰り返す。
2A to 2F are flowcharts showing another embodiment of the line pixel number searching method of the present invention. FIG. 2A is a main routine, and after starting, block 120 sets an initial value to the search variable PIXEL. Next, the delay time search subroutine 122 determines the first and second delay times D1 and D2. First delay time
D1 is a relative delay time when the result of sampling the state of the clock signal according to the rising transition of the pixel signal changes from the first state to the second state every time the variable delay circuit 16 is sequentially delayed by one unit. Represents the value of D, the second
The delay time D2 represents the value of the relative delay time D when the relative delay time D is further increased after the delay of D1 and changed from the second state to the first state. These first and second delay times D1
And D2 are found, the search variable PIXEL has become equal to the number of line pixels, and the search process ends at block 124. In the delay time search subroutine 102, if the value of the relative delay time D exceeds the predetermined range (63 in this case), the process immediately jumps to block 125 (reference A), and block 126 sets the search variable PIXEL of the search variable PIXEL. The value is incremented by 1 and it is determined in a decision block 128 whether or not the PIXEL value is equal to or less than a predetermined upper limit value (here, 4096). If the PIXEL value exceeds the upper limit value, an unsearchable error message is displayed in block 129. If not, the process returns to block 122, and the above process is repeated until the values of D1 and D2 are obtained within the predetermined range in block 122.

第2B図は、第2A図の遅延時間探索サブルーチン122の処
理を示す流れ図である。先ず、ブロック130で可変遅延
回路16の遅延量Dを0に初期設定する。次に、相対位相
検出サブルーチン132で、Dの値を固定したままで、ピ
クセル信号Vの立ち上がり遷移でクロック信号SCをサン
プリングした時、そのサンプリング結果が第1状態(P
=「1」)か、又は第2状態(P=「0」)かを検出す
る。次の判断ブロック134では、状態検出変数Pが
「0」か否かを判断し、P=「0」なら処理は遅延及び
設定サブルーチンのブロック136へ進む。この遅延及び
制定サブルーチン136は、第2遅延時間D2を求めないだ
けで、実質的に後述の第2遅延時間探索サブルーチン14
0と同様の処理を行う。即ち、P=「0」の第2状態か
ら可変遅延回路16の遅延時間Dを順次増加し、P=
「1」となる第1状態にDの値を設定する。後述するよ
うに、この処理の途中でDの値が63を超えた場合には、
処理の直ちに第2A図の結合ブロック125に飛ぶ。判断ブ
ロック134でP=「1」と判断されるか、又はブロック1
36でP=「1」に設定されると、第1遅延時間探索サブ
ルーチン138に処理が進む。この第1遅延時間探索サブ
ルーチン118は、P=「1」の第1状態からDの値を順
次遅延し、P=「0」の第2状態となる時のDの値であ
る第1遅延時間D1を求める。次に、処理は第2遅延時間
探索サブルーチン140に進み、P=「0」の第2状態か
ら更にDの値を順次遅延し、P=「1」の第1状態へ変
化する時のDの値である第2遅延時間D2を求める。その
後、ブロック142から第2A図のメイン・ルーチンに処理
が戻る。後述するように、これら第1及び第2遅延時間
探索サブルーチン138及び140の処理の途中で、Dの値が
所定範囲の63を超えると、処理は直ちに第2A図の結合ブ
ロック125に飛ぶ。
FIG. 2B is a flowchart showing the processing of the delay time search subroutine 122 of FIG. 2A. First, in block 130, the delay amount D of the variable delay circuit 16 is initialized to 0. Next, in the relative phase detection subroutine 132, when the clock signal SC is sampled at the rising transition of the pixel signal V while the value of D is fixed, the sampling result is the first state (P
= “1”) or the second state (P = “0”). In the next decision block 134, it is determined whether or not the state detection variable P is "0". If P = "0", the process proceeds to block 136 of the delay and set subroutine. This delay and enactment subroutine 136 does not calculate the second delay time D2, but is substantially the second delay time search subroutine 14 described later.
Performs the same processing as 0. That is, the delay time D of the variable delay circuit 16 is sequentially increased from the second state of P = “0”, and P =
The value of D is set to the 1st state which becomes "1". As will be described later, if the value of D exceeds 63 during this process,
Immediately after processing, jump to join block 125 of Figure 2A. In decision block 134, it is determined that P = “1”, or in block 1
When P = “1” is set in 36, the process proceeds to the first delay time search subroutine 138. The first delay time search subroutine 118 sequentially delays the value of D from the first state of P = “1”, and the first delay time that is the value of D when the second state of P = “0” is reached. Find D1. Next, the process proceeds to the second delay time search subroutine 140, in which the value of D is further delayed sequentially from the second state of P = "0" and the value of D when changing to the first state of P = "1". The value of the second delay time D2 is obtained. Thereafter, processing returns from block 142 to the main routine of FIG. 2A. As will be described later, if the value of D exceeds a predetermined range of 63 during the processing of the first and second delay time search subroutines 138 and 140, the processing immediately jumps to the combined block 125 of FIG. 2A.

第2C図は、第2B図の相対位相検出サブルーチン132の処
理を示す流れ図である。先ず、ブロック144で第3図の
D型フリップ・フロップのラッチ50をラッチ38を介して
リセットする。次のブロック146で、垂直同期信号(V
シンク信号)に応じてオア・ゲート48の入力端Cの状態
を「0」に設定し、ラッチ50のD端子にクロック信号SC
を供給する。よって、ラッチ50は、オア・ゲート46から
供給されるピクセル信号の各立ち上がり遷移に応じてD
入力端子のクロック信号の状態のサンプリング(ラッ
チ)を開始する。次のブロック148で、主制御回路34
は、インバータ56を付勢してラッチ50のQ出力を読み出
す。ここで、ラッチ50のQ出力端は、オア・ゲート52の
入力端に接続しており、Q出力が「1」になると、ラッ
チ50にはピクセル信号の遷移が供給されなくなるので、
多数のピクセル信号の立ち上がり遷移の何処かの時点で
クロック信号SCの状態が「1」になれば、その状態がラ
ッチされることに留意されたい。次のブロック150でラ
ッチ50のQ出力の状態が「1」か否かを判断し、Q=
「1」ならばブロック152で、第1状態を表すP=
「1」に設定する。P=「1」の設定された場合には、
多数のピクセル信号の立ち上がり遷移の何処かの時点
で、クロック信号が「1」の状態になったことを意味し
ている。ブロック130でP=「0」の時には、ブロック1
34で次のVシンク信号を検出したか否かを判断し、次の
Vシンク信号を検出しない限り、ブロック148及び150の
処理を繰返す。次のVシンク信号を検出すると、処理は
ブロック156に進み、第2状態を表すP=「0」に設定
する。P=「0」に設定された場合には、1画面内に存
在する多数のピクセル信号の総ての立ち上がり遷移でク
ロック信号をサンプリングしたが、サンプリング時点で
1回もクロック信号が「1」の状態にならなかったこと
を意味している。ブロック152又は156でP=「1」又は
P=「0」に設定され、ブロック158から元のルーチン
に処理が戻される。後述するように、この相対位相検出
サブルーチンは、第1及び第2遅延探索サブルーチン並
びに遅延及び設定サブルーチンの中でも使用される。
FIG. 2C is a flow chart showing the processing of the relative phase detection subroutine 132 of FIG. 2B. First, at block 144, the latch 50 of the D flip-flop of FIG. 3 is reset via the latch 38. In the next block 146, the vertical sync signal (V
The input terminal C of the OR gate 48 is set to "0" according to the sync signal), and the clock signal SC is input to the D terminal of the latch 50.
To supply. Therefore, the latch 50 is driven by D in response to each rising transition of the pixel signal supplied from the OR gate 46.
Start sampling (latch) of the state of the clock signal at the input terminal. In the next block 148, the main control circuit 34
Activates the inverter 56 to read the Q output of the latch 50. Here, the Q output terminal of the latch 50 is connected to the input terminal of the OR gate 52, and when the Q output becomes “1”, the transition of the pixel signal is not supplied to the latch 50.
It should be noted that if the state of the clock signal SC becomes "1" at some point of the rising transitions of many pixel signals, that state is latched. In the next block 150, it is judged whether the state of the Q output of the latch 50 is "1", and Q =
If “1”, in block 152, P = representing the first state
Set to "1". When P = “1” is set,
This means that the clock signal is in the "1" state at some point of the rising transitions of many pixel signals. When P = “0” in block 130, block 1
At 34, it is determined whether or not the next V sync signal is detected, and unless the next V sync signal is detected, the processes of blocks 148 and 150 are repeated. Upon detection of the next V sync signal, processing proceeds to block 156 to set P = “0” representing the second state. When P = “0” is set, the clock signal is sampled at all rising transitions of a large number of pixel signals existing in one screen, but the clock signal is “1” once at the sampling point. It means that the condition was not reached. In block 152 or 156, P = "1" or P = "0" is set, and the process is returned from the block 158 to the original routine. As will be described later, this relative phase detection subroutine is also used in the first and second delay search subroutines and the delay and setting subroutine.

第2D図は、第2B図の第1遅延時間探索サブルーチン138
の処理を示す流れ図である。先ず、Dの値に基づきラッ
チ38を介して可変遅延回路16の相対遅延時間を設定す
る。次の相対位相検出サブルーチン162は、第2C図で既
に説明したサブルーチンと全く同様の処理を行い、第1
状態又は第2状態を検出すると、P=「1」又はP=
「0」を夫々設定する。次の判断ブロック164では、P
=「0」か否かを判断し、P=「1」ならばブロック16
6でDの値を1増加し、ブロック168でのDの値が63以下
である限り、ブロック160〜166の処理を繰返す。ブロッ
ク168でのDの値が63を超えると、処理は直ちに第2A図
の結合ブロック125に飛ぶ。ブロック164でP=「0」と
なると、ブロック170でその時のDの値を第1遅延時間D
1とする。次のブロック172から元のルーチンに処理は戻
される。
FIG. 2D shows the first delay time search subroutine 138 of FIG. 2B.
6 is a flowchart showing the processing of FIG. First, the relative delay time of the variable delay circuit 16 is set via the latch 38 based on the value of D. The next relative phase detection subroutine 162 performs exactly the same processing as the subroutine already described in FIG.
When the state or the second state is detected, P = “1” or P =
"0" is set respectively. At the next decision block 164, P
= “0”, block 16 if P = “1”
The value of D is incremented by 1 at 6, and the processing of blocks 160 to 166 is repeated as long as the value of D at block 168 is 63 or less. If the value of D at block 168 exceeds 63, the process immediately jumps to join block 125 of FIG. 2A. When P = “0” in block 164, the value of D at that time is set to the first delay time D in block 170.
Set to 1. Processing returns from the next block 172 to the original routine.

第2E図は、第2B図の第2遅延時間探索サブルーチン140
の処理を示す流れ図である。このサブルーチンの処理
は、第2D図の第1遅延時間探索サブルーチンと類似して
おり、相違点は、判断ブロック178で、Pが「1」か否
かを判断し、P=「0」である限りDの値を1増加し
(ブロック180)、Dの値が63を超えない限りブロック1
74〜180の処理を繰り返し、Dの値が63を超えると、処
理は直ちに第2A図の結合ブロック125に飛ぶ。ブロック1
78でP=「1」と判断されると、ブロック184でその時
のDの値を第2遅延時間D2とし、ブロック186から元の
ルーチンに処理が戻される。上述のように、この第2E図
の第2遅延時間探索サブルーチンは、第2B図の遅延及び
設定サブルーチン136と実質的に略同様な処理を行う。
相違点は、第2B図の遅延及び設定サブルーチン136の場
合、第2遅延時間D2の値を設定するブロック184が省か
れている事だけである。
FIG. 2E shows the second delay time search subroutine 140 of FIG. 2B.
6 is a flowchart showing the processing of FIG. The processing of this subroutine is similar to the first delay time search subroutine of FIG. 2D, and the difference is that the decision block 178 determines whether P is “1” and P = “0”. As long as the value of D is incremented by 1 (block 180), unless the value of D exceeds 63, block 1
The processes of 74 to 180 are repeated, and when the value of D exceeds 63, the process immediately jumps to the combining block 125 of FIG. 2A. Block 1
When it is determined at 78 that P = “1”, the value of D at that time is set to the second delay time D2 at block 184, and the process is returned from the block 186 to the original routine. As described above, the second delay time search subroutine of FIG. 2E performs substantially the same processing as the delay and setting subroutine 136 of FIG. 2B.
The only difference is that in the delay and setting subroutine 136 of FIG. 2B, the block 184 for setting the value of the second delay time D2 is omitted.

第2F図は、本発明のライン探索方法に追加する手順を表
す流れ図の一部である。第2A図の流れ図に於いて、サブ
ルーチン122と終了ブロック124の間に判断ブロック188
を挿入する。この判断ブロック188では、探索変数PIXEL
の値が基準値E/(D2−D1)より大きいか否かが比較され
る。ここで、定数Eは実験的に決められる定数で、E/
(D2−D1)の基準値が少なくともライン画素数の1/2の
値より大きくなるように選択される。この条件が満たさ
れなければ、処理は直ちに第2A図の結合ブロック125に
進み、この条件が満たされれば探索変数をライン画素数
とし、処理を終了する。ここで、探索変数がライン画素
数の整数分の1の値になった場合でも、多数の画素信号
の遷移が略ランダムに存在する限り、(D2−D1)の値
は、常に1ピクセル期間に対し略一定の割合となり、且
つライン画素数と略一定の相関関係を有している。従っ
て、E/(D2−D1)の値を対象とする表示装置の範囲内で
ライン画素数の1/2の値より大きい値に選択することは
容易である。この判断ブロック188を挿入することによ
り、探索変数の初期値を限定する必要性を解消すること
が出来る。
FIG. 2F is a part of a flow chart showing a procedure to be added to the line search method of the present invention. In the flow chart of FIG. 2A, decision block 188 is placed between subroutine 122 and end block 124.
Insert. In this decision block 188, the search variable PIXEL
Is compared with the reference value E / (D2-D1). Here, the constant E is an experimentally determined constant, and E /
The reference value of (D2-D1) is selected to be at least larger than half the number of line pixels. If this condition is not satisfied, the process immediately proceeds to the combining block 125 in FIG. 2A, and if this condition is satisfied, the search variable is set to the line pixel number, and the process ends. Here, even when the search variable has a value that is an integer fraction of the number of line pixels, the value of (D2-D1) is always 1 pixel period as long as a large number of pixel signal transitions exist at random. On the other hand, it has a substantially constant ratio and has a substantially constant correlation with the number of line pixels. Therefore, it is easy to select the value of E / (D2-D1) to a value larger than 1/2 of the number of line pixels within the range of the target display device. By inserting this decision block 188, it is possible to eliminate the need to limit the initial value of the search variable.

第5図は、サンプリング・クロック信号SCとデジタル映
像信号のピクセル信号V1〜V4のタイミング関係を示す波
形図である。ピクセル信号V1〜V4は、サンプリング・ク
ロック信号SCに対し、順次相対遅延時間Dを増加した場
合に対応しているが、ここに示したサンプリング・クロ
ック信号SC及びピクセル信号V1〜V4は、特定のパルスを
表しているのではなく、多数のパルスの中の何れか不特
定のパルスを表していることに留意されたい。即ち、V1
の特定のパルスが遅延されて、V2に示したパルスとなる
のではなく、SCとV1で示された関係のパルス列を相対的
に遅延させていくと、そのパルス列の中の不特定な何れ
かのパルスと不特定な何れかのクロック・パルスSCとの
関係がV2で示されたようになることを表している。つま
り、V1〜V4の各ピクセル信号は、スクリーン上で同じ位
置のピクセルに対応しているわけではない。本発明の前
提条件は、1画面内に多数のピクセル信号の遷移が略ラ
ンダムに存在することである。ラッチ50のサンプリング
結果が第1状態(P=「1」)のとき、クロック信号と
画素信号との関係が適正でないことになる。何故なら、
ライン画素数とサンプリング・クロック信号SCの1ライ
ン内の総数が等しくない場合には、多数のピクセル信号
の立ち上がり遷移が1画面内で略ランダムに存在する限
り、その中の少なくとも1つの遷移の時点は必然的にク
ロック信号の「高」状態(即ち、P=「1」)となるこ
とが期待されるからである。この時、第1図の方法で
は、相対遅延時間を増加し、所定遅延時間内でP=
「0」とならなければ、探索変数を増加し、探索処理を
続け、P=「0」となった時の探索変数をライン画素数
としている。
FIG. 5 is a waveform diagram showing the timing relationship between the sampling clock signal SC and the pixel signals V1 to V4 of the digital video signal. The pixel signals V1 to V4 correspond to the case where the relative delay time D is sequentially increased with respect to the sampling clock signal SC, but the sampling clock signal SC and the pixel signals V1 to V4 shown here are Note that it does not represent a pulse, but rather any unspecified pulse in a number of pulses. That is, V1
The specific pulse of is not delayed and becomes the pulse shown in V2, but when the pulse train of the relationship shown by SC and V1 is relatively delayed, any unspecified one in the pulse train It is shown that the relationship between the pulse and the unspecified clock pulse SC becomes as shown by V2. That is, each pixel signal of V1 to V4 does not correspond to the pixel at the same position on the screen. The precondition of the present invention is that a large number of pixel signal transitions exist in one screen in a substantially random manner. When the sampling result of the latch 50 is in the first state (P = “1”), the relationship between the clock signal and the pixel signal is incorrect. Because,
When the number of line pixels and the total number of sampling clock signals SC in one line are not equal, as long as the rising transitions of a large number of pixel signals are present at random in one screen, at least one of the transition times Is inevitably expected to be in the "high" state of the clock signal (ie, P = "1"). At this time, in the method of FIG. 1, the relative delay time is increased so that P = P
If it does not become "0", the search variable is increased, the search process is continued, and the search variable when P = "0" is set as the number of line pixels.

第2B図のブロック132で、P=「0」が検出されると、
クロック信号SCと総てのピクセル信号の立ち上がり遷移
の時点との関係は、第5図のV1の如くである。この時、
1ライン内のサンプリング・クロック信号のパルス数と
ライン画素数が一致し、位相関係も適正である可能性が
高い。P=「0」の場合には、遅延及び設定サブルーチ
ン136で、ピクセル信号のパルス列をクロック信号に対
して順次遅延させ、V2の如き位相関係(P=「1」)を
強制的に成立させる。その後、ピクセル信号のパルス列
を更に遅延させ、1画面内の総てのピクセル信号の立ち
上がり遷移の時点がV3で示されるような位相関係(P=
「0」)となるように相対遅延時間Dを設定し、その値
を第1遅延時間D1とする。その後、更に相対遅延時間D
を遅延させ、ピクセル信号の何れかの立ち上がり遷移の
時点がV4の関係(P=「1」)となるようにDの値を設
定し、その値を第2遅延時間D2とする。このようにし
て、D1及びD2が求められた場合には、その時の探索変数
PIXELの値をライン画素数とする。高い精度でライン画
素数を求めるには、1画面内に或る程度以上画像が表示
されており、多数のピクセル信号の遷移が略ランダムに
存在することが必要だと思われる。しかし、実験的に
は、1画面全体に画像を表示しなくても、1行以上に亘
り英数字を無作為に表示するだけで、探索変数のライン
画素数に完全に一致させることが出来た。これに対し、
サンプリング・クロック信号SCの1ライン内の総数がラ
イン画素数と一致していない場合には、両者の位相関係
が一定になり得ないので、1画面内の何れかのピクセル
信号の遷移時点で必ずP=「1」となることが期待され
る。従って、その場合にはDの値を所定範囲内で変化さ
せてもD1及びD2の値を求めることは出来ないと考えられ
る。従って、処理の途中でDの値が63を超えると、第2A
図のブロック125に飛び、ブロック126において、探索変
数を1増加して探索を進めている。但し、探索変数の値
が求めるライン画素数の整数分の一の値になった場合に
も、探索変数がライン画素数に等しいと誤認される可能
性がある。従って、探索変数の初期値は、求めるライン
画素数の1/2の値より大きい値を設定するべきである。
しかし、第2F図に示した判断ブロック118を追加すれ
ば、この探索変数の初期値の制限も解消し得る。基準値
を決める為の適当な定数EのデータをROMに記憶してお
き、必要に応じて読み出すようにしても良い。
At block 132 of FIG. 2B, when P = "0" is detected,
The relationship between the clock signal SC and the rising transition points of all pixel signals is as shown by V1 in FIG. At this time,
It is highly possible that the number of pulses of the sampling clock signal in one line and the number of line pixels match, and the phase relationship is also appropriate. When P = “0”, the delay and setting subroutine 136 sequentially delays the pulse train of the pixel signal with respect to the clock signal to forcibly establish the phase relationship (P = “1”) such as V2. After that, the pulse train of the pixel signal is further delayed, and the phase relation (P = P = P3) at which the rising transition points of all the pixel signals in one screen are indicated by V3.
The relative delay time D is set to be "0"), and the value is set as the first delay time D1. After that, the relative delay time D
Is delayed, and the value of D is set so that the timing of any rising transition of the pixel signal has the relationship of V4 (P = “1”), and the value is set as the second delay time D2. In this way, when D1 and D2 are obtained, the search variable at that time
The value of PIXEL is the number of line pixels. In order to obtain the number of line pixels with high accuracy, it is necessary that an image is displayed on a screen to a certain extent or more, and transitions of a large number of pixel signals should be present substantially randomly. However, experimentally, even if the image was not displayed on the entire screen, it was possible to completely match the number of line pixels of the search variable simply by randomly displaying alphanumeric characters over one line or more. . In contrast,
If the total number of sampling clock signals SC in one line does not match the number of line pixels, the phase relationship between the two cannot be constant, so be sure to change at any one pixel signal transition in one screen. It is expected that P = “1”. Therefore, in that case, it is considered that the values of D1 and D2 cannot be obtained even if the value of D is changed within a predetermined range. Therefore, if the value of D exceeds 63 during the process, the second A
Jumping to block 125 in the figure, in block 126, the search variable is incremented by 1 to proceed with the search. However, even when the value of the search variable becomes a value obtained by dividing the obtained number of line pixels by an integer, the search variable may be erroneously recognized as being equal to the number of line pixels. Therefore, the initial value of the search variable should be set to a value that is larger than half the number of line pixels to be obtained.
However, by adding the decision block 118 shown in FIG. 2F, the limitation of the initial value of this search variable can be eliminated. Data of an appropriate constant E for determining the reference value may be stored in the ROM and read as needed.

Dの値の所定範囲を0〜63(0〜63ナノ秒)としたが、
この可変遅延範囲は、対象とする表示装置のライン画素
数及び水平走査周期によって決まる1ピクセル周期(約
8〜30ナノ秒)に応じて決められるもので、この値に限
定されるものではない。この所定可変遅延範囲は、一般
に最大ピクセル周期の2倍程度あれば充分である。
Although the predetermined range of the value of D is 0 to 63 (0 to 63 nanoseconds),
The variable delay range is determined according to one pixel period (about 8 to 30 nanoseconds) determined by the number of line pixels of the target display device and the horizontal scanning period, and is not limited to this value. It is generally sufficient that the predetermined variable delay range is about twice the maximum pixel period.

以上本発明の好適実施例について説明したが、本発明は
ここに説明した実施例のみに限定されるものではなく、
本発明の要旨を逸脱する事なく必要に応じて種々の変形
及び変更を実施し得る事は当業者には明らかである。例
えば、この実施例では各画素信号は1ビットであった
が、中間調やカラーを表す為の複数ビットの信号の場合
には、その中の変化の多いビットに関して同様の処理を
すれば良い。また、各デジタル信号に関して遷移の極性
や正論理及び負論理の何れを採用するか等は、設計の際
に自由に設定できることは勿論である。
Although the preferred embodiments of the present invention have been described above, the present invention is not limited to the embodiments described herein,
It will be apparent to those skilled in the art that various modifications and changes can be made as necessary without departing from the spirit of the present invention. For example, in this embodiment, each pixel signal has one bit, but in the case of a signal of a plurality of bits for representing a halftone or a color, similar processing may be performed for the bit having a large change. In addition, it is needless to say that the polarity of transition and whether to use positive logic or negative logic for each digital signal can be freely set at the time of design.

[発明の効果] 本発明のライン画素数探索方法によれば、表示装置のラ
イン画素数及び有効画素数が未知であっても、画像信号
に応じてクロック信号をサンプリングすることにより、
表示装置のライン画素数を自動的に測定出来る。
[Effect of the Invention] According to the line pixel number search method of the present invention, even if the line pixel number and the effective pixel number of the display device are unknown, by sampling the clock signal according to the image signal,
The number of line pixels of the display device can be automatically measured.

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

第1図は、本発明のライン画素数探索方法の基本的な実
施例の流れ図、第2A図〜第2F図は、本発明のライン画素
数探索方法の他の実施例を表す流れ図、第3図は、本発
明の方法を応用するのに好適な画像コピー装置のブロッ
ク図、第4図は、サンプリング・クロック信号と映像信
号との好適な位相及び周波数関係の1例を示す波形図、
第5図は、本発明のライン画素数探索方法を説明する為
のクロック信号と画像信号との相対的関係を表す波形図
である。
FIG. 1 is a flow chart of a basic embodiment of the line pixel number searching method of the present invention, and FIGS. 2A to 2F are flow charts showing other embodiments of the line pixel number searching method of the present invention. FIG. 4 is a block diagram of an image copying apparatus suitable for applying the method of the present invention, and FIG. 4 is a waveform diagram showing an example of a suitable phase and frequency relationship between a sampling clock signal and a video signal,
FIG. 5 is a waveform diagram showing the relative relationship between the clock signal and the image signal for explaining the line pixel number searching method of the present invention.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】デジタル映像信号の1水平走査期間中の総
画素数を探索するライン画素数探索方法であって、 (a)上記1水平走査期間を探索変数で等分割した周期
のクロック信号を発生し、 (b)上記クロック信号及び上記デジタル映像信号の相
対遅延時間並びに上記探索変数を変化させて、上記デジ
タル映像信号の遷移に応じて上記クロック信号をサンプ
リングし、1画面期間中の少なくとも1つのサンプリン
グ値が高レベル及び低レベルの一方である第1状態か、
又は上記1画面期間中に亘る全サンプリング値が上記高
レベル及び低レベルの他方である第2状態かを検出し、 (c)上記第2状態が検出された時の上記探索変数の値
を上記総画素数とすることを特徴とするライン画素数探
索方法。
1. A line pixel number searching method for searching the total number of pixels in one horizontal scanning period of a digital video signal, comprising: (a) a clock signal having a cycle obtained by equally dividing one horizontal scanning period by a search variable. (B) changing the relative delay time of the clock signal and the digital video signal and the search variable, sampling the clock signal according to the transition of the digital video signal, and at least 1 in one screen period. The first state in which the two sampling values are one of high level and low level,
Alternatively, it is detected whether or not all the sampling values during the one screen period are the second state which is the other of the high level and the low level, and (c) the value of the search variable when the second state is detected is the above. A method for searching the number of line pixels, which is the total number of pixels.
【請求項2】デジタル映像信号の1水平走査期間中の総
画素数を探索するライン画素数探索方法であって、 (a)上記1水平走査期間を探索変数で等分割した周期
のクロック信号を水平同期信号に応じて発生し、 (b)上記デジタル映像信号の遷移に応じて上記クロッ
ク信号をサンプリングし、1画面期間中の少なくとも1
つのサンプリング値が高レベル及び低レベルの一方であ
る第1状態か、又は上記1画面期間中に亘る全サンプリ
ング値が上記高レベル及び低レベルの他方である第2状
態かを検出し、 (c)上記クロック信号及び上記デジタル映像信号の相
対遅延時間を1単位ずつ遅延する毎に上記手順(b)を
実行し、このサンプリング結果が上記第1状態から上記
第2状態に変化した時の第1遅延時間を求め、 (d)上記相対遅延時間を更に1単位ずつ遅延する毎に
上記手順(b)を実行し、このサンプリング結果が上記
第2状態から上記第1状態に変化した時の第2遅延時間
を求め、 (e)上記手順(c)及び(d)の途中で、上記相対遅
延時間が所定遅延時間の範囲を超えた場合に、上記探索
変数を1増加し、 (f)上記手順(a)乃至(e)を繰返し、上記第1及
び第2遅延時間が共に上記所定時間内で求められた時の
上記探索変数の値を上記デジタル映像信号の1水平走査
期間中の総画素数とすることを特徴とするライン画素数
探索方法。
2. A line pixel number searching method for searching the total number of pixels in one horizontal scanning period of a digital video signal, comprising: (a) a clock signal having a cycle obtained by equally dividing one horizontal scanning period by a search variable. The clock signal is generated in response to a horizontal synchronizing signal, and (b) the clock signal is sampled in response to the transition of the digital video signal, and at least 1 in one screen period
Detecting a first state in which one sampling value is one of a high level and a low level, or a second state in which all the sampling values during the one screen period are the other of the high level and a low level; ) The procedure (b) is executed every time the relative delay time of the clock signal and the digital video signal is delayed by one unit, and the first result when the sampling result changes from the first state to the second state The delay time is calculated. (D) The procedure (b) is executed every time the relative delay time is further delayed by one unit, and the second result when the sampling result is changed from the second state to the first state The delay time is calculated. (E) In the middle of the steps (c) and (d), if the relative delay time exceeds the range of the predetermined delay time, the search variable is incremented by 1, and (f) the step Repeat (a) to (e) In return, the value of the search variable when both the first and second delay times are obtained within the predetermined time is the total number of pixels in one horizontal scanning period of the digital video signal. Pixel count search method.
【請求項3】上記第1及び第2遅延時間の差に応じて決
まる基準値より上記探索変数が大きい場合に、該探索変
数の値を上記デジタル映像信号の1水平走査期間中の総
画素数とすることを特徴とする請求項2記載のライン画
素数探索方法。
3. When the search variable is larger than a reference value determined according to the difference between the first and second delay times, the value of the search variable is set to the total number of pixels in one horizontal scanning period of the digital video signal. 3. The line pixel number searching method according to claim 2, wherein
JP63284377A 1988-11-10 1988-11-10 Line pixel number search method Expired - Lifetime JPH0670739B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63284377A JPH0670739B2 (en) 1988-11-10 1988-11-10 Line pixel number search method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63284377A JPH0670739B2 (en) 1988-11-10 1988-11-10 Line pixel number search method

Publications (2)

Publication Number Publication Date
JPH02130593A JPH02130593A (en) 1990-05-18
JPH0670739B2 true JPH0670739B2 (en) 1994-09-07

Family

ID=17677799

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63284377A Expired - Lifetime JPH0670739B2 (en) 1988-11-10 1988-11-10 Line pixel number search method

Country Status (1)

Country Link
JP (1) JPH0670739B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05199481A (en) * 1992-01-23 1993-08-06 Fanuc Ltd Phase control circuit for video signal

Also Published As

Publication number Publication date
JPH02130593A (en) 1990-05-18

Similar Documents

Publication Publication Date Title
EP0157701B1 (en) Phase synchronization circuit
EP0805430B1 (en) Video adapter and digital image display apparatus
US5012339A (en) Field discrimination circuit
US4713691A (en) Interface circuit of video signal hard copy apparatus
US5760816A (en) Variable phase clock generator for an electrophotographic printer
JPH0670739B2 (en) Line pixel number search method
US6856207B1 (en) Jitter-less phase detector in a clock recovery circuit
EP0316946A2 (en) Video signal hard copying apparatus
KR20020028867A (en) Method and device for compensating the phase for flat screens
KR100339459B1 (en) Liquid crystal display apparatus
JP2988042B2 (en) Dot clock regeneration circuit
JP2874672B2 (en) Automatic phase adjustment system for display device
JP3427298B2 (en) Video signal conversion device and LCD device
JPH0727353B2 (en) Video signal sampling circuit
JPH0918741A (en) Display control method and display control circuit
JPH0239808B2 (en)
JPH11184422A (en) Synchronizing signal processing circuit and method, display device and record medium
JPH0141068B2 (en)
JP2523820B2 (en) Phase synchronization circuit
JPH05341750A (en) Controller for display of data processor
JP2600168B2 (en) Image recording device
KR19990012703A (en) Scanner Nonlinearity Correction Device of Image Forming Device
JPH11245446A (en) Image signal synchronizing circuit
JPH07295513A (en) Control circuit for liquid crystal display device
JPH04345870A (en) Synchronous print control circuit for image forming apparatus