JP6189396B2 - Video signal processing apparatus and video signal processing method - Google Patents

Video signal processing apparatus and video signal processing method Download PDF

Info

Publication number
JP6189396B2
JP6189396B2 JP2015213011A JP2015213011A JP6189396B2 JP 6189396 B2 JP6189396 B2 JP 6189396B2 JP 2015213011 A JP2015213011 A JP 2015213011A JP 2015213011 A JP2015213011 A JP 2015213011A JP 6189396 B2 JP6189396 B2 JP 6189396B2
Authority
JP
Japan
Prior art keywords
video signal
data
signal
phase
pixel
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.)
Active
Application number
JP2015213011A
Other languages
Japanese (ja)
Other versions
JP2017085402A (en
Inventor
雅彦 坂井
雅彦 坂井
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.)
Mitsubishi Electric Engineering Co Ltd
Original Assignee
Mitsubishi Electric Engineering 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 Mitsubishi Electric Engineering Co Ltd filed Critical Mitsubishi Electric Engineering Co Ltd
Priority to JP2015213011A priority Critical patent/JP6189396B2/en
Publication of JP2017085402A publication Critical patent/JP2017085402A/en
Application granted granted Critical
Publication of JP6189396B2 publication Critical patent/JP6189396B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Picture Signal Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Analogue/Digital Conversion (AREA)

Description

この発明は、入力されたアナログ映像信号をデジタル映像信号に変換して出力する映像信号処理装置および映像信号処理方法に関する。   The present invention relates to a video signal processing apparatus and a video signal processing method for converting an input analog video signal into a digital video signal and outputting the digital video signal.

従来、PC等の映像信号源から入力されたアナログ映像信号をデジタル映像信号に変換して出力する映像信号処理装置は、アナログ映像信号をA/D変換して生成されたデジタル映像信号と、映像信号源から入力された水平同期信号(Hsync)および垂直同期信号(Vsync)と、水平同期信号および垂直同期信号に基づいて生成され、映像データの有効期間を示すデータイネーブル信号(以下、「DE信号」と称する)とを表示装置に出力している。   2. Description of the Related Art Conventionally, a video signal processing device that converts an analog video signal input from a video signal source such as a PC into a digital video signal and outputs the digital video signal generated by A / D converting the analog video signal, A data enable signal (hereinafter referred to as a “DE signal”) that is generated based on a horizontal synchronization signal (Hsync) and a vertical synchronization signal (Vsync) input from a signal source and a horizontal synchronization signal and a vertical synchronization signal and indicates a valid period of video data. Is output to the display device.

ここで、アナログ映像信号をA/D変換する際、アナログ映像信号に同期したサンプリングクロックが必要であり、通常の場合、フェーズロックドループ回路(以下、「PLL回路」と称する)を設け、水平同期信号に同期したサンプリングクロックを生成している。しかしながら、サンプリングクロックの位相(以下、「サンプリング位相」と称する)が適切でない場合には、表示装置に表示される映像にちらつきが生じるという問題があった。   Here, when A / D converting an analog video signal, a sampling clock synchronized with the analog video signal is necessary. In a normal case, a phase-locked loop circuit (hereinafter referred to as “PLL circuit”) is provided, and horizontal synchronization is performed. A sampling clock synchronized with the signal is generated. However, when the phase of the sampling clock (hereinafter referred to as “sampling phase”) is not appropriate, there is a problem that the video displayed on the display device flickers.

そこで、上記の問題を解決するために、入力同期信号に同期したクロックを生成するクロック生成部、クロックを一段当たり2〜3ns遅延させ、位相をずらす遅延部が多段接続され、そこから得られた複数のサンプリングクロックと選択信号とを受けてサンプリングクロックを選択するクロック位相ずらし部、入力映像信号をA/D変換するA/D変換部、デジタル変換された映像信号をフレーム単位で格納するフレームメモリ部、選択信号を生成し、フレームメモリ部から映像データを読み込み、種々の演算を行うCPU部からなり、任意のサンプリングクロックにおける一走査線の隣接画素間映像データ差の最大のアドレスを算出し、他のサンプリングクロックを選択したとき、そのアドレスのデータの読み込みを所定回数繰り返し、そのばらつきが最小となるサンプリングクロックを最適位相のサンプリングクロックとする映像信号処理回路が提案されている(例えば、特許文献1参照)。   Therefore, in order to solve the above problems, a clock generation unit that generates a clock synchronized with the input synchronization signal, a delay unit that delays the clock by 2 to 3 ns per stage, and shifts the phase are connected in multiple stages, and obtained from there. A clock phase shift unit that receives a plurality of sampling clocks and a selection signal and selects a sampling clock, an A / D conversion unit that A / D converts an input video signal, and a frame memory that stores a digitally converted video signal in units of frames Unit, generating a selection signal, reading video data from the frame memory unit, and performing various calculations, calculating the maximum address of the video data difference between adjacent pixels of one scanning line in an arbitrary sampling clock, When another sampling clock is selected, reading the data at that address is repeated a predetermined number of times, A video signal processing circuit for variation of the sampling clock of the optimum phase of the sampling clock with the smallest has been proposed (e.g., see Patent Document 1).

特開2000−152030号公報JP 2000-152030 A

しかしながら、従来技術には、以下のような課題がある。
まず、特許文献1の映像信号処理回路では、一走査線中の隣接する2画素それぞれのばらつきの最大値を記憶し、ばらつきの最大値が最小となるときのサンプリング位相を最適としているが、偶然良い映像データが連続した場合に、本来であればサンプリング位相として不適切な状態であるにもかかわらず、最適なサンプリング位相であると判断され、表示装置に表示される映像が改善されない恐れがあるという問題がある。
However, the prior art has the following problems.
First, the video signal processing circuit of Patent Document 1 stores the maximum value of variation of two adjacent pixels in one scanning line, and optimizes the sampling phase when the maximum value of variation is minimized. When good video data continues, it is judged that the sampling phase is optimal even though it is originally inadequate as the sampling phase, and the video displayed on the display device may not be improved. There is a problem.

また、従来の映像信号処理装置は、上述したように、映像信号源から入力された水平同期信号および垂直同期信号に基づいてDE信号を生成しているが、アナログ映像信号における映像データの有効期間と、DE信号が示すデジタル映像信号における映像データの有効期間との間にずれが生じることがあり、これにより表示装置に表示される映像が、表示装置の表示範囲からずれる恐れがあるという問題もある。   Further, as described above, the conventional video signal processing apparatus generates the DE signal based on the horizontal synchronization signal and the vertical synchronization signal input from the video signal source, but the effective period of the video data in the analog video signal And the effective period of the video data in the digital video signal indicated by the DE signal may cause a problem that the video displayed on the display device may deviate from the display range of the display device. is there.

すなわち、サンプリング位相として不適切な状態であるにもかかわらず、最適なサンプリング位相であると判定される位相ずれや、表示装置に表示される映像の表示位置が、表示装置の表示範囲からずれる位置ずれによって、表示装置に表示される映像が乱れるという問題がある。   That is, although the sampling phase is inappropriate, the phase shift determined to be the optimum sampling phase, or the position where the display position of the video displayed on the display device deviates from the display range of the display device There is a problem that an image displayed on the display device is disturbed due to the shift.

この発明は、上記のような課題を解決するためになされたものであり、表示装置に表示される映像の乱れを抑制することができる映像信号処理装置および映像信号処理方法を得ることを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to obtain a video signal processing device and a video signal processing method capable of suppressing disturbance of a video displayed on a display device. To do.

この発明に係る映像信号処理装置は、サンプリングクロックに応じて、映像信号源から入力されたアナログ映像信号をデジタル映像信号に変換するA/D変換部と、映像信号源からの水平同期信号に基づいて、サンプリングクロックを生成するクロック生成部と、デジタル映像信号と、水平同期信号および垂直同期信号とに基づいて、最適なサンプリング位相を選択し、サンプリングクロックを補正する位相調整部と、を備え、位相調整部は、デジタル映像信号の映像データの1フレームにおいて、水平方向に連続する2ピクセルのデータ値の差が大きくなる箇所を、大きい順に2箇所決定し、2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求め、A/D変換部のサンプリング位相を変えて、再度2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求める処理を、A/D変換部のサンプリング位相の可変回数繰り返し、求められた分散が最も小さくなるサンプリング位相を、最適なサンプリング位相として選択するものである。   The video signal processing apparatus according to the present invention is based on an A / D converter that converts an analog video signal input from a video signal source into a digital video signal in accordance with a sampling clock, and a horizontal synchronization signal from the video signal source. A clock generation unit that generates a sampling clock, a digital video signal, a phase adjustment unit that selects an optimal sampling phase based on the horizontal synchronization signal and the vertical synchronization signal, and corrects the sampling clock, The phase adjustment unit determines two locations where the difference between the data values of two consecutive pixels in the horizontal direction is large in one frame of the video data of the digital video signal, in descending order, and for two consecutive two pixels, One for the previous pixel and the other for the subsequent pixel to determine the variance for the following frames, The sampling phase of the / D conversion unit is changed, and again, for two consecutive two pixels, one is for the previous pixel and the other is for the subsequent pixel to obtain the variance for the following multiple frames. The sampling phase of the A / D conversion unit is repeated a variable number of times, and the sampling phase with the smallest obtained variance is selected as the optimum sampling phase.

