JP2013150072A - Image data communication device, image data communication method, and program - Google Patents

Image data communication device, image data communication method, and program Download PDF

Info

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
Application number
JP2012007386A
Other languages
Japanese (ja)
Inventor
Junya Masaki
淳也 正木
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2012007386A priority Critical patent/JP2013150072A/en
Publication of JP2013150072A publication Critical patent/JP2013150072A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Color Television Systems (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent occurrence of an abnormal image caused by the influence of an external noise received from outside, by keeping the line data length of each line constant.SOLUTION: An image data communication device comprises: a storage unit for storing image data; a read unit for reading the image data stored in the storage unit; a counting unit which counts the number of pieces of data in one line of the read image data; a data amount determination unit which determines whether the number of pieces of data in one line of the counted image data is larger or smaller than the preset number of data equivalent to one line; and an adjustment unit which adjusts the number of pieces of data in one line of the image data in accordance with a result of the determination by the data amount determination unit.

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).

特開平06−119079号公報Japanese Patent Laid-Open No. 06-119079 特開平09−237076号公報JP 09-237076 A 特開平09−205463号公報JP 09-205463 A 特開2003−023513号公報JP 2003-023513 A

しかしながら、特許文献1では、外来ノイズである静電気を受けた場合の誤動作対策として、データ入力線と電源供給線との間、データ入力線と接地線との間にコンデンサを接続し、静電気を逃がすように構成されている。近年の画像データ通信は、1フレーム当たりの画像データのサイズが大きく、動画像ともなれば、単位時間当たりのデータ転送速度が高速になっている。この技術をクロック信号ラインに適用した場合、信号遅延が発生し高速通信を行うことが、困難になってきている。   However, in Patent Document 1, a capacitor is connected between the data input line and the power supply line and between the data input line and the ground line as a countermeasure against malfunction when receiving static electricity that is external noise, so that static electricity is released. It is configured as follows. In recent image data communication, the size of image data per frame is large, and if it is a moving image, the data transfer rate per unit time is high. When this technique is applied to a clock signal line, signal delay occurs and it is difficult to perform high-speed communication.

また、特許文献2では、予め規定している符号をデータ中に埋め込み、通信するデータに誤りを検出した場合にはホストプロセッサにデータ・ブロックの再送を要求するよう構成されている。しかしながら、動画像データをリアルタイムで処理するような機器の場合、データの再送を要求していると動画像を構成するフレームレートを維持することが出来ない。   Patent Document 2 is configured to embed a predetermined code in data and request the host processor to retransmit the data block when an error is detected in the data to be communicated. However, in the case of a device that processes moving image data in real time, the frame rate constituting the moving image cannot be maintained if the retransmission of the data is requested.

また、特許文献3では、高速クロック生成回路であるPLL回路を持ち、クロックのパルス幅を検出しノイズであるか否かを判断するよう構成している。高速なPLL回路は、デバイスに占める回路規模の増大と消費電力の増大を招いてしまう。   Further, Patent Document 3 has a PLL circuit that is a high-speed clock generation circuit, and is configured to detect the pulse width of the clock and determine whether or not it is noise. A high-speed PLL circuit causes an increase in circuit scale and power consumption in the device.

また、特許文献4では、データ送信側に特別なラベルデータを追加し、受信側で画像データの後端のラベルデータに基づき、画像データの各ラインの終了を検出する。そして、受信した画像データの各ラインのラインデータ長を整合させるよう構成されている。しかしながら、わざわざ生成するラベルデータが、画像データとして構成されるデータの特定閾値内のデータ範囲(画像の階調濃度に対応する範囲)に設定する必要があり、画像の階調を扱うデータビット幅より大きなビット幅が必要となる。   In Patent Document 4, special label data is added to the data transmission side, and the end of each line of the image data is detected on the reception side based on the label data at the rear end of the image data. And it is comprised so that the line data length of each line of the received image data may be matched. However, it is necessary to set the label data to be generated to a data range (a range corresponding to the gradation density of the image) within a specific threshold of the data configured as the image data, and the data bit width for handling the gradation of the image A larger bit width is required.

