JPH09289628A - Acquisition method and decoding apparatus for digital signal multiplexed with video signal - Google Patents
Acquisition method and decoding apparatus for digital signal multiplexed with video signalInfo
- Publication number
- JPH09289628A JPH09289628A JP10280996A JP10280996A JPH09289628A JP H09289628 A JPH09289628 A JP H09289628A JP 10280996 A JP10280996 A JP 10280996A JP 10280996 A JP10280996 A JP 10280996A JP H09289628 A JPH09289628 A JP H09289628A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- pixel
- digital
- digital signal
- video data
- 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
Landscapes
- Television Systems (AREA)
Abstract
(57)【要約】
【課題】映像信号に多重化されたデジタル信号を映像信
号を基に生成されたデジタル映像データから取得する方
法及びデコード装置を提供する。
【解決手段】映像信号を受信する受信装置と、受信した
映像信号をデジタル映像データに変換する映像デコード
装置と、デジタル映像データを記憶する記憶装置と、中
央処理装置とを備える。中央処理装置は、記憶装置に記
憶したデジタル映像データからキャプション信号を抽出
するサンプリング部と、サンプリングしたデータを解析
して文字コード又は制御コードを生成するコード解析部
とを有する。サンプリング部は、フレーム毎に、キャプ
ション信号の1ビット幅に略対応する画素間隔で第21
水平走査線を構成する画素のデジタル映像データを抽出
し、所定のしきい値で2値化する。
(57) A method and a decoding device for obtaining a digital signal multiplexed with a video signal from digital video data generated based on the video signal. A receiving device for receiving a video signal, a video decoding device for converting the received video signal into digital video data, a storage device for storing the digital video data, and a central processing unit. The central processing unit has a sampling unit that extracts a caption signal from digital video data stored in a storage device, and a code analysis unit that analyzes the sampled data and generates a character code or a control code. The sampling unit sets the 21st pixel interval for each frame at a pixel interval substantially corresponding to the 1-bit width of the caption signal.
Digital video data of pixels forming a horizontal scanning line is extracted and binarized with a predetermined threshold value.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、テレビ信号やビデ
オ信号等の映像信号に多重化されたデジタル信号、特に
クローズドキャプション信号等の文字情報の取得方法及
びデコード装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and a decoding device for acquiring character information such as a digital signal multiplexed with a video signal such as a television signal or a video signal, particularly a closed caption signal.
【0002】[0002]
【従来の技術】テレビ信号に文字情報を多重化して字幕
を表示する放送方式として、例えば米国で放送されてい
るクローズドキャプションや、我国で放送されている文
字放送等がある。これ等の放送方式では、同期信号と文
字及び/又は制御コードとからなる文字情報を、テレビ
信号の所定番目の水平走査線に多重化している。2. Description of the Related Art As a broadcasting system for displaying subtitles by multiplexing character information on a television signal, there are, for example, closed captions broadcast in the United States and text broadcasts in Japan. In these broadcasting systems, character information including a sync signal and characters and / or control codes is multiplexed on a predetermined horizontal scanning line of a television signal.
【0003】ここで、クローズドキャプションは、音声
に同期した文字をテレビ画面上に表示する放送方式であ
り、従来、テレビ受信機でクローズドキャプションを表
示するには、専用のLSI又はデコーダユニットが必要
であった。たとえば、「日経エレクトロニクス1991
年9月30日発行第537号(日経BP社)」では、こ
のデコーダ機能を3チップにまとめたチップセットが紹
介されている。また、「日経エレクトロニクス1993
年6月7日第582号(日経BP社)」では、テレビ受
信機の選局用マイコンにキャプション表示機能を組み込
んだマイコン組み込み型のLSIや、テレビ受信機用プ
リント配線基板上にデコーダ機能を追加したアドオン型
のLSIが紹介されている。これ等のチップセットやL
SIでは、アナログのテレビ信号に多重化されたキャプ
ション信号(文字情報)を、専用の同期分離回路によ
り、キャプション信号の周波数で同期分離し、デコード
している。Here, the closed caption is a broadcasting system in which characters synchronized with voice are displayed on a television screen, and conventionally, a dedicated LSI or a decoder unit is required to display the closed caption on a television receiver. there were. For example, “Nikkei Electronics 1991
No. 537 (Nikkei BP) issued September 30, 2013, introduces a chipset in which this decoder function is integrated into three chips. In addition, “Nikkei Electronics 1993
June 582, No. 582 (Nikkei BP) ", a microcomputer built-in type LSI that incorporates a caption display function into a TV receiver channel selection microcomputer, and a decoder function on the TV receiver printed wiring board. The added add-on type LSI is introduced. These chipsets and L
In SI, a caption signal (character information) multiplexed on an analog television signal is synchronously separated at the frequency of the caption signal by a dedicated synchronous separation circuit and decoded.
【0004】[0004]
【発明が解決しようとする課題】ところで、従来より、
パーソナルコンピュータやワードプロセッサ等のデジタ
ルの情報処理装置に接続されたモニタにテレビ信号やビ
デオ信号等のアナログ映像信号によって得られる映像を
表示するため、受信したアナログ映像信号をモニタ画面
の1画素単位のYUV又はRGBのデジタル映像データ
(以下、単にデジタル映像データと称する)に変換する
方法が知られている。By the way, conventionally,
In order to display an image obtained by an analog video signal such as a television signal or a video signal on a monitor connected to a digital information processing device such as a personal computer or a word processor, the received analog video signal is a YUV pixel unit of the monitor screen. Alternatively, a method of converting into RGB digital video data (hereinafter, simply referred to as digital video data) is known.
【0005】しかしながら、上記従来のキャプション信
号デコード用のチップセットやLSIは、キャプション
信号をアナログ映像信号から同期分離して直接取得する
ものであり、デジタル映像データからキャプション信号
を取得する方法及び装置については、従来明らかでなか
った。特に、パーソナルコンピュータでは、モニタ表示
の水平走査周波数が種々異なるため、これに伴い、キャ
プション信号の周波数も変化する。このため、上記従来
のアナログ信号から同期分離して直接キャプション信号
を取得する方法、あるいは受信したアナログ映像をモニ
タ画面の1画素単位のYUV又はRGBのデジタル映像
データに変換する方法では、上記映像信号と同時にキャ
プション信号を取得することができないことがある。However, the conventional chipset or LSI for decoding the caption signal is for directly acquiring the caption signal by synchronously separating it from the analog video signal, and a method and apparatus for acquiring the caption signal from digital video data. Was not previously clear. Particularly in a personal computer, since the horizontal scanning frequency of the monitor display is different, the frequency of the caption signal also changes accordingly. For this reason, in the conventional method of directly separating the analog signal from the analog signal and directly obtaining the caption signal, or of converting the received analog video into YUV or RGB digital video data of one pixel unit of the monitor screen, At the same time, it may not be possible to acquire the caption signal.
【0006】本発明は上記事情に基づいてなされたもの
であり、アナログ映像信号に多重化された文字情報等の
デジタル信号を、アナログ映像信号を基に生成されたデ
ジタル映像データから取得する方法及びデコード装置を
提供し、テレビやビデオの映像信号と同時にキャプショ
ン信号を取得できるようにすることを目的とする。The present invention has been made based on the above circumstances, and a method for obtaining a digital signal such as character information multiplexed on an analog video signal from digital video data generated based on the analog video signal, and An object of the present invention is to provide a decoding device so that a caption signal can be acquired at the same time as a video signal of television or video.
【0007】[0007]
【課題を解決するための手段】上記課題を解決するため
に、本発明は、映像信号の所定番目の水平走査線に多重
化されたデジタル信号の取得方法であって、前記映像信
号を画素単位の多値のデジタル映像データに変換する変
換行程と、フレーム毎に、当該フレームを構成する画素
のうち、前記水平走査線を構成する所定番目の画素を基
準として、前記デジタル信号の1ビット幅に略対応する
画素間隔で前記水平走査線を構成する画素のデジタル映
像データを抽出する抽出行程と、前記抽出したデジタル
映像データを所定のしきい値で2値化して、前記デジタ
ル信号を取得するデジタル信号取得行程と、を有するこ
とを特徴とする。In order to solve the above-mentioned problems, the present invention is a method for obtaining a digital signal multiplexed on a predetermined horizontal scanning line of a video signal, wherein the video signal is pixel by pixel. Of the multi-valued digital video data, and, for each frame, of the pixels forming the frame, the predetermined number of pixels forming the horizontal scanning line is used as a reference to set the bit width of the digital signal to 1 bit. An extraction process for extracting digital video data of pixels forming the horizontal scanning line at substantially corresponding pixel intervals, and a digital process for binarizing the extracted digital video data with a predetermined threshold value to obtain the digital signal. And a signal acquisition step.
【0008】また、本発明のデコード装置は、映像信号
の所定番目の水平走査線に多重化されたデジタル信号の
デコード装置であって、前記映像信号を画素単位の多値
のデジタル映像データに変換する変換手段と、フレーム
毎に、当該フレームを構成する画素のうち前記水平走査
線を構成する画素のデジタル映像データを記憶媒体に記
憶する記憶手段と、前記水平走査線を構成する所定番目
の画素を基準として、前記記憶手段に記憶した画素のデ
ジタル映像データを前記デジタル信号の1ビット幅に略
対応する画素間隔で抽出する抽出手段と、前記抽出手段
で抽出したデジタル映像データを所定のしきい値で2値
化して前記デジタル信号を取得するデジタル信号取得手
段と、前記デジタル信号取得手段で取得したデジタル信
号をデコードするデコード手段と、を備えることを特徴
とする。Also, the decoding device of the present invention is a decoding device for a digital signal multiplexed on a predetermined horizontal scanning line of a video signal, the video signal being converted into multi-value digital video data in pixel units. A converting means for storing, for each frame, digital video data of pixels forming the horizontal scanning line among pixels forming the frame in a storage medium; and a predetermined pixel forming the horizontal scanning line. With reference to the extraction means for extracting the digital video data of the pixels stored in the storage means at a pixel interval substantially corresponding to the 1-bit width of the digital signal, and the digital video data extracted by the extraction means to a predetermined threshold. A digital signal acquisition unit that binarizes the value to acquire the digital signal, and decodes the digital signal acquired by the digital signal acquisition unit Characterized in that it comprises a coding means.
【0009】[0009]
【発明の実施の形態】以下に、本発明の第一実施形態が
適用されたデコード装置について説明する。尚、本実施
形態のデコード装置は、米国で放送されているクローズ
ドキャプションに対応したものである。クローズドキャ
プションは、上述したように、音声に同期した文字をテ
レビ画面上に表示する放送方式であり、キャプション信
号がNTSC方式のテレビ信号の21番目の水平走査線
全域に輝度信号として多重化されている。図5に21番
目の水平走査線に輝度信号として多重化されているキャ
プション信号の波形の一例を示す。BEST MODE FOR CARRYING OUT THE INVENTION A decoding device to which the first embodiment of the present invention is applied will be described below. The decoding device of the present embodiment is compatible with closed captions broadcast in the United States. As described above, the closed caption is a broadcasting system in which characters synchronized with voice are displayed on a television screen, and a caption signal is multiplexed as a luminance signal over the entire 21st horizontal scanning line of an NTSC television signal. There is. FIG. 5 shows an example of the waveform of the caption signal multiplexed as the luminance signal on the 21st horizontal scanning line.
【0010】キャプション信号は、図5に示すように、
7周期のクロック・ラン・イン信号504と、クロック
・ラン・イン信号に同期したスタート・コード505及
びデータ・コード506とからなる。クロック・ラン・
イン信号504は、データ・コードを解読するための同
期信号であり、その周波数503kHzである。データ
・コード506は、1バイト毎に1ビットのパリティコ
ードが割り当てられた2バイトのNRZ(non return t
o zero)信号である。データ・コードとして、2文字分
のアスキーコードが割り当てられた文字コードが送られ
てくる場合と、各種コマンド(文字の表示位置、色、書
体等の指定)が割り当てられた制御コードが送られてく
る場合とがある。尚、制御コードと文字コードとを区別
するため、制御コードの1バイト目のデータには、文字
を示すアスキーコードが割り当てられていない。スター
ト・コード505は、データ・コード506の開始位置
を特定するためのものであり、クロック・ラン・イン信
号の後に続く2ビットの論理値“0”と1ビットの論理
値“1”とからなる。The caption signal, as shown in FIG.
It consists of a clock run-in signal 504 of 7 cycles, a start code 505 and a data code 506 synchronized with the clock run-in signal. Clock run
The IN signal 504 is a synchronizing signal for decoding the data code, and its frequency is 503 kHz. The data code 506 is a 2-byte NRZ (non return t) in which a 1-bit parity code is assigned for each byte.
o zero) signal. As a data code, a character code to which two ASCII characters are assigned is sent, and a control code to which various commands (designation of character display position, color, typeface, etc.) are sent. There are cases where it comes. In order to distinguish between the control code and the character code, the ASCII code indicating the character is not assigned to the data of the first byte of the control code. The start code 505 is for specifying the start position of the data code 506, and is composed of a 2-bit logical value “0” and a 1-bit logical value “1” following the clock run-in signal. Become.
【0011】先ず、本実施形態のデコード装置のハード
ウェア構成について図1を参照して説明する。図1は本
実施形態が適用されたデコード装置のハードウェア構成
図である。First, the hardware configuration of the decoding apparatus of this embodiment will be described with reference to FIG. FIG. 1 is a hardware configuration diagram of a decoding device to which this embodiment is applied.
【0012】本実施形態のデコード装置のハードウェア
は、図1に示すように、中央処理装置1と、受信装置2
と、主メモリ3と、補助記憶装置4と、表示装置5と、
NTSCデコード装置6と、各装置間で必要な情報を伝
送するためのバス7とを備えて構成される。As shown in FIG. 1, the hardware of the decoding device according to the present embodiment comprises a central processing unit 1 and a receiving device 2.
A main memory 3, an auxiliary storage device 4, a display device 5,
It comprises an NTSC decoding device 6 and a bus 7 for transmitting necessary information between the devices.
【0013】受信装置2は、NTSC方式のテレビ信号
やビデオ信号を受信する。The receiver 2 receives an NTSC television signal or a video signal.
【0014】NTSCデコード装置6は、受信装置2に
よって受信されたテレビ信号又はビデオ信号をYUVの
デジタル映像データに変換し、この情報を主メモリ3又
は補助記憶装置4に転送する。また、NTSCデコード
装置6は、表示装置5の1フレーム分のデジタル映像デ
ータを主メモリ3又は補助記憶装置4に転送し終えたか
否かを示すレジスタを有し、1フレーム分のデジタル映
像データを主メモリ3又は補助記憶装置4に転送し終え
た場合には、このレジスタの予め決められたビット(以
下、転送終了ビットと呼ぶ)に1を立てる。The NTSC decoding device 6 converts the television signal or the video signal received by the receiving device 2 into YUV digital image data and transfers this information to the main memory 3 or the auxiliary storage device 4. Further, the NTSC decoding device 6 has a register indicating whether or not one frame of digital video data of the display device 5 has been transferred to the main memory 3 or the auxiliary storage device 4, and stores one frame of digital video data. When the transfer to the main memory 3 or the auxiliary storage device 4 is completed, 1 is set in a predetermined bit (hereinafter referred to as a transfer end bit) of this register.
【0015】主メモリ3は、ワークエリアとして機能し
たり、中央処理装置1の処理手順を規定するプログラム
や、中央処理装置1によって処理されるべきデータを記
憶する。また、主メモリ3には、NTSCデコード装置
6から転送されたデジタル映像データも記憶される。主
メモリ3には、例えばランダムアクセスメモリ等が用い
られる。The main memory 3 stores a program that functions as a work area, defines a processing procedure of the central processing unit 1, and data to be processed by the central processing unit 1. The main memory 3 also stores digital video data transferred from the NTSC decoding device 6. For the main memory 3, for example, a random access memory or the like is used.
【0016】補助記憶装置4には、デコード装置の動作
を制御するためのプログラム等や、NTSCデコード装
置6から転送されたデジタル映像データが格納される。
補助記憶装置4には、例えばフロッピーディスク、ハー
ドディスク、メモリカード等が用いられる。The auxiliary storage device 4 stores a program or the like for controlling the operation of the decoding device, and digital video data transferred from the NTSC decoding device 6.
As the auxiliary storage device 4, for example, a floppy disk, a hard disk, a memory card or the like is used.
【0017】中央処理装置1は、マイクロプロセッサを
主体に構成されており、主メモリ3や補助記憶装置4に
予め格納されているプログラムに従い、主メモリ3又は
補助記憶装置4に格納されたデジタル映像データからキ
ャプション信号を取得してデコードし、デコード結果を
表示装置5に表示すると共に、前記デジタル映像データ
に基づいて、テレビ映像やビデオ映像を表示装置5に表
示する。The central processing unit 1 is mainly composed of a microprocessor, and according to a program previously stored in the main memory 3 or the auxiliary storage device 4, a digital image stored in the main memory 3 or the auxiliary storage device 4 is used. A caption signal is acquired from the data, decoded, and the decoding result is displayed on the display device 5, and a television image or a video image is displayed on the display device 5 based on the digital image data.
【0018】表示装置5は、中央処理装置1の指令に従
い、テレビ映像やビデオ映像、およびデコードされたキ
ャプション信号の文字を表示する。表示装置5には、例
えばCRT、ELディスプレー、液晶ディスプレー等が
用いられる。The display device 5 displays the television image, the video image, and the characters of the decoded caption signal according to the instruction of the central processing unit 1. For the display device 5, for example, a CRT, an EL display, a liquid crystal display or the like is used.
【0019】入力装置8は、ユーザの命令や情報を入力
するためのものである。ユーザは、入力装置8を介し
て、デコード装置の起動や終了を指示することができ
る。また、ユーザが後述するしきい値を入力する場合に
も、入力装置5を介して行うことができる。入力装置8
には、例えばキーボードやマウス等のポインティングデ
バイスが用いられる。The input device 8 is for inputting a user command or information. The user can instruct activation and termination of the decoding device via the input device 8. Also, when the user inputs a threshold value described later, it can be performed via the input device 5. Input device 8
For example, a pointing device such as a keyboard or a mouse is used.
【0020】次に、図1に示す中央処理装置1の機能構
成について図2を参照して説明する。図2は図1に示す
中央処理装置1の機能ブロック図である。Next, the functional configuration of the central processing unit 1 shown in FIG. 1 will be described with reference to FIG. FIG. 2 is a functional block diagram of the central processing unit 1 shown in FIG.
【0021】中央処理装置1は、図2に示すように、制
御部21と、サンプリング部22と、コード解析部23
と、表示制御部24と、誤り検出部25とを有する。こ
れ等の機能ブロックは、主メモリ3又は補助記憶装置4
に格納されているプログラムを実行することによって実
現される。As shown in FIG. 2, the central processing unit 1 has a control unit 21, a sampling unit 22, and a code analysis unit 23.
And a display control unit 24 and an error detection unit 25. These functional blocks include the main memory 3 or the auxiliary storage device 4.
It is realized by executing the program stored in.
【0022】サンプリング部22は、主メモリ3又は補
助記憶装置4に格納された1フレーム分のデジタル映像
データから、キャプション信号が重畳されている第21
水平走査線のデータを取得する。そして、輝度情報に基
づいて、取得したデータの中から、キャプション信号の
データ・コードをサンプリングする。The sampling section 22 is a 21st section in which a caption signal is superimposed from one frame of digital video data stored in the main memory 3 or the auxiliary storage device 4.
Get the data of horizontal scan line. Then, based on the luminance information, the data code of the caption signal is sampled from the acquired data.
【0023】誤り検出部25は、サンプリング部22で
サンプリングしたキャプション信号のデータ・コードに
誤りが無いかどうかをチェックする。コード解析部23
は、サンプリング部22でサンプリングしたデータ・コ
ードから文字コード及び制御コードを解析する。The error detection unit 25 checks whether or not the data code of the caption signal sampled by the sampling unit 22 has an error. Code analysis unit 23
Analyzes the character code and the control code from the data code sampled by the sampling unit 22.
【0024】表示制御部24は、コード解析部23で解
析した文字コード及び制御コードに従い、文字を表示装
置5に表示させると共に、デジタル映像データによって
得られる映像を表示装置5に表示させる。制御部21
は、サンプリング部22、コード解析部23、誤り検出
部25、および表示制御部24を制御する。The display control unit 24 causes the display device 5 to display characters according to the character code and control code analyzed by the code analysis unit 23, and causes the display device 5 to display an image obtained from digital image data. Control unit 21
Controls the sampling unit 22, the code analysis unit 23, the error detection unit 25, and the display control unit 24.
【0025】次に、図2に示す中央処理装置1の各部で
の処理手順について図面を参照して説明する。Next, a processing procedure in each part of the central processing unit 1 shown in FIG. 2 will be described with reference to the drawings.
【0026】先ず、制御部21の処理手順について図3
を参照して説明する。First, the processing procedure of the control unit 21 will be described with reference to FIG.
This will be described with reference to FIG.
【0027】図3は制御部21の処理手順を説明するた
めのフロー図である。尚、図3に示す処理手順は、入力
装置8に入力されたユーザ指令により、主メモリ3や補
助記憶装置4に格納されたプログラムが実行されること
によって開始する。FIG. 3 is a flow chart for explaining the processing procedure of the control unit 21. The processing procedure shown in FIG. 3 is started when a program stored in the main memory 3 or the auxiliary storage device 4 is executed by a user command input to the input device 8.
【0028】先ず、制御部21は、受信装置2を起動し
て、NTSC方式のテレビ信号及び/又はビデオ信号を
受信する(ステップ301)。尚、NTSC方式では、
映像が1秒間に30フレームのフレームレートで伝送さ
れる。First, the control unit 21 activates the receiving device 2 to receive an NTSC television signal and / or a video signal (step 301). In the NTSC system,
Video is transmitted at a frame rate of 30 frames per second.
【0029】次に、制御部21は、NTSCデコード装
置6を起動する(ステップ302)。これにより、NT
SCデコード装置6は、受信装置2で受信したテレビ信
号及び/又はビデオ信号を、映像を構成する1フレーム
毎にYUVのデジタル映像データに変換し、主メモリ3
又は補助記憶装置4に送信する。これにより、主メモリ
3又は補助記憶装置4は、NTSCデコード装置6から
送られてきたデジタル映像データを記憶する。Next, the control unit 21 activates the NTSC decoding device 6 (step 302). This allows NT
The SC decoding device 6 converts the television signal and / or the video signal received by the receiving device 2 into YUV digital image data for each frame forming an image, and the main memory 3
Alternatively, it is transmitted to the auxiliary storage device 4. As a result, the main memory 3 or the auxiliary storage device 4 stores the digital video data sent from the NTSC decoding device 6.
【0030】図15にNTSCデコード装置6で変換し
た1フレーム分のデジタル映像データを示す。図15で
は、受信したテレビ信号およびビデオ信号がYUV4:
2:2のデジタル映像データに変換された場合の例を示
している。ここで、Yデータ1601、Uデータ160
2及びVデータ1604は、画面の映像を構成する最初
の画素を表す。また、Yデータ1603、Uデータ16
02及びVデータ1604は、画面の映像を構成する次
(2番目)の画素を表す。すなわち、YUV4:2:2
のデジタル映像データでは、Yが1画素に付き1つ割り
当てられ、U、Vが2画素に付き1つ割り当てられる。
尚、以下では、Y、U及びVのデータがそれぞれ8ビッ
トで構成されているものとして説明する。FIG. 15 shows digital video data for one frame converted by the NTSC decoding device 6. In FIG. 15, the received television signal and video signal are YUV4:
An example when converted to 2: 2 digital video data is shown. Here, Y data 1601 and U data 160
2 and V data 1604 represent the first pixel forming the image on the screen. In addition, Y data 1603 and U data 16
02 and V data 1604 represent the next (second) pixel forming the image on the screen. That is, YUV 4: 2: 2
In the digital video data of, Y is assigned to each one pixel, and U and V are assigned to every two pixels.
In the following description, it is assumed that each of Y, U and V data is composed of 8 bits.
【0031】次に、制御部21は、NTSCデコード装
置6が1フレーム分のデジタル映像データを主メモリ3
又は補助記憶装置4に転送し終えたか否かを判断する
(ステップ303)。この判断は、NTSCデコード装
置6のレジスタの転送終了ビットに1が立っているか否
かを判断することにより行う。転送終了ビットに1が立
っていない場合、すなわち、1フレーム分のデジタル映
像データを主メモリ3又は補助記憶装置4に転送し終え
ていない場合には、1フレーム分のデジタル映像データ
が主メモリ3又は補助記憶装置4に転送され、転送終了
ビットに1が立つまで待つ。一方、転送終了ビットに1
が立っている場合、すなわち、1フレーム分のデジタル
映像データを主メモリ3又は補助記憶装置4に転送し終
えた場合には、転送終了ビットを0にクリアし(ステッ
プ304)、その後、サンプリング部22を起動する
(ステップ305)。これにより、サンプリング部22
は、主メモリ3又は補助記憶装置4に記憶された1フレ
ーム分のデジタル映像データからキャプション信号のデ
ータ・コードをサンプリングする。尚、サンプリング部
22の処理手順については後で詳述する。Next, the control unit 21 controls the NTSC decoding device 6 to output digital video data for one frame to the main memory 3.
Alternatively, it is determined whether the transfer to the auxiliary storage device 4 is completed (step 303). This judgment is made by judging whether or not 1 is set in the transfer end bit of the register of the NTSC decoding device 6. When 1 is not set in the transfer end bit, that is, when one frame of digital video data has not been transferred to the main memory 3 or the auxiliary storage device 4, one frame of digital video data is stored in the main memory 3. Alternatively, it is transferred to the auxiliary storage device 4 and waits until 1 is set in the transfer end bit. On the other hand, the transfer end bit is 1
Is set, that is, when one frame of digital video data has been transferred to the main memory 3 or the auxiliary storage device 4, the transfer end bit is cleared to 0 (step 304), and then the sampling unit 22 is activated (step 305). As a result, the sampling unit 22
Samples a data code of a caption signal from one frame of digital video data stored in the main memory 3 or the auxiliary storage device 4. The processing procedure of the sampling unit 22 will be described in detail later.
【0032】次に、制御部21は、コード解析部23を
起動する(ステップ306)。これにより、コード解析
部23は、サンプリング部22でサンプリングしたデー
タ・コードから文字コード及び制御コードを解析する。
尚、コード解析部23の処理手順については後述する。Next, the control unit 21 activates the code analysis unit 23 (step 306). As a result, the code analysis unit 23 analyzes the character code and the control code from the data code sampled by the sampling unit 22.
The processing procedure of the code analysis unit 23 will be described later.
【0033】次に、制御部21は、表示制御部24を起
動する(ステップ307)。これにより、表示制御部2
4は、コード解析部23で解析した文字コードを制御コ
ードに従って表示装置5に表示させる。尚、表示制御部
24の処理手順については後で詳述する。Next, the control unit 21 activates the display control unit 24 (step 307). As a result, the display control unit 2
4 causes the display device 5 to display the character code analyzed by the code analysis unit 23 according to the control code. The processing procedure of the display control unit 24 will be described in detail later.
【0034】次に、制御部21は、入力装置8に入力さ
れたユーザ指令により、デコード装置の終了が指示され
たかどうかを判別する(ステップ308)。終了が指示
されている場合には、NTSCデコード装置6を停止し
(ステップ309)、受信装置2を停止した後(ステッ
プ310)、制御部21での処理を終了し、デコード装
置の動作を終了する。一方、終了が指示されていない場
合には、ステップ303に戻り、次のフレームのテレビ
信号及び/又はビデオ信号についてステップ303〜ス
テップ308の処理をくり返す。Next, the control unit 21 determines whether or not the end of the decoding device is instructed by the user command input to the input device 8 (step 308). When the end is instructed, the NTSC decoding device 6 is stopped (step 309), the receiving device 2 is stopped (step 310), the processing in the control unit 21 is ended, and the operation of the decoding device is ended. To do. On the other hand, if the end is not instructed, the process returns to step 303, and the processes of steps 303 to 308 are repeated for the television signal and / or the video signal of the next frame.
【0035】このようにして、ユーザからデコード装置
の動作終了が指示されるまで、順次受信した各フレーム
のテレビ信号及びビデオ信号に重畳されたキャプション
信号をデコードし、文字を表示する。In this way, the caption signal superimposed on the television signal and the video signal of each frame that is sequentially received is decoded and characters are displayed until the user instructs the end of the operation of the decoding device.
【0036】次に、サンプリング部22の処理手順につ
いて図4を参照して説明する。図4はサンプリング部で
の処理手順を説明するためのフロー図である。尚、図4
に示す処理手順は、制御部21の指令に基づき、主メモ
リ3や補助記憶装置4に格納されたプログラムが実行さ
れることによって開始する。Next, the processing procedure of the sampling section 22 will be described with reference to FIG. FIG. 4 is a flow chart for explaining the processing procedure in the sampling section. FIG.
The processing procedure indicated by is started by executing a program stored in the main memory 3 or the auxiliary storage device 4 based on a command from the control unit 21.
【0037】先ず、サンプリング部22は、主メモリ3
又は補助記憶装置4の第21水平走査線のデジタル映像
データが格納されているアドレスを指定して、図15に
示すような1フレーム分のデジタル映像データ1600
から図17に示すような第21水平走査線のデジタル映
像データ1800を取得する(ステップ401)。First of all, the sampling section 22 includes the main memory 3
Alternatively, by designating an address where the digital video data of the 21st horizontal scanning line of the auxiliary storage device 4 is stored, one frame of digital video data 1600 as shown in FIG.
17 to obtain digital video data 1800 of the 21st horizontal scanning line as shown in FIG. 17 (step 401).
【0038】次に、サンプリング部22は、図18に示
すように、取得した第21水平走査線のデジタル映像デ
ータから第21水平走査線を構成する各画素の輝度
(Y)データ1900を取得し、主メモリ3又は補助記
憶装置4に設けられた配列Dに格納する(ステップ40
2)。Next, as shown in FIG. 18, the sampling section 22 acquires luminance (Y) data 1900 of each pixel forming the 21st horizontal scanning line from the acquired digital video data of the 21st horizontal scanning line. , In the array D provided in the main memory 3 or the auxiliary storage device 4 (step 40).
2).
【0039】次に、サンプリング部22は、配列Dに格
納した各画素のYデータを“0”又は“1”に振り分け
るためのしきい値Sを予め決められた値に設定する(ス
テップ403)。しきい値Sは、Yデータの最大輝度値
と最小輝度値との中間程度の値が好ましい。本実施形態
では、Yデータが8ビット(256階調)で構成されて
いるので、図5に示すように、しきい値Sを128に設
定している。Next, the sampling section 22 sets a threshold value S for dividing the Y data of each pixel stored in the array D into "0" or "1" to a predetermined value (step 403). . The threshold value S is preferably an intermediate value between the maximum luminance value and the minimum luminance value of the Y data. In the present embodiment, since the Y data is composed of 8 bits (256 gradations), the threshold value S is set to 128 as shown in FIG.
【0040】また、サンプリング部22は、配列Dに格
納した各画素のYデータをサンプリングするためのサン
プリング間隔Tを予め決められた間隔に設定する。この
間隔は、図5に示すように、キャプション信号のビット
幅(波長)に略対応する画素間隔に設定する(ステップ
404)。上述したように、キャプション信号は、第2
1水平走査線全域に輝度信号として多重化されている。
したがって、キャプション信号のビット幅(波長)に略
対応する画素間隔は、一水平走査線当たりの画素数をキ
ャプション信号の合計ビット数(26ビット)で割るこ
とにより求めることができる。たとえば、一水平走査線
当たりの画素数が320である場合、キャプション信号
のビット幅に略対応する画素間隔は12画素となる。ま
た、一水平走査線当たりの画素数が640である場合、
キャプション信号のビット幅に略対応する画素間隔は2
4画素となる。The sampling section 22 sets a sampling interval T for sampling the Y data of each pixel stored in the array D to a predetermined interval. As shown in FIG. 5, this interval is set to a pixel interval substantially corresponding to the bit width (wavelength) of the caption signal (step 404). As mentioned above, the caption signal is the second
It is multiplexed as a luminance signal over one horizontal scanning line.
Therefore, the pixel interval substantially corresponding to the bit width (wavelength) of the caption signal can be obtained by dividing the number of pixels per horizontal scanning line by the total number of bits (26 bits) of the caption signal. For example, when the number of pixels per horizontal scanning line is 320, the pixel interval corresponding to the bit width of the caption signal is 12 pixels. When the number of pixels per horizontal scanning line is 640,
The pixel interval corresponding to the bit width of the caption signal is 2
There are 4 pixels.
【0041】次に、サンプリング部22は、主メモリ3
又は補助記憶装置4に設けられた、1バイトの文字デー
タを格納するための配列B[0]、B[1]を0に初期
化し(ステップ405)、その後、配列DからのYデー
タのサンプリング位置(i)を0に設定する(ステップ
406)。これにより、第21水平走査線を構成する最
初の画素からYデータがサンプリングされるようにす
る。Next, the sampling unit 22 uses the main memory 3
Alternatively, the arrays B [0] and B [1] for storing 1-byte character data provided in the auxiliary storage device 4 are initialized to 0 (step 405), and then the Y data from the array D is sampled. Position (i) is set to 0 (step 406). Thus, the Y data is sampled from the first pixel forming the 21st horizontal scanning line.
【0042】次に、サンプリング部22は、キャプショ
ン信号のデータ・コードの開始位置を特定するスタート
・コードを検出する。Next, the sampling section 22 detects a start code that specifies the start position of the data code of the caption signal.
【0043】先ず、サンプリング位置iを基準にして3
つの画素のYデータをサンプリング間隔T毎に、配列D
からサンプリングする。すなわち、第21水平走査線を
構成する画素のうち、i番目の画素のYデータD[i]
と、i+T番目の画素のYデータD[i+T]と、i+
2T番目の画素のYデータD[i+2T]とを、配列D
からサンプリングする。そして、サンプリングした3つ
の画素のYデータD[i]、D[i+T]、D[i+2
T]をステップ403で設定したしきい値Sで“0”又
は“1”に振り分け、D[i]、D[i+T]、D[i
+2T]が“0”、“0”、“1”の順番になるか否か
判断する(ステップ407)。First, 3 with reference to the sampling position i
Array Y of Y data of one pixel at sampling interval T
Sampling from That is, of the pixels forming the 21st horizontal scanning line, the Y data D [i] of the i-th pixel
, Y data D [i + T] of the i + Tth pixel, and i +
The Y data D [i + 2T] of the 2Tth pixel is arranged in the array D
Sampling from Then, Y data D [i], D [i + T], D [i + 2 of the three sampled pixels are obtained.
T] is divided into “0” or “1” by the threshold value S set in step 403, and D [i], D [i + T], D [i
It is determined whether + 2T] is in the order of "0", "0", "1" (step 407).
【0044】図5に示すように、スタート・コードは論
理値“0”、“0”、“1”の3ビットで構成されてい
る。したがって、D[i]、D[i+T]、D[i+2
T]をしきい値(S)で振り分けた結果が“0”、
“0”、“1”である場合、サンプリングした3つの画
素のYデータは、スタート・コードを表していると判断
することができる。この場合、ステップ409に移行す
る。As shown in FIG. 5, the start code is composed of 3 bits having logical values "0", "0" and "1". Therefore, D [i], D [i + T], D [i + 2
The result of dividing T] by the threshold value (S) is “0”,
In the case of “0” and “1”, it can be determined that the sampled Y data of the three pixels represent the start code. In this case, the process proceeds to step 409.
【0045】一方、D[i]、D[i+T]、D[i+
2T]をしきい値(S)で振り分けた結果が“0”、
“0”、“1”でない場合は、サンプリングした3つの
画素のYデータがスタート・コードを表していないと判
断することができる。この場合、サンプリング位置iの
値を1つ増やして(ステップ408)、ステップ407
に戻る。このようにして、サンプリングした3つの画素
のYデータD[i]、D[i+T]、D[i+2T]を
しきい値(S)で振り分けた結果が、“0”、“0”、
“1”となるまで、サンプリング位置iを1つずつずら
していく。On the other hand, D [i], D [i + T], D [i +
2T] is distributed by the threshold value (S), and the result is “0”,
If it is not "0" or "1", it can be determined that the Y data of the three sampled pixels does not represent the start code. In this case, the value of the sampling position i is incremented by 1 (step 408), and the step 407 is executed.
Return to In this way, the results obtained by distributing the sampled Y data D [i], D [i + T], and D [i + 2T] of the three pixels by the threshold value (S) are “0”, “0”,
The sampling position i is shifted one by one until it becomes “1”.
【0046】ステップ409では、スタート・コードの
最初のビットを構成する画素のYデータD[i]から、
7T/2サンプリング間隔後に位置する画素(又はスタ
ート・コードの最後のビットを構成する画素のYデータ
D[i+2T]から、3T/2サンプリング間隔後に位
置する画素)のYデータをサンプリング位置iに設定す
る(ステップ409)。すなわち、i=i+3T+T/
2に設定する。これにより、ステップ409で設定した
サンプリング位置i(=i+3T+T/2)を基準にし
て、画素のYデータをサンプリング間隔T毎にサンプリ
ングすることにより、図5に示すデータ・コードの山又
は谷にあたる部分に位置する画素のYデータを取得す
る。In step 409, from the Y data D [i] of the pixel forming the first bit of the start code,
Set the Y data of the pixel located after 7T / 2 sampling interval (or the Y data D [i + 2T] of the pixel forming the last bit of the start code to the pixel located after 3T / 2 sampling interval) to the sampling position i (Step 409). That is, i = i + 3T + T /
Set to 2. As a result, by sampling the Y data of the pixel at every sampling interval T based on the sampling position i (= i + 3T + T / 2) set in step 409, the portion corresponding to the peak or valley of the data code shown in FIG. Y data of the pixel located at is acquired.
【0047】次に、サンプリング部22は、2バイトの
データ・コードを配列B[j](但し、jは1又は2)
に格納する。Next, the sampling section 22 outputs a 2-byte data code to the array B [j] (where j is 1 or 2).
To be stored.
【0048】先ず、データ・コードを構成する画素のY
データの格納先を定めるための値jを0に設定する(ス
テップ410)。尚、j=0の場合、Yデータの格納先
は配列B[0]、j=1の場合、Yデータの格納先は配
列B[1]である。次に、配列B[j]に格納されたY
データの数を数えるための値kを0に設定する(ステッ
プ411)。First, the Y of the pixels that make up the data code
The value j for determining the data storage destination is set to 0 (step 410). When j = 0, the Y data is stored in the array B [0], and when j = 1, the Y data is stored in the array B [1]. Next, Y stored in the array B [j]
The value k for counting the number of data is set to 0 (step 411).
【0049】次に、ステップ409で設定したサンプリ
ング位置iにある画素のYデータD[i]を配列Dから
サンプリングし、ステップ403で設定したしきい値S
で“0”又は“1”に振り分ける(ステップ413)。
D[i]をしきい値Sで振り分けた結果が“1”の場合
は、配列B[j]の最上位ビットに“1”を格納し(ス
テップ414)、その後ステップ415に移行する。一
方、D[i]をしきい値Sで振り分けた結果が“0”の
場合、配列B[j]の各ビットは、ステップ405で0
に初期化されているので、配列B[j]の最上位ビット
に“0”を格納することなくステップ415に移行す
る。Next, the Y data D [i] of the pixel at the sampling position i set in step 409 is sampled from the array D, and the threshold value S set in step 403 is set.
Is assigned to "0" or "1" (step 413).
When the result of distributing D [i] by the threshold value S is "1", "1" is stored in the most significant bit of the array B [j] (step 414) and then the process proceeds to step 415. On the other hand, when the result of distributing D [i] by the threshold value S is “0”, each bit of the array B [j] becomes 0 in step 405.
Since it has been initialized to 0, the process proceeds to step 415 without storing “0” in the most significant bit of the array B [j].
【0050】ステップ415では、ステップ413でサ
ンプリングした画素のYデータのサンプリング間隔T後
に位置する画素のYデータを配列Dからサンプリングす
るため、サンプリング位置iをi=i+Tに設定し、そ
の後、ステップ416に移行する。In step 415, since the Y data of the pixel located after the sampling interval T of the Y data of the pixel sampled in step 413 is sampled from the array D, the sampling position i is set to i = i + T, and then step 416. Move to.
【0051】ステップ416では、kが8より小さいか
否かを判断する。kが8より小さい場合は、配列B
[j]に8ビット分のデータが格納されていないことを
意味するので、kを1つ増やし(ステップ417)、配
列B[j]を右に1ビットシフトして(ステップ41
2)、ステップ413に戻る。In step 416, it is determined whether k is smaller than 8. Array k if k is less than 8
This means that 8-bit data is not stored in [j], so k is incremented by 1 (step 417), and array B [j] is shifted right by 1 bit (step 41).
2) and returns to step 413.
【0052】一方、kが8の場合は、配列B[j]に8
ビット分のデータが格納されたことを意味するので、ス
テップ418に移行し、jが0であるか否か判断する。
jが0の場合、配列B[j]に格納された8ビット分の
データがデータ・コードの1バイト目のデータであるの
で、jを1つ増やし(ステップ419)、ステップ41
1に戻る。jが1の場合、配列B[j]格納された8ビ
ット分のデータがデータ・コードの2バイト目のデータ
であるので、このフローを終了する。On the other hand, when k is 8, 8 is added to the array B [j].
Since this means that the data for one bit has been stored, the process proceeds to step 418, and it is determined whether j is 0 or not.
If j is 0, the 8-bit data stored in the array B [j] is the first byte of the data code, so j is incremented by 1 (step 419), and step 41
Return to 1. When j is 1, the 8-bit data stored in the array B [j] is the second byte data of the data code, and thus this flow is ended.
【0053】尚、ステップ406では、サンプリング位
置iを0に設定することにより、第21水平走査線を構
成する最初の画素のYデータがサンプリングされるよう
にした。しかし、サンプリング位置iを予測されるスタ
ート・コードの開始位置近傍に設定してもよい。これに
より、スタート・コードを高速に検出することができ
る。In step 406, the sampling position i is set to 0 so that the Y data of the first pixel forming the 21st horizontal scanning line is sampled. However, the sampling position i may be set near the predicted start position of the start code. As a result, the start code can be detected at high speed.
【0054】また、ステップ407では、サンプリング
位置iを基準にして、3つの画素のYデータをサンプリ
ング間隔T毎にサンプリングし、これ等のYデータをし
きい値Sで“0”又は“1”に振り分けた結果を調べ
た。しかしながら、サンプリングした各画素の近傍に位
置する画素のYデータについても同時にサンプリングし
て、しきい値Sで“0”又は“1”に振り分けた結果を
調べてもよい。たとえば、D[i−1]、D[i]、D
[i+1]をしきい値Sで振り分けた結果が“0”、
“0”、“0”、D[i+T−1]、D[i+T]、D
[i+1]をしきい値Sで振り分けた結果が“0”、
“0”、“0”、そして、D[i+2T−1]、D[i
+2T]、D[i+2T+1]をしきい値Sで振り分け
た結果が“1”、“1”、“1”であるか否かを判断し
てもよい。このようにすることで、より正確にスタート
・コードの検出を行うことができる。Further, in step 407, Y data of three pixels are sampled at sampling intervals T with reference to the sampling position i, and these Y data are "0" or "1" at the threshold value S. I examined the results of sorting. However, the Y data of the pixels located in the vicinity of each sampled pixel may also be sampled at the same time, and the result obtained by dividing the Y data by “0” or “1” by the threshold value S may be examined. For example, D [i-1], D [i], D
The result of dividing [i + 1] by the threshold value S is “0”,
"0", "0", D [i + T-1], D [i + T], D
The result of dividing [i + 1] by the threshold value S is “0”,
"0", "0", and D [i + 2T-1], D [i
It may be determined whether or not the result of sorting + 2T] and D [i + 2T + 1] by the threshold value S is "1", "1", "1". By doing so, the start code can be detected more accurately.
【0055】次に、コード解析部23の処理手順につい
て図6を参照して説明する。図6はコード解析部での処
理手順を説明するためのフロー図である。尚、図6に示
す処理手順は、制御部21の指令に基づき、主メモリ3
や補助記憶装置4に格納されたプログラムが実行される
ことによって開始する。Next, the processing procedure of the code analysis unit 23 will be described with reference to FIG. FIG. 6 is a flowchart for explaining the processing procedure in the code analysis unit. It should be noted that the processing procedure shown in FIG.
It is started by executing a program stored in or the auxiliary storage device 4.
【0056】先ず、コード解析部23は、jを0に設定
し(ステップ601)、図4に示すフローによって主メ
モリ3又は補助記憶装置4の配列B[j]に格納された
データ・コードを取得する(ステップ602)。ここで
は、j=0であるので、データ・コードの1バイト目の
データが格納された配列[0]が取得される。First, the code analysis unit 23 sets j to 0 (step 601) and sets the data code stored in the array B [j] of the main memory 3 or the auxiliary storage device 4 according to the flow shown in FIG. It is acquired (step 602). Here, since j = 0, the array [0] in which the data of the first byte of the data code is stored is acquired.
【0057】次に、コード解析部23は、誤り検出部2
5を起動する(ステップ603)。これにより、誤り検
出部25は、配列B[j]に格納されたデータの誤りを
パリティチェックする。そして、誤りを検出した場合に
は、誤りを検出したか否かを示すフラグ(以下、誤り検
出フラグEと称する)に“1”を代入し、誤りがなかっ
た場合には、誤り検出フラグEに“0”を代入する。
尚、誤り検出部25の処理内容については、後に詳述す
る。Next, the code analysis unit 23 uses the error detection unit 2
5 is activated (step 603). Accordingly, the error detection unit 25 performs a parity check on the error of the data stored in the array B [j]. Then, when an error is detected, "1" is assigned to a flag (hereinafter, referred to as an error detection flag E) indicating whether or not the error is detected, and when no error is detected, the error detection flag E is set. Substitute "0" for.
The processing contents of the error detection unit 25 will be described later in detail.
【0058】次に、コード解析部23は、誤り検出フラ
グEに“1”が代入されているか否かを判別することに
より、誤りが検出されたかどうかを判断する(ステップ
604)。誤り検出フラグEに“0”が代入されている
場合、すなわち、誤りが無い場合には、配列B[j]に
格納されたデータを右シフトさせた後、最上位ビットを
“0”に設定して、クローズドキャプションの規格に従
い、文字コード又は制御コードを生成する(ステップ6
05)。尚、この文字コード及び制御コードの生成方法
は、従来のクローズドキャプションのデコード装置に用
いられている方法と同様である。次に、ステップ605
での処理終了後、ステップ606に移行する。Next, the code analysis unit 23 determines whether or not an error has been detected by determining whether or not "1" is assigned to the error detection flag E (step 604). When "0" is substituted in the error detection flag E, that is, when there is no error, the data stored in the array B [j] is right-shifted, and then the most significant bit is set to "0". Then, a character code or control code is generated according to the closed caption standard (step 6).
05). The method of generating the character code and the control code is the same as the method used in the conventional closed caption decoding device. Then, step 605
After the processing in (3) is completed, the process proceeds to step 606.
【0059】一方、誤り検出フラグEに“1”が代入さ
れている場合、すなわち、誤りがあった場合には、配列
B[j]に格納されたデータを特殊な文字コードに置き
換える(ステップ614)。ここで、特殊な文字とは、
例えば黒く塗りつぶされた四角形等のような視覚的に理
解しやすい図形や記号等である。コード解析部23は、
この特殊な文字コードを非表示メモリに格納する(ステ
ップ610)。ここで、非表示メモリとは、主メモリ3
又は補助記憶装置4に設けられた領域のことである。次
に、ステップ610での処理終了後、ステップ611に
移行する。On the other hand, if "1" is assigned to the error detection flag E, that is, if there is an error, the data stored in the array B [j] is replaced with a special character code (step 614). ). Here, the special characters are
For example, it is a figure or symbol that is visually easy to understand, such as a black square. The code analysis unit 23
This special character code is stored in the non-display memory (step 610). Here, the non-display memory is the main memory 3
Alternatively, it means an area provided in the auxiliary storage device 4. Next, after the processing in step 610 is completed, the process proceeds to step 611.
【0060】ステップ606では、ステップ605で生
成したコードが文字を示すアスキーコードであるか否か
を判別する(ステップ606)。上述したように、クロ
ーズドキャプションでは、データ・コードが文字コード
であるか又は制御コードであるかを区別するために、制
御コードの1バイト目のデータには文字を示すアスキー
コードが割得てられていない。そこで、ステップ606
で判断した結果、文字を示すアスキーコードでない場合
はステップ613へ移行してj=0であるか否かを判別
している。j=0の場合は、ステップ605で生成した
コードが配列B[0]に格納された1バイト目のデータ
であるので、配列B[0]及びB[1]に格納されたデ
ータが制御コードであることが分かる。この場合、jを
1に設定し(ステップ612)、ステップ602に戻
る。一方、j=0でない場合、即ちj=1の場合は、ス
テップ605で生成したコードが配列B[1]に格納さ
れた2バイト目のデータであるので、当該コードは無効
なデータであると判断できる。この場合、ステップ61
4に移行し、当該コードを特殊文字コードと置き換え
る。In step 606, it is determined whether the code generated in step 605 is an ASCII code indicating a character (step 606). As described above, in closed captioning, in order to distinguish whether the data code is a character code or a control code, the ASCII code indicating a character can be assigned to the first byte of the control code. Not not. Therefore, step 606
As a result of the judgment in step 3, if it is not an ASCII code indicating a character, the process shifts to step 613 to judge whether or not j = 0. If j = 0, the code generated in step 605 is the first byte of data stored in the array B [0], so the data stored in the arrays B [0] and B [1] is the control code. It turns out that In this case, j is set to 1 (step 612) and the process returns to step 602. On the other hand, when j = 0 is not satisfied, that is, when j = 1, the code generated in step 605 is the second byte of data stored in the array B [1], and therefore the code is invalid data. I can judge. In this case, step 61
Then, the code is replaced with a special character code.
【0061】また、ステップ606で判断した結果、文
字を示すアスキーコードである場合はステップ607へ
移行してj=1であるか否かを判別している。j=1で
ない場合、即ちj=0の場合は、ステップ605で生成
したコードが配列B[0]に格納された1バイト目のデ
ータであるので、配列B[0]及びB[1]に格納され
たデータが文字コードであることが分かる。この場合、
ステップ609に移行する。一方、j=1の場合、ステ
ップ605で生成したコードが配列B[1]に格納され
た2バイト目のデータであるので、当該コードが文字を
示すアスキーコードであるか否かを判断するだけでは、
当該コードが文字コードであるか又は制御コードである
かを判断できない。この場合、ステップ608に移行す
る。If the result of determination in step 606 is that the code is an ASCII code indicating a character, the flow shifts to step 607 to determine whether j = 1. When j = 1 is not satisfied, that is, when j = 0, the code generated in step 605 is the first byte of data stored in the array B [0], and therefore the arrays B [0] and B [1] are stored. It can be seen that the stored data is a character code. in this case,
Control goes to step 609. On the other hand, when j = 1, since the code generated in step 605 is the second byte of data stored in the array B [1], it is merely determined whether the code is an ASCII code indicating a character. Then
It cannot be determined whether the code is a character code or a control code. In this case, the process proceeds to step 608.
【0062】ステップ608では、配列B[0]に格納
された1バイト目のデータが文字を示すアスキーコード
であったか否かを判断する(ステップ608)。1バイ
ト目のデータが文字を示すアスキーコードであった場合
は、2バイト目のデータが文字コードであることが分か
るので、ステップ609に移行し、1バイト目のデータ
が文字を示すアスキーコードでなかった場合は、1バイ
ト目及び2バイト目のデータが制御コードであることが
分かるので、ステップ615に移行する。In step 608, it is determined whether the first byte of data stored in the array B [0] is an ASCII code indicating a character (step 608). If the data of the first byte is an ASCII code indicating a character, it is known that the data of the second byte is a character code. Therefore, the process proceeds to step 609, and the data at the first byte is an ASCII code indicating a character. If not, it is found that the data in the first byte and the data in the second byte are the control code, and the process proceeds to step 615.
【0063】ステップ609では、ステップ605で生
成した文字コードが有効であるか否か、即ちステップ6
05で生成した文字コードに文字が割り当てられている
か否かを判断する。文字コードが有効である場合、この
文字コードを非表示メモリに格納する(ステップ61
0)。一方、文字コードが有効でない場合、ステップ6
14に移行し、この文字コードを特殊な文字コードに置
き換え、この特殊な文字コードを非表示メモリに格納す
る(ステップ610)。そして、ステップ610での処
理終了後、ステップ611に移行する。In step 609, whether the character code generated in step 605 is valid, that is, step 6
It is determined whether a character is assigned to the character code generated in 05. If the character code is valid, this character code is stored in the non-display memory (step 61).
0). On the other hand, if the character code is not valid, step 6
Then, the processing shifts to 14, the character code is replaced with a special character code, and the special character code is stored in the non-display memory (step 610). Then, after the processing in step 610 is completed, the process proceeds to step 611.
【0064】ステップ615では、ステップ605で生
成した制御コードが有効であるか否か、即ちステップ6
05で生成した制御コードにコマンドが割り当てられて
いるか否かを判断する。制御コードが有効である場合、
この制御コードに割り当てられたコマンドの処理を行い
(ステップ616)、ステップ611に移行する。一
方、制御コードが有効でない場合、この制御コードを無
視し(ステップ617)、ステップ611に移行する。In step 615, it is determined whether the control code generated in step 605 is valid, that is, step 6
It is determined whether or not a command is assigned to the control code generated in 05. If the control code is valid,
The command assigned to this control code is processed (step 616) and the process proceeds to step 611. On the other hand, if the control code is not valid, the control code is ignored (step 617) and the process proceeds to step 611.
【0065】ステップ611では、j=1であるか否か
を判断する。j=1でない場合、未だ配列B[1]に格
納された2バイト目のデータのコード解析が終了してい
ないことを意味するので、jを1つ増やして(ステップ
612)、ステップ602に戻る。一方、j=1である
場合、配列B[1]に格納された2バイト目のデータの
コード解析が終了したことを意味するので、このフロー
を終了する。In step 611, it is determined whether j = 1. If j is not 1, it means that the code analysis of the second byte of data stored in the array B [1] is not completed yet, so j is incremented by 1 (step 612) and the process returns to step 602. . On the other hand, if j = 1, it means that the code analysis of the data of the second byte stored in the array B [1] is completed, and this flow is ended.
【0066】以上の処理で受信した1つのフレームのテ
レビ信号及びビデオ信号に重畳されたキャプション信号
のデータ・コードをデコードすることができる。The data code of the caption signal superposed on the television signal and the video signal of one frame received by the above processing can be decoded.
【0067】次に、誤り検出部25の処理手順について
図7を参照して説明する。図7は誤り検出部での処理手
順を説明するためのフロー図である。尚、図7に示す処
理手順は、制御部21の指令に基づき、主メモリ3や補
助記憶装置4に格納されたプログラムが実行されること
によって開始する。Next, the processing procedure of the error detector 25 will be described with reference to FIG. FIG. 7 is a flow chart for explaining the processing procedure in the error detection unit. The processing procedure shown in FIG. 7 starts when the program stored in the main memory 3 or the auxiliary storage device 4 is executed based on a command from the control unit 21.
【0068】先ず、誤り検出部25は、図6に示すステ
ップ602で取得した配列B[j]に格納されている1
バイトのデータを取得し(ステップ701)、このデー
タを構成するビットの内、論理値が“1”であるビット
の数Nを数える(ステップ702)。First, the error detection unit 25 stores 1 in the array B [j] acquired in step 602 shown in FIG.
Byte data is acquired (step 701), and the number N of bits having a logical value of "1" among the bits forming this data is counted (step 702).
【0069】次に、誤り検出部25は、ステップ702
で得たビット数Nが奇数であるか否かを判別し(ステッ
プ703)、奇数であると判断された場合には誤りが無
いので、誤り検出フラグEに“0”を代入し(ステップ
704)、このフローを終了する。Next, the error detector 25 proceeds to step 702.
It is determined whether or not the number of bits N obtained in step 4 is an odd number (step 703). If it is determined that the number of bits N is an odd number, there is no error, so "0" is assigned to the error detection flag E (step 704). ), And ends this flow.
【0070】一方、ビット数Nが奇数ではないと判断さ
れた場合には、誤りであると判断できるので、誤り検出
フラグEに“1”を代入し(ステップ705)、このフ
ローを終了する。On the other hand, if it is determined that the number of bits N is not an odd number, it can be determined that there is an error, so "1" is assigned to the error detection flag E (step 705), and this flow is ended.
【0071】次に、表示制御部24の処理手順について
図8を参照して説明する。図8は表示制御部での処理手
順を説明するためのフロー図である。尚、図8に示す処
理手順は、制御部21の指令に基づき、主メモリ3や補
助記憶装置4に格納されたプログラムが実行されること
によって開始する。Next, the processing procedure of the display controller 24 will be described with reference to FIG. FIG. 8 is a flowchart for explaining the processing procedure in the display control unit. The processing procedure shown in FIG. 8 is started by executing a program stored in the main memory 3 or the auxiliary storage device 4 based on a command from the control unit 21.
【0072】先ず、表示制御部24は、図6に示すステ
ップ616で制御コードがデコードされたか否かを判別
する(ステップ801)。制御コードがデコードされた
と判断した場合には、デコードされた制御コードのコマ
ンドに基づき、非表示メモリに格納されている文字列を
表示装置5に表示し(ステップ802)、このフローを
終了する。一方、制御コードがデコードされていないと
判断した場合には、直ちにこのフローを終了する。First, the display control section 24 determines whether or not the control code is decoded in step 616 shown in FIG. 6 (step 801). When it is determined that the control code is decoded, the character string stored in the non-display memory is displayed on the display device 5 based on the command of the decoded control code (step 802), and this flow is ended. On the other hand, when it is determined that the control code is not decoded, this flow is immediately ended.
【0073】尚、表示制御部24は、受信装置2によっ
て受信され、NTSCデコード装置6によってデジタル
映像データに変換されたテレビ映像及びビデオ映像の表
示装置5への表示も行うが、これについては既に用いら
れている従来の技術で対応できるので、ここでは説明を
省略する。The display control section 24 also displays the television image and the video image, which are received by the receiving device 2 and converted into digital image data by the NTSC decoding device 6, on the display device 5, which has already been described. Since the conventional technique used can be used, the description is omitted here.
【0074】図16は本実施形態のデコード装置の全体
的な動作を説明するためのタイミング図である。上述し
たように、本実施形態のデコード装置が起動されると、
制御部21によって、受信装置2およびNTSCデコー
ド装置6が起動される。これにより、受信装置2は、図
16(a)に示すように、テレビ信号及び/又はビデオ
信号を受信する。FIG. 16 is a timing chart for explaining the overall operation of the decoding apparatus of this embodiment. As described above, when the decoding device of this embodiment is activated,
The control unit 21 activates the receiving device 2 and the NTSC decoding device 6. As a result, the receiving device 2 receives the television signal and / or the video signal, as shown in FIG.
【0075】また、NTSCデコード装置6は、図16
(b)に示すように、受信装置が受信した映像信号の垂
直同期信号をトリガとして、1フレーム分の映像信号を
デジタル映像データに変換し、主メモリ3又は補助記憶
装置4に転送すると共に、図16(c)に示すように、
1フレーム分のデジタル映像データの主メモリ3あるい
は補助記憶装置4への転送が終了すると、レジスタの転
送終了ビットに“1”を立てる。この際、次のフレーム
のデジタル映像データを前のフレームのデジタル映像デ
ータに上書きしてしまわないように、バッファを設けた
り、または、前のフレームのデジタル映像データと次の
フレームのデジタル映像データとを主メモリ3又は補助
記憶装置4の異なる領域に格納したりすることが好まし
い。Further, the NTSC decoding device 6 is shown in FIG.
As shown in (b), the vertical synchronizing signal of the video signal received by the receiving device is used as a trigger to convert the video signal of one frame into digital video data and transfer the digital video data to the main memory 3 or the auxiliary storage device 4. As shown in FIG. 16 (c),
When the transfer of one frame of digital video data to the main memory 3 or the auxiliary storage device 4 is completed, "1" is set in the transfer end bit of the register. At this time, a buffer is provided so that the digital video data of the next frame is not overwritten on the digital video data of the previous frame, or the digital video data of the previous frame and the digital video data of the next frame are combined. Are preferably stored in different areas of the main memory 3 or the auxiliary storage device 4.
【0076】制御部21は、受信装置2及びNTSCデ
コード装置6が起動されると、図16(d)乃至図16
(f)に示すように、転送終了ビットに“1”が立つご
とに、所定のタイミングでサンプリング部22、コード
解析部23及び表示制御部24を起動する。これによ
り、受信した映像信号の各フレーム毎に重畳されている
キャプション信号のデータ・コードをデコードし、表示
する。尚、図16(f)において、表示制御部24の実
行時間が異なるのは、ここでは、1フレーム目に文字が
伝送され、2フレーム目に表示を示す制御コードが伝送
されたため、2フレーム目の制御コードをデコードした
段階で1フレーム目のデコードした文字を表示したこと
を示している。すなわち、表示制御部24は、表示を指
示する制御コードがデコードされて、はじめてそれまで
のフレームのデコードした文字を表示することを示して
いる。When the receiving device 2 and the NTSC decoding device 6 are activated, the control section 21 operates as shown in FIGS.
As shown in (f), the sampling section 22, the code analysis section 23, and the display control section 24 are activated at a predetermined timing each time "1" is set in the transfer end bit. As a result, the data code of the caption signal superimposed on each frame of the received video signal is decoded and displayed. In FIG. 16 (f), the execution time of the display control unit 24 is different because here the character is transmitted in the first frame and the control code indicating the display is transmitted in the second frame. It shows that the decoded character of the first frame is displayed at the stage of decoding the control code of. That is, the display control section 24 indicates that the control code for instructing the display is decoded and the decoded characters of the previous frame are displayed for the first time.
【0077】本実施形態では、先ず、キャプション信号
が多重化されたアナログ映像信号をデジタル映像データ
に変換し、フレーム毎に、当該フレームを構成するデジ
タル映像データの中からキャプション信号が重畳された
水平走査線を構成する画素のデジタル映像データを抽出
する。次に、キャプション信号が重畳された水平走査線
を構成する画素のデジタル映像データをキャプション信
号のビット幅(波長)に略対応する画素間隔でサンプリ
ングし、サンプリングした画素のデジタル映像データを
しきい値で“0”又は“1”に振り分けるという動作
を、スタート・コードを検出するまでサンプリング開始
位置を変えて行う。そして、検出したスタート・コード
に続くデータ・コードを構成する画素のデジタル映像デ
ータをキャプション信号のビット幅に略対応する画素間
隔でサンプリングすることにより検出している。したが
って、本実施形態によれば、アナログ映像信号に多重化
されたキャプション信号を、アナログ映像信号を基に生
成されたデジタル映像データから取得することができ
る。In the present embodiment, first, an analog video signal in which a caption signal is multiplexed is converted into digital video data, and a horizontal frame in which the caption signal is superposed from the digital video data forming the frame for each frame. The digital image data of the pixels forming the scan line is extracted. Next, the digital video data of the pixels forming the horizontal scanning line on which the caption signal is superimposed is sampled at pixel intervals substantially corresponding to the bit width (wavelength) of the caption signal, and the digital video data of the sampled pixels is set as a threshold value. The operation of allocating to "0" or "1" is performed by changing the sampling start position until the start code is detected. Then, the digital video data of the pixels forming the data code subsequent to the detected start code is detected by sampling at a pixel interval substantially corresponding to the bit width of the caption signal. Therefore, according to this embodiment, the caption signal multiplexed with the analog video signal can be obtained from the digital video data generated based on the analog video signal.
【0078】また、本実施形態では、キャプション信号
のスタート・コード及びデータ・コードの検出を中央処
理装置1が主メモリ3又は補助記憶装置4に格納された
プログラムを実行することにより行うので、テレビ映像
やビデオ映像を表示可能なパーソナルコンピュータやワ
ードプロセッサ等の情報処理装置に予め備わっている資
源を有効に利用することができる。このため、テレビ映
像やビデオ映像と同時に、映像に多重化されたキャプシ
ョンデータを表示する情報処理装置を安価に構築でき
る。さらに、NSP(native signal processor)等が
搭載される情報処理装置では、信号処理をすべてソフト
的に処理する傾向にあるので、本実施形態はこのような
装置に特に有効である。Further, in the present embodiment, since the start code and the data code of the caption signal are detected by the central processing unit 1 executing the program stored in the main memory 3 or the auxiliary storage device 4, the television It is possible to effectively use resources provided in advance in an information processing device such as a personal computer or a word processor capable of displaying a video image or a video image. Therefore, it is possible to inexpensively construct an information processing device that displays the caption data multiplexed with the video image at the same time as the television image or the video image. Further, in an information processing apparatus equipped with an NSP (native signal processor) or the like, all signal processing tends to be processed by software, so that the present embodiment is particularly effective for such an apparatus.
【0079】さらに、本実施形態では、キャプション信
号が重畳された水平走査線を構成する画素のデジタル映
像データをキャプション信号のビット幅(波長)に略対
応する画素間隔でサンプリングすることにより、キャプ
ション信号のスタート・コード及びデータ・コードの検
出を行っている。キャプション信号は26ビットである
ので、例えば一水平走査線当たりの画素数が320であ
る場合、キャプション信号のビット幅に略対応する画素
間隔12画素でサンプリングを行う。また、一水平走査
線当たりの画素数が640である場合、キャプション信
号のビット幅に略対応する画素間隔24画素でサンプリ
ングを行う。このように、本実施形態では、キャプショ
ン信号のビット数と一水平走査線当たりの画素数とで定
まるサンプリング間隔でデジタル映像データのサンプリ
ングを行うので、表示装置の水平走査周波数が変化し
て、キャプション信号に含まれる同期信号の周波数が変
化した場合でも、キャプション信号を取得することがで
きる。Further, in the present embodiment, the digital image data of the pixels forming the horizontal scanning line on which the caption signal is superimposed is sampled at the pixel intervals substantially corresponding to the bit width (wavelength) of the caption signal, thereby obtaining the caption signal. The start code and data code of are detected. Since the caption signal has 26 bits, for example, when the number of pixels per horizontal scanning line is 320, sampling is performed at a pixel interval of 12 pixels which substantially corresponds to the bit width of the caption signal. Further, when the number of pixels per horizontal scanning line is 640, sampling is performed at a pixel interval of 24 pixels, which approximately corresponds to the bit width of the caption signal. As described above, in the present embodiment, since the digital video data is sampled at the sampling interval determined by the number of bits of the caption signal and the number of pixels per horizontal scanning line, the horizontal scanning frequency of the display device changes and the caption changes. The caption signal can be acquired even when the frequency of the synchronization signal included in the signal changes.
【0080】加えて、本実施形態では、デコードされた
文字コードが有効なコードでない場合に、予め決められ
た特殊な文字を表示装置5に表示している。これによ
り、受信したテレビ信号及びビデオ信号が不安定である
等の理由で、キャプション信号のデコードを正確に行え
ない場合でも、利用者にその旨を知らせることができる
と共に、本実施形態のデコード装置が不安定な動作をす
るのを防ぐことができる。尚、この特殊な文字が続いた
場合には、受信不能等の表示を行い、本実施形態のデコ
ード装置を終了するようにしてもよい。In addition, in this embodiment, when the decoded character code is not a valid code, a predetermined special character is displayed on the display device 5. As a result, even when the caption signal cannot be accurately decoded because the received television signal and video signal are unstable, the user can be notified of that fact, and the decoding device of this embodiment can be used. Can be prevented from performing unstable operation. If this special character continues, it may be displayed that reception is impossible or the like, and the decoding device of the present embodiment may be terminated.
【0081】尚、本実施形態では、サンプリング部22
として、サンプリング間隔T毎に、1つの画素のYデー
タをサンプリングし、このYデータをしきい値Sで
“0”又は“1”に振り分けるものについて説明した。
しかし、サンプリング部は、図9(a)及び(b)に示
すように、サンプリング位置にある画素及びその近傍に
ある画素のYデータをサンプリングしてその平均をと
り、この平均値をしきい値Sで“0”又は“1”に振り
分けることにより、サンプリングしたデータ・コードの
論理値を“0又は“1”に振り分けてもよい。また、サ
ンプリング位置にある画素及びその近傍にある画素のY
データ各々をしきい値Sで“0”又は“1”に振り分
け、各Yデータの振り分けた結果全てが“0”であるか
又は“1”であるかで、サンプリングしたデータ・コー
ドの論理値を“0又は“1”に振り分けてもよい。これ
により、受信したテレビ信号及びビデオ信号が不安定で
ある場合でも、正確にキャプション信号のデータをサン
プリングすることができる。また、サンプリング位置に
ある画素及びその近傍にある画素のYデータをサンプリ
ングする場合、サンプリングした各画素のYデータを調
べて、Yデータの値が最も大きい画素、または、最も小
さい画素がサンプリングされる画素の中心に位置するよ
うに、サンプリング位置を補正してもよい。これによ
り、サンプリング位置を図5に示すデータ・コードの山
又は谷に位置するように補正することができる。In this embodiment, the sampling unit 22
As described above, the Y data of one pixel is sampled at every sampling interval T and the Y data is distributed to “0” or “1” by the threshold value S.
However, as shown in FIGS. 9A and 9B, the sampling unit samples the Y data of the pixel at the sampling position and the pixels in the vicinity of the pixel, takes the average thereof, and sets this average value as the threshold value. The logical value of the sampled data code may be distributed to "0" or "1" by allocating it to "0" or "1" in S. Also, Y of the pixel at the sampling position and the pixel in the vicinity thereof
Logical value of the sampled data code depending on whether each data is distributed to "0" or "1" by the threshold value S and all the distributed results of each Y data are "0" or "1". May be distributed to “0” or “1.” This makes it possible to accurately sample the data of the caption signal even when the received television signal and video signal are unstable. When sampling Y data of a pixel and its neighboring pixels, the Y data of each sampled pixel is checked, and the pixel with the largest Y data value or the smallest pixel is located at the center of the sampled pixel. The sampling position may be corrected so that the sampling position is located at the peak or valley of the data code shown in FIG. It can be corrected.
【0082】また、本実施形態では、図4に示すステッ
プ404で、しきい値Sを予め定めた値に設定していた
が、この値は必ずしも固定である必要はない。たとえ
ば、コード解析部23において、無効なコードが確認さ
れた場合に、しきい値Sの値を自動的に大きく、または
小さくして、受信したテレビ信号及びビデオ信号が不安
定である場合でも、キャプション信号のデータを正確に
サンプリングし、デコードすることができるようにして
もよい。また、しきい値Sを入力装置8を介してユーザ
が入力できるようにしてもよい。これにより、図10に
示すように、ノイズなどによって受信したテレビ信号及
びビデオ信号の輝度信号の振幅が小さくなっている場合
でも、ユーザが入力装置8を介してしきい値を小さくす
ることにより、キャプション信号のデータを正確にサン
プリングし、デコードすることができる。In this embodiment, the threshold value S is set to a predetermined value in step 404 shown in FIG. 4, but this value does not have to be fixed. For example, in the code analysis unit 23, when an invalid code is confirmed, the value of the threshold S is automatically increased or decreased, and even if the received TV signal and video signal are unstable, The data of the caption signal may be accurately sampled and decoded. Further, the threshold value S may be input by the user via the input device 8. As a result, as shown in FIG. 10, even when the amplitudes of the luminance signals of the received television signal and video signal are reduced due to noise or the like, the user reduces the threshold value via the input device 8, The data of the caption signal can be accurately sampled and decoded.
【0083】また、図4に示すステップ402におい
て、第21水平走査線を構成する各画素のYデータを整
数倍にして配列Dに格納してもよい。図11はデータ・
コードを構成する各画素の輝度データの波形の一例を示
す図である。特に、ノイズ等の影響で波形が崩れている
様子を示している。このような場合、しきい値Sを小さ
くしすぎると本来理論値が“0”であるA部を“1”と
判断してしまう。一方、しきい値Sを大きくしすぎると
本来理論値が“1”であるB部を“0”と判断してしま
う。すなわち、しきい値の有効範囲が狭くなる。これに
対し、各画素のYデータを整数倍にして配列Dに格納す
ると、図12に示すように、しきい値Sの有効範囲が広
がるため、しきい値が設定しやすくなる。Further, in step 402 shown in FIG. 4, the Y data of each pixel forming the 21st horizontal scanning line may be multiplied by an integer and stored in the array D. Figure 11 shows the data
It is a figure which shows an example of the waveform of the brightness | luminance data of each pixel which comprises a code. In particular, it shows that the waveform is broken due to the influence of noise or the like. In such a case, if the threshold value S is made too small, the portion A, which originally has a theoretical value of "0", is determined to be "1". On the other hand, if the threshold value S is made too large, the portion B, which originally has a theoretical value of "1", is determined to be "0". That is, the effective range of the threshold value becomes narrow. On the other hand, when the Y data of each pixel is multiplied by an integer and stored in the array D, the effective range of the threshold value S is widened as shown in FIG. 12, so that the threshold value can be easily set.
【0084】次に、本発明の第二実施形態が適用された
デコード装置について説明する。Next, a decoding device to which the second embodiment of the present invention is applied will be described.
【0085】第一実施形態では、サンプリング間隔Tで
あるキャプション信号のビット幅に略対応する画素間隔
を、一水平走査線当たりの画素数をキャプション信号の
合計ビット数(26ビット)で割ることにより求めたも
のについて説明した。これに対し、本実施形態では、キ
ャプション信号のクロック・ラン・イン信号を調べるこ
とにより、サンプリング間隔Tを決定するものについて
説明する。尚、本実施形態のハードウェア構成は第一実
施形態のものと同じであるので、その図面を省略する。In the first embodiment, the pixel interval corresponding to the bit width of the caption signal, which is the sampling interval T, is divided by the number of pixels per horizontal scanning line by the total number of bits (26 bits) of the caption signal. I explained what I asked for. On the other hand, in the present embodiment, a case will be described in which the sampling interval T is determined by examining the clock run-in signal of the caption signal. Since the hardware configuration of this embodiment is the same as that of the first embodiment, its drawing is omitted.
【0086】本実施形態に用いる中央処理装置の機能構
成が、図2に示す第一実施形態に用いる中央処理装置の
機能構成と異なる点は、図13に示すように、7周期分
のクロック・ラン・イン信号を調査してサンプリング間
隔Tを決定する周期決定部1306が設けられている点
である。その他の点は、図2に示す中央処理装置の機能
構成と同様であるので、同一の機能を有するものに同一
の符号を付すことにより、その詳細な説明を省略する。The functional configuration of the central processing unit used in this embodiment is different from the functional configuration of the central processing unit used in the first embodiment shown in FIG. 2, as shown in FIG. The point is that a cycle determining unit 1306 is provided for checking the run-in signal and determining the sampling interval T. Since the other points are the same as the functional configuration of the central processing unit shown in FIG. 2, those having the same functions are designated by the same reference numerals, and detailed description thereof will be omitted.
【0087】また、本実施形態では、図4に示すサンプ
リング部22の処理手順のステップ404において、一
水平走査線当たりの画素数をキャプション信号の合計ビ
ット数で割った値をサンプリング間隔Tとして設定する
代わりに、周期決定部1306を起動してサンプリング
間隔Tを決定する。その他の処理は、第一実施形態のも
のと同様である。Further, in this embodiment, in step 404 of the processing procedure of the sampling section 22 shown in FIG. 4, a value obtained by dividing the number of pixels per horizontal scanning line by the total number of bits of the caption signal is set as the sampling interval T. Instead, the cycle determining unit 1306 is activated to determine the sampling interval T. Other processes are the same as those in the first embodiment.
【0088】次に、周期決定部1306の処理手順につ
いて図14を参照して説明する。図14は周期決定部で
の処理手順を説明するためのフロー図である。尚、図1
4に示す処理手順は、制御部21の指令に基づき、主メ
モリ3や補助記憶装置4に格納されたプログラムが実行
されることによって開始する。Next, the processing procedure of the cycle determining unit 1306 will be described with reference to FIG. FIG. 14 is a flowchart for explaining the processing procedure in the cycle determining unit. FIG.
The processing procedure shown in FIG. 4 starts when a program stored in the main memory 3 or the auxiliary storage device 4 is executed based on a command from the control unit 21.
【0089】先ず、周期決定部1306は、何周期分の
クロック・ラン・イン信号を調査したかを示すカウンタ
kに1を代入する(ステップ1501)。First, the cycle determining unit 1306 substitutes 1 into the counter k indicating how many cycles of the clock run-in signal have been investigated (step 1501).
【0090】次に、周期決定部1306は、図4に示す
ステップ402で配列Dに格納した第21水平走査線を
構成する画素のYデータについて、最初にしきい値S以
上になる画素のYデータが格納された位置を検出する
(ステップ1502)。Next, the cycle determining unit 1306 determines the Y data of the pixels forming the 21st horizontal scanning line stored in the array D in step 402 shown in FIG. The position where is stored is detected (step 1502).
【0091】次に、周期決定部1306は、ステップ1
502で検出した位置から位置を1づつずらしつつ、配
列Dのデータを順次調べていき、しきい値S以上が続く
Yデータの数C1をカウントし(ステップ1503)、
次いで、しきい値S以下が続くYデータの数C2をカウ
ントする(ステップ1504)。そして、C1及びC2
の和、すなわち、クロック・ラン・イン信号の1周期分
に相当する画素間隔を主メモリ3又は補助記憶装置4に
設けられた配列C[k]に格納する(ステップ150
5)。Next, the cycle determining unit 1306 determines the step 1
While shifting the position one by one from the position detected in 502, the data of the array D is sequentially examined, and the number C1 of Y data continuing to be equal to or more than the threshold value S is counted (step 1503).
Next, the number C2 of Y data that is equal to or less than the threshold value S is counted (step 1504). And C1 and C2
, That is, the pixel interval corresponding to one cycle of the clock run-in signal is stored in the array C [k] provided in the main memory 3 or the auxiliary storage device 4 (step 150).
5).
【0092】次に、周期決定部1306は、kが6以上
であるか否かを判断する(ステップ1506)、kが6
より小さい場合、未だ6周期分のクロック・ラン・イン
信号についての調査が終了していないので、kの値を1
つ増やし(ステップ1507)、ステップ1502に戻
る。一方、kが6以上である場合、6周期分のクロック
・ラン・イン信号についての調査が終了したので、配列
C[1]〜C[6]に格納されたデータの平均値を計算
して、この値をサンプリング間隔Tに決定し(ステップ
1508)、このフローを終了する。Next, the cycle determining unit 1306 determines whether k is 6 or more (step 1506), and k is 6
If it is smaller, the value of k is set to 1 because the investigation of clock run-in signals for 6 cycles has not been completed.
Increases by one (step 1507) and returns to step 1502. On the other hand, when k is 6 or more, the investigation of the clock run-in signal for 6 cycles is completed, and therefore the average value of the data stored in the arrays C [1] to C [6] is calculated. , This value is determined as the sampling interval T (step 1508) and this flow ends.
【0093】上述したように、第一実施形態では、一水
平走査線当たりの画素数をキャプション信号の合計ビッ
ト数で割ることにより、キャプション信号のビット幅に
略対応する画素間隔、即ちサンプリング間隔Tを求めて
いる。これは、キャプション信号が第21水平走査線全
域に渡って輝度信号に重畳されているという前提に立脚
したものである。しかしながら、受信したテレビ信号や
ビデオ信号が不安定な場合、キャプション信号の第21
水平走査線における重畳領域がフレームによって多少ず
れることも考えられる。このような場合でも、本実施形
態によれば、第21水平走査線の輝度情報に重畳された
キャプション信号のクロック・ラン・イン信号の周期を
調査してサンプリング間隔Tを設定するので、正確にキ
ャプション信号のデータをサンプリングすることができ
る。その他の効果は、第一実施形態と同様である。As described above, in the first embodiment, by dividing the number of pixels per horizontal scanning line by the total number of bits of the caption signal, the pixel interval substantially corresponding to the bit width of the caption signal, that is, the sampling interval T Are seeking. This is based on the assumption that the caption signal is superimposed on the luminance signal over the entire 21st horizontal scanning line. However, if the received TV or video signal is unstable, the caption signal
It is also conceivable that the overlapping area on the horizontal scanning line may be slightly shifted depending on the frame. Even in such a case, according to the present embodiment, the sampling interval T is set by investigating the cycle of the clock run-in signal of the caption signal superimposed on the luminance information of the 21st horizontal scanning line, and therefore, the sampling interval T is accurately set. The data of the caption signal can be sampled. Other effects are similar to those of the first embodiment.
【0094】尚、本実施形態では、図4に示すステップ
406でi=0に設定し、スタート・コード検出のため
のサンプリングを配列Dに格納された最初のデータD
[0]から行っている。しかしながら、図14に示すス
テップ1506でkが6以上と判断された時点で最後に
調べたデータの画素位置をiに代入してもよい。これに
より、より高速にキャプション信号のデータをサンプリ
ングすることができる。In this embodiment, i = 0 is set in step 406 shown in FIG. 4, and sampling for start code detection is performed by the first data D stored in the array D.
It starts from [0]. However, the pixel position of the last examined data may be substituted for i when k is determined to be 6 or more in step 1506 shown in FIG. Thereby, the data of the caption signal can be sampled at a higher speed.
【0095】また、本実施形態では、図14のステップ
1508において、配列C[1]〜C[6]に格納され
たデータ(すなわち、クロック・ラン・イン信号の6周
期分に相当する画素数)の平均値をサンプリング間隔T
としているが、配列C[1]〜C[6]に格納されたデ
ータのうち最も多く現れた値をサンプリング間隔Tとし
てもよい。例えば、配列C[1]〜C[6]のデータが
それぞれ5、4、6、5、5、6である場合、最も多く
現れたデータ「5」をサンプリング間隔Tに決定しても
よい。また、配列C[1]〜C[6]に格納されたデー
タの中から動的に1つのデータを選択してサンプリング
間隔Tとしもよい。たとえば、配列C[1]〜C[6]
のデータがそれぞれ5、4、6、5、5、6である場
合、最初のサンプリングではサンプリング間隔Tを配列
C[1]に格納されたデータ「5」、次のサンプリング
ではサンプリング間隔Tを配列C[2]に格納されたデ
ータ「4」というように、順次、サンプリング間隔Tを
C[1]、C[2]、C[3]、C[4]、C[5]、
C[6]、C[1]、と入れ替えてサンプリングを行っ
てもよい。Further, in this embodiment, in step 1508 of FIG. 14, the data stored in the arrays C [1] to C [6] (that is, the number of pixels corresponding to 6 cycles of the clock run-in signal). ) Average value of sampling interval T
However, the value that appears most frequently among the data stored in the arrays C [1] to C [6] may be set as the sampling interval T. For example, when the data of the arrays C [1] to C [6] are 5, 4, 6, 5, 5, and 6, respectively, the data “5” that appears most often may be determined as the sampling interval T. Further, one data may be dynamically selected from the data stored in the arrays C [1] to C [6] to set the sampling interval T. For example, arrays C [1] to C [6]
Of the data of 5, 4, 6, 5, 5, and 6, respectively, the sampling interval T is arrayed at the data “5” stored in the array C [1] at the first sampling, and the sampling interval T is arrayed at the next sampling. The sampling interval T is sequentially set to C [1], C [2], C [3], C [4], C [5], such as data “4” stored in C [2].
Sampling may be performed by replacing C [6] and C [1].
【0096】さらに、本実施形態では、周期決定部13
06は、6周期分のクロック・ラン・イン信号を調査し
て、サンプリング間隔Tを決定したが、必ずしも6周期
分のクロック・ラン・イン信号を調査する必要はなく、
例えば3周期分のクロック・ラン・イン信号を調査する
ことによりサンプリング間隔Tを決定してもよい。Further, in this embodiment, the cycle determining unit 13
06 determines the sampling interval T by examining the clock run-in signal for 6 cycles, but it is not always necessary to examine the clock run-in signal for 6 cycles,
For example, the sampling interval T may be determined by examining the clock run-in signal for three cycles.
【0097】本実施形態は、上記の各実施形態に限定さ
れるものではなく、その要旨の範囲内で様々な変形が可
能である。たとえば、上記の各実施形態では、受信装置
2によって受信されたテレビ映像及びビデオ映像が、N
TSCデコード装置6によって、YUVのデジタル映像
データに変換されていたことを前提にしていたが、RG
Bのデジタル映像データに変換される場合には、既に知
られているRGB・YUV変換式を用いて、得られたR
GBデータをYUVデータに変換することで対応でき
る。The present embodiment is not limited to the above-described embodiments, but various modifications can be made within the scope of the gist thereof. For example, in each of the above embodiments, the television image and the video image received by the receiving device 2 are N
It was supposed that it was converted into YUV digital image data by the TSC decoding device 6, but RG
When converted to B digital image data, R obtained using the RGB / YUV conversion formula already known
This can be handled by converting GB data into YUV data.
【0098】また、上記の各実施形態では、米国で放送
されているクローズドキャプションに適応した例につい
て説明したが、我国で放送されている文字放送等にも同
様に適応可能である。Further, in each of the above-mentioned embodiments, an example in which the closed caption broadcast in the United States is applied has been described, but the present invention is also applicable to a text broadcast or the like broadcast in Japan.
【0099】[0099]
【発明の効果】以上説明してきたように、本発明によれ
ば、デジタル映像データに変換された映像信号を基に、
当該映像信号に多重化されたデジタルの文字情報を取得
することができる。また、本発明では、文字情報の1ビ
ット幅(1波長)に略対応する画素間隔でデジタル映像
データをサンプリングすることにより、表示装置の水平
走査周波数が変化して、これに伴い文字情報の周波数が
変化した場合でも、文字情報を取得することができる。As described above, according to the present invention, based on the video signal converted into digital video data,
It is possible to acquire digital character information multiplexed with the video signal. Further, in the present invention, by sampling the digital video data at pixel intervals substantially corresponding to the 1-bit width (1 wavelength) of the character information, the horizontal scanning frequency of the display device changes, and the frequency of the character information accordingly. It is possible to acquire the character information even when is changed.
【0100】さらに、テレビ映像やビデオ映像を表示可
能な情報処理装置において、テレビ映像やビデオ映像と
同時に、映像に多重化されたキャプションデータを表示
する機能を安価に提供できる。Further, in the information processing apparatus capable of displaying the television image or the video image, it is possible to inexpensively provide the function of displaying the caption data multiplexed with the image at the same time as the television image or the video image.
【図1】本発明の第一実施形態が適用されたデコード装
置のハードウェア構成を示す図である。FIG. 1 is a diagram showing a hardware configuration of a decoding device to which a first embodiment of the present invention is applied.
【図2】図1に示す中央処理装置の機能構成を示す図で
ある。FIG. 2 is a diagram showing a functional configuration of a central processing unit shown in FIG.
【図3】図2に示す制御部の処理手順を示すフロー図で
ある。3 is a flowchart showing a processing procedure of a control unit shown in FIG.
【図4】図2に示すサンプリング部の処理手順を示すフ
ロー図である。4 is a flowchart showing a processing procedure of a sampling section shown in FIG.
【図5】キャプション信号が重畳されている第21水平
走査線の輝度データの波形の一部を示す図である。FIG. 5 is a diagram showing a part of a waveform of luminance data of a 21st horizontal scanning line on which a caption signal is superimposed.
【図6】図2に示すコード解析部の処理手順を示すフロ
ー図である。6 is a flowchart showing a processing procedure of a code analysis unit shown in FIG.
【図7】図2に示す誤り検出部の処理手順理を示すフロ
ー図である。FIG. 7 is a flowchart showing the processing procedure of the error detection unit shown in FIG.
【図8】図2に示す表示制御部の処理内手順を示すフロ
ー図である。8 is a flowchart showing an in-process procedure of the display control section shown in FIG.
【図9】輝度データのサンプリング方法を説明するため
の図であり、(a)はキャプション信号が重畳されてい
る第21水平走査線のある部分の輝度データ波形示す
図、(b)は(a)に示す波形の一部を拡大した図であ
る。9A and 9B are diagrams for explaining a sampling method of luminance data, FIG. 9A is a diagram showing a luminance data waveform of a portion having a 21st horizontal scanning line on which a caption signal is superimposed, and FIG. 9B is a diagram showing FIG. FIG. 7B is an enlarged view of a part of the waveform shown in FIG.
【図10】キャプション信号が重畳されている第21水
平走査線の輝度データの波形の一部を示す図であり、特
に、ノイズ等の影響で波形が崩れている場合を示す図で
ある。FIG. 10 is a diagram showing a part of a waveform of luminance data of a 21st horizontal scanning line on which a caption signal is superimposed, and particularly a diagram showing a case where the waveform is distorted due to the influence of noise or the like.
【図11】キャプション信号が重畳されている第21水
平走査線のある部分の輝度データ波形を示す図であり、
特に、ノイズ等の影響で波形が崩れている場合を示す図
である。FIG. 11 is a diagram showing a luminance data waveform in a portion of a 21st horizontal scanning line on which a caption signal is superimposed,
In particular, it is a diagram showing a case where the waveform is distorted due to the influence of noise or the like.
【図12】図11に示す輝度データを整数倍に増幅した
場合を説明するための図である。FIG. 12 is a diagram for explaining a case where the luminance data shown in FIG. 11 is amplified by an integral multiple.
【図13】本発明の第二実施形態が適用されたデコード
装置に用いる中央処理装置の機能構成を示す図である。FIG. 13 is a diagram showing a functional configuration of a central processing unit used in a decoding device to which a second embodiment of the present invention is applied.
【図14】図13に示す周期決定部の処理手順を示すフ
ロー図である。FIG. 14 is a flowchart showing a processing procedure of a cycle determining unit shown in FIG.
【図15】受信したテレビ信号およびビデオ信号がYU
V4:2:2のデジタル映像データに変換された場合の
データ構造例を示す図である。FIG. 15 shows that the received television signal and video signal are YU
It is a figure which shows the example of a data structure at the time of being converted into V4: 2: 2 digital video data.
【図16】図1に示すデコード装置の全体的な動作を説
明するためのタイミング図である。16 is a timing diagram for explaining an overall operation of the decoding device shown in FIG.
【図17】図2に示すサンプリング部で取得された第2
1水平走査線のデジタル映像データのデータ構造例を示
す図である。FIG. 17 is a second diagram acquired by the sampling unit shown in FIG.
It is a figure which shows the data structure example of the digital video data of 1 horizontal scanning line.
【図18】図2に示すサンプリング部で取得された第2
1水平走査線の各画素の輝度データを配列Dに格納した
ときのデータ構造を示す図である。18 is a second diagram acquired by the sampling unit shown in FIG.
It is a figure which shows the data structure at the time of storing the brightness | luminance data of each pixel of 1 horizontal scanning line in the array D.
1 中央処理装置 2 受信装置 3 主メモリ 4 補助記憶装置 5 表示装置 6 NTSCデコード装置 7 バス 8 入力装置 21 制御部 22 サンプリング部 23 コード解析部 24 表示部 25 誤り検出部 504 クロック・ラン・イン信号 505 スタート・コード 506 データ・コード 1306 周期決定部 1 central processing unit 2 receiving device 3 main memory 4 auxiliary storage device 5 display device 6 NTSC decoding device 7 bus 8 input device 21 control unit 22 sampling unit 23 code analysis unit 24 display unit 25 error detection unit 504 clock run-in signal 505 Start code 506 Data code 1306 Cycle determining unit
Claims (13)
されたデジタル信号の取得方法であって、 前記映像信号を画素単位の多値のデジタル映像データに
変換する変換行程と、 フレーム毎に、当該フレームを構成する画素のうち、前
記水平走査線を構成する所定番目の画素を基準として、
前記デジタル信号の1ビット幅に略対応する画素間隔で
前記水平走査線を構成する画素のデジタル映像データを
抽出する抽出行程と、 前記抽出したデジタル映像データを所定のしきい値で2
値化して、前記デジタル信号を取得するデジタル信号取
得行程と、 を有することを特徴とする映像信号に多重化されたデジ
タル信号の取得方法。1. A method for obtaining a digital signal multiplexed on a predetermined horizontal scanning line of a video signal, comprising: a conversion step for converting the video signal into multivalued digital video data in units of pixels; Among the pixels forming the frame, with reference to a predetermined pixel forming the horizontal scanning line,
An extraction step of extracting digital video data of pixels forming the horizontal scanning line at a pixel interval substantially corresponding to a 1-bit width of the digital signal, and the extracted digital video data is set to 2 at a predetermined threshold value.
A digital signal acquiring step of converting the value into a digital signal and acquiring the digital signal, and a method of acquiring a digital signal multiplexed with a video signal.
化されており、 前記デジタル信号の1ビット幅に略対応する画素間隔
は、前記水平走査線を構成する画素数を前記デジタル信
号のビット数で割った値であることを特徴とする映像信
号に多重化されたデジタル信号の取得方法。2. The horizontal scanning line according to claim 1, wherein the digital signal is multiplexed over the entire horizontal scanning line, and a pixel interval substantially corresponding to a 1-bit width of the digital signal forms the horizontal scanning line. A method for obtaining a digital signal multiplexed with a video signal, characterized in that the number of pixels is divided by the number of bits of the digital signal.
のデジタル映像データを順次所定のしきい値で2値化し
て、デジタル映像データが論理値1となる第一画素列と
当該第一画素列に連続する論理値0となる第二画素列と
からなる画素列を検出し、当該画素列の画素数を前記デ
ジタル信号1ビット幅に略対応する画素間隔として設定
する画素間隔設定行程を有することを特徴とする映像信
号に多重化されたデジタル信号の取得方法。3. The digital signal according to claim 1, wherein the digital signal includes a synchronization signal and a data signal, and prior to the extraction process, digital video data of pixels forming the horizontal scanning line is sequentially set to a predetermined threshold value. And binarizes the digital video data to detect a pixel row composed of a first pixel row whose logical value is 1 and a second pixel row which is continuous with the first pixel row and whose logical value is 0. A method of acquiring a digital signal multiplexed with a video signal, comprising a pixel interval setting step of setting the number of pixels as a pixel interval substantially corresponding to the 1-bit width of the digital signal.
の反復数の範囲内で続けて2回以上検出し、前記検出し
た画素列の画素数の平均値を前記デジタル信号の1ビッ
ト幅に略対応する画素間隔として設定することを特徴と
する映像信号に多重化されたデジタル信号の取得方法。4. The synchronizing signal according to claim 3, wherein the synchronizing signal is a repetitive signal, and the pixel interval setting step detects the pixel columns two or more times consecutively within a repeating number of the synchronizing signal, A method for acquiring a digital signal multiplexed with a video signal, wherein an average value of the number of pixels of the detected pixel row is set as a pixel interval substantially corresponding to a 1-bit width of the digital signal.
の反復数の範囲内で続けて2回以上検出し、前記検出し
た画素列の画素数のうち最も多く現れた画素数を前記デ
ジタル信号の1ビット幅に略対応する画素間隔として設
定することを特徴とする映像信号に多重化されたデジタ
ル信号の取得方法。5. The synchronizing signal according to claim 3, wherein the synchronizing signal is a repetitive signal, and the pixel interval setting step detects the pixel row two or more times consecutively within a repeating number of the synchronizing signal, A method for acquiring a digital signal multiplexed with a video signal, characterized in that the number of the most appearing pixels among the number of pixels in the detected pixel row is set as a pixel interval substantially corresponding to a 1-bit width of the digital signal.
の反復数の範囲内で続けて2回以上検出し、前記検出し
た画素列の画素数を動的に選択して当該選択した画素数
を前記デジタル信号の1ビット幅に略対応する画素間隔
として設定することを特徴とする映像信号に多重化され
たデジタル信号の取得方法。6. The synchronizing signal according to claim 3, wherein the synchronizing signal is a repetitive signal, and the pixel interval setting step detects the pixel row two or more times consecutively within a range of the repeating number of the synchronizing signal, A digital signal multiplexed with a video signal, wherein the number of pixels in the detected pixel row is dynamically selected and the selected number of pixels is set as a pixel interval substantially corresponding to a 1-bit width of the digital signal. How to get.
始位置を特定する複数ビットからなるスタート信号とを
有し、 前記抽出行程に先立って、 前記水平走査線を構成する画素のデジタル映像データを
前記デジタル信号の1ビット幅に略対応する画素間隔で
前記スタート信号のビット数分抽出し、当該抽出したデ
ジタル映像データを所定のしきい値で2値化するという
動作を、当該2値化した結果が前記スタート信号のビッ
ト列の値に一致するまで抽出開始位置を変えて行うスタ
ート信号検出行程と、 前記スタート信号検出行程で検出した前記スタート信号
のビット列の値に一致するデジタル映像データの画素位
置を基に、前記所定番目の画素を設定する抽出開始画素
設定行程と、 を有することを特徴とする映像信号に多重化されたデジ
タル信号の取得方法。7. The digital signal according to claim 1, wherein the digital signal includes a data signal and a start signal composed of a plurality of bits for specifying a start position of the data signal, and the horizontal scanning line is scanned before the extraction step. It is said that the digital video data of the constituent pixels is extracted by the number of bits of the start signal at pixel intervals substantially corresponding to the 1-bit width of the digital signal, and the extracted digital video data is binarized by a predetermined threshold value. A start signal detection step of performing the operation by changing the extraction start position until the binarized result matches the value of the bit string of the start signal, and a value of the bit string of the start signal detected in the start signal detection step. An extraction start pixel setting step of setting the predetermined pixel on the basis of the pixel position of the coincident digital video data, Multiplexed method for obtaining the digital signal to the video signal that.
応する画素間隔で前記水平走査線を構成する画素のデジ
タル映像データを抽出すると共に、当該抽出したデジタ
ル映像データの画素近傍に位置する画素のデジタル映像
データをも抽出し、 前記デジタル信号取得行程は、前記デジタル信号の1ビ
ット幅に略対応する画素間隔で抽出した画素のデジタル
映像データ及び当該画素近傍に位置する画素のデジタル
映像データの平均値を前記しきい値で2値化して、前記
デジタル信号を取得することを特徴とする映像信号に多
重化されたデジタル信号の取得方法。8. The extracting process according to claim 1, wherein the extracting step extracts the digital video data of the pixels forming the horizontal scanning line at a pixel interval substantially corresponding to a 1-bit width of the digital signal. The digital video data of the pixel located near the pixel of the video data is also extracted, and the digital signal acquisition step includes the digital video data of the pixel extracted at a pixel interval substantially corresponding to the 1-bit width of the digital signal and the vicinity of the pixel. A method of acquiring a digital signal multiplexed with a video signal, comprising: binarizing an average value of digital video data of a pixel located at the threshold value with the threshold value to acquire the digital signal.
応する画素間隔で前記水平走査線を構成する画素のデジ
タル映像データを抽出すると共に、当該抽出したデジタ
ル映像データの画素近傍に位置する画素のデジタル映像
データをも抽出し、 当該抽出した複数の画素のデジタル映像データ各々が前
記しきい値以上のときは、最も大きいデジタル映像デー
タを有する画素が抽出の中心位置となるように抽出位置
を補正し、当該抽出した複数の画素のデジタル映像デー
タ各々が前記しきい値以下のときは、最も小さいデジタ
ル映像データを有する画素を抽出の中心位置となるよう
に抽出位置を補正する抽出位置補正行程を有することを
特徴とする映像信号に多重化されたデジタル信号の取得
方法。9. The extracting process according to claim 1, wherein the extracting step extracts digital video data of pixels forming the horizontal scanning line at a pixel interval substantially corresponding to a 1-bit width of the digital signal. The digital video data of the pixel located near the pixel of the video data is also extracted. When each of the extracted digital video data of the plurality of pixels is equal to or more than the threshold value, the pixel having the largest digital video data is extracted. The extraction position is corrected to be the center position, and when each of the extracted digital video data of a plurality of pixels is equal to or less than the threshold value, the pixel having the smallest digital video data is set to the extraction center position. A method for obtaining a digital signal multiplexed with a video signal, characterized by having an extraction position correction process for correcting the extraction position.
化されたデジタル信号のデコード装置であって、 前記映像信号を画素単位の多値のデジタル映像データに
変換する変換手段と、 フレーム毎に、当該フレームを構成する画素のうち前記
水平走査線を構成する画素のデジタル映像データを記憶
媒体に記憶する記憶手段と、 前記水平走査線を構成する所定番目の画素を基準とし
て、前記記憶手段に記憶した画素のデジタル映像データ
を前記デジタル信号の1ビット幅に略対応する画素間隔
で抽出する抽出手段と、 前記抽出手段で抽出したデジタル映像データを所定のし
きい値で2値化して前記デジタル信号を取得するデジタ
ル信号取得手段と、 前記デジタル信号取得手段で取得したデジタル信号をデ
コードするデコード手段と、 を備えることを特徴とする映像信号に多重化されたデジ
タル信号のデコード装置。10. A decoding device for a digital signal multiplexed on a predetermined horizontal scanning line of a video signal, comprising: a converting means for converting the video signal into multivalued digital video data in units of pixels; A storage unit that stores digital video data of pixels that form the horizontal scanning line among the pixels that form the frame in a storage medium; and the storage unit based on a predetermined number of pixels that form the horizontal scanning line. Extracting means for extracting the digital video data of the pixel stored in the pixel at a pixel interval substantially corresponding to the 1-bit width of the digital signal; A digital signal acquiring unit that acquires a digital signal; and a decoding unit that decodes the digital signal acquired by the digital signal acquiring unit. DOO decoding apparatus of the multiplexed digital signal into a video signal characterized by.
設定手段を有することを特徴とする映像信号に多重化さ
れたデジタル信号のデコード装置。11. A decoding device for a digital signal multiplexed with a video signal according to claim 10, further comprising threshold setting means for setting the threshold based on a command from a user.
りを検出する誤り検出手段と、 前記誤り検出手段で誤りが検出されたときに、前記しき
い値を変更するしきい値変更手段と、 を有することを特徴とする映像信号に多重化されたデジ
タル信号のデコード装置。12. The error detecting means for detecting an error in a digital signal acquired by the digital signal acquiring means, and the threshold value is changed when the error is detected by the error detecting means. A decoding device for a digital signal multiplexed with a video signal, comprising: a threshold changing means.
映像データをデコードする映像デコード手段と、 前記映像デコード手段でデコードした映像を表示媒体に
表示すると共に、前記デコード手段でデコードした結果
を当該表示媒体に表示する表示手段と、 を有することを特徴とする映像信号に多重化されたデジ
タル信号のデコード装置。13. The video decoding means according to claim 10, 11 or 12, wherein video decoding means for decoding digital video data of pixels constituting the frame, and video decoded by the video decoding means are displayed on a display medium. And a display means for displaying the result decoded by the decoding means on the display medium, and a decoding device for a digital signal multiplexed with a video signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10280996A JPH09289628A (en) | 1996-04-24 | 1996-04-24 | Acquisition method and decoding apparatus for digital signal multiplexed with video signal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10280996A JPH09289628A (en) | 1996-04-24 | 1996-04-24 | Acquisition method and decoding apparatus for digital signal multiplexed with video signal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09289628A true JPH09289628A (en) | 1997-11-04 |
Family
ID=14337383
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10280996A Pending JPH09289628A (en) | 1996-04-24 | 1996-04-24 | Acquisition method and decoding apparatus for digital signal multiplexed with video signal |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09289628A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100312713B1 (en) * | 1998-02-20 | 2001-12-28 | 윤종용 | Device for caption broadcasting using digital broadcasting satellite |
-
1996
- 1996-04-24 JP JP10280996A patent/JPH09289628A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100312713B1 (en) * | 1998-02-20 | 2001-12-28 | 윤종용 | Device for caption broadcasting using digital broadcasting satellite |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5543850A (en) | System and method for displaying closed caption data on a PC monitor | |
| CA2042311C (en) | Method of storing and editing data in a television system and apparatus therefor | |
| US6683585B1 (en) | Picture display control system, image signal generating device, and picture display device | |
| KR20020093876A (en) | Data transmitting method and receiving method, and video data transmitting device and receiving device | |
| EP0918313A1 (en) | Signal processing method for an analogue picture signal | |
| KR100194802B1 (en) | MPEG-2 Encoder Preprocessor for Split Screen Image Processing of Digital TV and High-Definition TV | |
| JP2002271754A (en) | Information transmitting apparatus and method, information receiving apparatus and method, information transmitting and receiving system and method, recording medium and program | |
| US6232951B1 (en) | Display system which displays an image regarding video data in a plurality of different types of display modes | |
| JPH10164521A (en) | Image processing device | |
| US7830451B2 (en) | Image processing apparatus and image processing method | |
| JPH10304327A (en) | Data broadcast receiving device and television receiver | |
| CN1132423C (en) | Receiving device for receiving video and teletext signals | |
| US7893995B2 (en) | Display apparatus and signal processing method thereof | |
| KR100262367B1 (en) | Character information contour correction apparatus and method of TV receiver | |
| KR940008580B1 (en) | Teletext Digital Processing Unit | |
| KR0185929B1 (en) | Aspect ratios transformation apparatus and method of image signal | |
| JP2684514B2 (en) | Satellite broadcasting subtitle burning system | |
| JPH07107416A (en) | Aspect detector | |
| KR100229625B1 (en) | Selective broadcast information signal display device and display method | |
| KR19990003683A (en) | Active video area detection device | |
| JPS6261197B2 (en) | ||
| KR100247095B1 (en) | OSD screen flicker removal device by eliminating image field of TV | |
| US20040104865A1 (en) | Method and device for coding/decoding information for defining a window in a video image | |
| JPH037188B2 (en) | ||
| JP2540326Y2 (en) | Closed caption broadcast receiver |