この発明に係る映像信号処理方法は、サンプリングクロックに応じて、映像信号源から入力されたアナログ映像信号をデジタル映像信号に変換するA/D変換部と、映像信号源からの水平同期信号に基づいて、サンプリングクロックを生成するクロック生成部と、デジタル映像信号と、水平同期信号および垂直同期信号とに基づいて、最適なサンプリング位相を選択し、サンプリングクロックを補正する位相調整部と、を備えた映像信号処理装置で実行される映像信号処理方法であって、デジタル映像信号の映像データの1フレームにおいて、水平方向に連続する2ピクセルのデータ値の差が大きくなる箇所を、大きい順に2箇所決定するステップと、2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求めるステップと、A/D変換部のサンプリング位相を変えて、再度2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求める処理を、A/D変換部のサンプリング位相の可変回数繰り返すステップと、求められた分散が最も小さくなるサンプリング位相を、最適なサンプリング位相として選択するステップとを有するものである。   The video signal processing method according to the present invention is based on an A / D converter that converts an analog video signal input from a video signal source into a digital video signal according to a sampling clock, and a horizontal synchronization signal from the video signal source. A clock generation unit that generates a sampling clock, and a phase adjustment unit that selects an optimal sampling phase based on the digital video signal, the horizontal synchronization signal, and the vertical synchronization signal, and corrects the sampling clock. A video signal processing method executed by a video signal processing apparatus, wherein, in one frame of video data of a digital video signal, two locations where the difference between the data values of two consecutive pixels in the horizontal direction is increased are determined in descending order. And two consecutive two pixels, one for the previous pixel and the other for the subsequent pixel. On the other hand, the step of obtaining the variance for each of a plurality of subsequent frames and the sampling phase of the A / D conversion unit are changed, and two consecutive two pixels are again compared to the previous pixel, the other is the latter The process of obtaining the variance for a plurality of subsequent frames for each pixel is repeated a variable number of times of the sampling phase of the A / D converter, and the sampling phase with the smallest obtained variance is set as the optimum sampling phase. And a step of selecting.

この発明に係る映像信号処理装置および映像信号処理方法によれば、デジタル映像信号の映像データの1フレームにおいて、水平方向に連続する2ピクセルのデータ値の差が大きくなる箇所を、大きい順に2箇所決定し、2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求め、A/D変換部のサンプリング位相を変えて、再度2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求める処理を、A/D変換部のサンプリング位相の可変回数繰り返し、求められた分散が最も小さくなるサンプリング位相を、最適なサンプリング位相として選択する
のため、表示装置に表示される映像の乱れを抑制することができる。
According to the video signal processing apparatus and the video signal processing method according to the present invention, in one frame of video data of a digital video signal, two locations where the difference between the data values of two consecutive pixels in the horizontal direction is increased in descending order. Determine the variance for the following multiple frames for two consecutive two pixels, one for the previous pixel and the other for the subsequent pixel, and change the sampling phase of the A / D converter Then, again for two consecutive two pixels, one is for the previous pixel and the other is for the subsequent pixel. And the sampling phase with the smallest obtained variance is selected as the optimum sampling phase .
For this reason, it is possible to suppress the disturbance of the image displayed on the display device.

この発明の実施の形態1に係る映像信号処理装置を表示装置とともに示すブロック構成図である。It is a block block diagram which shows the video signal processing apparatus which concerns on Embodiment 1 of this invention with a display apparatus. この発明の実施の形態1に係る映像信号処理装置の位相調整部の機能を示す説明図である。It is explanatory drawing which shows the function of the phase adjustment part of the video signal processing apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位相調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the phase adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置に係る、アナログ映像信号における映像データの有効範囲と、DE信号が示すデジタル映像信号における映像データの有効範囲との関係を示す説明図である。It is explanatory drawing which shows the relationship between the effective range of the video data in an analog video signal, and the effective range of the video data in the digital video signal which DE signal shows regarding the video signal processing apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の機能を示す説明図である。It is explanatory drawing which shows the function of the position adjustment part of the video signal processing apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention. この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。It is a flowchart which shows the process of the position adjustment part of the video signal processing apparatus concerning Embodiment 1 of this invention.

以下、この発明に係る映像信号処理装置および映像信号処理方法の好適な実施の形態につき図面を用いて説明するが、各図において同一、または相当する部分については、同一符号を付して説明する。なお、この発明は、サンプリング位相の位相ずれや表示位置の位置ずれを、映像信号源から入力された信号を用いて調整するものである。   Hereinafter, preferred embodiments of a video signal processing apparatus and a video signal processing method according to the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts will be described with the same reference numerals. . In the present invention, the phase shift of the sampling phase and the position shift of the display position are adjusted using a signal input from the video signal source.

実施の形態1.
図1は、この発明の実施の形態1に係る映像信号処理装置を表示装置とともに示すブロック構成図である。図1において、映像信号処理装置10は、A/D変換部11、クロック生成部12、位相調整部13、イネーブル信号生成部14および位置調整部15を備えている。
Embodiment 1 FIG.
FIG. 1 is a block configuration diagram showing a video signal processing apparatus according to Embodiment 1 of the present invention together with a display apparatus. In FIG. 1, the video signal processing apparatus 10 includes an A / D conversion unit 11, a clock generation unit 12, a phase adjustment unit 13, an enable signal generation unit 14, and a position adjustment unit 15.

また、映像信号処理装置10は、PC等の映像信号源からのアナログ映像信号、水平同期信号および垂直同期信号が入力されて、デジタル映像信号、水平同期信号、垂直同期信号およびDE信号を表示装置20に出力する。   The video signal processing apparatus 10 receives an analog video signal, a horizontal synchronization signal, and a vertical synchronization signal from a video signal source such as a PC, and displays a digital video signal, a horizontal synchronization signal, a vertical synchronization signal, and a DE signal. 20 is output.

ここで、映像信号処理装置10は、例えばCPU(Central Processing Unit)、CPUおよびDSP(Digital Signal Processor)、FPGA(Field Programmable Gate Array)、またはASIC(Application Specific Integrated Circuit)等で構成されている。   Here, the video signal processing device 10 is configured by, for example, a CPU (Central Processing Unit), a CPU and a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), or an ASIC (Application Specific Integrated Integral Integrate Integral Integrate Integrative Integrate).

A/D変換部11は、位相調整部13からのサンプリングクロックに応じて、映像信号源からのアナログ映像信号をデジタル映像信号に変換して出力する。クロック生成部12は、PLL回路からなり、映像信号源からの水平同期信号に基づいて、サンプリングクロックを生成して出力する。   The A / D converter 11 converts the analog video signal from the video signal source into a digital video signal according to the sampling clock from the phase adjuster 13 and outputs the digital video signal. The clock generation unit 12 includes a PLL circuit, and generates and outputs a sampling clock based on the horizontal synchronization signal from the video signal source.

位相調整部13は、A/D変換部11からのデジタル映像信号と、映像信号源からの水平同期信号および垂直同期信号とに基づいて、最適なサンプリング位相を選択し、クロック生成部12からのサンプリングクロックを補正してA/D変換部11に出力することで、サンプリング位相の位相ずれを調整する。   The phase adjustment unit 13 selects an optimum sampling phase based on the digital video signal from the A / D conversion unit 11 and the horizontal synchronization signal and the vertical synchronization signal from the video signal source, and outputs from the clock generation unit 12. By correcting the sampling clock and outputting it to the A / D converter 11, the phase shift of the sampling phase is adjusted.