送信側から受信側にリアルタイムな動画像データの通信を行うような構成の場合、受信側回路にて、論理上同一のクロック線で同期化し画像データを受信している回路が複数存在しても、通常のシーケンス動作では特に問題とならないよう論理設計している。   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 is a diagram illustrating a configuration of an image data communication apparatus according to an embodiment. 実施形態に係る画像フォーマットの一例を示す図。The figure which shows an example of the image format which concerns on embodiment. 実施形態に係る画像データ通信装置の通常動作時のタイミングチャート。6 is a timing chart during normal operation of the image data communication apparatus according to the embodiment. 実施形態に係る画像データ通信装置の通常動作時のタイミングチャート。6 is a timing chart during normal operation of the image data communication apparatus according to the embodiment. 第1実施形態に係わる内容を説明するためのタイミングチャート。The timing chart for demonstrating the content concerning 1st Embodiment. 第1実施形態に係わる内容を説明するためのタイミングチャート。The timing chart for demonstrating the content concerning 1st Embodiment. 第1実施形態に係わる内容を説明するためのタイミングチャート。The timing chart for demonstrating the content concerning 1st Embodiment. 第2実施形態に係わる内容を説明するためのタイミングチャート。The timing chart for demonstrating the content concerning 2nd Embodiment. 第2実施形態に係わる内容を説明するためのタイミングチャート。The timing chart for demonstrating the content concerning 2nd Embodiment. 第2実施形態に係わる内容を説明するためのタイミングチャート。The timing chart for demonstrating the content concerning 2nd Embodiment.

