JP3307163B2 - Encoding method and encoding device, and decoding method and decoding device - Google Patents

Encoding method and encoding device, and decoding method and decoding device

Info

Publication number
JP3307163B2
JP3307163B2 JP14223895A JP14223895A JP3307163B2 JP 3307163 B2 JP3307163 B2 JP 3307163B2 JP 14223895 A JP14223895 A JP 14223895A JP 14223895 A JP14223895 A JP 14223895A JP 3307163 B2 JP3307163 B2 JP 3307163B2
Authority
JP
Japan
Prior art keywords
picture
inter
frame
data
intra
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.)
Expired - Fee Related
Application number
JP14223895A
Other languages
Japanese (ja)
Other versions
JPH08336108A (en
Inventor
純一 荻窪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP14223895A priority Critical patent/JP3307163B2/en
Priority to US08/660,610 priority patent/US5852706A/en
Priority to KR1019960020922A priority patent/KR100397241B1/en
Publication of JPH08336108A publication Critical patent/JPH08336108A/en
Application granted granted Critical
Publication of JP3307163B2 publication Critical patent/JP3307163B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、符号化方法とその装置
および復号化方法とその装置に関する。 特に本発明は、
他のフレームの映像データと独立に圧縮符号化されたイ
ントラフレームデータと、他のフレームと所定の関係を
有するように圧縮符号化されたインターフレームデータ
とからなる圧縮映像データをパッキングする方法と装
置、および、そのようにパッキングされたデータをデパ
ッキングする方法と装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding method and apparatus.
And a decoding method and apparatus. In particular, the present invention
An image compressed and encoded independently of the video data of other frames
The predetermined relationship between intra-frame data and other frames
Inter-frame data compressed and encoded to have
A method and apparatus for packing compressed video data
And depackage the data so packed.
A method and apparatus for locking.

【0002】[0002]

【従来の技術】映像データを所定数のフレームごとに、
これらの所定数のフレームの内の1つ以上を他のフレー
ムと独立に復号可能なイントラフレームデータ(Iフレ
ームデータ)と、他の1つ以上を直前または両隣のフレ
ームのデータを用いて復号するインターフレームデータ
(PフレームデータおよびBフレームデータ、以下、こ
れらを総称する場合には単に、「Bフレームデータ」と
記す)とに圧縮符号化するMPEG方式等が映像データ
を圧縮する方法として盛んに用いられている。
2. Description of the Related Art Video data is transmitted every predetermined number of frames.
One or more of the predetermined number of frames are decoded using intra-frame data (I-frame data) that can be decoded independently of other frames, and the other one or more are decoded using data of immediately preceding or both adjacent frames. An MPEG method or the like for compressing and encoding inter-frame data (P-frame data and B-frame data, hereinafter simply referred to as "B-frame data" when these are collectively referred to) is a popular method for compressing video data. Used.

【0003】具体的には、フレームをそれぞれ所定数の
画素(例えば16×16)を有するマクロブロックに分
割し、2フレームごとに一方を他のフレームと独立にマ
クロブロック単位に離散コサイン変換(DCT)および
可変長符号化等を行って圧縮符号化し、例えば図10に
示すように、マクロブロックそれぞれに対応するIフレ
ームデータDC,AC1,…,DC’,AC1’,…を
生成する。これらのイントラフレームデータDC,AC
1,…,DC’,AC1’,…は、直流成分および低い
周波数の成分から順に1列に並べられ、この順番で所定
の記録用フレームに配列されてディジタルビデオテープ
等に記録される。なお、BフレームデータはIフレーム
データの後ろに並べられ、記録される。
Specifically, a frame is divided into macroblocks each having a predetermined number of pixels (for example, 16 × 16), and every two frames, one of them is discrete cosine transform (DCT) in macroblock units independently of the other frames. ) And variable-length coding and compression coding to generate I-frame data DC, AC1,..., DC ', AC1',... Corresponding to each macroblock, for example, as shown in FIG. These intra frame data DC, AC
, DC ′, AC1 ′,... Are arranged in a line in order from the direct-current component and the low-frequency component, are arranged in a predetermined recording frame in this order, and are recorded on a digital video tape or the like. The B frame data is arranged and recorded after the I frame data.

【0004】[0004]

【発明が解決しようとする課題】図10に示したよう
に、映像フレームから生成したIフレームデータ等を、
単純に一列に並べて記録した場合、例えば、Iフレーム
データAC1にデータ誤りが発生した場合には、Iフレ
ームデータは可変長符号化されているために、Iフレー
ムデータAC1以降のIフレームデータAC2,…,D
C’,AC1’,…は全く再生できなくなってしまう。
As shown in FIG. 10, I frame data and the like generated from a video frame are
When the data is simply recorded in a line, for example, when a data error occurs in the I-frame data AC1, the I-frame data is variable-length coded. …, D
C ', AC1',... Cannot be reproduced at all.

【0005】一方、DCT等により圧縮符号化した映像
データを再生した場合、再生映像の品質に与える影響は
低い周波数の成分ほど大きいことが知られている。つま
り、圧縮符号化した映像データを再生する場合には、高
い周波数成分が多少欠落していても、実用上問題のない
再生映像を得ることができる。また、Iフレームデータ
なしにBフレームデータから映像を再生できないが、B
フレームデータなしにIフレームデータから映像を再生
することができる。
[0005] On the other hand, when video data compressed and encoded by DCT or the like is reproduced, it is known that the effect on the quality of the reproduced video is greater for lower frequency components. That is, when reproducing the compression-encoded video data, a reproduced video having no practical problem can be obtained even if some high frequency components are missing. Also, video cannot be reproduced from B-frame data without I-frame data.
Video can be reproduced from I-frame data without frame data.

【0006】本発明は上述した事実に着目して点に鑑み
てなされたものであり、圧縮符号化後の映像データの途
中にデータ誤りが発生しても、圧縮符号化後の映像デー
タの低い周波数成分の多くを救済することができる符号
化方法とその装置および復号化方法とその装置を提供す
ることを目的とする。また、本発明は、圧縮符号化後の
映像データの途中にデータ誤りが発生した場合に、イン
ターフレームデータに優先して、映像の再生のためによ
り必要性が高いイントラフレームデータを救済すること
ができる符号化方法とその装置および復号化方法とその
装置を提供することを目的とする。
The present invention has been made in view of the above-described facts, and even if a data error occurs in the middle of video data after compression encoding, the video data after compression encoding has a low level. Code that can rescue most of the frequency components
It is an object of the present invention to provide a decoding method and its device and a decoding method and its device . Further, according to the present invention, when a data error occurs in the middle of compression-encoded video data, it is possible to rescue intra-frame data which is more necessary for video playback in preference to inter-frame data. Encoding Method and Apparatus, and Decoding Method and Applicable Method
It is intended to provide a device .

【0007】また、本発明は、圧縮符号化後の映像デー
タにデータ誤りが発生しても、より高品質な再生映像を
得ることができる符号化方法とその装置および復号化方
法とその装置を目的とする。また、本発明は、いわゆる
ジョグシャトル再生等の変速再生を行っても高品質な再
生映像を得ることができる符号化方法とその装置および
復号化方法とその装置を提供することを目的とする。
Further, the present invention provides an encoding method, an apparatus and a decoding method capable of obtaining a higher quality reproduced video even if a data error occurs in the video data after compression encoding.
The purpose of the law and its equipment . Further, the present invention provides an encoding method and apparatus capable of obtaining high-quality reproduced video even when performing variable-speed reproduction such as so-called jog shuttle reproduction.
An object of the present invention is to provide a decoding method and an apparatus therefor.

【0008】[0008]

【課題を解決するための手段】本発明の第1の観点によ
れば、映像データを符号化する符号化装置において、上
記映像データを、イントラフレームまたはインターフレ
ームで符号化する符号化手段と、上記イントラフレーム
として符号化されたイントラピクチャと、上記インター
フレームとして符号化されたインターピクチャを、所定
の固定長となるようにパッキングする際に、上記イント
ラピクチャを上記インターピクチャに対して優先的にパ
ッキングするとともに、上記インターピクチャのパッキ
ング位置を当該インターピクチャの先頭位置が同定でき
るように上記インターピクチャをパッキングするパッキ
ング手段とを備えたことを特徴とする符号化装置が提供
される。
According to a first aspect of the present invention, there is provided an encoding apparatus for encoding video data, comprising: encoding means for encoding the video data in an intra frame or an inter frame; When packing the intra picture encoded as the intra frame and the inter picture encoded as the inter frame to have a predetermined fixed length, the intra picture is preferentially given to the inter picture. An encoding device is provided, which includes packing means for packing and packing the inter picture so that the head position of the inter picture can identify the packing position of the inter picture.

【0009】好ましくは、上記イントラピクチャのパッ
キング領域と、前記インターピクチャのパッキング領域
とは区別されており、上記パッキング手段は、上記イン
トラピクチャについて、第1の長さ以内のイントラピク
チャについて順次、上記イントラピクチャパッキング領
域に格納し、上記第1の長さ以上のイントラピクチャに
ついて上記イントラピクチャパッキング領域の空き領域
にパッキングし、上記インターピクチャについて、第2
の長さ以内のインターピクチャについて順次、上記イン
ターピクチャパッキング領域に格納し、上記第2の長さ
以上のインターピクチャについて上記インターピクチャ
パッキング領域の空き領域にパッキングする。
Preferably, the packing area of the intra picture and the packing area of the inter picture are distinguished from each other, and the packing means sequentially performs the above processing for the intra pictures within a first length. Intra-picture packing area is stored in the intra-picture packing area, and the intra-pictures having the first length or more are packed in the free area of the intra-picture packing area.
Are sequentially stored in the inter-picture packing area, and the inter-pictures having the second length or more are packed in a free area of the inter-picture packing area.

【0010】また好ましくは、上記第1の長さおよび第
2の長さは、上記映像データをイントラピクチャとイン
ターピクチャに圧縮符号化したときのデータ量から決定
する。
Preferably, the first length and the second length are determined from a data amount when the video data is compression-coded into an intra picture and an inter picture.

【0011】さらに好ましくは、上記パッキングされた
データに、外符号および内符号を付す外符号・内符号付
加手段をさらに有する。
More preferably, the apparatus further comprises outer code / inner code adding means for adding an outer code and an inner code to the packed data.

【0012】また、本発明に係るデータ記録装置は、上
述した本発明に係るデータ記録方法を実現するための各
手段を有する。また、本発明に係るデータ再生装置は、
上述した本発明に係るデータ再生方法を実現するための
各手段を有する。
Further, a data recording apparatus according to the present invention has respective means for realizing the above-described data recording method according to the present invention. Further, the data reproducing device according to the present invention,
It has respective means for realizing the above-described data reproducing method according to the present invention.