具体的には、位相調整部13は、デジタル映像信号の映像データの1フレームにおいて、水平方向に(1ライン上で)連続する2ピクセルのデータ値の差が大きくなる箇所を、大きい順に2箇所決定する。また、位相調整部13は、この2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム(例えば、5フレーム)分の分散を求める。   Specifically, the phase adjustment unit 13 determines two locations where the difference between the data values of two consecutive pixels in the horizontal direction (on one line) becomes large in one frame of the video data of the digital video signal in descending order. decide. Further, the phase adjusting unit 13 distributes a plurality of (for example, 5 frames) distributions of the two consecutive pixels, one for the previous pixel and the other for the subsequent pixel. Ask.

また、位相調整部13は、A/D変換部11のサンプリング位相を変えて、再度この2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求める。また、位相調整部13は、この処理をA/D変換部11のサンプリング位相の可変回数(例えば、64回)繰り返し、分散が最も小さくなるサンプリング位相を、最適なサンプリング位相として選択する。   In addition, the phase adjustment unit 13 changes the sampling phase of the A / D conversion unit 11 and again for these two consecutive two pixels, one for the previous pixel and the other for the subsequent pixel. Find the variance for each successive frame. The phase adjustment unit 13 repeats this process a variable number of times (for example, 64 times) of the sampling phase of the A / D conversion unit 11, and selects the sampling phase with the smallest variance as the optimum sampling phase.

図2は、この発明の実施の形態1に係る映像信号処理装置の位相調整部の機能を示す説明図である。なお、映像信号処理装置10には、アナログ映像信号として、黒でなくかつ単色でない静止画の映像データが入力される。   FIG. 2 is an explanatory diagram showing the function of the phase adjustment unit of the video signal processing apparatus according to Embodiment 1 of the present invention. Note that the video signal processing apparatus 10 receives video data of a still image that is not black and not monochrome as an analog video signal.

まず、位相調整部13は、1フレーム内で水平方向に連続する2ピクセルのデータ値(R/G/B個別)の差が最も大きい所と、次に大きい所の2箇所を1フレーム目に決定する。このとき、連続する2ピクセルのデータ値は、大から小、および小から大のどちらも対象とする。   First, the phase adjustment unit 13 determines that the difference between the data values (R / G / B individual) of two pixels continuous in the horizontal direction within one frame is the largest and the second largest is the first frame. decide. At this time, the data values of two consecutive pixels are targeted for both large to small and small to large.

続いて、位相調整部13は、決定した連続する2ピクセルの1箇所目は、先のピクセルの座標、連続する2ピクセルの2箇所目は、後のピクセルの座標について、以降5フレームの映像データから、それぞれの座標で映像データの分散を求める(図2(a))。   Subsequently, the phase adjustment unit 13 determines the first two determined consecutive pixels as the coordinates of the previous pixel, and the second consecutive two pixels as the coordinates of the subsequent pixel. Thus, the distribution of the video data is obtained at each coordinate (FIG. 2 (a)).

次に、位相調整部13は、A/D変換部11のサンプリング位相を変化させて、再度再度この2箇所の連続する2ピクセルについて、5フレーム分の映像データの分散を求める。続いて、位相調整部13は、この処理をA/D変換部11のサンプリング位相の可変回数(ここでは、64回)繰り返し、分散が最も小さくなるサンプリング位相を、最適なサンプリング位相として選択する(図2(b))。   Next, the phase adjustment unit 13 changes the sampling phase of the A / D conversion unit 11 and again obtains the distribution of video data for five frames for these two consecutive two pixels. Subsequently, the phase adjustment unit 13 repeats this processing a variable number of times (here, 64 times) of the sampling phase of the A / D conversion unit 11, and selects the sampling phase with the smallest variance as the optimum sampling phase ( FIG. 2 (b)).

ここで、図2(c)を参照しながら、サンプリング位相が映像データの前側の変化点にある場合について説明する。このとき、先のピクセルについては、サンプリング対象の映像データと、その1ピクセル前の映像データとのどちらかをサンプリングする。そのため、1ピクセル前のデータの大きさによって、サンプリングしたデータの時間変化が大きい場合もあれば小さい場合もある。すなわち、分散が大きくなる可能性がある。   Here, the case where the sampling phase is at the change point on the front side of the video data will be described with reference to FIG. At this time, for the previous pixel, either the video data to be sampled or the video data one pixel before is sampled. Therefore, depending on the size of the data one pixel before, the time variation of the sampled data may be large or small. That is, the dispersion may increase.

また、後のピクセルについては、サンプリング対象の映像データと、その1ピクセル前の、データの差が大きいはずの映像データとのどちらかをサンプリングする。そのため、サンプリングしたデータの時間変化が大きく、分散が大きくなる。   For the subsequent pixels, either the sampling target video data or the video data one pixel before that should have a large data difference is sampled. Therefore, the time change of the sampled data is large and the variance is large.

次に、図2(d)を参照しながら、サンプリング位相が映像データの後側の変化点にある場合について説明する。このとき、先のピクセルについては、サンプリング対象の映像データと、その1ピクセル後の、データの差が大きいはずの映像データとのどちらかをサンプリングする。そのため、サンプリングしたデータの時間変化が大きく、分散が大きくなる。   Next, a case where the sampling phase is at the change point on the rear side of the video data will be described with reference to FIG. At this time, for the previous pixel, either the video data to be sampled or the video data that is supposed to have a large data difference after one pixel is sampled. Therefore, the time change of the sampled data is large and the variance is large.

また、後のピクセルについては、サンプリング対象の映像データと、その1ピクセル後の映像データとのどちらかをサンプリングする。そのため、1ピクセル前のデータの大きさによって、サンプリングしたデータの時間変化が大きい場合もあれば小さい場合もある。すなわち、分散が大きくなる可能性がある。   For the subsequent pixels, either the sampling target video data or the video data after one pixel is sampled. Therefore, depending on the size of the data one pixel before, the time variation of the sampled data may be large or small. That is, the dispersion may increase.

これに対して、図2(e)に示されるように、サンプリング位相が最適である場合には、先のピクセルおよび後のピクセルの何れについても、サンプリングしたデータの時間変化が小さく、分散が小さくなる。   On the other hand, as shown in FIG. 2E, when the sampling phase is optimum, the temporal change of the sampled data is small and the variance is small for both the previous pixel and the subsequent pixel. Become.

図3は、この発明の実施の形態1に係る映像信号処理装置の処理を示すフローチャートである。
図3において、まず、位相調整部13は、変数iを初期値1に設定する(ステップS101)。
FIG. 3 is a flowchart showing processing of the video signal processing apparatus according to Embodiment 1 of the present invention.
In FIG. 3, first, the phase adjustment unit 13 sets a variable i to an initial value 1 (step S101).

続いて、位相調整部13は、変数i=1のサンプリング位相(CLKsample i)を選択し(ステップS102)、A/D変換を実行して(ステップS103)、水平方向に連続する2ピクセルのデータ値の差が大きくなる箇所を、大きい順に2箇所決定する(ステップS104)。   Subsequently, the phase adjustment unit 13 selects the sampling phase (CLKsample i) of the variable i = 1 (Step S102), executes A / D conversion (Step S103), and data of two pixels continuous in the horizontal direction. Two locations where the difference between the values becomes large are determined in descending order (step S104).

次に、位相調整部13は、変数i=1のサンプリング位相(CLKsample i)を選択し(ステップS105)、A/D変換を実行して(ステップS106)、連続する5フレーム分の映像データを読み出し(ステップS107)、連続する5フレーム分の分散を求める(ステップS108)。   Next, the phase adjustment unit 13 selects a sampling phase (CLKsample i) with a variable i = 1 (step S105), executes A / D conversion (step S106), and outputs video data for five consecutive frames. Reading (step S107), the variance for five consecutive frames is obtained (step S108).

続いて、位相調整部13は、変数iが64であるか否かを判定する(ステップS109)。
ステップS109において、変数iが64でない(すなわち、No)と判定された場合には、位相調整部13は、変数iにi+1を代入して(ステップS110)、ステップS105に移行する。
Subsequently, the phase adjustment unit 13 determines whether or not the variable i is 64 (step S109).
If it is determined in step S109 that the variable i is not 64 (that is, No), the phase adjustment unit 13 substitutes i + 1 for the variable i (step S110), and proceeds to step S105.

