JP2001008202A - Moving image encoding method, moving image encoding device, and moving image recording device using the same - Google Patents
Moving image encoding method, moving image encoding device, and moving image recording device using the sameInfo
- Publication number
- JP2001008202A JP2001008202A JP17294899A JP17294899A JP2001008202A JP 2001008202 A JP2001008202 A JP 2001008202A JP 17294899 A JP17294899 A JP 17294899A JP 17294899 A JP17294899 A JP 17294899A JP 2001008202 A JP2001008202 A JP 2001008202A
- Authority
- JP
- Japan
- Prior art keywords
- field
- pulse
- moving image
- level
- inverted
- 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
- 238000000034 method Methods 0.000 title claims description 25
- 238000001514 detection method Methods 0.000 claims abstract description 39
- 238000012545 processing Methods 0.000 claims abstract description 37
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 20
- 230000000873 masking effect Effects 0.000 description 2
- 230000000750 progressive effect Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
(57)【要約】
【課題】 ノンインターレース方式の動画像信号をMP
EG2規格で正しく符号化することができるようにす
る。
【解決手段】 垂直同期信号検出回路1により、入力動
画像信号pの垂直同期信号から垂直同期パルスvが生成
され、この垂直同期パルスv毎にレベルが反転する反転
フィールドパルスfが反転フィールドパルス生成回路3
で生成される。また、フレーム同期パルス生成回路4
は、垂直同期パルスvと反転フィールドパルスfとか
ら、入力動画像信号pの2フィールド周期のフレーム同
期パルスsを生成する。符号化処理回路5は、入力動画
像信号pを、フレーム同期パルスsをもとに2フィール
ドをペアとして、ペア単位で取り込んで符号化処理す
る。この場合、ペアとなる2つのフィールドは、反転フ
ィールドパルスfのレベルに応じて、一方がトップフィ
ールド、他方がボトムフィールドとして符号化処理され
る。
(57) [Summary] [Problem] To convert a non-interlaced video signal to MP
The encoding can be performed correctly according to the EG2 standard. SOLUTION: A vertical synchronization signal detection circuit 1 generates a vertical synchronization pulse v from a vertical synchronization signal of an input moving image signal p, and generates an inverted field pulse f whose level is inverted for each vertical synchronization pulse v. Circuit 3
Generated by The frame synchronization pulse generation circuit 4
Generates a frame synchronization pulse s having a two-field period of the input moving image signal p from the vertical synchronization pulse v and the inverted field pulse f. The encoding processing circuit 5 fetches the input moving image signal p in pairs on the basis of the frame synchronization pulse s in two fields and performs encoding processing. In this case, the two fields forming a pair are coded as a top field and the other as a bottom field according to the level of the inverted field pulse f.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、動画像を符号化す
る動画像符号化装置及びこの動画像符号化装置によって
符号化された符号を記録する動画像記録装置に係り、特
に、ノンインターレースの動画像信号をも符号化する手
法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding apparatus for coding a moving picture and a moving picture recording apparatus for recording a code coded by the moving picture coding apparatus. The present invention relates to a technique for encoding a moving image signal.
【0002】[0002]
【従来の技術】動画像の符号化方式としては、MPEG
2規格がよく知られており、様々なアプリケーションに
適用され、動画像の符号化方式の国際標準となってい
る。MPEG2規格に関しては、例えば、テレビジョン
学会誌 Vol.49 No.4(1995) pp.435−458に詳し
く解説されている。2. Description of the Related Art As a moving picture coding method, MPEG is used.
The two standards are well known, are applied to various applications, and have become international standards for moving picture coding methods. The MPEG2 standard is described in detail, for example, in the Journal of the Institute of Television Engineers of Japan, Vol. 49 No. 4 (1995), pp. 435-458.
【0003】MPEG2規格は、放送や通信,蓄積メデ
ィアなどの様々なアプリケーションに適用されることを
前提としている汎用規格であるが、符号化される動画像
信号がNTSC方式やPAL方式などの標準的なフォー
マットであることを前提にしている。[0003] The MPEG2 standard is a general-purpose standard on the premise that it is applied to various applications such as broadcasting, communication, and storage media. However, moving image signals to be encoded are standardized such as the NTSC system and the PAL system. Format.
【0004】一方、動画像の中には、標準的なフォーマ
ットに合致しないもの(即ち、非標準方式のもの)も数
多く存在する。かかる非標準方式の動画像が広く普及し
ている理由は、必ずしも標準的なフォーマットに合致し
ていなくても、一般的なテレビモニタに映し出すことが
できるからである。代表的な例としては、ゲーム機器が
出力する動画像信号である。NTSC方式のテレビモニ
タに映し出すことができる動画像信号でMPEG2規格
が受け付けるのは、フィールド周波数が60Hzのイン
タレース方式の画像信号だけであるが、ゲーム機器から
出力される動画像信号は、フィールド周波数が60Hz
のプログレッシブ画像信号(奇フィールド、または、偶
フィールドが連続する画像信号であって、インターレー
スしないノンインターレースの動画像信号)になる場合
があり、垂直方向のライン数がインターレース方式の画
像信号の半分になるが、場面によっては、プログレッシ
ブにした方が見易いからである。[0004] On the other hand, there are many moving images that do not conform to a standard format (that is, non-standard type). The reason why such non-standard moving images are widely used is that they can be displayed on a general television monitor even if they do not necessarily conform to a standard format. A typical example is a moving image signal output from a game device. The MPEG2 standard accepts only an interlaced image signal having a field frequency of 60 Hz as a moving image signal that can be displayed on an NTSC television monitor, but a moving image signal output from a game device has a field frequency Is 60Hz
Progressive image signal (an odd-field or even-field continuous image signal and a non-interlaced non-interlaced moving image signal) in which the number of lines in the vertical direction is half that of the interlaced image signal. This is because, depending on the scene, it is easier to see the image when it is progressive.
【0005】また、動画像信号を符号化して記録媒体に
記録する記録装置では、チューナのチャンネル切換えな
どのように、複数の動画像ソースを切り換えて記録する
用途が考えられる。通常、これら動画像ソースは互いに
同期していないので、切換え時点で同期が不連続にな
る。このため、複数の動画像ソースを切り換えた動画像
は標準的なフォーマットに合致していないので、そのま
まではMPEG2規格で符号化することができない。A recording apparatus that encodes a moving image signal and records it on a recording medium may be used for switching a plurality of moving image sources, such as switching the channel of a tuner. Normally, these moving image sources are not synchronized with each other, so that the synchronization is discontinuous at the time of switching. For this reason, a moving image obtained by switching a plurality of moving image sources does not conform to the standard format, and cannot be coded in the MPEG2 standard as it is.
【0006】[0006]
【発明が解決しようとする課題】上記のような非標準方
式の動画像信号をMPEG2規格で符号化する場合に
は、従来、符号化手段のの前段にフレームシンクロナイ
ザを設け、これによって標準的なフォーマットに合致し
た標準方式の動画像信号に変換するするようにしていた
が、フレームシンクロナイザにはフレームメモリを必要
とし、このため、回路規模が増大化し、コストアップに
つながるという問題があった。In order to encode a non-standard video signal according to the MPEG2 standard as described above, a frame synchronizer is conventionally provided in front of the encoding means, thereby providing a standard synchronizer. Although the video signal is converted into a standard video signal conforming to the format, the frame synchronizer requires a frame memory, which causes a problem that the circuit scale is increased and the cost is increased.
【0007】本発明の目的は、かかる問題を解消し、フ
レームシンクロナイザを用いず、簡易な回路構成で非標
準方式の動画像信号をMPEG2規格で符号化すること
ができるようにした動画像符号化装置及び動画像記録装
置を提供することにある。SUMMARY OF THE INVENTION It is an object of the present invention to solve the above-mentioned problem, and to provide a moving picture encoding system capable of encoding a non-standard moving picture signal in accordance with the MPEG2 standard with a simple circuit configuration without using a frame synchronizer. An apparatus and a moving image recording apparatus are provided.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するため
に、本発明は、一連のフィールド画像からなる入力動画
像信号のフィールド毎にレベルが反転する反転フィール
ドパルスを発生する反転フィールドパルス生成手段と、
該反転フィールドパルスに同期したフレーム同期パルス
を生成するフレーム同期パルス生成手段と、該フレーム
同期パルスにより、該入力動画像信号の順次のフィール
ドを2フィールドずつペアとし、該入力動画像信号をペ
ア単位で符号化する符号化手段とを備えた構成とする。In order to attain the above object, the present invention provides an inverted field pulse generating means for generating an inverted field pulse whose level is inverted for each field of an input moving image signal comprising a series of field images. When,
Frame synchronizing pulse generating means for generating a frame synchronizing pulse synchronized with the inversion field pulse; and by using the frame synchronizing pulse, successive fields of the input moving image signal are paired by two fields, and the input moving image signal is paired. And an encoding means for encoding the data.
【0009】かかる構成によると、入力動画像信号がノ
ンインターレース動画像であっても、2フィールドをペ
アとして符号化するものであるから、MPEG2規格に
よる符号化を行なうことができる。With this configuration, even if the input moving image signal is a non-interlaced moving image, the coding is performed as a pair of two fields, so that the coding according to the MPEG2 standard can be performed.
【0010】また、本発明は、上記の構成において、上
記入力動画像信号のフィールドの種類を判別し、該種類
に応じたレベルのフィールド判別パルスを発生するフィ
ールド判別手段と、前記符号化手段の符号化処理の開始
に先立って符号化開始指令を発生する符号化開始制御手
段とを設け、前記反転フィールドパルス生成手段は、該
符号化開始指令の発生時点の該フィールド判別パルスの
レベルに応じた初期レベルに前記反転フィールドパルス
のレベルを設定する構成とする。Further, according to the present invention, in the above configuration, a field discriminating means for discriminating a type of a field of the input moving image signal and generating a field discriminating pulse of a level corresponding to the type, Encoding start control means for generating an encoding start command prior to the start of the encoding process, wherein the inversion field pulse generating means responds to the level of the field discrimination pulse at the time of generation of the encoding start command. The level of the inversion field pulse is set to the initial level.
【0011】かかる構成によると、入力動画像信号がノ
ンインターレースであっても、また、インターレースで
あっても、符号化動作の開始時からMPEG2規格によ
る符号化を行なうことができる。特に、入力動画像信号
がインターレースである場合には、上記のペアの第1フ
ィールドを記フィールド、第2フィールドを偶フィール
ドとすることができ、確実にMPEG2規格による符号
化が行なわれることになる。With this configuration, even if the input moving image signal is non-interlaced or interlaced, encoding according to the MPEG2 standard can be performed from the start of the encoding operation. In particular, when the input video signal is interlaced, the first field of the pair can be a recording field, and the second field can be an even field, and encoding according to the MPEG2 standard is reliably performed. .
【0012】さらに、本発明は、上記の構成において、
上記入力動画像信号のフィールドの種類を判別し、該種
類に応じたレベルのフィールド判別パルスを発生するフ
ィールド判別手段と、上記反転フィールドパルスと該フ
ィールド判別パルスとの間の極性が連続的に不一致であ
ることを検出する連続反転検出手段と、該連続反転検出
手段によって上記反転フィールドパルスと該フィールド
判別パルスとの間の極性が連続的に不一致であることが
検出されると、上記符号化手段の符号化処理動作を一時
停止させ、該連続反転検出手段によって上記反転フィー
ルドパルスと該フィールド判別パルスとの間の極性が連
続的に不一致であることが検出されなくなると、符号化
開始指令を発生し、しかる後、上記符号化手段の符号化
処理動作の該一時停止を解除する符号化開始・停止制御
手段とを設け、上記の反転フィールドパルス生成手段
は、該符号化開始指令の発生時点の該フィールド判別パ
ルスのレベルに応じた初期レベルに上記反転フィールド
パルスのレベルを設定する構成とする。Further, the present invention provides the above-mentioned configuration,
A field discriminating means for discriminating a type of a field of the input moving image signal and generating a field discrimination pulse having a level corresponding to the type; and a polarity between the inverted field pulse and the field discrimination pulse continuously mismatching. The inversion detecting means for detecting that the polarity between the inverted field pulse and the field discriminating pulse are continuously inconsistent with each other. Is temporarily stopped, and when the continuous inversion detecting means does not detect that the polarity between the inverted field pulse and the field discrimination pulse is continuously inconsistent, an encoding start command is issued. Thereafter, an encoding start / stop control unit for canceling the suspension of the encoding processing operation of the encoding unit is provided. Inverted field pulse generating means configured to set the level of the inverted field pulse to an initial level corresponding to the level of the field discrimination pulse generation timing of the coding start command.
【0013】かかる構成によると、動画像ソースが切り
替わって新たな入力動画像信号となると、反転フィール
ドパルスと該フィールド判別パルスとの間の極性が反転
する場合があるが、この極性反転が連続することによ
り、動画像ソースが切り換えられたと判定して符号化手
段の動作を一時停止させ、上記のように符号化開始指令
によって反転フィールドパルスと該フィールド判別パル
スとの間の極性が一致すると、符号化手段の動作が再開
することになるから、動画像ソースが切り替わって新た
な入力動画像信号となっても、また、この新たな入力動
画像信号がインターレース,ノンインターレースのいず
れであっても、確実にMPEG2規格による符号化が行
なわれることになる。With this configuration, when the moving image source is switched to a new input moving image signal, the polarity between the inversion field pulse and the field discrimination pulse may be inverted, but this polarity inversion is continuous. Accordingly, it is determined that the video source has been switched, and the operation of the encoding unit is temporarily stopped. When the polarity between the inverted field pulse and the field discrimination pulse is matched by the encoding start command as described above, the code is output. Since the operation of the demultiplexing means is resumed, even if the moving image source is switched to a new input moving image signal, or if the new input moving image signal is interlaced or non-interlaced, Encoding according to the MPEG2 standard is surely performed.
【0014】[0014]
【発明の実施の形態】以下、本発明の実施形態を図面に
より説明する。図1は本発明による動画像符号化装置の
第1の実施形態を示すブロック図であって、1は垂直同
期信号検出回路、2は水平同期信号検出回路、3は反転
フィールドパルス生成回路、4はフレーム同期パルス生
成回路、5は符号化処理回路である。また、図2はこの
第1の実施形態の動作を示すタイミング図であり、図1
に対応する信号には同一符号を付けている。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of a moving picture coding apparatus according to the present invention, wherein 1 is a vertical synchronizing signal detecting circuit, 2 is a horizontal synchronizing signal detecting circuit, 3 is an inverted field pulse generating circuit, Is a frame synchronization pulse generation circuit, and 5 is an encoding processing circuit. FIG. 2 is a timing chart showing the operation of the first embodiment.
Are assigned the same reference numerals.
【0015】図1及び図2において、入力動画像信号p
は符号化処理回路5に供給される。ここでは、この入力
動画像信号pはノンインターレース動画像のものとす
る。また、垂直同期信号検出回路1は、この入力動画像
信号pからその各フィールドの先頭を示す垂直同期信号
を検出して垂直同期パルスvを生成し、水平同期信号検
出回路2は、この入力動画像信号pからその水平同期信
号を検出して水平同期パルスhを生成する。これら垂直
同期パルスvと水平同期パルスhとは、符号化処理回路
5に供給される。In FIGS. 1 and 2, an input moving image signal p
Is supplied to the encoding processing circuit 5. Here, it is assumed that the input moving image signal p is a non-interlaced moving image. The vertical synchronizing signal detecting circuit 1 detects a vertical synchronizing signal indicating the head of each field from the input moving image signal p to generate a vertical synchronizing pulse v. The horizontal synchronizing signal detecting circuit 2 The horizontal synchronizing signal is detected from the image signal p to generate a horizontal synchronizing pulse h. The vertical synchronizing pulse v and the horizontal synchronizing pulse h are supplied to the encoding processing circuit 5.
【0016】一方、垂直同期信号検出回路1から出力さ
れる垂直同期パルスvは、反転フィールドパルス生成回
路3とフレーム同期パルス生成回路4とに供給される。On the other hand, a vertical synchronization pulse v output from the vertical synchronization signal detection circuit 1 is supplied to an inverted field pulse generation circuit 3 and a frame synchronization pulse generation circuit 4.
【0017】反転フィールドパルス生成回路3は、垂直
同期パルスvが供給される毎にレベルが0,1と反転す
る反転フィールドパルスfを生成し、符号化処理回路5
に供給する。この反転フィールドパルスfは、入力動画
像信号pの1つおきのフィールドでレベルが0となり、
他の1つおきのフィールドでレベルが1となる。なお、
かかる反転フィールドパルス生成回路3としては、例え
ば、垂直同期パルスvをクロックCKとし、Q出力をこ
のクロックCKでラッチされるデータDとするD型フリ
ップフロップ回路で構成することができる。The inversion field pulse generation circuit 3 generates an inversion field pulse f whose level is inverted to 0 or 1 every time the vertical synchronizing pulse v is supplied.
To supply. This inverted field pulse f has a level of 0 in every other field of the input moving image signal p,
The level is 1 in every other field. In addition,
The inversion field pulse generation circuit 3 can be configured by, for example, a D-type flip-flop circuit that uses the vertical synchronization pulse v as a clock CK and outputs Q as data D latched by the clock CK.
【0018】フレーム同期パルス生成回路4は、垂直同
期パルスvと反転フィールドパルスfとから2フィール
ド周期で反転フィールドパルスfに位相同期したフレー
ム同期パルスsを生成し、符号化処理回路5に供給す
る。かかるフレーム同期パルス生成回路4としては、例
えば、ANDゲートなどで構成することができ、この場
合、反転フィールド生成回路3の処理時間分垂直同期パ
ルスvの位相を調整した後、この垂直同期パルスvと反
転フィールドパルスfとをこのANDゲートに供給する
ようにする。これにより、図2に示すように、反転フィ
ールドパルスfがレベル1の先頭部でフレーム同期パル
スsが得られる。The frame synchronization pulse generation circuit 4 generates a frame synchronization pulse s which is phase-synchronized with the inverted field pulse f in a two-field cycle from the vertical synchronization pulse v and the inverted field pulse f, and supplies the frame synchronization pulse s to the encoding processing circuit 5. . The frame synchronization pulse generation circuit 4 can be constituted by, for example, an AND gate. In this case, after adjusting the phase of the vertical synchronization pulse v by the processing time of the inversion field generation circuit 3, the vertical synchronization pulse v And the inverted field pulse f are supplied to this AND gate. As a result, as shown in FIG. 2, a frame synchronization pulse s is obtained at the head of the inverted field pulse f at level 1.
【0019】符号化処理回路5は、フレーム同期パルス
sを基準にし、入力動画像信号pの2つのフィールドを
一組(以下、組み合わされる2つのフィールドをペアと
いう)として取り込んで符号化を行なうが、垂直同期パ
ルスvと水平同期パルスhを基準にして、取り込んだ入
力動画像信号pの画像データを符号化処理する。この場
合、フレーム同期パルスsで規定されるペアでの第1フ
ィールドは、このときの反転フィールドパルスfのレベ
ルが1であることにより、トップフィールドとし、ま
た、このペアでの第2フィールドは、このときの反転フ
ィールドパルスfのレベルが0であることにより、ボト
ムフィールドとして、ペア単位でMPEG2規格による
符号化処理がなされる。ここでは、入力動画像信号pが
ノンインターレース動画像のものであるから、ペアでの
第1フィールドが擬似的に奇フィールドとして、第2フ
ィールドが擬似的に偶フィールドとして夫々取り扱われ
るのである。The coding processing circuit 5 performs coding by taking in the two fields of the input moving picture signal p as a set (hereinafter, the two fields to be combined are referred to as a pair) based on the frame synchronization pulse s. The encoding processing is performed on the captured image data of the input moving image signal p with reference to the vertical synchronization pulse v and the horizontal synchronization pulse h. In this case, the first field in the pair defined by the frame synchronization pulse s is the top field because the level of the inverted field pulse f at this time is 1, and the second field in this pair is Since the level of the inverted field pulse f at this time is 0, encoding processing according to the MPEG2 standard is performed for each pair as a bottom field. Here, since the input moving image signal p is a non-interlaced moving image, the first field of the pair is treated as a pseudo odd field, and the second field is treated as a pseudo even field.
【0020】図3はこの第1の実施形態での動画像のフ
ィールド毎のラインの空間位置を示す概念図である。FIG. 3 is a conceptual diagram showing a spatial position of a line for each field of a moving image in the first embodiment.
【0021】図3(a)はノンインターレース動画像の
入力動画像信号pを示すものであって、その符号化はト
ップフィールド・ファースト(第1フィールドが画面上
の垂直位置が上側に表示される)で行なわれるものとす
る。ここでは、隣合う2つずつのフィールド0と1,2
と3,4と5,……が夫々ペアをなしてフレーム単位と
なり、1つおきのフィールド0,2,4,……が各ペア
の第1フィールド、他の1つおきのフィールド1,3,
5,……が各ペアの第2フィールドとする。かかる入力
動画像信号pでは、全てのフィールドで同じ配列順位の
ラインの垂直方向の位置が一致している。FIG. 3A shows an input moving picture signal p of a non-interlaced moving picture. The coding is performed in the top field first (the vertical position of the first field is displayed on the upper side of the screen). ). Here, two adjacent fields 0 and 1, 2
, 3, 4, 5,... Form a pair and form a frame unit, every other field 0, 2, 4,. ,
.. Are the second fields of each pair. In such an input moving image signal p, the vertical positions of the lines having the same arrangement order match in all the fields.
【0022】図3(b)は上記の入力動画像信号pを符
号化処理回路5で符号化して得られる符号化動画像信号
を示すものである。符号化処理回路5では、図3(a)
に示す入力動画像信号pの各ペアにおいて、第1フィー
ルドがトップフィールドとして、また、第2フィールド
がボトムフィールドとして夫々取り込まれてMPEG2
規格で符号化されるために、符号化動画像信号は、図3
(b)に示すように、第2フィールド(フィールド1,
3,5,……)の各ラインが、第1フィールド(フィー
ルド0,2,4,……)の順位が対応するラインに対
し、垂直方向にライン間隔の1/2だけ下方に位置ずれ
することになり、従って、各ペアにおいて、第1フィー
ルドと第2フィールドとがインターレースした関係とな
る。FIG. 3B shows an encoded moving image signal obtained by encoding the input moving image signal p by the encoding processing circuit 5. In the encoding processing circuit 5, FIG.
In each pair of the input moving image signals p shown in FIG. 1, the first field is taken as the top field, and the second field is taken as the bottom field, and MPEG2
In order to be encoded according to the standard, the encoded video signal is
As shown in (b), the second field (field 1, field 1)
,...) Are vertically displaced downward by a half of the line interval from the line corresponding to the order of the first field (fields 0, 2, 4,...). That is, in each pair, the first field and the second field have an interlaced relationship.
【0023】このようにして、この第1の実施形態で
は、簡易な回路構成でノンインターレースの動画像をイ
ンターレース動画像として符号化することができる。As described above, in the first embodiment, a non-interlaced moving image can be encoded as an interlaced moving image with a simple circuit configuration.
【0024】ところで、この第1の実施形態は、ノンイ
ンターレース動画像を、その第2フィールドのライン位
置を垂直方向にずらすことにより、インターレース動画
像としたものであるから、これによる表示画像には、垂
直ぶれが生ずる。In the first embodiment, the non-interlaced moving image is formed as an interlaced moving image by shifting the line position of the second field in the vertical direction. Vertical blurring occurs.
【0025】図4はかかる画面の垂直ぶれをなくすよう
にした本発明による動画像符号化装置の第2の実施形態
を示すブロック図であって、6はフィールド判別回路、
7は極性反転検出回路、8はフィールド補間回路であ
り、図1に対応する部分には同一符号を付けて重複する
説明を省略する。また、図5はこの第2の実施形態の動
作を示すタイミング図であって、図4に対応する信号に
は同一符号を付けている。FIG. 4 is a block diagram showing a second embodiment of the moving picture coding apparatus according to the present invention which eliminates such vertical blurring of the screen.
Reference numeral 7 denotes a polarity inversion detection circuit, and reference numeral 8 denotes a field interpolation circuit. The same reference numerals are given to portions corresponding to those in FIG. FIG. 5 is a timing chart showing the operation of the second embodiment, and the same reference numerals are given to the signals corresponding to FIG.
【0026】図4及び図5において、フィールド判別回
路6は、垂直同期信号検出回路1からの垂直同期パルス
vと水平同期信号検出回路2からの水平同期パルスhと
の位相関係から、入力動画像信号pの各フィールドの極
性(奇,偶フィールド)を判別し、奇フィールドならば
レベル1となり、偶フィールドならばレベル0となるフ
ィールド判別信号f’を出力する。ここでは、入力動画
像信号pはノンインターレース動画像のものであるか
ら、インターレース動画像での奇フィールドまたは偶フ
ィールドのいずれか一方に相当するフィールドの繰り返
しからなっている。ここでは、奇フィールドに相当する
フィールドの繰返しからなるものとし、従って、フィー
ルド判別信号f’はレベル1に固定されている。In FIGS. 4 and 5, the field discriminating circuit 6 determines the input moving image from the phase relationship between the vertical synchronizing pulse v from the vertical synchronizing signal detecting circuit 1 and the horizontal synchronizing pulse h from the horizontal synchronizing signal detecting circuit 2. The polarity (odd / even field) of each field of the signal p is determined, and a field determination signal f 'is output which has a level 1 if the field is odd and a level 0 if the field is even. Here, since the input moving image signal p is a non-interlaced moving image, the input moving image signal p is composed of a repetition of a field corresponding to one of an odd field and an even field in an interlaced moving image. Here, it is assumed that the field is a repetition of a field corresponding to an odd field, and therefore, the field discrimination signal f 'is fixed at level 1.
【0027】なお、このフィールド判別回路6として
は、例えば、水平同期パルスhの周期をThとすると、
垂直同期パルスvのパルス幅TvをTh/2<Tv<T
hとすることにより、この水平同期パルスhをラッチパ
ルスとし、この垂直同期パルスvをデータとするラッチ
回路で構成することができる。In the field discriminating circuit 6, for example, if the cycle of the horizontal synchronizing pulse h is Th,
The pulse width Tv of the vertical synchronization pulse v is set to Th / 2 <Tv <T
By setting h, it is possible to configure a latch circuit using the horizontal synchronization pulse h as a latch pulse and the vertical synchronization pulse v as data.
【0028】極性反転検出回路7は、このフィールド判
別信号f’と反転フィールドパルス生成回路3からの反
転フィールドパルスfとから、反転フィールドパルスf
のレベルがフィールド判別信号f’のレベルに対して反
転している期間を判別し(このように、2つのパルス間
でレベルが反転した関係にあるとき、これらパルスは極
性が反転しているという)、その判別結果を表わす極性
反転検出信号iを出力する。この極性反転検出信号i
は、図5に示すように、レベル1のフィールド判別信号
f’に対し、反転フィールドパルスfがレベル1のと
き、レベル0となり、反転フィールドパルスfがレベル
0のとき、レベル1となる。従って、極性反転検出回路
7は、例えば、NANDゲートあるいはExOR回路な
どで構成することができる。The polarity reversal detection circuit 7 calculates the inversion field pulse f from the field discrimination signal f ′ and the inversion field pulse f from the inversion field pulse generation circuit 3.
Is determined with respect to the level of the field determination signal f ′ (when the level is inverted between the two pulses, these pulses are said to have inverted polarity). ), And outputs a polarity inversion detection signal i representing the result of the determination. This polarity inversion detection signal i
As shown in FIG. 5, when the inverted field pulse f is at level 1, the level becomes 0 when the inverted field pulse f is at level 0, and when the inverted field pulse f is at level 0, the level becomes 1 with respect to the level 1 field discrimination signal f '. Therefore, the polarity inversion detection circuit 7 can be constituted by, for example, a NAND gate or an ExOR circuit.
【0029】このようにして、極性反転検出信号iは、
入力動画像信号pでのフレーム同期信号sによってペア
とされる2つのフィールドのうちの第2フィールドの期
間でレベル1となるが、フィールド補間回路8は、かか
る極性反転検出信号iをもとにして入力動画像信号pで
のペア毎に第2フィールドの期間を判定し、この期間を
フィールド補間する。このフィールド補間は、第1フィ
ールドからこの第1フィールドに対してインターレース
する偶フィールドの関係となるフィールドを生成し、こ
の期間に第2フィールドとして補間するものであり、フ
ィールド補間回路8から出力される動画像信号p’は、
擬似的にインターレース動画像のものとなる。ここで、
図5に示すように、各ペア毎に生成された偶フィールド
としての第2フィールドをフィールド1’,3’,
5’,……としており、フィールド補間回路8からは、
擬似的にインターレース動画像となった動画像信号p’
が出力され、ペア単位で、即ち、第1フィールドをトッ
プフィールド、補間された第2フィールドをボトムフィ
ールドとして、符号化処理回路5に取り込まれて符号化
される。Thus, the polarity inversion detection signal i is
The level becomes 1 during the period of the second field of the two fields paired by the frame synchronization signal s in the input moving image signal p. The field interpolation circuit 8 uses the polarity inversion detection signal i as a basis. Thus, the period of the second field is determined for each pair of the input moving image signal p, and this period is subjected to field interpolation. In the field interpolation, a field having a relation of an even field interlaced with the first field is generated from the first field, and the field is interpolated as the second field during this period. The moving image signal p ′ is
This is a pseudo-interlaced moving image. here,
As shown in FIG. 5, the second field as an even field generated for each pair is defined as fields 1 ′, 3 ′,
5 ′,..., And from the field interpolation circuit 8,
A moving image signal p 'which is pseudo-interlaced moving image
Is output in units of pairs, that is, the first field is taken as the top field and the interpolated second field is taken as the bottom field, and is taken into the encoding processing circuit 5 and encoded.
【0030】図6はこの第2の実施形態での動画像のフ
ィールド毎のラインの空間位置を示す概念図である。FIG. 6 is a conceptual diagram showing a spatial position of a line for each field of a moving image according to the second embodiment.
【0031】図6(a)はノンインターレース動画像の
入力動画像信号pを示すものであって、先の第1の実施
形態での図3(a)に示すものと同様である。FIG. 6A shows an input moving image signal p of a non-interlaced moving image, which is the same as that shown in FIG. 3A in the first embodiment.
【0032】図6(b)は上記の入力動画像信号pをフ
ィールド補間回路8でフィールド補間処理して得られる
擬似的なインターレース動画像の動画像信号p’を示す
ものである。図示するように、フィールド補間回路8で
は、各ペアにおいて、第1フィールドの上下に隣接する
2つのラインの画像データから第2フィールドのライン
の画像データを生成するものである。FIG. 6B shows a moving image signal p 'of a pseudo interlaced moving image obtained by performing a field interpolation process on the input moving image signal p by the field interpolation circuit 8. As shown in the figure, the field interpolation circuit 8 generates the image data of the line of the second field from the image data of two lines vertically adjacent to the first field in each pair.
【0033】図7はフィールド補間回路8の一具体例を
示すブロック図であって、8aはフィールドメモリ、8
bはラインメモリ、8cは加算器、8dは乗算器、8e
は切替スイッチである。FIG. 7 is a block diagram showing a specific example of the field interpolation circuit 8, in which 8a is a field memory,
b is a line memory, 8c is an adder, 8d is a multiplier, 8e
Is a changeover switch.
【0034】同図において、フィールドメモリ8aの書
込/読出タイミングや切替スイッチ8eの切替タイミン
グは、極性反転検出回路7(図4)からの極性反転検出
信号iによって制御される。In the figure, the write / read timing of the field memory 8a and the switching timing of the changeover switch 8e are controlled by the polarity inversion detection signal i from the polarity inversion detection circuit 7 (FIG. 4).
【0035】いま、極性反転検出信号iがレベル0とす
ると、切替スイッチ8eはB側に閉じており、入力動画
像信号pが、切替スイッチ8eを介し、動画像信号p’
として出力されるとともに、フィールドメモリ8aに書
き込まれる。このときの動画像信号p’のフィールドは
奇フィールドとして取り扱われ、図5でのフィールド
0,2,4,……である。Now, when the polarity inversion detection signal i is at level 0, the changeover switch 8e is closed to the B side, and the input moving image signal p is changed to the moving image signal p 'via the changeover switch 8e.
And is written to the field memory 8a. The field of the moving image signal p 'at this time is treated as an odd field, and is the fields 0, 2, 4,... In FIG.
【0036】このフィールドのフィールドメモリ8aで
の書込みが終わると、図5に示すように、極性反転検出
信号iはレベル1となり、切替スイッチ8eがA側に切
り替わり、これとともに、フィールドメモリ8aの読出
しが開始する。読み出された動画像信号は、加算器8c
に供給されるとともに、ラインメモリ8bで1ライン時
間遅延されて加算器8bに供給される。この加算器8c
の出力は乗算器8dに供給され、乗数1/2が乗算され
る。これにより、連続する2つのラインの画像データの
加算平均した画像データからなるラインが得られる。か
かるラインからなる動画像信号は、切替スイッチ8eを
介し、動画像信号p’の偶フィールドとして出力され
る。ここで、動画像信号p’の奇フィールドと偶フィー
ルドとがインターレースの関係となるようにするため
に、フィールドメモリ8aの読出開始タイミングを調整
する。When the writing of this field in the field memory 8a is completed, as shown in FIG. 5, the polarity inversion detection signal i becomes level 1, the changeover switch 8e is switched to the A side, and at the same time, the reading of the field memory 8a is performed. Starts. The read moving image signal is added to an adder 8c.
And is delayed by one line time in the line memory 8b and supplied to the adder 8b. This adder 8c
Is supplied to a multiplier 8d, where it is multiplied by a multiplier of 1/2. As a result, a line composed of image data obtained by averaging the image data of two consecutive lines is obtained. The moving image signal composed of such lines is output as an even field of the moving image signal p ′ via the changeover switch 8e. Here, the read start timing of the field memory 8a is adjusted so that the odd field and the even field of the moving image signal p 'have an interlaced relationship.
【0037】このようにして、図6(b)に示すように
インターレース動画像の動画像信号p’が得られる。In this way, a moving image signal p 'of an interlaced moving image is obtained as shown in FIG.
【0038】以上のように、この第2の実施形態におい
ても、簡単な回路構成により、ノンインターレース動画
像をインターレースの画像として符号化する際に、画面
の垂直ぶれのない画像とすることができる。As described above, also in the second embodiment, when a non-interlaced moving image is encoded as an interlaced image, an image without vertical blur of the screen can be obtained with a simple circuit configuration. .
【0039】図8は本発明による動画像符号化装置の第
3の実施形態を示すブロック図であって、3’は反転フ
ィールドパルス生成回路、9は符号化開始制御回路であ
り、図1及び第4図に対応する部分には同一符号を付け
て重複する説明を省略する。FIG. 8 is a block diagram showing a third embodiment of the moving picture encoding apparatus according to the present invention, wherein 3 'is an inverted field pulse generating circuit, 9 is an encoding start control circuit, and FIGS. Parts corresponding to those in FIG. 4 are denoted by the same reference numerals, and redundant description is omitted.
【0040】図9はこの第3の実施形態の動作を示すタ
イミング図であって、図8に対応する信号には同一符号
を付けている。FIG. 9 is a timing chart showing the operation of the third embodiment. The same reference numerals are given to the signals corresponding to FIG.
【0041】この第3の実施形態は、ノンインタレース
動画像とインタレース動画像との動画像信号を符号化で
きるようにしたものであるが、まず、入力動画像信号p
がインタレース動画像のものである場合の動作を図9
(a)を用いて説明する。In the third embodiment, a moving picture signal of a non-interlaced moving picture and an interlaced moving picture can be encoded.
FIG. 9 shows the operation in the case where
This will be described with reference to FIG.
【0042】図8及び図9(a)において、フィールド
判別回路6は、図4におけるフィールド判別回路6と同
様、入力動画像信号pのフィールドの極性(即ち、奇,
偶フィールド)を判別するものであって、ここでは、入
力動画像信号pがインタレース動画像であるから、奇フ
ィールド0,2,4,……のときにレベル1、偶フィー
ルド1,3,5,……のときにレベル0となるフィール
ド判別信号f’を発生する。8 and 9 (a), the field discriminating circuit 6 has the polarity of the field of the input moving image signal p (that is, odd,
In this case, since the input moving image signal p is an interlaced moving image, the level 1 is set when the odd fields 0, 2, 4,... At the time of 5,..., A field discrimination signal f ′ which becomes level 0 is generated.
【0043】また、符号化開始制御回路9は、外部から
符号化開始指令があると、フィールド初期化指令lを、
次いで、符号化指令eを発生し、反転フィールドパルス
生成回路3’を初期化するとともに、符号化処理回路5
の符号化処理動作を開始させる。Further, when there is an encoding start command from outside, the encoding start control circuit 9 changes the field initialization command l to
Next, an encoding command e is generated to initialize the inverted field pulse generation circuit 3 ', and the encoding processing circuit 5
Is started.
【0044】反転フィールドパルス生成回路3は、先の
実施形態と同様、垂直同期信号検出回路1からの垂直同
期パルスvが供給される毎にレベルを1,0と反転する
反転フィールドパルスfを発生するが、符号化開始制御
回路9からフィールド初期化指令lが供給されると、そ
のときのフィールド判別信号f’のレベルを判定し、そ
の直後に供給される垂直同期パルスvで始まる反転フィ
ールドパルスfのレベルをフィールド判別信号f’のレ
ベルに一致させる。これにより、フィールド初期化指令
lが供給される前に反転フィールドパルスfのレベル
が、フィールド判別信号f’とは極性が反転した関係に
あって、入力動画像信号pの奇フィールドのときに0、
偶フィールドのときに1であっても、フィールド初期化
指令lが供給されると、反転フィールドパルスfのレベ
ルが、入力動画像信号pの奇フィールドのときに1、偶
フィールドのときに0となってフィールド判別信号f’
と極性が一致するようになる。即ち、反転フィールドパ
ルスfのレベルは、入力動画像信号pでのペアとなる第
1フィールドとしての奇フィールドで1、第2フィール
ドとしての偶フィールドで0となる。The inversion field pulse generation circuit 3 generates an inversion field pulse f for inverting the level to 1, 0 every time the vertical synchronization pulse v is supplied from the vertical synchronization signal detection circuit 1, as in the previous embodiment. However, when the field initialization command 1 is supplied from the encoding start control circuit 9, the level of the field discrimination signal f 'at that time is determined, and the inverted field pulse starting with the vertical synchronization pulse v supplied immediately thereafter is determined. The level of f is made to match the level of the field determination signal f '. As a result, before the field initialization command 1 is supplied, the level of the inverted field pulse f is in a relationship in which the polarity is inverted with respect to the field discrimination signal f ′, and is 0 when the input moving image signal p is an odd field. ,
Even if it is 1 in the even field, when the field initialization command 1 is supplied, the level of the inverted field pulse f becomes 1 in the odd field of the input moving image signal p and 0 in the even field. And the field determination signal f '
And the polarities match. That is, the level of the inversion field pulse f is 1 in the odd field as the first field and 0 in the even field as the second field in the input moving image signal p.
【0045】図10は図8における反転フィールドパル
ス生成回路3’の一具体例を示すブロック図であって、
3a,3bはD型フリップフロップ回路(D−FF)、
3cは切替スイッチ、3dはセット・リセット型フリッ
プフロップ回路(SR−FF)である。FIG. 10 is a block diagram showing a specific example of the inversion field pulse generation circuit 3 'in FIG.
3a and 3b are D-type flip-flop circuits (D-FF),
Reference numeral 3c denotes a changeover switch, and 3d denotes a set / reset type flip-flop circuit (SR-FF).
【0046】同図において、D−FF3aは、垂直同期
パルスvをクロックCKとして、その前縁でデータDを
ラッチし、そのQ出力を反転フイールドパルスfとす
る。また、D−FF3bは、フィールド初期化指令lを
クロックCKとし、フィールド判別信号f’をデータD
としてそのレベルをラッチする。これらD−FF3bの
Q出力とD−FF3aのQ出力とは、切替スイッチ3c
によっていずれか一方が選択され、D−FF3aのデー
タDとなる。SR−FF3dは、フィールド初期化指令
lによってセットされ、垂直同期パルスvの後縁でリセ
ットされる。このSR−FF3dのQ出力は切替スイッ
チ3cの切替制御信号となり、この切替制御信号のレベ
ルが1のとき、切替スイッチ3cはD−FF3bのQ出
力を選択し、レベルが0のときには、切替スイッチ3c
はD−FF3aのQ出力を選択して夫々D−FF3aの
データDとする。即ち、切替スイッチ3cは、フィール
ド初期化指令lからその直後の垂直同期パルスvの後縁
までの期間、D−FF3bのQ出力を選択し、それ以外
の期間、D−FF3aのQ出力を選択する。In the figure, a D-FF 3a latches data D at its leading edge using a vertical synchronization pulse v as a clock CK, and makes its Q output an inverted field pulse f. Further, the D-FF 3b uses the field initialization command l as the clock CK and sets the field discrimination signal f 'to the data D
To latch that level. The Q output of the D-FF 3b and the Q output of the D-FF 3a are connected to a switch 3c
Is selected, and becomes data D of the D-FF 3a. The SR-FF 3d is set by the field initialization command 1 and is reset at the trailing edge of the vertical synchronization pulse v. The Q output of the SR-FF 3d serves as a switching control signal for the changeover switch 3c. When the level of the changeover control signal is 1, the changeover switch 3c selects the Q output of the D-FF 3b. 3c
Selects the Q output of the D-FF 3a and sets it as data D of the D-FF 3a. That is, the changeover switch 3c selects the Q output of the D-FF 3b during the period from the field initialization command 1 to the trailing edge of the immediately following vertical synchronization pulse v, and selects the Q output of the D-FF 3a during other periods. I do.
【0047】従って、図9(a)に示すように、フィー
ルド初期化指令lは、フィールド判別信号f’がレベル
1のときには(このとき、反転フィールドパルスfはレ
ベル0である)、この直後の垂直同期パルスvによって
反転フイールドパルスfのレベルは0となり、反転フイ
ールドパルスfでレベル0が2フィールド期間続くこと
になる。これにより、反転フィールドパルスfはレベル
反転され、フィールド判別パルスf’と極性が一致す
る。Therefore, as shown in FIG. 9A, when the field discrimination signal f 'is at level 1 (at this time, the inverted field pulse f is at level 0), the field initialization command l The level of the inverted field pulse f becomes 0 by the vertical synchronization pulse v, and the level 0 continues for two field periods with the inverted field pulse f. As a result, the level of the inverted field pulse f is inverted, and the polarity of the inverted field pulse f matches that of the field discrimination pulse f '.
【0048】なお、図9(a)では、フィールド初期化
指令lが、フィールド判別信号f’がレベル1のとき発
生したものとしたが、破線で示すように、フィールド判
別信号f’がレベル0のときに発生した場合には(この
とき、反転フィールドパルスfはレベル1である)、こ
のフィールド初期化指令lによってD−FF8bのQ出
力はレベル0となるから、この直後の垂直同期パルスv
により、図9(a)に破線で示すように、反転フイール
ドパルスfのレベルはさらに1に保持され、反転フイー
ルドパルスfのレベル1が2フィールド期間続くことに
なる。これにより、それ以降、反転フィールドパルスf
は極性が反転されたことになり、フィールド判別パルス
f’と極性が一致するようになる。In FIG. 9A, the field initialization command 1 is generated when the field discrimination signal f 'is at level 1, but as shown by the broken line, the field discrimination signal f' is at level 0. (At this time, the inverted field pulse f is at level 1), the Q output of the D-FF 8b becomes level 0 by this field initialization command l.
As a result, as shown by the broken line in FIG. 9A, the level of the inverted field pulse f is further held at 1, and the level 1 of the inverted field pulse f continues for two field periods. Thus, thereafter, the inverted field pulse f
Means that the polarity has been inverted, and the polarity of the field discrimination pulse f 'matches.
【0049】以上の動作から明らかなように、この具体
例は、フィールド初期化指令lが発生すると、このとき
のフィールド判別信号f’のレベルをD−FF3bで検
出して次の垂直同期パルスvのタイミングまで保持し、
D−FF3aでこのレベルの反転レベルをラッチするも
のである。このため、D−FF3aのQ端子からは、フ
ィールド判別信号f’と極性が一致した反転フィールド
パルスfが得られることになる。As is apparent from the above operation, in this specific example, when the field initialization command 1 is generated, the level of the field discrimination signal f 'at this time is detected by the D-FF 3b, and the next vertical synchronization pulse v Hold until the timing of
The inverted level of this level is latched by the D-FF 3a. Therefore, an inverted field pulse f having the same polarity as the field discrimination signal f 'is obtained from the Q terminal of the D-FF 3a.
【0050】図8及び図9(a)に戻って、フレーム同
期パルス生成回路4は、図1におけるフレーム同期パル
ス生成回路4と同様のものであって、上記の垂直同期パ
ルスvと反転フィールドパルスfとからフレーム同期信
号sを生成する。このフレーム同期信号sに基づいて入
力動画像信号pでのペアとなる2つのフィールドが決ま
るが、このフレーム同期信号sと反転フィールド信号f
との関係が、先の実施形態と同様に、ペアをなす第1フ
ィールドが奇フィールド(図9(a)でのフィールド
0,2,4,……)、第2フイールドが偶フィールド
(図9(a)でのフィールド1,3,5,……)とな
る。Returning to FIG. 8 and FIG. 9A, the frame synchronization pulse generation circuit 4 is the same as the frame synchronization pulse generation circuit 4 in FIG. f to generate a frame synchronization signal s. Two fields forming a pair in the input moving image signal p are determined based on the frame synchronization signal s. The frame synchronization signal s and the inverted field signal f
As in the previous embodiment, the first field of the pair is an odd field (fields 0, 2, 4,... In FIG. 9A), and the second field is an even field (FIG. 9A). (Fields 1, 3, 5,...) In (a).
【0051】符号化開始制御回路9は、上記のフィール
ド初期化指令lを発生した後、反転フィールドパルスf
の極性がフィールド判別パルスf’の極性と一致するよ
うになるほぼ1フィールド期間遅れてレベル1の符号化
指令eを発生する。符号化処理回路5は、この符号化指
令eがレベル1になると、その直後のフレーム同期信号
sから入力動画像信号pをペア単位で取り込んで符号化
処理を開始する。従って、符号化処理回路5は、入力動
画像信号pを、反転フィールドパルスfを基に、第1フ
ィールドである奇フィールドをトップフィールドとし、
第2フィールドである偶フィールドをボトムフィールド
とするペア毎に、MPEG2規格に基づいて符号化処理
することになる。After generating the above-described field initialization command 1, the encoding start control circuit 9 sets the inverted field pulse f
, The level 1 encoding command e is generated with a delay of about one field period when the polarity of. When the encoding command e becomes level 1, the encoding processing circuit 5 fetches the input moving image signal p from the immediately following frame synchronization signal s in pairs and starts the encoding process. Therefore, the encoding processing circuit 5 sets the input moving image signal p to the odd field which is the first field as the top field based on the inverted field pulse f,
Encoding processing is performed based on the MPEG2 standard for each pair in which the even field that is the second field is the bottom field.
【0052】次に、図9(b)を用いて、入力動画像信
号pがノンインタレース動画像である場合のこの第3の
実施形態の動作を説明する。Next, the operation of the third embodiment when the input moving image signal p is a non-interlaced moving image will be described with reference to FIG.
【0053】図8及び図9(b)において、入力動画像
信号pは同じ種類のフィールド(奇または偶フィール
ド)のみからなるものであって、ここでは、かかるフィ
ールドがインタレース動画像での奇フィールドに相当す
るものとする。この場合には、フィールド判別回路6
は、図4でのフィールド判別回路6と同様、レベル1の
フィールド判別信号f’を出力する。そこで、反転フィ
ールド生成回路3’は、上記のように、符号化開始制御
回路9からフィールド初期化指令lが供給されると、フ
ィールド判別信号f’がレベル1であることから、反転
フィールドパルスfを、その直後の垂直同期パルスvで
レベル0とするように、レベル反転する。In FIG. 8 and FIG. 9 (b), the input moving picture signal p is composed of only the same type of field (odd or even field). Shall be equivalent to a field. In this case, the field discriminating circuit 6
Outputs a level 1 field discrimination signal f ', like the field discrimination circuit 6 in FIG. Therefore, when the field initialization command 1 is supplied from the encoding start control circuit 9 as described above, the inversion field generation circuit 3 'determines that the inversion field pulse f Is inverted so that the level becomes 0 with the vertical synchronization pulse v immediately after that.
【0054】図10に示す反転フィールド生成回路3の
具体例では、図9(b)において、反転フィールドパル
スfがレベル0のときに、実線で示すように、フィール
ド初期化指令lが発生されたとすると、このフィールド
初期化指令lの発生時点のフィールド判別信号f’のレ
ベル1がD−FF3bで保持され、この直後の垂直同期
パルスvによってこのレベル1がD−FF3aでラッチ
される。従って、この垂直同期パルスvから1フィール
ド期間では、反転フィールドパルスfがレベル0とな
る。これ以後、反転フィールドパルスfは、垂直同期パ
ルスvが供給される毎に1,0と常時レベルが反転して
いく。このようにして、フィールド初期化指令lの発生
により、同じレベル0が2フィールド期間連続して、フ
ィールド初期化指令lが供給される前に対して極性反転
された反転フィールドパルスfが得られる。In the specific example of the inversion field generating circuit 3 shown in FIG. 10, when the inversion field pulse f is at level 0 in FIG. 9B, it is assumed that the field initialization command l is generated as shown by the solid line. Then, the level 1 of the field discrimination signal f 'at the time when the field initialization command 1 is generated is held in the D-FF 3b, and the level 1 is latched in the D-FF 3a by the immediately following vertical synchronization pulse v. Therefore, during one field period from the vertical synchronization pulse v, the inverted field pulse f becomes level 0. Thereafter, the level of the inverted field pulse f is constantly inverted to 1, 0 every time the vertical synchronization pulse v is supplied. In this way, the generation of the field initialization command l results in an inverted field pulse f having the same level 0 for two consecutive field periods and a polarity inversion as compared to before the field initialization command l was supplied.
【0055】なお、反転フィールドパルスfがレベル1
のときに、破線で示すように、フィールド初期化指令l
が発生された場合には、フィールド判別信号f’がレベ
ル1であることから、その直後の垂直同期パルスvによ
り、反転フィールドパルスfがレベル0となるので、反
転フィールドパルスfは極性反転されない。この場合に
は、破線で示すフィールド初期化指令l以降の反転フイ
ールドパルスfは、図9(b)に図示のものに対してレ
ベル反転したものとなり、この結果、フレーム同期パル
スsも、図9(b)に図示のものに対して1フィールド
期間位相が進んだものとなるが、ノンインタレース動画
像であることから、ペアとなるフィールドの組み合わせ
が図9(b)に図示のものと異なるだけで、各別問題と
はならない。When the inverted field pulse f is at level 1
At the time, as shown by the broken line, the field initialization command l
Is generated, since the field discrimination signal f 'is at level 1 and the inverted field pulse f becomes level 0 by the immediately following vertical synchronization pulse v, the polarity of the inverted field pulse f is not inverted. In this case, the inverted field pulse f after the field initialization command 1 indicated by the broken line is the level inverted from that shown in FIG. 9B, and as a result, the frame synchronization pulse s is also changed as shown in FIG. Although the phase is advanced by one field period from that shown in FIG. 9B, the combination of the fields to be paired is different from that shown in FIG. It just doesn't matter.
【0056】図8及び図9(b)に戻って、フレーム同
期パルス生成回路4は、上記のように、垂直同期パルス
vと反転フィールドパルスfとからフレーム同期パルス
sを生成するが、これら反転フィールドパルスfとフレ
ーム同期パルスsとの位相関係は先の実施形態と同様で
ある。従って、先の実施形態と同様に、符号化開始制御
回路9からレベル1の符号化指令eが供給されると、符
号化処理回路5は、その直後のフレーム同期信号sか
ら、図1に示した実施形態と同様に、入力動画像信号p
をペア単位で、反転フィールドパルスfがレベル1のと
きのフィールド0,2,4,……を第1フイールド(ト
ップフィールド)とし、反転フィールドパルスfがレベ
ル0のときのフィールド1,3,5,……を第2フイー
ルド(ボトムフィールド)とするペア単位で取り込んで
符号化処理を開始する。Referring back to FIGS. 8 and 9B, the frame synchronization pulse generation circuit 4 generates the frame synchronization pulse s from the vertical synchronization pulse v and the inverted field pulse f as described above. The phase relationship between the field pulse f and the frame synchronization pulse s is the same as in the previous embodiment. Therefore, as in the previous embodiment, when a coding instruction e of level 1 is supplied from the coding start control circuit 9, the coding processing circuit 5 starts the processing shown in FIG. As in the embodiment described above, the input moving image signal p
, In pairs, fields 0, 2, 4,... When the inverted field pulse f is at level 1 are the first fields (top fields), and fields 1, 3, 5 when the inverted field pulse f is at level 0. ,... Are fetched in pairs as the second field (bottom field), and the encoding process is started.
【0057】このようにして、この第3の実施形態で
も、簡易な回路構成でもって、ノンインタレース動画像
とインタレース動画像とを符号化することができる。As described above, also in the third embodiment, a non-interlaced moving image and an interlaced moving image can be encoded with a simple circuit configuration.
【0058】なお、この第3の実施形態では、入力動画
像信号pがノンインターレース動画像のものであるとき
には、図4で示した第2の実施形態のように、フィール
ド補間回路8を用いてインタレースの動画像信号として
符号化処理回路5に供給するようにしてもよい。この場
合には、例えば、フィールド判別回路6から出力される
フィールド判別信号fが一定のレベルのものか否かを判
定し、一定のレベルであるときのみ、入力動画像信号p
をフィールド補間回路8に供給する構成とすればよい。In the third embodiment, when the input moving image signal p is a non-interlaced moving image, the field interpolation circuit 8 is used as in the second embodiment shown in FIG. It may be supplied to the encoding processing circuit 5 as an interlaced moving image signal. In this case, for example, it is determined whether or not the field discrimination signal f output from the field discrimination circuit 6 is at a certain level.
May be supplied to the field interpolation circuit 8.
【0059】図11は本発明による動画像符号化装置の
第4の実施形態を示すブロック図であって、10は垂直
同期マスク回路、11は連続反転検出回路、12は符号
化開始・停止制御回路12であり、図8に対応する部分
には同一符号を付けて重複する説明を省略する。図12
はこの第4の実施形態の動作を示すタイミング図であっ
て、図11に対応する信号には同一符号を付けている。FIG. 11 is a block diagram showing a fourth embodiment of the moving picture coding apparatus according to the present invention, in which 10 is a vertical synchronization mask circuit, 11 is a continuous inversion detecting circuit, and 12 is coding start / stop control. The circuit 12 is the same as that shown in FIG. FIG.
FIG. 14 is a timing chart showing the operation of the fourth embodiment, wherein the signals corresponding to those in FIG. 11 are denoted by the same reference numerals.
【0060】図11において、この第4の実施形態は、
入力動画像ソースが切り換えられても、符号化を可能と
したものであって、図8に示した第3の実施形態におい
て、垂直同期マスク回路10及び連続反転検出回路11
を追加するとともに、符号化開始制御回路9に代えて符
号化開始・停止制御回路12を用いるものである。In FIG. 11, this fourth embodiment is
Even when the input video source is switched, encoding is enabled. In the third embodiment shown in FIG. 8, the vertical synchronization mask circuit 10 and the continuous inversion detection circuit 11
And an encoding start / stop control circuit 12 is used in place of the encoding start control circuit 9.
【0061】ここで、垂直同期マスク回路10は、通
常、垂直同期信号検出回路1からの垂直同期パルスvを
通過させるが、入力動画像信号pが他の動画像信号pと
切り換わると、図示しない制御回路により、この切換時
点t0(図12)から1フィールド期間垂直同期パルス
vの通過を禁止し、垂直同期パルスvの周期が1フィー
ルド以上開くようにマスクをかける。また、連続反転検
出回路11は、反転フィールドパルスfとフィールド判
別信号f’とのレベルを検出し、これらのレベルの極性
が2フィールド以上連続して反転していることを検出す
ると、レベル1の連続反転検出信号cを出力する。それ
以外の期間、この連続反転検出信号cはレベル1に保た
れる。なお、入力動画像ソースが切り換わると、上記図
示しない制御回路がフィールド判別回路6を制御し、フ
ィールド判別信号fを強制的にレベル0にリセットす
る。Here, the vertical synchronizing mask circuit 10 normally passes the vertical synchronizing pulse v from the vertical synchronizing signal detecting circuit 1, but when the input moving image signal p is switched to another moving image signal p, it is shown in the figure. The control circuit which does not inhibit the passage of the vertical synchronizing pulse v for one field period from the switching time point t 0 (FIG. 12), and mask so that the period of the vertical synchronizing pulse v is opened by one or more fields. Further, the continuous inversion detecting circuit 11 detects the levels of the inverted field pulse f and the field discrimination signal f ', and when it detects that the polarities of these levels are continuously inverted for two or more fields, the level 1 of the level 1 is detected. It outputs a continuous inversion detection signal c. During the other periods, the continuous inversion detection signal c is maintained at level 1. When the input video source is switched, the control circuit (not shown) controls the field discrimination circuit 6 and forcibly resets the field discrimination signal f to level 0.
【0062】次に、図12(a)を用いて、入力動画像
信号pがインタレース動画像であるときのこの第4の実
施形態の動作を説明する。Next, the operation of the fourth embodiment when the input moving image signal p is an interlaced moving image will be described with reference to FIG.
【0063】いま、ある動画像ソースからのインタレー
ス動画像の動画像信号pが符号化処理回路5で符号化処
理されているものとする。このとき、垂直同期マスク回
路10は垂直同期信号検出回路1からの垂直同期パルス
vを通過させ、垂直同期信号検出回路1,水平同期信号
検出回路2,反転フィールドパルス生成回路3’,フレ
ーム同期パルス生成回路4及びフィールド判別回路6が
図8に示した第3の実施形態と同様に動作している。ま
た、反転フィールドパルス生成回路3’からの判定フィ
ールドパルスfとフィールド判別回路6からのフィール
ド判別信号f’とは同極性であり、このため、連続反転
検出回路11から出力される連続反転検出信号cはレベ
ル0に保たれている。さらに、符号化開始・停止制御回
路12は、レベル1の符号化指令eを発生して符号化処
理回路5に供給し、符号化処理回路5を動作状態に設定
している。なお、このとき、符号化開始・停止制御回路
12が発生する符号化停止指令pはレベル0に保たれて
いる。Now, it is assumed that a moving image signal p of an interlaced moving image from a certain moving image source has been encoded by the encoding processing circuit 5. At this time, the vertical synchronization mask circuit 10 allows the vertical synchronization pulse v from the vertical synchronization signal detection circuit 1 to pass, and outputs the vertical synchronization signal detection circuit 1, the horizontal synchronization signal detection circuit 2, the inverted field pulse generation circuit 3 ', the frame synchronization pulse The generation circuit 4 and the field discrimination circuit 6 operate in the same manner as in the third embodiment shown in FIG. Further, the determination field pulse f from the inversion field pulse generation circuit 3 'and the field determination signal f' from the field determination circuit 6 have the same polarity, and therefore, the continuous inversion detection signal output from the continuous inversion detection circuit 11 c is kept at level 0. Further, the encoding start / stop control circuit 12 generates an encoding instruction e of level 1 and supplies it to the encoding processing circuit 5 to set the encoding processing circuit 5 to an operation state. At this time, the coding stop command p generated by the coding start / stop control circuit 12 is kept at level 0.
【0064】かかる状態で動画像信号pのペアをなす奇
フィールド0と偶フィールド1とが入力され、次のペア
の奇フィールド2が入力されている時点t0で別の動画
像ソースの入力動画像信号pに切り換わったとすると
(このとき、奇フィールド期間であるから、反転フィー
ルドパルスfはレベル1である)、この時点t0から新
たな入力動画像信号pの垂直同期パルスvと水平同期パ
ルスhとが夫々垂直同期信号検出回路1,水平同期信号
検出回路2から出力されるが、垂直同期パルスマスク回
路10が時点t0から1フィールド期間垂直同期パルス
vをマスクする。このため、反転フィールドパルスf
は、1フィールド期間よりも長くレベル1に保持され
る。また、フィールド判別回路6では、フィールド判別
信号f’が強制的にレベル0にリセットされる。In this state, at the time t 0 when the odd field 0 and the even field 1 forming a pair of the moving image signal p are input and the odd field 2 of the next pair is input, the input moving image of another moving image source is input. when switched to the image signal p (at this time, since an odd field period, the inverted field pulse f is level 1), a vertical synchronizing pulse v and horizontal synchronization of a new input video signal p from the point t 0 pulse h Togaotto s vertical synchronizing signal detecting circuit 1, output from the horizontal synchronizing signal detection circuit 2, a vertical synchronizing pulse mask circuit 10 masks the one field period vertical synchronizing pulses v from time t 0. Therefore, the inverted field pulse f
Are held at level 1 for longer than one field period. In the field discrimination circuit 6, the field discrimination signal f 'is forcibly reset to level 0.
【0065】しかる後、垂直同期パルスマスク回路10
によるマスクが解除し、その直後、新たな入力動画像信
号pの、例えば、奇フィールド(これをフィールド3と
する)が入力されると、その先頭の垂直同期パルスvに
より、反転フィールドパルス生成回路3から出力される
反転フィールドパルスfがレベル1からレベル0にな
り、また、フィールド判別信号f’は、奇フィールドで
あることから、レベル0からレベル1となる。これ以
降、偶,奇,偶,……の順で動画像信号pのフィールド
が入力されるから、垂直同期パルスv毎に、フィールド
判別信号f’は0,1,0,……とレベルが反転し、ま
た、反転フィールドパルスfは1,0,1,……とレベ
ルが反転する。従って、これらフィールド判別信号f’
と反転フィールドパルスfとは、極性が反転した関係に
ある。Thereafter, the vertical synchronization pulse mask circuit 10
Is released, and immediately after that, when a new input moving image signal p, for example, an odd field (this is referred to as a field 3) is input, the inverted vertical field pulse generation circuit v generates the inverted field pulse generation circuit. 3 changes from level 1 to level 0, and the field discrimination signal f 'changes from level 0 to level 1 because it is an odd field. Thereafter, the fields of the moving image signal p are input in the order of even, odd, even,..., So that the level of the field discrimination signal f ′ is 0, 1, 0,. The level of the inverted field pulse f is inverted to 1, 0, 1,.... Therefore, these field discrimination signals f '
And the inversion field pulse f have a relationship in which the polarity is inverted.
【0066】連続反転検出回路11は、常時、フィール
ド判別信号f’と反転フィールドパルスfの極性の関係
を監視しており、これらの極性が互いに反転した関係に
ある期間が2フィールド継続すると、連続反転検出信号
cをレベル0からレベル1に反転させる(時点t1)。The continuous inversion detecting circuit 11 constantly monitors the relationship between the polarity of the field discrimination signal f 'and the polarity of the inverted field pulse f. The inversion detection signal c is inverted from level 0 to level 1 (time t 1 ).
【0067】なお、この「2フィールド」とは、必ずし
も2フィールド期間の時間長ではなく、フィールド判別
信号f’と反転フィールドパルスfとが2回レベルを反
転したとき、これら2回のレベル反転とも、フィールド
判別信号f’と反転フィールドパルスfとの極性が互い
に反転した関係にあることを意味するものであり、この
ような2フィールドを経過すると、フィールド判別信号
f’と反転フィールドパルスfと3回目のレベル反転で
(この時点がt1であり、時点t0から時点t1までの期
間が上記の2フィールドTである)連続反転検出信号c
がレベル0からレベル1となる。Note that this "two fields" is not necessarily the time length of the two-field period, but when the level of the field discrimination signal f 'and the inverted field pulse f is inverted twice, these two levels are inverted. Means that the polarities of the field discrimination signal f 'and the inversion field pulse f are in a mutually inverted relationship. When such two fields elapse, the field discrimination signal f' and the inversion field pulses f and 3 In the second level inversion (this time is t 1 , and the period from time t 0 to time t 1 is the above-described two fields T).
Changes from level 0 to level 1.
【0068】連続反転検出信号cがレベル1となると、
符号化開始・停止制御回路12は、符号化停止指令qを
レベル0からレベル1とし、符号化処理回路5の符号化
処理動作を一時停止させる。しかる後、符号化開始・停
止制御回路12は、フィールド初期化指令lを発生して
反転フィールドパルス生成回路3’に供給する(時点t
2)。これにより、反転フィールドパルス生成回路3’
は、先に図8〜図10で説明したようにして、反転フィ
ールドパルスfをフィールド判別パルスf’と同極性に
する(時点t3)。連続反転検出回路11は、これを検
出すると、連続反転検出信号cをレベル1からレベル0
に反転し、これに伴って符号化開始・停止制御回路12
は符号化停止指令qをレベル1からレベル0に反転す
る。そこで、符号化処理回路5は符号か動作を再開し、
その後の最初のフレーム同期パルスs(時点t4)から入
力動画像信号pを奇,偶フィールドのペア単位で取り込
み、奇フィールドをトップフィールド、偶フィールドを
ボトムフィールドとして符号化処理を行なう。When the continuous inversion detection signal c becomes level 1,
The encoding start / stop control circuit 12 changes the encoding stop command q from level 0 to level 1 and temporarily stops the encoding processing operation of the encoding processing circuit 5. Thereafter, the encoding start / stop control circuit 12 generates a field initialization command 1 and supplies it to the inverted field pulse generation circuit 3 '(at time t).
2 ). Thereby, the inverted field pulse generation circuit 3 '
Is as described in FIGS. 8 to 10 above, to inverted field pulse f and the field determination pulse f 'same polarity (time t 3). Upon detecting this, the continuous inversion detection circuit 11 changes the continuous inversion detection signal c from level 1 to level 0
And the encoding start / stop control circuit 12
Reverses the encoding stop command q from level 1 to level 0. Then, the encoding processing circuit 5 restarts the operation of the code,
The input moving image signal p is fetched in pairs of odd and even fields from the first frame synchronization pulse s (time t 4 ) thereafter, and encoding processing is performed with the odd field as the top field and the even field as the bottom field.
【0069】次に、図12(b)を用いて、入力動画像
信号pがノンインタレース動画像であるときのこの第4
の実施形態の動作を説明する。Next, referring to FIG. 12B, when the input moving image signal p is a non-interlaced moving image,
The operation of the embodiment will be described.
【0070】この場合には、入力動画像信号pがインタ
ーレース動画像の奇フィールドのみからなるものとし
て、動画像ソースの切替えとともに(時刻t0)、フィ
ールド判別信号f’がレベル0に反転されるが、垂直同
期マスク回路10によるマスクの解除後の新たな入力動
画像信号pからの最初の垂直同期パルスvにより、もと
のレベル1に戻り、それ以後、次の動画像ソースの切替
えがあるまでレベル1に保持される。一方、反転フィー
ルドパルス生成回路3’は、垂直同期マスク回路10に
よるマスクの解除後の新たな入力動画像信号pからの最
初の垂直同期パルスvが供給されるまで、反転フィール
ドパルスfを同じレベル(この場合、レベル1)に保持
するが、最初の垂直同期パルスvからはそのレベルを
0,1と交互に反転させる。In this case, assuming that the input moving picture signal p is composed of only odd fields of the interlaced moving picture, the field discrimination signal f 'is inverted to level 0 when the moving picture source is switched (time t 0 ). Returns to the original level 1 by the first vertical synchronizing pulse v from the new input moving image signal p after the masking is released by the vertical synchronizing mask circuit 10, and thereafter, the next moving image source is switched. Until level 1 is held. On the other hand, the inversion field pulse generation circuit 3 'changes the inversion field pulse f to the same level until the first vertical synchronization pulse v from the new input moving image signal p after the masking by the vertical synchronization mask circuit 10 is released is supplied. (In this case, level 1), but the level is alternately inverted to 0 and 1 from the first vertical synchronization pulse v.
【0071】このようにして、動画像ソースの切替え後
の反転フィールドパルスfは、その切替え前に対して極
性が反転したものとなるが、垂直同期パルスv毎に0,
1とレベル反転し、レベル1のフィールド判別パルス
f’との間で上記の意味での2フィールドの極性反転が
生ずることがない。従って、連続反転検出回路11から
出力される連続反転検出信号cはそのままレベル0に保
持されることになり、これにより、符号化開始・停止制
御回路12は符号化停止指令qをレベル1にすることが
ないから、符号化処理回路5は新たな入力動画像信号p
の符号化処理を直ちに正しいフィールドの組み合わせの
ペア単位で行なうことになる。このように新たな入力動
画像信号pの符号化処理を行なうようにしても、この入
力動画像信号pはノンインターレース動画像のものであ
るから、各別問題とはならない。In this way, the polarity of the inverted field pulse f after the switching of the moving image source is inverted with respect to that before the switching, but 0, 0 for each vertical synchronization pulse v.
The level is inverted to 1 and the level inversion of the two fields in the above sense does not occur between the level 1 field discrimination pulse f '. Accordingly, the continuous inversion detection signal c output from the continuous inversion detection circuit 11 is maintained at the level 0 as it is, whereby the encoding start / stop control circuit 12 sets the encoding stop command q to the level 1. Therefore, the encoding processing circuit 5 outputs a new input moving image signal p
Is immediately performed for each pair of correct field combinations. Even if the encoding process of the new input moving image signal p is performed as described above, since this input moving image signal p is a non-interlaced moving image, it does not pose a separate problem.
【0072】なお、上記の動作から明らかなように、イ
ンターレース動画像の動画像ソースからノンインターレ
ース動画像ソースに切り替わる場合も、また、その逆の
切り替わりの場合も、同様にして、新たな入力動画像信
号pの符号化処理を直ちに正しいフィールドの組み合わ
せのペア単位で行なうことになる。As is apparent from the above operation, the same applies to the case where the source of the interlaced moving image is switched to the source of the non-interlaced moving image and vice versa. The encoding process of the image signal p is immediately performed for each pair of correct field combinations.
【0073】このようにして、この第4の実施形態で
も、簡易な回路構成でもって、途中で動画像ソースの切
り替わりがあっても、符号化処理回路5は入力動画像信
号pを正しいペアで符号化処理することができる。As described above, in the fourth embodiment as well, with a simple circuit configuration, even if the video source is switched in the middle, the encoding processing circuit 5 converts the input video signal p into a correct pair. An encoding process can be performed.
【0074】図13は図11における連続反転検出回路
11の一具体例を示すブロック図であって、11aはE
xOR回路、11b,11cはD−FF、11dはイン
バータである。FIG. 13 is a block diagram showing a specific example of the continuous inversion detection circuit 11 in FIG.
An xOR circuit, 11b and 11c are D-FFs, and 11d is an inverter.
【0075】同図において、反転フィールドパルスfと
フィールド判別パルスf’とはExOR回路11aに供
給され、これらの極性関係が判別される。このExOR
回路11aの出力はデータDとしてD−FF11bに供
給され、垂直同期パルスvの後縁でラッチされる。ま
た、このD−FF11bのQ出力はデータDとしてD−
FF11cに供給され、垂直同期パルスvの後縁でラッ
チされる。このD−FF11cのQ出力が連続反転検出
信号cとなる。また、ExOR回路11aの出力はイン
バータ11dでレベル反転され、このインバータ11d
の出力の立ち上りエッジでD−FF11cが、そのQ出
力がレベル0となるように、リセットされる。In the figure, an inverted field pulse f and a field discrimination pulse f 'are supplied to an ExOR circuit 11a, and their polarity relationship is discriminated. This ExOR
The output of the circuit 11a is supplied to the D-FF 11b as data D, and is latched at the trailing edge of the vertical synchronization pulse v. The Q output of the D-FF 11b is D-FF as data D.
It is supplied to the FF 11c and is latched at the trailing edge of the vertical synchronization pulse v. The Q output of the D-FF 11c becomes the continuous inversion detection signal c. The output of the ExOR circuit 11a is inverted in level by an inverter 11d.
The D-FF 11c is reset at the rising edge of the output so that its Q output becomes level 0.
【0076】かかる構成において、反転フィールドパル
スfとフィールド判別パルスf’との極性が一致してい
るときには、ExOR回路11aの出力かレベル0であ
るから、D−FF11bのQ出力も、また、D−FF1
1cのQ出力もレベル0である。In such a configuration, when the polarity of the inverted field pulse f and the polarity of the field discrimination pulse f 'coincide with each other, the output of the ExOR circuit 11a is at level 0, and therefore the Q output of the D-FF 11b is -FF1
The Q output of 1c is also at level 0.
【0077】動画像ソースの切替えがあって、図12の
時刻t0から反転フィールドパルスfとフィールド判別
パルスf’との極性が不一致となると、その時点t0か
らExOR回路11aの出力がレベル1となり、その後
の最初の垂直同期パルスvの後縁でこのレベル1がD−
FF11bにラッチされる。そこで、D−FF11bの
Q出力はレベル1となるが、さらに次の垂直同期パルス
vの後縁でこのレベル1がD−FF11cにラッチされ
る。これにより、D−FF11cのQ出力である連続反
転検出信号cはレベル0からレベル1に反転するが、こ
のレベル反転時点は、反転フィールドパルスfとフィー
ルド判別パルスf’との極性が不一致となったときか
ら、図12(a)に示したように、上記の2フィールド
Tの後である。If the polarity of the inverted field pulse f and the polarity of the field discrimination pulse f ′ do not match from time t 0 in FIG. 12 due to the switching of the moving image source, the output of the ExOR circuit 11 a becomes level 1 from time t 0. Then, at the trailing edge of the first vertical synchronization pulse v, this level 1 becomes D-
It is latched by the FF 11b. Therefore, the Q output of the D-FF 11b becomes level 1, and this level 1 is latched by the D-FF 11c at the trailing edge of the next vertical synchronization pulse v. As a result, the continuous inversion detection signal c, which is the Q output of the D-FF 11c, is inverted from level 0 to level 1, but at the time of this level inversion, the polarity of the inverted field pulse f and the field discrimination pulse f 'do not match. 12, after the above two fields T, as shown in FIG.
【0078】その後、反転フィールドパルスfとフィー
ルド判別パルスf’との極性が一致するようになると
(図12(a)の時点t3)、ExOR回路11aの出
力がレベル1からレベル0に反転するが、これととも
に、インバータ11dの出力もレベル0からレベル1に
反転し、その立ち上りエッジでD−FF11cがリセッ
トされて連続反転検出信号cがレベル1からレベル0に
反転する。Thereafter, when the polarity of the inverted field pulse f and the polarity of the field discrimination pulse f 'become identical (time t 3 in FIG. 12A), the output of the ExOR circuit 11a is inverted from level 1 to level 0. However, at the same time, the output of the inverter 11d is also inverted from level 0 to level 1, and at the rising edge, the D-FF 11c is reset, and the continuous inversion detection signal c is inverted from level 1 to level 0.
【0079】なお、以上の各実施形態では、ノンインタ
ーレース動画像の入力動画像信号pを、インターレース
動画像の奇フィールドに相当するフィールドからなるも
のとしたが、偶フィールドに相当するものからなるもの
であってもよい。この場合には、図4,図8,図11に
実施形態でのフィールド判別回路6からはレベル0のフ
ィールド判別信号f’が出力されるが、これら実施形態
の動作は上記の説明と変わるものではない。In each of the above embodiments, the input moving image signal p of a non-interlaced moving image is composed of a field corresponding to an odd field of an interlaced moving image. It may be. In this case, the field discriminating signal f 'at level 0 is output from the field discriminating circuit 6 in the embodiment shown in FIGS. 4, 8 and 11, but the operation of these embodiments is different from that described above. is not.
【0080】図14は図11に示した動画像符号化装置
からの符号化動画像信号を記録する本発明による動画像
記録装置の一実施形態を示すブロック図であって、13
はパケット処理回路、14は記録媒体であり、図11に
対応する部分には同一符号をつけて重複する説明を省略
する。FIG. 14 is a block diagram showing an embodiment of a moving picture recording apparatus according to the present invention for recording an encoded moving picture signal from the moving picture encoding apparatus shown in FIG.
Is a packet processing circuit, and 14 is a recording medium, and portions corresponding to FIG.
【0081】同図において、図11〜図13で説明した
ようにして符号化処理回路5から得られる符号化動画像
信号は、パケット化処理回路13で処理されて記録可能
なパケットデータに変換され、図示しない記録手段によ
り、記録媒体14に記録される。In the figure, the encoded moving image signal obtained from the encoding processing circuit 5 as described with reference to FIGS. 11 to 13 is processed by the packetization processing circuit 13 and converted into recordable packet data. Are recorded on the recording medium 14 by recording means (not shown).
【0082】このようにして、この実施形態では、イン
ターレースまたはノンインターレース動画像の動画像信
号pをMPEG2規格によって符号化して得られる符号
化動画像信号を、記録媒体14に記録することができ
る。As described above, in this embodiment, the encoded moving image signal obtained by encoding the moving image signal p of the interlaced or non-interlaced moving image according to the MPEG2 standard can be recorded on the recording medium 14.
【0083】なお、ここでは、動画像符号化装置とし
て、図11に示した実施形態のものを用いたが、他の実
施形態、即ち、図1,図4あるいは図8に示した実施形
態を用いることもできる。Here, the moving picture coding apparatus of the embodiment shown in FIG. 11 is used, but other embodiments, that is, the embodiments shown in FIG. 1, FIG. 4 or FIG. It can also be used.
【0084】[0084]
【発明の効果】以上説明したように、本発明によれば、
簡易な回路構成で、インタレース動画像だけでなく、ノ
ンインタレース動画像を正しく符号化することも可能で
あるし、また、かかる動画像の開始時でも、動画像ソー
スの切換えがあっても、正しく符号化が行なわれ、さら
に、得られる符号化動画像信号も記録媒体に記録するこ
とができる。As described above, according to the present invention,
With a simple circuit configuration, it is possible to correctly encode not only interlaced video but also non-interlaced video, and even at the start of such a video, even when the video source is switched. The encoding is performed correctly, and the obtained encoded moving image signal can also be recorded on a recording medium.
【図1】本発明による動画像符号化装置の第1の実施形
態を示すブロック図である。FIG. 1 is a block diagram showing a first embodiment of a moving picture coding apparatus according to the present invention.
【図2】図1に示した動画像符号化装置の第1の実施形
態の動作を示すタイミング図である。FIG. 2 is a timing chart showing an operation of the first embodiment of the moving picture coding apparatus shown in FIG.
【図3】図1に示した動画像符号化装置の第1の実施形
態での入力動画像と符号化された動画像との各フィール
ドにおけるラインの空間的位置を示す概念図である。3 is a conceptual diagram showing a spatial position of a line in each field of an input moving image and an encoded moving image in the first embodiment of the moving image encoding device shown in FIG.
【図4】本発明による動画像符号化装置の第2の実施形
態を示すブロック図である。FIG. 4 is a block diagram showing a second embodiment of the moving picture coding apparatus according to the present invention.
【図5】図4に示した動画像符号化装置の第2の実施形
態の動作を示すタイミング図である。FIG. 5 is a timing chart showing an operation of the video encoding device shown in FIG. 4 according to a second embodiment;
【図6】図4に示した動画像符号化装置の第2の実施形
態での入力動画像と符号化された動画像との各フィール
ドにおけるラインの空間的位置を示す概念図である。FIG. 6 is a conceptual diagram showing a spatial position of a line in each field of an input moving image and an encoded moving image in a second embodiment of the moving image encoding device shown in FIG.
【図7】図4におけるフィールド補間回路の一具体例を
示すブロック図である。FIG. 7 is a block diagram showing a specific example of a field interpolation circuit in FIG. 4;
【図8】本発明による動画像符号化装置の第3の実施形
態を示すブロック図である。FIG. 8 is a block diagram showing a third embodiment of the video encoding device according to the present invention.
【図9】図7に示した動画像符号化装置の第3の実施形
態の動作を示すタイミング図である。FIG. 9 is a timing chart showing an operation of the third embodiment of the moving picture coding apparatus shown in FIG. 7;
【図10】図8における反転フィールドパルス生成回路
の一具体例を示すブロック図である。FIG. 10 is a block diagram showing a specific example of an inverted field pulse generation circuit in FIG. 8;
【図11】本発明による動画像符号化装置の第4の実施
形態を示すブロック図である。FIG. 11 is a block diagram showing a fourth embodiment of the moving picture coding apparatus according to the present invention.
【図12】図9に示した動画像符号化装置の第4の実施
形態の動作を示すタイミング図である。FIG. 12 is a timing chart showing an operation of the fourth embodiment of the video encoding device shown in FIG.
【図13】図11における連続反転検出回路の一具体例
を示すブロック図である。FIG. 13 is a block diagram showing a specific example of a continuous inversion detection circuit in FIG. 11;
【図14】本発明による動画像記録装置の一実施形態を
示すブロック図である。FIG. 14 is a block diagram showing an embodiment of a moving image recording apparatus according to the present invention.
1 垂直同期検出回路 2 水平同期検出回路 3,3’ 反転フィールド自動生成回路 4 フレーム同期生成回路 5 符号化処理回路 6 フィールド判別回路 7 極性反転検出回路 8 フィールド補間回路 9 符号化開始制御回路 10 垂直同期マスク回路 11 連続反転検出回路 12 符号化開始・停止制御回路 13 パケット化処理回路 14 記録媒体 REFERENCE SIGNS LIST 1 vertical synchronization detection circuit 2 horizontal synchronization detection circuit 3, 3 ′ automatic inversion field generation circuit 4 frame synchronization generation circuit 5 encoding processing circuit 6 field discrimination circuit 7 polarity inversion detection circuit 8 field interpolation circuit 9 encoding start control circuit 10 vertical Synchronization mask circuit 11 Continuous inversion detection circuit 12 Encoding start / stop control circuit 13 Packetization processing circuit 14 Recording medium
フロントページの続き (72)発明者 坪井 幸利 東京都小平市上水本町五丁目20番1号 株 式会社日立製作所システムLSI開発セン タ内 Fターム(参考) 5C059 KK00 MA00 PP04 SS06 UA02 UA31 Continued on the front page (72) Inventor Yukito Tsuboi 5-2-1, Kamizuhoncho, Kodaira-shi, Tokyo F-term in the System LSI Development Center of Hitachi, Ltd. 5C059 KK00 MA00 PP04 SS06 UA02 UA31
Claims (12)
ターレースの入力動画像信号の2フィールドずつをペア
とし、 該ペア毎に、該ペアの第1のフィールドをトップフィー
ルド,第2フィールドをボトムフィールドとして符号化
することを特徴とする動画像符号化方法。1. A non-interlaced input video signal consisting of a series of field images is paired for every two fields, and for each pair, a first field of the pair is a top field and a second field is a bottom field. A moving picture coding method characterized by:
転する反転フィールドパルスを生成し、 該反転フィールドパルスの一方のレベル期間の前記入力
動画像信号のフィールドを前記第1のフィールドとし、
該反転フィールドパルスの他方のレベル期間の前記入力
動画像信号のフィールドを前記第2のフィールドとし
て、前記入力動画像信号を符号化することを特徴とする
動画像符号化方法。2. The input video signal according to claim 2, wherein an inverted field pulse whose level is sequentially inverted for each vertical synchronization signal of the input video signal is generated, and a field of the input video signal during one level period of the inverted field pulse is generated. Is the first field,
A moving picture coding method comprising coding the input moving picture signal using a field of the input moving picture signal in the other level period of the inverted field pulse as the second field.
前記トップフィールドとしての前記第1のフィールドか
ら補間し、同じペアをなす前記トップフィールドと前記
ボトムフィールドとをインターレースした関係になして
符号化することを特徴とする動画像符号化方法。3. The method according to claim 1, wherein the second field as the bottom field is interpolated from the first field as the top field to form the same pair of the top field and the bottom field. A moving picture coding method characterized by coding in an interlaced relationship.
ターレースまたはインターレースの入力動画像信号の符
号化方法において、 該入力動画像信号のフィールドの種類を順次検出し、 符号化開始指令時点での検出された該フィールドの種類
に応じたレベルに初期化され、かつ該入力動画像信号の
該フィールド毎にレベルが反転する反転フィールドパル
スを生成し、 該反転フィールドパルスの一方のレベル期間の該入力動
画像信号のフィールドを第1のフィールドとし、該反転
フィールドパルスの他方のレベル期間の該入力動画像信
号のフィールドを第2のフィールドとして、該入力動画
像信号の連続する2つのフィールドを該第1,第2のフ
ィールドのペアとし、 該ペア単位で該入力動画像信号を符号化することを特徴
とする動画像符号化方法。4. A method for encoding a non-interlaced or interlaced input video signal comprising a series of field images, wherein the type of the field of the input video signal is sequentially detected, and the field type is detected at the time of a coding start command. Generating an inversion field pulse, which is initialized to a level corresponding to the type of the field and whose level is inverted for each field of the input video signal, the input video signal during one level period of the inversion field pulse; Is a first field, a field of the input moving image signal during the other level period of the inverted field pulse is a second field, and two consecutive fields of the input moving image signal are the first and second fields. A moving image code, wherein the input moving image signal is encoded in pairs. Method.
るとき、前記ペアにおける前記第1のフィールドが奇フ
ィールド、前記第2のフィールドが偶フィールドである
ことを特徴とする動画像符号化方法。5. The apparatus according to claim 4, wherein when the input moving image signal is an interlaced moving image signal, the first field in the pair is an odd field, and the second field is an even field. Moving image encoding method.
ターレースまたはインターレースの入力動画像信号の符
号化方法において、 該入力動画像信号の垂直同期信号毎にレベルが反転する
反転フィールドパルスと該入力動画像信号のフィールド
の種類に応じたレベルのフィールド判別パルスとを生成
し、 新たな動画像ソースの動画像信号への切換えとともに、
該切換え後の最初の該垂直同期信号に伴なう該反転フィ
ールドパルスのレベル反転を禁止し、かつ該フィールド
判別パルスのレベルを初期化し、 該反転フィールドパルスと該フィールド判別パルスとが
2フィールド期間極性が反転した関係にあるとき、符号
化処理を停止し、該符号化処理の停止期間に符号化開始
指令を発生して該符号化開始指令の発生時点でのフィー
ルド判別パルスが表わすフィールド種類に応じたレベル
に該反転フィールドパルスを初期化して該反転フィール
ドパルスと該フィールド判別パルスとの極性を一致さ
せ、符号化処理を再開させることを特徴とする動画像符
号化方法。6. A method for encoding a non-interlaced or interlaced input video signal comprising a series of field images, comprising: an inverted field pulse whose level is inverted for each vertical synchronizing signal of the input video signal; And a field discrimination pulse of a level corresponding to the type of the field, and switching to a video signal of a new video source,
The level inversion of the inverted field pulse accompanying the first vertical synchronization signal after the switching is inhibited, and the level of the field discrimination pulse is initialized. The period between the inverted field pulse and the field discrimination pulse is two fields. When the polarity is inverted, the encoding process is stopped, and a coding start command is generated during the stop period of the coding process, and the field type indicated by the field discrimination pulse at the time of the generation of the coding start command is determined. A moving image encoding method, comprising: initializing the inverted field pulse to a corresponding level, matching the polarity of the inverted field pulse with the polarity of the field discrimination pulse, and restarting the encoding process.
像信号のフィールドのフィールド毎にレベルが反転する
反転フィールドパルスを発生する反転フィールドパルス
生成手段と、 該反転フィールドパルスに同期したフレーム同期パルス
を生成するフレーム同期パルス生成手段と、 該フレーム同期パルスにより、該入力動画像信号の順次
のフィールドを2フィールドずつペアとし、該入力動画
像信号をペア単位で符号化する符号化手段とを備えたこ
とを特徴とする動画像符号化装置。7. An inversion field pulse generating means for generating an inversion field pulse of which level is inverted for each field of an input moving image signal comprising a series of field images, and generating a frame synchronization pulse synchronized with the inversion field pulse Frame synchronizing pulse generating means, and encoding means for forming a pair of successive fields of the input moving image signal by the frame synchronizing pulse, and encoding the input moving image signal in pairs. A video encoding device characterized by the above-mentioned.
号であることを特徴とする動画像符号化装置。8. The moving picture coding apparatus according to claim 7, wherein the input moving picture signal is a non-interlaced moving picture signal.
レースのいずれかの動画像信号であって、 前記入力動画像信号のフィールドの種類を判別し、該種
類に応じたレベルのフィールド判別パルスを発生するフ
ィールド判別手段と、 前記符号化手段の符号化処理の開始に先立って符号化開
始指令を発生する符号化開始制御手段とを設け、 前記反転フィールドパルス生成手段は、該符号化開始指
令の発生時点の該フィールド判別パルスのレベルに応じ
た初期レベルに前記反転フィールドパルスのレベルを設
定することを特徴とする動画像符号化装置。9. The input video signal according to claim 7, wherein the input video signal is an interlaced or non-interlaced video signal, and a type of a field of the input video signal is determined, and the input video signal is determined according to the type. Field discriminating means for generating a level field discriminating pulse, and encoding start control means for generating an encoding start command prior to the start of the encoding process of the encoding means, wherein the inverted field pulse generating means, A moving picture coding apparatus, wherein the level of the inverted field pulse is set to an initial level corresponding to the level of the field discrimination pulse at the time when the coding start command is generated.
レースのいずれかの動画像信号であって、 前記入力動画像信号のフィールドの種類を判別し、該種
類に応じたレベルのフィールド判別パルスを発生するフ
ィールド判別手段と、 前記反転フィールド生成手段からの前記反転フィールド
パルスと前記フィールド判別手段からの前記フィールド
判別パルスとの間の極性が連続的に不一致であることを
検出する連続反転検出手段と、 該連続反転検出手段によって前記反転フィールドパルス
と前記フィールド判別パルスとの間の極性が連続的に不
一致であることが検出されると、前記符号化手段の符号
化処理動作を一時停止させ、該連続反転検出手段によっ
て前記反転フィールドパルスと前記フィールド判別パル
スとの間の極性が連続的に不一致であることが検出され
なくなると、符号化開始指令を発生し、しかる後、前記
符号化手段の符号化処理動作の該一時停止を解除する符
号化開始・停止制御手段とを設け、 前記反転フィールドパルス生成手段は、該符号化開始指
令の発生時点の該フィールド判別パルスのレベルに応じ
た初期レベルに前記反転フィールドパルスのレベルを設
定することを特徴とする動画像符号化装置。10. The input moving image signal according to claim 7, wherein the input moving image signal is any one of an interlaced and a non-interlaced moving image signal, and a type of a field of the input moving image signal is determined. A field discriminating means for generating a level field discriminating pulse, and detecting that the polarity between the inverted field pulse from the inverted field generating means and the field discriminating pulse from the field discriminating means is continuously inconsistent. A continuous inversion detecting means for detecting, when the continuous inversion detecting means detects that the polarity between the inverted field pulse and the field discriminating pulse is continuously inconsistent, an encoding processing operation of the encoding means; Is temporarily stopped, and the inversion field pulse and the field determination are performed by the continuous inversion detection means. When it is no longer detected that the polarity between the pulse and the pulse does not match continuously, a coding start command is generated, and thereafter, the coding start for releasing the pause of the coding processing operation of the coding means is started. A stop control unit, wherein the inversion field pulse generation unit sets the level of the inversion field pulse to an initial level corresponding to the level of the field discrimination pulse at the time of generation of the encoding start command. Video encoding device.
に、前記ペアを形成する互いにノンインターレースの2
つのフィールドを互いにインターレースした2つのフィ
ールドに変換することにより、ノンインターレースの前
記入力動画像信号をインターレースの動画像信号に変換
する変換手段を設け、 前記符号化手段は、該変換手段からの動画像信号を符号
化することを特徴とする動画像符号化装置。11. The method according to claim 8, 9 or 10, wherein for each pair of the non-interlaced input video signals, two non-interlaced two
Converting means for converting the non-interlaced input moving image signal into an interlaced moving image signal by converting one field into two fields interlaced with each other; A moving picture coding apparatus for coding a signal.
載の動画像符号化装置で符号化された動画像信号を記録
媒体に記録する記録手段を備えたことを特徴とする動画
像記録装置。12. A moving picture recording apparatus comprising a recording means for recording a moving picture signal encoded by the moving picture encoding apparatus according to claim 7 on a recording medium. apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17294899A JP2001008202A (en) | 1999-06-18 | 1999-06-18 | Moving image encoding method, moving image encoding device, and moving image recording device using the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17294899A JP2001008202A (en) | 1999-06-18 | 1999-06-18 | Moving image encoding method, moving image encoding device, and moving image recording device using the same |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2001008202A true JP2001008202A (en) | 2001-01-12 |
Family
ID=15951333
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP17294899A Pending JP2001008202A (en) | 1999-06-18 | 1999-06-18 | Moving image encoding method, moving image encoding device, and moving image recording device using the same |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2001008202A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009084128A1 (en) * | 2007-12-27 | 2009-07-09 | Panasonic Corporation | Synchronous signal conversion circuit, signal processing system including it, and synchronous signal conversion method |
-
1999
- 1999-06-18 JP JP17294899A patent/JP2001008202A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009084128A1 (en) * | 2007-12-27 | 2009-07-09 | Panasonic Corporation | Synchronous signal conversion circuit, signal processing system including it, and synchronous signal conversion method |
US8345160B2 (en) | 2007-12-27 | 2013-01-01 | Panasonic Corporation | Synchronous signal conversion circuit, signal processing system including it, and synchronous signal conversion method |
JP5147860B2 (en) * | 2007-12-27 | 2013-02-20 | パナソニック株式会社 | Synchronization signal conversion circuit, signal processing system including the same, and synchronization signal conversion method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6222589B1 (en) | Displaying video on high-resolution computer-type monitors substantially without motion discontinuities | |
KR100996216B1 (en) | High quality deinterlacing and frame multiplication circuits and methods | |
WO1998007274A9 (en) | Displaying video on high-resolution computer-type monitors substantially without motion discontinuities | |
JP2906332B2 (en) | Telecine signal conversion method and up-converter | |
JP2005167887A (en) | Dynamic image format conversion apparatus and method | |
JP3398396B2 (en) | Video signal processing circuit | |
JP2001008202A (en) | Moving image encoding method, moving image encoding device, and moving image recording device using the same | |
WO2004043058A1 (en) | Image pickup device | |
JP2003087606A (en) | Apparatus and method for video signal processing | |
JP4489760B2 (en) | Device for generating a 3D video signal | |
JP4226933B2 (en) | Video signal processing device | |
JP2007288483A (en) | Image converter | |
JPH05183807A (en) | Video signal transmission device | |
JP4611666B2 (en) | Scan conversion device and scan conversion method | |
JP2003101970A (en) | Moving image scanning converter | |
JPH0795441A (en) | Television signal processing system | |
JP2002300537A (en) | Video frequency converter | |
JP2958929B2 (en) | Time axis correction method and device | |
JP4230903B2 (en) | Video signal processing apparatus and video signal processing method | |
JP2001333391A (en) | Video display device | |
JP4845569B2 (en) | Signal processing apparatus and signal processing method | |
JPH0918740A (en) | Frame synchronization method and frame synchronizer | |
JP2000013740A (en) | Plural-video reproducing device and its identification signal processing method | |
JPH05328303A (en) | Arithmetical mean device for video apparatus | |
JP2004015361A (en) | Video signal synchronization device |