【0013】本発明の第2の観点によれば、上記符号化
装置の処理を行う方法が提供される。当該符号化方法
は、映像データを、イントラフレームまたはインターフ
レームで符号化する段階と、上記イントラフレームとし
て符号化されたイントラピクチャと、上記インターフレ
ームとして符号化されたインターピクチャを、所定の固
定長となるようにパッキングする際に、上記イントラピ
クチャを上記インターピクチャに対して優先的にパッキ
ングするとともに、上記インターピクチャのパッキング
位置を当該インターピクチャの先頭位置が同定できるよ
うに上記インターピクチャをパッキングするパッキング
段階とを備えたことを特徴とする。
According to a second aspect of the present invention, there is provided a method for performing the above-described processing of the encoding apparatus. The encoding method includes the steps of: encoding video data in an intra frame or an inter frame; and translating the intra picture encoded as the intra frame and the inter picture encoded as the inter frame into a predetermined fixed length. When packing such that the intra picture is preferentially packed with respect to the inter picture, the packing position of the inter picture is packed such that the head position of the inter picture can be identified. And a packing step.

【0014】本発明の第3の観点によれば、上記符号化
されたデータを復号する装置が提供される。当該復号化
装置は、映像データがイントラフレームまたはインター
フレームで符号化され、上記イントラフレームとして符
号化されたイントラピクチャと上記インターフレームと
して符号化されたインターピクチャとが所定の固定長と
なるようにパッキングされた際に、上記イントラピクチ
ャを上記インターピクチャに対して優先的にパッキング
されるとともに、上記インターピクチャのパッキング位
置を当該インターピクチャの先頭位置が同定できるよう
に上記インターピクチャをパッキングされた符号化映像
データを入力する手段と、上記パッキング処理とは逆の
処理で上記イントラピクチャと上記インターピクチャと
をデパッキングする手段と、上記デパッキングされたピ
クチャを上記符号化処理と逆の復号化処理を行う復号化
手段とを備えたことを特徴とする。
According to a third aspect of the present invention, there is provided an apparatus for decoding the encoded data. The decoding device is such that video data is encoded in an intra frame or an inter frame, and the intra picture encoded as the intra frame and the inter picture encoded as the inter frame have a predetermined fixed length. When packed, the intra picture is preferentially packed with respect to the inter picture, and the packing position of the inter picture is such that the head position of the inter picture can be identified. Means for inputting coded video data, means for depacking the intra picture and the inter picture in a process opposite to the packing process, and decoding processing for the depacked picture inverse to the encoding process. Decryption means for performing Characterized by comprising.

【0015】本発明の第4の観点によれば、上記復号化
装置の動作を実施する復号化方法がが提供される。当該
復号化方法は、映像データがイントラフレームまたはイ
ンターフレームで符号化され、上記イントラフレームと
して符号化されたイントラピクチャと上記インターフレ
ームとして符号化されたインターピクチャとが所定の固
定長となるようにパッキングされた際に、上記イントラ
ピクチャを上記インターピクチャに対して優先的にパッ
キングされるとともに、上記インターピクチャのパッキ
ング位置を当該インターピクチャの先頭位置が同定でき
るように上記インターピクチャをパッキングされた符号
化映像データを入力する段階と、上記パッキング処理と
は逆の処理で上記イントラピクチャと上記インターピク
チャとをデパッキングする段階と、上記デパッキングさ
れたピクチャを上記符号化処理と逆の復号化処理を行う
復号化段階とを備えたことを特徴とする。
According to a fourth aspect of the present invention, there is provided a decoding method for performing the operation of the decoding apparatus. The decoding method is such that the video data is encoded in an intra frame or an inter frame, and the intra picture encoded as the intra frame and the inter picture encoded as the inter frame have a predetermined fixed length. When packed, the intra picture is preferentially packed with respect to the inter picture, and the packing position of the inter picture is such that the head position of the inter picture can be identified. Inputting the coded video data, depacking the intra picture and the inter picture in a process opposite to the packing process, and decoding the depacked picture in a direction opposite to the encoding process. Performing a decryption step and Characterized by comprising.

【0016】符号化されたイントラピクチャをインター
ピクチャに優先してパッキングすることにより、エラー
などが発生した場合も、イントラピクチャをエラー訂正
して再生できる。特に、イントラピクチャパッキング領
域とインターピクチャパッキング領域とが区別されてい
るので、符号化装置におけるパッキング処理が容易であ
り、復号化装置におけるデパッキング処理も容易とな
る。
[0016] By packing the coded intra picture in preference to the inter picture, even if an error or the like occurs, the intra picture can be corrected and reproduced. In particular, since the intra-picture packing area and the inter-picture packing area are distinguished, the packing processing in the encoding device is easy, and the depacking processing in the decoding device is also easy.

【0017】また、パッキングする際、固定長さでパッ
キングされているので、エラー訂正が容易かつ正確に行
うことができる。
Further, when packing, since the packing is performed with a fixed length, error correction can be easily and accurately performed.

【0018】パッキングされたデータに外符号および内
符号を付加することにより、誤り訂正能力が向上する。
符号化手段は、たとえば、MPEGに代表される符号化
処理を行う。
By adding an outer code and an inner code to the packed data, the error correction capability is improved.
The encoding means performs an encoding process represented by, for example, MPEG.

【0019】復号化方法および復号化装置は、符号化方
法および符号化装置とは逆の処理を行う。
[0019] The decoding method and the decoding apparatus perform processing reverse to that of the encoding method and the encoding apparatus.

【0020】[0020]

【実施例1】以下、本発明の第1の実施例を説明する。
図1は、本発明に係るディジタルビデオレコーダ(VT
R装置)1の構成を示す図である。図1に示すように、
VTR装置1は、圧縮符号化装置10、誤り訂正符号エ
ンコーダ(ECCエンコーダ;ECCE)12、主メモ
リ16、内符号デコーダ20、ECCデコーダ22、ジ
ョグシャトル用のメモリ24、伸長復号装置26および
フレームメモリ28から構成される。なお、図1におい
ては、音声に係るデータを処理する部分については、図
示の簡略化のために省略してある。
Embodiment 1 Hereinafter, a first embodiment of the present invention will be described.
FIG. 1 shows a digital video recorder (VT) according to the present invention.
2 is a diagram illustrating a configuration of an (R device) 1. FIG. As shown in FIG.
The VTR device 1 includes a compression encoder 10, an error correction code encoder (ECC encoder; ECCE) 12, a main memory 16, an inner code decoder 20, an ECC decoder 22, a jog shuttle memory 24, a decompression decoder 26, and a frame memory. 28. In FIG. 1, a portion for processing data relating to audio is omitted for simplification of illustration.

【0021】また、ECCエンコーダ12は、パック回
路14、外符号エンコーダ122、第1のFIFO回路
124、第2のFIFO回路126および内符号エンコ
ーダ128から構成される。また、ECCデコーダ22
は、トラッキング回路220、メモリ回路222、外符
号デコーダ224、ジョグメモリ制御回路226および
デパック回路30から構成される。
The ECC encoder 12 includes a pack circuit 14, an outer code encoder 122, a first FIFO circuit 124, a second FIFO circuit 126, and an inner code encoder 128. Also, the ECC decoder 22
Is composed of a tracking circuit 220, a memory circuit 222, an outer code decoder 224, a jog memory control circuit 226, and a depacking circuit 30.

【0022】以上の各構成部分により、VTR装置1
は、例えば、MPEG方式等により上記2つのフレーム
の内の一方を独立して元の映像に係るデータ(以下、映
像データと記す)を再生可能なイントラフレームデータ
(Iフレームデータ)に圧縮符号化し、他方を再生後の
両隣のフレームの映像データを用いることにより再生可
能な両方向予測符号化データ(Bフレームデータ、イン
トラフレームデータの一種)に圧縮符号化し、これらの
データを音声に係るデータ(以下、音声データと記す)
とともにビデオテープ40に記録し、記録した音声・映
像データをビデオテープ40から読み出して再生する。
The VTR 1
Is, for example, independently compresses and encodes one of the above two frames into intra-frame data (I-frame data) capable of reproducing original video data (hereinafter referred to as video data) by the MPEG system or the like. , The other is compressed and encoded into reproducible bidirectional predictive encoded data (a type of B-frame data or intra-frame data) by using video data of both adjacent frames after the reproduction, and these data are converted into data relating to audio (hereinafter, referred to as audio data). , Audio data)
At the same time, the data is recorded on the video tape 40, and the recorded audio / video data is read out from the video tape 40 and reproduced.

【0023】図2は、図1に示した圧縮符号化装置10
およびパック回路14の構成を示す図である。図3は、
圧縮符号化装置10の処理を説明する図であって、
(A)はフレームに含まれるマクロブロックの構成を示
し、(B)は生成されるIフレームデータおよびBフレ
ームデータを示し、(C)は(B)に示したIフレーム
データおよびBフレームデータを拡大して示し、(D)
は(B),(C)に示したIフレームデータおよびBフ
レームデータから構成されるピクチャーグループGOP
を示す。図4は、記録用フレームの構成を示す図であっ
て、(A)は記録用フレームの構成を示し、(B)は記
録用フレームを構成する記録単位(同期ブロック)の構
成を示す図である。
FIG. 2 is a block diagram of the compression encoding apparatus 10 shown in FIG.
FIG. 2 is a diagram showing a configuration of a pack circuit 14. FIG.
FIG. 3 is a diagram for explaining processing of the compression encoding device 10,
(A) shows the configuration of the macroblock included in the frame, (B) shows the generated I frame data and B frame data, and (C) shows the I frame data and B frame data shown in (B). (D)
Is a picture group GOP composed of the I frame data and the B frame data shown in (B) and (C).
Is shown. 4A and 4B are diagrams illustrating a configuration of a recording frame, wherein FIG. 4A illustrates a configuration of a recording frame, and FIG. 4B illustrates a configuration of a recording unit (synchronous block) that configures the recording frame. is there.

【0024】図2に示すように、圧縮符号化装置10
は、動き補償回路(MEP)102、、離散コサイン変
換回路(DCT回路)104および可変長符号化回路
(VLC)106から構成される。これらの構成部分に
より、圧縮符号化装置10は、外部から、例えば、コン
ポーネント信号にそれぞれ対応するデータ(輝度データ
Y,色差データCr ,Cb)として入力される映像デー
タVIの2つのフレームの一方をIフレームデータに、
他方をBフレームデータに圧縮符号化する。
As shown in FIG. 2, the compression encoding device 10
Comprises a motion compensation circuit (MEP) 102, a discrete cosine transform circuit (DCT circuit) 104, and a variable length coding circuit (VLC) 106. With these components, the compression encoding apparatus 10, from the outside, for example, two frames of video data VI inputted corresponding data respectively to a component signal (luminance data Y, color difference data C r, C b) as One for I-frame data,
The other is compression-encoded into B frame data.

【0025】動き補償回路102は、上記2つのフレー
ムそれそれを、図3(A)に示すように、輝度データY
および色差データCr ,Cb それぞれに対応する16×
16のマクロブロックに分割し、上記2つのフレームの
内の他方について、時間的に直前および直後のフレーム
との間でマクロブロック単位で動き補償処理を行い、検
出した動きベクトルを動き補償回路102に対して出力
する。
The motion compensation circuit 102 converts the above two frames into luminance data Y as shown in FIG.
And color difference data C r, 16 × corresponding to C b respectively
The macroblock is divided into 16 macroblocks, and the other of the two frames is subjected to motion compensation processing in units of macroblocks between the immediately preceding and succeeding frames, and the detected motion vector is sent to the motion compensation circuit 102. Output to