一方、ステップS109において、変数iが64である(すなわち、Yes)と判定された場合には、位相調整部13は、分散が最小となるサンプリング位相(CLKsample i)を、最適なサンプリング位相として選択し(ステップS111)、図3の処理を終了する。   On the other hand, if it is determined in step S109 that the variable i is 64 (that is, Yes), the phase adjustment unit 13 selects the sampling phase (CLKsample i) that minimizes the variance as the optimum sampling phase. (Step S111), and the process of FIG.

このように、位相調整部13が、隣接する2ピクセルを2箇所使用し、一方は先のピクセル、他方は後のピクセルの分散が最小となる場合のサンプリング位相を、最適なサンプリング位相として選択する。これにより、最適なタイミングでアナログ映像信号をサンプリングすることができる。   In this way, the phase adjustment unit 13 uses two adjacent pixels, and selects the sampling phase when the variance of the previous pixel is the minimum and the subsequent pixel is the minimum as the optimal sampling phase. . Thereby, an analog video signal can be sampled at an optimal timing.

図1に戻って、イネーブル信号生成部14は、映像信号源からの水平同期信号および垂直同期信号と、位置調整部15からのDEフィードバック信号とに基づいて、映像データの有効期間を示すDE信号を生成して出力する。   Returning to FIG. 1, the enable signal generation unit 14 is a DE signal indicating the valid period of the video data based on the horizontal and vertical synchronization signals from the video signal source and the DE feedback signal from the position adjustment unit 15. Is generated and output.

位置調整部15は、A/D変換部11からのデジタル映像信号と、映像信号源からの水平同期信号および垂直同期信号と、イネーブル信号生成部14からのDE信号とに基づいて、DE信号を補正するためのDEフィードバック信号をイネーブル信号生成部14に出力することで、表示位置の位置ずれを調整する。   The position adjustment unit 15 converts the DE signal based on the digital video signal from the A / D conversion unit 11, the horizontal and vertical synchronization signals from the video signal source, and the DE signal from the enable signal generation unit 14. By outputting a DE feedback signal for correction to the enable signal generation unit 14, the displacement of the display position is adjusted.

すなわち、位置調整部15は、デジタル映像信号の1フレーム分の映像データのうち、画像内の四隅の1ピクセルのデータ値(R/G/B個別)を確認し、データ値が0である(表示が黒である)か、0以外である(表示が黒でない)かによって、現在のタイミングで映像データを全て取り込んでいるか否かを判定する。   That is, the position adjustment unit 15 confirms the data values (R / G / B individual) of one pixel at the four corners in the image among the video data of one frame of the digital video signal, and the data value is 0 ( It is determined whether or not all the video data has been captured at the current timing depending on whether the display is black) or other than 0 (display is not black).

図4は、この発明の実施の形態1に係る映像信号処理装置に係る、DE信号が示すデジタル映像信号における映像データの有効範囲と、アナログ映像信号における映像データの有効範囲との関係を示す説明図である。   FIG. 4 is a diagram illustrating the relationship between the effective range of video data in the digital video signal indicated by the DE signal and the effective range of video data in the analog video signal, according to the video signal processing apparatus according to the first embodiment of the present invention. FIG.

図4において、デジタル映像信号における映像データの有効範囲は、表示装置20に表示されている表示領域を示し、アナログ映像信号における映像データの有効範囲は、理想的な映像データの表示位置を示している。   In FIG. 4, the effective range of the video data in the digital video signal indicates the display area displayed on the display device 20, and the effective range of the video data in the analog video signal indicates the ideal display position of the video data. Yes.

ここで、DE信号の開始位置(以下、「DE開始位置」と称する)およびDE信号のパルス幅(以下、「DEパルス幅」と称する)を変化させること、並びにDE信号の出力期間を設定するためのVブランク期間バックポーチ(以下、「バックポーチ」と略称する)およびVブランク期間フロントポーチ(以下、「フロントポーチ」と略称する)を変化させることにより、映像データの表示位置を、表示装置20に表示されている表示領域に一致させることができる。なお、DE開始位置、DEパルス幅、バックポーチおよびフロントポーチは、レジスタで設定可能である。   Here, the start position of the DE signal (hereinafter referred to as “DE start position”) and the pulse width of the DE signal (hereinafter referred to as “DE pulse width”) are changed, and the output period of the DE signal is set. V blank period back porch (hereinafter abbreviated as “back porch”) and V blank period front porch (hereinafter abbreviated as “front porch”) for changing the display position of video data 20 can be made to coincide with the display area displayed at 20. The DE start position, DE pulse width, back porch and front porch can be set by a register.

具体的には、位置調整部15は、垂直同期信号(Vsync)後の最初のDE信号の最初および最後のデータ、すなわちデジタル映像信号における映像データの有効範囲の左上のデータAおよび右上のデータB、並びに垂直同期信号(Vsync)前の最後のDE信号の最初および最後のデータ、すなわちデジタル映像信号における映像データの有効範囲の左下のデータCおよび右下のデータDを確認する。   Specifically, the position adjusting unit 15 first and last data of the first DE signal after the vertical synchronization signal (Vsync), that is, the upper left data A and the upper right data B of the effective range of the video data in the digital video signal. And the first and last data of the last DE signal before the vertical synchronization signal (Vsync), that is, the lower left data C and the lower right data D of the effective range of the video data in the digital video signal are confirmed.

図5は、この発明の実施の形態1に係る映像信号処理装置の位置調整部の機能を示す説明図である。なお、映像信号処理装置10には、アナログ映像信号として、黒でない静止画の映像データが入力される。   FIG. 5 is an explanatory diagram showing the function of the position adjustment unit of the video signal processing apparatus according to Embodiment 1 of the present invention. The video signal processing apparatus 10 receives video data of a still image that is not black as an analog video signal.

まず、位置調整部15は、データABCDすべてが0である(図5の1.)場合には、表示領域内で最初の0でないデータ値となる座標から、DE信号と表示位置との誤差を検出し、DE開始位置、バックポーチおよびフロントポーチを変化させて、データAが0でない状態にする。   First, when all the data ABCD is 0 (1 in FIG. 5), the position adjustment unit 15 calculates an error between the DE signal and the display position from the coordinates that are the first non-zero data value in the display area. Detect and change DE start position, back porch and front porch so that data A is not 0.

また、位置調整部15は、AもしくはCのデータが0であり、BもしくはDのデータが0でない(図5の2−1.)場合には、表示位置を左にずらすために、AもしくはCのデータが0以外となるまでDE開始位置を大きくする。このとき、DEパルス幅は変わらない。   Further, when the data of A or C is 0 and the data of B or D is not 0 (2-1 in FIG. 5), the position adjustment unit 15 uses A or C to shift the display position to the left. The DE start position is increased until the C data becomes other than 0. At this time, the DE pulse width does not change.

また、位置調整部15は、BもしくはDのデータが0であり、AもしくはCのデータが0でない(図5の2−2.)場合には、表示位置を右にずらすために、AもしくはCのデータが0以外となるまでDE開始位置を小さくする。このとき、DEパルス幅は変わらない。   In addition, when the data of B or D is 0 and the data of A or C is not 0 (2-2 in FIG. 5), the position adjustment unit 15 uses A or The DE start position is decreased until the C data becomes other than 0. At this time, the DE pulse width does not change.

また、位置調整部15は、Aのデータが0であり、Cのデータが0でない(図5の3−1.)場合には、表示位置を上にずらすために、Aのデータが0以外となるまでバックポーチを大きくする。このとき、同時に同じ値だけフロントポーチを小さくする。   In addition, when the data of A is 0 and the data of C is not 0 (3-1 in FIG. 5), the position adjustment unit 15 determines that the data of A is other than 0 in order to shift the display position upward. Increase the back porch until At this time, the front porch is reduced by the same value at the same time.

また、位置調整部15は、Cのデータが0であり、Aのデータが0でない(図5の3−2.)場合には、表示位置を下にずらすために、Aのデータが0となる前までバックポーチを小さくする。このとき、同時に同じ値だけフロントポーチを大きくする。   Further, when the C data is 0 and the A data is not 0 (3-2 in FIG. 5), the position adjustment unit 15 sets the A data to 0 in order to shift the display position downward. Reduce the back porch until it becomes. At this time, the front porch is increased by the same value at the same time.

また、位置調整部15は、Cのデータが0である(図5の4−1.)場合には、表示領域の縦方向長さと表示位置の縦方向長さとを一致させるために、Cのデータが0以外となるまでフロントポーチを大きくする。   Further, when the C data is 0 (4-1 in FIG. 5), the position adjusting unit 15 sets the C length to match the vertical length of the display area and the vertical length of the display position. Increase the front porch until the data is non-zero.

