JP2013150072A - Image data communication device, image data communication method, and program - Google Patents
Image data communication device, image data communication method, and program Download PDFInfo
- Publication number
- JP2013150072A JP2013150072A JP2012007386A JP2012007386A JP2013150072A JP 2013150072 A JP2013150072 A JP 2013150072A JP 2012007386 A JP2012007386 A JP 2012007386A JP 2012007386 A JP2012007386 A JP 2012007386A JP 2013150072 A JP2013150072 A JP 2013150072A
- Authority
- JP
- Japan
- Prior art keywords
- data
- image data
- line
- image
- counting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Color Television Systems (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
Description
本発明は、画像データ通信装置、画像データ通信方法およびプログラムに関する。 The present invention relates to an image data communication device, an image data communication method, and a program.
外来ノイズ(静電気)による誤動作防止、外来ノイズを逃がすためのコンデンサを、データ入力線と電源供給線との間、あるいはデータ入力線と接地線との間に各々接続する構成が提案されている(例えば、特許文献1参照)。 A configuration has been proposed in which a capacitor for preventing malfunction due to external noise (static electricity) and for escaping external noise is connected between the data input line and the power supply line or between the data input line and the ground line ( For example, see Patent Document 1).
また、複数のプロセッサ間のデータ通信にて、以下の手順に基づく提案がなされている。まず、ホストプロセッサは、ビデオプロセッサのレジスタに処理内容を指示するデータを書き込む際に、所定のデータ・ブロック毎に誤り検出用のチェック符号を生成して付加する。 Further, proposals based on the following procedure have been made in data communication between a plurality of processors. First, the host processor generates and adds a check code for error detection for each predetermined data block when writing data instructing the processing contents into the register of the video processor.
次に、ビデオプロセッサは、ホストプロセッサにより所定のデータ・ブロックが前記レジスタに書き込まれたのを受けて、そのデータ・ブロックに付加されている前記チェック符号を利用してデータの誤りがあるか否かを調べる。誤りを検出した場合にはホストプロセッサにデータ・ブロックの再送を要求する(例えば、特許文献2参照)。 Next, the video processor receives whether a predetermined data block has been written to the register by the host processor, and uses the check code added to the data block to determine whether there is an error in the data. Find out. If an error is detected, the host processor is requested to retransmit the data block (see, for example, Patent Document 2).
また、デジタル回線において受信した入力データよりデータの変化点を検出しパルス幅を求めるパルス幅検出回路(高速クロック生成回路であるPLLで検出する回路)を持つ方式が提案されている。そこでは、クロックのパルス幅を検出しノイズであるか否かを判断し、ノイズと判断した場合は、そのデータサンプリングは行わない(例えば、特許文献3参照)。 In addition, there has been proposed a system having a pulse width detection circuit (a circuit that detects a PLL that is a high-speed clock generation circuit) that detects a data change point from input data received through a digital line and obtains a pulse width. In this case, the pulse width of the clock is detected to determine whether or not it is noise, and if it is determined to be noise, the data sampling is not performed (see, for example, Patent Document 3).
また、画像データ送信側は画像データの各ラインの後端に該後端を示すラベルデータを追加してデータを送信する。受信側では前記ラベルデータに基づき画像データの各ラインの終了を検出し、受信した画像データの各ラインデータ長を整合させる方式が提案されている(例えば、特許文献4参照)。 Further, the image data transmission side adds the label data indicating the rear end to the rear end of each line of the image data and transmits the data. On the receiving side, a method has been proposed in which the end of each line of image data is detected based on the label data, and the line data lengths of the received image data are matched (for example, see Patent Document 4).
しかしながら、特許文献1では、外来ノイズである静電気を受けた場合の誤動作対策として、データ入力線と電源供給線との間、データ入力線と接地線との間にコンデンサを接続し、静電気を逃がすように構成されている。近年の画像データ通信は、1フレーム当たりの画像データのサイズが大きく、動画像ともなれば、単位時間当たりのデータ転送速度が高速になっている。この技術をクロック信号ラインに適用した場合、信号遅延が発生し高速通信を行うことが、困難になってきている。
However, in
また、特許文献2では、予め規定している符号をデータ中に埋め込み、通信するデータに誤りを検出した場合にはホストプロセッサにデータ・ブロックの再送を要求するよう構成されている。しかしながら、動画像データをリアルタイムで処理するような機器の場合、データの再送を要求していると動画像を構成するフレームレートを維持することが出来ない。
また、特許文献3では、高速クロック生成回路であるPLL回路を持ち、クロックのパルス幅を検出しノイズであるか否かを判断するよう構成している。高速なPLL回路は、デバイスに占める回路規模の増大と消費電力の増大を招いてしまう。
Further,
また、特許文献4では、データ送信側に特別なラベルデータを追加し、受信側で画像データの後端のラベルデータに基づき、画像データの各ラインの終了を検出する。そして、受信した画像データの各ラインのラインデータ長を整合させるよう構成されている。しかしながら、わざわざ生成するラベルデータが、画像データとして構成されるデータの特定閾値内のデータ範囲(画像の階調濃度に対応する範囲)に設定する必要があり、画像の階調を扱うデータビット幅より大きなビット幅が必要となる。
In
送信側から受信側にリアルタイムな動画像データの通信を行うような構成の場合、受信側回路にて、論理上同一のクロック線で同期化し画像データを受信している回路が複数存在しても、通常のシーケンス動作では特に問題とならないよう論理設計している。 In the case of a configuration that performs real-time moving image data communication from the transmission side to the reception side, even if there are multiple circuits that receive image data synchronized with the same logical clock line in the reception side circuit The logic is designed so as not to be a problem in normal sequence operation.
しかしながら、送信側から受信側にリアルタイムな動画像データを通信している途中に、その通信ラインのクロック信号線上に外来ノイズ(静電気ノイズ)が乗った場合のことを示す。 However, this shows a case where external noise (electrostatic noise) is placed on the clock signal line of the communication line while real-time moving image data is being communicated from the transmission side to the reception side.
外部ノイズ(静電気ノイズ)の乗り方により、クロック信号として同期化できる回路と同期化できない回路が物理的に存在してしまう。この時に、通常動作を想定した回路動作に不整合が生じ、外部ノイズが乗った時点以降の動画像データに異常が発生するという課題が存在する。 Depending on how external noise (electrostatic noise) is applied, there are physically circuits that can be synchronized as clock signals and circuits that cannot be synchronized. At this time, there is a problem that inconsistency occurs in circuit operation assuming normal operation, and abnormality occurs in moving image data after the time when external noise is applied.
本発明は上記課題を鑑みてなされたものであり、外部から受ける外来ノイズの影響に対して、各ラインのラインデータ長を一定に維持でき異常画像の発生を防止することが可能な画像データ通信技術の提供を目的とする。 The present invention has been made in view of the above problems, and image data communication capable of maintaining the line data length of each line constant against the influence of external noise received from the outside and preventing the occurrence of abnormal images. The purpose is to provide technology.
上記の目的を達成する本発明の一つの側面に係る画像データ通信装置は、クロック信号に同期した複数ビットのデータで構成され、水平同期信号および垂直同期信号が所定のコードで規定されている画像フォーマットに基づくデータを受信する受信手段と、
前記データの各々のコードを判別する判別手段と、
前記判別手段によるコードの判別結果により、データ中の水平同期信号を検出する水平同期信号検出手段と、
前記水平同期信号を起点として前記画像フォーマットの1ラインを構成するデータの数をカウントする1ラインサイクル数カウント手段と、
前記判別手段によるコードの判別結果により、データ中の垂直同期信号を検出する垂直同期信号検出手段と、
前記垂直同期信号を起点として前記画像フォーマットの1フレームを構成するライン数をカウントするライン数カウント手段と、
前記1ラインサイクル数カウント手段のカウント値と前記ライン数カウント手段のカウント値とに応じて、前記データから画像データを抽出する抽出手段と、
前記抽出手段により抽出された画像データを記憶する記憶手段と、
前記記憶手段に記憶された前記画像データを読み出す読出手段と、
前記読出手段により読み出された前記画像データの1ラインのデータの数をカウントするカウント手段と、
前記カウント手段でカウントされた前記画像データの1ラインのデータの数が、予め設定された1ラインに相当するデータの数に対して、多いか少ないかを判断するデータ量判断手段と、
前記データ量判断手段の判断結果に応じて、前記画像データの1ラインのデータの数を調整する調整手段と、を有することを特徴とする。
An image data communication apparatus according to one aspect of the present invention that achieves the above object is an image that is composed of a plurality of bits of data synchronized with a clock signal and in which a horizontal synchronization signal and a vertical synchronization signal are defined by a predetermined code. Receiving means for receiving data based on the format;
Discrimination means for discriminating each code of the data;
A horizontal synchronization signal detecting means for detecting a horizontal synchronization signal in the data according to the determination result of the code by the determining means;
1 line cycle number counting means for counting the number of data constituting one line of the image format starting from the horizontal synchronization signal;
A vertical synchronization signal detection means for detecting a vertical synchronization signal in the data based on the determination result of the code by the determination means;
Line number counting means for counting the number of lines constituting one frame of the image format starting from the vertical synchronization signal;
Extraction means for extracting image data from the data in accordance with the count value of the one-line cycle number counting means and the count value of the line number counting means;
Storage means for storing the image data extracted by the extraction means;
Reading means for reading out the image data stored in the storage means;
Counting means for counting the number of data of one line of the image data read by the reading means;
A data amount judging means for judging whether the number of data of one line of the image data counted by the counting means is larger or smaller than the number of data corresponding to a preset one line;
And adjusting means for adjusting the number of data of one line of the image data in accordance with the determination result of the data amount determining means.
本発明によれば、外部から受ける外来ノイズの影響に対して、各ラインのラインデータ長を一定に維持でき異常画像の発生を防止することが可能になる。 According to the present invention, it is possible to keep the line data length of each line constant against the influence of external noise received from the outside, and to prevent the occurrence of abnormal images.
(第1実施形態)
図1を参照して、本発明の実施形態に係る画像データ通信装置の構成を説明する。画像データ送信装置1は、規定のフォーマットに則って画像データを送信する。画像データ受信装置2は、画像データ送信装置1より送信された画像データを受信する。画像データ受信装置2は、クロック信号に同期した複数ビットのデータで構成され、水平同期信号および垂直同期信号が所定のコードで規定されている画像フォーマットに基づくデータを受信する。画像データ送信装置1および画像データ受信装置2の通信に用いる画像データ通信フォーマットは、例えば、RECOMMENDATION ITU−R BT.656−4に準拠している。かかる画像データ通信フォーマットには、規定のクロックに同期したデータ中に、水平同期信号および垂直同期信号が規定のマーカコードとして挿入されている。別途画像のサイズが異なる内容に関しても、かかる画像データ通信フォーマットのように通信データ中に所定のマーカコードとブランクデータがデータ領域とが別に挿入されている画像フォーマットとを用いることは可能である。
(First embodiment)
With reference to FIG. 1, the configuration of an image data communication apparatus according to an embodiment of the present invention will be described. The image
メモリ3は画像データ受信装置2が受信した画像データを記録する。
The
(画像フォーマット解析処理部201)
画像フォーマット解析処理部201は、画像データ受信装置2の内、1点鎖線で囲っているブロックであり、画像データ通信フォーマットに基づいて受信したデータの内、画像データのみを抽出する。
(Image format analysis processing unit 201)
The image format
画像フォーマット解析処理部201の回路ブロックを同期化するクロック信号は、画像データ送信装置1より出力されるクロック信号(図1の信号名:CLK_Iと表記する)である。
The clock signal for synchronizing the circuit blocks of the image format
マーカコード判別部202は、画像データ通信フォーマットに基づくマーカコードを判別する。
The marker
水平同期位置検出部203(水平同期信号検出部)は、マーカコード判別部202で判別されたマーカコードの判別結果を元に、水平同期位置であるか否かを検出する。垂直同期位置検出部204(垂直同期信号検出部)は、マーカコード判別部202で判別されたマーカコードの判別結果を元に、垂直同期位置であるか否かを検出する。
The horizontal synchronization position detection unit 203 (horizontal synchronization signal detection unit) detects whether or not it is the horizontal synchronization position based on the determination result of the marker code determined by the marker
1ラインサイクル数カウント部205は、水平同期位置検出部203の検出結果と画像データ通信フォーマットのクロック信号とに基づいて受信したクロックサイクル数をカウントする。1ラインサイクル数カウント部205は、水平同期信号を起点として画像フォーマットの1ラインを構成するデータの数をカウントする。
The one-line cycle
ライン数カウント部206は、水平同期位置検出部203と、垂直同期位置検出部204とからの指示に応じて、画像データ通信フォーマットに基づいて受信したデータのライン数をカウントする。ライン数カウント部206は、垂直同期信号を起点として画像フォーマットの1フレームを構成するライン数をカウントする。
The line
画像データ抽出部207は、1ラインサイクル数カウント部205とライン数カウント部206とのカウント値に応じて、画像データ通信フォーマットに基づいて受信したデータ中の必要画像領域を抽出する。
The image
(画像データ量調整部301)
画像データ量調整部301は、画像データ受信装置2の内、破線で囲っているブロックであり、1ラインあたりの画像データ量(画像データの数)に誤りが無いかを検出し、誤りがある場合に、画像データ量を調整する。例えば、画像データ量調整部301は、画像データの1ラインのデータの数が、予め設定されている1ラインに相当するデータの数に対して多いと判断した場合、1ラインのデータを構成するように多い分のデータを削除する。また、画像データ量調整部301は、画像データの1ラインのデータの数が、予め設定されている1ラインに相当するデータの数に対して少ないと判断した場合、1ラインのデータを構成するように不足分のデータを追加する。
(Image data amount adjustment unit 301)
The image data
YデータFIFO302は、画像データ抽出部207にて抽出された輝度情報であるYデータをサンプリングしたデータのみを一時的に記憶する。以降の説明では輝度情報データのことをYデータとして説明する。尚、画像データの要素として、輝度情報データは例示的なものであり、輝度情報の他に、明度情報、階調情報などが含まれる。
The
CデータFIFO303は、画像データ抽出部207にて抽出された色情報であるCデータをサンプリングしたデータのみを一時的に記憶する。以降の説明では色情報データのことをCデータとして説明する。
The
YデータFIFO302およびCデータFIFO303は、データ入力とデータ出力が異なるクロックで制御可能な非同期FIFOである。
The
Yデータ読み出し部304は、YデータFIFO302に一時的に記憶されたYデータを順次、読出すための制御を行う。
The Y
Yデータ数カウント部305は、Yデータ読み出し部304により読出されたデータ数をカウントする。
The Y data
Yデータ量判断部306は、Yデータ数カウント部305のカウント値に応じて、1ライン単位のYデータの量が、予め設定されてあるデータ量より多いか少ないかを判断する。
The Y data amount
Yデータ量調整部307は、Yデータ量判断部306の判断結果を基に、Yデータの1ラインに相当する必要データ量に調整し、メモリ3にYデータを記憶する。
The Y data amount
Cデータ読み出し部308は、CデータFIFO303に一時的に記憶されたCデータを順次、読出すための制御を行う。
The C
Cデータ数カウント部309は、Cデータ読み出し部308により読出されたデータ数をカウントする。
The C data
Cデータ量判断部310は、Cデータ数カウント部309のカウント値に応じて、1ライン単位のCデータの量が、予め設定されてあるデータ量より多いか少ないかを判断する。
The C data amount
Cデータ量調整部311は、Cデータ量判断部310の判断結果を基に、Cデータの1ラインに相当する必要データ量に調整し、メモリ3にCデータを記憶する。
The C data amount
ブランク期間判断部312は、YデータFIFO302とCデータFIFO303とが、所定期間空の状態であるか否かを検出することで、画像データ通信フォーマットに基づくデータ中のブランク期間を判断する。
The blank
CLK生成部313は、画像データ量調整部301の回路ブロックを同期化するクロック信号を生成する。ここで生成するクロック信号は、画像データ送信装置1より出力されるクロック信号(図1の信号名:CLK_I)と同期関係ないクロック信号であり、CLK_Mと表記する。
The CLK generation unit 313 generates a clock signal that synchronizes the circuit blocks of the image data
図2は、画像データ通信フォーマット中のデータについて、動画像を構成する1フレーム内の水平方向および垂直方向のデータ領域を示した図である。図2のフォーマットをここでは、NTSCフォーマットを例に取って説明する。NTSCフォーマットの場合、データ通信ビットは8ビットで、図2のHに記載している1ラインを構成するデータ数は、1716カウント分である。その内、SAVのマーカコードが、HEX表記にてFF→00→00→XXの4バイト分のデータを組として、データスタートポイントの位置としてマーカコード化されている。また、EAVのマーカコードが、HEX表記にてFF→00→00→XYの4バイト分のデータを組として、データエンドポイントの位置としてマーカコード化されている。 FIG. 2 is a diagram showing horizontal and vertical data areas in one frame constituting a moving image for data in the image data communication format. Here, the format of FIG. 2 will be described by taking the NTSC format as an example. In the NTSC format, the data communication bits are 8 bits, and the number of data constituting one line described in H of FIG. 2 is 1716 counts. Among them, the SAV marker code is converted into a marker code as the position of the data start point by combining the data of 4 bytes of FF → 00 → 00 → XX in HEX notation. In addition, the EAV marker code is converted into a marker code as the position of the data end point by combining data of 4 bytes of FF → 00 → 00 → XY in HEX notation.
データ領域は、Y成分で720カウント分、C成分領域で720カウント分、残りのデータは、水平ブランク領域(Hブランク領域)データとして構成されている。図2のVで示されている1フレームを構成するライン数は、525ライン分である。この内、ODDフィールドデータとして240ライン分、EVENフィールドデータとして240ライン分であり、残りは、垂直ブランクデータ領域(Vブランク領域)として構成されている。このフォーマットは、RECOMMENDATION ITU−R BT.656−4規格により規定されている。 The data area is configured as 720 counts for the Y component, 720 counts for the C component area, and the remaining data is configured as horizontal blank area (H blank area) data. The number of lines constituting one frame indicated by V in FIG. 2 is 525 lines. Of these, 240 lines are ODD field data and 240 lines are EVEN field data, and the remainder is configured as a vertical blank data area (V blank area). This format is defined by the RECOMMENDATION ITU-R BT.656-4 standard.
図2に示すデータフォーマットを、NTSCフォーマットを例にして説明したが、近年はハイビジョンの解像度に対応した同様な規格も存在し、画像解像度が異なるフォーマットにてデータ通信する場合もその画像データ通信フォーマットに対応するものとする。 The data format shown in FIG. 2 has been described by taking the NTSC format as an example. However, in recent years, there is a similar standard corresponding to the resolution of high-definition, and even when data communication is performed in a format with a different image resolution, the image data communication format. It shall correspond to.
本発明の第1実施形態では、このような画像データ通信フォーマットにて、画像データ送信装置1から画像データ受信装置2にデータを通信している画像データ通信装置にて、データをサンプリングする場合について説明する。
In the first embodiment of the present invention, a case where data is sampled in an image data communication apparatus that communicates data from the image
まず、図2に示すGポイントにて、まず動画像を構成する1フレーム目の先頭のみSAVのコードであるFF→00→00→XXの4バイト分のデータをマーカコード判別部202は検出する。4バイトデータのXXにて、先頭時のマーカコード例はECである。このコードを検出した位置から、画像データの同期受信動作を開始する。画像データを抽出する際に、図2に記載しているIのポイントのラインからデータ有効領域と判断し画像データのサンプリング動作を開始する。ODDフィールドのデータ領域ラインの4バイトデータのXXに対応するマーカコードは80でありFF→00→00→80を、マーカコード判別部202は検出する。
First, at the G point shown in FIG. 2, the marker
図3は、画像データ送信装置1から画像データ受信装置2に対して通信している信号線に対して、外来ノイズが無い場合で、且つ、ODDフィールドデータ領域のラインの通常動作時のタイミングチャートを表している。通常は、正規のSAVのコードであるFF→00→00→80のコードの4バイトデータの組み合わせで受信した際に水平同期位置であると判断する。この時に、1ラインサイクル数カウント部205のカウント値をMAXカウント値(この例では、0オリジンでカウントし、カウンタ値=1715)から0に値を初期化する。図3のタイミングチャート上のカウント値がそれに相当する。
FIG. 3 is a timing chart in the case where there is no external noise with respect to the signal line communicating from the image
CLK_Iの次の立ち上がりエッジに同期した位置から、画像データ抽出部207は、YデータFIFO302と、CデータFIFO303との書き込みイネーブル信号(図3のCデータ_EN,Yデータ_EN)を出力する。画像データ抽出部207の出力は、1ラインサイクル数カウント部205のカウント値に基づくものである。1ラインサイクル数カウント部205のカウンタ値が偶数の時にCデータのイネーブル信号を出力し、奇数の時にYデータのイネーブル信号を出力する。この動作で、画像データ中のYデータは、YデータFIFO302に書き込まれる。また画像データ中のCデータは、CデータFIFO303に書き込まれる。このようにして画像データ中の2つの要素を別々に処理する。要素を別々にすることで、機器内の後段にて、個別に画像処理をすることが可能となる。図3に示す動作を水平方向の画像として、必要なサイズ分繰り返す。また、垂直方向の画像として、必要なライン分繰り返すことで、必要な画像データのみを抽出することが出来る。
From a position synchronized with the next rising edge of CLK_I, the image
図4は、画像データ量調整部301の動作タイミングを表しており、YデータFIFO302とCデータFIFO303とに一時的書き込まれた各々のデータをメインメモリである、メモリ3に書き込んでいく動作を説明する。画像データ量調整部301のクロック信号(CLK_M)は、画像フォーマット解析処理部201で使用していたクロック信号(CLK_I)とは非同期クロックである。CLK生成部313で生成されたクロック信号(CLK_M)に同期して画像データ量調整部301は動作する。
FIG. 4 shows the operation timing of the image data
まず、YデータFIFO302のデータ読出しについて説明する。図3で説明したようにYデータFIFO302にデータが書き込まれると、FIFOの書き込み状態で空の状態であることを出力するY_FIFO_EMPTY信号が、「H」から「L」の状態となる。このY_FIFO_EMPTY信号は、「H」が空状態、「L」で空ではない状態を表している。
First, data reading of the
Yデータ読み出し部304にて、Y_FIFO_EMPTY信号=「L」の期間と同期間に、データ読み出しを行うためのイネーブル信号である信号名:Y_FIFO_READ_ENがイネーブル状態である「H」状態が出力される。逆に、Y_FIFO_EMPTY信号=「H」の期間は、FIFOが空の状態であるので、読み出しを禁止する為、Y_FIFO_READ_EN=「L」の状態が出力される。Y_FIFO_READ_EN=「H」が出力されると、YデータFIFO302に書き込まれた順に、データが読み出される。図4のY_FIFO出力がそれにあたる。
The Y
通常、書き込まれた順番は、Y0→Y1・・・Y719であるので、この720画素分のデータが順番に読み出される。Y_FIFO_READ_EN=「H」状態時において、Yデータ数カウント部305は水平方向のデータ画素数をカウントする。図4のEのポイントが、Yデータの水平方向の最終データが読み出されたタイミングで、Yデータ数カウント部305のYデータカウント値が720にカウントアップする。
Normally, the order of writing is Y0 → Y1... Y719, so the data for 720 pixels are read in order. In the Y_FIFO_READ_EN = “H” state, the Y data
Yデータ量調整部307は、YデータFIFO302から読み出されたデータを、Y_FIFO_READ_EN=「H」の状態の次のクロックサイクルで、メモリ3に書き込むためのイネーブル信号を出力する。これがY_メモリWRITE_EN信号であり、Y0→Y1・・・Y719の720画素分のデータが順番にメモリ3に書きこまれる。
The Y data amount
Yデータ量判断部306は、Yデータ数カウント部305のカウント数が予め設定している画像データ量と同じ場合、正常動作終了と判断し、Yデータ量調整部307に対して特にフラグを挙げないよう動作する。また、同時にYデータ数カウント部305のカウント値を初期化するように制御する。
The Y data amount
次に、CデータFIFO303のデータ読み出しについて説明する。図3で説明したようにCデータFIFO303にデータが書き込まれると、FIFOの書き込み状態で空の状態であることを出力するC_FIFO_EMPTY信号が、「H」から「L」の状態となる。このC_FIFO_EMPTY信号は、「H」が空状態、「L」が空ではない状態を表している。
Next, data reading from the
Cデータ読み出し部308にて、C_FIFO_EMPTY信号=「L」の期間と同期間に、データ読み出しを行うためのイネーブル信号である信号名:C_FIFO_READ_ENがイネーブル状態である「H」状態が出力される。逆に、C_FIFO_EMPTY信号=「H」の期間は、FIFOが空の状態であるので、読み出しを禁止する為、C_FIFO_READ_EN=「L」の状態が出力される。C_FIFO_READ_EN=「H」が出力されると、CデータFIFO303に書き込まれた順に、データが読み出される。図4のC_FIFO出力がそれにあたる。通常、書き込まれた順番は、Cb0→Cr0→Cb1→Cr1・・・Cb359→Cr359であるので、この720画素分のデータが順番に読み出される。C_FIFO_READ_EN=「H」状態時において、Cデータ数カウント部309は水平方向のデータ画素数をカウントする。図4のDのポイントが、Cデータの水平方向の最終データが読み出されたタイミングで、Cデータ数カウント部309のCデータカウント値が720にカウントアップする。
The C
Cデータ量調整部311は、CデータFIFO303から読み出されたデータを、C_FIFO_READ_EN=「H」の状態の次のクロックサイクルで、メモリ3に書き込むためのイネーブル信号を出力する。これがC_メモリWRITE_EN信号であり、Cb0→Cr0→Cb1→Cr1・・・Cb359→Cr359の720画素分のデータが順番にメモリ3に書きこまれる。
The C data amount
Cデータ量判断部310は、Cデータ数カウント部309のカウント数が予め設定している画像データ量と同じ場合、正常動作終了と判断し、Cデータ量調整部311に対して特にフラグを挙げないよう動作する。また、同時にCデータ数カウント部309のカウント値を初期化するように制御する。
When the count number of the C data
次に、本発明の第1実施形態に係る特徴的な処理を説明する。図3で説明したタイミングチャートに対して、画像データ送信装置1から画像データ受信装置2へ送られる通信信号線であるクロック信号に、外来ノイズである静電気ノイズが乗った場合の動作例を、図5を用いて説明する。
Next, characteristic processing according to the first embodiment of the present invention will be described. An example of operation when electrostatic noise, which is external noise, is added to the clock signal, which is a communication signal line transmitted from the image
図5はタイミングチャート上のBポイントにて、外来ノイズである静電気が乗り、図5のタイミングチャートに記載のように、クロック信号(CLK_I)の「H」の期間が破線分消失した場合の例を示している。 FIG. 5 shows an example in which static electricity that is external noise is applied at point B on the timing chart, and the “H” period of the clock signal (CLK_I) disappears by a broken line as shown in the timing chart of FIG. Is shown.
画像フォーマット解析処理部201の各ブロックは、CLK_Iに同期して動作している。1ラインサイクル数カウント部205と、YデータFIFO302と、CデータFIFO303もCLK_Iに同期して動作する。但し、画像フォーマット解析処理部201の内部の各ブロックの回路配置の差により、クロック配線長や、浮遊容量の差が物理的に存在し、各ブロックのクロック信号の遅延量が異なる。
Each block of the image format
例えば、1ラインサイクル数カウント部205は図1のA点でクロック信号を受け取る。ここで、図1のA点のクロック信号を図5ではCLK_I(A)で表す。本実施形態では、図5のbのポイントで、CLK_Iと同一のタイミングでクロックパルスが伝達され、1ラインサイクル数カウント部205のカウンタ値が1から2にカウントアップする。
For example, the one-line cycle
一方、YデータFIFO302は図1のA’点、CデータFIFO303は図1のA”点の位置でのCLK_I信号を受け取る。ここで図5に示すようにA’点及びA”点のクロック信号をCLK_I(A’/A”)で表す。本実施形態ではこの図5のbポイントで、クロックサイクルが全て消失してしまっている。図5のbのポイントは、通常ならばYデータをサンプリングする必要があるポイントである。
On the other hand, the
しかし、Yデータ_ENの信号は「H」の状態を出力しているが、クロック信号CLK_I(A’)が消失していることにより、YデータFIFO302にY0のデータが書き込めない状態となる。そうすると、YデータFIFO302ではデータのY0が欠落することになる。その結果、YデータFIFOにはY1→Y2・・・Y719の1画素データ分欠落した719画素分のデータが順番に書き込まれることとなる。
However, although the Y data_EN signal is in the “H” state, the clock signal CLK_I (A ′) disappears, so that the
この状態で、図4にて説明した制御と同一の制御を実行すると、図6に示すタイミングチャートのように、G点にて1画素データ分不足することになる。そのため、Yデータ数カウント部305にてカウントしているYデータカウント値は719までカウントアップされるが、720にはならない。ここで、Yデータ量調整部307が無い場合、Yデータは、次のラインの先頭Y0データが来るまで動作が止まってしまう。このようになると、以降のYデータが延々1画素分ずれたままの動画像を構成し続け画像の不具合につながる。不具合画像を延々継続させないための処理として、図6に示すG点以降の動作を図7で説明する。
If the same control as described in FIG. 4 is executed in this state, one pixel data is insufficient at point G as shown in the timing chart of FIG. Therefore, the Y data count value counted by the Y data
図7のG点でYデータFIFO302は次のラインまで空の状態となる。このG点からH点までの期間は、次のラインまでの水平ブランク期間の一部に対応している。ブランク期間判断部312にて、所定の期間以上、YデータFIFO302が空の状態であることを検出すると、水平ブランク期間に入ったことを判断できる。この所定の期間が図7に示した水平ブランク判断時間である。
At point G in FIG. 7, the
H点で不足しているデータ量(本実施例では、Yデータ1画素分)を追加することで調整するためYデータ量調整部307は、メモリ3に対して書き込みイネーブル信号であるY_メモリWRITE_EN信号を図7のHからIまでの期間出力する。同時に、Yデータとして、10Hのデータを書き込む。この時、Yデータカウント値は1ラインの最終画素分のデータ書き込みに対応した、Y_メモリWRITE_EN信号が「H」のポイント(図7のIポイント)のクロックで0にクリアされる。
The Y data amount
また、図5の説明にて、Bの外来ノイズが乗るポイントが、Cデータのサンプリングポイントの場合は、Cデータ側のCデータ読み出し部308がYデータ側のYデータ読み出し部304と同一の動作をする。
Further, in the description of FIG. 5, when the point where the external noise of B is applied is the sampling point of C data, the C
同様に、Cデータ数カウント部309およびYデータ数カウント部305、Cデータ量判断部310およびYデータ量判断部306は、それぞれ同一の動作を行う。Cデータ量調整部311とYデータ量調整部307とは、生成するデータのみが異なり、Cデータ量調整部311は、80Hのデータをメモリ3に書き込む。
Similarly, the C data
第1実施形態では1画素分を補正するように説明したが、1ライン中に複数回外来ノイズである静電気が乗った場合、1ラインあたりの複数の必要画素データの不足分を補うように動作する。 In the first embodiment, it has been described that one pixel is corrected. However, when static electricity that is external noise is applied a plurality of times in one line, the operation is performed to compensate for a shortage of a plurality of necessary pixel data per line. To do.
(第2実施形態)
本発明の第2実施形態を図1〜4、図8、図9、および図10を用いて説明する。図1〜4を用いて説明した画像データ通信装置の基本的な構成は第1実施形態で既に説明しているので、重複した説明は省略する。
(Second Embodiment)
A second embodiment of the present invention will be described with reference to FIGS. 1 to 4, FIG. 8, FIG. 9, and FIG. Since the basic configuration of the image data communication apparatus described with reference to FIGS. 1 to 4 has already been described in the first embodiment, redundant description is omitted.
本発明の第2実施形態に係る特徴的な処理を説明する。図3で説明したタイミングチャートに対して、画像データ送信装置1から画像データ受信装置2へ送られる通信信号線であるクロック信号に、外来ノイズである静電気ノイズが乗った場合の動作例を、図8を用いて説明する。
A characteristic process according to the second embodiment of the present invention will be described. An example of operation when electrostatic noise, which is external noise, is added to the clock signal, which is a communication signal line transmitted from the image
図8はタイミングチャート上のJポイントにて、外来ノイズである静電気が乗り、クロック信号(CLK_I)の「L」の期間にパルスのノイズが乗り、本来クロック信号が無い箇所に、信号が現れた場合の例である。 In FIG. 8, static electricity that is external noise is applied at point J on the timing chart, pulse noise is applied during the “L” period of the clock signal (CLK_I), and a signal appears at a place where there is no clock signal originally. This is an example.
画像フォーマット解析処理部201の各ブロックは、前記CLK_Iに同期して動作している。1ラインサイクル数カウント部205と、YデータFIFO302と、CデータFIFO303もCLK_Iに同期して動作する。但し、画像フォーマット解析処理部201の内部の各ブロックの回路配置の差により、クロック配線長や、浮遊容量の差が物理的に存在し、各ブロックのクロック信号の遅延量が異なる。
Each block of the image format
例えば、1ラインサイクル数カウント部205は図1のA点でクロック信号を受け取る。ここで、図1のA点のクロック信号を図8ではCLK_I(A)で表す。本実施形態では、図8のKのポイントで、CLK_Iとは異なり、クロック信号が消失している状態となる。この時に、1ラインサイクル数カウント部205のカウント値はカウントアップしない。
For example, the one-line cycle
一方、YデータFIFO302は図1のA’点、CデータFIFO303は図1のA”点の位置でのCLK_I信号を受け取る。ここで図8に示すようにA’点及びA” 点のクロック信号をCLK_I(A’/A”)で表す。本実施形態ではこの図8のKポイントでは、CLK_Iと同一なクロックとして検出してしまっている。図8のKのポイントは、通常ならばYデータをサンプリングする必要がないポイントである。
On the other hand, the
しかし、Yデータ_ENの信号は「H」の状態を出力しており、図8のKとLの2か所のポイントにて、クロック信号CLK_I(A’)のクロック信号を検出することで、YデータFIFO302にY0のデータを2回書き込んでしまう。そうすると、YデータFIFOには、Y0→Y0→Y1→Y2・・・Y719の1画素データ分のデータが多い、721画素分のデータが順番に書き込まれることとなる。
However, the Y data_EN signal is in the “H” state, and the clock signal CLK_I (A ′) is detected at two points K and L in FIG. , Y0 data is written to the
この状態で、図4にて説明した内容と同一の制御を実行すると、図9に示すタイミングチャートのP点にて、Y_FIFO_READ_EN信号が出力されてしまう。その為、図9のQに示す位置にて、Y_メモリWRITE_EN信号を出力して、Yデータを1画素分多い721画素分書き込んでしまう。このようになると、以降のYデータが延々1画素分ずれたままの動画像を構成し続け画像の不具合につながる。不具合画像を延々継続させないための処理として、図9に示すP点以降の動作を図10で説明する。 If the same control as described in FIG. 4 is executed in this state, a Y_FIFO_READ_EN signal is output at point P in the timing chart shown in FIG. Therefore, the Y_memory WRITE_EN signal is output at the position indicated by Q in FIG. 9, and Y data is written by 721 pixels, which is one pixel larger. If it becomes like this, it will comprise the moving image in which Y data after that has shifted | deviated by 1 pixel at last, and will lead to the malfunction of an image. As a process for preventing the defective image from continuing indefinitely, the operation after the point P shown in FIG. 9 will be described with reference to FIG.
図10のP点で、Yデータカウント値が水平方向に必要画素量まで到達した時点以降(本実施形態では720画素分以降)、Yデータ量調整部307が、メモリ3に対してデータの書き込みイネーブル信号を出力しないよう動作する。具体的には、図10のQ’のY_メモリWRITE_EN信号を出力しないよう動作する。P点からH’点までの期間は、次のラインまでの水平ブランク期間の一部に対応している。ブランク期間判断部312にて、所定の期間以上、YデータFIFO302が空の状態であることを検出すると、水平ブランク期間に入ったことを判断できる。この所定の期間が図10に示した水平ブランク判断時間である。水平ブランク判断時間の経過後、画像データ量調整部301の各ブロックの初期化動作を行い、次のラインのデータの処理の準備状態となる。
After the point when the Y data count value reaches the required pixel amount in the horizontal direction at point P in FIG. 10 (after 720 pixels in this embodiment), the Y data amount
また、図8の説明にて、Jの外来ノイズが乗るポイントが、Cデータのサンプリングポイントの場合は、Cデータ側のCデータ読み出し部308がYデータ側のYデータ読み出し部304と同一の動作をする。
In the description of FIG. 8, when the point where J extraneous noise is a C data sampling point, the C
同様に、Cデータ数カウント部309とYデータ数カウント部305、Cデータ量判断部310とYデータ量判断部306、Cデータ量調整部311とYデータ量調整部307の各ブロックが同一の動作を行う。
Similarly, the blocks of the C data
第2実施形態では1画素分を補正するように説明したが、1ライン中に複数回外来ノイズである静電気が乗った場合、1ラインあたりの複数の必要画素データの余分を削除するように動作する。 In the second embodiment, it has been described that one pixel is corrected. However, when static electricity that is external noise is applied a plurality of times in one line, an operation is performed to delete a plurality of necessary pixel data per line. To do.
上記の第1および第2実施形態によれば、外部から受ける外来ノイズの影響に対して、各ラインのラインデータ長を一定に維持でき異常画像の発生を防止することが可能になる。 According to the first and second embodiments, the line data length of each line can be kept constant against the influence of external noise received from the outside, and the occurrence of abnormal images can be prevented.
例えば、外部から受ける外来ノイズの影響に対して、各ラインのデータ要素(画像データ通信フォーマット中の輝度情報データ、色差情報データ)ごとにラインデータ長を一定に維持でき異常画像の発生を防止できる。 For example, the line data length can be kept constant for each line data element (luminance information data, color difference information data in the image data communication format) against the influence of external noise received from the outside, and the occurrence of abnormal images can be prevented. .
あるいは、送信側で規定の画像データ通信フォーマットの送信以外のエラー検出用符号等を挿入する必要がない。受信側のみの対応で、外部から受ける外来ノイズの影響に対して、各ラインのラインデータ長を一定に維持でき異常画像の発生を防止できる。 Alternatively, it is not necessary to insert an error detection code or the like other than transmission in a prescribed image data communication format on the transmission side. With only the reception side, the line data length of each line can be kept constant against the influence of external noise received from the outside, and the occurrence of abnormal images can be prevented.
あるいは、受動部品を必要とせず、回路規模の増大と消費電力が増大することを抑制しつつ、外部から受ける外来ノイズ(静電気)に対して発生する、画像の乱れを低減した画像データ通信装置の提供が可能となる。 Alternatively, an image data communication apparatus that does not require passive components, suppresses an increase in circuit scale and power consumption, and reduces disturbance of an image caused by external noise (static electricity) received from the outside. Provision is possible.
(その他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other embodiments)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.
Claims (8)
前記データの各々のコードを判別する判別手段と、
前記判別手段によるコードの判別結果により、データ中の水平同期信号を検出する水平同期信号検出手段と、
前記水平同期信号を起点として前記画像フォーマットの1ラインを構成するデータの数をカウントする1ラインサイクル数カウント手段と、
前記判別手段によるコードの判別結果により、データ中の垂直同期信号を検出する垂直同期信号検出手段と、
前記垂直同期信号を起点として前記画像フォーマットの1フレームを構成するライン数をカウントするライン数カウント手段と、
前記1ラインサイクル数カウント手段のカウント値と前記ライン数カウント手段のカウント値とに応じて、前記データから画像データを抽出する抽出手段と、
前記抽出手段により抽出された画像データを記憶する記憶手段と、
前記記憶手段に記憶された前記画像データを読み出す読出手段と、
前記読出手段により読み出された前記画像データの1ラインのデータの数をカウントするカウント手段と、
前記カウント手段でカウントされた前記画像データの1ラインのデータの数が、予め設定された1ラインに相当するデータの数に対して、多いか少ないかを判断するデータ量判断手段と、
前記データ量判断手段の判断結果に応じて、前記画像データの1ラインのデータの数を調整する調整手段と、
を有することを特徴とする画像データ通信装置。 Receiving means for receiving data based on an image format composed of a plurality of bits of data synchronized with a clock signal, the horizontal synchronization signal and the vertical synchronization signal being defined by a predetermined code;
Discrimination means for discriminating each code of the data;
A horizontal synchronization signal detecting means for detecting a horizontal synchronization signal in the data according to the determination result of the code by the determining means;
1 line cycle number counting means for counting the number of data constituting one line of the image format starting from the horizontal synchronization signal;
A vertical synchronization signal detection means for detecting a vertical synchronization signal in the data based on the determination result of the code by the determination means;
Line number counting means for counting the number of lines constituting one frame of the image format starting from the vertical synchronization signal;
Extraction means for extracting image data from the data in accordance with the count value of the one-line cycle number counting means and the count value of the line number counting means;
Storage means for storing the image data extracted by the extraction means;
Reading means for reading out the image data stored in the storage means;
Counting means for counting the number of data of one line of the image data read by the reading means;
A data amount judging means for judging whether the number of data of one line of the image data counted by the counting means is larger or smaller than the number of data corresponding to a preset one line;
Adjusting means for adjusting the number of data of one line of the image data according to the determination result of the data amount determining means;
An image data communication apparatus comprising:
前記読出手段は、前記複数の記憶手段のそれぞれに対応した複数のデータ読出手段を有し、
前記カウント手段は、前記複数のデータ読出手段のそれぞれに対応した複数のカウント手段を有し、
前記データ量判断手段は、前記複数のカウント手段のそれぞれに対応した複数のデータ量判断手段を有し、
前記調整手段は、前記複数のデータ量判断手段のそれぞれに対応した複数の調整手段を有し、
前記複数の調整手段のそれぞれは、前記複数のデータ量判断手段のそれぞれで得られた判断結果に応じて、それぞれの要素のデータの数を調整することを特徴とする請求項1乃至3のいずれか1項に記載の画像データ通信装置。 The storage means has a plurality of storage means for storing elements of image data extracted by the extraction means,
The reading means has a plurality of data reading means corresponding to each of the plurality of storage means,
The counting means has a plurality of counting means corresponding to each of the plurality of data reading means,
The data amount judging means has a plurality of data amount judging means corresponding to each of the plurality of counting means,
The adjustment means has a plurality of adjustment means corresponding to each of the plurality of data amount determination means,
4. The method according to claim 1, wherein each of the plurality of adjustment units adjusts the number of data of each element according to a determination result obtained by each of the plurality of data amount determination units. The image data communication apparatus according to claim 1.
前記ブランク期間判断手段が、前記期間を水平ブランク期間であると判断した場合に、前記データ量判断手段は前記画像データの1ラインのデータの数が前記1ラインに相当するデータの数に対して多いか少ないかを判断し、前記カウント手段はカウント値を初期化することを特徴とする請求項1乃至5のいずれか1項に記載の画像データ通信装置。 A blank period determination means for determining whether a horizontal blank period is a predetermined period or more from the time when the data is read to the next read time;
When the blank period determination unit determines that the period is a horizontal blank period, the data amount determination unit determines whether the number of data of one line of the image data corresponds to the number of data corresponding to the one line. 6. The image data communication apparatus according to claim 1, wherein whether the number is large or small is determined, and the counting unit initializes a count value.
読出手段が、前記記憶手段に記憶された前記画像データを読み出す読出工程と、
カウント手段が、前記読出工程で読み出された前記画像データの1ラインのデータの数をカウントするカウント工程と、
データ量判断手段が、前記カウント工程でカウントされた前記画像データの1ラインのデータの数が、予め設定された1ラインに相当するデータの数に対して、多いか少ないかを判断するデータ量判断工程と、
調整手段が、前記データ量判断工程の判断結果に応じて、前記画像データの1ラインのデータの数を調整する調整工程と、
を有することを特徴とする画像データ通信方法。 Receiving means for receiving data based on an image format composed of a plurality of bits of data synchronized with a predetermined clock signal, the horizontal synchronization signal and the vertical synchronization signal being defined by a predetermined code; and a code for each of the data A discriminating unit for discriminating; a horizontal synchronizing signal detecting unit for detecting a horizontal synchronizing signal in the data based on a code discrimination result by the discriminating unit; and a data of one line of the image format starting from the horizontal synchronizing signal. 1 line cycle number counting means for counting the number, vertical synchronization signal detecting means for detecting a vertical synchronization signal in the data based on the code discrimination result by the discrimination means, and 1 of the image format starting from the vertical synchronization signal. Line number counting means for counting the number of lines constituting the frame, and the one line An extraction means for extracting image data from the data, and a storage means for storing the image data extracted by the extraction means in accordance with the count value of the cycle number counting means and the count value of the line number counting means; An image data communication method for an image data communication apparatus comprising:
A reading step of reading out the image data stored in the storage unit;
A counting step for counting the number of data of one line of the image data read in the reading step;
A data amount for determining whether the number of data of one line of the image data counted in the counting step is larger or smaller than the number of data corresponding to a preset one line. A decision process;
An adjusting step for adjusting the number of data of one line of the image data in accordance with a determination result of the data amount determining step;
An image data communication method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012007386A JP2013150072A (en) | 2012-01-17 | 2012-01-17 | Image data communication device, image data communication method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012007386A JP2013150072A (en) | 2012-01-17 | 2012-01-17 | Image data communication device, image data communication method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013150072A true JP2013150072A (en) | 2013-08-01 |
Family
ID=49047190
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012007386A Pending JP2013150072A (en) | 2012-01-17 | 2012-01-17 | Image data communication device, image data communication method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013150072A (en) |
-
2012
- 2012-01-17 JP JP2012007386A patent/JP2013150072A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10771726B2 (en) | Image transmission device and method including an image data receiver and a processor | |
US9813783B2 (en) | Multi-camera dataset assembly and management with high precision timestamp requirements | |
US9167058B2 (en) | Timestamp correction in a multi-lane communication link with skew | |
US7093061B2 (en) | FIFO module, deskew circuit and rate matching circuit having the same | |
US20160124889A1 (en) | Asynchronous fifo buffer with johnson code write pointer | |
US10972691B2 (en) | Dynamic vision sensor, electronic device and data transfer method thereof | |
CN103647918A (en) | Video synchronization method and device | |
US20090323728A1 (en) | Asynchronous data fifo that provides uninterrupted data flow | |
KR20200012060A (en) | Display device and driving method thereof | |
US10070018B2 (en) | Device for vertical and horizontal synchronization in display system | |
JP4917901B2 (en) | Receiver | |
KR101770938B1 (en) | Transmission device, reception device, and transmission/reception system | |
US9112520B2 (en) | Transmission interface and system using the same | |
JP2013150072A (en) | Image data communication device, image data communication method, and program | |
CN107040784B (en) | Video buffering processing method, system and device | |
US20240039652A1 (en) | Synchronizing communication channels between digital front-end processors | |
US20200193135A1 (en) | Image processing method and device, and unmanned aerial vehicle | |
EP3671720B1 (en) | Real-time on-chip data transfer system | |
CN111355914A (en) | Video system signal generating device and method | |
JP5551998B2 (en) | Image signal generator | |
CN115061967B (en) | Method for reducing interface clock by adopting camera link image compression based on domestic FPGA | |
CN107978285B (en) | Apparatus and method for driving display panel in response to display data | |
JP2017011686A (en) | Video signal transmission device | |
US20230171374A1 (en) | Screen control system | |
JP6501861B1 (en) | Image processing system |