【0026】DCT回路104は、動き補償回路102
から入力される、それぞれ時間領域の上記2つのフレー
ムの内の一方の映像データに含まれるマクロブロックそ
れぞれと、他方のフレームに含まれるマクロブロックそ
れぞれについて検出された動きベクトルとを離散コサイ
ン変換(DCT)により周波数領域のデータに変換し、
さらに所定の量子化きざみで量子化し、それぞれ上記2
つのフレームに含まれるマクロブロックそれぞれに対応
するIフレームデータおよびBフレームデータを生成
し、直流成分および低い周波数の成分から順に可変長符
号化回路106に対して出力する。
The DCT circuit 104 includes a motion compensation circuit 102
And a motion vector detected for each of the macroblocks included in one of the two video frames in the time domain and the motion vector detected for each of the macroblocks included in the other frame. ) To convert to frequency domain data,
Further, quantization is performed at predetermined quantization steps, and
I frame data and B frame data corresponding to each macro block included in one frame are generated, and output to the variable length coding circuit 106 in order from a DC component and a low frequency component.

【0027】なお、実際には、図3(A)に示すよう
に、DCT回路104は、輝度データYに対応する16
×16画素のマクロブロックをさらに4個の8×8画素
から構成されるブロックに分割し、色差データCr ,C
b に対応する16×16画素のマクロブロックを、それ
ぞれ2個の8×8画素のブロックに分割し、分割後のブ
ロック単位にDCT処理を行う。
Actually, as shown in FIG. 3A, the DCT circuit 104 stores 16 bits corresponding to the luminance data Y.
The macroblock of × 16 pixels is further divided into four blocks each composed of 8 × 8 pixels, and the color difference data C r , C
The macroblock of 16 × 16 pixels corresponding to b is divided into two blocks each of 8 × 8 pixels, and DCT processing is performed for each divided block.

【0028】また、DCT回路104は、図3(B),
(C)に示すように、映像の動きが大きくてBフレーム
データのデータ量が多くなる場合にはIフレームデータ
に対する量子化きざみを大きくしてIフレームデータを
少なくし、反対に、映像の動きが大きい場合には、Iフ
レームデータに対する量子化きざみを小さくしてIフレ
ームデータの量を増やし、いずれのピクチャーグループ
GOPのデータ量も同程度になるように量子化処理を行
う。このような量子化処理を行うことにより、DCT回
路104は、各ピクチャーグループGOPのデータ量を
記録用フレームが収容可能なデータ量以下とし、また、
各ピクチャーグループGOPのデータ量を平均化する。
Further, the DCT circuit 104 has the configuration shown in FIG.
As shown in (C), when the motion of the video is large and the data amount of the B frame data is large, the quantization step for the I frame data is increased to reduce the I frame data. Is large, the amount of I-frame data is increased by reducing the quantization step for the I-frame data, and the quantization process is performed so that the data amount of each picture group GOP is almost the same. By performing such a quantization process, the DCT circuit 104 reduces the data amount of each picture group GOP to the data amount that can be accommodated by the recording frame, and
The data amount of each picture group GOP is averaged.

【0029】可変長符号化回路106は、DCT回路1
04から入力されるデータを可変長符号化し、図3
(B)〜(D)に示すように、1フレームがそれぞれ1
440個または1710個のマクロブロックから構成さ
れる上記2フレーム分の映像データから、それぞれ1つ
のIフレームデータと1つのBフレームデータとから構
成されるピクチャーグループGOP(Group Of Picture
s )を、同期信号SGOPの1周期ごとに1つずつ含む
圧縮映像データREDとしてパック回路14に対して出
力する。なお、可変長符号化回路106は、Iフレーム
データおよびBフレームデータの最後に、これらの終了
を示す終了識別子EOBを付加する。
The variable length coding circuit 106 is a DCT circuit 1
FIG.
As shown in (B) to (D), one frame corresponds to one frame.
From the two frames of video data composed of 440 or 1710 macroblocks, a picture group GOP (Group Of Picture) composed of one I frame data and one B frame data, respectively.
s) is output to the pack circuit 14 as compressed video data RED including one for each cycle of the synchronization signal SGOP. Note that the variable-length coding circuit 106 adds an end identifier EOB indicating the end of the I-frame data and the B-frame data to the end.

【0030】また、図2に示すように、パック回路14
はデータ長検出回路140、メモリ書き込み制御回路1
42、アドレス発生回路144,146、残りデータ長
計算回路148、サブメモリ書き込み制御回路150、
サブメモリ書き込み制御回路152およびサブメモリ1
54から構成される。これらの構成部分により、パック
回路14は、映像データVIに同期した同期信号SFに
同期して動作し、圧縮符号化装置10から入力されたI
フレームデータおよびBフレームデータ、および、音声
データAIを図4(A)に示す、PAL方式においては
36個、NTSC方式においては30個の記録用フレー
ムに配列する。ただし、説明の明瞭化のために、以下、
音声データAIに係る処理を省略して記述する。
Further, as shown in FIG.
Is the data length detection circuit 140, the memory write control circuit 1
42, an address generation circuit 144, 146, a remaining data length calculation circuit 148, a sub memory write control circuit 150,
Sub memory write control circuit 152 and sub memory 1
54. With these components, the pack circuit 14 operates in synchronization with the synchronization signal SF synchronized with the video data VI, and the I / O signal input from the compression encoding device 10 is input.
The frame data, B frame data, and audio data AI are arranged in 36 recording frames in the PAL system and 30 recording frames in the NTSC system as shown in FIG. However, for clarity of explanation,
The processing related to the audio data AI is omitted and described.

【0031】なお、この記録用フレームは、図4(B)
に示す記録単位(同期ブロック)1440個(または1
710個)から構成されており、この同期ブロックそれ
ぞれにおいて、先頭2バイトには同期符号SYNCが配
列され、続く4バイトには識別符号IDが配列され、続
く108バイトには圧縮符号化装置10により生成され
たピクチャーグループGOPまたは外符号エンコーダ1
22により生成される外符号が配列され、最後の12バ
イトには内符号エンコーダ128により生成される内符
号が配列される。
The recording frame is shown in FIG.
1440 recording units (synchronous blocks) (or 1
710 pieces) which, in this synchronization block, respectively, the first two bytes synchronization code SYNC are arranged, followed by the 4-byte identification code ID is arranged, followed by compression encoding apparatus to 108 bytes 10 Group GOP or outer code encoder 1 generated by
The outer code generated by the inner code encoder 128 is arranged in the last 12 bytes.

【0032】同期ブロックは、それぞれ映像データのフ
レームのマクロブロックそれぞれ、および、これらのマ
クロブロックから生成されたピクチャーグループGOP
それぞれに対応しており、先頭から1440個(NTS
C方式の場合)または1710個(PAL方式の場合)
までには、対応するマクロブロックそれぞれから生成さ
れたIフレームデータ(Iフレームデータのデータ長が
108バイト以上ある場合には、先頭から108バイト
目まで)が配列され、残りの部分にはIフレームデータ
の109バイト目以降の部分とBフレームのデータとが
配列される。なお、この記録用フレームにおけるIフレ
ームデータおよびBフレームデータの配列については、
図5を参照して後述する。
The synchronizing block includes macroblocks of a frame of video data and a picture group GOP generated from these macroblocks.
It corresponds to each, from the top 1440 (NTS
C system) or 1710 units (PAL system)
By the time, I-frame data generated from each corresponding macro block (up to the 108th byte from the beginning when the data length of the I-frame data is 108 bytes or more) is arranged, and the I-frame data is The portion of the data after the 109th byte and the data of the B frame are arranged. The arrangement of the I frame data and the B frame data in the recording frame is as follows.
It will be described later with reference to FIG.

【0033】図5は、図1および図2に示したパック回
路14により記録用フレームに配列されたIフレームデ
ータおよびBフレームデータを説明する図である。な
お、図5においては、図示および説明の簡略化のため
に、同期ブロック数が8の場合について示してある。以
上述べたパック回路14によるピクチャーグループGO
Pの記録用フレームへの配列は、図5(A)に示すIフ
レームデータおよびBフレームデータを、図5(B)
示すように記録用フレームに詰め込むことに相当する。
FIG. 5 is a diagram for explaining I-frame data and B-frame data arranged in recording frames by the pack circuit 14 shown in FIGS. FIG. 5 shows a case where the number of synchronous blocks is 8, for simplicity of illustration and description. Picture group GO by pack circuit 14 described above
The arrangement of P in the recording frame corresponds to packing the I frame data and the B frame data shown in FIG. 5A into the recording frame as shown in FIG. 5B .

【0034】つまり、以上述べた動作により、パック回
路14は、Iフレームデータ(Iフレームデータが10
9バイト以上である場合には先頭から108バイト目ま
で)を、対応する同期ブロックに配列し、オーバーフロ
ーデータ(データ長109バイト以上のIフレームデー
タの109バイト目以降)をIフレームデータを配列し
た後の空き領域の先頭から順に配列し、さらに、これら
のデータを配列した後の空き領域の先頭から順にBフレ
ームデータを配列する。
That is, by the above-described operation, the pack circuit 14 stores the I-frame data (I-frame data of 10
If it is 9 bytes or more, the 108th byte from the beginning is arranged in the corresponding synchronization block, and overflow data (109th byte or more of I-frame data with a data length of 109 bytes or more) is arranged in I-frame data. The B frame data is arranged in order from the head of the free area after these data are arranged.

【0035】また、図5(C)に示すように、上述のパ
ック回路14の動作によりIフレームデータが配列され
た同期ブロックの先頭には、マクロブロック(図3
(A))それぞれから生成されたIフレームデータの直
流成分(DC)および低周波成分(AC1,AC2,
…)から順に配列されることになる。従って、再生の際
には、途中でデータ誤りが発生した場合であっても、各
同期ブロックそれぞれを先頭から読み出すことにより、
映像の再生に重要なIフレームデータの直流成分および
低周波成分を得ることができる。
As shown in FIG. 5C, a macro block (FIG. 3) is placed at the beginning of the synchronous block in which the I-frame data is arranged by the operation of the pack circuit 14 described above.
(A)) The DC component (DC) and the low-frequency components (AC1, AC2,
…)). Therefore, at the time of reproduction, even if a data error occurs in the middle, by reading each synchronous block from the beginning,
It is possible to obtain a DC component and a low-frequency component of I frame data important for video reproduction.

【0036】外符号エンコーダ122(図1)は、同期
信号SFに同期して動作し、主メモリ16に記憶された
記録用フレームに、図4(A)に示す誤り訂正用の外符
号を付加する。FIFO回路124は、同期信号SFに
同期して主メモリ16に記憶された記録用フレームを読
み出してバッファリングし、FIFO回路126に対し
て出力する。
The outer code encoder 122 (FIG. 1) operates in synchronization with the synchronization signal SF, and adds an error correcting outer code shown in FIG. 4A to the recording frame stored in the main memory 16. I do. The FIFO circuit 124 reads the recording frame stored in the main memory 16 in synchronization with the synchronization signal SF, buffers the read frame, and outputs the buffer to the FIFO circuit 126.