また、位置調整部15は、Cのデータが0でない(図5の4−2.)場合には、表示領域の縦方向長さと表示位置の縦方向長さとを一致させるために、Cのデータが0となる前までVブランク期間フロントポーチを小さくする。   In addition, when the C data is not 0 (4-2 in FIG. 5), the position adjusting unit 15 sets the C data to match the vertical length of the display area with the vertical length of the display position. The front pouch is reduced until the V becomes zero before the V blank period.

また、位置調整部15は、Bのデータが0である(図5の5−1.)場合には、表示領域の横方向長さと表示位置の横方向長さとを一致させるために、Bのデータが0以外となるまでDEパルス幅を小さくする。   Further, when the data of B is 0 (5-1 in FIG. 5), the position adjusting unit 15 sets the horizontal length of the display area and the horizontal length of the display position in order to match the B length. Decrease the DE pulse width until the data is non-zero.

また、位置調整部15は、Bのデータが0でない(図5の5−2.)場合には、表示領域の横方向長さと表示位置の横方向長さとを一致させるために、Bのデータが0となる前までDEパルス幅を大きくする。   Further, when the B data is not 0 (5-2 in FIG. 5), the position adjustment unit 15 sets the B data to match the horizontal length of the display area with the horizontal length of the display position. The DE pulse width is increased until becomes zero.

図6〜16は、この発明の実施の形態1に係る映像信号処理装置の位置調整部の処理を示すフローチャートである。なお、このフローチャートの動作の主体は、すべて位置調整部15なので、記載を省略する。
図6〜16において、まず、表示中の表示領域の四隅のデータの有無を確認する(ステップS201)。
6 to 16 are flowcharts showing processing of the position adjustment unit of the video signal processing apparatus according to Embodiment 1 of the present invention. Since all the operations in this flowchart are the position adjustment unit 15, description thereof is omitted.
6 to 16, first, the presence or absence of data at the four corners of the display area being displayed is confirmed (step S201).

続いて、四隅のデータの何れかが非0である(0でない)か否かを判定する(ステップS202)。
ステップS202において、四隅のデータの何れかが非0という条件が成立しない(すなわち、No)と判定された場合には、有効データ開始座標を確認し(ステップS203)、表示位置を上方向に有効データ開始座標(ライン)分移動させ(ステップS204)、表示位置を左側に有効データ開始座標(ピクセル)分移動させて(ステップS205)、ステップS201に移行する。
Subsequently, it is determined whether any of the data at the four corners is non-zero (not zero) (step S202).
If it is determined in step S202 that any of the four corner data is not non-zero (ie, No), the valid data start coordinates are confirmed (step S203), and the display position is valid upward. The data is moved by the data start coordinate (line) (step S204), the display position is moved to the left by the valid data start coordinate (pixel) (step S205), and the process proceeds to step S201.

一方、ステップS202において、四隅のデータの何れかが非0である(すなわち、Yes)と判定された場合には、左上と左下が0かつ右上もしくは右下が非0であるか否かを判定する(ステップS206)。   On the other hand, if it is determined in step S202 that any of the data at the four corners is non-zero (that is, Yes), it is determined whether the upper left and lower left are 0 and the upper right or lower right is non-zero. (Step S206).

ステップS206において、左上と左下が0かつ右上もしくは右下が非0である(すなわち、Yes)と判定された場合には、表示位置を左側に1ピクセル移動させて(ステップS207)、表示中の表示領域の四隅のデータの有無を確認する(ステップS208)。   If it is determined in step S206 that the upper left and lower left are 0 and the upper right or lower right is non-zero (ie, Yes), the display position is moved to the left by one pixel (step S207) The presence or absence of data at the four corners of the display area is confirmed (step S208).

次に、左上かつ左下が0であるか否かを判定する(ステップS209)。
ステップS209において、左上かつ左下が0である(すなわち、Yes)と判定された場合には、ステップS207に移行する。
Next, it is determined whether or not upper left and lower left are 0 (step S209).
If it is determined in step S209 that the upper left and the lower left are 0 (that is, Yes), the process proceeds to step S207.

一方、ステップS209において、左上かつ左下が0という条件が成立しない(すなわち、No)と判定された場合には、左上が0であるか否かが判定される(ステップS210)。なお、ステップS209でNoとなった場合に、表示領域の左端と表示位置の左端とが一致している。   On the other hand, if it is determined in step S209 that the condition that the upper left and the lower left are 0 is not satisfied (that is, No), it is determined whether the upper left is 0 (step S210). In addition, when it becomes No in step S209, the left end of a display area and the left end of a display position correspond.

ステップS210において、左上が0である(すなわち、Yes)と判定された場合には、表示位置を上方向に1ライン移動させて(ステップS211)、表示中の表示領域の四隅のデータの有無を確認して(ステップS212)、ステップS210に移行する。   If it is determined in step S210 that the upper left is 0 (that is, Yes), the display position is moved upward by one line (step S211), and the presence / absence of data at the four corners of the display area being displayed is determined. After confirming (step S212), the process proceeds to step S210.

一方、ステップS210において、左上が0という条件が成立しない(すなわち、No)と判定された場合には、表示位置を下方向に1ライン移動させて(ステップS213)、表示中の表示領域の四隅のデータの有無を確認して(ステップS214)、左上が0であるか否かが判定される(ステップS215)。   On the other hand, if it is determined in step S210 that the condition that the upper left is 0 is not satisfied (ie, No), the display position is moved down one line (step S213), and the four corners of the display area being displayed are displayed. Is confirmed (step S214), and it is determined whether the upper left is 0 (step S215).

ステップS215において、左上が0という条件が成立しない(すなわち、No)と判定された場合には、ステップS213に移行する。
一方、ステップS215において、左上が0である(すなわち、Yes)と判定された場合には、表示位置を上方向に1ライン移動させる(ステップS216)。これにより、表示領域の左上と表示位置の左上とが一致する。
If it is determined in step S215 that the condition that the upper left is 0 is not satisfied (that is, No), the process proceeds to step S213.
On the other hand, if it is determined in step S215 that the upper left is 0 (that is, Yes), the display position is moved upward by one line (step S216). As a result, the upper left of the display area matches the upper left of the display position.

続いて、表示中の表示領域の四隅のデータの有無を確認して(ステップS217)、左下が0であるか否かが判定される(ステップS218)。
ステップS218において、左下が0である(すなわち、Yes)と判定された場合には、フロントポーチにフロントポーチ+1を代入して(ステップS219)、ステップS217に移行する。
Subsequently, the presence or absence of data at the four corners of the display area being displayed is confirmed (step S217), and it is determined whether the lower left is 0 (step S218).
If it is determined in step S218 that the lower left is 0 (that is, Yes), front porch + 1 is substituted for the front porch (step S219), and the process proceeds to step S217.

一方、ステップS218において、左下が0という条件が成立しない(すなわち、No)と判定された場合には、フロントポーチにフロントポーチ−1を代入して(ステップS220)、表示中の表示領域の四隅のデータの有無を確認して(ステップS221)、左下が0であるか否かが判定される(ステップS222)。   On the other hand, if it is determined in step S218 that the condition that the lower left is 0 is not satisfied (ie, No), front porch-1 is substituted for the front porch (step S220), and the four corners of the display area being displayed are displayed. Is checked (step S221), and it is determined whether the lower left is 0 (step S222).

ステップS222において、左下が0という条件が成立しない(すなわち、No)と判定された場合には、ステップS220に移行する。
一方、ステップS222において、左下が0である(すなわち、Yes)と判定された場合には、フロントポーチにフロントポーチ+1を代入する(ステップS223)。これにより、表示領域の左上および左下と表示位置の左上および左下とが一致する。
If it is determined in step S222 that the condition that the lower left is 0 is not satisfied (ie, No), the process proceeds to step S220.
On the other hand, if it is determined in step S222 that the lower left is 0 (that is, Yes), front porch + 1 is substituted for the front porch (step S223). As a result, the upper left and lower left of the display area coincides with the upper left and lower left of the display position.

次に、表示中の表示領域の四隅のデータの有無を確認して(ステップS224)、右上が0であるか否かが判定される(ステップS225)。
ステップS225において、右上が0である(すなわち、Yes)と判定された場合には、DEパルス幅にDEパルス幅−1を代入して(ステップS226)、ステップS224に移行する。
Next, the presence or absence of data at the four corners of the display area being displayed is checked (step S224), and it is determined whether or not the upper right is 0 (step S225).
If it is determined in step S225 that the upper right is 0 (that is, Yes), DE pulse width-1 is substituted for the DE pulse width (step S226), and the process proceeds to step S224.