(第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 data transmitting apparatus 1 transmits image data according to a prescribed format. The image data receiving device 2 receives the image data transmitted from the image data transmitting device 1. The image data receiving device 2 is constituted by a plurality of bits of data synchronized with a clock signal, and receives data based on an image format in which a horizontal synchronizing signal and a vertical synchronizing signal are defined by a predetermined code. An image data communication format used for communication between the image data transmitting apparatus 1 and the image data receiving apparatus 2 is, for example, RECOMMENDATION ITU-R BT. It conforms to 656-4. In such an image data communication format, a horizontal synchronizing signal and a vertical synchronizing signal are inserted as prescribed marker codes in data synchronized with a prescribed clock. Even for contents having different image sizes, it is possible to use an image format in which a predetermined marker code and blank data are inserted separately in the communication data, such as the image data communication format.

メモリ3は画像データ受信装置2が受信した画像データを記録する。   The memory 3 records the image data received by the image data receiving device 2.

(画像フォーマット解析処理部201)
画像フォーマット解析処理部201は、画像データ受信装置2の内、1点鎖線で囲っているブロックであり、画像データ通信フォーマットに基づいて受信したデータの内、画像データのみを抽出する。
(Image format analysis processing unit 201)
The image format analysis processing unit 201 is a block surrounded by a one-dot chain line in the image data receiving device 2, and extracts only image data from data received based on the image data communication format.

画像フォーマット解析処理部201の回路ブロックを同期化するクロック信号は、画像データ送信装置1より出力されるクロック信号(図1の信号名:CLK_Iと表記する)である。   The clock signal for synchronizing the circuit blocks of the image format analysis processing unit 201 is a clock signal output from the image data transmitting device 1 (denoted as signal name: CLK_I in FIG. 1).

マーカコード判別部202は、画像データ通信フォーマットに基づくマーカコードを判別する。   The marker code determination unit 202 determines a marker code based on the image data communication format.

水平同期位置検出部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 code determination unit 202. The vertical synchronization position detection unit 204 (vertical synchronization signal detection unit) detects whether or not the vertical synchronization position is based on the marker code determination result determined by the marker code determination unit 202.

1ラインサイクル数カウント部205は、水平同期位置検出部203の検出結果と画像データ通信フォーマットのクロック信号とに基づいて受信したクロックサイクル数をカウントする。1ラインサイクル数カウント部205は、水平同期信号を起点として画像フォーマットの1ラインを構成するデータの数をカウントする。   The one-line cycle number counting unit 205 counts the number of received clock cycles based on the detection result of the horizontal synchronization position detecting unit 203 and the clock signal of the image data communication format. The one line cycle number counting unit 205 counts the number of data constituting one line of the image format with the horizontal synchronization signal as a starting point.

ライン数カウント部206は、水平同期位置検出部203と、垂直同期位置検出部204とからの指示に応じて、画像データ通信フォーマットに基づいて受信したデータのライン数をカウントする。ライン数カウント部206は、垂直同期信号を起点として画像フォーマットの1フレームを構成するライン数をカウントする。   The line number counting unit 206 counts the number of lines of data received based on the image data communication format in accordance with instructions from the horizontal synchronization position detection unit 203 and the vertical synchronization position detection unit 204. The line number counting unit 206 counts the number of lines constituting one frame of the image format starting from the vertical synchronization signal.

画像データ抽出部207は、1ラインサイクル数カウント部205とライン数カウント部206とのカウント値に応じて、画像データ通信フォーマットに基づいて受信したデータ中の必要画像領域を抽出する。   The image data extraction unit 207 extracts a necessary image region in the received data based on the image data communication format according to the count values of the one-line cycle number counting unit 205 and the line number counting unit 206.

(画像データ量調整部301)
画像データ量調整部301は、画像データ受信装置2の内、破線で囲っているブロックであり、1ラインあたりの画像データ量(画像データの数)に誤りが無いかを検出し、誤りがある場合に、画像データ量を調整する。例えば、画像データ量調整部301は、画像データの1ラインのデータの数が、予め設定されている1ラインに相当するデータの数に対して多いと判断した場合、1ラインのデータを構成するように多い分のデータを削除する。また、画像データ量調整部301は、画像データの1ラインのデータの数が、予め設定されている1ラインに相当するデータの数に対して少ないと判断した場合、1ラインのデータを構成するように不足分のデータを追加する。
(Image data amount adjustment unit 301)
The image data amount adjusting unit 301 is a block surrounded by a broken line in the image data receiving device 2, and detects whether there is an error in the amount of image data (number of image data) per line. In this case, the image data amount is adjusted. For example, if the image data amount adjustment unit 301 determines that the number of data of one line of image data is larger than the number of data corresponding to a preset one line, the image data amount adjustment unit 301 configures one line of data. Delete as much data as possible. When the image data amount adjustment unit 301 determines that the number of data of one line of image data is smaller than the number of data corresponding to a preset one line, the image data amount adjustment unit 301 configures one line of data. Add the missing data as follows.

YデータFIFO302は、画像データ抽出部207にて抽出された輝度情報であるYデータをサンプリングしたデータのみを一時的に記憶する。以降の説明では輝度情報データのことをYデータとして説明する。尚、画像データの要素として、輝度情報データは例示的なものであり、輝度情報の他に、明度情報、階調情報などが含まれる。   The Y data FIFO 302 temporarily stores only data obtained by sampling Y data that is luminance information extracted by the image data extraction unit 207. In the following description, the luminance information data will be described as Y data. Note that the luminance information data is exemplary as an element of the image data, and includes brightness information, gradation information, and the like in addition to the luminance information.

CデータFIFO303は、画像データ抽出部207にて抽出された色情報であるCデータをサンプリングしたデータのみを一時的に記憶する。以降の説明では色情報データのことをCデータとして説明する。   The C data FIFO 303 temporarily stores only data obtained by sampling the C data that is color information extracted by the image data extraction unit 207. In the following description, the color information data is described as C data.

YデータFIFO302およびCデータFIFO303は、データ入力とデータ出力が異なるクロックで制御可能な非同期FIFOである。   The Y data FIFO 302 and the C data FIFO 303 are asynchronous FIFOs in which data input and data output can be controlled by different clocks.

Yデータ読み出し部304は、YデータFIFO302に一時的に記憶されたYデータを順次、読出すための制御を行う。   The Y data reading unit 304 performs control for sequentially reading Y data temporarily stored in the Y data FIFO 302.

Yデータ数カウント部305は、Yデータ読み出し部304により読出されたデータ数をカウントする。   The Y data number counting unit 305 counts the number of data read by the Y data reading unit 304.

Yデータ量判断部306は、Yデータ数カウント部305のカウント値に応じて、1ライン単位のYデータの量が、予め設定されてあるデータ量より多いか少ないかを判断する。   The Y data amount determination unit 306 determines whether the amount of Y data for each line is larger or smaller than a preset data amount according to the count value of the Y data number counting unit 305.

Yデータ量調整部307は、Yデータ量判断部306の判断結果を基に、Yデータの1ラインに相当する必要データ量に調整し、メモリ3にYデータを記憶する。   The Y data amount adjustment unit 307 adjusts to a necessary data amount corresponding to one line of Y data based on the determination result of the Y data amount determination unit 306, and stores the Y data in the memory 3.

Cデータ読み出し部308は、CデータFIFO303に一時的に記憶されたCデータを順次、読出すための制御を行う。   The C data reading unit 308 performs control for sequentially reading C data temporarily stored in the C data FIFO 303.

Cデータ数カウント部309は、Cデータ読み出し部308により読出されたデータ数をカウントする。   The C data number counting unit 309 counts the number of data read by the C data reading unit 308.

Cデータ量判断部310は、Cデータ数カウント部309のカウント値に応じて、1ライン単位のCデータの量が、予め設定されてあるデータ量より多いか少ないかを判断する。   The C data amount determination unit 310 determines whether the amount of C data in one line unit is larger or smaller than a preset data amount according to the count value of the C data number counting unit 309.

Cデータ量調整部311は、Cデータ量判断部310の判断結果を基に、Cデータの1ラインに相当する必要データ量に調整し、メモリ3にCデータを記憶する。   The C data amount adjustment unit 311 adjusts the required data amount corresponding to one line of C data based on the determination result of the C data amount determination unit 310, and stores the C data in the memory 3.

ブランク期間判断部312は、YデータFIFO302とCデータFIFO303とが、所定期間空の状態であるか否かを検出することで、画像データ通信フォーマットに基づくデータ中のブランク期間を判断する。   The blank period determination unit 312 determines whether the Y data FIFO 302 and the C data FIFO 303 are empty for a predetermined period, thereby determining a blank period in the data based on the image data communication format.

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 amount adjustment unit 301. The clock signal generated here is a clock signal that is not synchronized with the clock signal output from the image data transmitting apparatus 1 (signal name: CLK_I in FIG. 1), and is expressed as CLK_M.

図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 data transmission apparatus 1 to the image data reception apparatus 2 in such an image data communication format. explain.

まず、図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 code discriminating unit 202 first detects 4-byte data of FF → 00 → 00 → XX which is a SAV code only at the head of the first frame constituting the moving image. . An example of a marker code at the beginning of the 4-byte data XX is EC. The synchronous reception operation of image data is started from the position where this code is detected. When extracting the image data, it is determined that the data is valid from the line of point I shown in FIG. 2, and the sampling operation of the image data is started. The marker code corresponding to XX of the 4-byte data in the data area line of the ODD field is 80, and the marker code determination unit 202 detects FF → 00 → 00 → 80.

図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 data transmitting apparatus 1 to the image data receiving apparatus 2 and during normal operation of the ODD field data area line. Represents. Normally, it is determined that it is the horizontal synchronization position when it is received as a combination of 4-byte data of the code of FF → 00 → 00 → 80 which is a normal SAV code. At this time, the count value of the one-line cycle number counting unit 205 is initialized from the MAX count value (in this example, counted at 0 origin, counter value = 1715) to 0. The count value on the timing chart of FIG.

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 data extraction unit 207 outputs a write enable signal (C data_EN, Y data_EN in FIG. 3) for the Y data FIFO 302 and the C data FIFO 303. The output of the image data extraction unit 207 is based on the count value of the one line cycle number counting unit 205. When the counter value of the one-line cycle number counting unit 205 is an even number, the C data enable signal is output, and when the counter value is an odd number, the Y data enable signal is output. With this operation, Y data in the image data is written into the Y data FIFO 302. Also, the C data in the image data is written into the C data FIFO 303. In this way, two elements in the image data are processed separately. By separating the elements, it is possible to individually perform image processing at a later stage in the device. The operation shown in FIG. 3 is repeated for a necessary size as a horizontal image. Further, only necessary image data can be extracted by repeating as many vertical lines as necessary.

図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 amount adjustment unit 301. The operation of writing each data temporarily written in the Y data FIFO 302 and the C data FIFO 303 to the memory 3, which is the main memory, is described. To do. The clock signal (CLK_M) of the image data amount adjustment unit 301 is an asynchronous clock with the clock signal (CLK_I) used in the image format analysis processing unit 201. The image data amount adjustment unit 301 operates in synchronization with the clock signal (CLK_M) generated by the CLK generation unit 313.

まず、YデータFIFO302のデータ読出しについて説明する。図3で説明したようにYデータFIFO302にデータが書き込まれると、FIFOの書き込み状態で空の状態であることを出力するY_FIFO_EMPTY信号が、「H」から「L」の状態となる。このY_FIFO_EMPTY信号は、「H」が空状態、「L」で空ではない状態を表している。   First, data reading of the Y data FIFO 302 will be described. As described with reference to FIG. 3, when data is written to the Y data FIFO 302, the Y_FIFO_EMPTY signal that outputs that the FIFO is in an empty state changes from “H” to “L”. The Y_FIFO_EMPTY signal represents a state where “H” is empty and “L” is not empty.

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 data reading unit 304 outputs an “H” state in which the signal name: Y_FIFO_READ_EN, which is an enable signal for reading data, is enabled during the period of the Y_FIFO_EMPTY signal = “L”. On the contrary, since the FIFO is empty during the period of the Y_FIFO_EMPTY signal = “H”, reading is prohibited, so that the state of Y_FIFO_READ_EN = “L” is output. When Y_FIFO_READ_EN = “H” is output, data is read in the order written in the Y data FIFO 302. The Y_FIFO output in FIG.

通常、書き込まれた順番は、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 number counting unit 305 counts the number of data pixels in the horizontal direction. The Y data count value of the Y data number counting unit 305 counts up to 720 at the point when the point E in FIG.

Yデータ量調整部307は、YデータFIFO302から読み出されたデータを、Y_FIFO_READ_EN=「H」の状態の次のクロックサイクルで、メモリ3に書き込むためのイネーブル信号を出力する。これがY_メモリWRITE_EN信号であり、Y0→Y1・・・Y719の720画素分のデータが順番にメモリ3に書きこまれる。   The Y data amount adjustment unit 307 outputs an enable signal for writing the data read from the Y data FIFO 302 to the memory 3 in the next clock cycle in the state of Y_FIFO_READ_EN = “H”. This is a Y_memory WRITE_EN signal, and data for 720 pixels of Y0 → Y1... Y719 is written in the memory 3 in order.

Yデータ量判断部306は、Yデータ数カウント部305のカウント数が予め設定している画像データ量と同じ場合、正常動作終了と判断し、Yデータ量調整部307に対して特にフラグを挙げないよう動作する。また、同時にYデータ数カウント部305のカウント値を初期化するように制御する。   The Y data amount determination unit 306 determines that the normal operation has ended when the count number of the Y data number counting unit 305 is the same as the preset image data amount, and particularly sets a flag for the Y data amount adjustment unit 307. Not to work. At the same time, control is performed so that the count value of the Y data count section 305 is initialized.

次に、CデータFIFO303のデータ読み出しについて説明する。図3で説明したようにCデータFIFO303にデータが書き込まれると、FIFOの書き込み状態で空の状態であることを出力するC_FIFO_EMPTY信号が、「H」から「L」の状態となる。このC_FIFO_EMPTY信号は、「H」が空状態、「L」が空ではない状態を表している。   Next, data reading from the C data FIFO 303 will be described. As described with reference to FIG. 3, when data is written in the C data FIFO 303, the C_FIFO_EMPTY signal that outputs that the FIFO is in an empty state changes from “H” to “L”. The C_FIFO_EMPTY signal represents a state where “H” is empty and “L” is not empty.

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 data reading unit 308 outputs an “H” state in which the signal name: C_FIFO_READ_EN, which is an enable signal for reading data, is in an enabled state during the period of the C_FIFO_EMPTY signal = “L”. On the contrary, since the FIFO is empty during the period of the C_FIFO_EMPTY signal = “H”, reading is prohibited, so that the state of C_FIFO_READ_EN = “L” is output. When C_FIFO_READ_EN = “H” is output, data is read in the order written in the C data FIFO 303. This is the C_FIFO output in FIG. Normally, the order of writing is Cb0 → Cr0 → Cb1 → Cr1... Cb359 → Cr359, so the data for 720 pixels are read in order. In the C_FIFO_READ_EN = “H” state, the C data number counting unit 309 counts the number of data pixels in the horizontal direction. The point D in FIG. 4 is the timing at which the final data in the horizontal direction of the C data is read, and the C data count value of the C data number counting unit 309 counts up to 720.

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 adjustment unit 311 outputs an enable signal for writing the data read from the C data FIFO 303 to the memory 3 in the next clock cycle in the state of C_FIFO_READ_EN = “H”. This is the C_memory WRITE_EN signal, and data of 720 pixels of Cb0 → Cr0 → Cb1 → Cr1... Cb359 → Cr359 is written in the memory 3 in order.

Cデータ量判断部310は、Cデータ数カウント部309のカウント数が予め設定している画像データ量と同じ場合、正常動作終了と判断し、Cデータ量調整部311に対して特にフラグを挙げないよう動作する。また、同時にCデータ数カウント部309のカウント値を初期化するように制御する。   When the count number of the C data number counting unit 309 is the same as the preset image data amount, the C data amount determining unit 310 determines that the normal operation has ended, and raises a flag for the C data amount adjusting unit 311 in particular. Not to work. At the same time, control is performed so that the count value of the C data count section 309 is initialized.

次に、本発明の第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 data transmission device 1 to the image data reception device 2, with respect to the timing chart described in FIG. 5 will be described.

図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 analysis processing unit 201 operates in synchronization with CLK_I. The one-line cycle number counting unit 205, the Y data FIFO 302, and the C data FIFO 303 also operate in synchronization with CLK_I. However, due to the difference in the circuit arrangement of each block in the image format analysis processing unit 201, there is a physical difference in clock wiring length and stray capacitance, and the delay amount of the clock signal in each block differs.

例えば、1ラインサイクル数カウント部205は図1のA点でクロック信号を受け取る。ここで、図1のA点のクロック信号を図5ではCLK_I(A)で表す。本実施形態では、図5のbのポイントで、CLK_Iと同一のタイミングでクロックパルスが伝達され、1ラインサイクル数カウント部205のカウンタ値が1から2にカウントアップする。   For example, the one-line cycle number counting unit 205 receives a clock signal at point A in FIG. Here, the clock signal at point A in FIG. 1 is represented by CLK_I (A) in FIG. In the present embodiment, the clock pulse is transmitted at the same timing as CLK_I at the point of b in FIG. 5, and the counter value of the one-line cycle number counting unit 205 counts up from 1 to 2.

一方、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 data FIFO 302 receives the CLK_I signal at the position A ′ in FIG. 1 and the C data FIFO 303 receives the CLK_I signal at the position A ″ in FIG. 1. Here, as shown in FIG. Is represented by CLK_I (A ′ / A ″). In this embodiment, all the clock cycles have disappeared at the point b in FIG. 5. The point b in FIG. It is a point that needs to be done.

しかし、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 Y data FIFO 302 cannot be written into the Y data FIFO 302. Then, Y0 of data is lost in the Y data FIFO 302. As a result, the data for 719 pixels that are missing from the pixel data of Y1 → Y2... Y719 are sequentially written in the Y data FIFO.

この状態で、図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 number counting unit 305 is counted up to 719, but not 720. Here, when there is no Y data amount adjustment unit 307, the operation of Y data stops until the head Y0 data of the next line comes. 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. FIG. 7 will be used to explain the operation after the point G shown in FIG.

図7のG点でYデータFIFO302は次のラインまで空の状態となる。このG点からH点までの期間は、次のラインまでの水平ブランク期間の一部に対応している。ブランク期間判断部312にて、所定の期間以上、YデータFIFO302が空の状態であることを検出すると、水平ブランク期間に入ったことを判断できる。この所定の期間が図7に示した水平ブランク判断時間である。   At point G in FIG. 7, the Y data FIFO 302 becomes empty until the next line. The period from point G to point H corresponds to a part of the horizontal blank period up to the next line. When the blank period determination unit 312 detects that the Y data FIFO 302 is empty for a predetermined period or longer, it can be determined that the horizontal blank period has been entered. This predetermined period is the horizontal blank determination time shown in FIG.

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 adjustment unit 307 adjusts by adding a data amount that is insufficient at the point H (in this embodiment, one pixel of Y data). The WRITE_EN signal is output during the period from H to I in FIG. At the same time, 10H data is written as Y data. At this time, the Y data count value is cleared to 0 by the clock at the point where the Y_memory WRITE_EN signal is “H” (I point in FIG. 7) corresponding to the data writing for the last pixel of one line.

また、図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 data reading unit 308 on the C data side performs the same operation as the Y data reading unit 304 on the Y data side. do.

同様に、Cデータ数カウント部309およびYデータ数カウント部305、Cデータ量判断部310およびYデータ量判断部306は、それぞれ同一の動作を行う。Cデータ量調整部311とYデータ量調整部307とは、生成するデータのみが異なり、Cデータ量調整部311は、80Hのデータをメモリ3に書き込む。   Similarly, the C data number counting unit 309, the Y data number counting unit 305, the C data amount determining unit 310, and the Y data amount determining unit 306 perform the same operation. The C data amount adjustment unit 311 and the Y data amount adjustment unit 307 differ only in the data to be generated, and the C data amount adjustment unit 311 writes 80H data into the memory 3.

第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 data transmission device 1 to the image data reception device 2, with respect to the timing chart described in FIG. 8 will be used for explanation.

図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 analysis processing unit 201 operates in synchronization with the CLK_I. The one-line cycle number counting unit 205, the Y data FIFO 302, and the C data FIFO 303 also operate in synchronization with CLK_I. However, due to the difference in the circuit arrangement of each block in the image format analysis processing unit 201, there is a physical difference in clock wiring length and stray capacitance, and the delay amount of the clock signal in each block differs.

例えば、1ラインサイクル数カウント部205は図1のA点でクロック信号を受け取る。ここで、図1のA点のクロック信号を図8ではCLK_I(A)で表す。本実施形態では、図8のKのポイントで、CLK_Iとは異なり、クロック信号が消失している状態となる。この時に、1ラインサイクル数カウント部205のカウント値はカウントアップしない。   For example, the one-line cycle number counting unit 205 receives a clock signal at point A in FIG. Here, the clock signal at point A in FIG. 1 is represented by CLK_I (A) in FIG. In the present embodiment, at the point K in FIG. 8, unlike CLK_I, the clock signal is lost. At this time, the count value of the one-line cycle number counting unit 205 is not counted up.

一方、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 data FIFO 302 receives the CLK_I signal at the position A ′ in FIG. 1 and the C data FIFO 303 receives the CLK_I signal at the position A ″ in FIG. 1. Here, the clock signals at the points A ′ and A ″ as shown in FIG. Is represented by CLK_I (A ′ / A ″). In this embodiment, the K point in FIG. 8 has been detected as the same clock as CLK_I. The K point in FIG. It is a point that does not need to be sampled.

しかし、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 Y data FIFO 302 twice. Then, data for one pixel data of Y0 → Y0 → Y1 → Y2... Y719 is large, and data for 721 pixels is sequentially written in the Y data FIFO.

この状態で、図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 adjustment unit 307 writes data to the memory 3. It operates so as not to output the enable signal. Specifically, the operation is performed so as not to output the Y_memory WRITE_EN signal of Q 'in FIG. The period from the point P to the point H 'corresponds to a part of the horizontal blank period up to the next line. When the blank period determination unit 312 detects that the Y data FIFO 302 is empty for a predetermined period or longer, it can be determined that the horizontal blank period has been entered. This predetermined period is the horizontal blank determination time shown in FIG. After the elapse of the horizontal blank determination time, an initialization operation for each block of the image data amount adjustment unit 301 is performed, and a preparation state for processing data of the next line is obtained.

また、図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 data reading unit 308 on the C data side performs the same operation as the Y data reading unit 304 on the Y data side. do.

同様に、Cデータ数カウント部309とYデータ数カウント部305、Cデータ量判断部310とYデータ量判断部306、Cデータ量調整部311とYデータ量調整部307の各ブロックが同一の動作を行う。   Similarly, the blocks of the C data number counting unit 309 and the Y data number counting unit 305, the C data amount determining unit 310 and the Y data amount determining unit 306, the C data amount adjusting unit 311 and the Y data amount adjusting unit 307 are the same. Perform the action.

第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ラインのデータの数が、予め設定されているデータの数に対して少ないと判断した場合、前記調整手段は1ラインのデータを構成するように不足分のデータを追加することを特徴とする請求項1に記載の画像データ通信装置。   When the data amount judging means judges that the number of data of one line of the image data is smaller than the number of data set in advance, the adjusting means is insufficient to constitute one line of data. The image data communication apparatus according to claim 1, wherein minute data is added. 前記データ量判断手段は、前記画像データの1ラインのデータの数が、予め設定されているデータの数に対して多いと判断した場合、前記調整手段は1ラインのデータを構成するように多い分のデータを削除することを特徴とする請求項1に記載の画像データ通信装置。   When the data amount judging means judges that the number of data of one line of the image data is larger than the number of data set in advance, the adjusting means is so large as to constitute one line of data The image data communication apparatus according to claim 1, wherein minute data is deleted. 前記記憶手段は、前記抽出手段により抽出された画像データの要素を記憶する複数の記憶手段を有し、
前記読出手段は、前記複数の記憶手段のそれぞれに対応した複数のデータ読出手段を有し、
前記カウント手段は、前記複数のデータ読出手段のそれぞれに対応した複数のカウント手段を有し、
前記データ量判断手段は、前記複数のカウント手段のそれぞれに対応した複数のデータ量判断手段を有し、
前記調整手段は、前記複数のデータ量判断手段のそれぞれに対応した複数の調整手段を有し、
前記複数の調整手段のそれぞれは、前記複数のデータ量判断手段のそれぞれで得られた判断結果に応じて、それぞれの要素のデータの数を調整することを特徴とする請求項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.
前記抽出手段により抽出された画像データの要素には、輝度情報と色情報が含まれることを特徴とする請求項4に記載の画像データ通信装置。   5. The image data communication apparatus according to claim 4, wherein the element of the image data extracted by the extracting unit includes luminance information and color information. 前記データが読み出された時点から次の読み出し時点までが所定の期間以上となる水平ブランク期間であるか判断するブランク期間判断手段を更に備え、
前記ブランク期間判断手段が、前記期間を水平ブランク期間であると判断した場合に、前記データ量判断手段は前記画像データの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ラインサイクル数カウント手段のカウント値と前記ライン数カウント手段のカウント値とに応じて、前記データから画像データを抽出する抽出手段と、前記抽出手段により抽出された画像データを記憶する記憶手段と、を備える画像データ通信装置の画像データ通信方法であって、
読出手段が、前記記憶手段に記憶された前記画像データを読み出す読出工程と、
カウント手段が、前記読出工程で読み出された前記画像データの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:
コンピュータを、請求項1乃至6のいずれか1項に記載の画像データ通信装置の各手段として記載させるためのプログラム。   The program for making a computer be described as each means of the image data communication apparatus of any one of Claims 1 thru | or 6.
JP2012007386A 2012-01-17 2012-01-17 Image data communication device, image data communication method, and program Pending JP2013150072A (en)

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)

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