【0037】FIFO回路126は、FIFO回路12
4から入力された記録用フレームをバッファリングし
て、ビデオテープ40へのデータの書き込みに用いられ
る同期信号RFに同期して内符号エンコーダ128に対
して出力する。内符号エンコーダ128は、同期信号R
Fに同期して動作し、図3(A)に示す誤り訂正用の内
符号を生成して記録用フレームに付加し、記録用フレー
ムを完成させ、記録ヘッドを介してビデオテープ40に
記録する。
The FIFO circuit 126 includes the FIFO circuit 12
4 is buffered and output to the inner code encoder 128 in synchronization with a synchronization signal RF used for writing data to the video tape 40. The inner code encoder 128 outputs the synchronization signal R
It operates in synchronization with F, generates an inner code for error correction shown in FIG. 3 (A), adds it to the recording frame, completes the recording frame, and records it on the video tape 40 via the recording head. .

【0038】ビデオテープ40に記録された記録用フレ
ームは、再生ヘッドを介して読み出され、内符号デコー
ダ20に入力される。内符号デコーダ20は、図3
(A)に示す内符号を用いて同期ブロックそれぞれに対
して誤り訂正を行い、ECCデコーダ22に対して出力
する。トラッキング回路220は、メモリ回路222を
用いて、再生ヘッドが正しくビデオテープ40上のトラ
ックをトレースするように制御する。
The recording frame recorded on the video tape 40 is read out via the reproducing head and input to the inner code decoder 20. The inner code decoder 20 is shown in FIG.
Error correction is performed for each of the synchronous blocks using the inner code shown in FIG. The tracking circuit 220 uses the memory circuit 222 to control the reproducing head to correctly trace the track on the video tape 40.

【0039】外符号デコーダ224は、図3(A)に示
す外符号を用いて記録用フレームに配列されたピクチャ
ーグループGOPのIフレームデータおよびBフレーム
データに対して誤り訂正を行い、ジョグメモリ制御回路
226に対して出力する。ジョグメモリ制御回路226
は、外符号デコーダ224から入力されたIフレームデ
ータおよびBフレームデータをメモリ24に記憶し、外
部からの指示に応じて読み出し、いわゆるジョグシャト
ル等の特殊再生に係る処理を行い、デパック回路30に
対して出力する。
The outer code decoder 224 performs error correction on the I frame data and the B frame data of the picture group GOP arranged in the recording frame using the outer code shown in FIG. Output to the circuit 226. Jog memory control circuit 226
Stores the I-frame data and the B-frame data input from the outer code decoder 224 in the memory 24, reads them out according to an external instruction, performs a process related to a special reproduction such as a so-called jog shuttle, and sends the data to the depacking circuit 30. Output to

【0040】図6は、図1に示したデパック回路30の
構成を示す図である。ただし、図6においては、図示の
簡略化のためにデパック回路30とメモリ24との間の
ジョグメモリ制御回路226を省略してある。図6に示
すように、デパック回路30は、データ長エラー検出回
路300、アドレス発生回路302、読み出し制御回路
304、出力バッファ回路306および出力制御回路3
08から構成され、図5(B)に示したように記録用フ
レームに配列されたIフレームデータおよびBフレーム
データを再生して伸長復号装置26に対して出力する。
FIG. 6 is a diagram showing a configuration of the depacking circuit 30 shown in FIG. However, in FIG. 6, the jog memory control circuit 226 between the depacking circuit 30 and the memory 24 is omitted for simplification of the drawing. As shown in FIG. 6, the depack circuit 30 includes a data length error detection circuit 300, an address generation circuit 302, a read control circuit 304, an output buffer circuit 306, and an output control circuit 3.
08, and reproduces the I frame data and the B frame data arranged in the recording frame as shown in FIG.

【0041】伸長復号装置26は、デパック回路30か
ら入力されたIフレームデータおよびBフレームデータ
に対して、圧縮符号化装置10に対応する処理、つま
り、可変長符号化回路106に対応する可変長復号処
理、DCT回路104に対応する離散コサイン逆変換
(IDCT)処理、および、動き補償回路102に対応
するBフレームデータに対する動き補償処理を行って、
元の映像データVIに対応する映像データVOおよび音
声データAOを生成し、出力する。
The decompression decoding device 26 processes the I-frame data and the B-frame data input from the depacking circuit 30 in accordance with the processing performed by the compression coding apparatus 10, that is, the variable-length coding corresponding to the variable length coding circuit 106. The decoding process, the inverse discrete cosine transform (IDCT) process corresponding to the DCT circuit 104, and the motion compensation process for the B frame data corresponding to the motion compensation circuit 102 are performed.
The video data VO and the audio data AO corresponding to the original video data VI are generated and output.

【0042】以下、VTR装置1の動作を説明する。圧
縮符号化装置10に入力された映像データVIは、圧縮
符号化装置10により2フレームずつ、マクロブロック
ごとにIフレームデータおよびBフレームデータに圧縮
符号化され、ECCエンコーダ12に対して出力され
る。ECCエンコーダ12は、圧縮符号化装置10から
入力されたIフレームデータおよびBフレームデータ
を、それぞれ図5(B)に示したように記録用フレーム
に配列し、さらに外符号および内符号を付加して、図4
(A)に示した記録用フレームを完成し、ビデオテープ
40に記録する。
Hereinafter, the operation of the VTR device 1 will be described. The video data VI input to the compression encoding device 10 is compression-encoded by the compression encoding device 10 into I frame data and B frame data for each of two frames and for each macroblock, and is output to the ECC encoder 12. . The ECC encoder 12 arranges the I frame data and the B frame data input from the compression encoding device 10 into a recording frame as shown in FIG. 5B, and adds an outer code and an inner code. And FIG.
The recording frame shown in (A) is completed and recorded on the video tape 40.

【0043】内符号デコーダ20は、ビデオテープ40
に記録された記録用フレームに含まれるIデータおよび
Bデータを、記録用フレームに含まれる内符号を用いて
誤り訂正し、ECCデコーダ22に対して出力する。E
CCデコーダ22は、外符号を用いてIフレームデータ
およびBデータを誤り訂正する。
The inner code decoder 20 includes a video tape 40
The I data and the B data included in the recording frame recorded in the recording frame are error-corrected using the inner code included in the recording frame, and output to the ECC decoder 22. E
The CC decoder 22 performs error correction on the I frame data and the B data using the outer code.

【0044】さらに、デパック回路30は、同期ブロッ
クに配列可能なデータ長(108バイト)以下のIフレ
ームをそのまま取り出し、また、109バイト以上のI
フレームの先頭から108バイト目までの部分それぞれ
に、これらに対応するIフレームの109バイト目以降
の部分それぞれを付加して元のIフレームデータを再生
し、また、Bフレームデータを取り出して分離し、図3
(B)に示した元のピクチャーグループGOPのマクロ
ブロックの配列に戻して伸長復号装置26に対して出力
する。
Further, the depacking circuit 30 takes out an I frame having a data length (108 bytes) or less that can be arranged in a synchronous block as it is, and outputs an I frame having a data length of 109 bytes or more.
Each of the portions from the top of the frame to the 108th byte and the corresponding portions of the I frame from the 109th byte onward are added to reproduce the original I frame data, and the B frame data is extracted and separated. , FIG.
The original picture group GOP is returned to the macro block arrangement shown in FIG.