一方、ステップS225において、右上が0という条件が成立しない(すなわち、No)と判定された場合には、DEパルス幅にDEパルス幅+1を代入して(ステップS227)、表示中の表示領域の四隅のデータの有無を確認して(ステップS228)、右上が0であるか否かが判定される(ステップS229)。   On the other hand, if it is determined in step S225 that the condition that the upper right is 0 is not satisfied (that is, No), DE pulse width + 1 is substituted for DE pulse width (step S227), and the display area being displayed is displayed. The presence or absence of data at the four corners is confirmed (step S228), and it is determined whether or not the upper right is 0 (step S229).

ステップS229において、右上が0という条件が成立しない(すなわち、No)と判定された場合には、ステップS227に移行する。
一方、ステップS229において、右上が0である(すなわち、Yes)と判定された場合には、DEパルス幅にDEパルス幅−1を代入して(ステップS230)、処理を終了する。これにより、表示領域の上下左右と表示位置の上下左右とが一致する。
If it is determined in step S229 that the condition that the upper right is 0 is not satisfied (that is, No), the process proceeds to step S227.
On the other hand, if it is determined in step S229 that the upper right is 0 (that is, Yes), DE pulse width −1 is substituted for the DE pulse width (step S230), and the process ends. As a result, the top / bottom / left / right of the display area matches the top / bottom / left / right of the display position.

一方、ステップS206において、左上と左下が0かつ右上もしくは右下が非0という条件が成立しない(すなわち、No)と判定された場合には、左上もしくは左下が非0かつ右上と右下が0であるか否かを判定する(ステップS231)。   On the other hand, if it is determined in step S206 that the upper left and lower left are 0 and the upper right or lower right is non-zero (ie, No), the upper left or lower left is non-zero and the upper right and lower right is 0. It is determined whether or not (step S231).

ステップS231において、左上もしくは左下が非0かつ右上と右下が0である(すなわち、Yes)と判定された場合には、表示位置を右側に1ピクセル移動させて(ステップS232)、表示中の表示領域の四隅のデータの有無を確認する(ステップS233)。   If it is determined in step S231 that the upper left or lower left is non-zero and the upper right and lower right are 0 (that is, Yes), the display position is moved to the right by one pixel (step S232), The presence or absence of data at the four corners of the display area is confirmed (step S233).

続いて、左上かつ左下が0であるか否かを判定する(ステップS234)。
ステップS234において、左上かつ左下が0という条件が成立しない(すなわち、No)と判定された場合には、ステップS232に移行する。
Subsequently, it is determined whether or not the upper left and lower left are 0 (step S234).
If it is determined in step S234 that the condition that the upper left and the lower left are 0 is not satisfied (that is, No), the process proceeds to step S232.

一方、ステップS234において、左上かつ左下が0である(すなわち、Yes)と判定された場合には、表示位置を左側に1ピクセル移動させる(ステップS235)。これにより、表示領域の左端と表示位置の左端とが一致する。   On the other hand, if it is determined in step S234 that the upper left and lower left are 0 (that is, Yes), the display position is moved to the left by one pixel (step S235). As a result, the left end of the display area matches the left end of the display position.

次に、上述したステップS210〜230の処理により、表示領域の左上と表示位置の左上とが一致し、表示領域の左上および左下と表示位置の左上および左下とが一致し、表示領域の上下左右と表示位置の上下左右とが一致する。   Next, the upper left and lower left of the display area coincide with the upper left and lower left of the display area and the upper left and lower left of the display position coincide with each other by the above-described processing of steps S210 to 230. And the top, bottom, left and right of the display position match.

一方、ステップS231において、左上もしくは左下が非0かつ右上と右下が0という条件が成立しない(すなわち、No)と判定された場合には、左上と右上が非0かつ左下と右下が0であるか否かが判定される(ステップS236)。   On the other hand, if it is determined in step S231 that the upper left or lower left is non-zero and the upper right and lower right are not 0 (ie, No), the upper left and upper right are non-zero and the lower left and lower right are zero. It is determined whether or not (step S236).

ステップS236において、左上と右上が非0かつ左下と右下が0である(すなわち、Yes)と判定された場合には、表示位置を右側に1ピクセル移動させて(ステップS237)、表示中の表示領域の四隅のデータの有無を確認し(ステップS238)、左上が0であるか否かが判定される(ステップS239)。   If it is determined in step S236 that the upper left and upper right are non-zero and the lower left and lower right are 0 (ie, Yes), the display position is moved to the right by one pixel (step S237) The presence or absence of data at the four corners of the display area is confirmed (step S238), and it is determined whether or not the upper left is 0 (step S239).

ステップS239において、左上が0という条件が成立しない(すなわち、No)と判定された場合には、ステップS237に移行する。
一方、ステップS239において、左上が0である(すなわち、Yes)と判定された場合には、表示位置を左側に1ピクセル移動させる(ステップS240)。これにより、表示領域の左端と表示位置の左端とが一致する。
If it is determined in step S239 that the condition that the upper left is 0 is not satisfied (that is, No), the process proceeds to step S237.
On the other hand, if it is determined in step S239 that the upper left is 0 (ie, Yes), the display position is moved to the left by one pixel (step S240). As a result, the left end of the display area matches the left end of the display position.

続いて、表示中の表示領域の四隅のデータの有無を確認して(ステップS241)、左上が0であるか否かが判定される(ステップS242)。
ステップS242において、左上が0である(すなわち、Yes)と判定された場合には、表示位置を下方向に1ライン移動させて(ステップS243)、ステップS241に移行する。
Subsequently, the presence or absence of data at the four corners of the display area being displayed is confirmed (step S241), and it is determined whether the upper left is 0 (step S242).
If it is determined in step S242 that the upper left is 0 (that is, Yes), the display position is moved downward by one line (step S243), and the process proceeds to step S241.

一方、ステップS242において、左上が0という条件が成立しない(すなわち、No)と判定された場合には、表示位置を上方向に1ライン移動させる(ステップS244)。これにより、表示領域の左上と表示位置の左上とが一致する。   On the other hand, if it is determined in step S242 that the condition that the upper left is 0 is not satisfied (ie, No), the display position is moved upward by one line (step S244). As a result, the upper left of the display area matches the upper left of the display position.

次に、表示中の表示領域の四隅のデータの有無を確認して(ステップS245)、左下が0であるか否かが判定される(ステップS246)。
ステップS246において、左下が0である(すなわち、Yes)と判定された場合には、フロントポーチにフロントポーチ+1を代入して(ステップS247)、ステップS245に移行する。
Next, the presence or absence of data at the four corners of the display area being displayed is checked (step S245), and it is determined whether the lower left is 0 (step S246).
If it is determined in step S246 that the lower left is 0 (that is, Yes), the front porch + 1 is substituted for the front porch (step S247), and the process proceeds to step S245.

一方、ステップS246において、左下が0という条件が成立しない(すなわち、No)と判定された場合には、この段階で、表示領域の左上および左下と表示位置の左上および左下とが一致し、上述したステップS224〜230の処理により、表示領域の上下左右と表示位置の上下左右とが一致する。   On the other hand, if it is determined in step S246 that the condition that the lower left is 0 is not satisfied (that is, No), at this stage, the upper left and lower left of the display area coincide with the upper left and lower left of the display position. By the processing of steps S224 to 230, the up / down / left / right of the display area matches the up / down / left / right of the display position.

一方、ステップS236において、左上と右上が非0かつ左下と右下が0という条件が成立しない(すなわち、No)と判定された場合には、左上と右上が0かつ左下と右下が非0であるか否かが判定される(ステップS248)。   On the other hand, if it is determined in step S236 that the upper left and upper right are non-zero and the lower left and lower right are not 0 (ie, No), the upper left and upper right are 0 and the lower left and lower right are non-zero. It is determined whether or not (step S248).

ステップS248において、左上と右上が0かつ左下と右下が非0である(すなわち、Yes)と判定された場合には、表示位置を右側に1ピクセル移動させて(ステップS249)、表示中の表示領域の四隅のデータの有無を確認し(ステップS250)、左下が0であるか否かが判定される(ステップS251)。   If it is determined in step S248 that the upper left and upper right are 0 and the lower left and lower right are non-zero (that is, Yes), the display position is moved to the right by one pixel (step S249), The presence or absence of data at the four corners of the display area is confirmed (step S250), and it is determined whether the lower left is 0 (step S251).

ステップS251において、左下が0という条件が成立しない(すなわち、No)と判定された場合には、ステップS249に移行する。
一方、ステップS251において、左下が0である(すなわち、Yes)と判定された場合には、表示位置を左側に1ピクセル移動させる(ステップS252)。これにより、表示領域の左端と表示位置の左端とが一致する。
If it is determined in step S251 that the condition that the lower left is 0 is not satisfied (that is, No), the process proceeds to step S249.
On the other hand, if it is determined in step S251 that the lower left is 0 (ie, Yes), the display position is moved to the left by one pixel (step S252). As a result, the left end of the display area matches the left end of the display position.

続いて、表示中の表示領域の四隅のデータの有無を確認して(ステップS253)、左上が0であるか否かが判定される(ステップS254)。
ステップS254において、左上が0である(すなわち、Yes)と判定された場合には、表示位置を上方向に1ライン移動させて(ステップS255)、ステップS253に移行する。
Subsequently, the presence or absence of data at the four corners of the display area being displayed is confirmed (step S253), and it is determined whether the upper left is 0 (step S254).
If it is determined in step S254 that the upper left is 0 (that is, Yes), the display position is moved upward by one line (step S255), and the process proceeds to step S253.

一方、ステップS254において、左上が0という条件が成立しない(すなわち、No)と判定された場合には、この段階で、表示領域の左上と表示位置の左上とが一致し、ステップS245〜247の処理により、表示領域の左上および左下と表示位置の左上および左下とが一致し、ステップS224〜230の処理により、表示領域の上下左右と表示位置の上下左右とが一致する。   On the other hand, if it is determined in step S254 that the condition that the upper left is 0 is not satisfied (that is, No), at this stage, the upper left of the display area matches the upper left of the display position, and steps S245 to 247 are performed. Through the processing, the upper left and lower left of the display area coincide with the upper left and lower left of the display position, and the upper and lower left and right of the display area and the upper and lower left and right of the display position coincide with each other through the processing of steps S224 to 230.

一方、ステップS248において、左上と右上が0かつ左下と右下が非0という条件が成立しない(すなわち、No)と判定された場合には、表示位置を右側に1ピクセル移動させて(ステップS256)、表示中の表示領域の四隅のデータの有無を確認し(ステップS257)、左上かつ左下が0であるか否かが判定される(ステップS258)。   On the other hand, if it is determined in step S248 that the upper left and upper right are 0 and the lower left and lower right are non-zero (ie, No), the display position is moved to the right by one pixel (step S256). ), The presence or absence of data at the four corners of the display area being displayed is confirmed (step S257), and it is determined whether the upper left and the lower left are 0 (step S258).

ステップS258において、左上かつ左下が0という条件が成立しない(すなわち、No)と判定された場合には、ステップS256に移行する。
一方、ステップS258において、左上かつ左下が0である(すなわち、Yes)と判定された場合には、表示位置を左側に1ピクセル移動させる(ステップS259)。これにより、表示領域の左端と表示位置の左端とが一致する。
If it is determined in step S258 that the condition that the upper left and lower left are 0 is not satisfied (ie, No), the process proceeds to step S256.
On the other hand, if it is determined in step S258 that the upper left and lower left are 0 (that is, Yes), the display position is moved to the left by one pixel (step S259). As a result, the left end of the display area matches the left end of the display position.

次に、表示位置を下方向に1ライン移動させて(ステップS260)、表示中の表示領域の四隅のデータの有無を確認して(ステップS261)、左上が0であるか否かが判定される(ステップS262)。   Next, the display position is moved downward by one line (step S260), the presence or absence of data at the four corners of the display area being displayed is checked (step S261), and it is determined whether the upper left is zero. (Step S262).

ステップS262において、左上が0という条件が成立しない(すなわち、No)と判定された場合には、ステップS260に移行する。
一方、ステップS262において、左上が0である(すなわち、Yes)と判定された場合には、表示位置を上方向に1ライン移動させる(ステップS263)。これにより、表示領域の左上と表示位置の左上とが一致する。
If it is determined in step S262 that the condition that the upper left is 0 is not satisfied (that is, No), the process proceeds to step S260.
On the other hand, if it is determined in step S262 that the upper left is 0 (that is, Yes), the display position is moved upward by one line (step S263). As a result, the upper left of the display area matches the upper left of the display position.

続いて、上述したステップS245〜247の処理により、表示領域の左上および左下と表示位置の左上および左下とが一致し、ステップS224〜230の処理により、表示領域の上下左右と表示位置の上下左右とが一致する。   Subsequently, the upper left and lower left of the display area and the upper left and lower left of the display position coincide with each other by the processing of steps S245 to 247 described above, and the upper and lower left and right of the display area and the upper and lower left and right of the display position are processed by the processing of steps S224 to 230. Matches.

このように、位置調整部15が、デジタル映像信号の1フレーム分の映像データのうち、画像内の四隅の1ピクセルのデータ値を確認し、データ値が0であるか、0以外であるかに応じて、DE信号の開始位置およびパルス幅、並びにDE信号のVブランク期間バックポーチおよびVブランク期間フロントポーチを変化させる。これにより、アナログ信号のサンプリング時に入力データを全て取り込むことができる。   In this way, the position adjustment unit 15 checks the data value of one pixel at the four corners in the image from the video data for one frame of the digital video signal, and whether the data value is 0 or not. In response, the start position and pulse width of the DE signal, and the V blank period back porch and the V blank period front porch of the DE signal are changed. Thereby, it is possible to capture all input data when sampling an analog signal.

以上のように、実施の形態1によれば、デジタル映像信号の映像データの1フレームにおいて、水平方向に連続する2ピクセルのデータ値の差が大きくなる箇所を、大きい順に2箇所決定し、2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求め、A/D変換部のサンプリング位相を変えて、再度2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求める処理を、A/D変換部のサンプリング位相の可変回数繰り返し、求められた分散が最も小さくなるサンプリング位相を、最適なサンプリング位相として選択する。
また、実施の形態1によれば、デジタル映像信号の1フレーム分の映像データのうち、画像内の四隅の1ピクセルのデータ値を確認し、データ値が0であるか、0以外であるかに応じて、DE信号の開始位置およびパルス幅、並びにDE信号のVブランク期間バックポーチおよびVブランク期間フロントポーチを変化させる。
そのため、表示装置に表示される映像の乱れを抑制することができる。
As described above, according to the first embodiment, in one frame of video data of a digital video signal, two locations where the difference between the data values of two consecutive pixels in the horizontal direction is increased are determined in descending order. With respect to two consecutive pixels, one is for the previous pixel and the other is for the subsequent pixel, the variances for the following multiple frames are obtained, the sampling phase of the A / D converter is changed, and 2 again For two consecutive pixels, one is for the previous pixel, and the other is for the subsequent pixel. The process for obtaining the variance for a plurality of subsequent frames is repeated a number of times for the sampling phase of the A / D converter. The sampling phase with the smallest obtained variance is selected as the optimum sampling phase.
Further, according to the first embodiment, among the video data for one frame of the digital video signal, the data value of one pixel at the four corners in the image is confirmed, and whether the data value is 0 or other than 0. In response, the start position and pulse width of the DE signal, and the V blank period back porch and the V blank period front porch of the DE signal are changed.
Therefore, it is possible to suppress the disturbance of the video displayed on the display device.

10 映像信号処理装置、11 A/D変換部、12 クロック生成部、13 位相調整部、14 イネーブル信号生成部、15 位置調整部、20 表示装置。   DESCRIPTION OF SYMBOLS 10 Video signal processing apparatus, 11 A / D conversion part, 12 Clock generation part, 13 Phase adjustment part, 14 Enable signal generation part, 15 Position adjustment part, 20 Display apparatus.

Claims (3)