【0045】以上説明したように、本発明に係るVTR
装置1によれば、常に、記録用フレームを構成する同期
ブロックの先頭から再生時に重要なIフレームデータの
直流成分および低周波成分を読みだすことができる。従
って、伝送用フレームに含まれるIフレームデータにお
いて、内符号デコーダ20および外符号デコーダ224
による訂正が不可能なデータ誤りが生じても、その部分
から同じ同期ブロックの最後のデータまでが失われるの
みである。つまり、データ誤りが生じてもIフレームデ
ータの低周波部分は失われず、また、それ以降の同期ブ
ロックより優先されるマクロブロックの高周波成分(1
つの同期ブロックに納まらない部分)とBフレームデー
タとは失われない。
As described above, the VTR according to the present invention
According to the device 1, the DC component and the low-frequency component of the I frame data that are important at the time of reproduction can be always read from the head of the synchronous block forming the recording frame. Therefore, in the I frame data included in the transmission frame, the inner code decoder 20 and the outer code decoder 224
Even if a data error that cannot be corrected by the above occurs, only the part from that part to the last data of the same synchronization block is lost. That is, even if a data error occurs, the low-frequency portion of the I frame data is not lost, and the high-frequency component (1
And the B-frame data are not lost.

【0046】また、映像の再生のために、Bフレームデ
ータより重要なIフレームデータを、Bフレームデータ
に優先して救済することができるので、上述のようなデ
ータ誤りが生じた場合でも、再生後の映像に与える影響
を少なく済ますことができる。また、ECCデコーダ2
2において、ジョグメモリ制御回路226およびメモリ
24を用いた、いわゆるジャクシャトルと呼ばれる変速
再生を行う場合には、記録用フレームに含まれる同期ブ
ロックそれぞれの前方の一部がのみがビデオテープ40
から再生されるが、この場合にも常にIフレームの直流
成分および低周波側の成分が再生され、失われるのは比
較的、映像再生の際に欠落しても影響が少ないBデータ
のみなので、変速再生時の再生映像の品質が向上する。
In addition, since I-frame data, which is more important than B-frame data, can be repaired prior to B-frame data for video playback, even if a data error as described above occurs, playback can be performed. The effect on later images can be reduced. ECC decoder 2
2, when performing variable speed playback called a so-called “jack shuttle” using the jog memory control circuit 226 and the memory 24, only a part of the front of each of the synchronization blocks included in the recording frame is recorded on the video tape 40.
However, also in this case, the DC component of the I frame and the component on the low frequency side are always reproduced, and only the B data which has a relatively small effect even if it is lost during video reproduction is relatively small. The quality of reproduced video during variable speed reproduction is improved.

【0047】また、変速再生時に各同期ブロックの先頭
から終了識別子EOBまで、または、各ブロックの最後
まで読み出すことにより、Iフレームの直流成分および
低周波成分を取り出せるので、変速再生処理が容易にな
る。また、以上のような効果を奏するにもかかわらず、
本発明を実現するために、付加すべきハードウェア量が
少ない。
Further, at the time of variable speed reproduction, by reading from the beginning of each synchronous block to the end identifier EOB or the end of each block, the DC component and the low frequency component of the I frame can be taken out, so that the variable speed reproduction processing is facilitated. . Also, despite the above effects,
In order to realize the present invention, the amount of hardware to be added is small.

【0048】なお、図5(B)に示したように記録用フ
レームを用いるほか、例えば、記録用フレームにIフレ
ームデータおよびBフレームデータを書き込む際のクロ
ックとして、図5(B)に示したように記録用フレーム
を用いる場合の同期信号の1/N(Nは2以上の整数)
の周波数の同期信号を用い、記録用フレームの同期ブロ
ックをそれぞれをN個に分割して用いてもよい。この場
合には、同期ブロックの所定の位置からデパックを行う
ことにより、IフレームデータあるいはBフレームデー
タの直流成分および低周波成分を取り出すことができ
る。
In addition to using the recording frame as shown in FIG. 5B, for example, the clock shown in FIG. 5B is used as a clock for writing the I frame data and the B frame data in the recording frame. 1 / N (N is an integer of 2 or more) of the synchronization signal when the recording frame is used as described above.
May be used by dividing the synchronization block of the recording frame into N pieces. In this case, the DC component and the low frequency component of the I frame data or the B frame data can be extracted by performing depacking from a predetermined position of the synchronization block.

【0049】なお、図7に、1つの同期ブロックに1つ
のIフレームを対応させる場合のマクロブロックの切り
出しの例を示す。図7(A),(B)に示すように、1
6×16画素のマクロブロックを1フレームから45×
32個(1440個;NTSC方式の場合)または45
×38個(1710個;PAL方式の場合)切り出し
て、図4に示した同期ブロックそれぞれに1対1に対応
させる。1440:1710≒10:12の関係になる
ので、この比率はそのままビデオテープ40上のデータ
量の比率となる。
FIG. 7 shows an example of extracting a macroblock when one I frame is associated with one synchronous block. As shown in FIGS. 7A and 7B, 1
A macroblock of 6 × 16 pixels is converted from one frame to 45 ×
32 (1440; for NTSC) or 45
X38 pieces ( 1710 pieces; in the case of the PAL system ) are cut out and made to correspond one-to-one to each of the synchronous blocks shown in FIG. Since the relationship is 1440: 1710 ≒ 10: 12, this ratio becomes the ratio of the data amount on the video tape 40 as it is.

【0050】従って、VTR装置1において、ビデオテ
ープ40のトラック1本につき1つの同期ブロックを対
応付けて記録し、NTSC方式の場合10本のトラック
を1組に扱って処理を行い、PAL方式の場合には12
本のトラックを1組にして扱うことにより、VTR装置
1の機械部分およびビデオテープ40の記録フォーマッ
トを変更することなく、同一の装置を用いてこれら2方
式のデータに係るジョグシャトル再生等の処理が可能と
なる。
Therefore, in the VTR device 1, one synchronous block is recorded for each track of the video tape 40 in association with each other, and in the case of the NTSC system, the processing is performed by treating ten tracks as one set. 12 in case
By treating the book tracks as one set, processing such as jog shuttle reproduction and the like concerning these two types of data can be performed using the same apparatus without changing the mechanical part of the VTR apparatus 1 and the recording format of the video tape 40. Becomes possible.

【0051】[0051]

【実施例2】以下、本発明の第2の実施例を説明する。
第2の実施例は、図1に示したVTR装置1において、
パック回路14およびデパック回路30の動作を改良
し、ビデオテープ40からデータを再生する際に、記録
用フレームにデータ誤りが発生した場合であっても、I
フレームデータの直流成分および低い周波数成分だけで
なく、Bフレームデータの直流成分および低い周波数成
分も救済可能としたものである。
Embodiment 2 Hereinafter, a second embodiment of the present invention will be described.
In the second embodiment, the VTR device 1 shown in FIG.
The operations of the packing circuit 14 and the depacking circuit 30 are improved so that, when data is reproduced from the video tape 40, even if a data error occurs in a recording frame, I
Not only DC components and low frequency components of frame data but also DC components and low frequency components of B frame data can be rescued.

【0052】図8は、第2の実施例における、図1およ
び図2に示したパック回路14の動作を説明する図であ
る。図8(E)に示すように、第2の実施例において、
パック回路14は、第1の実施例において図5(B)に
示した記録用フレームを、Iフレーム用の領域とBフレ
ーム用の領域に分けて用い、これらの領域それぞれに、
IフレームデータおよびBフレームデータを第1の実施
例と同様な方法でパックする。
FIG. 8 is a diagram for explaining the operation of the pack circuit 14 shown in FIGS. 1 and 2 in the second embodiment. As shown in FIG. 8E, in the second embodiment,
The pack circuit 14 uses the recording frame shown in FIG. 5B in the first embodiment by dividing the recording frame into an I-frame area and a B-frame area.
The I frame data and the B frame data are packed in the same manner as in the first embodiment.

【0053】以下、第2の実施例におけるパック回路1
4の動作を説明する。まず、パック回路14は、図8
(A)に示すIフレームデータの内、データ長が図8
(E)に示すIフレーム用領域のデータ長a以下のもの
(図8(A)に示すI1,I3〜I6,I8)、およ
び、データ長がデータ長a以上のもの(図8(A)に示
すI2,I7)の先頭からデータ長aまでの部分を、そ
れぞれ対応する同期ブロックのIフレーム用領域の先頭
から配列する(図8(E)に示すI0−0〜I8−0;
処理1)。
Hereinafter, the pack circuit 1 in the second embodiment will be described.
Operation 4 will be described. First, the pack circuit 14 is configured as shown in FIG.
The data length of the I frame data shown in FIG.
8 (A) (I1, I3 to I6 and I8 shown in FIG. 8 (A)) and the data length of the I frame area shown in FIG. 8 (A) and the data length not less than a (FIG. 8 (A)). Are arranged from the beginning of the I-frame area of the corresponding synchronous block from the beginning of I2, I7) to the data length a (I0-0 to I8-0 shown in FIG. 8E).
Processing 1).

【0054】次に、パック回路14は、データ長がデー
タ長a以上のIフレームデータ(図8(A)に示すI
2,I7)のデータ長a以降の部分(オーバーフローデ
ータ)を、上記処理1の終了後のIフレーム用領域の空
き領域の先頭から順に配列する(図8(E)に示すI2
−1,I2−2,I7−1〜I7−3);処理2)。
Next, the pack circuit 14 generates I-frame data whose data length is equal to or longer than the data length a (I-frame data shown in FIG. 8A).
2, I7), the portion (overflow data) after the data length a is arranged in order from the head of the free area of the I-frame area after the above-mentioned processing 1 (I2 shown in FIG. 8E).
-1, I2-2, I7-1 to I7-3); processing 2).

【0055】さらに、パック回路14は、Bフレームデ
ータについて、処理1および処理2に対応する処理を行
う。まず、パック回路14は、図8(B)に示すBフレ
ームデータの内、データ長が図8(E)に示すBフレー
ム用領域のデータ長b以下のもの(図8(A)に示すB
1〜B3,B6,B7)、および、データ長がデータ長
b以上のもの(図8(A)に示すB4,B5,B8)の
先頭からデータ長bまでの部分を、それぞれ対応する同
期ブロックのBフレーム用領域の先頭から配列する(図
8(E)に示すB0−0〜B7−0;処理1’)。
Further, the pack circuit 14 performs processing corresponding to processing 1 and processing 2 on the B frame data. First, the pack circuit 14 has a data length of less than or equal to the data length b of the B frame area shown in FIG. 8E among the B frame data shown in FIG.
1 to B3, B6, and B7) and the portion from the beginning to the data length b of data whose data length is equal to or longer than the data length b (B4, B5, and B8 shown in FIG. (B0-0 to B7-0 shown in FIG. 8E; processing 1 ').

【0056】次に、パック回路14は、データ長がデー
タ長b以上のBフレームデータ(図8(A)に示すB
4,B5)のデータ長b以降の部分(オーバーフローデ
ータ)を、上記処理1’の終了後のIフレーム領域およ
びBフレーム用領域の空き領域の先頭から順に配列する
(図8(E)に示すB4−1,,B5−1,B5−2,
B8−1〜B8−4);処理2’)。
Next, the pack circuit 14 transmits the B frame data whose data length is equal to or longer than the data length b (B frame data shown in FIG. 8A).
4, (B5)) and the part (overflow data) after the data length b are sequentially arranged from the head of the free area of the I-frame area and the B-frame area after the end of the processing 1 '(see FIG. 8E). B4-1, B5-1, B5-2,
B8-1 to B8-4); Treatment 2 ′).

【0057】以上述べたパック回路14の動作は、第1
の実施例におけるパック回路14の処理を、Iフレーム
用領域においてIフレームデータのみについて行い、B
フレーム用領域においてBフレームデータのみについて
繰り返し行うことにより実現することができる。図8
(E)に示したようにIフレーム用領域およびBフレー
ム用領域に配列された映像データは、ビデオテープ40
に記憶される。
The operation of the pack circuit 14 described above is based on the first
The processing of the pack circuit 14 in the embodiment is performed only on the I frame data in the I frame area.
This can be realized by repeatedly performing only the B frame data in the frame area. FIG.
The video data arranged in the I frame area and the B frame area as shown in FIG.
Is stored.

【0058】以下、デパック回路30の動作を説明す
る。ビデオテープ40から再生された映像データは、図
8(E)に示した記録用フレームに配列されてデパック
回路30に入力される。
The operation of the depack circuit 30 will be described below. The video data reproduced from the video tape 40 is arranged in the recording frame shown in FIG.

【0059】デパック回路30は、図8(E)に示した
同期フレームのIフレーム領域それぞれから、それぞれ
データ長がデータ長a以下のIフレームデータ、およ
び、データ長がデータ長a以上のIフレームデータの先
頭からデータ長aまでの部分を取り出す。さらにデパッ
ク回路30は、取り出したこれらのIフレームデータ
に、それぞれ対応するオーバーフローデータを付加し
て、図8(A)に示す元のIフレームデータを再生す
る。
The depacking circuit 30 converts the I frame data whose data length is equal to or less than the data length a and the I frame data whose data length is equal to or more than the data length a from each of the I frame areas of the synchronous frame shown in FIG. The part from the beginning of the data to the data length a is extracted. Further, the depacking circuit 30 adds the corresponding overflow data to the extracted I frame data, and reproduces the original I frame data shown in FIG.

【0060】デパック回路30は、Bフレーム用領域に
ついても、Iフレーム用領域と同様な処理を行ってBフ
レームデータを再生する。つまり、デパック回路30
は、図8(E)に示した同期フレームのBフレーム領域
それぞれから、それぞれデータ長がデータ長b以下のB
フレームデータ、および、データ長がデータ長b以上の
Bフレームデータの先頭からデータ長bまでの部分を取
り出す。さらにデパック回路30は、取り出したこれら
のBフレームデータに、それぞれ対応するオーバーフロ
ーデータを付加して、図8(B)に示す元のBフレーム
データを再生する。
The depacking circuit 30 reproduces the B frame data by performing the same processing as that for the I frame area for the B frame area. That is, the depack circuit 30
Is a B frame whose data length is less than or equal to the data length b from each of the B frame areas of the synchronization frame shown in FIG.
The frame data and the portion from the head of the B frame data whose data length is equal to or longer than the data length b to the data length b are extracted. Further, the depacking circuit 30 adds the corresponding overflow data to the extracted B frame data, and reproduces the original B frame data shown in FIG.