サンプリングクロックに応じて、映像信号源から入力されたアナログ映像信号をデジタル映像信号に変換するA/D変換部と、
前記映像信号源からの水平同期信号に基づいて、前記サンプリングクロックを生成するクロック生成部と、
前記デジタル映像信号と、前記水平同期信号および垂直同期信号とに基づいて、最適なサンプリング位相を選択し、前記サンプリングクロックを補正する位相調整部と、を備え、
前記位相調整部は、
前記デジタル映像信号の映像データの1フレームにおいて、水平方向に連続する2ピクセルのデータ値の差が大きくなる箇所を、大きい順に2箇所決定し、
前記2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求め、
前記A/D変換部のサンプリング位相を変えて、再度前記2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求める処理を、前記A/D変換部のサンプリング位相の可変回数繰り返し、
求められた分散が最も小さくなるサンプリング位相を、最適なサンプリング位相として選択する
映像信号処理装置。
An A / D converter that converts an analog video signal input from a video signal source into a digital video signal in accordance with a sampling clock;
A clock generation unit that generates the sampling clock based on a horizontal synchronization signal from the video signal source;
A phase adjustment unit that selects an optimal sampling phase based on the digital video signal and the horizontal and vertical synchronization signals and corrects the sampling clock; and
The phase adjusting unit is
In one frame of the video data of the digital video signal, two locations where the difference between the data values of two consecutive pixels in the horizontal direction is increased are determined in descending order,
Regarding the two consecutive two pixels, one is for the previous pixel, and the other is for the subsequent pixel, and the variance for the following multiple frames is obtained.
The sampling phase of the A / D conversion unit is changed, and again for the two consecutive two pixels, dispersion is performed for a plurality of subsequent frames, one for the previous pixel and the other for the subsequent pixel. The process to obtain is repeated a variable number of times of the sampling phase of the A / D converter,
A video signal processing apparatus that selects a sampling phase with the smallest obtained variance as an optimum sampling phase.
前記映像信号源からの水平同期信号および垂直同期信号と、DEフィードバック信号とに基づいて、映像データの有効期間を示すDE信号を生成するイネーブル信号生成部と、
前記A/D変換部からの前記デジタル映像信号と、前記水平同期信号および垂直同期信号と、前記イネーブル信号生成部からの前記DE信号とに基づいて、前記DE信号を補正するためのDEフィードバック信号を前記イネーブル信号生成部に出力する位置調整部と、をさらに備え、
前記位置調整部は、
前記デジタル映像信号の1フレーム分の映像データのうち、画像内の四隅の1ピクセルのデータ値を確認し、
前記データ値が0であるか、0以外であるかに応じて、前記DE信号の開始位置およびパルス幅、並びに前記DE信号のVブランク期間バックポーチおよびVブランク期間フロントポーチを変化させる
請求項1に記載の映像信号処理装置。
An enable signal generating unit that generates a DE signal indicating an effective period of video data based on a horizontal synchronization signal and a vertical synchronization signal from the video signal source and a DE feedback signal;
A DE feedback signal for correcting the DE signal based on the digital video signal from the A / D conversion unit, the horizontal and vertical synchronization signals, and the DE signal from the enable signal generation unit. A position adjusting unit that outputs the enable signal to the enable signal generating unit,
The position adjusting unit is
Among the video data for one frame of the digital video signal, check the data value of one pixel at the four corners in the image,
The start position and pulse width of the DE signal, and the V blank period back porch and the V blank period front porch of the DE signal are changed according to whether the data value is 0 or non-zero. 2. A video signal processing apparatus according to 1.
サンプリングクロックに応じて、映像信号源から入力されたアナログ映像信号をデジタル映像信号に変換するA/D変換部と、
前記映像信号源からの水平同期信号に基づいて、前記サンプリングクロックを生成するクロック生成部と、
前記デジタル映像信号と、前記水平同期信号および垂直同期信号とに基づいて、最適なサンプリング位相を選択し、前記サンプリングクロックを補正する位相調整部と、を備えた映像信号処理装置で実行される映像信号処理方法であって、
前記デジタル映像信号の映像データの1フレームにおいて、水平方向に連続する2ピクセルのデータ値の差が大きくなる箇所を、大きい順に2箇所決定するステップと、
前記2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求めるステップと、
前記A/D変換部のサンプリング位相を変えて、再度前記2箇所の連続する2ピクセルについて、一方は先のピクセルに対して、他方は後のピクセルに対して、それぞれ続く複数フレーム分の分散を求める処理を、前記A/D変換部のサンプリング位相の可変回数繰り返すステップと、
求められた分散が最も小さくなるサンプリング位相を、最適なサンプリング位相として選択するステップと、
を有する映像信号処理方法。
An A / D converter that converts an analog video signal input from a video signal source into a digital video signal in accordance with a sampling clock;
A clock generation unit that generates the sampling clock based on a horizontal synchronization signal from the video signal source;
A video executed by a video signal processing device comprising: a phase adjustment unit that selects an optimal sampling phase and corrects the sampling clock based on the digital video signal and the horizontal synchronization signal and the vertical synchronization signal A signal processing method comprising:
Determining two locations in descending order of the difference between the data values of two consecutive pixels in the horizontal direction in one frame of the video data of the digital video signal;
For the two consecutive two pixels, one for the previous pixel and the other for the subsequent pixel, determining the variance for the following multiple frames respectively;
The sampling phase of the A / D conversion unit is changed, and again for the two consecutive two pixels, dispersion is performed for a plurality of subsequent frames, one for the previous pixel and the other for the subsequent pixel. Repeating the process of obtaining the sampling phase of the A / D conversion unit a variable number of times;
Selecting the sampling phase with the smallest obtained variance as the optimum sampling phase;
A video signal processing method comprising:
JP2015213011A 2015-10-29 2015-10-29 Video signal processing apparatus and video signal processing method Active JP6189396B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015213011A JP6189396B2 (en) 2015-10-29 2015-10-29 Video signal processing apparatus and video signal processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015213011A JP6189396B2 (en) 2015-10-29 2015-10-29 Video signal processing apparatus and video signal processing method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017029839A Division JP2017121069A (en) 2017-02-21 2017-02-21 Video signal processor and video signal processing method

Publications (2)

Publication Number Publication Date
JP2017085402A JP2017085402A (en) 2017-05-18
JP6189396B2 true JP6189396B2 (en) 2017-08-30

Family

ID=58713355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015213011A Active JP6189396B2 (en) 2015-10-29 2015-10-29 Video signal processing apparatus and video signal processing method

Country Status (1)

Country Link
JP (1) JP6189396B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257739B (en) * 2021-12-11 2024-04-26 苏州华兴源创科技股份有限公司 Video data rate adjustment method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3673303B2 (en) * 1995-07-27 2005-07-20 株式会社日立製作所 Video signal processing device
JP2000276092A (en) * 1999-03-23 2000-10-06 Matsushita Electric Ind Co Ltd Dot clock reproducing device
JP6140933B2 (en) * 2012-04-04 2017-06-07 キヤノン株式会社 Display device and control method thereof

Also Published As

Publication number Publication date
JP2017085402A (en) 2017-05-18

Similar Documents

Publication Publication Date Title
US8189941B2 (en) Image processing device, display device, image processing method, and program
JP3673303B2 (en) Video signal processing device
TWI397055B (en) Mode detection circuit and method
JP2006014336A (en) Image processing apparatus and method and computer readable storage medium
US20020191859A1 (en) Contour correcting circuit and contour correcting method
JP4656836B2 (en) Synchronous clock generation apparatus and synchronous clock generation method
JP6189396B2 (en) Video signal processing apparatus and video signal processing method
JP2017121069A (en) Video signal processor and video signal processing method
KR20040058006A (en) Video signal processing apparatus
JP5159651B2 (en) Image processing apparatus, image processing method, and image display apparatus
US20060045375A1 (en) Image processing device, image display device, image processing method, and image display method
JP5398554B2 (en) Display device
JPH11177847A (en) Image adjustment method and automatic image adjustment device
JP4467416B2 (en) Tone correction device
US8421920B2 (en) Automatic quantization clock phase adjustable display apparatus
US8107008B2 (en) Method and system of automatically correcting a sampling clock in a digital video system
JP2008017321A (en) Image processing apparatus and image processing method
JP4258976B2 (en) Image processing apparatus and processing method
JP6090193B2 (en) Motion detection processing device, image processing device, imaging device, and motion detection processing method
JP4787470B2 (en) Method of operating image display apparatus and image display apparatus
JP5027047B2 (en) Video signal processing device
JP4114630B2 (en) Video signal processing device
TWI444038B (en) Voltage level control circuit and related method
JP2004004376A (en) Dot clock reproducing device
JP2001051640A (en) Clock phase automatic adjusting device in pixel corresponding display device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170221

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170725

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170802

R150 Certificate of patent or registration of utility model

Ref document number: 6189396

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250