【0061】以上のようにデパック回路30の処理を変
更することにより、図8(E)の用に記録用フレームに
配列された映像データから、元のIフレームデータおよ
びBフレームデータを再生することができる。以上述べ
たデパック回路30の動作は、第1の実施例におけるデ
パック回路30の処理を、Iフレーム用領域においてI
フレームデータのみについて行い、Bフレーム用領域お
よびIフレームデータを取り出した後のIフレーム用領
域の残りの部分においてBフレームデータのみについて
繰り返し行うことにより実現することができる。
By changing the processing of the depacking circuit 30 as described above, the original I frame data and B frame data can be reproduced from the video data arranged in the recording frame as shown in FIG. Can be. The operation of the depacking circuit 30 described above is different from the operation of the depacking circuit 30 in the first embodiment in that the processing of the depacking circuit 30 is performed in the I frame area.
This can be realized by repeating only the B frame data in the remaining portion of the I frame area after extracting the B frame area and the I frame data after extracting only the frame data.

【0062】伝送用フレームにデータ誤りが発生した際
に、図8(C)に示すIフレームデータとBフレームデ
ータとを単純に記録用フレームの先頭から配列する従来
の方法を用いた場合には、データ誤りが発生した位置以
降のデータが全て再生不能になる。また、図8(D)に
示す第1の実施例において説明した方法によりIフレー
ムデータとBフレームデータとを配列する方法を用いた
場合には、Iフレームデータの所定の部分のみを救済可
能である。
When a data error occurs in the transmission frame, the conventional method of simply arranging the I frame data and the B frame data shown in FIG. 8C from the beginning of the recording frame is used. , All the data after the position where the data error occurs becomes unreproducible. When the method of arranging the I frame data and the B frame data by the method described in the first embodiment shown in FIG. 8D is used, only a predetermined portion of the I frame data can be rescued. is there.

【0063】これらの方法を用いた場合に比べ、第2の
実施例に示した方法でIフレームデータおよびBフレー
ムデータを配列すると、それぞれ同期ブロックの所定の
位置からデータを読み出すことにより、Iフレームデー
タの所定の部分とBフレームデータの直流成分および低
い周波数の成分を救済することができる。従って、第2
の実施例に示した方法でIフレームデータおよびBフレ
ームデータを配列すると、第1の実施例に示した方法と
同様な効果が得られる上に、伝送用フレームにデータ誤
りが発生した際に、第1の実施例に示した方法で映像デ
ータを記録した場合よりも、さらに再生後の映像の品質
が高くなる。
When the I frame data and the B frame data are arranged by the method shown in the second embodiment as compared with the case where these methods are used, the I frame data and the B frame data are read out from the predetermined positions of the synchronous blocks, respectively. A predetermined portion of the data and a DC component and a low frequency component of the B frame data can be rescued. Therefore, the second
When the I-frame data and the B-frame data are arranged by the method shown in the first embodiment, the same effect as that of the method shown in the first embodiment can be obtained, and when a data error occurs in the transmission frame, The quality of the reproduced video is higher than when the video data is recorded by the method shown in the first embodiment.

【0064】なお、記録用フレームにおけるIフレーム
用領域のデータ長aとBフレーム用領域のデータ長b
は、例えば、通常の画像データをIフレームデータおよ
びBフレームデータに圧縮符号化する際の平均的なデー
タ量の比から求めることができる。平均的なデータ量か
らデータ長a,bを求めた場合には、ピクチャーグルー
プGOPそれぞれの実際のIフレームデータおよびBフ
レームデータを、Iフレーム用領域およびBフレーム用
領域にそれぞれ収容することができない場合がある。し
かし、図8(E)に示すように、Iフレーム用領域を大
きめにとり、Iフレーム用領域の残りの領域を用いてB
フレームデータの剰余を配列することができるので問題
は生じない。また、データ長a,bは、必ずしも固定長
でなくともよく、ピクチャーグループGOPごとにIフ
レームデータおよびBフレームデータのデータ量の比を
算出し、このデータ量の比に基づいてピクチャーグルー
プごとに定めてもよい。
The data length a of the I frame area and the data length b of the B frame area in the recording frame
Can be determined, for example, from the ratio of the average data amount when compression-coding normal image data into I-frame data and B-frame data. When the data lengths a and b are obtained from the average data amount, the actual I frame data and B frame data of each picture group GOP cannot be accommodated in the I frame area and the B frame area, respectively. There are cases. However, as shown in FIG. 8 (E), the area for the I frame is made larger, and B
There is no problem because the remainder of the frame data can be arranged. Further, the data lengths a and b do not necessarily have to be fixed lengths. The data amount ratios of the I frame data and the B frame data are calculated for each picture group GOP, and the data amount ratios are calculated for each picture group based on this data amount ratio. May be determined.

【0065】[0065]

【実施例3】以下、本発明の第3の実施例を説明する。
第3の実施例は、ピクチャーグループGOPが、さらに
多くの数のIフレームデータ、Bフレームデータおよび
前方予測符号化データ(Pフレームデータ)から構成さ
れている場合に対応して第2の実施例に示したパック回
路14およびデパック回路30の動作を改良したもので
ある。以下、第3の実施例におけるパック回路14の動
作を説明する。図9は、第3の実施例における、図1お
よび図2に示したパック回路14の動作を説明する図で
ある。なお、図9においては、図示および説明の簡略化
のために、同期ブロックが5個の場合について示してあ
る。
Embodiment 3 Hereinafter, a third embodiment of the present invention will be described.
The third embodiment corresponds to the case where the picture group GOP is composed of a larger number of I-frame data, B-frame data and forward prediction coded data (P-frame data). The operation of the pack circuit 14 and the depack circuit 30 shown in FIG. Hereinafter, the operation of the pack circuit 14 in the third embodiment will be described. FIG. 9 is a diagram for explaining the operation of the pack circuit 14 shown in FIGS. 1 and 2 in the third embodiment. FIG. 9 shows a case where there are five synchronization blocks for simplification of illustration and description.

【0066】図9(A),(B)に示すように、第3の
実施例においては、ピクチャーグループGOPは、Iフ
レームデータ、3つのBフレームデータ(B,B’,
B”)およびPフレームデータの5種類から構成され、
これら5種類のデータそれぞれは、図9(C)に示すよ
うに、記録用フレームを分割した5つの領域それぞれ
に、第2の実施例に示した方法で配列される。
As shown in FIGS. 9A and 9B, in the third embodiment, a picture group GOP is composed of I frame data and three B frame data (B, B ',
B ") and P frame data.
As shown in FIG. 9C, each of these five types of data is arranged in each of the five areas obtained by dividing the recording frame by the method described in the second embodiment.

【0067】まず、パック回路14は、図9(A)に示
すIフレームデータの内、データ長が図9(C)に示す
Iフレーム用領域のデータ長a以下のもの(図9(A)
に示すI2,I3,I5)、および、データ長がデータ
長a以上のもの(図9(A)に示すI1,I4)の先頭
からデータ長aまでの部分を、それぞれ対応する同期ブ
ロックのIフレーム用領域の先頭から配列する(図9
(E)に示すI0−0〜I5−0)。
First, the pack circuit 14 of the I frame data shown in FIG. 9A has a data length less than or equal to the data length a of the I frame area shown in FIG. 9C (FIG. 9A).
(I2, I3, I5 shown in FIG. 9A), and the part from the head of data having a data length equal to or greater than the data length a (I1, I4 shown in FIG. Arrayed from the beginning of the frame area (FIG. 9
(I0-0 to I5-0 shown in (E)).

【0068】次に、パック回路14は、図9(B)に示
すBフレームデータ(B’,B,B”)およびPフレー
ムデータの内、データ長が図9(C)にそれぞれ示すB
フレーム用領域のデータ長b’,b,b”およびPフレ
ーム領域のデータ長c以下のもの(図9(B)に示す
B’1,B’3〜B’5,B2〜B4,B”1,B”3
〜B”5,P1,P3,P5)、および、データ長がデ
ータ長b’,b,b”,c以上のもの(図9(B)に示
すB’2,B1,B5,B”2,P2,P4)の先頭か
らデータ長b’,b,b”,cそれぞれまでの部分を、
それぞれ対応する同期ブロックの3個のBフレーム用領
域およびPフレーム領域それぞれの先頭から配列する
(図9(C)に示すB1’−0〜P1−0)。
Next, the pack circuit 14 sets the data length of the B frame data (B ', B, B ") and the P frame data shown in FIG.
The data length b ', b, b "of the frame area and the data length c of the P frame area or less (B'1, B'3 to B'5, B2 to B4, B" shown in FIG. 9B) 1, B "3
~ B "5, P1, P3, P5) and those having a data length equal to or longer than the data lengths b ', b, b", c (B'2, B1, B5, B "2 shown in FIG. 9B). , P2, P4) to the data lengths b ′, b, b ″, and c, respectively,
The three B frame areas and the P frame areas of the corresponding synchronous blocks are arranged from the head of each (B1'-0 to P1-0 shown in FIG. 9C).

【0069】次に、パック回路14は、図9(A),
(B)に示すIフレームデータ、3種類のBフレームデ
ータおよびPフレームデータのオーバーフローデータ
(I1−1〜I1−5,I4−1〜I4−5,B’2−
1,B’2−1,B1−1,B1−2,B5−1,B”
2−1,P2−1,P4−1)を、Iフレーム用領域、
3個のBフレーム用領域およびPフレーム領域の空き領
域の先頭から順に、図9(C)に示すように配列する。
Next, the pack circuit 14 is constructed as shown in FIG.
Overflow data (I1-1 to I1-5, I4-1 to I4-5, B'2-) of I frame data, three types of B frame data, and P frame data shown in FIG.
1, B'2-1, B1-1, B1-2, B5-1, B "
2-1 and P2-1 and P4-1) are defined as an I-frame area,
The three B-frame areas and the P-frame area are arranged in order from the beginning of the empty area as shown in FIG. 9C.

【0070】以上述べたパック回路14の処理は、第1
の実施例におけるパック回路14の処理を、Iフレーム
用領域、3個のBフレーム用領域、Pフレーム用領域に
おいて、Iフレームデータ、3種類のBフレームデータ
およびPフレームデータについて行い、これら5個の領
域の空き領域において、これら5個のデータのオーバー
フローデータについて行うことにより実現可能である。
図9(C)に示したようにIフレーム用領域、3個のB
フレーム用領域およびPフレーム領域に配列された映像
データはビデオテープ40に記憶される。
The processing of the pack circuit 14 described above is performed in the first
The processing of the pack circuit 14 in the embodiment is performed on the I frame data, the three types of B frame data, and the P frame data in the I frame area, three B frame areas, and the P frame area. This can be realized by performing the processing on the overflow data of these five data in the free area of the area.
As shown in FIG. 9C, the I frame area and three B
The video data arranged in the frame area and the P frame area is stored on the video tape 40.

【0071】以下、デパック回路30の動作を説明す
る。ビデオテープ40から再生された映像データは、図
9(C)に示した記録用フレームに配列されてデパック
回路30に入力される。
Hereinafter, the operation of the depacking circuit 30 will be described. The video data reproduced from the video tape 40 is arranged in the recording frame shown in FIG.

【0072】デパック回路30は、図9(C)に示した
同期フレームのIフレーム領域、3種類のBフレーム領
域およびPフレーム領域それぞれから、それぞれデータ
長がデータ長a以下のIフレームデータとデータ長がデ
ータ長a以上のIフレームデータの先頭からデータ長a
までの部分、それぞれデータ長がデータ長b’,b,
b”以下のBフレームデータとデータ長がデータ長
b’,b,b”以上のIフレームデータの先頭からデー
タ長b’,b,b”までの部分、および、データ長がデ
ータ長c以下のPフレームデータとデータ長がデータ長
c以上のPフレームデータの先頭からデータ長cまでの
部分を取り出す。
The depacking circuit 30 converts the I frame data and the data of the three types of B frame and P frame regions of the synchronous frame shown in FIG. Data length a from the beginning of I frame data whose length is longer than data length a
Up to the data lengths b ', b,
B frame data below b "and a portion from the beginning of I frame data having a data length of b ', b, b" or more to the data length b', b, b ", and a data length of not more than data length c And the portion from the beginning of the P frame data whose data length is equal to or longer than the data length c to the data length c is extracted.

【0073】さらにデパック回路30は、取り出したこ
れらのIフレームデータ、3種類のBフレームデータお
よびPフレームに、それぞれ対応するオーバーフローデ
ータを付加して、図9(A),(B)に示す元のIフレ
ームデータ、3種類のBフレームデータおよびPフレー
ムデータを再生する。以上述べたデパック回路30の動
作は、第1の実施例におけるデパック回路30の処理
を、Iフレーム用領域、3個のBフレーム用領域および
Pフレーム領域それぞれにおいて、Iフレームデータ、
3種類のBフレームデータおよびPフレームデータそれ
ぞれについて繰り返して行い、これらのデータを取り出
した後の記録用フレームの残りの部分において、Iフレ
ームータ、3種類のBフレームデータおよびPフレーム
データそれぞれのオーバーフローデータについて行うこ
とにより実現することができる。
Further, the depacking circuit 30 adds overflow data corresponding to the extracted I-frame data, three types of B-frame data and P-frame, respectively, to obtain the original data shown in FIGS. 9A and 9B. , And three types of B frame data and P frame data. The operation of the depacking circuit 30 described above is based on the processing of the depacking circuit 30 in the first embodiment, in which the I frame data, the three B frame areas, and the P frame
The repetition is performed for each of the three types of B-frame data and P-frame data, and the I frame data and the overflow data for each of the three types of B-frame data and P-frame data are obtained in the remaining portion of the recording frame after extracting these data. Can be realized by performing

【0074】第3の実施例に示した方法でIフレームデ
ータ、3種類のBフレームデータおよびPフレームデー
タを配列すると、それぞれの先頭部分が既知であるため
に、この既知の位置からデータを読み出すことにより、
記録用フレームにデータ誤りが生じている場合であって
も、Iフレームデータ、3種類のBフレームデータおよ
びPレームデータそれぞれの直流成分および低い周波数
の成分を救済することができる。
When I-frame data, three types of B-frame data and P-frame data are arranged by the method shown in the third embodiment, the data is read from this known position because the respective leading portions are known. By doing
Even if a data error occurs in the recording frame, the DC component and the low frequency component of each of the I frame data, the three types of B frame data, and the P frame data can be rescued.

【0075】このように、第3の実施例に示した方法に
よれば、第2の実施例に示した方法を、ピクチャーグル
ープGOPが2種類以上のデータから構成されている場
合にも適用することができる。従って、映像データが3
種類以上のデータから構成されていても、映像データを
含む伝送用フレームにデータ誤りが発生した際に、第1
の実施例に示した方法で映像データを記録した場合より
も、さらに再生後の映像の品質を高くすることができ
る。なお、第3の実施例に示した方法についても、第2
の実施例に示した方法と同様な変形が可能である。
As described above, according to the method shown in the third embodiment, the method shown in the second embodiment is also applied to a case where the picture group GOP is composed of two or more types of data. be able to. Therefore, if the video data is 3
Even if the data is composed of more than two types of data, when a data error occurs in a transmission frame including video data, the first
The quality of the reproduced video can be further improved as compared with the case where the video data is recorded by the method described in the embodiment. Note that the method shown in the third embodiment is also the same as that of the second embodiment.
Modifications similar to the method described in the embodiment can be made.

【0076】[0076]

【発明の効果】以上説明したように、本発明に係る符号
化方法とその装置および復号化方法とその装置によれ
ば、圧縮符号化後の映像データの途中にデータ誤りが発
生しても、圧縮符号化後の映像データの低い周波数成分
の多くを救済することができる。また、本発明に係る
号化方法とその装置および復号化方法とその装置によれ
ば、圧縮符号化後の映像データの途中にデータ誤りが発
生した場合に、インターフレームデータに優先して、映
像の再生のためにより必要性が高いイントラフレームデ
ータを救済することができる。
As described above, according to the present invention, the code according to the present invention
According to the encoding method and apparatus and the decoding method and apparatus , even if a data error occurs in the video data after compression encoding, many of the low frequency components of the video data after compression encoding are rescued. be able to. Further, the symbol according to the present invention
According to the encoding method and apparatus and the decoding method and apparatus , when a data error occurs in the middle of video data after compression and encoding, it is necessary to reproduce video in preference to inter-frame data. Highly reliable intra-frame data can be rescued.

【0077】また、本発明に係る符号化方法とその装置
および復号化方法とその装置によれば、圧縮符号化後の
映像データにデータ誤りが発生しても、より高品質な再
生映像を得ることができる。また、本発明に係る符号化
方法とその装置および復号化方法とその装置によれば、
いわゆるジョグシャトル再生等の変速再生を行っても高
品質な再生映像を得ることができる。
Further, the encoding method and the apparatus according to the present invention
According to the decoding method and the apparatus , even if a data error occurs in the video data after the compression encoding, a higher quality reproduced video can be obtained. Also, the encoding according to the present invention
According to the method and the apparatus and the decoding method and the apparatus ,
Even if variable speed playback such as so-called jog shuttle playback is performed, a high-quality playback video can be obtained.

【図面の簡単な説明】[Brief description of the drawings]

【図1】図1は、本発明に係るVTR装置の構成を示す
図である。
FIG. 1 is a diagram showing a configuration of a VTR device according to the present invention.

【図2】図1に示した圧縮符号化装置およびパック回路
の構成を示す図である。
FIG. 2 is a diagram illustrating a configuration of a compression encoding device and a pack circuit illustrated in FIG. 1;

【図3】図3に示した圧縮符号化装置の処理を説明する
図である。
FIG. 3 is a diagram for explaining processing of the compression encoding device shown in FIG. 3;

【図4】記録用フレームの構成を示す図である。FIG. 4 is a diagram showing a configuration of a recording frame.

【図5】図1および図2に示したパック回路により記録
用フレームに配列されたIフレームデータおよびBフレ
ームデータを説明する図である。
FIG. 5 is a diagram illustrating I-frame data and B-frame data arranged in a recording frame by the pack circuit shown in FIGS. 1 and 2;

【図6】図1に示したデパック回路の構成を示す図であ
る。
FIG. 6 is a diagram illustrating a configuration of a depack circuit illustrated in FIG. 1;

【図7】1つの同期ブロックに1つのIフレームを対応
させる場合のマクロブロックの切り出しの例を示す。
FIG. 7 shows an example of cutting out a macroblock when one I frame is associated with one synchronization block.

【図8】第2の実施例における図1および図2に示した
パック回路の動作を説明する図である。
FIG. 8 is a diagram illustrating the operation of the pack circuit shown in FIGS. 1 and 2 in the second embodiment.

【図9】第3の実施例における図1および図2に示した
パック回路の動作を説明する図である。
FIG. 9 is a diagram illustrating the operation of the pack circuit shown in FIGS. 1 and 2 in the third embodiment.

【図10】従来のデータ再生方法を用いて、Iフレーム
データを記録用フレームに配列する方法を示す図であ
る。
FIG. 10 is a diagram showing a method of arranging I-frame data in a recording frame using a conventional data reproducing method.

【符号の説明】[Explanation of symbols]

1…VTR装置、10…圧縮符号化装置、102…動き
補償回路、104…DCT回路、106…可変長符号化
回路、12…ECCエンコーダ、122…外符号エンコ
ーダ、124,126…FIFO回路、128…内符号
エンコーダ、14…データ長検出回路、142…メモリ
書き込み制御回路、144,146…アドレス発生回
路、148…残りデータ長計算回路、150…サブメモ
リ書き込み制御回路、154…サブメモリ、16…主メ
モリ、20…内符号デコーダ、22…ECCデコーダ、
220…トラッキング回路、222…メモリ回路、22
4…外符号デコーダ、226…外符号デコーダ、24…
メモリ、30…デパック回路、300…データ長エラー
検出回路、302…アドレス発生回路、304…読み出
し制御回路、306…出力バッファ回路、308…出力
制御回路、26…伸長復号装置、28…フレームメモリ
DESCRIPTION OF SYMBOLS 1 ... VTR apparatus, 10 ... compression coding apparatus, 102 ... motion compensation circuit, 104 ... DCT circuit, 106 ... variable length coding circuit, 12 ... ECC encoder, 122 ... outer code encoder, 124, 126 ... FIFO circuit, 128 ... Inner code encoder, 14 ... Data length detection circuit, 142 ... Memory write control circuit, 144,146 ... Address generation circuit, 148 ... Remaining data length calculation circuit, 150 ... Sub memory write control circuit, 154 ... Sub memory, 16 ... Main memory, 20 ... inner code decoder, 22 ... ECC decoder,
220: tracking circuit, 222: memory circuit, 22
4 outer code decoder, 226 outer code decoder, 24
Memory: 30: depacking circuit, 300: data length error detection circuit, 302: address generation circuit, 304: read control circuit, 306: output buffer circuit, 308: output control circuit, 26: decompression decoding device, 28: frame memory

Claims (10)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】映像データを符号化する符号化装置におい
て、 上記映像データを、イントラフレームまたはインターフ
レームで符号化する符号化手段と、 上記イントラフレームとして符号化されたイントラピク
チャと、上記インターフレームとして符号化されたイン
ターピクチャを、所定の固定長となるようにパッキング
する際に、上記イントラピクチャを上記インターピクチ
ャに対して優先的にパッキングするとともに、上記イン
ターピクチャのパッキング位置を当該インターピクチャ
の先頭位置が同定できるように上記インターピクチャを
パッキングするパッキング手段とを備えたことを特徴と
する符号化装置。
An encoding apparatus for encoding video data, comprising: encoding means for encoding the video data in an intra frame or an inter frame; an intra picture encoded as the intra frame; When packing an inter picture encoded as a predetermined fixed length, the intra picture is preferentially packed with respect to the inter picture, and the packing position of the inter picture is set to the inter picture. A coding unit for packing the inter picture so that a head position can be identified.
【請求項2】上記イントラピクチャのパッキング領域
と、前記インターピクチャのパッキング領域とは区別さ
れており、 上記パッキング手段は、 上記イントラピクチャについて、第1の長さ以内のイン
トラピクチャについて順次、上記イントラピクチャパッ
キング領域に格納し、上記第1の長さ以上のイントラピ
クチャについて上記イントラピクチャパッキング領域の
空き領域にパッキングし、 上記インターピクチャについて、第2の長さ以内のイン
ターピクチャについて順次、上記インターピクチャパッ
キング領域に格納し、上記第2の長さ以上のインターピ
クチャについて上記インターピクチャパッキング領域の
空き領域にパッキングする、 請求項1記載の符号化装置。
2. The packing area of the intra picture and the packing area of the inter picture are distinguished from each other, and the packing means sequentially performs the intra picture processing for the intra pictures within a first length. The intra picture is stored in a picture packing area, and the intra picture of the first length or more is packed in a free area of the intra picture packing area. The inter picture is sequentially stored for an inter picture of a second length or less. The encoding device according to claim 1, wherein the encoding unit stores the inter picture having the second length or more in a packing area and packs the inter picture in a free area of the inter picture packing area.
【請求項3】上記第1の長さおよび第2の長さは、上記
映像データをイントラピクチャとインターピクチャに圧
縮符号化したときのデータ量から決定する、 請求項2記載の符号化装置。
3. The encoding apparatus according to claim 2, wherein the first length and the second length are determined from a data amount when the video data is compression-coded into an intra picture and an inter picture.
【請求項4】上記パッキングされたデータに、外符号お
よび内符号を付す外符号・内符号付加手段をさらに有す
る、 請求項1記載の符号化装置。
4. The encoding apparatus according to claim 1, further comprising outer code / inner code adding means for adding an outer code and an inner code to the packed data.
【請求項5】上記符号化手段は、上記映像データを複数
のブロックに分割し、上記ブロックそれぞれに含まれる
所定数の時間領域の映像データを周波数領域のデータに
変換し、低い周波数の成分から順に並べて可変長符号化
し、前記所定数のフレームそれぞれおよび上記複数のブ
ロックそれぞれに対応する圧縮映像データを生成する、 請求項1記載の符号化装置。
5. The coding means divides the video data into a plurality of blocks, converts a predetermined number of time domain video data included in each of the blocks into frequency domain data, and The encoding device according to claim 1, wherein the encoding is performed by sequentially arranging the encoded data and performing variable length encoding to generate compressed video data corresponding to each of the predetermined number of frames and each of the plurality of blocks.
【請求項6】映像データを符号化する符号化方法におい
て、 上記映像データを、イントラフレームまたはインターフ
レームで符号化する段階と、 上記イントラフレームとして符号化されたイントラピク
チャと、上記インターフレームとして符号化されたイン
ターピクチャを、所定の固定長となるようにパッキング
する際に、上記イントラピクチャを上記インターピクチ
ャに対して優先的にパッキングするとともに、上記イン
ターピクチャのパッキング位置を当該インターピクチャ
の先頭位置が同定できるように上記インターピクチャを
パッキングするパッキング段階とを備えたことを特徴と
する符号化方法。
6. An encoding method for encoding video data, comprising: encoding the video data in an intra frame or an inter frame; encoding an intra picture encoded as the intra frame; and encoding the video data as the inter frame. When packing the converted inter-pictures to have a predetermined fixed length, the intra-pictures are preferentially packed with respect to the inter-pictures, and the packing position of the inter-pictures is set to the head position of the inter-pictures. And a packing step of packing the inter-picture so as to identify the inter-picture.
【請求項7】映像データがイントラフレームまたはイン
ターフレームで符号化され、上記イントラフレームとし
て符号化されたイントラピクチャと上記インターフレー
ムとして符号化されたインターピクチャとが所定の固定
長となるようにパッキングされた際に、上記イントラピ
クチャを上記インターピクチャに対して優先的にパッキ
ングされるとともに、上記インターピクチャのパッキン
グ位置を当該インターピクチャの先頭位置が同定できる
ように上記インターピクチャをパッキングされた符号化
映像データを入力する手段と、 上記パッキング処理とは逆の処理で上記イントラピクチ
ャと上記インターピクチャとをデパッキングする手段
と、 上記デパッキングされたピクチャを上記符号化処理と逆
の復号化処理を行う復号化手段と、 を備えたことを特徴とする復号化装置。
7. The video data is encoded in an intra frame or an inter frame, and packing is performed so that an intra picture encoded as the intra frame and an inter picture encoded as the inter frame have a predetermined fixed length. In this case, the intra picture is preferentially packed with respect to the inter picture, and the packing position of the inter picture is packed so that the head position of the inter picture can be identified. Means for inputting video data; means for depacking the intra-picture and the inter-picture in a process opposite to the packing process; and a process for decoding the depacked picture in a manner opposite to the encoding process. Decryption means to perform; Decoding and wherein the was e.
【請求項8】上記イントラピクチャのパッキング領域と
前記インターピクチャのパッキング領域とは区別されて
おり、 上記イントラピクチャのパッキング領域には第1の長さ
以内のイントラピクチャが順次格納され、上記第1の長
さ以上のイントラピクチャ部分が上記イントラピクチャ
パッキング領域の空き領域にパッキングされており、 上記インターピクチャのパッキング領域には、第2の長
さ以内のインターピクチャが順次格納され、上記第2の
長さ以上のインターピクチャ部分が上記インターピクチ
ャパッキング領域の空き領域にパッキングされており、 上記デパッキング手段は、上記イントラピクチャパッキ
ング領域の格納状態および上記インターピクチャパッキ
ング領域の格納状態に応じてデパッキング処理を行う、 請求項7記載の復号化装置。
8. The packing area of the intra picture and the packing area of the inter picture are distinguished, and the packing area of the intra picture sequentially stores intra pictures of a first length or less. Is packed in a free area of the intra picture packing area, and inter pictures of a second length or less are sequentially stored in the packing area of the inter picture, and the second picture is stored in the packing area of the inter picture. An inter-picture part having a length or more is packed in a free area of the inter-picture packing area, and the depacking means performs de-packing according to a storage state of the intra-picture packing area and a storage state of the inter-picture packing area. Performing a process; Decoding device.
【請求項9】上記デパッキングされたピクチャには外符
号と内符号とが付加されており、 上記デパッキング手段によるデパッキング処理に先立っ
て、上記内符号および外符号を復号する内符号・外符号
復号手段をさらに有する、 請求項7記載の復号化装置。
9. An outer code and an inner code are added to the depacked picture, and an inner code and an outer code for decoding the inner code and the outer code prior to the depacking process by the depacking means. The decoding device according to claim 7, further comprising code decoding means.
【請求項10】映像データがイントラフレームまたはイ
ンターフレームで符号化され、上記イントラフレームと
して符号化されたイントラピクチャと上記インターフレ
ームとして符号化されたインターピクチャとが所定の固
定長となるようにパッキングされた際に、上記イントラ
ピクチャを上記インターピクチャに対して優先的にパッ
キングされるとともに、上記インターピクチャのパッキ
ング位置を当該インターピクチャの先頭位置が同定でき
るように上記インターピクチャをパッキングされた符号
化映像データを入力する段階と、 上記パッキング処理とは逆の処理で上記イントラピクチ
ャと上記インターピクチャとをデパッキングする段階
と、 上記デパッキングされたピクチャを上記符号化処理と逆
の復号化処理を行う復号化段階とを備えたことを特徴と
する復号化方法。
10. The video data is encoded in an intra frame or an inter frame, and packing is performed so that an intra picture encoded as the intra frame and an inter picture encoded as the inter frame have a predetermined fixed length. In this case, the intra picture is preferentially packed with respect to the inter picture, and the packing position of the inter picture is packed so that the head position of the inter picture can be identified. Inputting video data; depacking the intra-picture and the inter-picture in a process opposite to the packing process; and decoding the depacked picture in a direction opposite to the encoding process. The decryption steps to perform Decoding wherein the was e.
JP14223895A 1995-06-08 1995-06-08 Encoding method and encoding device, and decoding method and decoding device Expired - Fee Related JP3307163B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP14223895A JP3307163B2 (en) 1995-06-08 1995-06-08 Encoding method and encoding device, and decoding method and decoding device
US08/660,610 US5852706A (en) 1995-06-08 1996-06-06 Apparatus for recording and reproducing intra-frame and inter-frame encoded video data arranged into recording frames
KR1019960020922A KR100397241B1 (en) 1995-06-08 1996-06-07 Image data recording apparatus and reproducing apparatus and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14223895A JP3307163B2 (en) 1995-06-08 1995-06-08 Encoding method and encoding device, and decoding method and decoding device

Publications (2)

Publication Number Publication Date
JPH08336108A JPH08336108A (en) 1996-12-17
JP3307163B2 true JP3307163B2 (en) 2002-07-24

Family

ID=15310651

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14223895A Expired - Fee Related JP3307163B2 (en) 1995-06-08 1995-06-08 Encoding method and encoding device, and decoding method and decoding device

Country Status (1)

Country Link
JP (1) JP3307163B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100783397B1 (en) * 2001-04-20 2007-12-10 엘지전자 주식회사 B-frame arrangement method in digital video coding
JP5629088B2 (en) * 2009-11-30 2014-11-19 株式会社メガチップス Recording data record management system

Also Published As

Publication number Publication date
JPH08336108A (en) 1996-12-17

Similar Documents

Publication Publication Date Title
KR100291404B1 (en) Digital recorder
JP4418090B2 (en) Image processing method
US7536080B2 (en) Signal processing apparatus
KR100676093B1 (en) Video data recording apparatus, video data recording method, video data reproducing apparatus, video data reproducing method, video data recording and reproducing apparatus, and video data recording and reproducing method
JPH04298802A (en) High efficiency encoding and recording/reproducing device
JPH09224218A (en) Method for recording and reproducing digital video tape
GB2341509A (en) Syntax error correction in an MPEG data stream
KR19990072968A (en) Picture signal processing system, decoder, picture signal processing method, and decoding method
JPH089319A (en) Method and device for recording and device for reproducing digital video signal
JP3277713B2 (en) Digital video signal recording device, recording / reproducing device, and reproducing device
KR100397241B1 (en) Image data recording apparatus and reproducing apparatus and method thereof
JP2000125262A (en) Signal processing unit, its method, recorder, reproducing device and recording and reproducing device
KR100796885B1 (en) Signal processor
KR970010213B1 (en) Video signal recording apparatus
JP3307163B2 (en) Encoding method and encoding device, and decoding method and decoding device
JP3277447B2 (en) Data recording method and device
JP4178521B2 (en) Encoded video signal recording method and video signal encoding apparatus
JPH0898142A (en) Picture reproduction device
JP4069823B2 (en) Special reproduction data creation device
JP3825367B2 (en) Compressed video recording / reproducing apparatus and compressed video recording / reproducing method
JPH08125967A (en) Image data recording and reproducing device
KR100268489B1 (en) Method and apparatus of recording and playing video data and digital video cassette recorder
JPH09298711A (en) Device for generating compressed image data for editing for image information recording and reproducing device
JPH05276491A (en) High-efficiency coding/decoding device
JP2001346163A (en) Recorder and method, reproducing device and method, and recording and reproducing device and method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090517

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100517

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees